1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libpreludedb 1.2.6.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580  # Remove one level of quotation (which was required for Make).
581  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582  ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587  # Discard the --no-reexec flag, and continue.
588  shift
589elif test "X$1" = X--fallback-echo; then
590  # Avoid inline document here, it may be left over
591  :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593  # Yippee, $ECHO works!
594  :
595else
596  # Restart under the correct shell.
597  exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601  # used as fallback echo
602  shift
603  cat <<_LT_EOF
604$*
605_LT_EOF
606  exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614  if test "X${echo_test_string+set}" != Xset; then
615    # find a string as large as possible, as long as the shell can cope with it
616    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620      then
621        break
622      fi
623    done
624  fi
625
626  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628     test "X$echo_testing_string" = "X$echo_test_string"; then
629    :
630  else
631    # The Solaris, AIX, and Digital Unix default echo programs unquote
632    # backslashes.  This makes it impossible to quote backslashes using
633    #   echo "$something" | sed 's/\\/\\\\/g'
634    #
635    # So, first we look for a working echo in the user's PATH.
636
637    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638    for dir in $PATH /usr/ucb; do
639      IFS="$lt_save_ifs"
640      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643         test "X$echo_testing_string" = "X$echo_test_string"; then
644        ECHO="$dir/echo"
645        break
646      fi
647    done
648    IFS="$lt_save_ifs"
649
650    if test "X$ECHO" = Xecho; then
651      # We didn't find a better echo, so look for alternatives.
652      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654         test "X$echo_testing_string" = "X$echo_test_string"; then
655        # This shell has a builtin print -r that does the trick.
656        ECHO='print -r'
657      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658	   test "X$CONFIG_SHELL" != X/bin/ksh; then
659        # If we have ksh, try running configure again with it.
660        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661        export ORIGINAL_CONFIG_SHELL
662        CONFIG_SHELL=/bin/ksh
663        export CONFIG_SHELL
664        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665      else
666        # Try using printf.
667        ECHO='printf %s\n'
668        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670	   test "X$echo_testing_string" = "X$echo_test_string"; then
671	  # Cool, printf works
672	  :
673        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674	     test "X$echo_testing_string" = 'X\t' &&
675	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676	     test "X$echo_testing_string" = "X$echo_test_string"; then
677	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678	  export CONFIG_SHELL
679	  SHELL="$CONFIG_SHELL"
680	  export SHELL
681	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
682        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683	     test "X$echo_testing_string" = 'X\t' &&
684	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685	     test "X$echo_testing_string" = "X$echo_test_string"; then
686	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
687        else
688	  # maybe with a smaller string...
689	  prev=:
690
691	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693	    then
694	      break
695	    fi
696	    prev="$cmd"
697	  done
698
699	  if test "$prev" != 'sed 50q "$0"'; then
700	    echo_test_string=`eval $prev`
701	    export echo_test_string
702	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703	  else
704	    # Oops.  We lost completely, so just stick with echo.
705	    ECHO=echo
706	  fi
707        fi
708      fi
709    fi
710  fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME='libpreludedb'
745PACKAGE_TARNAME='libpreludedb'
746PACKAGE_VERSION='1.2.6'
747PACKAGE_STRING='libpreludedb 1.2.6'
748PACKAGE_BUGREPORT=''
749
750ac_unique_file="src"
751# Factoring default headers for most tests.
752ac_includes_default="\
753#include <stdio.h>
754#ifdef HAVE_SYS_TYPES_H
755# include <sys/types.h>
756#endif
757#ifdef HAVE_SYS_STAT_H
758# include <sys/stat.h>
759#endif
760#ifdef STDC_HEADERS
761# include <stdlib.h>
762# include <stddef.h>
763#else
764# ifdef HAVE_STDLIB_H
765#  include <stdlib.h>
766# endif
767#endif
768#ifdef HAVE_STRING_H
769# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770#  include <memory.h>
771# endif
772# include <string.h>
773#endif
774#ifdef HAVE_STRINGS_H
775# include <strings.h>
776#endif
777#ifdef HAVE_INTTYPES_H
778# include <inttypes.h>
779#endif
780#ifdef HAVE_STDINT_H
781# include <stdint.h>
782#endif
783#ifdef HAVE_UNISTD_H
784# include <unistd.h>
785#endif"
786
787gl_use_threads_default=
788gl_header_list=
789gl_func_list=
790ac_subst_vars='gltests_LTLIBOBJS
791gltests_LIBOBJS
792gl_LTLIBOBJS
793gl_LIBOBJS
794am__EXEEXT_FALSE
795am__EXEEXT_TRUE
796LTLIBOBJS
797LIBOBJS
798LIBPRELUDEDB_SERIAL_VERSION
799LIBPRELUDEDB_LEVEL_VERSION
800LIBPRELUDEDB_MICRO_VERSION
801LIBPRELUDEDB_MINOR_VERSION
802LIBPRELUDEDB_MAJOR_VERSION
803LIBPRELUDEDB_VERSION
804format_schema_dir
805format_plugin_dir
806sql_plugin_dir
807db_plugin_dir
808SYSCONFDIR
809DATADIR
810LIBDIR
811LIBPRELUDEDBCPP_SONAME
812LIBPRELUDEDB_SONAME
813BINDINGS_CC
814PCFLAGS
815GTK_DOC_USE_LIBTOOL_FALSE
816GTK_DOC_USE_LIBTOOL_TRUE
817ENABLE_GTK_DOC_FALSE
818ENABLE_GTK_DOC_TRUE
819GTKDOC_CHECK
820PKG_CONFIG
821HTML_DIR
822LIBTESTS_LIBDEPS
823YIELD_LIB
824HAVE__BOOL
825GL_GENERATE_STDBOOL_H_FALSE
826GL_GENERATE_STDBOOL_H_TRUE
827STDBOOL_H
828NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
829NEXT_INTTYPES_H
830UINT64_MAX_EQ_ULONG_MAX
831UINT32_MAX_LT_UINTMAX_MAX
832PRIPTR_PREFIX
833PRI_MACROS_BROKEN
834INT64_MAX_EQ_LONG_MAX
835INT32_MAX_LT_INTMAX_MAX
836REPLACE_STRTOUMAX
837REPLACE_STRTOIMAX
838HAVE_DECL_STRTOUMAX
839HAVE_DECL_STRTOIMAX
840HAVE_DECL_IMAXDIV
841HAVE_DECL_IMAXABS
842GNULIB_STRTOUMAX
843GNULIB_STRTOIMAX
844GNULIB_IMAXDIV
845GNULIB_IMAXABS
846HAVE_MSVC_INVALID_PARAMETER_HANDLER
847gltests_WITNESS
848HAVE_WINT_T
849NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
850NEXT_WCHAR_H
851REPLACE_WCSWIDTH
852REPLACE_WCWIDTH
853REPLACE_WCSNRTOMBS
854REPLACE_WCSRTOMBS
855REPLACE_WCRTOMB
856REPLACE_MBSNRTOWCS
857REPLACE_MBSRTOWCS
858REPLACE_MBRLEN
859REPLACE_MBRTOWC
860REPLACE_MBSINIT
861REPLACE_WCTOB
862REPLACE_BTOWC
863REPLACE_MBSTATE_T
864HAVE_DECL_WCWIDTH
865HAVE_DECL_WCTOB
866HAVE_WCSWIDTH
867HAVE_WCSTOK
868HAVE_WCSSTR
869HAVE_WCSPBRK
870HAVE_WCSSPN
871HAVE_WCSCSPN
872HAVE_WCSRCHR
873HAVE_WCSCHR
874HAVE_WCSDUP
875HAVE_WCSXFRM
876HAVE_WCSCOLL
877HAVE_WCSNCASECMP
878HAVE_WCSCASECMP
879HAVE_WCSNCMP
880HAVE_WCSCMP
881HAVE_WCSNCAT
882HAVE_WCSCAT
883HAVE_WCPNCPY
884HAVE_WCSNCPY
885HAVE_WCPCPY
886HAVE_WCSCPY
887HAVE_WCSNLEN
888HAVE_WCSLEN
889HAVE_WMEMSET
890HAVE_WMEMMOVE
891HAVE_WMEMCPY
892HAVE_WMEMCMP
893HAVE_WMEMCHR
894HAVE_WCSNRTOMBS
895HAVE_WCSRTOMBS
896HAVE_WCRTOMB
897HAVE_MBSNRTOWCS
898HAVE_MBSRTOWCS
899HAVE_MBRLEN
900HAVE_MBRTOWC
901HAVE_MBSINIT
902HAVE_BTOWC
903GNULIB_WCSWIDTH
904GNULIB_WCSTOK
905GNULIB_WCSSTR
906GNULIB_WCSPBRK
907GNULIB_WCSSPN
908GNULIB_WCSCSPN
909GNULIB_WCSRCHR
910GNULIB_WCSCHR
911GNULIB_WCSDUP
912GNULIB_WCSXFRM
913GNULIB_WCSCOLL
914GNULIB_WCSNCASECMP
915GNULIB_WCSCASECMP
916GNULIB_WCSNCMP
917GNULIB_WCSCMP
918GNULIB_WCSNCAT
919GNULIB_WCSCAT
920GNULIB_WCPNCPY
921GNULIB_WCSNCPY
922GNULIB_WCPCPY
923GNULIB_WCSCPY
924GNULIB_WCSNLEN
925GNULIB_WCSLEN
926GNULIB_WMEMSET
927GNULIB_WMEMMOVE
928GNULIB_WMEMCPY
929GNULIB_WMEMCMP
930GNULIB_WMEMCHR
931GNULIB_WCWIDTH
932GNULIB_WCSNRTOMBS
933GNULIB_WCSRTOMBS
934GNULIB_WCRTOMB
935GNULIB_MBSNRTOWCS
936GNULIB_MBSRTOWCS
937GNULIB_MBRLEN
938GNULIB_MBRTOWC
939GNULIB_MBSINIT
940GNULIB_WCTOB
941GNULIB_BTOWC
942HAVE_FEATURES_H
943HAVE_UNISTD_H
944NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
945NEXT_UNISTD_H
946PTHREAD_H_DEFINES_STRUCT_TIMESPEC
947SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
948TIME_H_DEFINES_STRUCT_TIMESPEC
949NEXT_AS_FIRST_DIRECTIVE_TIME_H
950NEXT_TIME_H
951REPLACE_LOCALTIME
952REPLACE_GMTIME
953REPLACE_TIMEGM
954REPLACE_NANOSLEEP
955REPLACE_MKTIME
956REPLACE_LOCALTIME_R
957HAVE_TIMEGM
958HAVE_STRPTIME
959HAVE_NANOSLEEP
960HAVE_DECL_LOCALTIME_R
961GNULIB_TIME_R
962GNULIB_TIMEGM
963GNULIB_STRPTIME
964GNULIB_NANOSLEEP
965GNULIB_MKTIME
966WINDOWS_64_BIT_OFF_T
967NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
968NEXT_SYS_TYPES_H
969NEXT_AS_FIRST_DIRECTIVE_STRING_H
970NEXT_STRING_H
971NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
972NEXT_STDLIB_H
973NEXT_AS_FIRST_DIRECTIVE_STDIO_H
974NEXT_STDIO_H
975GL_GENERATE_STDINT_H_FALSE
976GL_GENERATE_STDINT_H_TRUE
977STDINT_H
978WINT_T_SUFFIX
979WCHAR_T_SUFFIX
980SIG_ATOMIC_T_SUFFIX
981SIZE_T_SUFFIX
982PTRDIFF_T_SUFFIX
983HAVE_SIGNED_WINT_T
984HAVE_SIGNED_WCHAR_T
985HAVE_SIGNED_SIG_ATOMIC_T
986BITSIZEOF_WINT_T
987BITSIZEOF_WCHAR_T
988BITSIZEOF_SIG_ATOMIC_T
989BITSIZEOF_SIZE_T
990BITSIZEOF_PTRDIFF_T
991HAVE_SYS_BITYPES_H
992HAVE_SYS_INTTYPES_H
993HAVE_STDINT_H
994NEXT_AS_FIRST_DIRECTIVE_STDINT_H
995NEXT_STDINT_H
996HAVE_SYS_TYPES_H
997HAVE_INTTYPES_H
998HAVE_WCHAR_H
999HAVE_UNSIGNED_LONG_LONG_INT
1000HAVE_LONG_LONG_INT
1001NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1002NEXT_STDDEF_H
1003GL_GENERATE_STDDEF_H_FALSE
1004GL_GENERATE_STDDEF_H_TRUE
1005STDDEF_H
1006HAVE_WCHAR_T
1007REPLACE_NULL
1008REPLACE_VSPRINTF
1009REPLACE_VSNPRINTF
1010REPLACE_VPRINTF
1011REPLACE_VFPRINTF
1012REPLACE_VDPRINTF
1013REPLACE_VASPRINTF
1014REPLACE_TMPFILE
1015REPLACE_STDIO_WRITE_FUNCS
1016REPLACE_STDIO_READ_FUNCS
1017REPLACE_SPRINTF
1018REPLACE_SNPRINTF
1019REPLACE_RENAMEAT
1020REPLACE_RENAME
1021REPLACE_REMOVE
1022REPLACE_PRINTF
1023REPLACE_POPEN
1024REPLACE_PERROR
1025REPLACE_OBSTACK_PRINTF
1026REPLACE_GETLINE
1027REPLACE_GETDELIM
1028REPLACE_FTELLO
1029REPLACE_FTELL
1030REPLACE_FSEEKO
1031REPLACE_FSEEK
1032REPLACE_FREOPEN
1033REPLACE_FPURGE
1034REPLACE_FPRINTF
1035REPLACE_FOPEN
1036REPLACE_FFLUSH
1037REPLACE_FDOPEN
1038REPLACE_FCLOSE
1039REPLACE_DPRINTF
1040HAVE_VDPRINTF
1041HAVE_VASPRINTF
1042HAVE_RENAMEAT
1043HAVE_POPEN
1044HAVE_PCLOSE
1045HAVE_FTELLO
1046HAVE_FSEEKO
1047HAVE_DPRINTF
1048HAVE_DECL_VSNPRINTF
1049HAVE_DECL_SNPRINTF
1050HAVE_DECL_OBSTACK_PRINTF
1051HAVE_DECL_GETLINE
1052HAVE_DECL_GETDELIM
1053HAVE_DECL_FTELLO
1054HAVE_DECL_FSEEKO
1055HAVE_DECL_FPURGE
1056GNULIB_VSPRINTF_POSIX
1057GNULIB_VSNPRINTF
1058GNULIB_VPRINTF_POSIX
1059GNULIB_VPRINTF
1060GNULIB_VFPRINTF_POSIX
1061GNULIB_VFPRINTF
1062GNULIB_VDPRINTF
1063GNULIB_VSCANF
1064GNULIB_VFSCANF
1065GNULIB_VASPRINTF
1066GNULIB_TMPFILE
1067GNULIB_STDIO_H_SIGPIPE
1068GNULIB_STDIO_H_NONBLOCKING
1069GNULIB_SPRINTF_POSIX
1070GNULIB_SNPRINTF
1071GNULIB_SCANF
1072GNULIB_RENAMEAT
1073GNULIB_RENAME
1074GNULIB_REMOVE
1075GNULIB_PUTS
1076GNULIB_PUTCHAR
1077GNULIB_PUTC
1078GNULIB_PRINTF_POSIX
1079GNULIB_PRINTF
1080GNULIB_POPEN
1081GNULIB_PERROR
1082GNULIB_PCLOSE
1083GNULIB_OBSTACK_PRINTF_POSIX
1084GNULIB_OBSTACK_PRINTF
1085GNULIB_GETLINE
1086GNULIB_GETDELIM
1087GNULIB_GETCHAR
1088GNULIB_GETC
1089GNULIB_FWRITE
1090GNULIB_FTELLO
1091GNULIB_FTELL
1092GNULIB_FSEEKO
1093GNULIB_FSEEK
1094GNULIB_FSCANF
1095GNULIB_FREOPEN
1096GNULIB_FREAD
1097GNULIB_FPUTS
1098GNULIB_FPUTC
1099GNULIB_FPURGE
1100GNULIB_FPRINTF_POSIX
1101GNULIB_FPRINTF
1102GNULIB_FOPEN
1103GNULIB_FGETS
1104GNULIB_FGETC
1105GNULIB_FFLUSH
1106GNULIB_FDOPEN
1107GNULIB_FCLOSE
1108GNULIB_DPRINTF
1109APPLE_UNIVERSAL_BUILD
1110UNDEFINE_STRTOK_R
1111REPLACE_STRTOK_R
1112REPLACE_STRSIGNAL
1113REPLACE_STRNLEN
1114REPLACE_STRNDUP
1115REPLACE_STRNCAT
1116REPLACE_STRERROR_R
1117REPLACE_STRERROR
1118REPLACE_STRCHRNUL
1119REPLACE_STRCASESTR
1120REPLACE_STRSTR
1121REPLACE_STRDUP
1122REPLACE_STPNCPY
1123REPLACE_MEMMEM
1124REPLACE_MEMCHR
1125HAVE_STRVERSCMP
1126HAVE_DECL_STRSIGNAL
1127HAVE_DECL_STRERROR_R
1128HAVE_DECL_STRTOK_R
1129HAVE_STRCASESTR
1130HAVE_STRSEP
1131HAVE_STRPBRK
1132HAVE_DECL_STRNLEN
1133HAVE_DECL_STRNDUP
1134HAVE_DECL_STRDUP
1135HAVE_STRCHRNUL
1136HAVE_STPNCPY
1137HAVE_STPCPY
1138HAVE_RAWMEMCHR
1139HAVE_DECL_MEMRCHR
1140HAVE_MEMPCPY
1141HAVE_DECL_MEMMEM
1142HAVE_MEMCHR
1143HAVE_FFSLL
1144HAVE_FFSL
1145HAVE_MBSLEN
1146GNULIB_STRVERSCMP
1147GNULIB_STRSIGNAL
1148GNULIB_STRERROR_R
1149GNULIB_STRERROR
1150GNULIB_MBSTOK_R
1151GNULIB_MBSSEP
1152GNULIB_MBSSPN
1153GNULIB_MBSPBRK
1154GNULIB_MBSCSPN
1155GNULIB_MBSCASESTR
1156GNULIB_MBSPCASECMP
1157GNULIB_MBSNCASECMP
1158GNULIB_MBSCASECMP
1159GNULIB_MBSSTR
1160GNULIB_MBSRCHR
1161GNULIB_MBSCHR
1162GNULIB_MBSNLEN
1163GNULIB_MBSLEN
1164GNULIB_STRTOK_R
1165GNULIB_STRCASESTR
1166GNULIB_STRSTR
1167GNULIB_STRSEP
1168GNULIB_STRPBRK
1169GNULIB_STRNLEN
1170GNULIB_STRNDUP
1171GNULIB_STRNCAT
1172GNULIB_STRDUP
1173GNULIB_STRCHRNUL
1174GNULIB_STPNCPY
1175GNULIB_STPCPY
1176GNULIB_RAWMEMCHR
1177GNULIB_MEMRCHR
1178GNULIB_MEMPCPY
1179GNULIB_MEMMEM
1180GNULIB_MEMCHR
1181GNULIB_FFSLL
1182GNULIB_FFSL
1183REPLACE_WCTOMB
1184REPLACE_UNSETENV
1185REPLACE_STRTOD
1186REPLACE_SETENV
1187REPLACE_REALPATH
1188REPLACE_REALLOC
1189REPLACE_RANDOM_R
1190REPLACE_QSORT_R
1191REPLACE_PUTENV
1192REPLACE_PTSNAME_R
1193REPLACE_PTSNAME
1194REPLACE_MKSTEMP
1195REPLACE_MBTOWC
1196REPLACE_MALLOC
1197REPLACE_CANONICALIZE_FILE_NAME
1198REPLACE_CALLOC
1199HAVE_DECL_UNSETENV
1200HAVE_UNLOCKPT
1201HAVE_SYS_LOADAVG_H
1202HAVE_STRUCT_RANDOM_DATA
1203HAVE_STRTOULL
1204HAVE_STRTOLL
1205HAVE_STRTOD
1206HAVE_DECL_SETENV
1207HAVE_SETENV
1208HAVE_SECURE_GETENV
1209HAVE_RPMATCH
1210HAVE_REALPATH
1211HAVE_RANDOM_R
1212HAVE_RANDOM_H
1213HAVE_RANDOM
1214HAVE_PTSNAME_R
1215HAVE_PTSNAME
1216HAVE_POSIX_OPENPT
1217HAVE_MKSTEMPS
1218HAVE_MKSTEMP
1219HAVE_MKOSTEMPS
1220HAVE_MKOSTEMP
1221HAVE_MKDTEMP
1222HAVE_GRANTPT
1223HAVE_GETSUBOPT
1224HAVE_DECL_GETLOADAVG
1225HAVE_CANONICALIZE_FILE_NAME
1226HAVE_ATOLL
1227HAVE__EXIT
1228GNULIB_WCTOMB
1229GNULIB_UNSETENV
1230GNULIB_UNLOCKPT
1231GNULIB_SYSTEM_POSIX
1232GNULIB_STRTOULL
1233GNULIB_STRTOLL
1234GNULIB_STRTOD
1235GNULIB_SETENV
1236GNULIB_SECURE_GETENV
1237GNULIB_RPMATCH
1238GNULIB_REALPATH
1239GNULIB_REALLOC_POSIX
1240GNULIB_RANDOM_R
1241GNULIB_RANDOM
1242GNULIB_QSORT_R
1243GNULIB_PUTENV
1244GNULIB_PTSNAME_R
1245GNULIB_PTSNAME
1246GNULIB_POSIX_OPENPT
1247GNULIB_MKSTEMPS
1248GNULIB_MKSTEMP
1249GNULIB_MKOSTEMPS
1250GNULIB_MKOSTEMP
1251GNULIB_MKDTEMP
1252GNULIB_MBTOWC
1253GNULIB_MALLOC_POSIX
1254GNULIB_GRANTPT
1255GNULIB_GETSUBOPT
1256GNULIB_GETLOADAVG
1257GNULIB_CANONICALIZE_FILE_NAME
1258GNULIB_CALLOC_POSIX
1259GNULIB_ATOLL
1260GNULIB__EXIT
1261LTLIBMULTITHREAD
1262LIBMULTITHREAD
1263LTLIBTHREAD
1264LIBTHREAD
1265LIBPTH_PREFIX
1266LTLIBPTH
1267LIBPTH
1268HAVE_WINSOCK2_H
1269UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1270UNISTD_H_HAVE_WINSOCK2_H
1271REPLACE_WRITE
1272REPLACE_USLEEP
1273REPLACE_UNLINKAT
1274REPLACE_UNLINK
1275REPLACE_TTYNAME_R
1276REPLACE_SYMLINK
1277REPLACE_SLEEP
1278REPLACE_RMDIR
1279REPLACE_READLINK
1280REPLACE_READ
1281REPLACE_PWRITE
1282REPLACE_PREAD
1283REPLACE_LSEEK
1284REPLACE_LINKAT
1285REPLACE_LINK
1286REPLACE_LCHOWN
1287REPLACE_ISATTY
1288REPLACE_GETPAGESIZE
1289REPLACE_GETGROUPS
1290REPLACE_GETLOGIN_R
1291REPLACE_GETDTABLESIZE
1292REPLACE_GETDOMAINNAME
1293REPLACE_GETCWD
1294REPLACE_FTRUNCATE
1295REPLACE_FCHOWNAT
1296REPLACE_DUP2
1297REPLACE_DUP
1298REPLACE_CLOSE
1299REPLACE_CHOWN
1300HAVE_SYS_PARAM_H
1301HAVE_OS_H
1302HAVE_DECL_TTYNAME_R
1303HAVE_DECL_SETHOSTNAME
1304HAVE_DECL_GETUSERSHELL
1305HAVE_DECL_GETPAGESIZE
1306HAVE_DECL_GETLOGIN_R
1307HAVE_DECL_GETDOMAINNAME
1308HAVE_DECL_FDATASYNC
1309HAVE_DECL_FCHDIR
1310HAVE_DECL_ENVIRON
1311HAVE_USLEEP
1312HAVE_UNLINKAT
1313HAVE_SYMLINKAT
1314HAVE_SYMLINK
1315HAVE_SLEEP
1316HAVE_SETHOSTNAME
1317HAVE_READLINKAT
1318HAVE_READLINK
1319HAVE_PWRITE
1320HAVE_PREAD
1321HAVE_PIPE2
1322HAVE_PIPE
1323HAVE_LINKAT
1324HAVE_LINK
1325HAVE_LCHOWN
1326HAVE_GROUP_MEMBER
1327HAVE_GETPAGESIZE
1328HAVE_GETLOGIN
1329HAVE_GETHOSTNAME
1330HAVE_GETGROUPS
1331HAVE_GETDTABLESIZE
1332HAVE_FTRUNCATE
1333HAVE_FSYNC
1334HAVE_FDATASYNC
1335HAVE_FCHOWNAT
1336HAVE_FCHDIR
1337HAVE_FACCESSAT
1338HAVE_EUIDACCESS
1339HAVE_DUP3
1340HAVE_DUP2
1341HAVE_CHOWN
1342GNULIB_WRITE
1343GNULIB_USLEEP
1344GNULIB_UNLINKAT
1345GNULIB_UNLINK
1346GNULIB_UNISTD_H_SIGPIPE
1347GNULIB_UNISTD_H_NONBLOCKING
1348GNULIB_TTYNAME_R
1349GNULIB_SYMLINKAT
1350GNULIB_SYMLINK
1351GNULIB_SLEEP
1352GNULIB_SETHOSTNAME
1353GNULIB_RMDIR
1354GNULIB_READLINKAT
1355GNULIB_READLINK
1356GNULIB_READ
1357GNULIB_PWRITE
1358GNULIB_PREAD
1359GNULIB_PIPE2
1360GNULIB_PIPE
1361GNULIB_LSEEK
1362GNULIB_LINKAT
1363GNULIB_LINK
1364GNULIB_LCHOWN
1365GNULIB_ISATTY
1366GNULIB_GROUP_MEMBER
1367GNULIB_GETUSERSHELL
1368GNULIB_GETPAGESIZE
1369GNULIB_GETLOGIN_R
1370GNULIB_GETLOGIN
1371GNULIB_GETHOSTNAME
1372GNULIB_GETGROUPS
1373GNULIB_GETDTABLESIZE
1374GNULIB_GETDOMAINNAME
1375GNULIB_GETCWD
1376GNULIB_FTRUNCATE
1377GNULIB_FSYNC
1378GNULIB_FDATASYNC
1379GNULIB_FCHOWNAT
1380GNULIB_FCHDIR
1381GNULIB_FACCESSAT
1382GNULIB_EUIDACCESS
1383GNULIB_ENVIRON
1384GNULIB_DUP3
1385GNULIB_DUP2
1386GNULIB_DUP
1387GNULIB_CLOSE
1388GNULIB_CHOWN
1389GNULIB_CHDIR
1390NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1391NEXT_SYS_TIME_H
1392REPLACE_STRUCT_TIMEVAL
1393REPLACE_GETTIMEOFDAY
1394HAVE_SYS_TIME_H
1395HAVE_STRUCT_TIMEVAL
1396HAVE_GETTIMEOFDAY
1397GNULIB_GETTIMEOFDAY
1398REPLACE_ITOLD
1399GL_GENERATE_FLOAT_H_FALSE
1400GL_GENERATE_FLOAT_H_TRUE
1401FLOAT_H
1402NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1403NEXT_FLOAT_H
1404EOVERFLOW_VALUE
1405EOVERFLOW_HIDDEN
1406ENOLINK_VALUE
1407ENOLINK_HIDDEN
1408EMULTIHOP_VALUE
1409EMULTIHOP_HIDDEN
1410GL_GENERATE_ERRNO_H_FALSE
1411GL_GENERATE_ERRNO_H_TRUE
1412ERRNO_H
1413NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1414NEXT_ERRNO_H
1415PRAGMA_COLUMNS
1416PRAGMA_SYSTEM_HEADER
1417INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1418INCLUDE_NEXT
1419GL_GENERATE_ALLOCA_H_FALSE
1420GL_GENERATE_ALLOCA_H_TRUE
1421ALLOCA_H
1422ALLOCA
1423GL_COND_LIBTOOL_FALSE
1424GL_COND_LIBTOOL_TRUE
1425HAVE_CXX
1426HAVE_EASY_BINDINGS_FALSE
1427HAVE_EASY_BINDINGS_TRUE
1428HAVE_PYTHON_FALSE
1429HAVE_PYTHON_TRUE
1430HAVE_PYTHON3_FALSE
1431HAVE_PYTHON3_TRUE
1432PYTHON3
1433HAVE_PYTHON2_FALSE
1434HAVE_PYTHON2_TRUE
1435PYTHON2
1436HAVE_SWIG_FALSE
1437HAVE_SWIG_TRUE
1438SWIG
1439HAVE_SQLITE3_FALSE
1440HAVE_SQLITE3_TRUE
1441SQLITE3_VERSION
1442SQLITE3_LDFLAGS
1443SQLITE3_CFLAGS
1444HAVE_PGSQL_FALSE
1445HAVE_PGSQL_TRUE
1446POSTGRESQL_LDFLAGS
1447POSTGRESQL_CFLAGS
1448POSTGRESQL_VERSION
1449PG_CONFIG
1450HAVE_MYSQL_FALSE
1451HAVE_MYSQL_TRUE
1452MYSQL_LDFLAGS
1453MYSQL_CFLAGS
1454MYSQL_VERSION
1455MYSQL_CONFIG
1456LIBPRELUDE_CONFIG_PREFIX
1457LIBPRELUDE_PREFIX
1458LIBPRELUDE_LIBS
1459LIBPRELUDE_LDFLAGS
1460LIBPRELUDE_PTHREAD_CFLAGS
1461LIBPRELUDE_CFLAGS
1462LIBPRELUDE_CONFIG
1463CXXCPP
1464OTOOL64
1465OTOOL
1466LIPO
1467NMEDIT
1468DSYMUTIL
1469lt_ECHO
1470LN_S
1471NM
1472ac_ct_DUMPBIN
1473DUMPBIN
1474LD
1475FGREP
1476SED
1477LIBTOOL
1478OBJDUMP
1479DLLTOOL
1480AS
1481RANLIB
1482ARFLAGS
1483AR
1484EGREP
1485GREP
1486CPP
1487am__fastdepCXX_FALSE
1488am__fastdepCXX_TRUE
1489CXXDEPMODE
1490ac_ct_CXX
1491CXXFLAGS
1492CXX
1493am__fastdepCC_FALSE
1494am__fastdepCC_TRUE
1495CCDEPMODE
1496AMDEPBACKSLASH
1497AMDEP_FALSE
1498AMDEP_TRUE
1499am__quote
1500am__include
1501DEPDIR
1502OBJEXT
1503EXEEXT
1504ac_ct_CC
1505CPPFLAGS
1506LDFLAGS
1507CFLAGS
1508CC
1509MAINT
1510MAINTAINER_MODE_FALSE
1511MAINTAINER_MODE_TRUE
1512am__untar
1513am__tar
1514AMTAR
1515am__leading_dot
1516SET_MAKE
1517AWK
1518mkdir_p
1519MKDIR_P
1520INSTALL_STRIP_PROGRAM
1521STRIP
1522install_sh
1523MAKEINFO
1524AUTOHEADER
1525AUTOMAKE
1526AUTOCONF
1527ACLOCAL
1528VERSION
1529PACKAGE
1530CYGPATH_W
1531am__isrc
1532INSTALL_DATA
1533INSTALL_SCRIPT
1534INSTALL_PROGRAM
1535target_os
1536target_vendor
1537target_cpu
1538target
1539host_os
1540host_vendor
1541host_cpu
1542host
1543build_os
1544build_vendor
1545build_cpu
1546build
1547target_alias
1548host_alias
1549build_alias
1550LIBS
1551ECHO_T
1552ECHO_N
1553ECHO_C
1554DEFS
1555mandir
1556localedir
1557libdir
1558psdir
1559pdfdir
1560dvidir
1561htmldir
1562infodir
1563docdir
1564oldincludedir
1565includedir
1566localstatedir
1567sharedstatedir
1568sysconfdir
1569datadir
1570datarootdir
1571libexecdir
1572sbindir
1573bindir
1574program_transform_name
1575prefix
1576exec_prefix
1577PACKAGE_BUGREPORT
1578PACKAGE_STRING
1579PACKAGE_VERSION
1580PACKAGE_TARNAME
1581PACKAGE_NAME
1582PATH_SEPARATOR
1583SHELL'
1584ac_subst_files=''
1585ac_user_opts='
1586enable_option_checking
1587enable_maintainer_mode
1588enable_dependency_tracking
1589enable_threads
1590enable_static
1591enable_shared
1592with_pic
1593enable_fast_install
1594with_gnu_ld
1595enable_libtool_lock
1596with_libprelude_prefix
1597with_mysql
1598with_postgresql
1599with_sqlite3
1600with_swig
1601with_python2
1602with_python3
1603enable_easy_bindings
1604enable_rpath
1605with_libpth_prefix
1606with_html_dir
1607enable_gtk_doc
1608'
1609      ac_precious_vars='build_alias
1610host_alias
1611target_alias
1612CC
1613CFLAGS
1614LDFLAGS
1615LIBS
1616CPPFLAGS
1617CXX
1618CXXFLAGS
1619CCC
1620CPP
1621CXXCPP
1622MYSQL_CONFIG
1623PKG_CONFIG'
1624
1625
1626# Initialize some variables set by options.
1627ac_init_help=
1628ac_init_version=false
1629ac_unrecognized_opts=
1630ac_unrecognized_sep=
1631# The variables have the same names as the options, with
1632# dashes changed to underlines.
1633cache_file=/dev/null
1634exec_prefix=NONE
1635no_create=
1636no_recursion=
1637prefix=NONE
1638program_prefix=NONE
1639program_suffix=NONE
1640program_transform_name=s,x,x,
1641silent=
1642site=
1643srcdir=
1644verbose=
1645x_includes=NONE
1646x_libraries=NONE
1647
1648# Installation directory options.
1649# These are left unexpanded so users can "make install exec_prefix=/foo"
1650# and all the variables that are supposed to be based on exec_prefix
1651# by default will actually change.
1652# Use braces instead of parens because sh, perl, etc. also accept them.
1653# (The list follows the same order as the GNU Coding Standards.)
1654bindir='${exec_prefix}/bin'
1655sbindir='${exec_prefix}/sbin'
1656libexecdir='${exec_prefix}/libexec'
1657datarootdir='${prefix}/share'
1658datadir='${datarootdir}'
1659sysconfdir='${prefix}/etc'
1660sharedstatedir='${prefix}/com'
1661localstatedir='${prefix}/var'
1662includedir='${prefix}/include'
1663oldincludedir='/usr/include'
1664docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1665infodir='${datarootdir}/info'
1666htmldir='${docdir}'
1667dvidir='${docdir}'
1668pdfdir='${docdir}'
1669psdir='${docdir}'
1670libdir='${exec_prefix}/lib'
1671localedir='${datarootdir}/locale'
1672mandir='${datarootdir}/man'
1673
1674ac_prev=
1675ac_dashdash=
1676for ac_option
1677do
1678  # If the previous option needs an argument, assign it.
1679  if test -n "$ac_prev"; then
1680    eval $ac_prev=\$ac_option
1681    ac_prev=
1682    continue
1683  fi
1684
1685  case $ac_option in
1686  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1687  *)	ac_optarg=yes ;;
1688  esac
1689
1690  # Accept the important Cygnus configure options, so we can diagnose typos.
1691
1692  case $ac_dashdash$ac_option in
1693  --)
1694    ac_dashdash=yes ;;
1695
1696  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1697    ac_prev=bindir ;;
1698  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1699    bindir=$ac_optarg ;;
1700
1701  -build | --build | --buil | --bui | --bu)
1702    ac_prev=build_alias ;;
1703  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1704    build_alias=$ac_optarg ;;
1705
1706  -cache-file | --cache-file | --cache-fil | --cache-fi \
1707  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1708    ac_prev=cache_file ;;
1709  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1710  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1711    cache_file=$ac_optarg ;;
1712
1713  --config-cache | -C)
1714    cache_file=config.cache ;;
1715
1716  -datadir | --datadir | --datadi | --datad)
1717    ac_prev=datadir ;;
1718  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1719    datadir=$ac_optarg ;;
1720
1721  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1722  | --dataroo | --dataro | --datar)
1723    ac_prev=datarootdir ;;
1724  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1725  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1726    datarootdir=$ac_optarg ;;
1727
1728  -disable-* | --disable-*)
1729    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1730    # Reject names that are not valid shell variable names.
1731    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1732      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1733   { (exit 1); exit 1; }; }
1734    ac_useropt_orig=$ac_useropt
1735    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1736    case $ac_user_opts in
1737      *"
1738"enable_$ac_useropt"
1739"*) ;;
1740      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1741	 ac_unrecognized_sep=', ';;
1742    esac
1743    eval enable_$ac_useropt=no ;;
1744
1745  -docdir | --docdir | --docdi | --doc | --do)
1746    ac_prev=docdir ;;
1747  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1748    docdir=$ac_optarg ;;
1749
1750  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1751    ac_prev=dvidir ;;
1752  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1753    dvidir=$ac_optarg ;;
1754
1755  -enable-* | --enable-*)
1756    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1757    # Reject names that are not valid shell variable names.
1758    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1759      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1760   { (exit 1); exit 1; }; }
1761    ac_useropt_orig=$ac_useropt
1762    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1763    case $ac_user_opts in
1764      *"
1765"enable_$ac_useropt"
1766"*) ;;
1767      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1768	 ac_unrecognized_sep=', ';;
1769    esac
1770    eval enable_$ac_useropt=\$ac_optarg ;;
1771
1772  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1773  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1774  | --exec | --exe | --ex)
1775    ac_prev=exec_prefix ;;
1776  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1777  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1778  | --exec=* | --exe=* | --ex=*)
1779    exec_prefix=$ac_optarg ;;
1780
1781  -gas | --gas | --ga | --g)
1782    # Obsolete; use --with-gas.
1783    with_gas=yes ;;
1784
1785  -help | --help | --hel | --he | -h)
1786    ac_init_help=long ;;
1787  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1788    ac_init_help=recursive ;;
1789  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1790    ac_init_help=short ;;
1791
1792  -host | --host | --hos | --ho)
1793    ac_prev=host_alias ;;
1794  -host=* | --host=* | --hos=* | --ho=*)
1795    host_alias=$ac_optarg ;;
1796
1797  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1798    ac_prev=htmldir ;;
1799  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1800  | --ht=*)
1801    htmldir=$ac_optarg ;;
1802
1803  -includedir | --includedir | --includedi | --included | --include \
1804  | --includ | --inclu | --incl | --inc)
1805    ac_prev=includedir ;;
1806  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1807  | --includ=* | --inclu=* | --incl=* | --inc=*)
1808    includedir=$ac_optarg ;;
1809
1810  -infodir | --infodir | --infodi | --infod | --info | --inf)
1811    ac_prev=infodir ;;
1812  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1813    infodir=$ac_optarg ;;
1814
1815  -libdir | --libdir | --libdi | --libd)
1816    ac_prev=libdir ;;
1817  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1818    libdir=$ac_optarg ;;
1819
1820  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1821  | --libexe | --libex | --libe)
1822    ac_prev=libexecdir ;;
1823  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1824  | --libexe=* | --libex=* | --libe=*)
1825    libexecdir=$ac_optarg ;;
1826
1827  -localedir | --localedir | --localedi | --localed | --locale)
1828    ac_prev=localedir ;;
1829  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1830    localedir=$ac_optarg ;;
1831
1832  -localstatedir | --localstatedir | --localstatedi | --localstated \
1833  | --localstate | --localstat | --localsta | --localst | --locals)
1834    ac_prev=localstatedir ;;
1835  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1836  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1837    localstatedir=$ac_optarg ;;
1838
1839  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1840    ac_prev=mandir ;;
1841  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1842    mandir=$ac_optarg ;;
1843
1844  -nfp | --nfp | --nf)
1845    # Obsolete; use --without-fp.
1846    with_fp=no ;;
1847
1848  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1849  | --no-cr | --no-c | -n)
1850    no_create=yes ;;
1851
1852  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1853  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1854    no_recursion=yes ;;
1855
1856  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1857  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1858  | --oldin | --oldi | --old | --ol | --o)
1859    ac_prev=oldincludedir ;;
1860  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1861  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1862  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1863    oldincludedir=$ac_optarg ;;
1864
1865  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1866    ac_prev=prefix ;;
1867  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1868    prefix=$ac_optarg ;;
1869
1870  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1871  | --program-pre | --program-pr | --program-p)
1872    ac_prev=program_prefix ;;
1873  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1874  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1875    program_prefix=$ac_optarg ;;
1876
1877  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1878  | --program-suf | --program-su | --program-s)
1879    ac_prev=program_suffix ;;
1880  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1881  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1882    program_suffix=$ac_optarg ;;
1883
1884  -program-transform-name | --program-transform-name \
1885  | --program-transform-nam | --program-transform-na \
1886  | --program-transform-n | --program-transform- \
1887  | --program-transform | --program-transfor \
1888  | --program-transfo | --program-transf \
1889  | --program-trans | --program-tran \
1890  | --progr-tra | --program-tr | --program-t)
1891    ac_prev=program_transform_name ;;
1892  -program-transform-name=* | --program-transform-name=* \
1893  | --program-transform-nam=* | --program-transform-na=* \
1894  | --program-transform-n=* | --program-transform-=* \
1895  | --program-transform=* | --program-transfor=* \
1896  | --program-transfo=* | --program-transf=* \
1897  | --program-trans=* | --program-tran=* \
1898  | --progr-tra=* | --program-tr=* | --program-t=*)
1899    program_transform_name=$ac_optarg ;;
1900
1901  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1902    ac_prev=pdfdir ;;
1903  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1904    pdfdir=$ac_optarg ;;
1905
1906  -psdir | --psdir | --psdi | --psd | --ps)
1907    ac_prev=psdir ;;
1908  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1909    psdir=$ac_optarg ;;
1910
1911  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1912  | -silent | --silent | --silen | --sile | --sil)
1913    silent=yes ;;
1914
1915  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1916    ac_prev=sbindir ;;
1917  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1918  | --sbi=* | --sb=*)
1919    sbindir=$ac_optarg ;;
1920
1921  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1922  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1923  | --sharedst | --shareds | --shared | --share | --shar \
1924  | --sha | --sh)
1925    ac_prev=sharedstatedir ;;
1926  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1927  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1928  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1929  | --sha=* | --sh=*)
1930    sharedstatedir=$ac_optarg ;;
1931
1932  -site | --site | --sit)
1933    ac_prev=site ;;
1934  -site=* | --site=* | --sit=*)
1935    site=$ac_optarg ;;
1936
1937  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1938    ac_prev=srcdir ;;
1939  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1940    srcdir=$ac_optarg ;;
1941
1942  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1943  | --syscon | --sysco | --sysc | --sys | --sy)
1944    ac_prev=sysconfdir ;;
1945  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1946  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1947    sysconfdir=$ac_optarg ;;
1948
1949  -target | --target | --targe | --targ | --tar | --ta | --t)
1950    ac_prev=target_alias ;;
1951  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1952    target_alias=$ac_optarg ;;
1953
1954  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1955    verbose=yes ;;
1956
1957  -version | --version | --versio | --versi | --vers | -V)
1958    ac_init_version=: ;;
1959
1960  -with-* | --with-*)
1961    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1962    # Reject names that are not valid shell variable names.
1963    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1964      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1965   { (exit 1); exit 1; }; }
1966    ac_useropt_orig=$ac_useropt
1967    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1968    case $ac_user_opts in
1969      *"
1970"with_$ac_useropt"
1971"*) ;;
1972      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1973	 ac_unrecognized_sep=', ';;
1974    esac
1975    eval with_$ac_useropt=\$ac_optarg ;;
1976
1977  -without-* | --without-*)
1978    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1979    # Reject names that are not valid shell variable names.
1980    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1981      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1982   { (exit 1); exit 1; }; }
1983    ac_useropt_orig=$ac_useropt
1984    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1985    case $ac_user_opts in
1986      *"
1987"with_$ac_useropt"
1988"*) ;;
1989      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1990	 ac_unrecognized_sep=', ';;
1991    esac
1992    eval with_$ac_useropt=no ;;
1993
1994  --x)
1995    # Obsolete; use --with-x.
1996    with_x=yes ;;
1997
1998  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1999  | --x-incl | --x-inc | --x-in | --x-i)
2000    ac_prev=x_includes ;;
2001  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2002  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2003    x_includes=$ac_optarg ;;
2004
2005  -x-libraries | --x-libraries | --x-librarie | --x-librari \
2006  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2007    ac_prev=x_libraries ;;
2008  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2009  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2010    x_libraries=$ac_optarg ;;
2011
2012  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
2013Try \`$0 --help' for more information." >&2
2014   { (exit 1); exit 1; }; }
2015    ;;
2016
2017  *=*)
2018    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2019    # Reject names that are not valid shell variable names.
2020    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
2021      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
2022   { (exit 1); exit 1; }; }
2023    eval $ac_envvar=\$ac_optarg
2024    export $ac_envvar ;;
2025
2026  *)
2027    # FIXME: should be removed in autoconf 3.0.
2028    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2029    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2030      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2031    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2032    ;;
2033
2034  esac
2035done
2036
2037if test -n "$ac_prev"; then
2038  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2039  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
2040   { (exit 1); exit 1; }; }
2041fi
2042
2043if test -n "$ac_unrecognized_opts"; then
2044  case $enable_option_checking in
2045    no) ;;
2046    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
2047   { (exit 1); exit 1; }; } ;;
2048    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2049  esac
2050fi
2051
2052# Check all directory arguments for consistency.
2053for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
2054		datadir sysconfdir sharedstatedir localstatedir includedir \
2055		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2056		libdir localedir mandir
2057do
2058  eval ac_val=\$$ac_var
2059  # Remove trailing slashes.
2060  case $ac_val in
2061    */ )
2062      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2063      eval $ac_var=\$ac_val;;
2064  esac
2065  # Be sure to have absolute directory names.
2066  case $ac_val in
2067    [\\/$]* | ?:[\\/]* )  continue;;
2068    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2069  esac
2070  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
2071   { (exit 1); exit 1; }; }
2072done
2073
2074# There might be people who depend on the old broken behavior: `$host'
2075# used to hold the argument of --host etc.
2076# FIXME: To remove some day.
2077build=$build_alias
2078host=$host_alias
2079target=$target_alias
2080
2081# FIXME: To remove some day.
2082if test "x$host_alias" != x; then
2083  if test "x$build_alias" = x; then
2084    cross_compiling=maybe
2085    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2086    If a cross compiler is detected then cross compile mode will be used." >&2
2087  elif test "x$build_alias" != "x$host_alias"; then
2088    cross_compiling=yes
2089  fi
2090fi
2091
2092ac_tool_prefix=
2093test -n "$host_alias" && ac_tool_prefix=$host_alias-
2094
2095test "$silent" = yes && exec 6>/dev/null
2096
2097
2098ac_pwd=`pwd` && test -n "$ac_pwd" &&
2099ac_ls_di=`ls -di .` &&
2100ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2101  { $as_echo "$as_me: error: working directory cannot be determined" >&2
2102   { (exit 1); exit 1; }; }
2103test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2104  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
2105   { (exit 1); exit 1; }; }
2106
2107
2108# Find the source files, if location was not specified.
2109if test -z "$srcdir"; then
2110  ac_srcdir_defaulted=yes
2111  # Try the directory containing this script, then the parent directory.
2112  ac_confdir=`$as_dirname -- "$as_myself" ||
2113$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2114	 X"$as_myself" : 'X\(//\)[^/]' \| \
2115	 X"$as_myself" : 'X\(//\)$' \| \
2116	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2117$as_echo X"$as_myself" |
2118    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2119	    s//\1/
2120	    q
2121	  }
2122	  /^X\(\/\/\)[^/].*/{
2123	    s//\1/
2124	    q
2125	  }
2126	  /^X\(\/\/\)$/{
2127	    s//\1/
2128	    q
2129	  }
2130	  /^X\(\/\).*/{
2131	    s//\1/
2132	    q
2133	  }
2134	  s/.*/./; q'`
2135  srcdir=$ac_confdir
2136  if test ! -r "$srcdir/$ac_unique_file"; then
2137    srcdir=..
2138  fi
2139else
2140  ac_srcdir_defaulted=no
2141fi
2142if test ! -r "$srcdir/$ac_unique_file"; then
2143  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2144  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2145   { (exit 1); exit 1; }; }
2146fi
2147ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2148ac_abs_confdir=`(
2149	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
2150   { (exit 1); exit 1; }; }
2151	pwd)`
2152# When building in place, set srcdir=.
2153if test "$ac_abs_confdir" = "$ac_pwd"; then
2154  srcdir=.
2155fi
2156# Remove unnecessary trailing slashes from srcdir.
2157# Double slashes in file names in object file debugging info
2158# mess up M-x gdb in Emacs.
2159case $srcdir in
2160*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2161esac
2162for ac_var in $ac_precious_vars; do
2163  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2164  eval ac_env_${ac_var}_value=\$${ac_var}
2165  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2166  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2167done
2168
2169#
2170# Report the --help message.
2171#
2172if test "$ac_init_help" = "long"; then
2173  # Omit some internal or obsolete options to make the list less imposing.
2174  # This message is too long to be a string in the A/UX 3.1 sh.
2175  cat <<_ACEOF
2176\`configure' configures libpreludedb 1.2.6 to adapt to many kinds of systems.
2177
2178Usage: $0 [OPTION]... [VAR=VALUE]...
2179
2180To assign environment variables (e.g., CC, CFLAGS...), specify them as
2181VAR=VALUE.  See below for descriptions of some of the useful variables.
2182
2183Defaults for the options are specified in brackets.
2184
2185Configuration:
2186  -h, --help              display this help and exit
2187      --help=short        display options specific to this package
2188      --help=recursive    display the short help of all the included packages
2189  -V, --version           display version information and exit
2190  -q, --quiet, --silent   do not print \`checking...' messages
2191      --cache-file=FILE   cache test results in FILE [disabled]
2192  -C, --config-cache      alias for \`--cache-file=config.cache'
2193  -n, --no-create         do not create output files
2194      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2195
2196Installation directories:
2197  --prefix=PREFIX         install architecture-independent files in PREFIX
2198                          [$ac_default_prefix]
2199  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2200                          [PREFIX]
2201
2202By default, \`make install' will install all the files in
2203\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2204an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2205for instance \`--prefix=\$HOME'.
2206
2207For better control, use the options below.
2208
2209Fine tuning of the installation directories:
2210  --bindir=DIR            user executables [EPREFIX/bin]
2211  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2212  --libexecdir=DIR        program executables [EPREFIX/libexec]
2213  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2214  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2215  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2216  --libdir=DIR            object code libraries [EPREFIX/lib]
2217  --includedir=DIR        C header files [PREFIX/include]
2218  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2219  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2220  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2221  --infodir=DIR           info documentation [DATAROOTDIR/info]
2222  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2223  --mandir=DIR            man documentation [DATAROOTDIR/man]
2224  --docdir=DIR            documentation root [DATAROOTDIR/doc/libpreludedb]
2225  --htmldir=DIR           html documentation [DOCDIR]
2226  --dvidir=DIR            dvi documentation [DOCDIR]
2227  --pdfdir=DIR            pdf documentation [DOCDIR]
2228  --psdir=DIR             ps documentation [DOCDIR]
2229_ACEOF
2230
2231  cat <<\_ACEOF
2232
2233Program names:
2234  --program-prefix=PREFIX            prepend PREFIX to installed program names
2235  --program-suffix=SUFFIX            append SUFFIX to installed program names
2236  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2237
2238System types:
2239  --build=BUILD     configure for building on BUILD [guessed]
2240  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2241  --target=TARGET   configure for building compilers for TARGET [HOST]
2242_ACEOF
2243fi
2244
2245if test -n "$ac_init_help"; then
2246  case $ac_init_help in
2247     short | recursive ) echo "Configuration of libpreludedb 1.2.6:";;
2248   esac
2249  cat <<\_ACEOF
2250
2251Optional Features:
2252  --disable-option-checking  ignore unrecognized --enable/--with options
2253  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2254  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2255  --enable-maintainer-mode  enable make rules and dependencies not useful
2256			  (and sometimes confusing) to the casual installer
2257  --disable-dependency-tracking  speeds up one-time build
2258  --enable-dependency-tracking   do not reject slow dependency extractors
2259  --enable-threads={posix|solaris|pth|windows}
2260                          specify multithreading API
2261  --disable-threads       build without multithread safety
2262  --enable-static[=PKGS]  build static libraries [default=no]
2263  --enable-shared[=PKGS]  build shared libraries [default=yes]
2264  --enable-fast-install[=PKGS]
2265                          optimize for fast installation [default=yes]
2266  --disable-libtool-lock  avoid locking (might break parallel builds)
2267  --enable-easy-bindings  Enable support for high level binding [default=yes]
2268  --disable-rpath         do not hardcode runtime library paths
2269  --enable-gtk-doc        use gtk-doc to build documentation [default=no]
2270
2271Optional Packages:
2272  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2273  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2274  --with-pic              try to use only PIC/non-PIC objects [default=use
2275                          both]
2276  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2277  --with-libprelude-prefix=PFX
2278                          Prefix where libprelude is installed (optional)
2279  --with-mysql=[ARG]      use MySQL client library [default=yes], optionally
2280                          specify path to mysql_config
2281  --with-postgresql=[ARG] use PostgreSQL library [default=yes], optionally
2282                          specify path to pg_config
2283  --with-sqlite3=[ARG]    use SQLite 3 library [default=yes], optionally
2284                          specify the prefix for sqlite3 library
2285  --with-swig[=PATH]      Re-generate python bindings sources [default=auto]
2286  --with-python2[=PATH]   Enable support for python2 binding [default=auto]
2287  --with-python3[=PATH]   Enable support for python3 binding [default=auto]
2288  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2289  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2290  --without-libpth-prefix     don't search for libpth in includedir and libdir
2291  --with-html-dir=PATH    path to installed docs
2292
2293Some influential environment variables:
2294  CC          C compiler command
2295  CFLAGS      C compiler flags
2296  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2297              nonstandard directory <lib dir>
2298  LIBS        libraries to pass to the linker, e.g. -l<library>
2299  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2300              you have headers in a nonstandard directory <include dir>
2301  CXX         C++ compiler command
2302  CXXFLAGS    C++ compiler flags
2303  CPP         C preprocessor
2304  CXXCPP      C++ preprocessor
2305  MYSQL_CONFIG
2306              Full path to mysql_config program
2307  PKG_CONFIG  path to pkg-config utility
2308
2309Use these variables to override the choices made by `configure' or to help
2310it to find libraries and programs with nonstandard names/locations.
2311
2312_ACEOF
2313ac_status=$?
2314fi
2315
2316if test "$ac_init_help" = "recursive"; then
2317  # If there are subdirs, report their specific --help.
2318  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2319    test -d "$ac_dir" ||
2320      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2321      continue
2322    ac_builddir=.
2323
2324case "$ac_dir" in
2325.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2326*)
2327  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2328  # A ".." for each directory in $ac_dir_suffix.
2329  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2330  case $ac_top_builddir_sub in
2331  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2332  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2333  esac ;;
2334esac
2335ac_abs_top_builddir=$ac_pwd
2336ac_abs_builddir=$ac_pwd$ac_dir_suffix
2337# for backward compatibility:
2338ac_top_builddir=$ac_top_build_prefix
2339
2340case $srcdir in
2341  .)  # We are building in place.
2342    ac_srcdir=.
2343    ac_top_srcdir=$ac_top_builddir_sub
2344    ac_abs_top_srcdir=$ac_pwd ;;
2345  [\\/]* | ?:[\\/]* )  # Absolute name.
2346    ac_srcdir=$srcdir$ac_dir_suffix;
2347    ac_top_srcdir=$srcdir
2348    ac_abs_top_srcdir=$srcdir ;;
2349  *) # Relative name.
2350    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2351    ac_top_srcdir=$ac_top_build_prefix$srcdir
2352    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2353esac
2354ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2355
2356    cd "$ac_dir" || { ac_status=$?; continue; }
2357    # Check for guested configure.
2358    if test -f "$ac_srcdir/configure.gnu"; then
2359      echo &&
2360      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2361    elif test -f "$ac_srcdir/configure"; then
2362      echo &&
2363      $SHELL "$ac_srcdir/configure" --help=recursive
2364    else
2365      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2366    fi || ac_status=$?
2367    cd "$ac_pwd" || { ac_status=$?; break; }
2368  done
2369fi
2370
2371test -n "$ac_init_help" && exit $ac_status
2372if $ac_init_version; then
2373  cat <<\_ACEOF
2374libpreludedb configure 1.2.6
2375generated by GNU Autoconf 2.63
2376
2377Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
23782002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2379This configure script is free software; the Free Software Foundation
2380gives unlimited permission to copy, distribute and modify it.
2381_ACEOF
2382  exit
2383fi
2384cat >config.log <<_ACEOF
2385This file contains any messages produced by compilers while
2386running configure, to aid debugging if configure makes a mistake.
2387
2388It was created by libpreludedb $as_me 1.2.6, which was
2389generated by GNU Autoconf 2.63.  Invocation command line was
2390
2391  $ $0 $@
2392
2393_ACEOF
2394exec 5>>config.log
2395{
2396cat <<_ASUNAME
2397## --------- ##
2398## Platform. ##
2399## --------- ##
2400
2401hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2402uname -m = `(uname -m) 2>/dev/null || echo unknown`
2403uname -r = `(uname -r) 2>/dev/null || echo unknown`
2404uname -s = `(uname -s) 2>/dev/null || echo unknown`
2405uname -v = `(uname -v) 2>/dev/null || echo unknown`
2406
2407/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2408/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2409
2410/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2411/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2412/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2413/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2414/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2415/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2416/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2417
2418_ASUNAME
2419
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423  IFS=$as_save_IFS
2424  test -z "$as_dir" && as_dir=.
2425  $as_echo "PATH: $as_dir"
2426done
2427IFS=$as_save_IFS
2428
2429} >&5
2430
2431cat >&5 <<_ACEOF
2432
2433
2434## ----------- ##
2435## Core tests. ##
2436## ----------- ##
2437
2438_ACEOF
2439
2440
2441# Keep a trace of the command line.
2442# Strip out --no-create and --no-recursion so they do not pile up.
2443# Strip out --silent because we don't want to record it for future runs.
2444# Also quote any args containing shell meta-characters.
2445# Make two passes to allow for proper duplicate-argument suppression.
2446ac_configure_args=
2447ac_configure_args0=
2448ac_configure_args1=
2449ac_must_keep_next=false
2450for ac_pass in 1 2
2451do
2452  for ac_arg
2453  do
2454    case $ac_arg in
2455    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2456    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2457    | -silent | --silent | --silen | --sile | --sil)
2458      continue ;;
2459    *\'*)
2460      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2461    esac
2462    case $ac_pass in
2463    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2464    2)
2465      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2466      if test $ac_must_keep_next = true; then
2467	ac_must_keep_next=false # Got value, back to normal.
2468      else
2469	case $ac_arg in
2470	  *=* | --config-cache | -C | -disable-* | --disable-* \
2471	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2472	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2473	  | -with-* | --with-* | -without-* | --without-* | --x)
2474	    case "$ac_configure_args0 " in
2475	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2476	    esac
2477	    ;;
2478	  -* ) ac_must_keep_next=true ;;
2479	esac
2480      fi
2481      ac_configure_args="$ac_configure_args '$ac_arg'"
2482      ;;
2483    esac
2484  done
2485done
2486$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2487$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2488
2489# When interrupted or exit'd, cleanup temporary files, and complete
2490# config.log.  We remove comments because anyway the quotes in there
2491# would cause problems or look ugly.
2492# WARNING: Use '\'' to represent an apostrophe within the trap.
2493# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2494trap 'exit_status=$?
2495  # Save into config.log some information that might help in debugging.
2496  {
2497    echo
2498
2499    cat <<\_ASBOX
2500## ---------------- ##
2501## Cache variables. ##
2502## ---------------- ##
2503_ASBOX
2504    echo
2505    # The following way of writing the cache mishandles newlines in values,
2506(
2507  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2508    eval ac_val=\$$ac_var
2509    case $ac_val in #(
2510    *${as_nl}*)
2511      case $ac_var in #(
2512      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2513$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2514      esac
2515      case $ac_var in #(
2516      _ | IFS | as_nl) ;; #(
2517      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2518      *) $as_unset $ac_var ;;
2519      esac ;;
2520    esac
2521  done
2522  (set) 2>&1 |
2523    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2524    *${as_nl}ac_space=\ *)
2525      sed -n \
2526	"s/'\''/'\''\\\\'\'''\''/g;
2527	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2528      ;; #(
2529    *)
2530      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2531      ;;
2532    esac |
2533    sort
2534)
2535    echo
2536
2537    cat <<\_ASBOX
2538## ----------------- ##
2539## Output variables. ##
2540## ----------------- ##
2541_ASBOX
2542    echo
2543    for ac_var in $ac_subst_vars
2544    do
2545      eval ac_val=\$$ac_var
2546      case $ac_val in
2547      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2548      esac
2549      $as_echo "$ac_var='\''$ac_val'\''"
2550    done | sort
2551    echo
2552
2553    if test -n "$ac_subst_files"; then
2554      cat <<\_ASBOX
2555## ------------------- ##
2556## File substitutions. ##
2557## ------------------- ##
2558_ASBOX
2559      echo
2560      for ac_var in $ac_subst_files
2561      do
2562	eval ac_val=\$$ac_var
2563	case $ac_val in
2564	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2565	esac
2566	$as_echo "$ac_var='\''$ac_val'\''"
2567      done | sort
2568      echo
2569    fi
2570
2571    if test -s confdefs.h; then
2572      cat <<\_ASBOX
2573## ----------- ##
2574## confdefs.h. ##
2575## ----------- ##
2576_ASBOX
2577      echo
2578      cat confdefs.h
2579      echo
2580    fi
2581    test "$ac_signal" != 0 &&
2582      $as_echo "$as_me: caught signal $ac_signal"
2583    $as_echo "$as_me: exit $exit_status"
2584  } >&5
2585  rm -f core *.core core.conftest.* &&
2586    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2587    exit $exit_status
2588' 0
2589for ac_signal in 1 2 13 15; do
2590  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2591done
2592ac_signal=0
2593
2594# confdefs.h avoids OS command line length limits that DEFS can exceed.
2595rm -f -r conftest* confdefs.h
2596
2597# Predefined preprocessor variables.
2598
2599cat >>confdefs.h <<_ACEOF
2600#define PACKAGE_NAME "$PACKAGE_NAME"
2601_ACEOF
2602
2603
2604cat >>confdefs.h <<_ACEOF
2605#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2606_ACEOF
2607
2608
2609cat >>confdefs.h <<_ACEOF
2610#define PACKAGE_VERSION "$PACKAGE_VERSION"
2611_ACEOF
2612
2613
2614cat >>confdefs.h <<_ACEOF
2615#define PACKAGE_STRING "$PACKAGE_STRING"
2616_ACEOF
2617
2618
2619cat >>confdefs.h <<_ACEOF
2620#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2621_ACEOF
2622
2623
2624# Let the site file select an alternate cache file if it wants to.
2625# Prefer an explicitly selected file to automatically selected ones.
2626ac_site_file1=NONE
2627ac_site_file2=NONE
2628if test -n "$CONFIG_SITE"; then
2629  ac_site_file1=$CONFIG_SITE
2630elif test "x$prefix" != xNONE; then
2631  ac_site_file1=$prefix/share/config.site
2632  ac_site_file2=$prefix/etc/config.site
2633else
2634  ac_site_file1=$ac_default_prefix/share/config.site
2635  ac_site_file2=$ac_default_prefix/etc/config.site
2636fi
2637for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2638do
2639  test "x$ac_site_file" = xNONE && continue
2640  if test -r "$ac_site_file"; then
2641    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2642$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2643    sed 's/^/| /' "$ac_site_file" >&5
2644    . "$ac_site_file"
2645  fi
2646done
2647
2648if test -r "$cache_file"; then
2649  # Some versions of bash will fail to source /dev/null (special
2650  # files actually), so we avoid doing that.
2651  if test -f "$cache_file"; then
2652    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2653$as_echo "$as_me: loading cache $cache_file" >&6;}
2654    case $cache_file in
2655      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2656      *)                      . "./$cache_file";;
2657    esac
2658  fi
2659else
2660  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2661$as_echo "$as_me: creating cache $cache_file" >&6;}
2662  >$cache_file
2663fi
2664
2665gl_header_list="$gl_header_list sys/time.h"
2666gl_header_list="$gl_header_list sys/socket.h"
2667gl_func_list="$gl_func_list gettimeofday"
2668gl_header_list="$gl_header_list sys/mman.h"
2669gl_func_list="$gl_func_list mprotect"
2670gl_func_list="$gl_func_list snprintf"
2671gl_header_list="$gl_header_list wchar.h"
2672gl_header_list="$gl_header_list stdint.h"
2673gl_func_list="$gl_func_list strdup"
2674gl_func_list="$gl_func_list strndup"
2675gl_func_list="$gl_func_list localtime_r"
2676gl_header_list="$gl_header_list unistd.h"
2677gl_func_list="$gl_func_list vasnprintf"
2678gl_header_list="$gl_header_list features.h"
2679gl_func_list="$gl_func_list _set_invalid_parameter_handler"
2680gl_header_list="$gl_header_list inttypes.h"
2681# Check that the precious variables saved in the cache have kept the same
2682# value.
2683ac_cache_corrupted=false
2684for ac_var in $ac_precious_vars; do
2685  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2686  eval ac_new_set=\$ac_env_${ac_var}_set
2687  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2688  eval ac_new_val=\$ac_env_${ac_var}_value
2689  case $ac_old_set,$ac_new_set in
2690    set,)
2691      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2692$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2693      ac_cache_corrupted=: ;;
2694    ,set)
2695      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2696$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2697      ac_cache_corrupted=: ;;
2698    ,);;
2699    *)
2700      if test "x$ac_old_val" != "x$ac_new_val"; then
2701	# differences in whitespace do not lead to failure.
2702	ac_old_val_w=`echo x $ac_old_val`
2703	ac_new_val_w=`echo x $ac_new_val`
2704	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2705	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2706$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2707	  ac_cache_corrupted=:
2708	else
2709	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2710$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2711	  eval $ac_var=\$ac_old_val
2712	fi
2713	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2714$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2715	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2716$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2717      fi;;
2718  esac
2719  # Pass precious variables to config.status.
2720  if test "$ac_new_set" = set; then
2721    case $ac_new_val in
2722    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2723    *) ac_arg=$ac_var=$ac_new_val ;;
2724    esac
2725    case " $ac_configure_args " in
2726      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2727      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2728    esac
2729  fi
2730done
2731if $ac_cache_corrupted; then
2732  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2734  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2735$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2736  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2737$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2738   { (exit 1); exit 1; }; }
2739fi
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765ac_ext=c
2766ac_cpp='$CPP $CPPFLAGS'
2767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770
2771
2772
2773LIBPRELUDEDB_MAJOR_VERSION=1
2774LIBPRELUDEDB_MINOR_VERSION=2
2775LIBPRELUDEDB_MICRO_VERSION=6
2776LIBPRELUDEDB_LEVEL_VERSION=LIBPRELUDEDB_RELEASE_LEVEL_FINAL
2777LIBPRELUDEDB_SERIAL_VERSION=0
2778
2779libpreludedb_current=7
2780libpreludedb_revision=0
2781libpreludedb_age=0
2782LIBPRELUDEDB_SONAME=$libpreludedb_current:$libpreludedb_revision:$libpreludedb_age
2783
2784libpreludedbcpp_current=2
2785libpreludedbcpp_revision=0
2786libpreludedbcpp_age=0
2787LIBPRELUDEDBCPP_SONAME=$libpreludedbcpp_current:$libpreludedbcpp_revision:$libpreludedbcpp_age
2788
2789
2790ac_aux_dir=
2791for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2792  if test -f "$ac_dir/install-sh"; then
2793    ac_aux_dir=$ac_dir
2794    ac_install_sh="$ac_aux_dir/install-sh -c"
2795    break
2796  elif test -f "$ac_dir/install.sh"; then
2797    ac_aux_dir=$ac_dir
2798    ac_install_sh="$ac_aux_dir/install.sh -c"
2799    break
2800  elif test -f "$ac_dir/shtool"; then
2801    ac_aux_dir=$ac_dir
2802    ac_install_sh="$ac_aux_dir/shtool install -c"
2803    break
2804  fi
2805done
2806if test -z "$ac_aux_dir"; then
2807  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2808$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2809   { (exit 1); exit 1; }; }
2810fi
2811
2812# These three variables are undocumented and unsupported,
2813# and are intended to be withdrawn in a future Autoconf release.
2814# They can cause serious problems if a builder's source tree is in a directory
2815# whose full name contains unusual characters.
2816ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2817ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2818ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2819
2820
2821# Make sure we can run config.sub.
2822$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2823  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2824$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2825   { (exit 1); exit 1; }; }
2826
2827{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2828$as_echo_n "checking build system type... " >&6; }
2829if test "${ac_cv_build+set}" = set; then
2830  $as_echo_n "(cached) " >&6
2831else
2832  ac_build_alias=$build_alias
2833test "x$ac_build_alias" = x &&
2834  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2835test "x$ac_build_alias" = x &&
2836  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2837$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2838   { (exit 1); exit 1; }; }
2839ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2840  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2841$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2842   { (exit 1); exit 1; }; }
2843
2844fi
2845{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2846$as_echo "$ac_cv_build" >&6; }
2847case $ac_cv_build in
2848*-*-*) ;;
2849*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2850$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2851   { (exit 1); exit 1; }; };;
2852esac
2853build=$ac_cv_build
2854ac_save_IFS=$IFS; IFS='-'
2855set x $ac_cv_build
2856shift
2857build_cpu=$1
2858build_vendor=$2
2859shift; shift
2860# Remember, the first character of IFS is used to create $*,
2861# except with old shells:
2862build_os=$*
2863IFS=$ac_save_IFS
2864case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2865
2866
2867{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2868$as_echo_n "checking host system type... " >&6; }
2869if test "${ac_cv_host+set}" = set; then
2870  $as_echo_n "(cached) " >&6
2871else
2872  if test "x$host_alias" = x; then
2873  ac_cv_host=$ac_cv_build
2874else
2875  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2876    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2877$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2878   { (exit 1); exit 1; }; }
2879fi
2880
2881fi
2882{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2883$as_echo "$ac_cv_host" >&6; }
2884case $ac_cv_host in
2885*-*-*) ;;
2886*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2887$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2888   { (exit 1); exit 1; }; };;
2889esac
2890host=$ac_cv_host
2891ac_save_IFS=$IFS; IFS='-'
2892set x $ac_cv_host
2893shift
2894host_cpu=$1
2895host_vendor=$2
2896shift; shift
2897# Remember, the first character of IFS is used to create $*,
2898# except with old shells:
2899host_os=$*
2900IFS=$ac_save_IFS
2901case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2902
2903
2904{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2905$as_echo_n "checking target system type... " >&6; }
2906if test "${ac_cv_target+set}" = set; then
2907  $as_echo_n "(cached) " >&6
2908else
2909  if test "x$target_alias" = x; then
2910  ac_cv_target=$ac_cv_host
2911else
2912  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2913    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2914$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2915   { (exit 1); exit 1; }; }
2916fi
2917
2918fi
2919{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2920$as_echo "$ac_cv_target" >&6; }
2921case $ac_cv_target in
2922*-*-*) ;;
2923*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2924$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2925   { (exit 1); exit 1; }; };;
2926esac
2927target=$ac_cv_target
2928ac_save_IFS=$IFS; IFS='-'
2929set x $ac_cv_target
2930shift
2931target_cpu=$1
2932target_vendor=$2
2933shift; shift
2934# Remember, the first character of IFS is used to create $*,
2935# except with old shells:
2936target_os=$*
2937IFS=$ac_save_IFS
2938case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2939
2940
2941# The aliases save the names the user supplied, while $host etc.
2942# will get canonicalized.
2943test -n "$target_alias" &&
2944  test "$program_prefix$program_suffix$program_transform_name" = \
2945    NONENONEs,x,x, &&
2946  program_prefix=${target_alias}-
2947
2948
2949am__api_version='1.11'
2950
2951# Find a good install program.  We prefer a C program (faster),
2952# so one script is as good as another.  But avoid the broken or
2953# incompatible versions:
2954# SysV /etc/install, /usr/sbin/install
2955# SunOS /usr/etc/install
2956# IRIX /sbin/install
2957# AIX /bin/install
2958# AmigaOS /C/install, which installs bootblocks on floppy discs
2959# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2960# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2961# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2962# OS/2's system install, which has a completely different semantic
2963# ./install, which can be erroneously created by make from ./install.sh.
2964# Reject install programs that cannot install multiple files.
2965{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2966$as_echo_n "checking for a BSD-compatible install... " >&6; }
2967if test -z "$INSTALL"; then
2968if test "${ac_cv_path_install+set}" = set; then
2969  $as_echo_n "(cached) " >&6
2970else
2971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974  IFS=$as_save_IFS
2975  test -z "$as_dir" && as_dir=.
2976  # Account for people who put trailing slashes in PATH elements.
2977case $as_dir/ in
2978  ./ | .// | /cC/* | \
2979  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2980  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2981  /usr/ucb/* ) ;;
2982  *)
2983    # OSF1 and SCO ODT 3.0 have their own names for install.
2984    # Don't use installbsd from OSF since it installs stuff as root
2985    # by default.
2986    for ac_prog in ginstall scoinst install; do
2987      for ac_exec_ext in '' $ac_executable_extensions; do
2988	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2989	  if test $ac_prog = install &&
2990	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991	    # AIX install.  It has an incompatible calling convention.
2992	    :
2993	  elif test $ac_prog = install &&
2994	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2995	    # program-specific install script used by HP pwplus--don't use.
2996	    :
2997	  else
2998	    rm -rf conftest.one conftest.two conftest.dir
2999	    echo one > conftest.one
3000	    echo two > conftest.two
3001	    mkdir conftest.dir
3002	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3003	      test -s conftest.one && test -s conftest.two &&
3004	      test -s conftest.dir/conftest.one &&
3005	      test -s conftest.dir/conftest.two
3006	    then
3007	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3008	      break 3
3009	    fi
3010	  fi
3011	fi
3012      done
3013    done
3014    ;;
3015esac
3016
3017done
3018IFS=$as_save_IFS
3019
3020rm -rf conftest.one conftest.two conftest.dir
3021
3022fi
3023  if test "${ac_cv_path_install+set}" = set; then
3024    INSTALL=$ac_cv_path_install
3025  else
3026    # As a last resort, use the slow shell script.  Don't cache a
3027    # value for INSTALL within a source directory, because that will
3028    # break other packages using the cache if that directory is
3029    # removed, or if the value is a relative name.
3030    INSTALL=$ac_install_sh
3031  fi
3032fi
3033{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3034$as_echo "$INSTALL" >&6; }
3035
3036# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3037# It thinks the first close brace ends the variable substitution.
3038test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3039
3040test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3041
3042test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3043
3044{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3045$as_echo_n "checking whether build environment is sane... " >&6; }
3046# Just in case
3047sleep 1
3048echo timestamp > conftest.file
3049# Reject unsafe characters in $srcdir or the absolute working directory
3050# name.  Accept space and tab only in the latter.
3051am_lf='
3052'
3053case `pwd` in
3054  *[\\\"\#\$\&\'\`$am_lf]*)
3055    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
3056$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
3057   { (exit 1); exit 1; }; };;
3058esac
3059case $srcdir in
3060  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3061    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
3062$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
3063   { (exit 1); exit 1; }; };;
3064esac
3065
3066# Do `set' in a subshell so we don't clobber the current shell's
3067# arguments.  Must try -L first in case configure is actually a
3068# symlink; some systems play weird games with the mod time of symlinks
3069# (eg FreeBSD returns the mod time of the symlink's containing
3070# directory).
3071if (
3072   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3073   if test "$*" = "X"; then
3074      # -L didn't work.
3075      set X `ls -t "$srcdir/configure" conftest.file`
3076   fi
3077   rm -f conftest.file
3078   if test "$*" != "X $srcdir/configure conftest.file" \
3079      && test "$*" != "X conftest.file $srcdir/configure"; then
3080
3081      # If neither matched, then we have a broken ls.  This can happen
3082      # if, for instance, CONFIG_SHELL is bash and it inherits a
3083      # broken ls alias from the environment.  This has actually
3084      # happened.  Such a system could not be considered "sane".
3085      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3086alias in your environment" >&5
3087$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3088alias in your environment" >&2;}
3089   { (exit 1); exit 1; }; }
3090   fi
3091
3092   test "$2" = conftest.file
3093   )
3094then
3095   # Ok.
3096   :
3097else
3098   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3099Check your system clock" >&5
3100$as_echo "$as_me: error: newly created file is older than distributed files!
3101Check your system clock" >&2;}
3102   { (exit 1); exit 1; }; }
3103fi
3104{ $as_echo "$as_me:$LINENO: result: yes" >&5
3105$as_echo "yes" >&6; }
3106test "$program_prefix" != NONE &&
3107  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3108# Use a double $ so make ignores it.
3109test "$program_suffix" != NONE &&
3110  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3111# Double any \ or $.
3112# By default was `s,x,x', remove it if useless.
3113ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3114program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3115
3116# expand $ac_aux_dir to an absolute path
3117am_aux_dir=`cd $ac_aux_dir && pwd`
3118
3119if test x"${MISSING+set}" != xset; then
3120  case $am_aux_dir in
3121  *\ * | *\	*)
3122    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3123  *)
3124    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3125  esac
3126fi
3127# Use eval to expand $SHELL
3128if eval "$MISSING --run true"; then
3129  am_missing_run="$MISSING --run "
3130else
3131  am_missing_run=
3132  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3133$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3134fi
3135
3136if test x"${install_sh}" != xset; then
3137  case $am_aux_dir in
3138  *\ * | *\	*)
3139    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3140  *)
3141    install_sh="\${SHELL} $am_aux_dir/install-sh"
3142  esac
3143fi
3144
3145# Installed binaries are usually stripped using `strip' when the user
3146# run `make install-strip'.  However `strip' might not be the right
3147# tool to use in cross-compilation environments, therefore Automake
3148# will honor the `STRIP' environment variable to overrule this program.
3149if test "$cross_compiling" != no; then
3150  if test -n "$ac_tool_prefix"; then
3151  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3152set dummy ${ac_tool_prefix}strip; ac_word=$2
3153{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3154$as_echo_n "checking for $ac_word... " >&6; }
3155if test "${ac_cv_prog_STRIP+set}" = set; then
3156  $as_echo_n "(cached) " >&6
3157else
3158  if test -n "$STRIP"; then
3159  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164  IFS=$as_save_IFS
3165  test -z "$as_dir" && as_dir=.
3166  for ac_exec_ext in '' $ac_executable_extensions; do
3167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3169    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170    break 2
3171  fi
3172done
3173done
3174IFS=$as_save_IFS
3175
3176fi
3177fi
3178STRIP=$ac_cv_prog_STRIP
3179if test -n "$STRIP"; then
3180  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3181$as_echo "$STRIP" >&6; }
3182else
3183  { $as_echo "$as_me:$LINENO: result: no" >&5
3184$as_echo "no" >&6; }
3185fi
3186
3187
3188fi
3189if test -z "$ac_cv_prog_STRIP"; then
3190  ac_ct_STRIP=$STRIP
3191  # Extract the first word of "strip", so it can be a program name with args.
3192set dummy strip; ac_word=$2
3193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3194$as_echo_n "checking for $ac_word... " >&6; }
3195if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3196  $as_echo_n "(cached) " >&6
3197else
3198  if test -n "$ac_ct_STRIP"; then
3199  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3200else
3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH
3203do
3204  IFS=$as_save_IFS
3205  test -z "$as_dir" && as_dir=.
3206  for ac_exec_ext in '' $ac_executable_extensions; do
3207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208    ac_cv_prog_ac_ct_STRIP="strip"
3209    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3210    break 2
3211  fi
3212done
3213done
3214IFS=$as_save_IFS
3215
3216fi
3217fi
3218ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3219if test -n "$ac_ct_STRIP"; then
3220  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3221$as_echo "$ac_ct_STRIP" >&6; }
3222else
3223  { $as_echo "$as_me:$LINENO: result: no" >&5
3224$as_echo "no" >&6; }
3225fi
3226
3227  if test "x$ac_ct_STRIP" = x; then
3228    STRIP=":"
3229  else
3230    case $cross_compiling:$ac_tool_warned in
3231yes:)
3232{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234ac_tool_warned=yes ;;
3235esac
3236    STRIP=$ac_ct_STRIP
3237  fi
3238else
3239  STRIP="$ac_cv_prog_STRIP"
3240fi
3241
3242fi
3243INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3244
3245{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3246$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3247if test -z "$MKDIR_P"; then
3248  if test "${ac_cv_path_mkdir+set}" = set; then
3249  $as_echo_n "(cached) " >&6
3250else
3251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256  for ac_prog in mkdir gmkdir; do
3257	 for ac_exec_ext in '' $ac_executable_extensions; do
3258	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3259	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3260	     'mkdir (GNU coreutils) '* | \
3261	     'mkdir (coreutils) '* | \
3262	     'mkdir (fileutils) '4.1*)
3263	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3264	       break 3;;
3265	   esac
3266	 done
3267       done
3268done
3269IFS=$as_save_IFS
3270
3271fi
3272
3273  if test "${ac_cv_path_mkdir+set}" = set; then
3274    MKDIR_P="$ac_cv_path_mkdir -p"
3275  else
3276    # As a last resort, use the slow shell script.  Don't cache a
3277    # value for MKDIR_P within a source directory, because that will
3278    # break other packages using the cache if that directory is
3279    # removed, or if the value is a relative name.
3280    test -d ./--version && rmdir ./--version
3281    MKDIR_P="$ac_install_sh -d"
3282  fi
3283fi
3284{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3285$as_echo "$MKDIR_P" >&6; }
3286
3287mkdir_p="$MKDIR_P"
3288case $mkdir_p in
3289  [\\/$]* | ?:[\\/]*) ;;
3290  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3291esac
3292
3293for ac_prog in gawk mawk nawk awk
3294do
3295  # Extract the first word of "$ac_prog", so it can be a program name with args.
3296set dummy $ac_prog; ac_word=$2
3297{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3298$as_echo_n "checking for $ac_word... " >&6; }
3299if test "${ac_cv_prog_AWK+set}" = set; then
3300  $as_echo_n "(cached) " >&6
3301else
3302  if test -n "$AWK"; then
3303  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3304else
3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306for as_dir in $PATH
3307do
3308  IFS=$as_save_IFS
3309  test -z "$as_dir" && as_dir=.
3310  for ac_exec_ext in '' $ac_executable_extensions; do
3311  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312    ac_cv_prog_AWK="$ac_prog"
3313    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314    break 2
3315  fi
3316done
3317done
3318IFS=$as_save_IFS
3319
3320fi
3321fi
3322AWK=$ac_cv_prog_AWK
3323if test -n "$AWK"; then
3324  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3325$as_echo "$AWK" >&6; }
3326else
3327  { $as_echo "$as_me:$LINENO: result: no" >&5
3328$as_echo "no" >&6; }
3329fi
3330
3331
3332  test -n "$AWK" && break
3333done
3334
3335{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3336$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3337set x ${MAKE-make}
3338ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3339if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3340  $as_echo_n "(cached) " >&6
3341else
3342  cat >conftest.make <<\_ACEOF
3343SHELL = /bin/sh
3344all:
3345	@echo '@@@%%%=$(MAKE)=@@@%%%'
3346_ACEOF
3347# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3348case `${MAKE-make} -f conftest.make 2>/dev/null` in
3349  *@@@%%%=?*=@@@%%%*)
3350    eval ac_cv_prog_make_${ac_make}_set=yes;;
3351  *)
3352    eval ac_cv_prog_make_${ac_make}_set=no;;
3353esac
3354rm -f conftest.make
3355fi
3356if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3357  { $as_echo "$as_me:$LINENO: result: yes" >&5
3358$as_echo "yes" >&6; }
3359  SET_MAKE=
3360else
3361  { $as_echo "$as_me:$LINENO: result: no" >&5
3362$as_echo "no" >&6; }
3363  SET_MAKE="MAKE=${MAKE-make}"
3364fi
3365
3366rm -rf .tst 2>/dev/null
3367mkdir .tst 2>/dev/null
3368if test -d .tst; then
3369  am__leading_dot=.
3370else
3371  am__leading_dot=_
3372fi
3373rmdir .tst 2>/dev/null
3374
3375if test "`cd $srcdir && pwd`" != "`pwd`"; then
3376  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3377  # is not polluted with repeated "-I."
3378  am__isrc=' -I$(srcdir)'
3379  # test to see if srcdir already configured
3380  if test -f $srcdir/config.status; then
3381    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3382$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3383   { (exit 1); exit 1; }; }
3384  fi
3385fi
3386
3387# test whether we have cygpath
3388if test -z "$CYGPATH_W"; then
3389  if (cygpath --version) >/dev/null 2>/dev/null; then
3390    CYGPATH_W='cygpath -w'
3391  else
3392    CYGPATH_W=echo
3393  fi
3394fi
3395
3396
3397# Define the identity of the package.
3398 PACKAGE='libpreludedb'
3399 VERSION='1.2.6'
3400
3401
3402cat >>confdefs.h <<_ACEOF
3403#define PACKAGE "$PACKAGE"
3404_ACEOF
3405
3406
3407cat >>confdefs.h <<_ACEOF
3408#define VERSION "$VERSION"
3409_ACEOF
3410
3411# Some tools Automake needs.
3412
3413ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3414
3415
3416AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3417
3418
3419AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3420
3421
3422AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3423
3424
3425MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3426
3427# We need awk for the "check" target.  The system "awk" is bad on
3428# some platforms.
3429# Always define AMTAR for backward compatibility.
3430
3431AMTAR=${AMTAR-"${am_missing_run}tar"}
3432
3433
3434{ $as_echo "$as_me:$LINENO: checking how to create a pax tar archive" >&5
3435$as_echo_n "checking how to create a pax tar archive... " >&6; }
3436# Loop over all known methods to create a tar archive until one works.
3437_am_tools='gnutar  pax cpio none'
3438_am_tools=${am_cv_prog_tar_pax-$_am_tools}
3439# Do not fold the above two line into one, because Tru64 sh and
3440# Solaris sh will not grok spaces in the rhs of `-'.
3441for _am_tool in $_am_tools
3442do
3443  case $_am_tool in
3444  gnutar)
3445    for _am_tar in tar gnutar gtar;
3446    do
3447      { echo "$as_me:$LINENO: $_am_tar --version" >&5
3448   ($_am_tar --version) >&5 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && break
3452    done
3453    am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3454    am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3455    am__untar="$_am_tar -xf -"
3456    ;;
3457  plaintar)
3458    # Must skip GNU tar: if it does not support --format= it doesn't create
3459    # ustar tarball either.
3460    (tar --version) >/dev/null 2>&1 && continue
3461    am__tar='tar chf - "$$tardir"'
3462    am__tar_='tar chf - "$tardir"'
3463    am__untar='tar xf -'
3464    ;;
3465  pax)
3466    am__tar='pax -L -x pax -w "$$tardir"'
3467    am__tar_='pax -L -x pax -w "$tardir"'
3468    am__untar='pax -r'
3469    ;;
3470  cpio)
3471    am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3472    am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3473    am__untar='cpio -i -H pax -d'
3474    ;;
3475  none)
3476    am__tar=false
3477    am__tar_=false
3478    am__untar=false
3479    ;;
3480  esac
3481
3482  # If the value was cached, stop now.  We just wanted to have am__tar
3483  # and am__untar set.
3484  test -n "${am_cv_prog_tar_pax}" && break
3485
3486  # tar/untar a dummy directory, and stop if the command works
3487  rm -rf conftest.dir
3488  mkdir conftest.dir
3489  echo GrepMe > conftest.dir/file
3490  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3491   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3492   ac_status=$?
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); }
3495  rm -rf conftest.dir
3496  if test -s conftest.tar; then
3497    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3498   ($am__untar <conftest.tar) >&5 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); }
3502    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3503  fi
3504done
3505rm -rf conftest.dir
3506
3507if test "${am_cv_prog_tar_pax+set}" = set; then
3508  $as_echo_n "(cached) " >&6
3509else
3510  am_cv_prog_tar_pax=$_am_tool
3511fi
3512
3513{ $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_pax" >&5
3514$as_echo "$am_cv_prog_tar_pax" >&6; }
3515
3516
3517
3518
3519
3520
3521ac_config_headers="$ac_config_headers config.h"
3522
3523
3524{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3525$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3526    # Check whether --enable-maintainer-mode was given.
3527if test "${enable_maintainer_mode+set}" = set; then
3528  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3529else
3530  USE_MAINTAINER_MODE=no
3531fi
3532
3533  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3534$as_echo "$USE_MAINTAINER_MODE" >&6; }
3535   if test $USE_MAINTAINER_MODE = yes; then
3536  MAINTAINER_MODE_TRUE=
3537  MAINTAINER_MODE_FALSE='#'
3538else
3539  MAINTAINER_MODE_TRUE='#'
3540  MAINTAINER_MODE_FALSE=
3541fi
3542
3543  MAINT=$MAINTAINER_MODE_TRUE
3544
3545
3546
3547
3548# Find a good install program.  We prefer a C program (faster),
3549# so one script is as good as another.  But avoid the broken or
3550# incompatible versions:
3551# SysV /etc/install, /usr/sbin/install
3552# SunOS /usr/etc/install
3553# IRIX /sbin/install
3554# AIX /bin/install
3555# AmigaOS /C/install, which installs bootblocks on floppy discs
3556# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3557# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3558# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3559# OS/2's system install, which has a completely different semantic
3560# ./install, which can be erroneously created by make from ./install.sh.
3561# Reject install programs that cannot install multiple files.
3562{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3563$as_echo_n "checking for a BSD-compatible install... " >&6; }
3564if test -z "$INSTALL"; then
3565if test "${ac_cv_path_install+set}" = set; then
3566  $as_echo_n "(cached) " >&6
3567else
3568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569for as_dir in $PATH
3570do
3571  IFS=$as_save_IFS
3572  test -z "$as_dir" && as_dir=.
3573  # Account for people who put trailing slashes in PATH elements.
3574case $as_dir/ in
3575  ./ | .// | /cC/* | \
3576  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3577  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3578  /usr/ucb/* ) ;;
3579  *)
3580    # OSF1 and SCO ODT 3.0 have their own names for install.
3581    # Don't use installbsd from OSF since it installs stuff as root
3582    # by default.
3583    for ac_prog in ginstall scoinst install; do
3584      for ac_exec_ext in '' $ac_executable_extensions; do
3585	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3586	  if test $ac_prog = install &&
3587	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3588	    # AIX install.  It has an incompatible calling convention.
3589	    :
3590	  elif test $ac_prog = install &&
3591	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3592	    # program-specific install script used by HP pwplus--don't use.
3593	    :
3594	  else
3595	    rm -rf conftest.one conftest.two conftest.dir
3596	    echo one > conftest.one
3597	    echo two > conftest.two
3598	    mkdir conftest.dir
3599	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3600	      test -s conftest.one && test -s conftest.two &&
3601	      test -s conftest.dir/conftest.one &&
3602	      test -s conftest.dir/conftest.two
3603	    then
3604	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3605	      break 3
3606	    fi
3607	  fi
3608	fi
3609      done
3610    done
3611    ;;
3612esac
3613
3614done
3615IFS=$as_save_IFS
3616
3617rm -rf conftest.one conftest.two conftest.dir
3618
3619fi
3620  if test "${ac_cv_path_install+set}" = set; then
3621    INSTALL=$ac_cv_path_install
3622  else
3623    # As a last resort, use the slow shell script.  Don't cache a
3624    # value for INSTALL within a source directory, because that will
3625    # break other packages using the cache if that directory is
3626    # removed, or if the value is a relative name.
3627    INSTALL=$ac_install_sh
3628  fi
3629fi
3630{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3631$as_echo "$INSTALL" >&6; }
3632
3633# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3634# It thinks the first close brace ends the variable substitution.
3635test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3636
3637test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3638
3639test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3640
3641{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3642$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3643set x ${MAKE-make}
3644ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3645if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3646  $as_echo_n "(cached) " >&6
3647else
3648  cat >conftest.make <<\_ACEOF
3649SHELL = /bin/sh
3650all:
3651	@echo '@@@%%%=$(MAKE)=@@@%%%'
3652_ACEOF
3653# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3654case `${MAKE-make} -f conftest.make 2>/dev/null` in
3655  *@@@%%%=?*=@@@%%%*)
3656    eval ac_cv_prog_make_${ac_make}_set=yes;;
3657  *)
3658    eval ac_cv_prog_make_${ac_make}_set=no;;
3659esac
3660rm -f conftest.make
3661fi
3662if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3663  { $as_echo "$as_me:$LINENO: result: yes" >&5
3664$as_echo "yes" >&6; }
3665  SET_MAKE=
3666else
3667  { $as_echo "$as_me:$LINENO: result: no" >&5
3668$as_echo "no" >&6; }
3669  SET_MAKE="MAKE=${MAKE-make}"
3670fi
3671
3672ac_ext=c
3673ac_cpp='$CPP $CPPFLAGS'
3674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677if test -n "$ac_tool_prefix"; then
3678  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3679set dummy ${ac_tool_prefix}gcc; ac_word=$2
3680{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3681$as_echo_n "checking for $ac_word... " >&6; }
3682if test "${ac_cv_prog_CC+set}" = set; then
3683  $as_echo_n "(cached) " >&6
3684else
3685  if test -n "$CC"; then
3686  ac_cv_prog_CC="$CC" # Let the user override the test.
3687else
3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH
3690do
3691  IFS=$as_save_IFS
3692  test -z "$as_dir" && as_dir=.
3693  for ac_exec_ext in '' $ac_executable_extensions; do
3694  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3696    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697    break 2
3698  fi
3699done
3700done
3701IFS=$as_save_IFS
3702
3703fi
3704fi
3705CC=$ac_cv_prog_CC
3706if test -n "$CC"; then
3707  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3708$as_echo "$CC" >&6; }
3709else
3710  { $as_echo "$as_me:$LINENO: result: no" >&5
3711$as_echo "no" >&6; }
3712fi
3713
3714
3715fi
3716if test -z "$ac_cv_prog_CC"; then
3717  ac_ct_CC=$CC
3718  # Extract the first word of "gcc", so it can be a program name with args.
3719set dummy gcc; ac_word=$2
3720{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3721$as_echo_n "checking for $ac_word... " >&6; }
3722if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3723  $as_echo_n "(cached) " >&6
3724else
3725  if test -n "$ac_ct_CC"; then
3726  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3727else
3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH
3730do
3731  IFS=$as_save_IFS
3732  test -z "$as_dir" && as_dir=.
3733  for ac_exec_ext in '' $ac_executable_extensions; do
3734  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3735    ac_cv_prog_ac_ct_CC="gcc"
3736    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737    break 2
3738  fi
3739done
3740done
3741IFS=$as_save_IFS
3742
3743fi
3744fi
3745ac_ct_CC=$ac_cv_prog_ac_ct_CC
3746if test -n "$ac_ct_CC"; then
3747  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3748$as_echo "$ac_ct_CC" >&6; }
3749else
3750  { $as_echo "$as_me:$LINENO: result: no" >&5
3751$as_echo "no" >&6; }
3752fi
3753
3754  if test "x$ac_ct_CC" = x; then
3755    CC=""
3756  else
3757    case $cross_compiling:$ac_tool_warned in
3758yes:)
3759{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3761ac_tool_warned=yes ;;
3762esac
3763    CC=$ac_ct_CC
3764  fi
3765else
3766  CC="$ac_cv_prog_CC"
3767fi
3768
3769if test -z "$CC"; then
3770          if test -n "$ac_tool_prefix"; then
3771    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3772set dummy ${ac_tool_prefix}cc; ac_word=$2
3773{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3774$as_echo_n "checking for $ac_word... " >&6; }
3775if test "${ac_cv_prog_CC+set}" = set; then
3776  $as_echo_n "(cached) " >&6
3777else
3778  if test -n "$CC"; then
3779  ac_cv_prog_CC="$CC" # Let the user override the test.
3780else
3781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH
3783do
3784  IFS=$as_save_IFS
3785  test -z "$as_dir" && as_dir=.
3786  for ac_exec_ext in '' $ac_executable_extensions; do
3787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788    ac_cv_prog_CC="${ac_tool_prefix}cc"
3789    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790    break 2
3791  fi
3792done
3793done
3794IFS=$as_save_IFS
3795
3796fi
3797fi
3798CC=$ac_cv_prog_CC
3799if test -n "$CC"; then
3800  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3801$as_echo "$CC" >&6; }
3802else
3803  { $as_echo "$as_me:$LINENO: result: no" >&5
3804$as_echo "no" >&6; }
3805fi
3806
3807
3808  fi
3809fi
3810if test -z "$CC"; then
3811  # Extract the first word of "cc", so it can be a program name with args.
3812set dummy cc; ac_word=$2
3813{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3814$as_echo_n "checking for $ac_word... " >&6; }
3815if test "${ac_cv_prog_CC+set}" = set; then
3816  $as_echo_n "(cached) " >&6
3817else
3818  if test -n "$CC"; then
3819  ac_cv_prog_CC="$CC" # Let the user override the test.
3820else
3821  ac_prog_rejected=no
3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH
3824do
3825  IFS=$as_save_IFS
3826  test -z "$as_dir" && as_dir=.
3827  for ac_exec_ext in '' $ac_executable_extensions; do
3828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3830       ac_prog_rejected=yes
3831       continue
3832     fi
3833    ac_cv_prog_CC="cc"
3834    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835    break 2
3836  fi
3837done
3838done
3839IFS=$as_save_IFS
3840
3841if test $ac_prog_rejected = yes; then
3842  # We found a bogon in the path, so make sure we never use it.
3843  set dummy $ac_cv_prog_CC
3844  shift
3845  if test $# != 0; then
3846    # We chose a different compiler from the bogus one.
3847    # However, it has the same basename, so the bogon will be chosen
3848    # first if we set CC to just the basename; use the full file name.
3849    shift
3850    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3851  fi
3852fi
3853fi
3854fi
3855CC=$ac_cv_prog_CC
3856if test -n "$CC"; then
3857  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3858$as_echo "$CC" >&6; }
3859else
3860  { $as_echo "$as_me:$LINENO: result: no" >&5
3861$as_echo "no" >&6; }
3862fi
3863
3864
3865fi
3866if test -z "$CC"; then
3867  if test -n "$ac_tool_prefix"; then
3868  for ac_prog in cl.exe
3869  do
3870    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3871set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3872{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3873$as_echo_n "checking for $ac_word... " >&6; }
3874if test "${ac_cv_prog_CC+set}" = set; then
3875  $as_echo_n "(cached) " >&6
3876else
3877  if test -n "$CC"; then
3878  ac_cv_prog_CC="$CC" # Let the user override the test.
3879else
3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881for as_dir in $PATH
3882do
3883  IFS=$as_save_IFS
3884  test -z "$as_dir" && as_dir=.
3885  for ac_exec_ext in '' $ac_executable_extensions; do
3886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3887    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3888    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889    break 2
3890  fi
3891done
3892done
3893IFS=$as_save_IFS
3894
3895fi
3896fi
3897CC=$ac_cv_prog_CC
3898if test -n "$CC"; then
3899  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3900$as_echo "$CC" >&6; }
3901else
3902  { $as_echo "$as_me:$LINENO: result: no" >&5
3903$as_echo "no" >&6; }
3904fi
3905
3906
3907    test -n "$CC" && break
3908  done
3909fi
3910if test -z "$CC"; then
3911  ac_ct_CC=$CC
3912  for ac_prog in cl.exe
3913do
3914  # Extract the first word of "$ac_prog", so it can be a program name with args.
3915set dummy $ac_prog; ac_word=$2
3916{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3917$as_echo_n "checking for $ac_word... " >&6; }
3918if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3919  $as_echo_n "(cached) " >&6
3920else
3921  if test -n "$ac_ct_CC"; then
3922  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3923else
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
3926do
3927  IFS=$as_save_IFS
3928  test -z "$as_dir" && as_dir=.
3929  for ac_exec_ext in '' $ac_executable_extensions; do
3930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3931    ac_cv_prog_ac_ct_CC="$ac_prog"
3932    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3933    break 2
3934  fi
3935done
3936done
3937IFS=$as_save_IFS
3938
3939fi
3940fi
3941ac_ct_CC=$ac_cv_prog_ac_ct_CC
3942if test -n "$ac_ct_CC"; then
3943  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3944$as_echo "$ac_ct_CC" >&6; }
3945else
3946  { $as_echo "$as_me:$LINENO: result: no" >&5
3947$as_echo "no" >&6; }
3948fi
3949
3950
3951  test -n "$ac_ct_CC" && break
3952done
3953
3954  if test "x$ac_ct_CC" = x; then
3955    CC=""
3956  else
3957    case $cross_compiling:$ac_tool_warned in
3958yes:)
3959{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3961ac_tool_warned=yes ;;
3962esac
3963    CC=$ac_ct_CC
3964  fi
3965fi
3966
3967fi
3968
3969
3970test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3973See \`config.log' for more details." >&5
3974$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3975See \`config.log' for more details." >&2;}
3976   { (exit 1); exit 1; }; }; }
3977
3978# Provide some information about the compiler.
3979$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3980set X $ac_compile
3981ac_compiler=$2
3982{ (ac_try="$ac_compiler --version >&5"
3983case "(($ac_try" in
3984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985  *) ac_try_echo=$ac_try;;
3986esac
3987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3988$as_echo "$ac_try_echo") >&5
3989  (eval "$ac_compiler --version >&5") 2>&5
3990  ac_status=$?
3991  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992  (exit $ac_status); }
3993{ (ac_try="$ac_compiler -v >&5"
3994case "(($ac_try" in
3995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996  *) ac_try_echo=$ac_try;;
3997esac
3998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3999$as_echo "$ac_try_echo") >&5
4000  (eval "$ac_compiler -v >&5") 2>&5
4001  ac_status=$?
4002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003  (exit $ac_status); }
4004{ (ac_try="$ac_compiler -V >&5"
4005case "(($ac_try" in
4006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007  *) ac_try_echo=$ac_try;;
4008esac
4009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4010$as_echo "$ac_try_echo") >&5
4011  (eval "$ac_compiler -V >&5") 2>&5
4012  ac_status=$?
4013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); }
4015
4016cat >conftest.$ac_ext <<_ACEOF
4017/* confdefs.h.  */
4018_ACEOF
4019cat confdefs.h >>conftest.$ac_ext
4020cat >>conftest.$ac_ext <<_ACEOF
4021/* end confdefs.h.  */
4022
4023int
4024main ()
4025{
4026
4027  ;
4028  return 0;
4029}
4030_ACEOF
4031ac_clean_files_save=$ac_clean_files
4032ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4033# Try to create an executable without -o first, disregard a.out.
4034# It will help us diagnose broken compilers, and finding out an intuition
4035# of exeext.
4036{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4037$as_echo_n "checking for C compiler default output file name... " >&6; }
4038ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4039
4040# The possible output files:
4041ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4042
4043ac_rmfiles=
4044for ac_file in $ac_files
4045do
4046  case $ac_file in
4047    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4048    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4049  esac
4050done
4051rm -f $ac_rmfiles
4052
4053if { (ac_try="$ac_link_default"
4054case "(($ac_try" in
4055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056  *) ac_try_echo=$ac_try;;
4057esac
4058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4059$as_echo "$ac_try_echo") >&5
4060  (eval "$ac_link_default") 2>&5
4061  ac_status=$?
4062  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063  (exit $ac_status); }; then
4064  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4065# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4066# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4067# so that the user can short-circuit this test for compilers unknown to
4068# Autoconf.
4069for ac_file in $ac_files ''
4070do
4071  test -f "$ac_file" || continue
4072  case $ac_file in
4073    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4074	;;
4075    [ab].out )
4076	# We found the default executable, but exeext='' is most
4077	# certainly right.
4078	break;;
4079    *.* )
4080        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4081	then :; else
4082	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4083	fi
4084	# We set ac_cv_exeext here because the later test for it is not
4085	# safe: cross compilers may not add the suffix if given an `-o'
4086	# argument, so we may need to know it at that point already.
4087	# Even if this section looks crufty: it has the advantage of
4088	# actually working.
4089	break;;
4090    * )
4091	break;;
4092  esac
4093done
4094test "$ac_cv_exeext" = no && ac_cv_exeext=
4095
4096else
4097  ac_file=''
4098fi
4099
4100{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4101$as_echo "$ac_file" >&6; }
4102if test -z "$ac_file"; then
4103  $as_echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
4105
4106{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4108{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4109See \`config.log' for more details." >&5
4110$as_echo "$as_me: error: C compiler cannot create executables
4111See \`config.log' for more details." >&2;}
4112   { (exit 77); exit 77; }; }; }
4113fi
4114
4115ac_exeext=$ac_cv_exeext
4116
4117# Check that the compiler produces executables we can run.  If not, either
4118# the compiler is broken, or we cross compile.
4119{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4120$as_echo_n "checking whether the C compiler works... " >&6; }
4121# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4122# If not cross compiling, check that we can run a simple program.
4123if test "$cross_compiling" != yes; then
4124  if { ac_try='./$ac_file'
4125  { (case "(($ac_try" in
4126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127  *) ac_try_echo=$ac_try;;
4128esac
4129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4130$as_echo "$ac_try_echo") >&5
4131  (eval "$ac_try") 2>&5
4132  ac_status=$?
4133  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134  (exit $ac_status); }; }; then
4135    cross_compiling=no
4136  else
4137    if test "$cross_compiling" = maybe; then
4138	cross_compiling=yes
4139    else
4140	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4143If you meant to cross compile, use \`--host'.
4144See \`config.log' for more details." >&5
4145$as_echo "$as_me: error: cannot run C compiled programs.
4146If you meant to cross compile, use \`--host'.
4147See \`config.log' for more details." >&2;}
4148   { (exit 1); exit 1; }; }; }
4149    fi
4150  fi
4151fi
4152{ $as_echo "$as_me:$LINENO: result: yes" >&5
4153$as_echo "yes" >&6; }
4154
4155rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4156ac_clean_files=$ac_clean_files_save
4157# Check that the compiler produces executables we can run.  If not, either
4158# the compiler is broken, or we cross compile.
4159{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4160$as_echo_n "checking whether we are cross compiling... " >&6; }
4161{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4162$as_echo "$cross_compiling" >&6; }
4163
4164{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4165$as_echo_n "checking for suffix of executables... " >&6; }
4166if { (ac_try="$ac_link"
4167case "(($ac_try" in
4168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169  *) ac_try_echo=$ac_try;;
4170esac
4171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4172$as_echo "$ac_try_echo") >&5
4173  (eval "$ac_link") 2>&5
4174  ac_status=$?
4175  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176  (exit $ac_status); }; then
4177  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4178# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4179# work properly (i.e., refer to `conftest.exe'), while it won't with
4180# `rm'.
4181for ac_file in conftest.exe conftest conftest.*; do
4182  test -f "$ac_file" || continue
4183  case $ac_file in
4184    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4185    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4186	  break;;
4187    * ) break;;
4188  esac
4189done
4190else
4191  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4194See \`config.log' for more details." >&5
4195$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4196See \`config.log' for more details." >&2;}
4197   { (exit 1); exit 1; }; }; }
4198fi
4199
4200rm -f conftest$ac_cv_exeext
4201{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4202$as_echo "$ac_cv_exeext" >&6; }
4203
4204rm -f conftest.$ac_ext
4205EXEEXT=$ac_cv_exeext
4206ac_exeext=$EXEEXT
4207{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4208$as_echo_n "checking for suffix of object files... " >&6; }
4209if test "${ac_cv_objext+set}" = set; then
4210  $as_echo_n "(cached) " >&6
4211else
4212  cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h.  */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
4217/* end confdefs.h.  */
4218
4219int
4220main ()
4221{
4222
4223  ;
4224  return 0;
4225}
4226_ACEOF
4227rm -f conftest.o conftest.obj
4228if { (ac_try="$ac_compile"
4229case "(($ac_try" in
4230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231  *) ac_try_echo=$ac_try;;
4232esac
4233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4234$as_echo "$ac_try_echo") >&5
4235  (eval "$ac_compile") 2>&5
4236  ac_status=$?
4237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238  (exit $ac_status); }; then
4239  for ac_file in conftest.o conftest.obj conftest.*; do
4240  test -f "$ac_file" || continue;
4241  case $ac_file in
4242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4243    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4244       break;;
4245  esac
4246done
4247else
4248  $as_echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
4250
4251{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4253{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4254See \`config.log' for more details." >&5
4255$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4256See \`config.log' for more details." >&2;}
4257   { (exit 1); exit 1; }; }; }
4258fi
4259
4260rm -f conftest.$ac_cv_objext conftest.$ac_ext
4261fi
4262{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4263$as_echo "$ac_cv_objext" >&6; }
4264OBJEXT=$ac_cv_objext
4265ac_objext=$OBJEXT
4266{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4267$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4268if test "${ac_cv_c_compiler_gnu+set}" = set; then
4269  $as_echo_n "(cached) " >&6
4270else
4271  cat >conftest.$ac_ext <<_ACEOF
4272/* confdefs.h.  */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h.  */
4277
4278int
4279main ()
4280{
4281#ifndef __GNUC__
4282       choke me
4283#endif
4284
4285  ;
4286  return 0;
4287}
4288_ACEOF
4289rm -f conftest.$ac_objext
4290if { (ac_try="$ac_compile"
4291case "(($ac_try" in
4292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293  *) ac_try_echo=$ac_try;;
4294esac
4295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4296$as_echo "$ac_try_echo") >&5
4297  (eval "$ac_compile") 2>conftest.er1
4298  ac_status=$?
4299  grep -v '^ *+' conftest.er1 >conftest.err
4300  rm -f conftest.er1
4301  cat conftest.err >&5
4302  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303  (exit $ac_status); } && {
4304	 test -z "$ac_c_werror_flag" ||
4305	 test ! -s conftest.err
4306       } && test -s conftest.$ac_objext; then
4307  ac_compiler_gnu=yes
4308else
4309  $as_echo "$as_me: failed program was:" >&5
4310sed 's/^/| /' conftest.$ac_ext >&5
4311
4312	ac_compiler_gnu=no
4313fi
4314
4315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316ac_cv_c_compiler_gnu=$ac_compiler_gnu
4317
4318fi
4319{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4320$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4321if test $ac_compiler_gnu = yes; then
4322  GCC=yes
4323else
4324  GCC=
4325fi
4326ac_test_CFLAGS=${CFLAGS+set}
4327ac_save_CFLAGS=$CFLAGS
4328{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4329$as_echo_n "checking whether $CC accepts -g... " >&6; }
4330if test "${ac_cv_prog_cc_g+set}" = set; then
4331  $as_echo_n "(cached) " >&6
4332else
4333  ac_save_c_werror_flag=$ac_c_werror_flag
4334   ac_c_werror_flag=yes
4335   ac_cv_prog_cc_g=no
4336   CFLAGS="-g"
4337   cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h.  */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h.  */
4343
4344int
4345main ()
4346{
4347
4348  ;
4349  return 0;
4350}
4351_ACEOF
4352rm -f conftest.$ac_objext
4353if { (ac_try="$ac_compile"
4354case "(($ac_try" in
4355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356  *) ac_try_echo=$ac_try;;
4357esac
4358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4359$as_echo "$ac_try_echo") >&5
4360  (eval "$ac_compile") 2>conftest.er1
4361  ac_status=$?
4362  grep -v '^ *+' conftest.er1 >conftest.err
4363  rm -f conftest.er1
4364  cat conftest.err >&5
4365  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366  (exit $ac_status); } && {
4367	 test -z "$ac_c_werror_flag" ||
4368	 test ! -s conftest.err
4369       } && test -s conftest.$ac_objext; then
4370  ac_cv_prog_cc_g=yes
4371else
4372  $as_echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375	CFLAGS=""
4376      cat >conftest.$ac_ext <<_ACEOF
4377/* confdefs.h.  */
4378_ACEOF
4379cat confdefs.h >>conftest.$ac_ext
4380cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h.  */
4382
4383int
4384main ()
4385{
4386
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391rm -f conftest.$ac_objext
4392if { (ac_try="$ac_compile"
4393case "(($ac_try" in
4394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395  *) ac_try_echo=$ac_try;;
4396esac
4397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4398$as_echo "$ac_try_echo") >&5
4399  (eval "$ac_compile") 2>conftest.er1
4400  ac_status=$?
4401  grep -v '^ *+' conftest.er1 >conftest.err
4402  rm -f conftest.er1
4403  cat conftest.err >&5
4404  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); } && {
4406	 test -z "$ac_c_werror_flag" ||
4407	 test ! -s conftest.err
4408       } && test -s conftest.$ac_objext; then
4409  :
4410else
4411  $as_echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
4413
4414	ac_c_werror_flag=$ac_save_c_werror_flag
4415	 CFLAGS="-g"
4416	 cat >conftest.$ac_ext <<_ACEOF
4417/* confdefs.h.  */
4418_ACEOF
4419cat confdefs.h >>conftest.$ac_ext
4420cat >>conftest.$ac_ext <<_ACEOF
4421/* end confdefs.h.  */
4422
4423int
4424main ()
4425{
4426
4427  ;
4428  return 0;
4429}
4430_ACEOF
4431rm -f conftest.$ac_objext
4432if { (ac_try="$ac_compile"
4433case "(($ac_try" in
4434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435  *) ac_try_echo=$ac_try;;
4436esac
4437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4438$as_echo "$ac_try_echo") >&5
4439  (eval "$ac_compile") 2>conftest.er1
4440  ac_status=$?
4441  grep -v '^ *+' conftest.er1 >conftest.err
4442  rm -f conftest.er1
4443  cat conftest.err >&5
4444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445  (exit $ac_status); } && {
4446	 test -z "$ac_c_werror_flag" ||
4447	 test ! -s conftest.err
4448       } && test -s conftest.$ac_objext; then
4449  ac_cv_prog_cc_g=yes
4450else
4451  $as_echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454
4455fi
4456
4457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458fi
4459
4460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461fi
4462
4463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464   ac_c_werror_flag=$ac_save_c_werror_flag
4465fi
4466{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4467$as_echo "$ac_cv_prog_cc_g" >&6; }
4468if test "$ac_test_CFLAGS" = set; then
4469  CFLAGS=$ac_save_CFLAGS
4470elif test $ac_cv_prog_cc_g = yes; then
4471  if test "$GCC" = yes; then
4472    CFLAGS="-g -O2"
4473  else
4474    CFLAGS="-g"
4475  fi
4476else
4477  if test "$GCC" = yes; then
4478    CFLAGS="-O2"
4479  else
4480    CFLAGS=
4481  fi
4482fi
4483{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4484$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4485if test "${ac_cv_prog_cc_c89+set}" = set; then
4486  $as_echo_n "(cached) " >&6
4487else
4488  ac_cv_prog_cc_c89=no
4489ac_save_CC=$CC
4490cat >conftest.$ac_ext <<_ACEOF
4491/* confdefs.h.  */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h.  */
4496#include <stdarg.h>
4497#include <stdio.h>
4498#include <sys/types.h>
4499#include <sys/stat.h>
4500/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4501struct buf { int x; };
4502FILE * (*rcsopen) (struct buf *, struct stat *, int);
4503static char *e (p, i)
4504     char **p;
4505     int i;
4506{
4507  return p[i];
4508}
4509static char *f (char * (*g) (char **, int), char **p, ...)
4510{
4511  char *s;
4512  va_list v;
4513  va_start (v,p);
4514  s = g (p, va_arg (v,int));
4515  va_end (v);
4516  return s;
4517}
4518
4519/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4520   function prototypes and stuff, but not '\xHH' hex character constants.
4521   These don't provoke an error unfortunately, instead are silently treated
4522   as 'x'.  The following induces an error, until -std is added to get
4523   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4524   array size at least.  It's necessary to write '\x00'==0 to get something
4525   that's true only with -std.  */
4526int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4527
4528/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4529   inside strings and character constants.  */
4530#define FOO(x) 'x'
4531int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4532
4533int test (int i, double x);
4534struct s1 {int (*f) (int a);};
4535struct s2 {int (*f) (double a);};
4536int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4537int argc;
4538char **argv;
4539int
4540main ()
4541{
4542return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4543  ;
4544  return 0;
4545}
4546_ACEOF
4547for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4548	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4549do
4550  CC="$ac_save_CC $ac_arg"
4551  rm -f conftest.$ac_objext
4552if { (ac_try="$ac_compile"
4553case "(($ac_try" in
4554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555  *) ac_try_echo=$ac_try;;
4556esac
4557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4558$as_echo "$ac_try_echo") >&5
4559  (eval "$ac_compile") 2>conftest.er1
4560  ac_status=$?
4561  grep -v '^ *+' conftest.er1 >conftest.err
4562  rm -f conftest.er1
4563  cat conftest.err >&5
4564  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); } && {
4566	 test -z "$ac_c_werror_flag" ||
4567	 test ! -s conftest.err
4568       } && test -s conftest.$ac_objext; then
4569  ac_cv_prog_cc_c89=$ac_arg
4570else
4571  $as_echo "$as_me: failed program was:" >&5
4572sed 's/^/| /' conftest.$ac_ext >&5
4573
4574
4575fi
4576
4577rm -f core conftest.err conftest.$ac_objext
4578  test "x$ac_cv_prog_cc_c89" != "xno" && break
4579done
4580rm -f conftest.$ac_ext
4581CC=$ac_save_CC
4582
4583fi
4584# AC_CACHE_VAL
4585case "x$ac_cv_prog_cc_c89" in
4586  x)
4587    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4588$as_echo "none needed" >&6; } ;;
4589  xno)
4590    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4591$as_echo "unsupported" >&6; } ;;
4592  *)
4593    CC="$CC $ac_cv_prog_cc_c89"
4594    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4595$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4596esac
4597
4598
4599ac_ext=c
4600ac_cpp='$CPP $CPPFLAGS'
4601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604DEPDIR="${am__leading_dot}deps"
4605
4606ac_config_commands="$ac_config_commands depfiles"
4607
4608
4609am_make=${MAKE-make}
4610cat > confinc << 'END'
4611am__doit:
4612	@echo this is the am__doit target
4613.PHONY: am__doit
4614END
4615# If we don't find an include directive, just comment out the code.
4616{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4617$as_echo_n "checking for style of include used by $am_make... " >&6; }
4618am__include="#"
4619am__quote=
4620_am_result=none
4621# First try GNU make style include.
4622echo "include confinc" > confmf
4623# Ignore all kinds of additional output from `make'.
4624case `$am_make -s -f confmf 2> /dev/null` in #(
4625*the\ am__doit\ target*)
4626  am__include=include
4627  am__quote=
4628  _am_result=GNU
4629  ;;
4630esac
4631# Now try BSD make style include.
4632if test "$am__include" = "#"; then
4633   echo '.include "confinc"' > confmf
4634   case `$am_make -s -f confmf 2> /dev/null` in #(
4635   *the\ am__doit\ target*)
4636     am__include=.include
4637     am__quote="\""
4638     _am_result=BSD
4639     ;;
4640   esac
4641fi
4642
4643
4644{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4645$as_echo "$_am_result" >&6; }
4646rm -f confinc confmf
4647
4648# Check whether --enable-dependency-tracking was given.
4649if test "${enable_dependency_tracking+set}" = set; then
4650  enableval=$enable_dependency_tracking;
4651fi
4652
4653if test "x$enable_dependency_tracking" != xno; then
4654  am_depcomp="$ac_aux_dir/depcomp"
4655  AMDEPBACKSLASH='\'
4656fi
4657 if test "x$enable_dependency_tracking" != xno; then
4658  AMDEP_TRUE=
4659  AMDEP_FALSE='#'
4660else
4661  AMDEP_TRUE='#'
4662  AMDEP_FALSE=
4663fi
4664
4665
4666
4667depcc="$CC"   am_compiler_list=
4668
4669{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4670$as_echo_n "checking dependency style of $depcc... " >&6; }
4671if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4672  $as_echo_n "(cached) " >&6
4673else
4674  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4675  # We make a subdir and do the tests there.  Otherwise we can end up
4676  # making bogus files that we don't know about and never remove.  For
4677  # instance it was reported that on HP-UX the gcc test will end up
4678  # making a dummy file named `D' -- because `-MD' means `put the output
4679  # in D'.
4680  mkdir conftest.dir
4681  # Copy depcomp to subdir because otherwise we won't find it if we're
4682  # using a relative directory.
4683  cp "$am_depcomp" conftest.dir
4684  cd conftest.dir
4685  # We will build objects and dependencies in a subdirectory because
4686  # it helps to detect inapplicable dependency modes.  For instance
4687  # both Tru64's cc and ICC support -MD to output dependencies as a
4688  # side effect of compilation, but ICC will put the dependencies in
4689  # the current directory while Tru64 will put them in the object
4690  # directory.
4691  mkdir sub
4692
4693  am_cv_CC_dependencies_compiler_type=none
4694  if test "$am_compiler_list" = ""; then
4695     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4696  fi
4697  am__universal=false
4698  case " $depcc " in #(
4699     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4700     esac
4701
4702  for depmode in $am_compiler_list; do
4703    # Setup a source with many dependencies, because some compilers
4704    # like to wrap large dependency lists on column 80 (with \), and
4705    # we should not choose a depcomp mode which is confused by this.
4706    #
4707    # We need to recreate these files for each test, as the compiler may
4708    # overwrite some of them when testing with obscure command lines.
4709    # This happens at least with the AIX C compiler.
4710    : > sub/conftest.c
4711    for i in 1 2 3 4 5 6; do
4712      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4713      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4714      # Solaris 8's {/usr,}/bin/sh.
4715      touch sub/conftst$i.h
4716    done
4717    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4718
4719    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4720    # mode.  It turns out that the SunPro C++ compiler does not properly
4721    # handle `-M -o', and we need to detect this.  Also, some Intel
4722    # versions had trouble with output in subdirs
4723    am__obj=sub/conftest.${OBJEXT-o}
4724    am__minus_obj="-o $am__obj"
4725    case $depmode in
4726    gcc)
4727      # This depmode causes a compiler race in universal mode.
4728      test "$am__universal" = false || continue
4729      ;;
4730    nosideeffect)
4731      # after this tag, mechanisms are not by side-effect, so they'll
4732      # only be used when explicitly requested
4733      if test "x$enable_dependency_tracking" = xyes; then
4734	continue
4735      else
4736	break
4737      fi
4738      ;;
4739    msvisualcpp | msvcmsys)
4740      # This compiler won't grok `-c -o', but also, the minuso test has
4741      # not run yet.  These depmodes are late enough in the game, and
4742      # so weak that their functioning should not be impacted.
4743      am__obj=conftest.${OBJEXT-o}
4744      am__minus_obj=
4745      ;;
4746    none) break ;;
4747    esac
4748    if depmode=$depmode \
4749       source=sub/conftest.c object=$am__obj \
4750       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4751       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4752         >/dev/null 2>conftest.err &&
4753       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4754       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4755       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4756       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4757      # icc doesn't choke on unknown options, it will just issue warnings
4758      # or remarks (even with -Werror).  So we grep stderr for any message
4759      # that says an option was ignored or not supported.
4760      # When given -MP, icc 7.0 and 7.1 complain thusly:
4761      #   icc: Command line warning: ignoring option '-M'; no argument required
4762      # The diagnosis changed in icc 8.0:
4763      #   icc: Command line remark: option '-MP' not supported
4764      if (grep 'ignoring option' conftest.err ||
4765          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4766        am_cv_CC_dependencies_compiler_type=$depmode
4767        break
4768      fi
4769    fi
4770  done
4771
4772  cd ..
4773  rm -rf conftest.dir
4774else
4775  am_cv_CC_dependencies_compiler_type=none
4776fi
4777
4778fi
4779{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4780$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4781CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4782
4783 if
4784  test "x$enable_dependency_tracking" != xno \
4785  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4786  am__fastdepCC_TRUE=
4787  am__fastdepCC_FALSE='#'
4788else
4789  am__fastdepCC_TRUE='#'
4790  am__fastdepCC_FALSE=
4791fi
4792
4793
4794ac_ext=cpp
4795ac_cpp='$CXXCPP $CPPFLAGS'
4796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4799if test -z "$CXX"; then
4800  if test -n "$CCC"; then
4801    CXX=$CCC
4802  else
4803    if test -n "$ac_tool_prefix"; then
4804  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4805  do
4806    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4808{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4809$as_echo_n "checking for $ac_word... " >&6; }
4810if test "${ac_cv_prog_CXX+set}" = set; then
4811  $as_echo_n "(cached) " >&6
4812else
4813  if test -n "$CXX"; then
4814  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819  IFS=$as_save_IFS
4820  test -z "$as_dir" && as_dir=.
4821  for ac_exec_ext in '' $ac_executable_extensions; do
4822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4824    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825    break 2
4826  fi
4827done
4828done
4829IFS=$as_save_IFS
4830
4831fi
4832fi
4833CXX=$ac_cv_prog_CXX
4834if test -n "$CXX"; then
4835  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4836$as_echo "$CXX" >&6; }
4837else
4838  { $as_echo "$as_me:$LINENO: result: no" >&5
4839$as_echo "no" >&6; }
4840fi
4841
4842
4843    test -n "$CXX" && break
4844  done
4845fi
4846if test -z "$CXX"; then
4847  ac_ct_CXX=$CXX
4848  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4849do
4850  # Extract the first word of "$ac_prog", so it can be a program name with args.
4851set dummy $ac_prog; ac_word=$2
4852{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4853$as_echo_n "checking for $ac_word... " >&6; }
4854if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4855  $as_echo_n "(cached) " >&6
4856else
4857  if test -n "$ac_ct_CXX"; then
4858  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4859else
4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863  IFS=$as_save_IFS
4864  test -z "$as_dir" && as_dir=.
4865  for ac_exec_ext in '' $ac_executable_extensions; do
4866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867    ac_cv_prog_ac_ct_CXX="$ac_prog"
4868    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869    break 2
4870  fi
4871done
4872done
4873IFS=$as_save_IFS
4874
4875fi
4876fi
4877ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4878if test -n "$ac_ct_CXX"; then
4879  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4880$as_echo "$ac_ct_CXX" >&6; }
4881else
4882  { $as_echo "$as_me:$LINENO: result: no" >&5
4883$as_echo "no" >&6; }
4884fi
4885
4886
4887  test -n "$ac_ct_CXX" && break
4888done
4889
4890  if test "x$ac_ct_CXX" = x; then
4891    CXX="g++"
4892  else
4893    case $cross_compiling:$ac_tool_warned in
4894yes:)
4895{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897ac_tool_warned=yes ;;
4898esac
4899    CXX=$ac_ct_CXX
4900  fi
4901fi
4902
4903  fi
4904fi
4905# Provide some information about the compiler.
4906$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4907set X $ac_compile
4908ac_compiler=$2
4909{ (ac_try="$ac_compiler --version >&5"
4910case "(($ac_try" in
4911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912  *) ac_try_echo=$ac_try;;
4913esac
4914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4915$as_echo "$ac_try_echo") >&5
4916  (eval "$ac_compiler --version >&5") 2>&5
4917  ac_status=$?
4918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919  (exit $ac_status); }
4920{ (ac_try="$ac_compiler -v >&5"
4921case "(($ac_try" in
4922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923  *) ac_try_echo=$ac_try;;
4924esac
4925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926$as_echo "$ac_try_echo") >&5
4927  (eval "$ac_compiler -v >&5") 2>&5
4928  ac_status=$?
4929  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930  (exit $ac_status); }
4931{ (ac_try="$ac_compiler -V >&5"
4932case "(($ac_try" in
4933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934  *) ac_try_echo=$ac_try;;
4935esac
4936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4937$as_echo "$ac_try_echo") >&5
4938  (eval "$ac_compiler -V >&5") 2>&5
4939  ac_status=$?
4940  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); }
4942
4943{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4944$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4945if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4946  $as_echo_n "(cached) " >&6
4947else
4948  cat >conftest.$ac_ext <<_ACEOF
4949/* confdefs.h.  */
4950_ACEOF
4951cat confdefs.h >>conftest.$ac_ext
4952cat >>conftest.$ac_ext <<_ACEOF
4953/* end confdefs.h.  */
4954
4955int
4956main ()
4957{
4958#ifndef __GNUC__
4959       choke me
4960#endif
4961
4962  ;
4963  return 0;
4964}
4965_ACEOF
4966rm -f conftest.$ac_objext
4967if { (ac_try="$ac_compile"
4968case "(($ac_try" in
4969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970  *) ac_try_echo=$ac_try;;
4971esac
4972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4973$as_echo "$ac_try_echo") >&5
4974  (eval "$ac_compile") 2>conftest.er1
4975  ac_status=$?
4976  grep -v '^ *+' conftest.er1 >conftest.err
4977  rm -f conftest.er1
4978  cat conftest.err >&5
4979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980  (exit $ac_status); } && {
4981	 test -z "$ac_cxx_werror_flag" ||
4982	 test ! -s conftest.err
4983       } && test -s conftest.$ac_objext; then
4984  ac_compiler_gnu=yes
4985else
4986  $as_echo "$as_me: failed program was:" >&5
4987sed 's/^/| /' conftest.$ac_ext >&5
4988
4989	ac_compiler_gnu=no
4990fi
4991
4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4994
4995fi
4996{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4997$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4998if test $ac_compiler_gnu = yes; then
4999  GXX=yes
5000else
5001  GXX=
5002fi
5003ac_test_CXXFLAGS=${CXXFLAGS+set}
5004ac_save_CXXFLAGS=$CXXFLAGS
5005{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5006$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5007if test "${ac_cv_prog_cxx_g+set}" = set; then
5008  $as_echo_n "(cached) " >&6
5009else
5010  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5011   ac_cxx_werror_flag=yes
5012   ac_cv_prog_cxx_g=no
5013   CXXFLAGS="-g"
5014   cat >conftest.$ac_ext <<_ACEOF
5015/* confdefs.h.  */
5016_ACEOF
5017cat confdefs.h >>conftest.$ac_ext
5018cat >>conftest.$ac_ext <<_ACEOF
5019/* end confdefs.h.  */
5020
5021int
5022main ()
5023{
5024
5025  ;
5026  return 0;
5027}
5028_ACEOF
5029rm -f conftest.$ac_objext
5030if { (ac_try="$ac_compile"
5031case "(($ac_try" in
5032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033  *) ac_try_echo=$ac_try;;
5034esac
5035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5036$as_echo "$ac_try_echo") >&5
5037  (eval "$ac_compile") 2>conftest.er1
5038  ac_status=$?
5039  grep -v '^ *+' conftest.er1 >conftest.err
5040  rm -f conftest.er1
5041  cat conftest.err >&5
5042  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043  (exit $ac_status); } && {
5044	 test -z "$ac_cxx_werror_flag" ||
5045	 test ! -s conftest.err
5046       } && test -s conftest.$ac_objext; then
5047  ac_cv_prog_cxx_g=yes
5048else
5049  $as_echo "$as_me: failed program was:" >&5
5050sed 's/^/| /' conftest.$ac_ext >&5
5051
5052	CXXFLAGS=""
5053      cat >conftest.$ac_ext <<_ACEOF
5054/* confdefs.h.  */
5055_ACEOF
5056cat confdefs.h >>conftest.$ac_ext
5057cat >>conftest.$ac_ext <<_ACEOF
5058/* end confdefs.h.  */
5059
5060int
5061main ()
5062{
5063
5064  ;
5065  return 0;
5066}
5067_ACEOF
5068rm -f conftest.$ac_objext
5069if { (ac_try="$ac_compile"
5070case "(($ac_try" in
5071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072  *) ac_try_echo=$ac_try;;
5073esac
5074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5075$as_echo "$ac_try_echo") >&5
5076  (eval "$ac_compile") 2>conftest.er1
5077  ac_status=$?
5078  grep -v '^ *+' conftest.er1 >conftest.err
5079  rm -f conftest.er1
5080  cat conftest.err >&5
5081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); } && {
5083	 test -z "$ac_cxx_werror_flag" ||
5084	 test ! -s conftest.err
5085       } && test -s conftest.$ac_objext; then
5086  :
5087else
5088  $as_echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5092	 CXXFLAGS="-g"
5093	 cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h.  */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h.  */
5099
5100int
5101main ()
5102{
5103
5104  ;
5105  return 0;
5106}
5107_ACEOF
5108rm -f conftest.$ac_objext
5109if { (ac_try="$ac_compile"
5110case "(($ac_try" in
5111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112  *) ac_try_echo=$ac_try;;
5113esac
5114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5115$as_echo "$ac_try_echo") >&5
5116  (eval "$ac_compile") 2>conftest.er1
5117  ac_status=$?
5118  grep -v '^ *+' conftest.er1 >conftest.err
5119  rm -f conftest.er1
5120  cat conftest.err >&5
5121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122  (exit $ac_status); } && {
5123	 test -z "$ac_cxx_werror_flag" ||
5124	 test ! -s conftest.err
5125       } && test -s conftest.$ac_objext; then
5126  ac_cv_prog_cxx_g=yes
5127else
5128  $as_echo "$as_me: failed program was:" >&5
5129sed 's/^/| /' conftest.$ac_ext >&5
5130
5131
5132fi
5133
5134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135fi
5136
5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138fi
5139
5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5142fi
5143{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5144$as_echo "$ac_cv_prog_cxx_g" >&6; }
5145if test "$ac_test_CXXFLAGS" = set; then
5146  CXXFLAGS=$ac_save_CXXFLAGS
5147elif test $ac_cv_prog_cxx_g = yes; then
5148  if test "$GXX" = yes; then
5149    CXXFLAGS="-g -O2"
5150  else
5151    CXXFLAGS="-g"
5152  fi
5153else
5154  if test "$GXX" = yes; then
5155    CXXFLAGS="-O2"
5156  else
5157    CXXFLAGS=
5158  fi
5159fi
5160ac_ext=c
5161ac_cpp='$CPP $CPPFLAGS'
5162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166depcc="$CXX"  am_compiler_list=
5167
5168{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5169$as_echo_n "checking dependency style of $depcc... " >&6; }
5170if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5171  $as_echo_n "(cached) " >&6
5172else
5173  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5174  # We make a subdir and do the tests there.  Otherwise we can end up
5175  # making bogus files that we don't know about and never remove.  For
5176  # instance it was reported that on HP-UX the gcc test will end up
5177  # making a dummy file named `D' -- because `-MD' means `put the output
5178  # in D'.
5179  mkdir conftest.dir
5180  # Copy depcomp to subdir because otherwise we won't find it if we're
5181  # using a relative directory.
5182  cp "$am_depcomp" conftest.dir
5183  cd conftest.dir
5184  # We will build objects and dependencies in a subdirectory because
5185  # it helps to detect inapplicable dependency modes.  For instance
5186  # both Tru64's cc and ICC support -MD to output dependencies as a
5187  # side effect of compilation, but ICC will put the dependencies in
5188  # the current directory while Tru64 will put them in the object
5189  # directory.
5190  mkdir sub
5191
5192  am_cv_CXX_dependencies_compiler_type=none
5193  if test "$am_compiler_list" = ""; then
5194     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5195  fi
5196  am__universal=false
5197  case " $depcc " in #(
5198     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5199     esac
5200
5201  for depmode in $am_compiler_list; do
5202    # Setup a source with many dependencies, because some compilers
5203    # like to wrap large dependency lists on column 80 (with \), and
5204    # we should not choose a depcomp mode which is confused by this.
5205    #
5206    # We need to recreate these files for each test, as the compiler may
5207    # overwrite some of them when testing with obscure command lines.
5208    # This happens at least with the AIX C compiler.
5209    : > sub/conftest.c
5210    for i in 1 2 3 4 5 6; do
5211      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5212      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5213      # Solaris 8's {/usr,}/bin/sh.
5214      touch sub/conftst$i.h
5215    done
5216    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5217
5218    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5219    # mode.  It turns out that the SunPro C++ compiler does not properly
5220    # handle `-M -o', and we need to detect this.  Also, some Intel
5221    # versions had trouble with output in subdirs
5222    am__obj=sub/conftest.${OBJEXT-o}
5223    am__minus_obj="-o $am__obj"
5224    case $depmode in
5225    gcc)
5226      # This depmode causes a compiler race in universal mode.
5227      test "$am__universal" = false || continue
5228      ;;
5229    nosideeffect)
5230      # after this tag, mechanisms are not by side-effect, so they'll
5231      # only be used when explicitly requested
5232      if test "x$enable_dependency_tracking" = xyes; then
5233	continue
5234      else
5235	break
5236      fi
5237      ;;
5238    msvisualcpp | msvcmsys)
5239      # This compiler won't grok `-c -o', but also, the minuso test has
5240      # not run yet.  These depmodes are late enough in the game, and
5241      # so weak that their functioning should not be impacted.
5242      am__obj=conftest.${OBJEXT-o}
5243      am__minus_obj=
5244      ;;
5245    none) break ;;
5246    esac
5247    if depmode=$depmode \
5248       source=sub/conftest.c object=$am__obj \
5249       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5250       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5251         >/dev/null 2>conftest.err &&
5252       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5253       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5254       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5255       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5256      # icc doesn't choke on unknown options, it will just issue warnings
5257      # or remarks (even with -Werror).  So we grep stderr for any message
5258      # that says an option was ignored or not supported.
5259      # When given -MP, icc 7.0 and 7.1 complain thusly:
5260      #   icc: Command line warning: ignoring option '-M'; no argument required
5261      # The diagnosis changed in icc 8.0:
5262      #   icc: Command line remark: option '-MP' not supported
5263      if (grep 'ignoring option' conftest.err ||
5264          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5265        am_cv_CXX_dependencies_compiler_type=$depmode
5266        break
5267      fi
5268    fi
5269  done
5270
5271  cd ..
5272  rm -rf conftest.dir
5273else
5274  am_cv_CXX_dependencies_compiler_type=none
5275fi
5276
5277fi
5278{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5279$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5280CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5281
5282 if
5283  test "x$enable_dependency_tracking" != xno \
5284  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5285  am__fastdepCXX_TRUE=
5286  am__fastdepCXX_FALSE='#'
5287else
5288  am__fastdepCXX_TRUE='#'
5289  am__fastdepCXX_FALSE=
5290fi
5291
5292
5293
5294BINDINGS_CC="$CC"
5295
5296
5297
5298
5299
5300
5301ac_ext=c
5302ac_cpp='$CPP $CPPFLAGS'
5303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5305ac_compiler_gnu=$ac_cv_c_compiler_gnu
5306{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5307$as_echo_n "checking how to run the C preprocessor... " >&6; }
5308# On Suns, sometimes $CPP names a directory.
5309if test -n "$CPP" && test -d "$CPP"; then
5310  CPP=
5311fi
5312if test -z "$CPP"; then
5313  if test "${ac_cv_prog_CPP+set}" = set; then
5314  $as_echo_n "(cached) " >&6
5315else
5316      # Double quotes because CPP needs to be expanded
5317    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5318    do
5319      ac_preproc_ok=false
5320for ac_c_preproc_warn_flag in '' yes
5321do
5322  # Use a header file that comes with gcc, so configuring glibc
5323  # with a fresh cross-compiler works.
5324  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5325  # <limits.h> exists even on freestanding compilers.
5326  # On the NeXT, cc -E runs the code through the compiler's parser,
5327  # not just through cpp. "Syntax error" is here to catch this case.
5328  cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h.  */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
5333/* end confdefs.h.  */
5334#ifdef __STDC__
5335# include <limits.h>
5336#else
5337# include <assert.h>
5338#endif
5339		     Syntax error
5340_ACEOF
5341if { (ac_try="$ac_cpp conftest.$ac_ext"
5342case "(($ac_try" in
5343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344  *) ac_try_echo=$ac_try;;
5345esac
5346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5347$as_echo "$ac_try_echo") >&5
5348  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5349  ac_status=$?
5350  grep -v '^ *+' conftest.er1 >conftest.err
5351  rm -f conftest.er1
5352  cat conftest.err >&5
5353  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354  (exit $ac_status); } >/dev/null && {
5355	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5356	 test ! -s conftest.err
5357       }; then
5358  :
5359else
5360  $as_echo "$as_me: failed program was:" >&5
5361sed 's/^/| /' conftest.$ac_ext >&5
5362
5363  # Broken: fails on valid input.
5364continue
5365fi
5366
5367rm -f conftest.err conftest.$ac_ext
5368
5369  # OK, works on sane cases.  Now check whether nonexistent headers
5370  # can be detected and how.
5371  cat >conftest.$ac_ext <<_ACEOF
5372/* confdefs.h.  */
5373_ACEOF
5374cat confdefs.h >>conftest.$ac_ext
5375cat >>conftest.$ac_ext <<_ACEOF
5376/* end confdefs.h.  */
5377#include <ac_nonexistent.h>
5378_ACEOF
5379if { (ac_try="$ac_cpp conftest.$ac_ext"
5380case "(($ac_try" in
5381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382  *) ac_try_echo=$ac_try;;
5383esac
5384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5385$as_echo "$ac_try_echo") >&5
5386  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5387  ac_status=$?
5388  grep -v '^ *+' conftest.er1 >conftest.err
5389  rm -f conftest.er1
5390  cat conftest.err >&5
5391  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392  (exit $ac_status); } >/dev/null && {
5393	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5394	 test ! -s conftest.err
5395       }; then
5396  # Broken: success on invalid input.
5397continue
5398else
5399  $as_echo "$as_me: failed program was:" >&5
5400sed 's/^/| /' conftest.$ac_ext >&5
5401
5402  # Passes both tests.
5403ac_preproc_ok=:
5404break
5405fi
5406
5407rm -f conftest.err conftest.$ac_ext
5408
5409done
5410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5411rm -f conftest.err conftest.$ac_ext
5412if $ac_preproc_ok; then
5413  break
5414fi
5415
5416    done
5417    ac_cv_prog_CPP=$CPP
5418
5419fi
5420  CPP=$ac_cv_prog_CPP
5421else
5422  ac_cv_prog_CPP=$CPP
5423fi
5424{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5425$as_echo "$CPP" >&6; }
5426ac_preproc_ok=false
5427for ac_c_preproc_warn_flag in '' yes
5428do
5429  # Use a header file that comes with gcc, so configuring glibc
5430  # with a fresh cross-compiler works.
5431  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5432  # <limits.h> exists even on freestanding compilers.
5433  # On the NeXT, cc -E runs the code through the compiler's parser,
5434  # not just through cpp. "Syntax error" is here to catch this case.
5435  cat >conftest.$ac_ext <<_ACEOF
5436/* confdefs.h.  */
5437_ACEOF
5438cat confdefs.h >>conftest.$ac_ext
5439cat >>conftest.$ac_ext <<_ACEOF
5440/* end confdefs.h.  */
5441#ifdef __STDC__
5442# include <limits.h>
5443#else
5444# include <assert.h>
5445#endif
5446		     Syntax error
5447_ACEOF
5448if { (ac_try="$ac_cpp conftest.$ac_ext"
5449case "(($ac_try" in
5450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451  *) ac_try_echo=$ac_try;;
5452esac
5453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5454$as_echo "$ac_try_echo") >&5
5455  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5456  ac_status=$?
5457  grep -v '^ *+' conftest.er1 >conftest.err
5458  rm -f conftest.er1
5459  cat conftest.err >&5
5460  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461  (exit $ac_status); } >/dev/null && {
5462	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5463	 test ! -s conftest.err
5464       }; then
5465  :
5466else
5467  $as_echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
5470  # Broken: fails on valid input.
5471continue
5472fi
5473
5474rm -f conftest.err conftest.$ac_ext
5475
5476  # OK, works on sane cases.  Now check whether nonexistent headers
5477  # can be detected and how.
5478  cat >conftest.$ac_ext <<_ACEOF
5479/* confdefs.h.  */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h.  */
5484#include <ac_nonexistent.h>
5485_ACEOF
5486if { (ac_try="$ac_cpp conftest.$ac_ext"
5487case "(($ac_try" in
5488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489  *) ac_try_echo=$ac_try;;
5490esac
5491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492$as_echo "$ac_try_echo") >&5
5493  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5494  ac_status=$?
5495  grep -v '^ *+' conftest.er1 >conftest.err
5496  rm -f conftest.er1
5497  cat conftest.err >&5
5498  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499  (exit $ac_status); } >/dev/null && {
5500	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5501	 test ! -s conftest.err
5502       }; then
5503  # Broken: success on invalid input.
5504continue
5505else
5506  $as_echo "$as_me: failed program was:" >&5
5507sed 's/^/| /' conftest.$ac_ext >&5
5508
5509  # Passes both tests.
5510ac_preproc_ok=:
5511break
5512fi
5513
5514rm -f conftest.err conftest.$ac_ext
5515
5516done
5517# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5518rm -f conftest.err conftest.$ac_ext
5519if $ac_preproc_ok; then
5520  :
5521else
5522  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5524{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5525See \`config.log' for more details." >&5
5526$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5527See \`config.log' for more details." >&2;}
5528   { (exit 1); exit 1; }; }; }
5529fi
5530
5531ac_ext=c
5532ac_cpp='$CPP $CPPFLAGS'
5533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5535ac_compiler_gnu=$ac_cv_c_compiler_gnu
5536
5537
5538{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5539$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5540if test "${ac_cv_path_GREP+set}" = set; then
5541  $as_echo_n "(cached) " >&6
5542else
5543  if test -z "$GREP"; then
5544  ac_path_GREP_found=false
5545  # Loop through the user's path and test for each of PROGNAME-LIST
5546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5548do
5549  IFS=$as_save_IFS
5550  test -z "$as_dir" && as_dir=.
5551  for ac_prog in grep ggrep; do
5552    for ac_exec_ext in '' $ac_executable_extensions; do
5553      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5554      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5555# Check for GNU ac_path_GREP and select it if it is found.
5556  # Check for GNU $ac_path_GREP
5557case `"$ac_path_GREP" --version 2>&1` in
5558*GNU*)
5559  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5560*)
5561  ac_count=0
5562  $as_echo_n 0123456789 >"conftest.in"
5563  while :
5564  do
5565    cat "conftest.in" "conftest.in" >"conftest.tmp"
5566    mv "conftest.tmp" "conftest.in"
5567    cp "conftest.in" "conftest.nl"
5568    $as_echo 'GREP' >> "conftest.nl"
5569    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5570    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5571    ac_count=`expr $ac_count + 1`
5572    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5573      # Best one so far, save it but keep looking for a better one
5574      ac_cv_path_GREP="$ac_path_GREP"
5575      ac_path_GREP_max=$ac_count
5576    fi
5577    # 10*(2^10) chars as input seems more than enough
5578    test $ac_count -gt 10 && break
5579  done
5580  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5581esac
5582
5583      $ac_path_GREP_found && break 3
5584    done
5585  done
5586done
5587IFS=$as_save_IFS
5588  if test -z "$ac_cv_path_GREP"; then
5589    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5590$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5591   { (exit 1); exit 1; }; }
5592  fi
5593else
5594  ac_cv_path_GREP=$GREP
5595fi
5596
5597fi
5598{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5599$as_echo "$ac_cv_path_GREP" >&6; }
5600 GREP="$ac_cv_path_GREP"
5601
5602
5603{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5604$as_echo_n "checking for egrep... " >&6; }
5605if test "${ac_cv_path_EGREP+set}" = set; then
5606  $as_echo_n "(cached) " >&6
5607else
5608  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5609   then ac_cv_path_EGREP="$GREP -E"
5610   else
5611     if test -z "$EGREP"; then
5612  ac_path_EGREP_found=false
5613  # Loop through the user's path and test for each of PROGNAME-LIST
5614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5616do
5617  IFS=$as_save_IFS
5618  test -z "$as_dir" && as_dir=.
5619  for ac_prog in egrep; do
5620    for ac_exec_ext in '' $ac_executable_extensions; do
5621      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5622      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5623# Check for GNU ac_path_EGREP and select it if it is found.
5624  # Check for GNU $ac_path_EGREP
5625case `"$ac_path_EGREP" --version 2>&1` in
5626*GNU*)
5627  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5628*)
5629  ac_count=0
5630  $as_echo_n 0123456789 >"conftest.in"
5631  while :
5632  do
5633    cat "conftest.in" "conftest.in" >"conftest.tmp"
5634    mv "conftest.tmp" "conftest.in"
5635    cp "conftest.in" "conftest.nl"
5636    $as_echo 'EGREP' >> "conftest.nl"
5637    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5638    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5639    ac_count=`expr $ac_count + 1`
5640    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5641      # Best one so far, save it but keep looking for a better one
5642      ac_cv_path_EGREP="$ac_path_EGREP"
5643      ac_path_EGREP_max=$ac_count
5644    fi
5645    # 10*(2^10) chars as input seems more than enough
5646    test $ac_count -gt 10 && break
5647  done
5648  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5649esac
5650
5651      $ac_path_EGREP_found && break 3
5652    done
5653  done
5654done
5655IFS=$as_save_IFS
5656  if test -z "$ac_cv_path_EGREP"; then
5657    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5658$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5659   { (exit 1); exit 1; }; }
5660  fi
5661else
5662  ac_cv_path_EGREP=$EGREP
5663fi
5664
5665   fi
5666fi
5667{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5668$as_echo "$ac_cv_path_EGREP" >&6; }
5669 EGREP="$ac_cv_path_EGREP"
5670
5671
5672
5673
5674  { $as_echo "$as_me:$LINENO: checking for Minix Amsterdam compiler" >&5
5675$as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5676if test "${gl_cv_c_amsterdam_compiler+set}" = set; then
5677  $as_echo_n "(cached) " >&6
5678else
5679
5680      cat >conftest.$ac_ext <<_ACEOF
5681/* confdefs.h.  */
5682_ACEOF
5683cat confdefs.h >>conftest.$ac_ext
5684cat >>conftest.$ac_ext <<_ACEOF
5685/* end confdefs.h.  */
5686
5687#ifdef __ACK__
5688Amsterdam
5689#endif
5690
5691_ACEOF
5692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5693  $EGREP "Amsterdam" >/dev/null 2>&1; then
5694  gl_cv_c_amsterdam_compiler=yes
5695else
5696  gl_cv_c_amsterdam_compiler=no
5697fi
5698rm -f conftest*
5699
5700
5701fi
5702{ $as_echo "$as_me:$LINENO: result: $gl_cv_c_amsterdam_compiler" >&5
5703$as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5704  if test -z "$AR"; then
5705    if test $gl_cv_c_amsterdam_compiler = yes; then
5706      AR='cc -c.a'
5707      if test -z "$ARFLAGS"; then
5708        ARFLAGS='-o'
5709      fi
5710    else
5711                  if test -n "$ac_tool_prefix"; then
5712  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5713set dummy ${ac_tool_prefix}ar; ac_word=$2
5714{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5715$as_echo_n "checking for $ac_word... " >&6; }
5716if test "${ac_cv_prog_AR+set}" = set; then
5717  $as_echo_n "(cached) " >&6
5718else
5719  if test -n "$AR"; then
5720  ac_cv_prog_AR="$AR" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725  IFS=$as_save_IFS
5726  test -z "$as_dir" && as_dir=.
5727  for ac_exec_ext in '' $ac_executable_extensions; do
5728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729    ac_cv_prog_AR="${ac_tool_prefix}ar"
5730    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731    break 2
5732  fi
5733done
5734done
5735IFS=$as_save_IFS
5736
5737fi
5738fi
5739AR=$ac_cv_prog_AR
5740if test -n "$AR"; then
5741  { $as_echo "$as_me:$LINENO: result: $AR" >&5
5742$as_echo "$AR" >&6; }
5743else
5744  { $as_echo "$as_me:$LINENO: result: no" >&5
5745$as_echo "no" >&6; }
5746fi
5747
5748
5749fi
5750if test -z "$ac_cv_prog_AR"; then
5751  ac_ct_AR=$AR
5752  # Extract the first word of "ar", so it can be a program name with args.
5753set dummy ar; ac_word=$2
5754{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5755$as_echo_n "checking for $ac_word... " >&6; }
5756if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5757  $as_echo_n "(cached) " >&6
5758else
5759  if test -n "$ac_ct_AR"; then
5760  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765  IFS=$as_save_IFS
5766  test -z "$as_dir" && as_dir=.
5767  for ac_exec_ext in '' $ac_executable_extensions; do
5768  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769    ac_cv_prog_ac_ct_AR="ar"
5770    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771    break 2
5772  fi
5773done
5774done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779ac_ct_AR=$ac_cv_prog_ac_ct_AR
5780if test -n "$ac_ct_AR"; then
5781  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5782$as_echo "$ac_ct_AR" >&6; }
5783else
5784  { $as_echo "$as_me:$LINENO: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788  if test "x$ac_ct_AR" = x; then
5789    AR="ar"
5790  else
5791    case $cross_compiling:$ac_tool_warned in
5792yes:)
5793{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795ac_tool_warned=yes ;;
5796esac
5797    AR=$ac_ct_AR
5798  fi
5799else
5800  AR="$ac_cv_prog_AR"
5801fi
5802
5803      if test -z "$ARFLAGS"; then
5804        ARFLAGS='cru'
5805      fi
5806    fi
5807  else
5808    if test -z "$ARFLAGS"; then
5809      ARFLAGS='cru'
5810    fi
5811  fi
5812
5813
5814  if test -z "$RANLIB"; then
5815    if test $gl_cv_c_amsterdam_compiler = yes; then
5816      RANLIB=':'
5817    else
5818            if test -n "$ac_tool_prefix"; then
5819  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5820set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5821{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
5823if test "${ac_cv_prog_RANLIB+set}" = set; then
5824  $as_echo_n "(cached) " >&6
5825else
5826  if test -n "$RANLIB"; then
5827  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832  IFS=$as_save_IFS
5833  test -z "$as_dir" && as_dir=.
5834  for ac_exec_ext in '' $ac_executable_extensions; do
5835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5837    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838    break 2
5839  fi
5840done
5841done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
5846RANLIB=$ac_cv_prog_RANLIB
5847if test -n "$RANLIB"; then
5848  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5849$as_echo "$RANLIB" >&6; }
5850else
5851  { $as_echo "$as_me:$LINENO: result: no" >&5
5852$as_echo "no" >&6; }
5853fi
5854
5855
5856fi
5857if test -z "$ac_cv_prog_RANLIB"; then
5858  ac_ct_RANLIB=$RANLIB
5859  # Extract the first word of "ranlib", so it can be a program name with args.
5860set dummy ranlib; ac_word=$2
5861{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5862$as_echo_n "checking for $ac_word... " >&6; }
5863if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5864  $as_echo_n "(cached) " >&6
5865else
5866  if test -n "$ac_ct_RANLIB"; then
5867  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872  IFS=$as_save_IFS
5873  test -z "$as_dir" && as_dir=.
5874  for ac_exec_ext in '' $ac_executable_extensions; do
5875  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876    ac_cv_prog_ac_ct_RANLIB="ranlib"
5877    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878    break 2
5879  fi
5880done
5881done
5882IFS=$as_save_IFS
5883
5884fi
5885fi
5886ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5887if test -n "$ac_ct_RANLIB"; then
5888  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5889$as_echo "$ac_ct_RANLIB" >&6; }
5890else
5891  { $as_echo "$as_me:$LINENO: result: no" >&5
5892$as_echo "no" >&6; }
5893fi
5894
5895  if test "x$ac_ct_RANLIB" = x; then
5896    RANLIB=":"
5897  else
5898    case $cross_compiling:$ac_tool_warned in
5899yes:)
5900{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902ac_tool_warned=yes ;;
5903esac
5904    RANLIB=$ac_ct_RANLIB
5905  fi
5906else
5907  RANLIB="$ac_cv_prog_RANLIB"
5908fi
5909
5910    fi
5911  fi
5912
5913
5914if test "x$CC" != xcc; then
5915  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5916$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5917else
5918  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5919$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5920fi
5921set dummy $CC; ac_cc=`$as_echo "$2" |
5922		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5923if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5924  $as_echo_n "(cached) " >&6
5925else
5926  cat >conftest.$ac_ext <<_ACEOF
5927/* confdefs.h.  */
5928_ACEOF
5929cat confdefs.h >>conftest.$ac_ext
5930cat >>conftest.$ac_ext <<_ACEOF
5931/* end confdefs.h.  */
5932
5933int
5934main ()
5935{
5936
5937  ;
5938  return 0;
5939}
5940_ACEOF
5941# Make sure it works both with $CC and with simple cc.
5942# We do the test twice because some compilers refuse to overwrite an
5943# existing .o file with -o, though they will create one.
5944ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5945rm -f conftest2.*
5946if { (case "(($ac_try" in
5947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948  *) ac_try_echo=$ac_try;;
5949esac
5950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5951$as_echo "$ac_try_echo") >&5
5952  (eval "$ac_try") 2>&5
5953  ac_status=$?
5954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); } &&
5956   test -f conftest2.$ac_objext && { (case "(($ac_try" in
5957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958  *) ac_try_echo=$ac_try;;
5959esac
5960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5961$as_echo "$ac_try_echo") >&5
5962  (eval "$ac_try") 2>&5
5963  ac_status=$?
5964  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965  (exit $ac_status); };
5966then
5967  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5968  if test "x$CC" != xcc; then
5969    # Test first that cc exists at all.
5970    if { ac_try='cc -c conftest.$ac_ext >&5'
5971  { (case "(($ac_try" in
5972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973  *) ac_try_echo=$ac_try;;
5974esac
5975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5976$as_echo "$ac_try_echo") >&5
5977  (eval "$ac_try") 2>&5
5978  ac_status=$?
5979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980  (exit $ac_status); }; }; then
5981      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5982      rm -f conftest2.*
5983      if { (case "(($ac_try" in
5984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985  *) ac_try_echo=$ac_try;;
5986esac
5987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5988$as_echo "$ac_try_echo") >&5
5989  (eval "$ac_try") 2>&5
5990  ac_status=$?
5991  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992  (exit $ac_status); } &&
5993	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995  *) ac_try_echo=$ac_try;;
5996esac
5997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5998$as_echo "$ac_try_echo") >&5
5999  (eval "$ac_try") 2>&5
6000  ac_status=$?
6001  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002  (exit $ac_status); };
6003      then
6004	# cc works too.
6005	:
6006      else
6007	# cc exists but doesn't like -o.
6008	eval ac_cv_prog_cc_${ac_cc}_c_o=no
6009      fi
6010    fi
6011  fi
6012else
6013  eval ac_cv_prog_cc_${ac_cc}_c_o=no
6014fi
6015rm -f core conftest*
6016
6017fi
6018if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6019  { $as_echo "$as_me:$LINENO: result: yes" >&5
6020$as_echo "yes" >&6; }
6021else
6022  { $as_echo "$as_me:$LINENO: result: no" >&5
6023$as_echo "no" >&6; }
6024
6025cat >>confdefs.h <<\_ACEOF
6026#define NO_MINUS_C_MINUS_O 1
6027_ACEOF
6028
6029fi
6030
6031# FIXME: we rely on the cache variable name because
6032# there is no other way.
6033set dummy $CC
6034am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6035eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6036if test "$am_t" != yes; then
6037   # Losing compiler, so override with the script.
6038   # FIXME: It is wrong to rewrite CC.
6039   # But if we don't then we get into trouble of one sort or another.
6040   # A longer-term fix would be to have automake use am__CC in this case,
6041   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6042   CC="$am_aux_dir/compile $CC"
6043fi
6044
6045
6046{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6047$as_echo_n "checking for ANSI C header files... " >&6; }
6048if test "${ac_cv_header_stdc+set}" = set; then
6049  $as_echo_n "(cached) " >&6
6050else
6051  cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h.  */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h.  */
6057#include <stdlib.h>
6058#include <stdarg.h>
6059#include <string.h>
6060#include <float.h>
6061
6062int
6063main ()
6064{
6065
6066  ;
6067  return 0;
6068}
6069_ACEOF
6070rm -f conftest.$ac_objext
6071if { (ac_try="$ac_compile"
6072case "(($ac_try" in
6073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074  *) ac_try_echo=$ac_try;;
6075esac
6076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6077$as_echo "$ac_try_echo") >&5
6078  (eval "$ac_compile") 2>conftest.er1
6079  ac_status=$?
6080  grep -v '^ *+' conftest.er1 >conftest.err
6081  rm -f conftest.er1
6082  cat conftest.err >&5
6083  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084  (exit $ac_status); } && {
6085	 test -z "$ac_c_werror_flag" ||
6086	 test ! -s conftest.err
6087       } && test -s conftest.$ac_objext; then
6088  ac_cv_header_stdc=yes
6089else
6090  $as_echo "$as_me: failed program was:" >&5
6091sed 's/^/| /' conftest.$ac_ext >&5
6092
6093	ac_cv_header_stdc=no
6094fi
6095
6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097
6098if test $ac_cv_header_stdc = yes; then
6099  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6100  cat >conftest.$ac_ext <<_ACEOF
6101/* confdefs.h.  */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h.  */
6106#include <string.h>
6107
6108_ACEOF
6109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6110  $EGREP "memchr" >/dev/null 2>&1; then
6111  :
6112else
6113  ac_cv_header_stdc=no
6114fi
6115rm -f conftest*
6116
6117fi
6118
6119if test $ac_cv_header_stdc = yes; then
6120  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6121  cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h.  */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h.  */
6127#include <stdlib.h>
6128
6129_ACEOF
6130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6131  $EGREP "free" >/dev/null 2>&1; then
6132  :
6133else
6134  ac_cv_header_stdc=no
6135fi
6136rm -f conftest*
6137
6138fi
6139
6140if test $ac_cv_header_stdc = yes; then
6141  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6142  if test "$cross_compiling" = yes; then
6143  :
6144else
6145  cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h.  */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h.  */
6151#include <ctype.h>
6152#include <stdlib.h>
6153#if ((' ' & 0x0FF) == 0x020)
6154# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6155# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6156#else
6157# define ISLOWER(c) \
6158		   (('a' <= (c) && (c) <= 'i') \
6159		     || ('j' <= (c) && (c) <= 'r') \
6160		     || ('s' <= (c) && (c) <= 'z'))
6161# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6162#endif
6163
6164#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6165int
6166main ()
6167{
6168  int i;
6169  for (i = 0; i < 256; i++)
6170    if (XOR (islower (i), ISLOWER (i))
6171	|| toupper (i) != TOUPPER (i))
6172      return 2;
6173  return 0;
6174}
6175_ACEOF
6176rm -f conftest$ac_exeext
6177if { (ac_try="$ac_link"
6178case "(($ac_try" in
6179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180  *) ac_try_echo=$ac_try;;
6181esac
6182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6183$as_echo "$ac_try_echo") >&5
6184  (eval "$ac_link") 2>&5
6185  ac_status=$?
6186  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6188  { (case "(($ac_try" in
6189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190  *) ac_try_echo=$ac_try;;
6191esac
6192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6193$as_echo "$ac_try_echo") >&5
6194  (eval "$ac_try") 2>&5
6195  ac_status=$?
6196  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); }; }; then
6198  :
6199else
6200  $as_echo "$as_me: program exited with status $ac_status" >&5
6201$as_echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204( exit $ac_status )
6205ac_cv_header_stdc=no
6206fi
6207rm -rf conftest.dSYM
6208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6209fi
6210
6211
6212fi
6213fi
6214{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6215$as_echo "$ac_cv_header_stdc" >&6; }
6216if test $ac_cv_header_stdc = yes; then
6217
6218cat >>confdefs.h <<\_ACEOF
6219#define STDC_HEADERS 1
6220_ACEOF
6221
6222fi
6223
6224# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6235		  inttypes.h stdint.h unistd.h
6236do
6237as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6238{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6239$as_echo_n "checking for $ac_header... " >&6; }
6240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6241  $as_echo_n "(cached) " >&6
6242else
6243  cat >conftest.$ac_ext <<_ACEOF
6244/* confdefs.h.  */
6245_ACEOF
6246cat confdefs.h >>conftest.$ac_ext
6247cat >>conftest.$ac_ext <<_ACEOF
6248/* end confdefs.h.  */
6249$ac_includes_default
6250
6251#include <$ac_header>
6252_ACEOF
6253rm -f conftest.$ac_objext
6254if { (ac_try="$ac_compile"
6255case "(($ac_try" in
6256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257  *) ac_try_echo=$ac_try;;
6258esac
6259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6260$as_echo "$ac_try_echo") >&5
6261  (eval "$ac_compile") 2>conftest.er1
6262  ac_status=$?
6263  grep -v '^ *+' conftest.er1 >conftest.err
6264  rm -f conftest.er1
6265  cat conftest.err >&5
6266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267  (exit $ac_status); } && {
6268	 test -z "$ac_c_werror_flag" ||
6269	 test ! -s conftest.err
6270       } && test -s conftest.$ac_objext; then
6271  eval "$as_ac_Header=yes"
6272else
6273  $as_echo "$as_me: failed program was:" >&5
6274sed 's/^/| /' conftest.$ac_ext >&5
6275
6276	eval "$as_ac_Header=no"
6277fi
6278
6279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280fi
6281ac_res=`eval 'as_val=${'$as_ac_Header'}
6282		 $as_echo "$as_val"'`
6283	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6284$as_echo "$ac_res" >&6; }
6285as_val=`eval 'as_val=${'$as_ac_Header'}
6286		 $as_echo "$as_val"'`
6287   if test "x$as_val" = x""yes; then
6288  cat >>confdefs.h <<_ACEOF
6289#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6290_ACEOF
6291
6292fi
6293
6294done
6295
6296
6297
6298  if test "${ac_cv_header_minix_config_h+set}" = set; then
6299  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6300$as_echo_n "checking for minix/config.h... " >&6; }
6301if test "${ac_cv_header_minix_config_h+set}" = set; then
6302  $as_echo_n "(cached) " >&6
6303fi
6304{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6305$as_echo "$ac_cv_header_minix_config_h" >&6; }
6306else
6307  # Is the header compilable?
6308{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6309$as_echo_n "checking minix/config.h usability... " >&6; }
6310cat >conftest.$ac_ext <<_ACEOF
6311/* confdefs.h.  */
6312_ACEOF
6313cat confdefs.h >>conftest.$ac_ext
6314cat >>conftest.$ac_ext <<_ACEOF
6315/* end confdefs.h.  */
6316$ac_includes_default
6317#include <minix/config.h>
6318_ACEOF
6319rm -f conftest.$ac_objext
6320if { (ac_try="$ac_compile"
6321case "(($ac_try" in
6322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323  *) ac_try_echo=$ac_try;;
6324esac
6325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6326$as_echo "$ac_try_echo") >&5
6327  (eval "$ac_compile") 2>conftest.er1
6328  ac_status=$?
6329  grep -v '^ *+' conftest.er1 >conftest.err
6330  rm -f conftest.er1
6331  cat conftest.err >&5
6332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333  (exit $ac_status); } && {
6334	 test -z "$ac_c_werror_flag" ||
6335	 test ! -s conftest.err
6336       } && test -s conftest.$ac_objext; then
6337  ac_header_compiler=yes
6338else
6339  $as_echo "$as_me: failed program was:" >&5
6340sed 's/^/| /' conftest.$ac_ext >&5
6341
6342	ac_header_compiler=no
6343fi
6344
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6347$as_echo "$ac_header_compiler" >&6; }
6348
6349# Is the header present?
6350{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6351$as_echo_n "checking minix/config.h presence... " >&6; }
6352cat >conftest.$ac_ext <<_ACEOF
6353/* confdefs.h.  */
6354_ACEOF
6355cat confdefs.h >>conftest.$ac_ext
6356cat >>conftest.$ac_ext <<_ACEOF
6357/* end confdefs.h.  */
6358#include <minix/config.h>
6359_ACEOF
6360if { (ac_try="$ac_cpp conftest.$ac_ext"
6361case "(($ac_try" in
6362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363  *) ac_try_echo=$ac_try;;
6364esac
6365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6366$as_echo "$ac_try_echo") >&5
6367  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6368  ac_status=$?
6369  grep -v '^ *+' conftest.er1 >conftest.err
6370  rm -f conftest.er1
6371  cat conftest.err >&5
6372  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373  (exit $ac_status); } >/dev/null && {
6374	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6375	 test ! -s conftest.err
6376       }; then
6377  ac_header_preproc=yes
6378else
6379  $as_echo "$as_me: failed program was:" >&5
6380sed 's/^/| /' conftest.$ac_ext >&5
6381
6382  ac_header_preproc=no
6383fi
6384
6385rm -f conftest.err conftest.$ac_ext
6386{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6387$as_echo "$ac_header_preproc" >&6; }
6388
6389# So?  What about this header?
6390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6391  yes:no: )
6392    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6393$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6394    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6395$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6396    ac_header_preproc=yes
6397    ;;
6398  no:yes:* )
6399    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6400$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6401    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
6402$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
6403    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6404$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6405    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
6406$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6407    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6408$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6409    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6410$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6411
6412    ;;
6413esac
6414{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6415$as_echo_n "checking for minix/config.h... " >&6; }
6416if test "${ac_cv_header_minix_config_h+set}" = set; then
6417  $as_echo_n "(cached) " >&6
6418else
6419  ac_cv_header_minix_config_h=$ac_header_preproc
6420fi
6421{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6422$as_echo "$ac_cv_header_minix_config_h" >&6; }
6423
6424fi
6425if test "x$ac_cv_header_minix_config_h" = x""yes; then
6426  MINIX=yes
6427else
6428  MINIX=
6429fi
6430
6431
6432  if test "$MINIX" = yes; then
6433
6434cat >>confdefs.h <<\_ACEOF
6435#define _POSIX_SOURCE 1
6436_ACEOF
6437
6438
6439cat >>confdefs.h <<\_ACEOF
6440#define _POSIX_1_SOURCE 2
6441_ACEOF
6442
6443
6444cat >>confdefs.h <<\_ACEOF
6445#define _MINIX 1
6446_ACEOF
6447
6448
6449cat >>confdefs.h <<\_ACEOF
6450#define _NETBSD_SOURCE 1
6451_ACEOF
6452
6453  fi
6454
6455
6456
6457  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6458$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6459if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6460  $as_echo_n "(cached) " >&6
6461else
6462  cat >conftest.$ac_ext <<_ACEOF
6463/* confdefs.h.  */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
6467/* end confdefs.h.  */
6468
6469#         define __EXTENSIONS__ 1
6470          $ac_includes_default
6471int
6472main ()
6473{
6474
6475  ;
6476  return 0;
6477}
6478_ACEOF
6479rm -f conftest.$ac_objext
6480if { (ac_try="$ac_compile"
6481case "(($ac_try" in
6482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483  *) ac_try_echo=$ac_try;;
6484esac
6485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6486$as_echo "$ac_try_echo") >&5
6487  (eval "$ac_compile") 2>conftest.er1
6488  ac_status=$?
6489  grep -v '^ *+' conftest.er1 >conftest.err
6490  rm -f conftest.er1
6491  cat conftest.err >&5
6492  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493  (exit $ac_status); } && {
6494	 test -z "$ac_c_werror_flag" ||
6495	 test ! -s conftest.err
6496       } && test -s conftest.$ac_objext; then
6497  ac_cv_safe_to_define___extensions__=yes
6498else
6499  $as_echo "$as_me: failed program was:" >&5
6500sed 's/^/| /' conftest.$ac_ext >&5
6501
6502	ac_cv_safe_to_define___extensions__=no
6503fi
6504
6505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506fi
6507{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6508$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6509  test $ac_cv_safe_to_define___extensions__ = yes &&
6510    cat >>confdefs.h <<\_ACEOF
6511#define __EXTENSIONS__ 1
6512_ACEOF
6513
6514  cat >>confdefs.h <<\_ACEOF
6515#define _ALL_SOURCE 1
6516_ACEOF
6517
6518  cat >>confdefs.h <<\_ACEOF
6519#define _DARWIN_C_SOURCE 1
6520_ACEOF
6521
6522  cat >>confdefs.h <<\_ACEOF
6523#define _GNU_SOURCE 1
6524_ACEOF
6525
6526  cat >>confdefs.h <<\_ACEOF
6527#define _POSIX_PTHREAD_SEMANTICS 1
6528_ACEOF
6529
6530  cat >>confdefs.h <<\_ACEOF
6531#define _TANDEM_SOURCE 1
6532_ACEOF
6533
6534  { $as_echo "$as_me:$LINENO: checking whether _XOPEN_SOURCE should be defined" >&5
6535$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6536if test "${ac_cv_should_define__xopen_source+set}" = set; then
6537  $as_echo_n "(cached) " >&6
6538else
6539  ac_cv_should_define__xopen_source=no
6540     cat >conftest.$ac_ext <<_ACEOF
6541/* confdefs.h.  */
6542_ACEOF
6543cat confdefs.h >>conftest.$ac_ext
6544cat >>conftest.$ac_ext <<_ACEOF
6545/* end confdefs.h.  */
6546
6547          #include <wchar.h>
6548          mbstate_t x;
6549int
6550main ()
6551{
6552
6553  ;
6554  return 0;
6555}
6556_ACEOF
6557rm -f conftest.$ac_objext
6558if { (ac_try="$ac_compile"
6559case "(($ac_try" in
6560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561  *) ac_try_echo=$ac_try;;
6562esac
6563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6564$as_echo "$ac_try_echo") >&5
6565  (eval "$ac_compile") 2>conftest.er1
6566  ac_status=$?
6567  grep -v '^ *+' conftest.er1 >conftest.err
6568  rm -f conftest.er1
6569  cat conftest.err >&5
6570  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571  (exit $ac_status); } && {
6572	 test -z "$ac_c_werror_flag" ||
6573	 test ! -s conftest.err
6574       } && test -s conftest.$ac_objext; then
6575  :
6576else
6577  $as_echo "$as_me: failed program was:" >&5
6578sed 's/^/| /' conftest.$ac_ext >&5
6579
6580	cat >conftest.$ac_ext <<_ACEOF
6581/* confdefs.h.  */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h.  */
6586
6587             #define _XOPEN_SOURCE 500
6588             #include <wchar.h>
6589             mbstate_t x;
6590int
6591main ()
6592{
6593
6594  ;
6595  return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext
6599if { (ac_try="$ac_compile"
6600case "(($ac_try" in
6601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602  *) ac_try_echo=$ac_try;;
6603esac
6604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6605$as_echo "$ac_try_echo") >&5
6606  (eval "$ac_compile") 2>conftest.er1
6607  ac_status=$?
6608  grep -v '^ *+' conftest.er1 >conftest.err
6609  rm -f conftest.er1
6610  cat conftest.err >&5
6611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612  (exit $ac_status); } && {
6613	 test -z "$ac_c_werror_flag" ||
6614	 test ! -s conftest.err
6615       } && test -s conftest.$ac_objext; then
6616  ac_cv_should_define__xopen_source=yes
6617else
6618  $as_echo "$as_me: failed program was:" >&5
6619sed 's/^/| /' conftest.$ac_ext >&5
6620
6621
6622fi
6623
6624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625fi
6626
6627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628fi
6629{ $as_echo "$as_me:$LINENO: result: $ac_cv_should_define__xopen_source" >&5
6630$as_echo "$ac_cv_should_define__xopen_source" >&6; }
6631  test $ac_cv_should_define__xopen_source = yes &&
6632    cat >>confdefs.h <<\_ACEOF
6633#define _XOPEN_SOURCE 500
6634_ACEOF
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647  # IEEE behaviour is the default on all CPUs except Alpha and SH
6648  # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6649  # and the GCC 4.1.2 manual).
6650  case "$host_cpu" in
6651    alpha*)
6652      # On Alpha systems, a compiler option provides the behaviour.
6653      # See the ieee(3) manual page, also available at
6654      # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
6655      if test -n "$GCC"; then
6656        # GCC has the option -mieee.
6657        # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6658        CPPFLAGS="$CPPFLAGS -mieee"
6659      else
6660        # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6661        # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6662        CPPFLAGS="$CPPFLAGS -ieee"
6663      fi
6664      ;;
6665    sh*)
6666      if test -n "$GCC"; then
6667        # GCC has the option -mieee.
6668        CPPFLAGS="$CPPFLAGS -mieee"
6669      fi
6670      ;;
6671  esac
6672
6673
6674
6675
6676
6677
6678  # Check whether --enable-threads was given.
6679if test "${enable_threads+set}" = set; then
6680  enableval=$enable_threads; gl_use_threads=$enableval
6681else
6682  if test -n "$gl_use_threads_default"; then
6683       gl_use_threads="$gl_use_threads_default"
6684     else
6685       case "$host_os" in
6686                                                               osf*) gl_use_threads=no ;;
6687         cygwin*)
6688               case `uname -r` in
6689                 1.[0-5].*) gl_use_threads=no ;;
6690                 *)         gl_use_threads=yes ;;
6691               esac
6692               ;;
6693         *)    gl_use_threads=yes ;;
6694       esac
6695     fi
6696
6697fi
6698
6699  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6700    # For using <pthread.h>:
6701    case "$host_os" in
6702      osf*)
6703        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6704        # groks <pthread.h>. cc also understands the flag -pthread, but
6705        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6706        # 2. putting a flag into CPPFLAGS that has an effect on the linker
6707        # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6708        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6709        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6710        ;;
6711    esac
6712    # Some systems optimize for single-threaded programs by default, and
6713    # need special flags to disable these optimizations. For example, the
6714    # definition of 'errno' in <errno.h>.
6715    case "$host_os" in
6716      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6717      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6718    esac
6719  fi
6720
6721
6722
6723
6724  # Code from module absolute-header:
6725  # Code from module alloca-opt:
6726  # Code from module alloca-opt-tests:
6727  # Code from module errno:
6728  # Code from module errno-tests:
6729  # Code from module extensions:
6730
6731  # Code from module extern-inline:
6732  # Code from module fdopen:
6733  # Code from module fdopen-tests:
6734  # Code from module fgetc-tests:
6735  # Code from module float:
6736  # Code from module float-tests:
6737  # Code from module fpieee:
6738
6739  # Code from module fpucw:
6740  # Code from module fputc-tests:
6741  # Code from module fread-tests:
6742  # Code from module fwrite-tests:
6743  # Code from module getpagesize:
6744  # Code from module gettimeofday:
6745  # Code from module gettimeofday-tests:
6746  # Code from module havelib:
6747  # Code from module include_next:
6748  # Code from module intprops:
6749  # Code from module intprops-tests:
6750  # Code from module inttypes:
6751  # Code from module inttypes-incomplete:
6752  # Code from module inttypes-tests:
6753  # Code from module lock:
6754  # Code from module lock-tests:
6755  # Code from module malloc-posix:
6756  # Code from module memchr:
6757  # Code from module memchr-tests:
6758  # Code from module memrchr:
6759  # Code from module memrchr-tests:
6760  # Code from module msvc-inval:
6761  # Code from module multiarch:
6762  # Code from module size_max:
6763  # Code from module snippet/_Noreturn:
6764  # Code from module snippet/arg-nonnull:
6765  # Code from module snippet/c++defs:
6766  # Code from module snippet/warn-on-use:
6767  # Code from module snprintf:
6768  # Code from module snprintf-tests:
6769  # Code from module ssize_t:
6770  # Code from module stdbool:
6771  # Code from module stdbool-tests:
6772  # Code from module stddef:
6773  # Code from module stddef-tests:
6774  # Code from module stdint:
6775  # Code from module stdint-tests:
6776  # Code from module stdio:
6777  # Code from module stdio-tests:
6778  # Code from module stdlib:
6779  # Code from module stdlib-tests:
6780  # Code from module strdup-posix:
6781  # Code from module string:
6782  # Code from module string-tests:
6783  # Code from module strndup:
6784  # Code from module strnlen:
6785  # Code from module strnlen-tests:
6786  # Code from module sys_time:
6787  # Code from module sys_time-tests:
6788  # Code from module sys_types:
6789  # Code from module sys_types-tests:
6790  # Code from module test-framework-sh:
6791  # Code from module test-framework-sh-tests:
6792  # Code from module thread:
6793  # Code from module thread-tests:
6794  # Code from module threadlib:
6795
6796
6797
6798  # Code from module time:
6799  # Code from module time-tests:
6800  # Code from module time_r:
6801  # Code from module unistd:
6802  # Code from module unistd-tests:
6803  # Code from module vasnprintf:
6804  # Code from module vasnprintf-tests:
6805  # Code from module verify:
6806  # Code from module verify-tests:
6807  # Code from module vsnprintf:
6808  # Code from module vsnprintf-tests:
6809  # Code from module wchar:
6810  # Code from module wchar-tests:
6811  # Code from module xsize:
6812  # Code from module yield:
6813
6814
6815
6816
6817enable_dlopen=yes
6818
6819
6820
6821enable_win32_dll=yes
6822
6823case $host in
6824*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6825  if test -n "$ac_tool_prefix"; then
6826  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6827set dummy ${ac_tool_prefix}as; ac_word=$2
6828{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6829$as_echo_n "checking for $ac_word... " >&6; }
6830if test "${ac_cv_prog_AS+set}" = set; then
6831  $as_echo_n "(cached) " >&6
6832else
6833  if test -n "$AS"; then
6834  ac_cv_prog_AS="$AS" # Let the user override the test.
6835else
6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839  IFS=$as_save_IFS
6840  test -z "$as_dir" && as_dir=.
6841  for ac_exec_ext in '' $ac_executable_extensions; do
6842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843    ac_cv_prog_AS="${ac_tool_prefix}as"
6844    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845    break 2
6846  fi
6847done
6848done
6849IFS=$as_save_IFS
6850
6851fi
6852fi
6853AS=$ac_cv_prog_AS
6854if test -n "$AS"; then
6855  { $as_echo "$as_me:$LINENO: result: $AS" >&5
6856$as_echo "$AS" >&6; }
6857else
6858  { $as_echo "$as_me:$LINENO: result: no" >&5
6859$as_echo "no" >&6; }
6860fi
6861
6862
6863fi
6864if test -z "$ac_cv_prog_AS"; then
6865  ac_ct_AS=$AS
6866  # Extract the first word of "as", so it can be a program name with args.
6867set dummy as; ac_word=$2
6868{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6869$as_echo_n "checking for $ac_word... " >&6; }
6870if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6871  $as_echo_n "(cached) " >&6
6872else
6873  if test -n "$ac_ct_AS"; then
6874  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879  IFS=$as_save_IFS
6880  test -z "$as_dir" && as_dir=.
6881  for ac_exec_ext in '' $ac_executable_extensions; do
6882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6883    ac_cv_prog_ac_ct_AS="as"
6884    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885    break 2
6886  fi
6887done
6888done
6889IFS=$as_save_IFS
6890
6891fi
6892fi
6893ac_ct_AS=$ac_cv_prog_ac_ct_AS
6894if test -n "$ac_ct_AS"; then
6895  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6896$as_echo "$ac_ct_AS" >&6; }
6897else
6898  { $as_echo "$as_me:$LINENO: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902  if test "x$ac_ct_AS" = x; then
6903    AS="false"
6904  else
6905    case $cross_compiling:$ac_tool_warned in
6906yes:)
6907{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909ac_tool_warned=yes ;;
6910esac
6911    AS=$ac_ct_AS
6912  fi
6913else
6914  AS="$ac_cv_prog_AS"
6915fi
6916
6917  if test -n "$ac_tool_prefix"; then
6918  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6919set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6920{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6921$as_echo_n "checking for $ac_word... " >&6; }
6922if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6923  $as_echo_n "(cached) " >&6
6924else
6925  if test -n "$DLLTOOL"; then
6926  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6927else
6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929for as_dir in $PATH
6930do
6931  IFS=$as_save_IFS
6932  test -z "$as_dir" && as_dir=.
6933  for ac_exec_ext in '' $ac_executable_extensions; do
6934  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6936    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937    break 2
6938  fi
6939done
6940done
6941IFS=$as_save_IFS
6942
6943fi
6944fi
6945DLLTOOL=$ac_cv_prog_DLLTOOL
6946if test -n "$DLLTOOL"; then
6947  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6948$as_echo "$DLLTOOL" >&6; }
6949else
6950  { $as_echo "$as_me:$LINENO: result: no" >&5
6951$as_echo "no" >&6; }
6952fi
6953
6954
6955fi
6956if test -z "$ac_cv_prog_DLLTOOL"; then
6957  ac_ct_DLLTOOL=$DLLTOOL
6958  # Extract the first word of "dlltool", so it can be a program name with args.
6959set dummy dlltool; ac_word=$2
6960{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6961$as_echo_n "checking for $ac_word... " >&6; }
6962if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6963  $as_echo_n "(cached) " >&6
6964else
6965  if test -n "$ac_ct_DLLTOOL"; then
6966  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6967else
6968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969for as_dir in $PATH
6970do
6971  IFS=$as_save_IFS
6972  test -z "$as_dir" && as_dir=.
6973  for ac_exec_ext in '' $ac_executable_extensions; do
6974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6976    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977    break 2
6978  fi
6979done
6980done
6981IFS=$as_save_IFS
6982
6983fi
6984fi
6985ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6986if test -n "$ac_ct_DLLTOOL"; then
6987  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6988$as_echo "$ac_ct_DLLTOOL" >&6; }
6989else
6990  { $as_echo "$as_me:$LINENO: result: no" >&5
6991$as_echo "no" >&6; }
6992fi
6993
6994  if test "x$ac_ct_DLLTOOL" = x; then
6995    DLLTOOL="false"
6996  else
6997    case $cross_compiling:$ac_tool_warned in
6998yes:)
6999{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001ac_tool_warned=yes ;;
7002esac
7003    DLLTOOL=$ac_ct_DLLTOOL
7004  fi
7005else
7006  DLLTOOL="$ac_cv_prog_DLLTOOL"
7007fi
7008
7009  if test -n "$ac_tool_prefix"; then
7010  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7011set dummy ${ac_tool_prefix}objdump; ac_word=$2
7012{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7013$as_echo_n "checking for $ac_word... " >&6; }
7014if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7015  $as_echo_n "(cached) " >&6
7016else
7017  if test -n "$OBJDUMP"; then
7018  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7019else
7020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023  IFS=$as_save_IFS
7024  test -z "$as_dir" && as_dir=.
7025  for ac_exec_ext in '' $ac_executable_extensions; do
7026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7028    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029    break 2
7030  fi
7031done
7032done
7033IFS=$as_save_IFS
7034
7035fi
7036fi
7037OBJDUMP=$ac_cv_prog_OBJDUMP
7038if test -n "$OBJDUMP"; then
7039  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7040$as_echo "$OBJDUMP" >&6; }
7041else
7042  { $as_echo "$as_me:$LINENO: result: no" >&5
7043$as_echo "no" >&6; }
7044fi
7045
7046
7047fi
7048if test -z "$ac_cv_prog_OBJDUMP"; then
7049  ac_ct_OBJDUMP=$OBJDUMP
7050  # Extract the first word of "objdump", so it can be a program name with args.
7051set dummy objdump; ac_word=$2
7052{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7053$as_echo_n "checking for $ac_word... " >&6; }
7054if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7055  $as_echo_n "(cached) " >&6
7056else
7057  if test -n "$ac_ct_OBJDUMP"; then
7058  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7059else
7060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061for as_dir in $PATH
7062do
7063  IFS=$as_save_IFS
7064  test -z "$as_dir" && as_dir=.
7065  for ac_exec_ext in '' $ac_executable_extensions; do
7066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7068    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069    break 2
7070  fi
7071done
7072done
7073IFS=$as_save_IFS
7074
7075fi
7076fi
7077ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7078if test -n "$ac_ct_OBJDUMP"; then
7079  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7080$as_echo "$ac_ct_OBJDUMP" >&6; }
7081else
7082  { $as_echo "$as_me:$LINENO: result: no" >&5
7083$as_echo "no" >&6; }
7084fi
7085
7086  if test "x$ac_ct_OBJDUMP" = x; then
7087    OBJDUMP="false"
7088  else
7089    case $cross_compiling:$ac_tool_warned in
7090yes:)
7091{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093ac_tool_warned=yes ;;
7094esac
7095    OBJDUMP=$ac_ct_OBJDUMP
7096  fi
7097else
7098  OBJDUMP="$ac_cv_prog_OBJDUMP"
7099fi
7100
7101  ;;
7102esac
7103
7104test -z "$AS" && AS=as
7105
7106
7107
7108
7109
7110test -z "$DLLTOOL" && DLLTOOL=dlltool
7111
7112
7113
7114
7115
7116test -z "$OBJDUMP" && OBJDUMP=objdump
7117
7118
7119
7120
7121
7122
7123
7124# Check whether --enable-static was given.
7125if test "${enable_static+set}" = set; then
7126  enableval=$enable_static; p=${PACKAGE-default}
7127    case $enableval in
7128    yes) enable_static=yes ;;
7129    no) enable_static=no ;;
7130    *)
7131     enable_static=no
7132      # Look at the argument we got.  We use all the common list separators.
7133      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7134      for pkg in $enableval; do
7135	IFS="$lt_save_ifs"
7136	if test "X$pkg" = "X$p"; then
7137	  enable_static=yes
7138	fi
7139      done
7140      IFS="$lt_save_ifs"
7141      ;;
7142    esac
7143else
7144  enable_static=no
7145fi
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155case `pwd` in
7156  *\ * | *\	*)
7157    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7158$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7159esac
7160
7161
7162
7163macro_version='2.2.6b'
7164macro_revision='1.3017'
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178ltmain="$ac_aux_dir/ltmain.sh"
7179
7180{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7181$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7182if test "${ac_cv_path_SED+set}" = set; then
7183  $as_echo_n "(cached) " >&6
7184else
7185            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7186     for ac_i in 1 2 3 4 5 6 7; do
7187       ac_script="$ac_script$as_nl$ac_script"
7188     done
7189     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7190     $as_unset ac_script || ac_script=
7191     if test -z "$SED"; then
7192  ac_path_SED_found=false
7193  # Loop through the user's path and test for each of PROGNAME-LIST
7194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197  IFS=$as_save_IFS
7198  test -z "$as_dir" && as_dir=.
7199  for ac_prog in sed gsed; do
7200    for ac_exec_ext in '' $ac_executable_extensions; do
7201      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7202      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7203# Check for GNU ac_path_SED and select it if it is found.
7204  # Check for GNU $ac_path_SED
7205case `"$ac_path_SED" --version 2>&1` in
7206*GNU*)
7207  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7208*)
7209  ac_count=0
7210  $as_echo_n 0123456789 >"conftest.in"
7211  while :
7212  do
7213    cat "conftest.in" "conftest.in" >"conftest.tmp"
7214    mv "conftest.tmp" "conftest.in"
7215    cp "conftest.in" "conftest.nl"
7216    $as_echo '' >> "conftest.nl"
7217    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7218    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7219    ac_count=`expr $ac_count + 1`
7220    if test $ac_count -gt ${ac_path_SED_max-0}; then
7221      # Best one so far, save it but keep looking for a better one
7222      ac_cv_path_SED="$ac_path_SED"
7223      ac_path_SED_max=$ac_count
7224    fi
7225    # 10*(2^10) chars as input seems more than enough
7226    test $ac_count -gt 10 && break
7227  done
7228  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7229esac
7230
7231      $ac_path_SED_found && break 3
7232    done
7233  done
7234done
7235IFS=$as_save_IFS
7236  if test -z "$ac_cv_path_SED"; then
7237    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
7238$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
7239   { (exit 1); exit 1; }; }
7240  fi
7241else
7242  ac_cv_path_SED=$SED
7243fi
7244
7245fi
7246{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7247$as_echo "$ac_cv_path_SED" >&6; }
7248 SED="$ac_cv_path_SED"
7249  rm -f conftest.sed
7250
7251test -z "$SED" && SED=sed
7252Xsed="$SED -e 1s/^X//"
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
7265$as_echo_n "checking for fgrep... " >&6; }
7266if test "${ac_cv_path_FGREP+set}" = set; then
7267  $as_echo_n "(cached) " >&6
7268else
7269  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7270   then ac_cv_path_FGREP="$GREP -F"
7271   else
7272     if test -z "$FGREP"; then
7273  ac_path_FGREP_found=false
7274  # Loop through the user's path and test for each of PROGNAME-LIST
7275  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7277do
7278  IFS=$as_save_IFS
7279  test -z "$as_dir" && as_dir=.
7280  for ac_prog in fgrep; do
7281    for ac_exec_ext in '' $ac_executable_extensions; do
7282      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7283      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7284# Check for GNU ac_path_FGREP and select it if it is found.
7285  # Check for GNU $ac_path_FGREP
7286case `"$ac_path_FGREP" --version 2>&1` in
7287*GNU*)
7288  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7289*)
7290  ac_count=0
7291  $as_echo_n 0123456789 >"conftest.in"
7292  while :
7293  do
7294    cat "conftest.in" "conftest.in" >"conftest.tmp"
7295    mv "conftest.tmp" "conftest.in"
7296    cp "conftest.in" "conftest.nl"
7297    $as_echo 'FGREP' >> "conftest.nl"
7298    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7299    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7300    ac_count=`expr $ac_count + 1`
7301    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7302      # Best one so far, save it but keep looking for a better one
7303      ac_cv_path_FGREP="$ac_path_FGREP"
7304      ac_path_FGREP_max=$ac_count
7305    fi
7306    # 10*(2^10) chars as input seems more than enough
7307    test $ac_count -gt 10 && break
7308  done
7309  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7310esac
7311
7312      $ac_path_FGREP_found && break 3
7313    done
7314  done
7315done
7316IFS=$as_save_IFS
7317  if test -z "$ac_cv_path_FGREP"; then
7318    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7319$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7320   { (exit 1); exit 1; }; }
7321  fi
7322else
7323  ac_cv_path_FGREP=$FGREP
7324fi
7325
7326   fi
7327fi
7328{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7329$as_echo "$ac_cv_path_FGREP" >&6; }
7330 FGREP="$ac_cv_path_FGREP"
7331
7332
7333test -z "$GREP" && GREP=grep
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353# Check whether --with-gnu-ld was given.
7354if test "${with_gnu_ld+set}" = set; then
7355  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7356else
7357  with_gnu_ld=no
7358fi
7359
7360ac_prog=ld
7361if test "$GCC" = yes; then
7362  # Check if gcc -print-prog-name=ld gives a path.
7363  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7364$as_echo_n "checking for ld used by $CC... " >&6; }
7365  case $host in
7366  *-*-mingw*)
7367    # gcc leaves a trailing carriage return which upsets mingw
7368    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7369  *)
7370    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7371  esac
7372  case $ac_prog in
7373    # Accept absolute paths.
7374    [\\/]* | ?:[\\/]*)
7375      re_direlt='/[^/][^/]*/\.\./'
7376      # Canonicalize the pathname of ld
7377      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7378      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7379	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7380      done
7381      test -z "$LD" && LD="$ac_prog"
7382      ;;
7383  "")
7384    # If it fails, then pretend we aren't using GCC.
7385    ac_prog=ld
7386    ;;
7387  *)
7388    # If it is relative, then search for the first ld in PATH.
7389    with_gnu_ld=unknown
7390    ;;
7391  esac
7392elif test "$with_gnu_ld" = yes; then
7393  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7394$as_echo_n "checking for GNU ld... " >&6; }
7395else
7396  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7397$as_echo_n "checking for non-GNU ld... " >&6; }
7398fi
7399if test "${lt_cv_path_LD+set}" = set; then
7400  $as_echo_n "(cached) " >&6
7401else
7402  if test -z "$LD"; then
7403  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7404  for ac_dir in $PATH; do
7405    IFS="$lt_save_ifs"
7406    test -z "$ac_dir" && ac_dir=.
7407    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7408      lt_cv_path_LD="$ac_dir/$ac_prog"
7409      # Check to see if the program is GNU ld.  I'd rather use --version,
7410      # but apparently some variants of GNU ld only accept -v.
7411      # Break only if it was the GNU/non-GNU ld that we prefer.
7412      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7413      *GNU* | *'with BFD'*)
7414	test "$with_gnu_ld" != no && break
7415	;;
7416      *)
7417	test "$with_gnu_ld" != yes && break
7418	;;
7419      esac
7420    fi
7421  done
7422  IFS="$lt_save_ifs"
7423else
7424  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7425fi
7426fi
7427
7428LD="$lt_cv_path_LD"
7429if test -n "$LD"; then
7430  { $as_echo "$as_me:$LINENO: result: $LD" >&5
7431$as_echo "$LD" >&6; }
7432else
7433  { $as_echo "$as_me:$LINENO: result: no" >&5
7434$as_echo "no" >&6; }
7435fi
7436test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7437$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7438   { (exit 1); exit 1; }; }
7439{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7440$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7441if test "${lt_cv_prog_gnu_ld+set}" = set; then
7442  $as_echo_n "(cached) " >&6
7443else
7444  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7445case `$LD -v 2>&1 </dev/null` in
7446*GNU* | *'with BFD'*)
7447  lt_cv_prog_gnu_ld=yes
7448  ;;
7449*)
7450  lt_cv_prog_gnu_ld=no
7451  ;;
7452esac
7453fi
7454{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7455$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7456with_gnu_ld=$lt_cv_prog_gnu_ld
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7467$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7468if test "${lt_cv_path_NM+set}" = set; then
7469  $as_echo_n "(cached) " >&6
7470else
7471  if test -n "$NM"; then
7472  # Let the user override the test.
7473  lt_cv_path_NM="$NM"
7474else
7475  lt_nm_to_check="${ac_tool_prefix}nm"
7476  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7477    lt_nm_to_check="$lt_nm_to_check nm"
7478  fi
7479  for lt_tmp_nm in $lt_nm_to_check; do
7480    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7481    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7482      IFS="$lt_save_ifs"
7483      test -z "$ac_dir" && ac_dir=.
7484      tmp_nm="$ac_dir/$lt_tmp_nm"
7485      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7486	# Check to see if the nm accepts a BSD-compat flag.
7487	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7488	#   nm: unknown option "B" ignored
7489	# Tru64's nm complains that /dev/null is an invalid object file
7490	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7491	*/dev/null* | *'Invalid file or object type'*)
7492	  lt_cv_path_NM="$tmp_nm -B"
7493	  break
7494	  ;;
7495	*)
7496	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7497	  */dev/null*)
7498	    lt_cv_path_NM="$tmp_nm -p"
7499	    break
7500	    ;;
7501	  *)
7502	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7503	    continue # so that we can try to find one that supports BSD flags
7504	    ;;
7505	  esac
7506	  ;;
7507	esac
7508      fi
7509    done
7510    IFS="$lt_save_ifs"
7511  done
7512  : ${lt_cv_path_NM=no}
7513fi
7514fi
7515{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7516$as_echo "$lt_cv_path_NM" >&6; }
7517if test "$lt_cv_path_NM" != "no"; then
7518  NM="$lt_cv_path_NM"
7519else
7520  # Didn't find any BSD compatible name lister, look for dumpbin.
7521  if test -n "$ac_tool_prefix"; then
7522  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7523  do
7524    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7526{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7527$as_echo_n "checking for $ac_word... " >&6; }
7528if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7529  $as_echo_n "(cached) " >&6
7530else
7531  if test -n "$DUMPBIN"; then
7532  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7533else
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537  IFS=$as_save_IFS
7538  test -z "$as_dir" && as_dir=.
7539  for ac_exec_ext in '' $ac_executable_extensions; do
7540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7541    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7542    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543    break 2
7544  fi
7545done
7546done
7547IFS=$as_save_IFS
7548
7549fi
7550fi
7551DUMPBIN=$ac_cv_prog_DUMPBIN
7552if test -n "$DUMPBIN"; then
7553  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7554$as_echo "$DUMPBIN" >&6; }
7555else
7556  { $as_echo "$as_me:$LINENO: result: no" >&5
7557$as_echo "no" >&6; }
7558fi
7559
7560
7561    test -n "$DUMPBIN" && break
7562  done
7563fi
7564if test -z "$DUMPBIN"; then
7565  ac_ct_DUMPBIN=$DUMPBIN
7566  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7567do
7568  # Extract the first word of "$ac_prog", so it can be a program name with args.
7569set dummy $ac_prog; ac_word=$2
7570{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7571$as_echo_n "checking for $ac_word... " >&6; }
7572if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7573  $as_echo_n "(cached) " >&6
7574else
7575  if test -n "$ac_ct_DUMPBIN"; then
7576  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7577else
7578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579for as_dir in $PATH
7580do
7581  IFS=$as_save_IFS
7582  test -z "$as_dir" && as_dir=.
7583  for ac_exec_ext in '' $ac_executable_extensions; do
7584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7586    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7587    break 2
7588  fi
7589done
7590done
7591IFS=$as_save_IFS
7592
7593fi
7594fi
7595ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7596if test -n "$ac_ct_DUMPBIN"; then
7597  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
7598$as_echo "$ac_ct_DUMPBIN" >&6; }
7599else
7600  { $as_echo "$as_me:$LINENO: result: no" >&5
7601$as_echo "no" >&6; }
7602fi
7603
7604
7605  test -n "$ac_ct_DUMPBIN" && break
7606done
7607
7608  if test "x$ac_ct_DUMPBIN" = x; then
7609    DUMPBIN=":"
7610  else
7611    case $cross_compiling:$ac_tool_warned in
7612yes:)
7613{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615ac_tool_warned=yes ;;
7616esac
7617    DUMPBIN=$ac_ct_DUMPBIN
7618  fi
7619fi
7620
7621
7622  if test "$DUMPBIN" != ":"; then
7623    NM="$DUMPBIN"
7624  fi
7625fi
7626test -z "$NM" && NM=nm
7627
7628
7629
7630
7631
7632
7633{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
7634$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7635if test "${lt_cv_nm_interface+set}" = set; then
7636  $as_echo_n "(cached) " >&6
7637else
7638  lt_cv_nm_interface="BSD nm"
7639  echo "int some_variable = 0;" > conftest.$ac_ext
7640  (eval echo "\"\$as_me:7640: $ac_compile\"" >&5)
7641  (eval "$ac_compile" 2>conftest.err)
7642  cat conftest.err >&5
7643  (eval echo "\"\$as_me:7643: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7644  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7645  cat conftest.err >&5
7646  (eval echo "\"\$as_me:7646: output\"" >&5)
7647  cat conftest.out >&5
7648  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7649    lt_cv_nm_interface="MS dumpbin"
7650  fi
7651  rm -f conftest*
7652fi
7653{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
7654$as_echo "$lt_cv_nm_interface" >&6; }
7655
7656{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7657$as_echo_n "checking whether ln -s works... " >&6; }
7658LN_S=$as_ln_s
7659if test "$LN_S" = "ln -s"; then
7660  { $as_echo "$as_me:$LINENO: result: yes" >&5
7661$as_echo "yes" >&6; }
7662else
7663  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7664$as_echo "no, using $LN_S" >&6; }
7665fi
7666
7667# find the maximum length of command line arguments
7668{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7669$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7670if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7671  $as_echo_n "(cached) " >&6
7672else
7673    i=0
7674  teststring="ABCD"
7675
7676  case $build_os in
7677  msdosdjgpp*)
7678    # On DJGPP, this test can blow up pretty badly due to problems in libc
7679    # (any single argument exceeding 2000 bytes causes a buffer overrun
7680    # during glob expansion).  Even if it were fixed, the result of this
7681    # check would be larger than it should be.
7682    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7683    ;;
7684
7685  gnu*)
7686    # Under GNU Hurd, this test is not required because there is
7687    # no limit to the length of command line arguments.
7688    # Libtool will interpret -1 as no limit whatsoever
7689    lt_cv_sys_max_cmd_len=-1;
7690    ;;
7691
7692  cygwin* | mingw* | cegcc*)
7693    # On Win9x/ME, this test blows up -- it succeeds, but takes
7694    # about 5 minutes as the teststring grows exponentially.
7695    # Worse, since 9x/ME are not pre-emptively multitasking,
7696    # you end up with a "frozen" computer, even though with patience
7697    # the test eventually succeeds (with a max line length of 256k).
7698    # Instead, let's just punt: use the minimum linelength reported by
7699    # all of the supported platforms: 8192 (on NT/2K/XP).
7700    lt_cv_sys_max_cmd_len=8192;
7701    ;;
7702
7703  amigaos*)
7704    # On AmigaOS with pdksh, this test takes hours, literally.
7705    # So we just punt and use a minimum line length of 8192.
7706    lt_cv_sys_max_cmd_len=8192;
7707    ;;
7708
7709  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7710    # This has been around since 386BSD, at least.  Likely further.
7711    if test -x /sbin/sysctl; then
7712      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7713    elif test -x /usr/sbin/sysctl; then
7714      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7715    else
7716      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7717    fi
7718    # And add a safety zone
7719    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7720    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7721    ;;
7722
7723  interix*)
7724    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7725    lt_cv_sys_max_cmd_len=196608
7726    ;;
7727
7728  osf*)
7729    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7730    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7731    # nice to cause kernel panics so lets avoid the loop below.
7732    # First set a reasonable default.
7733    lt_cv_sys_max_cmd_len=16384
7734    #
7735    if test -x /sbin/sysconfig; then
7736      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7737        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7738      esac
7739    fi
7740    ;;
7741  sco3.2v5*)
7742    lt_cv_sys_max_cmd_len=102400
7743    ;;
7744  sysv5* | sco5v6* | sysv4.2uw2*)
7745    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7746    if test -n "$kargmax"; then
7747      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7748    else
7749      lt_cv_sys_max_cmd_len=32768
7750    fi
7751    ;;
7752  *)
7753    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7754    if test -n "$lt_cv_sys_max_cmd_len"; then
7755      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7756      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7757    else
7758      # Make teststring a little bigger before we do anything with it.
7759      # a 1K string should be a reasonable start.
7760      for i in 1 2 3 4 5 6 7 8 ; do
7761        teststring=$teststring$teststring
7762      done
7763      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7764      # If test is not a shell built-in, we'll probably end up computing a
7765      # maximum length that is only half of the actual maximum length, but
7766      # we can't tell.
7767      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7768	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7769	      test $i != 17 # 1/2 MB should be enough
7770      do
7771        i=`expr $i + 1`
7772        teststring=$teststring$teststring
7773      done
7774      # Only check the string length outside the loop.
7775      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7776      teststring=
7777      # Add a significant safety factor because C++ compilers can tack on
7778      # massive amounts of additional arguments before passing them to the
7779      # linker.  It appears as though 1/2 is a usable value.
7780      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7781    fi
7782    ;;
7783  esac
7784
7785fi
7786
7787if test -n $lt_cv_sys_max_cmd_len ; then
7788  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7789$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7790else
7791  { $as_echo "$as_me:$LINENO: result: none" >&5
7792$as_echo "none" >&6; }
7793fi
7794max_cmd_len=$lt_cv_sys_max_cmd_len
7795
7796
7797
7798
7799
7800
7801: ${CP="cp -f"}
7802: ${MV="mv -f"}
7803: ${RM="rm -f"}
7804
7805{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7806$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7807# Try some XSI features
7808xsi_shell=no
7809( _lt_dummy="a/b/c"
7810  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7811      = c,a/b,, \
7812    && eval 'test $(( 1 + 1 )) -eq 2 \
7813    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7814  && xsi_shell=yes
7815{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7816$as_echo "$xsi_shell" >&6; }
7817
7818
7819{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7820$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7821lt_shell_append=no
7822( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7823    >/dev/null 2>&1 \
7824  && lt_shell_append=yes
7825{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7826$as_echo "$lt_shell_append" >&6; }
7827
7828
7829if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7830  lt_unset=unset
7831else
7832  lt_unset=false
7833fi
7834
7835
7836
7837
7838
7839# test EBCDIC or ASCII
7840case `echo X|tr X '\101'` in
7841 A) # ASCII based system
7842    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7843  lt_SP2NL='tr \040 \012'
7844  lt_NL2SP='tr \015\012 \040\040'
7845  ;;
7846 *) # EBCDIC based system
7847  lt_SP2NL='tr \100 \n'
7848  lt_NL2SP='tr \r\n \100\100'
7849  ;;
7850esac
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7861$as_echo_n "checking for $LD option to reload object files... " >&6; }
7862if test "${lt_cv_ld_reload_flag+set}" = set; then
7863  $as_echo_n "(cached) " >&6
7864else
7865  lt_cv_ld_reload_flag='-r'
7866fi
7867{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7868$as_echo "$lt_cv_ld_reload_flag" >&6; }
7869reload_flag=$lt_cv_ld_reload_flag
7870case $reload_flag in
7871"" | " "*) ;;
7872*) reload_flag=" $reload_flag" ;;
7873esac
7874reload_cmds='$LD$reload_flag -o $output$reload_objs'
7875case $host_os in
7876  darwin*)
7877    if test "$GCC" = yes; then
7878      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7879    else
7880      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7881    fi
7882    ;;
7883esac
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893if test -n "$ac_tool_prefix"; then
7894  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7895set dummy ${ac_tool_prefix}objdump; ac_word=$2
7896{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7897$as_echo_n "checking for $ac_word... " >&6; }
7898if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7899  $as_echo_n "(cached) " >&6
7900else
7901  if test -n "$OBJDUMP"; then
7902  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7903else
7904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905for as_dir in $PATH
7906do
7907  IFS=$as_save_IFS
7908  test -z "$as_dir" && as_dir=.
7909  for ac_exec_ext in '' $ac_executable_extensions; do
7910  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7911    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7912    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7913    break 2
7914  fi
7915done
7916done
7917IFS=$as_save_IFS
7918
7919fi
7920fi
7921OBJDUMP=$ac_cv_prog_OBJDUMP
7922if test -n "$OBJDUMP"; then
7923  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7924$as_echo "$OBJDUMP" >&6; }
7925else
7926  { $as_echo "$as_me:$LINENO: result: no" >&5
7927$as_echo "no" >&6; }
7928fi
7929
7930
7931fi
7932if test -z "$ac_cv_prog_OBJDUMP"; then
7933  ac_ct_OBJDUMP=$OBJDUMP
7934  # Extract the first word of "objdump", so it can be a program name with args.
7935set dummy objdump; ac_word=$2
7936{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7937$as_echo_n "checking for $ac_word... " >&6; }
7938if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7939  $as_echo_n "(cached) " >&6
7940else
7941  if test -n "$ac_ct_OBJDUMP"; then
7942  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7943else
7944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945for as_dir in $PATH
7946do
7947  IFS=$as_save_IFS
7948  test -z "$as_dir" && as_dir=.
7949  for ac_exec_ext in '' $ac_executable_extensions; do
7950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7951    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7952    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953    break 2
7954  fi
7955done
7956done
7957IFS=$as_save_IFS
7958
7959fi
7960fi
7961ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7962if test -n "$ac_ct_OBJDUMP"; then
7963  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7964$as_echo "$ac_ct_OBJDUMP" >&6; }
7965else
7966  { $as_echo "$as_me:$LINENO: result: no" >&5
7967$as_echo "no" >&6; }
7968fi
7969
7970  if test "x$ac_ct_OBJDUMP" = x; then
7971    OBJDUMP="false"
7972  else
7973    case $cross_compiling:$ac_tool_warned in
7974yes:)
7975{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7977ac_tool_warned=yes ;;
7978esac
7979    OBJDUMP=$ac_ct_OBJDUMP
7980  fi
7981else
7982  OBJDUMP="$ac_cv_prog_OBJDUMP"
7983fi
7984
7985test -z "$OBJDUMP" && OBJDUMP=objdump
7986
7987
7988
7989
7990
7991
7992{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7993$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7994if test "${lt_cv_deplibs_check_method+set}" = set; then
7995  $as_echo_n "(cached) " >&6
7996else
7997  lt_cv_file_magic_cmd='$MAGIC_CMD'
7998lt_cv_file_magic_test_file=
7999lt_cv_deplibs_check_method='unknown'
8000# Need to set the preceding variable on all platforms that support
8001# interlibrary dependencies.
8002# 'none' -- dependencies not supported.
8003# `unknown' -- same as none, but documents that we really don't know.
8004# 'pass_all' -- all dependencies passed with no checks.
8005# 'test_compile' -- check by making test program.
8006# 'file_magic [[regex]]' -- check by looking for files in library path
8007# which responds to the $file_magic_cmd with a given extended regex.
8008# If you have `file' or equivalent on your system and you're not sure
8009# whether `pass_all' will *always* work, you probably want this one.
8010
8011case $host_os in
8012aix[4-9]*)
8013  lt_cv_deplibs_check_method=pass_all
8014  ;;
8015
8016beos*)
8017  lt_cv_deplibs_check_method=pass_all
8018  ;;
8019
8020bsdi[45]*)
8021  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8022  lt_cv_file_magic_cmd='/usr/bin/file -L'
8023  lt_cv_file_magic_test_file=/shlib/libc.so
8024  ;;
8025
8026cygwin*)
8027  # func_win32_libid is a shell function defined in ltmain.sh
8028  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8029  lt_cv_file_magic_cmd='func_win32_libid'
8030  ;;
8031
8032mingw* | pw32*)
8033  # Base MSYS/MinGW do not provide the 'file' command needed by
8034  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8035  # unless we find 'file', for example because we are cross-compiling.
8036  if ( file / ) >/dev/null 2>&1; then
8037    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8038    lt_cv_file_magic_cmd='func_win32_libid'
8039  else
8040    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8041    lt_cv_file_magic_cmd='$OBJDUMP -f'
8042  fi
8043  ;;
8044
8045cegcc)
8046  # use the weaker test based on 'objdump'. See mingw*.
8047  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8048  lt_cv_file_magic_cmd='$OBJDUMP -f'
8049  ;;
8050
8051darwin* | rhapsody*)
8052  lt_cv_deplibs_check_method=pass_all
8053  ;;
8054
8055freebsd* | dragonfly*)
8056  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8057    case $host_cpu in
8058    i*86 )
8059      # Not sure whether the presence of OpenBSD here was a mistake.
8060      # Let's accept both of them until this is cleared up.
8061      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8062      lt_cv_file_magic_cmd=/usr/bin/file
8063      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8064      ;;
8065    esac
8066  else
8067    lt_cv_deplibs_check_method=pass_all
8068  fi
8069  ;;
8070
8071gnu*)
8072  lt_cv_deplibs_check_method=pass_all
8073  ;;
8074
8075hpux10.20* | hpux11*)
8076  lt_cv_file_magic_cmd=/usr/bin/file
8077  case $host_cpu in
8078  ia64*)
8079    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8080    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8081    ;;
8082  hppa*64*)
8083    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]'
8084    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8085    ;;
8086  *)
8087    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8088    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8089    ;;
8090  esac
8091  ;;
8092
8093interix[3-9]*)
8094  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8095  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8096  ;;
8097
8098irix5* | irix6* | nonstopux*)
8099  case $LD in
8100  *-32|*"-32 ") libmagic=32-bit;;
8101  *-n32|*"-n32 ") libmagic=N32;;
8102  *-64|*"-64 ") libmagic=64-bit;;
8103  *) libmagic=never-match;;
8104  esac
8105  lt_cv_deplibs_check_method=pass_all
8106  ;;
8107
8108# This must be Linux ELF.
8109linux* | k*bsd*-gnu)
8110  lt_cv_deplibs_check_method=pass_all
8111  ;;
8112
8113netbsd*)
8114  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8115    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8116  else
8117    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8118  fi
8119  ;;
8120
8121newos6*)
8122  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8123  lt_cv_file_magic_cmd=/usr/bin/file
8124  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8125  ;;
8126
8127*nto* | *qnx*)
8128  lt_cv_deplibs_check_method=pass_all
8129  ;;
8130
8131openbsd*)
8132  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8133    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8134  else
8135    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8136  fi
8137  ;;
8138
8139osf3* | osf4* | osf5*)
8140  lt_cv_deplibs_check_method=pass_all
8141  ;;
8142
8143rdos*)
8144  lt_cv_deplibs_check_method=pass_all
8145  ;;
8146
8147solaris*)
8148  lt_cv_deplibs_check_method=pass_all
8149  ;;
8150
8151sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8152  lt_cv_deplibs_check_method=pass_all
8153  ;;
8154
8155sysv4 | sysv4.3*)
8156  case $host_vendor in
8157  motorola)
8158    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]'
8159    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8160    ;;
8161  ncr)
8162    lt_cv_deplibs_check_method=pass_all
8163    ;;
8164  sequent)
8165    lt_cv_file_magic_cmd='/bin/file'
8166    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8167    ;;
8168  sni)
8169    lt_cv_file_magic_cmd='/bin/file'
8170    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8171    lt_cv_file_magic_test_file=/lib/libc.so
8172    ;;
8173  siemens)
8174    lt_cv_deplibs_check_method=pass_all
8175    ;;
8176  pc)
8177    lt_cv_deplibs_check_method=pass_all
8178    ;;
8179  esac
8180  ;;
8181
8182tpf*)
8183  lt_cv_deplibs_check_method=pass_all
8184  ;;
8185esac
8186
8187fi
8188{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8189$as_echo "$lt_cv_deplibs_check_method" >&6; }
8190file_magic_cmd=$lt_cv_file_magic_cmd
8191deplibs_check_method=$lt_cv_deplibs_check_method
8192test -z "$deplibs_check_method" && deplibs_check_method=unknown
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205if test -n "$ac_tool_prefix"; then
8206  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8207set dummy ${ac_tool_prefix}ar; ac_word=$2
8208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8209$as_echo_n "checking for $ac_word... " >&6; }
8210if test "${ac_cv_prog_AR+set}" = set; then
8211  $as_echo_n "(cached) " >&6
8212else
8213  if test -n "$AR"; then
8214  ac_cv_prog_AR="$AR" # Let the user override the test.
8215else
8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217for as_dir in $PATH
8218do
8219  IFS=$as_save_IFS
8220  test -z "$as_dir" && as_dir=.
8221  for ac_exec_ext in '' $ac_executable_extensions; do
8222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8223    ac_cv_prog_AR="${ac_tool_prefix}ar"
8224    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8225    break 2
8226  fi
8227done
8228done
8229IFS=$as_save_IFS
8230
8231fi
8232fi
8233AR=$ac_cv_prog_AR
8234if test -n "$AR"; then
8235  { $as_echo "$as_me:$LINENO: result: $AR" >&5
8236$as_echo "$AR" >&6; }
8237else
8238  { $as_echo "$as_me:$LINENO: result: no" >&5
8239$as_echo "no" >&6; }
8240fi
8241
8242
8243fi
8244if test -z "$ac_cv_prog_AR"; then
8245  ac_ct_AR=$AR
8246  # Extract the first word of "ar", so it can be a program name with args.
8247set dummy ar; ac_word=$2
8248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8249$as_echo_n "checking for $ac_word... " >&6; }
8250if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8251  $as_echo_n "(cached) " >&6
8252else
8253  if test -n "$ac_ct_AR"; then
8254  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8255else
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259  IFS=$as_save_IFS
8260  test -z "$as_dir" && as_dir=.
8261  for ac_exec_ext in '' $ac_executable_extensions; do
8262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263    ac_cv_prog_ac_ct_AR="ar"
8264    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8265    break 2
8266  fi
8267done
8268done
8269IFS=$as_save_IFS
8270
8271fi
8272fi
8273ac_ct_AR=$ac_cv_prog_ac_ct_AR
8274if test -n "$ac_ct_AR"; then
8275  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8276$as_echo "$ac_ct_AR" >&6; }
8277else
8278  { $as_echo "$as_me:$LINENO: result: no" >&5
8279$as_echo "no" >&6; }
8280fi
8281
8282  if test "x$ac_ct_AR" = x; then
8283    AR="false"
8284  else
8285    case $cross_compiling:$ac_tool_warned in
8286yes:)
8287{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8289ac_tool_warned=yes ;;
8290esac
8291    AR=$ac_ct_AR
8292  fi
8293else
8294  AR="$ac_cv_prog_AR"
8295fi
8296
8297test -z "$AR" && AR=ar
8298test -z "$AR_FLAGS" && AR_FLAGS=cru
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310if test -n "$ac_tool_prefix"; then
8311  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8312set dummy ${ac_tool_prefix}strip; ac_word=$2
8313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8314$as_echo_n "checking for $ac_word... " >&6; }
8315if test "${ac_cv_prog_STRIP+set}" = set; then
8316  $as_echo_n "(cached) " >&6
8317else
8318  if test -n "$STRIP"; then
8319  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8320else
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324  IFS=$as_save_IFS
8325  test -z "$as_dir" && as_dir=.
8326  for ac_exec_ext in '' $ac_executable_extensions; do
8327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8329    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330    break 2
8331  fi
8332done
8333done
8334IFS=$as_save_IFS
8335
8336fi
8337fi
8338STRIP=$ac_cv_prog_STRIP
8339if test -n "$STRIP"; then
8340  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8341$as_echo "$STRIP" >&6; }
8342else
8343  { $as_echo "$as_me:$LINENO: result: no" >&5
8344$as_echo "no" >&6; }
8345fi
8346
8347
8348fi
8349if test -z "$ac_cv_prog_STRIP"; then
8350  ac_ct_STRIP=$STRIP
8351  # Extract the first word of "strip", so it can be a program name with args.
8352set dummy strip; ac_word=$2
8353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8354$as_echo_n "checking for $ac_word... " >&6; }
8355if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8356  $as_echo_n "(cached) " >&6
8357else
8358  if test -n "$ac_ct_STRIP"; then
8359  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8360else
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364  IFS=$as_save_IFS
8365  test -z "$as_dir" && as_dir=.
8366  for ac_exec_ext in '' $ac_executable_extensions; do
8367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368    ac_cv_prog_ac_ct_STRIP="strip"
8369    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370    break 2
8371  fi
8372done
8373done
8374IFS=$as_save_IFS
8375
8376fi
8377fi
8378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8379if test -n "$ac_ct_STRIP"; then
8380  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8381$as_echo "$ac_ct_STRIP" >&6; }
8382else
8383  { $as_echo "$as_me:$LINENO: result: no" >&5
8384$as_echo "no" >&6; }
8385fi
8386
8387  if test "x$ac_ct_STRIP" = x; then
8388    STRIP=":"
8389  else
8390    case $cross_compiling:$ac_tool_warned in
8391yes:)
8392{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8394ac_tool_warned=yes ;;
8395esac
8396    STRIP=$ac_ct_STRIP
8397  fi
8398else
8399  STRIP="$ac_cv_prog_STRIP"
8400fi
8401
8402test -z "$STRIP" && STRIP=:
8403
8404
8405
8406
8407
8408
8409if test -n "$ac_tool_prefix"; then
8410  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8411set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8413$as_echo_n "checking for $ac_word... " >&6; }
8414if test "${ac_cv_prog_RANLIB+set}" = set; then
8415  $as_echo_n "(cached) " >&6
8416else
8417  if test -n "$RANLIB"; then
8418  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8419else
8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423  IFS=$as_save_IFS
8424  test -z "$as_dir" && as_dir=.
8425  for ac_exec_ext in '' $ac_executable_extensions; do
8426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8427    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8428    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8429    break 2
8430  fi
8431done
8432done
8433IFS=$as_save_IFS
8434
8435fi
8436fi
8437RANLIB=$ac_cv_prog_RANLIB
8438if test -n "$RANLIB"; then
8439  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8440$as_echo "$RANLIB" >&6; }
8441else
8442  { $as_echo "$as_me:$LINENO: result: no" >&5
8443$as_echo "no" >&6; }
8444fi
8445
8446
8447fi
8448if test -z "$ac_cv_prog_RANLIB"; then
8449  ac_ct_RANLIB=$RANLIB
8450  # Extract the first word of "ranlib", so it can be a program name with args.
8451set dummy ranlib; ac_word=$2
8452{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8453$as_echo_n "checking for $ac_word... " >&6; }
8454if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8455  $as_echo_n "(cached) " >&6
8456else
8457  if test -n "$ac_ct_RANLIB"; then
8458  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8459else
8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463  IFS=$as_save_IFS
8464  test -z "$as_dir" && as_dir=.
8465  for ac_exec_ext in '' $ac_executable_extensions; do
8466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467    ac_cv_prog_ac_ct_RANLIB="ranlib"
8468    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8469    break 2
8470  fi
8471done
8472done
8473IFS=$as_save_IFS
8474
8475fi
8476fi
8477ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8478if test -n "$ac_ct_RANLIB"; then
8479  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8480$as_echo "$ac_ct_RANLIB" >&6; }
8481else
8482  { $as_echo "$as_me:$LINENO: result: no" >&5
8483$as_echo "no" >&6; }
8484fi
8485
8486  if test "x$ac_ct_RANLIB" = x; then
8487    RANLIB=":"
8488  else
8489    case $cross_compiling:$ac_tool_warned in
8490yes:)
8491{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8493ac_tool_warned=yes ;;
8494esac
8495    RANLIB=$ac_ct_RANLIB
8496  fi
8497else
8498  RANLIB="$ac_cv_prog_RANLIB"
8499fi
8500
8501test -z "$RANLIB" && RANLIB=:
8502
8503
8504
8505
8506
8507
8508# Determine commands to create old-style static archives.
8509old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8510old_postinstall_cmds='chmod 644 $oldlib'
8511old_postuninstall_cmds=
8512
8513if test -n "$RANLIB"; then
8514  case $host_os in
8515  openbsd*)
8516    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8517    ;;
8518  *)
8519    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8520    ;;
8521  esac
8522  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8523fi
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558# If no C compiler was specified, use CC.
8559LTCC=${LTCC-"$CC"}
8560
8561# If no C compiler flags were specified, use CFLAGS.
8562LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8563
8564# Allow CC to be a program name with arguments.
8565compiler=$CC
8566
8567
8568# Check for command to grab the raw symbol name followed by C symbol from nm.
8569{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8570$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8571if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8572  $as_echo_n "(cached) " >&6
8573else
8574
8575# These are sane defaults that work on at least a few old systems.
8576# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8577
8578# Character class describing NM global symbol codes.
8579symcode='[BCDEGRST]'
8580
8581# Regexp to match symbols that can be accessed directly from C.
8582sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8583
8584# Define system-specific variables.
8585case $host_os in
8586aix*)
8587  symcode='[BCDT]'
8588  ;;
8589cygwin* | mingw* | pw32* | cegcc*)
8590  symcode='[ABCDGISTW]'
8591  ;;
8592hpux*)
8593  if test "$host_cpu" = ia64; then
8594    symcode='[ABCDEGRST]'
8595  fi
8596  ;;
8597irix* | nonstopux*)
8598  symcode='[BCDEGRST]'
8599  ;;
8600osf*)
8601  symcode='[BCDEGQRST]'
8602  ;;
8603solaris*)
8604  symcode='[BDRT]'
8605  ;;
8606sco3.2v5*)
8607  symcode='[DT]'
8608  ;;
8609sysv4.2uw2*)
8610  symcode='[DT]'
8611  ;;
8612sysv5* | sco5v6* | unixware* | OpenUNIX*)
8613  symcode='[ABDT]'
8614  ;;
8615sysv4)
8616  symcode='[DFNSTU]'
8617  ;;
8618esac
8619
8620# If we're using GNU nm, then use its standard symbol codes.
8621case `$NM -V 2>&1` in
8622*GNU* | *'with BFD'*)
8623  symcode='[ABCDGIRSTW]' ;;
8624esac
8625
8626# Transform an extracted symbol line into a proper C declaration.
8627# Some systems (esp. on ia64) link data and code symbols differently,
8628# so use this general approach.
8629lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8630
8631# Transform an extracted symbol line into symbol name and symbol address
8632lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8633lt_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'"
8634
8635# Handle CRLF in mingw tool chain
8636opt_cr=
8637case $build_os in
8638mingw*)
8639  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8640  ;;
8641esac
8642
8643# Try without a prefix underscore, then with it.
8644for ac_symprfx in "" "_"; do
8645
8646  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8647  symxfrm="\\1 $ac_symprfx\\2 \\2"
8648
8649  # Write the raw and C identifiers.
8650  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8651    # Fake it for dumpbin and say T for any non-static function
8652    # and D for any global variable.
8653    # Also find C++ and __fastcall symbols from MSVC++,
8654    # which start with @ or ?.
8655    lt_cv_sys_global_symbol_pipe="$AWK '"\
8656"     {last_section=section; section=\$ 3};"\
8657"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8658"     \$ 0!~/External *\|/{next};"\
8659"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8660"     {if(hide[section]) next};"\
8661"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8662"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8663"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8664"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8665"     ' prfx=^$ac_symprfx"
8666  else
8667    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8668  fi
8669
8670  # Check to see that the pipe works correctly.
8671  pipe_works=no
8672
8673  rm -f conftest*
8674  cat > conftest.$ac_ext <<_LT_EOF
8675#ifdef __cplusplus
8676extern "C" {
8677#endif
8678char nm_test_var;
8679void nm_test_func(void);
8680void nm_test_func(void){}
8681#ifdef __cplusplus
8682}
8683#endif
8684int main(){nm_test_var='a';nm_test_func();return(0);}
8685_LT_EOF
8686
8687  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8688  (eval $ac_compile) 2>&5
8689  ac_status=$?
8690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691  (exit $ac_status); }; then
8692    # Now try to grab the symbols.
8693    nlist=conftest.nm
8694    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8695  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8696  ac_status=$?
8697  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698  (exit $ac_status); } && test -s "$nlist"; then
8699      # Try sorting and uniquifying the output.
8700      if sort "$nlist" | uniq > "$nlist"T; then
8701	mv -f "$nlist"T "$nlist"
8702      else
8703	rm -f "$nlist"T
8704      fi
8705
8706      # Make sure that we snagged all the symbols we need.
8707      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8708	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8709	  cat <<_LT_EOF > conftest.$ac_ext
8710#ifdef __cplusplus
8711extern "C" {
8712#endif
8713
8714_LT_EOF
8715	  # Now generate the symbol file.
8716	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8717
8718	  cat <<_LT_EOF >> conftest.$ac_ext
8719
8720/* The mapping between symbol names and symbols.  */
8721const struct {
8722  const char *name;
8723  void       *address;
8724}
8725lt__PROGRAM__LTX_preloaded_symbols[] =
8726{
8727  { "@PROGRAM@", (void *) 0 },
8728_LT_EOF
8729	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8730	  cat <<\_LT_EOF >> conftest.$ac_ext
8731  {0, (void *) 0}
8732};
8733
8734/* This works around a problem in FreeBSD linker */
8735#ifdef FREEBSD_WORKAROUND
8736static const void *lt_preloaded_setup() {
8737  return lt__PROGRAM__LTX_preloaded_symbols;
8738}
8739#endif
8740
8741#ifdef __cplusplus
8742}
8743#endif
8744_LT_EOF
8745	  # Now try linking the two files.
8746	  mv conftest.$ac_objext conftstm.$ac_objext
8747	  lt_save_LIBS="$LIBS"
8748	  lt_save_CFLAGS="$CFLAGS"
8749	  LIBS="conftstm.$ac_objext"
8750	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8751	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8752  (eval $ac_link) 2>&5
8753  ac_status=$?
8754  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8756	    pipe_works=yes
8757	  fi
8758	  LIBS="$lt_save_LIBS"
8759	  CFLAGS="$lt_save_CFLAGS"
8760	else
8761	  echo "cannot find nm_test_func in $nlist" >&5
8762	fi
8763      else
8764	echo "cannot find nm_test_var in $nlist" >&5
8765      fi
8766    else
8767      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8768    fi
8769  else
8770    echo "$progname: failed program was:" >&5
8771    cat conftest.$ac_ext >&5
8772  fi
8773  rm -rf conftest* conftst*
8774
8775  # Do not use the global_symbol_pipe unless it works.
8776  if test "$pipe_works" = yes; then
8777    break
8778  else
8779    lt_cv_sys_global_symbol_pipe=
8780  fi
8781done
8782
8783fi
8784
8785if test -z "$lt_cv_sys_global_symbol_pipe"; then
8786  lt_cv_sys_global_symbol_to_cdecl=
8787fi
8788if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8789  { $as_echo "$as_me:$LINENO: result: failed" >&5
8790$as_echo "failed" >&6; }
8791else
8792  { $as_echo "$as_me:$LINENO: result: ok" >&5
8793$as_echo "ok" >&6; }
8794fi
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817# Check whether --enable-libtool-lock was given.
8818if test "${enable_libtool_lock+set}" = set; then
8819  enableval=$enable_libtool_lock;
8820fi
8821
8822test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8823
8824# Some flags need to be propagated to the compiler or linker for good
8825# libtool support.
8826case $host in
8827ia64-*-hpux*)
8828  # Find out which ABI we are using.
8829  echo 'int i;' > conftest.$ac_ext
8830  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831  (eval $ac_compile) 2>&5
8832  ac_status=$?
8833  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834  (exit $ac_status); }; then
8835    case `/usr/bin/file conftest.$ac_objext` in
8836      *ELF-32*)
8837	HPUX_IA64_MODE="32"
8838	;;
8839      *ELF-64*)
8840	HPUX_IA64_MODE="64"
8841	;;
8842    esac
8843  fi
8844  rm -rf conftest*
8845  ;;
8846*-*-irix6*)
8847  # Find out which ABI we are using.
8848  echo '#line 8848 "configure"' > conftest.$ac_ext
8849  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8850  (eval $ac_compile) 2>&5
8851  ac_status=$?
8852  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853  (exit $ac_status); }; then
8854    if test "$lt_cv_prog_gnu_ld" = yes; then
8855      case `/usr/bin/file conftest.$ac_objext` in
8856	*32-bit*)
8857	  LD="${LD-ld} -melf32bsmip"
8858	  ;;
8859	*N32*)
8860	  LD="${LD-ld} -melf32bmipn32"
8861	  ;;
8862	*64-bit*)
8863	  LD="${LD-ld} -melf64bmip"
8864	;;
8865      esac
8866    else
8867      case `/usr/bin/file conftest.$ac_objext` in
8868	*32-bit*)
8869	  LD="${LD-ld} -32"
8870	  ;;
8871	*N32*)
8872	  LD="${LD-ld} -n32"
8873	  ;;
8874	*64-bit*)
8875	  LD="${LD-ld} -64"
8876	  ;;
8877      esac
8878    fi
8879  fi
8880  rm -rf conftest*
8881  ;;
8882
8883x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8884s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8885  # Find out which ABI we are using.
8886  echo 'int i;' > conftest.$ac_ext
8887  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8888  (eval $ac_compile) 2>&5
8889  ac_status=$?
8890  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891  (exit $ac_status); }; then
8892    case `/usr/bin/file conftest.o` in
8893      *32-bit*)
8894	case $host in
8895	  x86_64-*kfreebsd*-gnu)
8896	    LD="${LD-ld} -m elf_i386_fbsd"
8897	    ;;
8898	  x86_64-*linux*)
8899	    LD="${LD-ld} -m elf_i386"
8900	    ;;
8901	  ppc64-*linux*|powerpc64-*linux*)
8902	    LD="${LD-ld} -m elf32ppclinux"
8903	    ;;
8904	  s390x-*linux*)
8905	    LD="${LD-ld} -m elf_s390"
8906	    ;;
8907	  sparc64-*linux*)
8908	    LD="${LD-ld} -m elf32_sparc"
8909	    ;;
8910	esac
8911	;;
8912      *64-bit*)
8913	case $host in
8914	  x86_64-*kfreebsd*-gnu)
8915	    LD="${LD-ld} -m elf_x86_64_fbsd"
8916	    ;;
8917	  x86_64-*linux*)
8918	    LD="${LD-ld} -m elf_x86_64"
8919	    ;;
8920	  ppc*-*linux*|powerpc*-*linux*)
8921	    LD="${LD-ld} -m elf64ppc"
8922	    ;;
8923	  s390*-*linux*|s390*-*tpf*)
8924	    LD="${LD-ld} -m elf64_s390"
8925	    ;;
8926	  sparc*-*linux*)
8927	    LD="${LD-ld} -m elf64_sparc"
8928	    ;;
8929	esac
8930	;;
8931    esac
8932  fi
8933  rm -rf conftest*
8934  ;;
8935
8936*-*-sco3.2v5*)
8937  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8938  SAVE_CFLAGS="$CFLAGS"
8939  CFLAGS="$CFLAGS -belf"
8940  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8941$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8942if test "${lt_cv_cc_needs_belf+set}" = set; then
8943  $as_echo_n "(cached) " >&6
8944else
8945  ac_ext=c
8946ac_cpp='$CPP $CPPFLAGS'
8947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8949ac_compiler_gnu=$ac_cv_c_compiler_gnu
8950
8951     cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h.  */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h.  */
8957
8958int
8959main ()
8960{
8961
8962  ;
8963  return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext conftest$ac_exeext
8967if { (ac_try="$ac_link"
8968case "(($ac_try" in
8969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970  *) ac_try_echo=$ac_try;;
8971esac
8972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8973$as_echo "$ac_try_echo") >&5
8974  (eval "$ac_link") 2>conftest.er1
8975  ac_status=$?
8976  grep -v '^ *+' conftest.er1 >conftest.err
8977  rm -f conftest.er1
8978  cat conftest.err >&5
8979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980  (exit $ac_status); } && {
8981	 test -z "$ac_c_werror_flag" ||
8982	 test ! -s conftest.err
8983       } && test -s conftest$ac_exeext && {
8984	 test "$cross_compiling" = yes ||
8985	 $as_test_x conftest$ac_exeext
8986       }; then
8987  lt_cv_cc_needs_belf=yes
8988else
8989  $as_echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
8992	lt_cv_cc_needs_belf=no
8993fi
8994
8995rm -rf conftest.dSYM
8996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8997      conftest$ac_exeext conftest.$ac_ext
8998     ac_ext=c
8999ac_cpp='$CPP $CPPFLAGS'
9000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002ac_compiler_gnu=$ac_cv_c_compiler_gnu
9003
9004fi
9005{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9006$as_echo "$lt_cv_cc_needs_belf" >&6; }
9007  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9008    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9009    CFLAGS="$SAVE_CFLAGS"
9010  fi
9011  ;;
9012sparc*-*solaris*)
9013  # Find out which ABI we are using.
9014  echo 'int i;' > conftest.$ac_ext
9015  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016  (eval $ac_compile) 2>&5
9017  ac_status=$?
9018  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019  (exit $ac_status); }; then
9020    case `/usr/bin/file conftest.o` in
9021    *64-bit*)
9022      case $lt_cv_prog_gnu_ld in
9023      yes*) LD="${LD-ld} -m elf64_sparc" ;;
9024      *)
9025	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9026	  LD="${LD-ld} -64"
9027	fi
9028	;;
9029      esac
9030      ;;
9031    esac
9032  fi
9033  rm -rf conftest*
9034  ;;
9035esac
9036
9037need_locks="$enable_libtool_lock"
9038
9039
9040  case $host_os in
9041    rhapsody* | darwin*)
9042    if test -n "$ac_tool_prefix"; then
9043  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9044set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9045{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9046$as_echo_n "checking for $ac_word... " >&6; }
9047if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9048  $as_echo_n "(cached) " >&6
9049else
9050  if test -n "$DSYMUTIL"; then
9051  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9052else
9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054for as_dir in $PATH
9055do
9056  IFS=$as_save_IFS
9057  test -z "$as_dir" && as_dir=.
9058  for ac_exec_ext in '' $ac_executable_extensions; do
9059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9061    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9062    break 2
9063  fi
9064done
9065done
9066IFS=$as_save_IFS
9067
9068fi
9069fi
9070DSYMUTIL=$ac_cv_prog_DSYMUTIL
9071if test -n "$DSYMUTIL"; then
9072  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9073$as_echo "$DSYMUTIL" >&6; }
9074else
9075  { $as_echo "$as_me:$LINENO: result: no" >&5
9076$as_echo "no" >&6; }
9077fi
9078
9079
9080fi
9081if test -z "$ac_cv_prog_DSYMUTIL"; then
9082  ac_ct_DSYMUTIL=$DSYMUTIL
9083  # Extract the first word of "dsymutil", so it can be a program name with args.
9084set dummy dsymutil; ac_word=$2
9085{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9086$as_echo_n "checking for $ac_word... " >&6; }
9087if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9088  $as_echo_n "(cached) " >&6
9089else
9090  if test -n "$ac_ct_DSYMUTIL"; then
9091  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9092else
9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094for as_dir in $PATH
9095do
9096  IFS=$as_save_IFS
9097  test -z "$as_dir" && as_dir=.
9098  for ac_exec_ext in '' $ac_executable_extensions; do
9099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9100    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9101    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9102    break 2
9103  fi
9104done
9105done
9106IFS=$as_save_IFS
9107
9108fi
9109fi
9110ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9111if test -n "$ac_ct_DSYMUTIL"; then
9112  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9113$as_echo "$ac_ct_DSYMUTIL" >&6; }
9114else
9115  { $as_echo "$as_me:$LINENO: result: no" >&5
9116$as_echo "no" >&6; }
9117fi
9118
9119  if test "x$ac_ct_DSYMUTIL" = x; then
9120    DSYMUTIL=":"
9121  else
9122    case $cross_compiling:$ac_tool_warned in
9123yes:)
9124{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9126ac_tool_warned=yes ;;
9127esac
9128    DSYMUTIL=$ac_ct_DSYMUTIL
9129  fi
9130else
9131  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9132fi
9133
9134    if test -n "$ac_tool_prefix"; then
9135  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9136set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9137{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9138$as_echo_n "checking for $ac_word... " >&6; }
9139if test "${ac_cv_prog_NMEDIT+set}" = set; then
9140  $as_echo_n "(cached) " >&6
9141else
9142  if test -n "$NMEDIT"; then
9143  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9144else
9145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146for as_dir in $PATH
9147do
9148  IFS=$as_save_IFS
9149  test -z "$as_dir" && as_dir=.
9150  for ac_exec_ext in '' $ac_executable_extensions; do
9151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9152    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9153    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9154    break 2
9155  fi
9156done
9157done
9158IFS=$as_save_IFS
9159
9160fi
9161fi
9162NMEDIT=$ac_cv_prog_NMEDIT
9163if test -n "$NMEDIT"; then
9164  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9165$as_echo "$NMEDIT" >&6; }
9166else
9167  { $as_echo "$as_me:$LINENO: result: no" >&5
9168$as_echo "no" >&6; }
9169fi
9170
9171
9172fi
9173if test -z "$ac_cv_prog_NMEDIT"; then
9174  ac_ct_NMEDIT=$NMEDIT
9175  # Extract the first word of "nmedit", so it can be a program name with args.
9176set dummy nmedit; ac_word=$2
9177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9178$as_echo_n "checking for $ac_word... " >&6; }
9179if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9180  $as_echo_n "(cached) " >&6
9181else
9182  if test -n "$ac_ct_NMEDIT"; then
9183  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9184else
9185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186for as_dir in $PATH
9187do
9188  IFS=$as_save_IFS
9189  test -z "$as_dir" && as_dir=.
9190  for ac_exec_ext in '' $ac_executable_extensions; do
9191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9192    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9193    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9194    break 2
9195  fi
9196done
9197done
9198IFS=$as_save_IFS
9199
9200fi
9201fi
9202ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9203if test -n "$ac_ct_NMEDIT"; then
9204  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9205$as_echo "$ac_ct_NMEDIT" >&6; }
9206else
9207  { $as_echo "$as_me:$LINENO: result: no" >&5
9208$as_echo "no" >&6; }
9209fi
9210
9211  if test "x$ac_ct_NMEDIT" = x; then
9212    NMEDIT=":"
9213  else
9214    case $cross_compiling:$ac_tool_warned in
9215yes:)
9216{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9218ac_tool_warned=yes ;;
9219esac
9220    NMEDIT=$ac_ct_NMEDIT
9221  fi
9222else
9223  NMEDIT="$ac_cv_prog_NMEDIT"
9224fi
9225
9226    if test -n "$ac_tool_prefix"; then
9227  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9228set dummy ${ac_tool_prefix}lipo; ac_word=$2
9229{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9230$as_echo_n "checking for $ac_word... " >&6; }
9231if test "${ac_cv_prog_LIPO+set}" = set; then
9232  $as_echo_n "(cached) " >&6
9233else
9234  if test -n "$LIPO"; then
9235  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9236else
9237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238for as_dir in $PATH
9239do
9240  IFS=$as_save_IFS
9241  test -z "$as_dir" && as_dir=.
9242  for ac_exec_ext in '' $ac_executable_extensions; do
9243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9244    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9245    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9246    break 2
9247  fi
9248done
9249done
9250IFS=$as_save_IFS
9251
9252fi
9253fi
9254LIPO=$ac_cv_prog_LIPO
9255if test -n "$LIPO"; then
9256  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
9257$as_echo "$LIPO" >&6; }
9258else
9259  { $as_echo "$as_me:$LINENO: result: no" >&5
9260$as_echo "no" >&6; }
9261fi
9262
9263
9264fi
9265if test -z "$ac_cv_prog_LIPO"; then
9266  ac_ct_LIPO=$LIPO
9267  # Extract the first word of "lipo", so it can be a program name with args.
9268set dummy lipo; ac_word=$2
9269{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9270$as_echo_n "checking for $ac_word... " >&6; }
9271if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9272  $as_echo_n "(cached) " >&6
9273else
9274  if test -n "$ac_ct_LIPO"; then
9275  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9276else
9277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278for as_dir in $PATH
9279do
9280  IFS=$as_save_IFS
9281  test -z "$as_dir" && as_dir=.
9282  for ac_exec_ext in '' $ac_executable_extensions; do
9283  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284    ac_cv_prog_ac_ct_LIPO="lipo"
9285    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9286    break 2
9287  fi
9288done
9289done
9290IFS=$as_save_IFS
9291
9292fi
9293fi
9294ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9295if test -n "$ac_ct_LIPO"; then
9296  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9297$as_echo "$ac_ct_LIPO" >&6; }
9298else
9299  { $as_echo "$as_me:$LINENO: result: no" >&5
9300$as_echo "no" >&6; }
9301fi
9302
9303  if test "x$ac_ct_LIPO" = x; then
9304    LIPO=":"
9305  else
9306    case $cross_compiling:$ac_tool_warned in
9307yes:)
9308{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9310ac_tool_warned=yes ;;
9311esac
9312    LIPO=$ac_ct_LIPO
9313  fi
9314else
9315  LIPO="$ac_cv_prog_LIPO"
9316fi
9317
9318    if test -n "$ac_tool_prefix"; then
9319  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9320set dummy ${ac_tool_prefix}otool; ac_word=$2
9321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9322$as_echo_n "checking for $ac_word... " >&6; }
9323if test "${ac_cv_prog_OTOOL+set}" = set; then
9324  $as_echo_n "(cached) " >&6
9325else
9326  if test -n "$OTOOL"; then
9327  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9328else
9329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330for as_dir in $PATH
9331do
9332  IFS=$as_save_IFS
9333  test -z "$as_dir" && as_dir=.
9334  for ac_exec_ext in '' $ac_executable_extensions; do
9335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9336    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9337    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9338    break 2
9339  fi
9340done
9341done
9342IFS=$as_save_IFS
9343
9344fi
9345fi
9346OTOOL=$ac_cv_prog_OTOOL
9347if test -n "$OTOOL"; then
9348  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9349$as_echo "$OTOOL" >&6; }
9350else
9351  { $as_echo "$as_me:$LINENO: result: no" >&5
9352$as_echo "no" >&6; }
9353fi
9354
9355
9356fi
9357if test -z "$ac_cv_prog_OTOOL"; then
9358  ac_ct_OTOOL=$OTOOL
9359  # Extract the first word of "otool", so it can be a program name with args.
9360set dummy otool; ac_word=$2
9361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9362$as_echo_n "checking for $ac_word... " >&6; }
9363if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9364  $as_echo_n "(cached) " >&6
9365else
9366  if test -n "$ac_ct_OTOOL"; then
9367  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9368else
9369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370for as_dir in $PATH
9371do
9372  IFS=$as_save_IFS
9373  test -z "$as_dir" && as_dir=.
9374  for ac_exec_ext in '' $ac_executable_extensions; do
9375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376    ac_cv_prog_ac_ct_OTOOL="otool"
9377    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9378    break 2
9379  fi
9380done
9381done
9382IFS=$as_save_IFS
9383
9384fi
9385fi
9386ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9387if test -n "$ac_ct_OTOOL"; then
9388  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9389$as_echo "$ac_ct_OTOOL" >&6; }
9390else
9391  { $as_echo "$as_me:$LINENO: result: no" >&5
9392$as_echo "no" >&6; }
9393fi
9394
9395  if test "x$ac_ct_OTOOL" = x; then
9396    OTOOL=":"
9397  else
9398    case $cross_compiling:$ac_tool_warned in
9399yes:)
9400{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9402ac_tool_warned=yes ;;
9403esac
9404    OTOOL=$ac_ct_OTOOL
9405  fi
9406else
9407  OTOOL="$ac_cv_prog_OTOOL"
9408fi
9409
9410    if test -n "$ac_tool_prefix"; then
9411  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9412set dummy ${ac_tool_prefix}otool64; ac_word=$2
9413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9414$as_echo_n "checking for $ac_word... " >&6; }
9415if test "${ac_cv_prog_OTOOL64+set}" = set; then
9416  $as_echo_n "(cached) " >&6
9417else
9418  if test -n "$OTOOL64"; then
9419  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9420else
9421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422for as_dir in $PATH
9423do
9424  IFS=$as_save_IFS
9425  test -z "$as_dir" && as_dir=.
9426  for ac_exec_ext in '' $ac_executable_extensions; do
9427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9428    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9429    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9430    break 2
9431  fi
9432done
9433done
9434IFS=$as_save_IFS
9435
9436fi
9437fi
9438OTOOL64=$ac_cv_prog_OTOOL64
9439if test -n "$OTOOL64"; then
9440  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9441$as_echo "$OTOOL64" >&6; }
9442else
9443  { $as_echo "$as_me:$LINENO: result: no" >&5
9444$as_echo "no" >&6; }
9445fi
9446
9447
9448fi
9449if test -z "$ac_cv_prog_OTOOL64"; then
9450  ac_ct_OTOOL64=$OTOOL64
9451  # Extract the first word of "otool64", so it can be a program name with args.
9452set dummy otool64; ac_word=$2
9453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9454$as_echo_n "checking for $ac_word... " >&6; }
9455if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9456  $as_echo_n "(cached) " >&6
9457else
9458  if test -n "$ac_ct_OTOOL64"; then
9459  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9460else
9461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462for as_dir in $PATH
9463do
9464  IFS=$as_save_IFS
9465  test -z "$as_dir" && as_dir=.
9466  for ac_exec_ext in '' $ac_executable_extensions; do
9467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9468    ac_cv_prog_ac_ct_OTOOL64="otool64"
9469    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9470    break 2
9471  fi
9472done
9473done
9474IFS=$as_save_IFS
9475
9476fi
9477fi
9478ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9479if test -n "$ac_ct_OTOOL64"; then
9480  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9481$as_echo "$ac_ct_OTOOL64" >&6; }
9482else
9483  { $as_echo "$as_me:$LINENO: result: no" >&5
9484$as_echo "no" >&6; }
9485fi
9486
9487  if test "x$ac_ct_OTOOL64" = x; then
9488    OTOOL64=":"
9489  else
9490    case $cross_compiling:$ac_tool_warned in
9491yes:)
9492{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9494ac_tool_warned=yes ;;
9495esac
9496    OTOOL64=$ac_ct_OTOOL64
9497  fi
9498else
9499  OTOOL64="$ac_cv_prog_OTOOL64"
9500fi
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9529$as_echo_n "checking for -single_module linker flag... " >&6; }
9530if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9531  $as_echo_n "(cached) " >&6
9532else
9533  lt_cv_apple_cc_single_mod=no
9534      if test -z "${LT_MULTI_MODULE}"; then
9535	# By default we will add the -single_module flag. You can override
9536	# by either setting the environment variable LT_MULTI_MODULE
9537	# non-empty at configure time, or by adding -multi_module to the
9538	# link flags.
9539	rm -rf libconftest.dylib*
9540	echo "int foo(void){return 1;}" > conftest.c
9541	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9542-dynamiclib -Wl,-single_module conftest.c" >&5
9543	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9544	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9545        _lt_result=$?
9546	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9547	  lt_cv_apple_cc_single_mod=yes
9548	else
9549	  cat conftest.err >&5
9550	fi
9551	rm -rf libconftest.dylib*
9552	rm -f conftest.*
9553      fi
9554fi
9555{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9556$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9557    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9558$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9559if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9560  $as_echo_n "(cached) " >&6
9561else
9562  lt_cv_ld_exported_symbols_list=no
9563      save_LDFLAGS=$LDFLAGS
9564      echo "_main" > conftest.sym
9565      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9566      cat >conftest.$ac_ext <<_ACEOF
9567/* confdefs.h.  */
9568_ACEOF
9569cat confdefs.h >>conftest.$ac_ext
9570cat >>conftest.$ac_ext <<_ACEOF
9571/* end confdefs.h.  */
9572
9573int
9574main ()
9575{
9576
9577  ;
9578  return 0;
9579}
9580_ACEOF
9581rm -f conftest.$ac_objext conftest$ac_exeext
9582if { (ac_try="$ac_link"
9583case "(($ac_try" in
9584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585  *) ac_try_echo=$ac_try;;
9586esac
9587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9588$as_echo "$ac_try_echo") >&5
9589  (eval "$ac_link") 2>conftest.er1
9590  ac_status=$?
9591  grep -v '^ *+' conftest.er1 >conftest.err
9592  rm -f conftest.er1
9593  cat conftest.err >&5
9594  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595  (exit $ac_status); } && {
9596	 test -z "$ac_c_werror_flag" ||
9597	 test ! -s conftest.err
9598       } && test -s conftest$ac_exeext && {
9599	 test "$cross_compiling" = yes ||
9600	 $as_test_x conftest$ac_exeext
9601       }; then
9602  lt_cv_ld_exported_symbols_list=yes
9603else
9604  $as_echo "$as_me: failed program was:" >&5
9605sed 's/^/| /' conftest.$ac_ext >&5
9606
9607	lt_cv_ld_exported_symbols_list=no
9608fi
9609
9610rm -rf conftest.dSYM
9611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9612      conftest$ac_exeext conftest.$ac_ext
9613	LDFLAGS="$save_LDFLAGS"
9614
9615fi
9616{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9617$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9618    case $host_os in
9619    rhapsody* | darwin1.[012])
9620      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9621    darwin1.*)
9622      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9623    darwin*) # darwin 5.x on
9624      # if running on 10.5 or later, the deployment target defaults
9625      # to the OS version, if on x86, and 10.4, the deployment
9626      # target defaults to 10.4. Don't you love it?
9627      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9628	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9629	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9630	10.[012]*)
9631	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9632	10.*)
9633	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9634      esac
9635    ;;
9636  esac
9637    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9638      _lt_dar_single_mod='$single_module'
9639    fi
9640    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9641      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9642    else
9643      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9644    fi
9645    if test "$DSYMUTIL" != ":"; then
9646      _lt_dsymutil='~$DSYMUTIL $lib || :'
9647    else
9648      _lt_dsymutil=
9649    fi
9650    ;;
9651  esac
9652
9653
9654for ac_header in dlfcn.h
9655do
9656as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9657{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9658$as_echo_n "checking for $ac_header... " >&6; }
9659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9660  $as_echo_n "(cached) " >&6
9661else
9662  cat >conftest.$ac_ext <<_ACEOF
9663/* confdefs.h.  */
9664_ACEOF
9665cat confdefs.h >>conftest.$ac_ext
9666cat >>conftest.$ac_ext <<_ACEOF
9667/* end confdefs.h.  */
9668$ac_includes_default
9669
9670#include <$ac_header>
9671_ACEOF
9672rm -f conftest.$ac_objext
9673if { (ac_try="$ac_compile"
9674case "(($ac_try" in
9675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676  *) ac_try_echo=$ac_try;;
9677esac
9678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9679$as_echo "$ac_try_echo") >&5
9680  (eval "$ac_compile") 2>conftest.er1
9681  ac_status=$?
9682  grep -v '^ *+' conftest.er1 >conftest.err
9683  rm -f conftest.er1
9684  cat conftest.err >&5
9685  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686  (exit $ac_status); } && {
9687	 test -z "$ac_c_werror_flag" ||
9688	 test ! -s conftest.err
9689       } && test -s conftest.$ac_objext; then
9690  eval "$as_ac_Header=yes"
9691else
9692  $as_echo "$as_me: failed program was:" >&5
9693sed 's/^/| /' conftest.$ac_ext >&5
9694
9695	eval "$as_ac_Header=no"
9696fi
9697
9698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699fi
9700ac_res=`eval 'as_val=${'$as_ac_Header'}
9701		 $as_echo "$as_val"'`
9702	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9703$as_echo "$ac_res" >&6; }
9704as_val=`eval 'as_val=${'$as_ac_Header'}
9705		 $as_echo "$as_val"'`
9706   if test "x$as_val" = x""yes; then
9707  cat >>confdefs.h <<_ACEOF
9708#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9709_ACEOF
9710
9711fi
9712
9713done
9714
9715
9716
9717ac_ext=cpp
9718ac_cpp='$CXXCPP $CPPFLAGS'
9719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9722if test -z "$CXX"; then
9723  if test -n "$CCC"; then
9724    CXX=$CCC
9725  else
9726    if test -n "$ac_tool_prefix"; then
9727  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9728  do
9729    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9730set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9731{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9732$as_echo_n "checking for $ac_word... " >&6; }
9733if test "${ac_cv_prog_CXX+set}" = set; then
9734  $as_echo_n "(cached) " >&6
9735else
9736  if test -n "$CXX"; then
9737  ac_cv_prog_CXX="$CXX" # Let the user override the test.
9738else
9739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740for as_dir in $PATH
9741do
9742  IFS=$as_save_IFS
9743  test -z "$as_dir" && as_dir=.
9744  for ac_exec_ext in '' $ac_executable_extensions; do
9745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9746    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9747    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9748    break 2
9749  fi
9750done
9751done
9752IFS=$as_save_IFS
9753
9754fi
9755fi
9756CXX=$ac_cv_prog_CXX
9757if test -n "$CXX"; then
9758  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
9759$as_echo "$CXX" >&6; }
9760else
9761  { $as_echo "$as_me:$LINENO: result: no" >&5
9762$as_echo "no" >&6; }
9763fi
9764
9765
9766    test -n "$CXX" && break
9767  done
9768fi
9769if test -z "$CXX"; then
9770  ac_ct_CXX=$CXX
9771  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9772do
9773  # Extract the first word of "$ac_prog", so it can be a program name with args.
9774set dummy $ac_prog; ac_word=$2
9775{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9776$as_echo_n "checking for $ac_word... " >&6; }
9777if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9778  $as_echo_n "(cached) " >&6
9779else
9780  if test -n "$ac_ct_CXX"; then
9781  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9782else
9783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786  IFS=$as_save_IFS
9787  test -z "$as_dir" && as_dir=.
9788  for ac_exec_ext in '' $ac_executable_extensions; do
9789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790    ac_cv_prog_ac_ct_CXX="$ac_prog"
9791    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9792    break 2
9793  fi
9794done
9795done
9796IFS=$as_save_IFS
9797
9798fi
9799fi
9800ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9801if test -n "$ac_ct_CXX"; then
9802  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9803$as_echo "$ac_ct_CXX" >&6; }
9804else
9805  { $as_echo "$as_me:$LINENO: result: no" >&5
9806$as_echo "no" >&6; }
9807fi
9808
9809
9810  test -n "$ac_ct_CXX" && break
9811done
9812
9813  if test "x$ac_ct_CXX" = x; then
9814    CXX="g++"
9815  else
9816    case $cross_compiling:$ac_tool_warned in
9817yes:)
9818{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9820ac_tool_warned=yes ;;
9821esac
9822    CXX=$ac_ct_CXX
9823  fi
9824fi
9825
9826  fi
9827fi
9828# Provide some information about the compiler.
9829$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9830set X $ac_compile
9831ac_compiler=$2
9832{ (ac_try="$ac_compiler --version >&5"
9833case "(($ac_try" in
9834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835  *) ac_try_echo=$ac_try;;
9836esac
9837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9838$as_echo "$ac_try_echo") >&5
9839  (eval "$ac_compiler --version >&5") 2>&5
9840  ac_status=$?
9841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842  (exit $ac_status); }
9843{ (ac_try="$ac_compiler -v >&5"
9844case "(($ac_try" in
9845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846  *) ac_try_echo=$ac_try;;
9847esac
9848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9849$as_echo "$ac_try_echo") >&5
9850  (eval "$ac_compiler -v >&5") 2>&5
9851  ac_status=$?
9852  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853  (exit $ac_status); }
9854{ (ac_try="$ac_compiler -V >&5"
9855case "(($ac_try" in
9856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857  *) ac_try_echo=$ac_try;;
9858esac
9859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9860$as_echo "$ac_try_echo") >&5
9861  (eval "$ac_compiler -V >&5") 2>&5
9862  ac_status=$?
9863  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864  (exit $ac_status); }
9865
9866{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9867$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9868if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9869  $as_echo_n "(cached) " >&6
9870else
9871  cat >conftest.$ac_ext <<_ACEOF
9872/* confdefs.h.  */
9873_ACEOF
9874cat confdefs.h >>conftest.$ac_ext
9875cat >>conftest.$ac_ext <<_ACEOF
9876/* end confdefs.h.  */
9877
9878int
9879main ()
9880{
9881#ifndef __GNUC__
9882       choke me
9883#endif
9884
9885  ;
9886  return 0;
9887}
9888_ACEOF
9889rm -f conftest.$ac_objext
9890if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
9898  ac_status=$?
9899  grep -v '^ *+' conftest.er1 >conftest.err
9900  rm -f conftest.er1
9901  cat conftest.err >&5
9902  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903  (exit $ac_status); } && {
9904	 test -z "$ac_cxx_werror_flag" ||
9905	 test ! -s conftest.err
9906       } && test -s conftest.$ac_objext; then
9907  ac_compiler_gnu=yes
9908else
9909  $as_echo "$as_me: failed program was:" >&5
9910sed 's/^/| /' conftest.$ac_ext >&5
9911
9912	ac_compiler_gnu=no
9913fi
9914
9915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9916ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9917
9918fi
9919{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9920$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9921if test $ac_compiler_gnu = yes; then
9922  GXX=yes
9923else
9924  GXX=
9925fi
9926ac_test_CXXFLAGS=${CXXFLAGS+set}
9927ac_save_CXXFLAGS=$CXXFLAGS
9928{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9929$as_echo_n "checking whether $CXX accepts -g... " >&6; }
9930if test "${ac_cv_prog_cxx_g+set}" = set; then
9931  $as_echo_n "(cached) " >&6
9932else
9933  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9934   ac_cxx_werror_flag=yes
9935   ac_cv_prog_cxx_g=no
9936   CXXFLAGS="-g"
9937   cat >conftest.$ac_ext <<_ACEOF
9938/* confdefs.h.  */
9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h.  */
9943
9944int
9945main ()
9946{
9947
9948  ;
9949  return 0;
9950}
9951_ACEOF
9952rm -f conftest.$ac_objext
9953if { (ac_try="$ac_compile"
9954case "(($ac_try" in
9955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956  *) ac_try_echo=$ac_try;;
9957esac
9958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9959$as_echo "$ac_try_echo") >&5
9960  (eval "$ac_compile") 2>conftest.er1
9961  ac_status=$?
9962  grep -v '^ *+' conftest.er1 >conftest.err
9963  rm -f conftest.er1
9964  cat conftest.err >&5
9965  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966  (exit $ac_status); } && {
9967	 test -z "$ac_cxx_werror_flag" ||
9968	 test ! -s conftest.err
9969       } && test -s conftest.$ac_objext; then
9970  ac_cv_prog_cxx_g=yes
9971else
9972  $as_echo "$as_me: failed program was:" >&5
9973sed 's/^/| /' conftest.$ac_ext >&5
9974
9975	CXXFLAGS=""
9976      cat >conftest.$ac_ext <<_ACEOF
9977/* confdefs.h.  */
9978_ACEOF
9979cat confdefs.h >>conftest.$ac_ext
9980cat >>conftest.$ac_ext <<_ACEOF
9981/* end confdefs.h.  */
9982
9983int
9984main ()
9985{
9986
9987  ;
9988  return 0;
9989}
9990_ACEOF
9991rm -f conftest.$ac_objext
9992if { (ac_try="$ac_compile"
9993case "(($ac_try" in
9994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995  *) ac_try_echo=$ac_try;;
9996esac
9997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9998$as_echo "$ac_try_echo") >&5
9999  (eval "$ac_compile") 2>conftest.er1
10000  ac_status=$?
10001  grep -v '^ *+' conftest.er1 >conftest.err
10002  rm -f conftest.er1
10003  cat conftest.err >&5
10004  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005  (exit $ac_status); } && {
10006	 test -z "$ac_cxx_werror_flag" ||
10007	 test ! -s conftest.err
10008       } && test -s conftest.$ac_objext; then
10009  :
10010else
10011  $as_echo "$as_me: failed program was:" >&5
10012sed 's/^/| /' conftest.$ac_ext >&5
10013
10014	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10015	 CXXFLAGS="-g"
10016	 cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h.  */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h.  */
10022
10023int
10024main ()
10025{
10026
10027  ;
10028  return 0;
10029}
10030_ACEOF
10031rm -f conftest.$ac_objext
10032if { (ac_try="$ac_compile"
10033case "(($ac_try" in
10034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035  *) ac_try_echo=$ac_try;;
10036esac
10037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10038$as_echo "$ac_try_echo") >&5
10039  (eval "$ac_compile") 2>conftest.er1
10040  ac_status=$?
10041  grep -v '^ *+' conftest.er1 >conftest.err
10042  rm -f conftest.er1
10043  cat conftest.err >&5
10044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045  (exit $ac_status); } && {
10046	 test -z "$ac_cxx_werror_flag" ||
10047	 test ! -s conftest.err
10048       } && test -s conftest.$ac_objext; then
10049  ac_cv_prog_cxx_g=yes
10050else
10051  $as_echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054
10055fi
10056
10057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10058fi
10059
10060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061fi
10062
10063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10065fi
10066{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10067$as_echo "$ac_cv_prog_cxx_g" >&6; }
10068if test "$ac_test_CXXFLAGS" = set; then
10069  CXXFLAGS=$ac_save_CXXFLAGS
10070elif test $ac_cv_prog_cxx_g = yes; then
10071  if test "$GXX" = yes; then
10072    CXXFLAGS="-g -O2"
10073  else
10074    CXXFLAGS="-g"
10075  fi
10076else
10077  if test "$GXX" = yes; then
10078    CXXFLAGS="-O2"
10079  else
10080    CXXFLAGS=
10081  fi
10082fi
10083ac_ext=c
10084ac_cpp='$CPP $CPPFLAGS'
10085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10087ac_compiler_gnu=$ac_cv_c_compiler_gnu
10088
10089depcc="$CXX"  am_compiler_list=
10090
10091{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10092$as_echo_n "checking dependency style of $depcc... " >&6; }
10093if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10094  $as_echo_n "(cached) " >&6
10095else
10096  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10097  # We make a subdir and do the tests there.  Otherwise we can end up
10098  # making bogus files that we don't know about and never remove.  For
10099  # instance it was reported that on HP-UX the gcc test will end up
10100  # making a dummy file named `D' -- because `-MD' means `put the output
10101  # in D'.
10102  mkdir conftest.dir
10103  # Copy depcomp to subdir because otherwise we won't find it if we're
10104  # using a relative directory.
10105  cp "$am_depcomp" conftest.dir
10106  cd conftest.dir
10107  # We will build objects and dependencies in a subdirectory because
10108  # it helps to detect inapplicable dependency modes.  For instance
10109  # both Tru64's cc and ICC support -MD to output dependencies as a
10110  # side effect of compilation, but ICC will put the dependencies in
10111  # the current directory while Tru64 will put them in the object
10112  # directory.
10113  mkdir sub
10114
10115  am_cv_CXX_dependencies_compiler_type=none
10116  if test "$am_compiler_list" = ""; then
10117     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10118  fi
10119  am__universal=false
10120  case " $depcc " in #(
10121     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10122     esac
10123
10124  for depmode in $am_compiler_list; do
10125    # Setup a source with many dependencies, because some compilers
10126    # like to wrap large dependency lists on column 80 (with \), and
10127    # we should not choose a depcomp mode which is confused by this.
10128    #
10129    # We need to recreate these files for each test, as the compiler may
10130    # overwrite some of them when testing with obscure command lines.
10131    # This happens at least with the AIX C compiler.
10132    : > sub/conftest.c
10133    for i in 1 2 3 4 5 6; do
10134      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10135      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10136      # Solaris 8's {/usr,}/bin/sh.
10137      touch sub/conftst$i.h
10138    done
10139    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10140
10141    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10142    # mode.  It turns out that the SunPro C++ compiler does not properly
10143    # handle `-M -o', and we need to detect this.  Also, some Intel
10144    # versions had trouble with output in subdirs
10145    am__obj=sub/conftest.${OBJEXT-o}
10146    am__minus_obj="-o $am__obj"
10147    case $depmode in
10148    gcc)
10149      # This depmode causes a compiler race in universal mode.
10150      test "$am__universal" = false || continue
10151      ;;
10152    nosideeffect)
10153      # after this tag, mechanisms are not by side-effect, so they'll
10154      # only be used when explicitly requested
10155      if test "x$enable_dependency_tracking" = xyes; then
10156	continue
10157      else
10158	break
10159      fi
10160      ;;
10161    msvisualcpp | msvcmsys)
10162      # This compiler won't grok `-c -o', but also, the minuso test has
10163      # not run yet.  These depmodes are late enough in the game, and
10164      # so weak that their functioning should not be impacted.
10165      am__obj=conftest.${OBJEXT-o}
10166      am__minus_obj=
10167      ;;
10168    none) break ;;
10169    esac
10170    if depmode=$depmode \
10171       source=sub/conftest.c object=$am__obj \
10172       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10173       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10174         >/dev/null 2>conftest.err &&
10175       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10176       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10177       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10178       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10179      # icc doesn't choke on unknown options, it will just issue warnings
10180      # or remarks (even with -Werror).  So we grep stderr for any message
10181      # that says an option was ignored or not supported.
10182      # When given -MP, icc 7.0 and 7.1 complain thusly:
10183      #   icc: Command line warning: ignoring option '-M'; no argument required
10184      # The diagnosis changed in icc 8.0:
10185      #   icc: Command line remark: option '-MP' not supported
10186      if (grep 'ignoring option' conftest.err ||
10187          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10188        am_cv_CXX_dependencies_compiler_type=$depmode
10189        break
10190      fi
10191    fi
10192  done
10193
10194  cd ..
10195  rm -rf conftest.dir
10196else
10197  am_cv_CXX_dependencies_compiler_type=none
10198fi
10199
10200fi
10201{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10202$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10203CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10204
10205 if
10206  test "x$enable_dependency_tracking" != xno \
10207  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10208  am__fastdepCXX_TRUE=
10209  am__fastdepCXX_FALSE='#'
10210else
10211  am__fastdepCXX_TRUE='#'
10212  am__fastdepCXX_FALSE=
10213fi
10214
10215
10216if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10217    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10218    (test "X$CXX" != "Xg++"))) ; then
10219  ac_ext=cpp
10220ac_cpp='$CXXCPP $CPPFLAGS'
10221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10224{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10225$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10226if test -z "$CXXCPP"; then
10227  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10228  $as_echo_n "(cached) " >&6
10229else
10230      # Double quotes because CXXCPP needs to be expanded
10231    for CXXCPP in "$CXX -E" "/lib/cpp"
10232    do
10233      ac_preproc_ok=false
10234for ac_cxx_preproc_warn_flag in '' yes
10235do
10236  # Use a header file that comes with gcc, so configuring glibc
10237  # with a fresh cross-compiler works.
10238  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239  # <limits.h> exists even on freestanding compilers.
10240  # On the NeXT, cc -E runs the code through the compiler's parser,
10241  # not just through cpp. "Syntax error" is here to catch this case.
10242  cat >conftest.$ac_ext <<_ACEOF
10243/* confdefs.h.  */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h.  */
10248#ifdef __STDC__
10249# include <limits.h>
10250#else
10251# include <assert.h>
10252#endif
10253		     Syntax error
10254_ACEOF
10255if { (ac_try="$ac_cpp conftest.$ac_ext"
10256case "(($ac_try" in
10257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258  *) ac_try_echo=$ac_try;;
10259esac
10260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10261$as_echo "$ac_try_echo") >&5
10262  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10263  ac_status=$?
10264  grep -v '^ *+' conftest.er1 >conftest.err
10265  rm -f conftest.er1
10266  cat conftest.err >&5
10267  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268  (exit $ac_status); } >/dev/null && {
10269	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10270	 test ! -s conftest.err
10271       }; then
10272  :
10273else
10274  $as_echo "$as_me: failed program was:" >&5
10275sed 's/^/| /' conftest.$ac_ext >&5
10276
10277  # Broken: fails on valid input.
10278continue
10279fi
10280
10281rm -f conftest.err conftest.$ac_ext
10282
10283  # OK, works on sane cases.  Now check whether nonexistent headers
10284  # can be detected and how.
10285  cat >conftest.$ac_ext <<_ACEOF
10286/* confdefs.h.  */
10287_ACEOF
10288cat confdefs.h >>conftest.$ac_ext
10289cat >>conftest.$ac_ext <<_ACEOF
10290/* end confdefs.h.  */
10291#include <ac_nonexistent.h>
10292_ACEOF
10293if { (ac_try="$ac_cpp conftest.$ac_ext"
10294case "(($ac_try" in
10295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296  *) ac_try_echo=$ac_try;;
10297esac
10298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10299$as_echo "$ac_try_echo") >&5
10300  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10301  ac_status=$?
10302  grep -v '^ *+' conftest.er1 >conftest.err
10303  rm -f conftest.er1
10304  cat conftest.err >&5
10305  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306  (exit $ac_status); } >/dev/null && {
10307	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10308	 test ! -s conftest.err
10309       }; then
10310  # Broken: success on invalid input.
10311continue
10312else
10313  $as_echo "$as_me: failed program was:" >&5
10314sed 's/^/| /' conftest.$ac_ext >&5
10315
10316  # Passes both tests.
10317ac_preproc_ok=:
10318break
10319fi
10320
10321rm -f conftest.err conftest.$ac_ext
10322
10323done
10324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10325rm -f conftest.err conftest.$ac_ext
10326if $ac_preproc_ok; then
10327  break
10328fi
10329
10330    done
10331    ac_cv_prog_CXXCPP=$CXXCPP
10332
10333fi
10334  CXXCPP=$ac_cv_prog_CXXCPP
10335else
10336  ac_cv_prog_CXXCPP=$CXXCPP
10337fi
10338{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10339$as_echo "$CXXCPP" >&6; }
10340ac_preproc_ok=false
10341for ac_cxx_preproc_warn_flag in '' yes
10342do
10343  # Use a header file that comes with gcc, so configuring glibc
10344  # with a fresh cross-compiler works.
10345  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10346  # <limits.h> exists even on freestanding compilers.
10347  # On the NeXT, cc -E runs the code through the compiler's parser,
10348  # not just through cpp. "Syntax error" is here to catch this case.
10349  cat >conftest.$ac_ext <<_ACEOF
10350/* confdefs.h.  */
10351_ACEOF
10352cat confdefs.h >>conftest.$ac_ext
10353cat >>conftest.$ac_ext <<_ACEOF
10354/* end confdefs.h.  */
10355#ifdef __STDC__
10356# include <limits.h>
10357#else
10358# include <assert.h>
10359#endif
10360		     Syntax error
10361_ACEOF
10362if { (ac_try="$ac_cpp conftest.$ac_ext"
10363case "(($ac_try" in
10364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365  *) ac_try_echo=$ac_try;;
10366esac
10367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10368$as_echo "$ac_try_echo") >&5
10369  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10370  ac_status=$?
10371  grep -v '^ *+' conftest.er1 >conftest.err
10372  rm -f conftest.er1
10373  cat conftest.err >&5
10374  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375  (exit $ac_status); } >/dev/null && {
10376	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10377	 test ! -s conftest.err
10378       }; then
10379  :
10380else
10381  $as_echo "$as_me: failed program was:" >&5
10382sed 's/^/| /' conftest.$ac_ext >&5
10383
10384  # Broken: fails on valid input.
10385continue
10386fi
10387
10388rm -f conftest.err conftest.$ac_ext
10389
10390  # OK, works on sane cases.  Now check whether nonexistent headers
10391  # can be detected and how.
10392  cat >conftest.$ac_ext <<_ACEOF
10393/* confdefs.h.  */
10394_ACEOF
10395cat confdefs.h >>conftest.$ac_ext
10396cat >>conftest.$ac_ext <<_ACEOF
10397/* end confdefs.h.  */
10398#include <ac_nonexistent.h>
10399_ACEOF
10400if { (ac_try="$ac_cpp conftest.$ac_ext"
10401case "(($ac_try" in
10402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403  *) ac_try_echo=$ac_try;;
10404esac
10405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10406$as_echo "$ac_try_echo") >&5
10407  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10408  ac_status=$?
10409  grep -v '^ *+' conftest.er1 >conftest.err
10410  rm -f conftest.er1
10411  cat conftest.err >&5
10412  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413  (exit $ac_status); } >/dev/null && {
10414	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10415	 test ! -s conftest.err
10416       }; then
10417  # Broken: success on invalid input.
10418continue
10419else
10420  $as_echo "$as_me: failed program was:" >&5
10421sed 's/^/| /' conftest.$ac_ext >&5
10422
10423  # Passes both tests.
10424ac_preproc_ok=:
10425break
10426fi
10427
10428rm -f conftest.err conftest.$ac_ext
10429
10430done
10431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10432rm -f conftest.err conftest.$ac_ext
10433if $ac_preproc_ok; then
10434  :
10435else
10436  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10438_lt_caught_CXX_error=yes; }
10439fi
10440
10441ac_ext=c
10442ac_cpp='$CPP $CPPFLAGS'
10443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10445ac_compiler_gnu=$ac_cv_c_compiler_gnu
10446
10447else
10448  _lt_caught_CXX_error=yes
10449fi
10450
10451
10452
10453
10454
10455# Set options
10456
10457
10458
10459
10460
10461            # Check whether --enable-shared was given.
10462if test "${enable_shared+set}" = set; then
10463  enableval=$enable_shared; p=${PACKAGE-default}
10464    case $enableval in
10465    yes) enable_shared=yes ;;
10466    no) enable_shared=no ;;
10467    *)
10468      enable_shared=no
10469      # Look at the argument we got.  We use all the common list separators.
10470      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10471      for pkg in $enableval; do
10472	IFS="$lt_save_ifs"
10473	if test "X$pkg" = "X$p"; then
10474	  enable_shared=yes
10475	fi
10476      done
10477      IFS="$lt_save_ifs"
10478      ;;
10479    esac
10480else
10481  enable_shared=yes
10482fi
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494# Check whether --with-pic was given.
10495if test "${with_pic+set}" = set; then
10496  withval=$with_pic; pic_mode="$withval"
10497else
10498  pic_mode=default
10499fi
10500
10501
10502test -z "$pic_mode" && pic_mode=default
10503
10504
10505
10506
10507
10508
10509
10510  # Check whether --enable-fast-install was given.
10511if test "${enable_fast_install+set}" = set; then
10512  enableval=$enable_fast_install; p=${PACKAGE-default}
10513    case $enableval in
10514    yes) enable_fast_install=yes ;;
10515    no) enable_fast_install=no ;;
10516    *)
10517      enable_fast_install=no
10518      # Look at the argument we got.  We use all the common list separators.
10519      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10520      for pkg in $enableval; do
10521	IFS="$lt_save_ifs"
10522	if test "X$pkg" = "X$p"; then
10523	  enable_fast_install=yes
10524	fi
10525      done
10526      IFS="$lt_save_ifs"
10527      ;;
10528    esac
10529else
10530  enable_fast_install=yes
10531fi
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543# This can be used to rebuild libtool when needed
10544LIBTOOL_DEPS="$ltmain"
10545
10546# Always use our own libtool.
10547LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573test -z "$LN_S" && LN_S="ln -s"
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588if test -n "${ZSH_VERSION+set}" ; then
10589   setopt NO_GLOB_SUBST
10590fi
10591
10592{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
10593$as_echo_n "checking for objdir... " >&6; }
10594if test "${lt_cv_objdir+set}" = set; then
10595  $as_echo_n "(cached) " >&6
10596else
10597  rm -f .libs 2>/dev/null
10598mkdir .libs 2>/dev/null
10599if test -d .libs; then
10600  lt_cv_objdir=.libs
10601else
10602  # MS-DOS does not allow filenames that begin with a dot.
10603  lt_cv_objdir=_libs
10604fi
10605rmdir .libs 2>/dev/null
10606fi
10607{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10608$as_echo "$lt_cv_objdir" >&6; }
10609objdir=$lt_cv_objdir
10610
10611
10612
10613
10614
10615cat >>confdefs.h <<_ACEOF
10616#define LT_OBJDIR "$lt_cv_objdir/"
10617_ACEOF
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635case $host_os in
10636aix3*)
10637  # AIX sometimes has problems with the GCC collect2 program.  For some
10638  # reason, if we set the COLLECT_NAMES environment variable, the problems
10639  # vanish in a puff of smoke.
10640  if test "X${COLLECT_NAMES+set}" != Xset; then
10641    COLLECT_NAMES=
10642    export COLLECT_NAMES
10643  fi
10644  ;;
10645esac
10646
10647# Sed substitution that helps us do robust quoting.  It backslashifies
10648# metacharacters that are still active within double-quoted strings.
10649sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10650
10651# Same as above, but do not quote variable references.
10652double_quote_subst='s/\(["`\\]\)/\\\1/g'
10653
10654# Sed substitution to delay expansion of an escaped shell variable in a
10655# double_quote_subst'ed string.
10656delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10657
10658# Sed substitution to delay expansion of an escaped single quote.
10659delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10660
10661# Sed substitution to avoid accidental globbing in evaled expressions
10662no_glob_subst='s/\*/\\\*/g'
10663
10664# Global variables:
10665ofile=libtool
10666can_build_shared=yes
10667
10668# All known linkers require a `.a' archive for static linking (except MSVC,
10669# which needs '.lib').
10670libext=a
10671
10672with_gnu_ld="$lt_cv_prog_gnu_ld"
10673
10674old_CC="$CC"
10675old_CFLAGS="$CFLAGS"
10676
10677# Set sane defaults for various variables
10678test -z "$CC" && CC=cc
10679test -z "$LTCC" && LTCC=$CC
10680test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10681test -z "$LD" && LD=ld
10682test -z "$ac_objext" && ac_objext=o
10683
10684for cc_temp in $compiler""; do
10685  case $cc_temp in
10686    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10687    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10688    \-*) ;;
10689    *) break;;
10690  esac
10691done
10692cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10693
10694
10695# Only perform the check for file, if the check method requires it
10696test -z "$MAGIC_CMD" && MAGIC_CMD=file
10697case $deplibs_check_method in
10698file_magic*)
10699  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10700    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10701$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10702if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10703  $as_echo_n "(cached) " >&6
10704else
10705  case $MAGIC_CMD in
10706[\\/*] |  ?:[\\/]*)
10707  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10708  ;;
10709*)
10710  lt_save_MAGIC_CMD="$MAGIC_CMD"
10711  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10712  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10713  for ac_dir in $ac_dummy; do
10714    IFS="$lt_save_ifs"
10715    test -z "$ac_dir" && ac_dir=.
10716    if test -f $ac_dir/${ac_tool_prefix}file; then
10717      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10718      if test -n "$file_magic_test_file"; then
10719	case $deplibs_check_method in
10720	"file_magic "*)
10721	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10722	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10723	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10724	    $EGREP "$file_magic_regex" > /dev/null; then
10725	    :
10726	  else
10727	    cat <<_LT_EOF 1>&2
10728
10729*** Warning: the command libtool uses to detect shared libraries,
10730*** $file_magic_cmd, produces output that libtool cannot recognize.
10731*** The result is that libtool may fail to recognize shared libraries
10732*** as such.  This will affect the creation of libtool libraries that
10733*** depend on shared libraries, but programs linked with such libtool
10734*** libraries will work regardless of this problem.  Nevertheless, you
10735*** may want to report the problem to your system manager and/or to
10736*** bug-libtool@gnu.org
10737
10738_LT_EOF
10739	  fi ;;
10740	esac
10741      fi
10742      break
10743    fi
10744  done
10745  IFS="$lt_save_ifs"
10746  MAGIC_CMD="$lt_save_MAGIC_CMD"
10747  ;;
10748esac
10749fi
10750
10751MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10752if test -n "$MAGIC_CMD"; then
10753  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10754$as_echo "$MAGIC_CMD" >&6; }
10755else
10756  { $as_echo "$as_me:$LINENO: result: no" >&5
10757$as_echo "no" >&6; }
10758fi
10759
10760
10761
10762
10763
10764if test -z "$lt_cv_path_MAGIC_CMD"; then
10765  if test -n "$ac_tool_prefix"; then
10766    { $as_echo "$as_me:$LINENO: checking for file" >&5
10767$as_echo_n "checking for file... " >&6; }
10768if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10769  $as_echo_n "(cached) " >&6
10770else
10771  case $MAGIC_CMD in
10772[\\/*] |  ?:[\\/]*)
10773  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10774  ;;
10775*)
10776  lt_save_MAGIC_CMD="$MAGIC_CMD"
10777  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10778  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10779  for ac_dir in $ac_dummy; do
10780    IFS="$lt_save_ifs"
10781    test -z "$ac_dir" && ac_dir=.
10782    if test -f $ac_dir/file; then
10783      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10784      if test -n "$file_magic_test_file"; then
10785	case $deplibs_check_method in
10786	"file_magic "*)
10787	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10788	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10789	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10790	    $EGREP "$file_magic_regex" > /dev/null; then
10791	    :
10792	  else
10793	    cat <<_LT_EOF 1>&2
10794
10795*** Warning: the command libtool uses to detect shared libraries,
10796*** $file_magic_cmd, produces output that libtool cannot recognize.
10797*** The result is that libtool may fail to recognize shared libraries
10798*** as such.  This will affect the creation of libtool libraries that
10799*** depend on shared libraries, but programs linked with such libtool
10800*** libraries will work regardless of this problem.  Nevertheless, you
10801*** may want to report the problem to your system manager and/or to
10802*** bug-libtool@gnu.org
10803
10804_LT_EOF
10805	  fi ;;
10806	esac
10807      fi
10808      break
10809    fi
10810  done
10811  IFS="$lt_save_ifs"
10812  MAGIC_CMD="$lt_save_MAGIC_CMD"
10813  ;;
10814esac
10815fi
10816
10817MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10818if test -n "$MAGIC_CMD"; then
10819  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10820$as_echo "$MAGIC_CMD" >&6; }
10821else
10822  { $as_echo "$as_me:$LINENO: result: no" >&5
10823$as_echo "no" >&6; }
10824fi
10825
10826
10827  else
10828    MAGIC_CMD=:
10829  fi
10830fi
10831
10832  fi
10833  ;;
10834esac
10835
10836# Use C for the default configuration in the libtool script
10837
10838lt_save_CC="$CC"
10839ac_ext=c
10840ac_cpp='$CPP $CPPFLAGS'
10841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843ac_compiler_gnu=$ac_cv_c_compiler_gnu
10844
10845
10846# Source file extension for C test sources.
10847ac_ext=c
10848
10849# Object file extension for compiled C test sources.
10850objext=o
10851objext=$objext
10852
10853# Code to be used in simple compile tests
10854lt_simple_compile_test_code="int some_variable = 0;"
10855
10856# Code to be used in simple link tests
10857lt_simple_link_test_code='int main(){return(0);}'
10858
10859
10860
10861
10862
10863
10864
10865# If no C compiler was specified, use CC.
10866LTCC=${LTCC-"$CC"}
10867
10868# If no C compiler flags were specified, use CFLAGS.
10869LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10870
10871# Allow CC to be a program name with arguments.
10872compiler=$CC
10873
10874# Save the default compiler, since it gets overwritten when the other
10875# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10876compiler_DEFAULT=$CC
10877
10878# save warnings/boilerplate of simple test code
10879ac_outfile=conftest.$ac_objext
10880echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10881eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10882_lt_compiler_boilerplate=`cat conftest.err`
10883$RM conftest*
10884
10885ac_outfile=conftest.$ac_objext
10886echo "$lt_simple_link_test_code" >conftest.$ac_ext
10887eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10888_lt_linker_boilerplate=`cat conftest.err`
10889$RM -r conftest*
10890
10891
10892## CAVEAT EMPTOR:
10893## There is no encapsulation within the following macros, do not change
10894## the running order or otherwise move them around unless you know exactly
10895## what you are doing...
10896if test -n "$compiler"; then
10897
10898lt_prog_compiler_no_builtin_flag=
10899
10900if test "$GCC" = yes; then
10901  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10902
10903  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10904$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10905if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10906  $as_echo_n "(cached) " >&6
10907else
10908  lt_cv_prog_compiler_rtti_exceptions=no
10909   ac_outfile=conftest.$ac_objext
10910   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10911   lt_compiler_flag="-fno-rtti -fno-exceptions"
10912   # Insert the option either (1) after the last *FLAGS variable, or
10913   # (2) before a word containing "conftest.", or (3) at the end.
10914   # Note that $ac_compile itself does not contain backslashes and begins
10915   # with a dollar sign (not a hyphen), so the echo should work correctly.
10916   # The option is referenced via a variable to avoid confusing sed.
10917   lt_compile=`echo "$ac_compile" | $SED \
10918   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10919   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10920   -e 's:$: $lt_compiler_flag:'`
10921   (eval echo "\"\$as_me:10921: $lt_compile\"" >&5)
10922   (eval "$lt_compile" 2>conftest.err)
10923   ac_status=$?
10924   cat conftest.err >&5
10925   echo "$as_me:10925: \$? = $ac_status" >&5
10926   if (exit $ac_status) && test -s "$ac_outfile"; then
10927     # The compiler can only warn and ignore the option if not recognized
10928     # So say no if there are warnings other than the usual output.
10929     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10930     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10931     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10932       lt_cv_prog_compiler_rtti_exceptions=yes
10933     fi
10934   fi
10935   $RM conftest*
10936
10937fi
10938{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10939$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10940
10941if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10942    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10943else
10944    :
10945fi
10946
10947fi
10948
10949
10950
10951
10952
10953
10954  lt_prog_compiler_wl=
10955lt_prog_compiler_pic=
10956lt_prog_compiler_static=
10957
10958{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10959$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10960
10961  if test "$GCC" = yes; then
10962    lt_prog_compiler_wl='-Wl,'
10963    lt_prog_compiler_static='-static'
10964
10965    case $host_os in
10966      aix*)
10967      # All AIX code is PIC.
10968      if test "$host_cpu" = ia64; then
10969	# AIX 5 now supports IA64 processor
10970	lt_prog_compiler_static='-Bstatic'
10971      fi
10972      ;;
10973
10974    amigaos*)
10975      case $host_cpu in
10976      powerpc)
10977            # see comment about AmigaOS4 .so support
10978            lt_prog_compiler_pic='-fPIC'
10979        ;;
10980      m68k)
10981            # FIXME: we need at least 68020 code to build shared libraries, but
10982            # adding the `-m68020' flag to GCC prevents building anything better,
10983            # like `-m68040'.
10984            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10985        ;;
10986      esac
10987      ;;
10988
10989    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10990      # PIC is the default for these OSes.
10991      ;;
10992
10993    mingw* | cygwin* | pw32* | os2* | cegcc*)
10994      # This hack is so that the source file can tell whether it is being
10995      # built for inclusion in a dll (and should export symbols for example).
10996      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10997      # (--disable-auto-import) libraries
10998      lt_prog_compiler_pic='-DDLL_EXPORT'
10999      ;;
11000
11001    darwin* | rhapsody*)
11002      # PIC is the default on this platform
11003      # Common symbols not allowed in MH_DYLIB files
11004      lt_prog_compiler_pic='-fno-common'
11005      ;;
11006
11007    hpux*)
11008      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11009      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11010      # sets the default TLS model and affects inlining.
11011      case $host_cpu in
11012      hppa*64*)
11013	# +Z the default
11014	;;
11015      *)
11016	lt_prog_compiler_pic='-fPIC'
11017	;;
11018      esac
11019      ;;
11020
11021    interix[3-9]*)
11022      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11023      # Instead, we relocate shared libraries at runtime.
11024      ;;
11025
11026    msdosdjgpp*)
11027      # Just because we use GCC doesn't mean we suddenly get shared libraries
11028      # on systems that don't support them.
11029      lt_prog_compiler_can_build_shared=no
11030      enable_shared=no
11031      ;;
11032
11033    *nto* | *qnx*)
11034      # QNX uses GNU C++, but need to define -shared option too, otherwise
11035      # it will coredump.
11036      lt_prog_compiler_pic='-fPIC -shared'
11037      ;;
11038
11039    sysv4*MP*)
11040      if test -d /usr/nec; then
11041	lt_prog_compiler_pic=-Kconform_pic
11042      fi
11043      ;;
11044
11045    *)
11046      lt_prog_compiler_pic='-fPIC'
11047      ;;
11048    esac
11049  else
11050    # PORTME Check for flag to pass linker flags through the system compiler.
11051    case $host_os in
11052    aix*)
11053      lt_prog_compiler_wl='-Wl,'
11054      if test "$host_cpu" = ia64; then
11055	# AIX 5 now supports IA64 processor
11056	lt_prog_compiler_static='-Bstatic'
11057      else
11058	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11059      fi
11060      ;;
11061
11062    mingw* | cygwin* | pw32* | os2* | cegcc*)
11063      # This hack is so that the source file can tell whether it is being
11064      # built for inclusion in a dll (and should export symbols for example).
11065      lt_prog_compiler_pic='-DDLL_EXPORT'
11066      ;;
11067
11068    hpux9* | hpux10* | hpux11*)
11069      lt_prog_compiler_wl='-Wl,'
11070      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11071      # not for PA HP-UX.
11072      case $host_cpu in
11073      hppa*64*|ia64*)
11074	# +Z the default
11075	;;
11076      *)
11077	lt_prog_compiler_pic='+Z'
11078	;;
11079      esac
11080      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11081      lt_prog_compiler_static='${wl}-a ${wl}archive'
11082      ;;
11083
11084    irix5* | irix6* | nonstopux*)
11085      lt_prog_compiler_wl='-Wl,'
11086      # PIC (with -KPIC) is the default.
11087      lt_prog_compiler_static='-non_shared'
11088      ;;
11089
11090    linux* | k*bsd*-gnu)
11091      case $cc_basename in
11092      # old Intel for x86_64 which still supported -KPIC.
11093      ecc*)
11094	lt_prog_compiler_wl='-Wl,'
11095	lt_prog_compiler_pic='-KPIC'
11096	lt_prog_compiler_static='-static'
11097        ;;
11098      # icc used to be incompatible with GCC.
11099      # ICC 10 doesn't accept -KPIC any more.
11100      icc* | ifort*)
11101	lt_prog_compiler_wl='-Wl,'
11102	lt_prog_compiler_pic='-fPIC'
11103	lt_prog_compiler_static='-static'
11104        ;;
11105      # Lahey Fortran 8.1.
11106      lf95*)
11107	lt_prog_compiler_wl='-Wl,'
11108	lt_prog_compiler_pic='--shared'
11109	lt_prog_compiler_static='--static'
11110	;;
11111      pgcc* | pgf77* | pgf90* | pgf95*)
11112        # Portland Group compilers (*not* the Pentium gcc compiler,
11113	# which looks to be a dead project)
11114	lt_prog_compiler_wl='-Wl,'
11115	lt_prog_compiler_pic='-fpic'
11116	lt_prog_compiler_static='-Bstatic'
11117        ;;
11118      ccc*)
11119        lt_prog_compiler_wl='-Wl,'
11120        # All Alpha code is PIC.
11121        lt_prog_compiler_static='-non_shared'
11122        ;;
11123      xl*)
11124	# IBM XL C 8.0/Fortran 10.1 on PPC
11125	lt_prog_compiler_wl='-Wl,'
11126	lt_prog_compiler_pic='-qpic'
11127	lt_prog_compiler_static='-qstaticlink'
11128	;;
11129      *)
11130	case `$CC -V 2>&1 | sed 5q` in
11131	*Sun\ C*)
11132	  # Sun C 5.9
11133	  lt_prog_compiler_pic='-KPIC'
11134	  lt_prog_compiler_static='-Bstatic'
11135	  lt_prog_compiler_wl='-Wl,'
11136	  ;;
11137	*Sun\ F*)
11138	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11139	  lt_prog_compiler_pic='-KPIC'
11140	  lt_prog_compiler_static='-Bstatic'
11141	  lt_prog_compiler_wl=''
11142	  ;;
11143	esac
11144	;;
11145      esac
11146      ;;
11147
11148    newsos6)
11149      lt_prog_compiler_pic='-KPIC'
11150      lt_prog_compiler_static='-Bstatic'
11151      ;;
11152
11153    *nto* | *qnx*)
11154      # QNX uses GNU C++, but need to define -shared option too, otherwise
11155      # it will coredump.
11156      lt_prog_compiler_pic='-fPIC -shared'
11157      ;;
11158
11159    osf3* | osf4* | osf5*)
11160      lt_prog_compiler_wl='-Wl,'
11161      # All OSF/1 code is PIC.
11162      lt_prog_compiler_static='-non_shared'
11163      ;;
11164
11165    rdos*)
11166      lt_prog_compiler_static='-non_shared'
11167      ;;
11168
11169    solaris*)
11170      lt_prog_compiler_pic='-KPIC'
11171      lt_prog_compiler_static='-Bstatic'
11172      case $cc_basename in
11173      f77* | f90* | f95*)
11174	lt_prog_compiler_wl='-Qoption ld ';;
11175      *)
11176	lt_prog_compiler_wl='-Wl,';;
11177      esac
11178      ;;
11179
11180    sunos4*)
11181      lt_prog_compiler_wl='-Qoption ld '
11182      lt_prog_compiler_pic='-PIC'
11183      lt_prog_compiler_static='-Bstatic'
11184      ;;
11185
11186    sysv4 | sysv4.2uw2* | sysv4.3*)
11187      lt_prog_compiler_wl='-Wl,'
11188      lt_prog_compiler_pic='-KPIC'
11189      lt_prog_compiler_static='-Bstatic'
11190      ;;
11191
11192    sysv4*MP*)
11193      if test -d /usr/nec ;then
11194	lt_prog_compiler_pic='-Kconform_pic'
11195	lt_prog_compiler_static='-Bstatic'
11196      fi
11197      ;;
11198
11199    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11200      lt_prog_compiler_wl='-Wl,'
11201      lt_prog_compiler_pic='-KPIC'
11202      lt_prog_compiler_static='-Bstatic'
11203      ;;
11204
11205    unicos*)
11206      lt_prog_compiler_wl='-Wl,'
11207      lt_prog_compiler_can_build_shared=no
11208      ;;
11209
11210    uts4*)
11211      lt_prog_compiler_pic='-pic'
11212      lt_prog_compiler_static='-Bstatic'
11213      ;;
11214
11215    *)
11216      lt_prog_compiler_can_build_shared=no
11217      ;;
11218    esac
11219  fi
11220
11221case $host_os in
11222  # For platforms which do not support PIC, -DPIC is meaningless:
11223  *djgpp*)
11224    lt_prog_compiler_pic=
11225    ;;
11226  *)
11227    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11228    ;;
11229esac
11230{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11231$as_echo "$lt_prog_compiler_pic" >&6; }
11232
11233
11234
11235
11236
11237
11238#
11239# Check to make sure the PIC flag actually works.
11240#
11241if test -n "$lt_prog_compiler_pic"; then
11242  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11243$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11244if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
11245  $as_echo_n "(cached) " >&6
11246else
11247  lt_cv_prog_compiler_pic_works=no
11248   ac_outfile=conftest.$ac_objext
11249   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11250   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11251   # Insert the option either (1) after the last *FLAGS variable, or
11252   # (2) before a word containing "conftest.", or (3) at the end.
11253   # Note that $ac_compile itself does not contain backslashes and begins
11254   # with a dollar sign (not a hyphen), so the echo should work correctly.
11255   # The option is referenced via a variable to avoid confusing sed.
11256   lt_compile=`echo "$ac_compile" | $SED \
11257   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11258   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11259   -e 's:$: $lt_compiler_flag:'`
11260   (eval echo "\"\$as_me:11260: $lt_compile\"" >&5)
11261   (eval "$lt_compile" 2>conftest.err)
11262   ac_status=$?
11263   cat conftest.err >&5
11264   echo "$as_me:11264: \$? = $ac_status" >&5
11265   if (exit $ac_status) && test -s "$ac_outfile"; then
11266     # The compiler can only warn and ignore the option if not recognized
11267     # So say no if there are warnings other than the usual output.
11268     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11269     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11270     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11271       lt_cv_prog_compiler_pic_works=yes
11272     fi
11273   fi
11274   $RM conftest*
11275
11276fi
11277{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11278$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11279
11280if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11281    case $lt_prog_compiler_pic in
11282     "" | " "*) ;;
11283     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11284     esac
11285else
11286    lt_prog_compiler_pic=
11287     lt_prog_compiler_can_build_shared=no
11288fi
11289
11290fi
11291
11292
11293
11294
11295
11296
11297#
11298# Check to make sure the static flag actually works.
11299#
11300wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11301{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11302$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11303if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11304  $as_echo_n "(cached) " >&6
11305else
11306  lt_cv_prog_compiler_static_works=no
11307   save_LDFLAGS="$LDFLAGS"
11308   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11309   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11310   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11311     # The linker can only warn and ignore the option if not recognized
11312     # So say no if there are warnings
11313     if test -s conftest.err; then
11314       # Append any errors to the config.log.
11315       cat conftest.err 1>&5
11316       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11317       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11318       if diff conftest.exp conftest.er2 >/dev/null; then
11319         lt_cv_prog_compiler_static_works=yes
11320       fi
11321     else
11322       lt_cv_prog_compiler_static_works=yes
11323     fi
11324   fi
11325   $RM -r conftest*
11326   LDFLAGS="$save_LDFLAGS"
11327
11328fi
11329{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11330$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11331
11332if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11333    :
11334else
11335    lt_prog_compiler_static=
11336fi
11337
11338
11339
11340
11341
11342
11343
11344  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11345$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11346if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11347  $as_echo_n "(cached) " >&6
11348else
11349  lt_cv_prog_compiler_c_o=no
11350   $RM -r conftest 2>/dev/null
11351   mkdir conftest
11352   cd conftest
11353   mkdir out
11354   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11355
11356   lt_compiler_flag="-o out/conftest2.$ac_objext"
11357   # Insert the option either (1) after the last *FLAGS variable, or
11358   # (2) before a word containing "conftest.", or (3) at the end.
11359   # Note that $ac_compile itself does not contain backslashes and begins
11360   # with a dollar sign (not a hyphen), so the echo should work correctly.
11361   lt_compile=`echo "$ac_compile" | $SED \
11362   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11363   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11364   -e 's:$: $lt_compiler_flag:'`
11365   (eval echo "\"\$as_me:11365: $lt_compile\"" >&5)
11366   (eval "$lt_compile" 2>out/conftest.err)
11367   ac_status=$?
11368   cat out/conftest.err >&5
11369   echo "$as_me:11369: \$? = $ac_status" >&5
11370   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11371   then
11372     # The compiler can only warn and ignore the option if not recognized
11373     # So say no if there are warnings
11374     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11375     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11376     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11377       lt_cv_prog_compiler_c_o=yes
11378     fi
11379   fi
11380   chmod u+w . 2>&5
11381   $RM conftest*
11382   # SGI C++ compiler will create directory out/ii_files/ for
11383   # template instantiation
11384   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11385   $RM out/* && rmdir out
11386   cd ..
11387   $RM -r conftest
11388   $RM conftest*
11389
11390fi
11391{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11392$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11393
11394
11395
11396
11397
11398
11399  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11400$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11401if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11402  $as_echo_n "(cached) " >&6
11403else
11404  lt_cv_prog_compiler_c_o=no
11405   $RM -r conftest 2>/dev/null
11406   mkdir conftest
11407   cd conftest
11408   mkdir out
11409   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11410
11411   lt_compiler_flag="-o out/conftest2.$ac_objext"
11412   # Insert the option either (1) after the last *FLAGS variable, or
11413   # (2) before a word containing "conftest.", or (3) at the end.
11414   # Note that $ac_compile itself does not contain backslashes and begins
11415   # with a dollar sign (not a hyphen), so the echo should work correctly.
11416   lt_compile=`echo "$ac_compile" | $SED \
11417   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11418   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11419   -e 's:$: $lt_compiler_flag:'`
11420   (eval echo "\"\$as_me:11420: $lt_compile\"" >&5)
11421   (eval "$lt_compile" 2>out/conftest.err)
11422   ac_status=$?
11423   cat out/conftest.err >&5
11424   echo "$as_me:11424: \$? = $ac_status" >&5
11425   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11426   then
11427     # The compiler can only warn and ignore the option if not recognized
11428     # So say no if there are warnings
11429     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11430     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11431     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11432       lt_cv_prog_compiler_c_o=yes
11433     fi
11434   fi
11435   chmod u+w . 2>&5
11436   $RM conftest*
11437   # SGI C++ compiler will create directory out/ii_files/ for
11438   # template instantiation
11439   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11440   $RM out/* && rmdir out
11441   cd ..
11442   $RM -r conftest
11443   $RM conftest*
11444
11445fi
11446{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11447$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11448
11449
11450
11451
11452hard_links="nottested"
11453if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11454  # do not overwrite the value of need_locks provided by the user
11455  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11456$as_echo_n "checking if we can lock with hard links... " >&6; }
11457  hard_links=yes
11458  $RM conftest*
11459  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11460  touch conftest.a
11461  ln conftest.a conftest.b 2>&5 || hard_links=no
11462  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11463  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
11464$as_echo "$hard_links" >&6; }
11465  if test "$hard_links" = no; then
11466    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11467$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11468    need_locks=warn
11469  fi
11470else
11471  need_locks=no
11472fi
11473
11474
11475
11476
11477
11478
11479  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11480$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11481
11482  runpath_var=
11483  allow_undefined_flag=
11484  always_export_symbols=no
11485  archive_cmds=
11486  archive_expsym_cmds=
11487  compiler_needs_object=no
11488  enable_shared_with_static_runtimes=no
11489  export_dynamic_flag_spec=
11490  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11491  hardcode_automatic=no
11492  hardcode_direct=no
11493  hardcode_direct_absolute=no
11494  hardcode_libdir_flag_spec=
11495  hardcode_libdir_flag_spec_ld=
11496  hardcode_libdir_separator=
11497  hardcode_minus_L=no
11498  hardcode_shlibpath_var=unsupported
11499  inherit_rpath=no
11500  link_all_deplibs=unknown
11501  module_cmds=
11502  module_expsym_cmds=
11503  old_archive_from_new_cmds=
11504  old_archive_from_expsyms_cmds=
11505  thread_safe_flag_spec=
11506  whole_archive_flag_spec=
11507  # include_expsyms should be a list of space-separated symbols to be *always*
11508  # included in the symbol list
11509  include_expsyms=
11510  # exclude_expsyms can be an extended regexp of symbols to exclude
11511  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11512  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11513  # as well as any symbol that contains `d'.
11514  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11515  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11516  # platforms (ab)use it in PIC code, but their linkers get confused if
11517  # the symbol is explicitly referenced.  Since portable code cannot
11518  # rely on this symbol name, it's probably fine to never include it in
11519  # preloaded symbol tables.
11520  # Exclude shared library initialization/finalization symbols.
11521  extract_expsyms_cmds=
11522
11523  case $host_os in
11524  cygwin* | mingw* | pw32* | cegcc*)
11525    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11526    # When not using gcc, we currently assume that we are using
11527    # Microsoft Visual C++.
11528    if test "$GCC" != yes; then
11529      with_gnu_ld=no
11530    fi
11531    ;;
11532  interix*)
11533    # we just hope/assume this is gcc and not c89 (= MSVC++)
11534    with_gnu_ld=yes
11535    ;;
11536  openbsd*)
11537    with_gnu_ld=no
11538    ;;
11539  esac
11540
11541  ld_shlibs=yes
11542  if test "$with_gnu_ld" = yes; then
11543    # If archive_cmds runs LD, not CC, wlarc should be empty
11544    wlarc='${wl}'
11545
11546    # Set some defaults for GNU ld with shared library support. These
11547    # are reset later if shared libraries are not supported. Putting them
11548    # here allows them to be overridden if necessary.
11549    runpath_var=LD_RUN_PATH
11550    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11551    export_dynamic_flag_spec='${wl}--export-dynamic'
11552    # ancient GNU ld didn't support --whole-archive et. al.
11553    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11554      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11555    else
11556      whole_archive_flag_spec=
11557    fi
11558    supports_anon_versioning=no
11559    case `$LD -v 2>&1` in
11560      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11561      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11562      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11563      *\ 2.11.*) ;; # other 2.11 versions
11564      *) supports_anon_versioning=yes ;;
11565    esac
11566
11567    # See if GNU ld supports shared libraries.
11568    case $host_os in
11569    aix[3-9]*)
11570      # On AIX/PPC, the GNU linker is very broken
11571      if test "$host_cpu" != ia64; then
11572	ld_shlibs=no
11573	cat <<_LT_EOF 1>&2
11574
11575*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11576*** to be unable to reliably create shared libraries on AIX.
11577*** Therefore, libtool is disabling shared libraries support.  If you
11578*** really care for shared libraries, you may want to modify your PATH
11579*** so that a non-GNU linker is found, and then restart.
11580
11581_LT_EOF
11582      fi
11583      ;;
11584
11585    amigaos*)
11586      case $host_cpu in
11587      powerpc)
11588            # see comment about AmigaOS4 .so support
11589            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11590            archive_expsym_cmds=''
11591        ;;
11592      m68k)
11593            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)'
11594            hardcode_libdir_flag_spec='-L$libdir'
11595            hardcode_minus_L=yes
11596        ;;
11597      esac
11598      ;;
11599
11600    beos*)
11601      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11602	allow_undefined_flag=unsupported
11603	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11604	# support --undefined.  This deserves some investigation.  FIXME
11605	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11606      else
11607	ld_shlibs=no
11608      fi
11609      ;;
11610
11611    cygwin* | mingw* | pw32* | cegcc*)
11612      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11613      # as there is no search path for DLLs.
11614      hardcode_libdir_flag_spec='-L$libdir'
11615      allow_undefined_flag=unsupported
11616      always_export_symbols=no
11617      enable_shared_with_static_runtimes=yes
11618      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11619
11620      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11621        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11622	# If the export-symbols file already is a .def file (1st line
11623	# is EXPORTS), use it as is; otherwise, prepend...
11624	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11625	  cp $export_symbols $output_objdir/$soname.def;
11626	else
11627	  echo EXPORTS > $output_objdir/$soname.def;
11628	  cat $export_symbols >> $output_objdir/$soname.def;
11629	fi~
11630	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11631      else
11632	ld_shlibs=no
11633      fi
11634      ;;
11635
11636    interix[3-9]*)
11637      hardcode_direct=no
11638      hardcode_shlibpath_var=no
11639      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11640      export_dynamic_flag_spec='${wl}-E'
11641      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11642      # Instead, shared libraries are loaded at an image base (0x10000000 by
11643      # default) and relocated if they conflict, which is a slow very memory
11644      # consuming and fragmenting process.  To avoid this, we pick a random,
11645      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11646      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11647      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11648      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'
11649      ;;
11650
11651    gnu* | linux* | tpf* | k*bsd*-gnu)
11652      tmp_diet=no
11653      if test "$host_os" = linux-dietlibc; then
11654	case $cc_basename in
11655	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11656	esac
11657      fi
11658      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11659	 && test "$tmp_diet" = no
11660      then
11661	tmp_addflag=
11662	tmp_sharedflag='-shared'
11663	case $cc_basename,$host_cpu in
11664        pgcc*)				# Portland Group C compiler
11665	  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'
11666	  tmp_addflag=' $pic_flag'
11667	  ;;
11668	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
11669	  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'
11670	  tmp_addflag=' $pic_flag -Mnomain' ;;
11671	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11672	  tmp_addflag=' -i_dynamic' ;;
11673	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11674	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11675	ifc* | ifort*)			# Intel Fortran compiler
11676	  tmp_addflag=' -nofor_main' ;;
11677	lf95*)				# Lahey Fortran 8.1
11678	  whole_archive_flag_spec=
11679	  tmp_sharedflag='--shared' ;;
11680	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
11681	  tmp_sharedflag='-qmkshrobj'
11682	  tmp_addflag= ;;
11683	esac
11684	case `$CC -V 2>&1 | sed 5q` in
11685	*Sun\ C*)			# Sun C 5.9
11686	  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'
11687	  compiler_needs_object=yes
11688	  tmp_sharedflag='-G' ;;
11689	*Sun\ F*)			# Sun Fortran 8.3
11690	  tmp_sharedflag='-G' ;;
11691	esac
11692	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11693
11694        if test "x$supports_anon_versioning" = xyes; then
11695          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11696	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11697	    echo "local: *; };" >> $output_objdir/$libname.ver~
11698	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11699        fi
11700
11701	case $cc_basename in
11702	xlf*)
11703	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11704	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11705	  hardcode_libdir_flag_spec=
11706	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
11707	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11708	  if test "x$supports_anon_versioning" = xyes; then
11709	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11710	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11711	      echo "local: *; };" >> $output_objdir/$libname.ver~
11712	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11713	  fi
11714	  ;;
11715	esac
11716      else
11717        ld_shlibs=no
11718      fi
11719      ;;
11720
11721    netbsd*)
11722      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11723	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11724	wlarc=
11725      else
11726	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11727	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11728      fi
11729      ;;
11730
11731    solaris*)
11732      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11733	ld_shlibs=no
11734	cat <<_LT_EOF 1>&2
11735
11736*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11737*** create shared libraries on Solaris systems.  Therefore, libtool
11738*** is disabling shared libraries support.  We urge you to upgrade GNU
11739*** binutils to release 2.9.1 or newer.  Another option is to modify
11740*** your PATH or compiler configuration so that the native linker is
11741*** used, and then restart.
11742
11743_LT_EOF
11744      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11745	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11746	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11747      else
11748	ld_shlibs=no
11749      fi
11750      ;;
11751
11752    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11753      case `$LD -v 2>&1` in
11754        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11755	ld_shlibs=no
11756	cat <<_LT_EOF 1>&2
11757
11758*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11759*** reliably create shared libraries on SCO systems.  Therefore, libtool
11760*** is disabling shared libraries support.  We urge you to upgrade GNU
11761*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11762*** your PATH or compiler configuration so that the native linker is
11763*** used, and then restart.
11764
11765_LT_EOF
11766	;;
11767	*)
11768	  # For security reasons, it is highly recommended that you always
11769	  # use absolute paths for naming shared libraries, and exclude the
11770	  # DT_RUNPATH tag from executables and libraries.  But doing so
11771	  # requires that you compile everything twice, which is a pain.
11772	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11773	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11774	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11775	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11776	  else
11777	    ld_shlibs=no
11778	  fi
11779	;;
11780      esac
11781      ;;
11782
11783    sunos4*)
11784      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11785      wlarc=
11786      hardcode_direct=yes
11787      hardcode_shlibpath_var=no
11788      ;;
11789
11790    *)
11791      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11792	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11793	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11794      else
11795	ld_shlibs=no
11796      fi
11797      ;;
11798    esac
11799
11800    if test "$ld_shlibs" = no; then
11801      runpath_var=
11802      hardcode_libdir_flag_spec=
11803      export_dynamic_flag_spec=
11804      whole_archive_flag_spec=
11805    fi
11806  else
11807    # PORTME fill in a description of your system's linker (not GNU ld)
11808    case $host_os in
11809    aix3*)
11810      allow_undefined_flag=unsupported
11811      always_export_symbols=yes
11812      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'
11813      # Note: this linker hardcodes the directories in LIBPATH if there
11814      # are no directories specified by -L.
11815      hardcode_minus_L=yes
11816      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11817	# Neither direct hardcoding nor static linking is supported with a
11818	# broken collect2.
11819	hardcode_direct=unsupported
11820      fi
11821      ;;
11822
11823    aix[4-9]*)
11824      if test "$host_cpu" = ia64; then
11825	# On IA64, the linker does run time linking by default, so we don't
11826	# have to do anything special.
11827	aix_use_runtimelinking=no
11828	exp_sym_flag='-Bexport'
11829	no_entry_flag=""
11830      else
11831	# If we're using GNU nm, then we don't want the "-C" option.
11832	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11833	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11834	  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'
11835	else
11836	  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'
11837	fi
11838	aix_use_runtimelinking=no
11839
11840	# Test if we are trying to use run time linking or normal
11841	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11842	# need to do runtime linking.
11843	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11844	  for ld_flag in $LDFLAGS; do
11845	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11846	    aix_use_runtimelinking=yes
11847	    break
11848	  fi
11849	  done
11850	  ;;
11851	esac
11852
11853	exp_sym_flag='-bexport'
11854	no_entry_flag='-bnoentry'
11855      fi
11856
11857      # When large executables or shared objects are built, AIX ld can
11858      # have problems creating the table of contents.  If linking a library
11859      # or program results in "error TOC overflow" add -mminimal-toc to
11860      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11861      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11862
11863      archive_cmds=''
11864      hardcode_direct=yes
11865      hardcode_direct_absolute=yes
11866      hardcode_libdir_separator=':'
11867      link_all_deplibs=yes
11868      file_list_spec='${wl}-f,'
11869
11870      if test "$GCC" = yes; then
11871	case $host_os in aix4.[012]|aix4.[012].*)
11872	# We only want to do this on AIX 4.2 and lower, the check
11873	# below for broken collect2 doesn't work under 4.3+
11874	  collect2name=`${CC} -print-prog-name=collect2`
11875	  if test -f "$collect2name" &&
11876	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11877	  then
11878	  # We have reworked collect2
11879	  :
11880	  else
11881	  # We have old collect2
11882	  hardcode_direct=unsupported
11883	  # It fails to find uninstalled libraries when the uninstalled
11884	  # path is not listed in the libpath.  Setting hardcode_minus_L
11885	  # to unsupported forces relinking
11886	  hardcode_minus_L=yes
11887	  hardcode_libdir_flag_spec='-L$libdir'
11888	  hardcode_libdir_separator=
11889	  fi
11890	  ;;
11891	esac
11892	shared_flag='-shared'
11893	if test "$aix_use_runtimelinking" = yes; then
11894	  shared_flag="$shared_flag "'${wl}-G'
11895	fi
11896      else
11897	# not using gcc
11898	if test "$host_cpu" = ia64; then
11899	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11900	# chokes on -Wl,-G. The following line is correct:
11901	  shared_flag='-G'
11902	else
11903	  if test "$aix_use_runtimelinking" = yes; then
11904	    shared_flag='${wl}-G'
11905	  else
11906	    shared_flag='${wl}-bM:SRE'
11907	  fi
11908	fi
11909      fi
11910
11911      export_dynamic_flag_spec='${wl}-bexpall'
11912      # It seems that -bexpall does not export symbols beginning with
11913      # underscore (_), so it is better to generate a list of symbols to export.
11914      always_export_symbols=yes
11915      if test "$aix_use_runtimelinking" = yes; then
11916	# Warning - without using the other runtime loading flags (-brtl),
11917	# -berok will link without error, but may produce a broken library.
11918	allow_undefined_flag='-berok'
11919        # Determine the default libpath from the value encoded in an
11920        # empty executable.
11921        cat >conftest.$ac_ext <<_ACEOF
11922/* confdefs.h.  */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h.  */
11927
11928int
11929main ()
11930{
11931
11932  ;
11933  return 0;
11934}
11935_ACEOF
11936rm -f conftest.$ac_objext conftest$ac_exeext
11937if { (ac_try="$ac_link"
11938case "(($ac_try" in
11939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940  *) ac_try_echo=$ac_try;;
11941esac
11942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11943$as_echo "$ac_try_echo") >&5
11944  (eval "$ac_link") 2>conftest.er1
11945  ac_status=$?
11946  grep -v '^ *+' conftest.er1 >conftest.err
11947  rm -f conftest.er1
11948  cat conftest.err >&5
11949  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950  (exit $ac_status); } && {
11951	 test -z "$ac_c_werror_flag" ||
11952	 test ! -s conftest.err
11953       } && test -s conftest$ac_exeext && {
11954	 test "$cross_compiling" = yes ||
11955	 $as_test_x conftest$ac_exeext
11956       }; then
11957
11958lt_aix_libpath_sed='
11959    /Import File Strings/,/^$/ {
11960	/^0/ {
11961	    s/^0  *\(.*\)$/\1/
11962	    p
11963	}
11964    }'
11965aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11966# Check for a 64-bit object if we didn't find anything.
11967if test -z "$aix_libpath"; then
11968  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11969fi
11970else
11971  $as_echo "$as_me: failed program was:" >&5
11972sed 's/^/| /' conftest.$ac_ext >&5
11973
11974
11975fi
11976
11977rm -rf conftest.dSYM
11978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11979      conftest$ac_exeext conftest.$ac_ext
11980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11981
11982        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11983        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"
11984      else
11985	if test "$host_cpu" = ia64; then
11986	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11987	  allow_undefined_flag="-z nodefs"
11988	  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"
11989	else
11990	 # Determine the default libpath from the value encoded in an
11991	 # empty executable.
11992	 cat >conftest.$ac_ext <<_ACEOF
11993/* confdefs.h.  */
11994_ACEOF
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h.  */
11998
11999int
12000main ()
12001{
12002
12003  ;
12004  return 0;
12005}
12006_ACEOF
12007rm -f conftest.$ac_objext conftest$ac_exeext
12008if { (ac_try="$ac_link"
12009case "(($ac_try" in
12010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011  *) ac_try_echo=$ac_try;;
12012esac
12013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12014$as_echo "$ac_try_echo") >&5
12015  (eval "$ac_link") 2>conftest.er1
12016  ac_status=$?
12017  grep -v '^ *+' conftest.er1 >conftest.err
12018  rm -f conftest.er1
12019  cat conftest.err >&5
12020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021  (exit $ac_status); } && {
12022	 test -z "$ac_c_werror_flag" ||
12023	 test ! -s conftest.err
12024       } && test -s conftest$ac_exeext && {
12025	 test "$cross_compiling" = yes ||
12026	 $as_test_x conftest$ac_exeext
12027       }; then
12028
12029lt_aix_libpath_sed='
12030    /Import File Strings/,/^$/ {
12031	/^0/ {
12032	    s/^0  *\(.*\)$/\1/
12033	    p
12034	}
12035    }'
12036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12037# Check for a 64-bit object if we didn't find anything.
12038if test -z "$aix_libpath"; then
12039  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12040fi
12041else
12042  $as_echo "$as_me: failed program was:" >&5
12043sed 's/^/| /' conftest.$ac_ext >&5
12044
12045
12046fi
12047
12048rm -rf conftest.dSYM
12049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12050      conftest$ac_exeext conftest.$ac_ext
12051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12052
12053	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12054	  # Warning - without using the other run time loading flags,
12055	  # -berok will link without error, but may produce a broken library.
12056	  no_undefined_flag=' ${wl}-bernotok'
12057	  allow_undefined_flag=' ${wl}-berok'
12058	  # Exported symbols can be pulled into shared objects from archives
12059	  whole_archive_flag_spec='$convenience'
12060	  archive_cmds_need_lc=yes
12061	  # This is similar to how AIX traditionally builds its shared libraries.
12062	  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'
12063	fi
12064      fi
12065      ;;
12066
12067    amigaos*)
12068      case $host_cpu in
12069      powerpc)
12070            # see comment about AmigaOS4 .so support
12071            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12072            archive_expsym_cmds=''
12073        ;;
12074      m68k)
12075            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)'
12076            hardcode_libdir_flag_spec='-L$libdir'
12077            hardcode_minus_L=yes
12078        ;;
12079      esac
12080      ;;
12081
12082    bsdi[45]*)
12083      export_dynamic_flag_spec=-rdynamic
12084      ;;
12085
12086    cygwin* | mingw* | pw32* | cegcc*)
12087      # When not using gcc, we currently assume that we are using
12088      # Microsoft Visual C++.
12089      # hardcode_libdir_flag_spec is actually meaningless, as there is
12090      # no search path for DLLs.
12091      hardcode_libdir_flag_spec=' '
12092      allow_undefined_flag=unsupported
12093      # Tell ltmain to make .lib files, not .a files.
12094      libext=lib
12095      # Tell ltmain to make .dll files, not .so files.
12096      shrext_cmds=".dll"
12097      # FIXME: Setting linknames here is a bad hack.
12098      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12099      # The linker will automatically build a .lib file if we build a DLL.
12100      old_archive_from_new_cmds='true'
12101      # FIXME: Should let the user specify the lib program.
12102      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12103      fix_srcfile_path='`cygpath -w "$srcfile"`'
12104      enable_shared_with_static_runtimes=yes
12105      ;;
12106
12107    darwin* | rhapsody*)
12108
12109
12110  archive_cmds_need_lc=no
12111  hardcode_direct=no
12112  hardcode_automatic=yes
12113  hardcode_shlibpath_var=unsupported
12114  whole_archive_flag_spec=''
12115  link_all_deplibs=yes
12116  allow_undefined_flag="$_lt_dar_allow_undefined"
12117  case $cc_basename in
12118     ifort*) _lt_dar_can_shared=yes ;;
12119     *) _lt_dar_can_shared=$GCC ;;
12120  esac
12121  if test "$_lt_dar_can_shared" = "yes"; then
12122    output_verbose_link_cmd=echo
12123    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12124    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12125    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}"
12126    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}"
12127
12128  else
12129  ld_shlibs=no
12130  fi
12131
12132      ;;
12133
12134    dgux*)
12135      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12136      hardcode_libdir_flag_spec='-L$libdir'
12137      hardcode_shlibpath_var=no
12138      ;;
12139
12140    freebsd1*)
12141      ld_shlibs=no
12142      ;;
12143
12144    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12145    # support.  Future versions do this automatically, but an explicit c++rt0.o
12146    # does not break anything, and helps significantly (at the cost of a little
12147    # extra space).
12148    freebsd2.2*)
12149      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12150      hardcode_libdir_flag_spec='-R$libdir'
12151      hardcode_direct=yes
12152      hardcode_shlibpath_var=no
12153      ;;
12154
12155    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12156    freebsd2*)
12157      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12158      hardcode_direct=yes
12159      hardcode_minus_L=yes
12160      hardcode_shlibpath_var=no
12161      ;;
12162
12163    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12164    freebsd* | dragonfly*)
12165      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12166      hardcode_libdir_flag_spec='-R$libdir'
12167      hardcode_direct=yes
12168      hardcode_shlibpath_var=no
12169      ;;
12170
12171    hpux9*)
12172      if test "$GCC" = yes; then
12173	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'
12174      else
12175	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'
12176      fi
12177      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12178      hardcode_libdir_separator=:
12179      hardcode_direct=yes
12180
12181      # hardcode_minus_L: Not really in the search PATH,
12182      # but as the default location of the library.
12183      hardcode_minus_L=yes
12184      export_dynamic_flag_spec='${wl}-E'
12185      ;;
12186
12187    hpux10*)
12188      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12189	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12190      else
12191	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12192      fi
12193      if test "$with_gnu_ld" = no; then
12194	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12195	hardcode_libdir_flag_spec_ld='+b $libdir'
12196	hardcode_libdir_separator=:
12197	hardcode_direct=yes
12198	hardcode_direct_absolute=yes
12199	export_dynamic_flag_spec='${wl}-E'
12200	# hardcode_minus_L: Not really in the search PATH,
12201	# but as the default location of the library.
12202	hardcode_minus_L=yes
12203      fi
12204      ;;
12205
12206    hpux11*)
12207      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12208	case $host_cpu in
12209	hppa*64*)
12210	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12211	  ;;
12212	ia64*)
12213	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12214	  ;;
12215	*)
12216	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12217	  ;;
12218	esac
12219      else
12220	case $host_cpu in
12221	hppa*64*)
12222	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12223	  ;;
12224	ia64*)
12225	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12226	  ;;
12227	*)
12228	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12229	  ;;
12230	esac
12231      fi
12232      if test "$with_gnu_ld" = no; then
12233	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12234	hardcode_libdir_separator=:
12235
12236	case $host_cpu in
12237	hppa*64*|ia64*)
12238	  hardcode_direct=no
12239	  hardcode_shlibpath_var=no
12240	  ;;
12241	*)
12242	  hardcode_direct=yes
12243	  hardcode_direct_absolute=yes
12244	  export_dynamic_flag_spec='${wl}-E'
12245
12246	  # hardcode_minus_L: Not really in the search PATH,
12247	  # but as the default location of the library.
12248	  hardcode_minus_L=yes
12249	  ;;
12250	esac
12251      fi
12252      ;;
12253
12254    irix5* | irix6* | nonstopux*)
12255      if test "$GCC" = yes; then
12256	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'
12257	# Try to use the -exported_symbol ld option, if it does not
12258	# work, assume that -exports_file does not work either and
12259	# implicitly export all symbols.
12260        save_LDFLAGS="$LDFLAGS"
12261        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12262        cat >conftest.$ac_ext <<_ACEOF
12263int foo(void) {}
12264_ACEOF
12265rm -f conftest.$ac_objext conftest$ac_exeext
12266if { (ac_try="$ac_link"
12267case "(($ac_try" in
12268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269  *) ac_try_echo=$ac_try;;
12270esac
12271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12272$as_echo "$ac_try_echo") >&5
12273  (eval "$ac_link") 2>conftest.er1
12274  ac_status=$?
12275  grep -v '^ *+' conftest.er1 >conftest.err
12276  rm -f conftest.er1
12277  cat conftest.err >&5
12278  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279  (exit $ac_status); } && {
12280	 test -z "$ac_c_werror_flag" ||
12281	 test ! -s conftest.err
12282       } && test -s conftest$ac_exeext && {
12283	 test "$cross_compiling" = yes ||
12284	 $as_test_x conftest$ac_exeext
12285       }; then
12286  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'
12287
12288else
12289  $as_echo "$as_me: failed program was:" >&5
12290sed 's/^/| /' conftest.$ac_ext >&5
12291
12292
12293fi
12294
12295rm -rf conftest.dSYM
12296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12297      conftest$ac_exeext conftest.$ac_ext
12298        LDFLAGS="$save_LDFLAGS"
12299      else
12300	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'
12301	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'
12302      fi
12303      archive_cmds_need_lc='no'
12304      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12305      hardcode_libdir_separator=:
12306      inherit_rpath=yes
12307      link_all_deplibs=yes
12308      ;;
12309
12310    netbsd*)
12311      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12312	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12313      else
12314	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12315      fi
12316      hardcode_libdir_flag_spec='-R$libdir'
12317      hardcode_direct=yes
12318      hardcode_shlibpath_var=no
12319      ;;
12320
12321    newsos6)
12322      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12323      hardcode_direct=yes
12324      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12325      hardcode_libdir_separator=:
12326      hardcode_shlibpath_var=no
12327      ;;
12328
12329    *nto* | *qnx*)
12330      ;;
12331
12332    openbsd*)
12333      if test -f /usr/libexec/ld.so; then
12334	hardcode_direct=yes
12335	hardcode_shlibpath_var=no
12336	hardcode_direct_absolute=yes
12337	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12338	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12339	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12340	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12341	  export_dynamic_flag_spec='${wl}-E'
12342	else
12343	  case $host_os in
12344	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12345	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12346	     hardcode_libdir_flag_spec='-R$libdir'
12347	     ;;
12348	   *)
12349	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12350	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12351	     ;;
12352	  esac
12353	fi
12354      else
12355	ld_shlibs=no
12356      fi
12357      ;;
12358
12359    os2*)
12360      hardcode_libdir_flag_spec='-L$libdir'
12361      hardcode_minus_L=yes
12362      allow_undefined_flag=unsupported
12363      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'
12364      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12365      ;;
12366
12367    osf3*)
12368      if test "$GCC" = yes; then
12369	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12370	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'
12371      else
12372	allow_undefined_flag=' -expect_unresolved \*'
12373	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'
12374      fi
12375      archive_cmds_need_lc='no'
12376      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12377      hardcode_libdir_separator=:
12378      ;;
12379
12380    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12381      if test "$GCC" = yes; then
12382	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12383	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'
12384	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12385      else
12386	allow_undefined_flag=' -expect_unresolved \*'
12387	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'
12388	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~
12389	$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'
12390
12391	# Both c and cxx compiler support -rpath directly
12392	hardcode_libdir_flag_spec='-rpath $libdir'
12393      fi
12394      archive_cmds_need_lc='no'
12395      hardcode_libdir_separator=:
12396      ;;
12397
12398    solaris*)
12399      no_undefined_flag=' -z defs'
12400      if test "$GCC" = yes; then
12401	wlarc='${wl}'
12402	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12403	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12404	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12405      else
12406	case `$CC -V 2>&1` in
12407	*"Compilers 5.0"*)
12408	  wlarc=''
12409	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12410	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12411	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12412	  ;;
12413	*)
12414	  wlarc='${wl}'
12415	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12416	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12417	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12418	  ;;
12419	esac
12420      fi
12421      hardcode_libdir_flag_spec='-R$libdir'
12422      hardcode_shlibpath_var=no
12423      case $host_os in
12424      solaris2.[0-5] | solaris2.[0-5].*) ;;
12425      *)
12426	# The compiler driver will combine and reorder linker options,
12427	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12428	# but is careful enough not to reorder.
12429	# Supported since Solaris 2.6 (maybe 2.5.1?)
12430	if test "$GCC" = yes; then
12431	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12432	else
12433	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12434	fi
12435	;;
12436      esac
12437      link_all_deplibs=yes
12438      ;;
12439
12440    sunos4*)
12441      if test "x$host_vendor" = xsequent; then
12442	# Use $CC to link under sequent, because it throws in some extra .o
12443	# files that make .init and .fini sections work.
12444	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12445      else
12446	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12447      fi
12448      hardcode_libdir_flag_spec='-L$libdir'
12449      hardcode_direct=yes
12450      hardcode_minus_L=yes
12451      hardcode_shlibpath_var=no
12452      ;;
12453
12454    sysv4)
12455      case $host_vendor in
12456	sni)
12457	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12458	  hardcode_direct=yes # is this really true???
12459	;;
12460	siemens)
12461	  ## LD is ld it makes a PLAMLIB
12462	  ## CC just makes a GrossModule.
12463	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12464	  reload_cmds='$CC -r -o $output$reload_objs'
12465	  hardcode_direct=no
12466        ;;
12467	motorola)
12468	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12469	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12470	;;
12471      esac
12472      runpath_var='LD_RUN_PATH'
12473      hardcode_shlibpath_var=no
12474      ;;
12475
12476    sysv4.3*)
12477      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12478      hardcode_shlibpath_var=no
12479      export_dynamic_flag_spec='-Bexport'
12480      ;;
12481
12482    sysv4*MP*)
12483      if test -d /usr/nec; then
12484	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12485	hardcode_shlibpath_var=no
12486	runpath_var=LD_RUN_PATH
12487	hardcode_runpath_var=yes
12488	ld_shlibs=yes
12489      fi
12490      ;;
12491
12492    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12493      no_undefined_flag='${wl}-z,text'
12494      archive_cmds_need_lc=no
12495      hardcode_shlibpath_var=no
12496      runpath_var='LD_RUN_PATH'
12497
12498      if test "$GCC" = yes; then
12499	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12500	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12501      else
12502	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12504      fi
12505      ;;
12506
12507    sysv5* | sco3.2v5* | sco5v6*)
12508      # Note: We can NOT use -z defs as we might desire, because we do not
12509      # link with -lc, and that would cause any symbols used from libc to
12510      # always be unresolved, which means just about no library would
12511      # ever link correctly.  If we're not using GNU ld we use -z text
12512      # though, which does catch some bad symbols but isn't as heavy-handed
12513      # as -z defs.
12514      no_undefined_flag='${wl}-z,text'
12515      allow_undefined_flag='${wl}-z,nodefs'
12516      archive_cmds_need_lc=no
12517      hardcode_shlibpath_var=no
12518      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12519      hardcode_libdir_separator=':'
12520      link_all_deplibs=yes
12521      export_dynamic_flag_spec='${wl}-Bexport'
12522      runpath_var='LD_RUN_PATH'
12523
12524      if test "$GCC" = yes; then
12525	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12526	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12527      else
12528	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12529	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12530      fi
12531      ;;
12532
12533    uts4*)
12534      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12535      hardcode_libdir_flag_spec='-L$libdir'
12536      hardcode_shlibpath_var=no
12537      ;;
12538
12539    *)
12540      ld_shlibs=no
12541      ;;
12542    esac
12543
12544    if test x$host_vendor = xsni; then
12545      case $host in
12546      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12547	export_dynamic_flag_spec='${wl}-Blargedynsym'
12548	;;
12549      esac
12550    fi
12551  fi
12552
12553{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12554$as_echo "$ld_shlibs" >&6; }
12555test "$ld_shlibs" = no && can_build_shared=no
12556
12557with_gnu_ld=$with_gnu_ld
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573#
12574# Do we need to explicitly link libc?
12575#
12576case "x$archive_cmds_need_lc" in
12577x|xyes)
12578  # Assume -lc should be added
12579  archive_cmds_need_lc=yes
12580
12581  if test "$enable_shared" = yes && test "$GCC" = yes; then
12582    case $archive_cmds in
12583    *'~'*)
12584      # FIXME: we may have to deal with multi-command sequences.
12585      ;;
12586    '$CC '*)
12587      # Test whether the compiler implicitly links with -lc since on some
12588      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12589      # to ld, don't add -lc before -lgcc.
12590      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12591$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12592      $RM conftest*
12593      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12594
12595      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12596  (eval $ac_compile) 2>&5
12597  ac_status=$?
12598  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599  (exit $ac_status); } 2>conftest.err; then
12600        soname=conftest
12601        lib=conftest
12602        libobjs=conftest.$ac_objext
12603        deplibs=
12604        wl=$lt_prog_compiler_wl
12605	pic_flag=$lt_prog_compiler_pic
12606        compiler_flags=-v
12607        linker_flags=-v
12608        verstring=
12609        output_objdir=.
12610        libname=conftest
12611        lt_save_allow_undefined_flag=$allow_undefined_flag
12612        allow_undefined_flag=
12613        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12614  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12615  ac_status=$?
12616  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617  (exit $ac_status); }
12618        then
12619	  archive_cmds_need_lc=no
12620        else
12621	  archive_cmds_need_lc=yes
12622        fi
12623        allow_undefined_flag=$lt_save_allow_undefined_flag
12624      else
12625        cat conftest.err 1>&5
12626      fi
12627      $RM conftest*
12628      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12629$as_echo "$archive_cmds_need_lc" >&6; }
12630      ;;
12631    esac
12632  fi
12633  ;;
12634esac
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
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  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12793$as_echo_n "checking dynamic linker characteristics... " >&6; }
12794
12795if test "$GCC" = yes; then
12796  case $host_os in
12797    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12798    *) lt_awk_arg="/^libraries:/" ;;
12799  esac
12800  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12801  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12802    # if the path contains ";" then we assume it to be the separator
12803    # otherwise default to the standard path separator (i.e. ":") - it is
12804    # assumed that no part of a normal pathname contains ";" but that should
12805    # okay in the real world where ";" in dirpaths is itself problematic.
12806    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12807  else
12808    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12809  fi
12810  # Ok, now we have the path, separated by spaces, we can step through it
12811  # and add multilib dir if necessary.
12812  lt_tmp_lt_search_path_spec=
12813  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12814  for lt_sys_path in $lt_search_path_spec; do
12815    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12816      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12817    else
12818      test -d "$lt_sys_path" && \
12819	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12820    fi
12821  done
12822  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12823BEGIN {RS=" "; FS="/|\n";} {
12824  lt_foo="";
12825  lt_count=0;
12826  for (lt_i = NF; lt_i > 0; lt_i--) {
12827    if ($lt_i != "" && $lt_i != ".") {
12828      if ($lt_i == "..") {
12829        lt_count++;
12830      } else {
12831        if (lt_count == 0) {
12832          lt_foo="/" $lt_i lt_foo;
12833        } else {
12834          lt_count--;
12835        }
12836      }
12837    }
12838  }
12839  if (lt_foo != "") { lt_freq[lt_foo]++; }
12840  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12841}'`
12842  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12843else
12844  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12845fi
12846library_names_spec=
12847libname_spec='lib$name'
12848soname_spec=
12849shrext_cmds=".so"
12850postinstall_cmds=
12851postuninstall_cmds=
12852finish_cmds=
12853finish_eval=
12854shlibpath_var=
12855shlibpath_overrides_runpath=unknown
12856version_type=none
12857dynamic_linker="$host_os ld.so"
12858sys_lib_dlsearch_path_spec="/lib /usr/lib"
12859need_lib_prefix=unknown
12860hardcode_into_libs=no
12861
12862# when you set need_version to no, make sure it does not cause -set_version
12863# flags to be left without arguments
12864need_version=unknown
12865
12866case $host_os in
12867aix3*)
12868  version_type=linux
12869  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12870  shlibpath_var=LIBPATH
12871
12872  # AIX 3 has no versioning support, so we append a major version to the name.
12873  soname_spec='${libname}${release}${shared_ext}$major'
12874  ;;
12875
12876aix[4-9]*)
12877  version_type=linux
12878  need_lib_prefix=no
12879  need_version=no
12880  hardcode_into_libs=yes
12881  if test "$host_cpu" = ia64; then
12882    # AIX 5 supports IA64
12883    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12884    shlibpath_var=LD_LIBRARY_PATH
12885  else
12886    # With GCC up to 2.95.x, collect2 would create an import file
12887    # for dependence libraries.  The import file would start with
12888    # the line `#! .'.  This would cause the generated library to
12889    # depend on `.', always an invalid library.  This was fixed in
12890    # development snapshots of GCC prior to 3.0.
12891    case $host_os in
12892      aix4 | aix4.[01] | aix4.[01].*)
12893      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12894	   echo ' yes '
12895	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12896	:
12897      else
12898	can_build_shared=no
12899      fi
12900      ;;
12901    esac
12902    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12903    # soname into executable. Probably we can add versioning support to
12904    # collect2, so additional links can be useful in future.
12905    if test "$aix_use_runtimelinking" = yes; then
12906      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12907      # instead of lib<name>.a to let people know that these are not
12908      # typical AIX shared libraries.
12909      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12910    else
12911      # We preserve .a as extension for shared libraries through AIX4.2
12912      # and later when we are not doing run time linking.
12913      library_names_spec='${libname}${release}.a $libname.a'
12914      soname_spec='${libname}${release}${shared_ext}$major'
12915    fi
12916    shlibpath_var=LIBPATH
12917  fi
12918  ;;
12919
12920amigaos*)
12921  case $host_cpu in
12922  powerpc)
12923    # Since July 2007 AmigaOS4 officially supports .so libraries.
12924    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926    ;;
12927  m68k)
12928    library_names_spec='$libname.ixlibrary $libname.a'
12929    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12930    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'
12931    ;;
12932  esac
12933  ;;
12934
12935beos*)
12936  library_names_spec='${libname}${shared_ext}'
12937  dynamic_linker="$host_os ld.so"
12938  shlibpath_var=LIBRARY_PATH
12939  ;;
12940
12941bsdi[45]*)
12942  version_type=linux
12943  need_version=no
12944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945  soname_spec='${libname}${release}${shared_ext}$major'
12946  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12947  shlibpath_var=LD_LIBRARY_PATH
12948  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12949  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12950  # the default ld.so.conf also contains /usr/contrib/lib and
12951  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12952  # libtool to hard-code these into programs
12953  ;;
12954
12955cygwin* | mingw* | pw32* | cegcc*)
12956  version_type=windows
12957  shrext_cmds=".dll"
12958  need_version=no
12959  need_lib_prefix=no
12960
12961  case $GCC,$host_os in
12962  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12963    library_names_spec='$libname.dll.a'
12964    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12965    postinstall_cmds='base_file=`basename \${file}`~
12966      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12967      dldir=$destdir/`dirname \$dlpath`~
12968      test -d \$dldir || mkdir -p \$dldir~
12969      $install_prog $dir/$dlname \$dldir/$dlname~
12970      chmod a+x \$dldir/$dlname~
12971      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12972        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12973      fi'
12974    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12975      dlpath=$dir/\$dldll~
12976       $RM \$dlpath'
12977    shlibpath_overrides_runpath=yes
12978
12979    case $host_os in
12980    cygwin*)
12981      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12982      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12983      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12984      ;;
12985    mingw* | cegcc*)
12986      # MinGW DLLs use traditional 'lib' prefix
12987      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12988      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12989      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12990        # It is most probably a Windows format PATH printed by
12991        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12992        # path with ; separators, and with drive letters. We can handle the
12993        # drive letters (cygwin fileutils understands them), so leave them,
12994        # especially as we might pass files found there to a mingw objdump,
12995        # which wouldn't understand a cygwinified path. Ahh.
12996        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12997      else
12998        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12999      fi
13000      ;;
13001    pw32*)
13002      # pw32 DLLs use 'pw' prefix rather than 'lib'
13003      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13004      ;;
13005    esac
13006    ;;
13007
13008  *)
13009    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13010    ;;
13011  esac
13012  dynamic_linker='Win32 ld.exe'
13013  # FIXME: first we should search . and the directory the executable is in
13014  shlibpath_var=PATH
13015  ;;
13016
13017darwin* | rhapsody*)
13018  dynamic_linker="$host_os dyld"
13019  version_type=darwin
13020  need_lib_prefix=no
13021  need_version=no
13022  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13023  soname_spec='${libname}${release}${major}$shared_ext'
13024  shlibpath_overrides_runpath=yes
13025  shlibpath_var=DYLD_LIBRARY_PATH
13026  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13027
13028  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13029  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13030  ;;
13031
13032dgux*)
13033  version_type=linux
13034  need_lib_prefix=no
13035  need_version=no
13036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13037  soname_spec='${libname}${release}${shared_ext}$major'
13038  shlibpath_var=LD_LIBRARY_PATH
13039  ;;
13040
13041freebsd1*)
13042  dynamic_linker=no
13043  ;;
13044
13045freebsd* | dragonfly*)
13046  # DragonFly does not have aout.  When/if they implement a new
13047  # versioning mechanism, adjust this.
13048  if test -x /usr/bin/objformat; then
13049    objformat=`/usr/bin/objformat`
13050  else
13051    case $host_os in
13052    freebsd[123]*) objformat=aout ;;
13053    *) objformat=elf ;;
13054    esac
13055  fi
13056  version_type=freebsd-$objformat
13057  case $version_type in
13058    freebsd-elf*)
13059      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13060      need_version=no
13061      need_lib_prefix=no
13062      ;;
13063    freebsd-*)
13064      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13065      need_version=yes
13066      ;;
13067  esac
13068  shlibpath_var=LD_LIBRARY_PATH
13069  case $host_os in
13070  freebsd2*)
13071    shlibpath_overrides_runpath=yes
13072    ;;
13073  freebsd3.[01]* | freebsdelf3.[01]*)
13074    shlibpath_overrides_runpath=yes
13075    hardcode_into_libs=yes
13076    ;;
13077  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13078  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13079    shlibpath_overrides_runpath=no
13080    hardcode_into_libs=yes
13081    ;;
13082  *) # from 4.6 on, and DragonFly
13083    shlibpath_overrides_runpath=yes
13084    hardcode_into_libs=yes
13085    ;;
13086  esac
13087  ;;
13088
13089gnu*)
13090  version_type=linux
13091  need_lib_prefix=no
13092  need_version=no
13093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13094  soname_spec='${libname}${release}${shared_ext}$major'
13095  shlibpath_var=LD_LIBRARY_PATH
13096  hardcode_into_libs=yes
13097  ;;
13098
13099hpux9* | hpux10* | hpux11*)
13100  # Give a soname corresponding to the major version so that dld.sl refuses to
13101  # link against other versions.
13102  version_type=sunos
13103  need_lib_prefix=no
13104  need_version=no
13105  case $host_cpu in
13106  ia64*)
13107    shrext_cmds='.so'
13108    hardcode_into_libs=yes
13109    dynamic_linker="$host_os dld.so"
13110    shlibpath_var=LD_LIBRARY_PATH
13111    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13112    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113    soname_spec='${libname}${release}${shared_ext}$major'
13114    if test "X$HPUX_IA64_MODE" = X32; then
13115      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13116    else
13117      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13118    fi
13119    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13120    ;;
13121  hppa*64*)
13122    shrext_cmds='.sl'
13123    hardcode_into_libs=yes
13124    dynamic_linker="$host_os dld.sl"
13125    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13126    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13127    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13128    soname_spec='${libname}${release}${shared_ext}$major'
13129    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13130    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13131    ;;
13132  *)
13133    shrext_cmds='.sl'
13134    dynamic_linker="$host_os dld.sl"
13135    shlibpath_var=SHLIB_PATH
13136    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13137    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13138    soname_spec='${libname}${release}${shared_ext}$major'
13139    ;;
13140  esac
13141  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13142  postinstall_cmds='chmod 555 $lib'
13143  ;;
13144
13145interix[3-9]*)
13146  version_type=linux
13147  need_lib_prefix=no
13148  need_version=no
13149  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13150  soname_spec='${libname}${release}${shared_ext}$major'
13151  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13152  shlibpath_var=LD_LIBRARY_PATH
13153  shlibpath_overrides_runpath=no
13154  hardcode_into_libs=yes
13155  ;;
13156
13157irix5* | irix6* | nonstopux*)
13158  case $host_os in
13159    nonstopux*) version_type=nonstopux ;;
13160    *)
13161	if test "$lt_cv_prog_gnu_ld" = yes; then
13162		version_type=linux
13163	else
13164		version_type=irix
13165	fi ;;
13166  esac
13167  need_lib_prefix=no
13168  need_version=no
13169  soname_spec='${libname}${release}${shared_ext}$major'
13170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13171  case $host_os in
13172  irix5* | nonstopux*)
13173    libsuff= shlibsuff=
13174    ;;
13175  *)
13176    case $LD in # libtool.m4 will add one of these switches to LD
13177    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13178      libsuff= shlibsuff= libmagic=32-bit;;
13179    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13180      libsuff=32 shlibsuff=N32 libmagic=N32;;
13181    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13182      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13183    *) libsuff= shlibsuff= libmagic=never-match;;
13184    esac
13185    ;;
13186  esac
13187  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13188  shlibpath_overrides_runpath=no
13189  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13190  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13191  hardcode_into_libs=yes
13192  ;;
13193
13194# No shared lib support for Linux oldld, aout, or coff.
13195linux*oldld* | linux*aout* | linux*coff*)
13196  dynamic_linker=no
13197  ;;
13198
13199# This must be Linux ELF.
13200linux* | k*bsd*-gnu)
13201  version_type=linux
13202  need_lib_prefix=no
13203  need_version=no
13204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205  soname_spec='${libname}${release}${shared_ext}$major'
13206  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13207  shlibpath_var=LD_LIBRARY_PATH
13208  shlibpath_overrides_runpath=no
13209  # Some binutils ld are patched to set DT_RUNPATH
13210  save_LDFLAGS=$LDFLAGS
13211  save_libdir=$libdir
13212  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13213       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13214  cat >conftest.$ac_ext <<_ACEOF
13215/* confdefs.h.  */
13216_ACEOF
13217cat confdefs.h >>conftest.$ac_ext
13218cat >>conftest.$ac_ext <<_ACEOF
13219/* end confdefs.h.  */
13220
13221int
13222main ()
13223{
13224
13225  ;
13226  return 0;
13227}
13228_ACEOF
13229rm -f conftest.$ac_objext conftest$ac_exeext
13230if { (ac_try="$ac_link"
13231case "(($ac_try" in
13232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233  *) ac_try_echo=$ac_try;;
13234esac
13235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13236$as_echo "$ac_try_echo") >&5
13237  (eval "$ac_link") 2>conftest.er1
13238  ac_status=$?
13239  grep -v '^ *+' conftest.er1 >conftest.err
13240  rm -f conftest.er1
13241  cat conftest.err >&5
13242  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243  (exit $ac_status); } && {
13244	 test -z "$ac_c_werror_flag" ||
13245	 test ! -s conftest.err
13246       } && test -s conftest$ac_exeext && {
13247	 test "$cross_compiling" = yes ||
13248	 $as_test_x conftest$ac_exeext
13249       }; then
13250  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13251  shlibpath_overrides_runpath=yes
13252fi
13253
13254else
13255  $as_echo "$as_me: failed program was:" >&5
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
13258
13259fi
13260
13261rm -rf conftest.dSYM
13262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13263      conftest$ac_exeext conftest.$ac_ext
13264  LDFLAGS=$save_LDFLAGS
13265  libdir=$save_libdir
13266
13267  # This implies no fast_install, which is unacceptable.
13268  # Some rework will be needed to allow for fast_install
13269  # before this can be enabled.
13270  hardcode_into_libs=yes
13271
13272  # Add ABI-specific directories to the system library path.
13273  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13274
13275  # Append ld.so.conf contents to the search path
13276  if test -f /etc/ld.so.conf; then
13277    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' ' '`
13278    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13279  fi
13280
13281  # We used to test for /lib/ld.so.1 and disable shared libraries on
13282  # powerpc, because MkLinux only supported shared libraries with the
13283  # GNU dynamic linker.  Since this was broken with cross compilers,
13284  # most powerpc-linux boxes support dynamic linking these days and
13285  # people can always --disable-shared, the test was removed, and we
13286  # assume the GNU/Linux dynamic linker is in use.
13287  dynamic_linker='GNU/Linux ld.so'
13288  ;;
13289
13290netbsd*)
13291  version_type=sunos
13292  need_lib_prefix=no
13293  need_version=no
13294  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13295    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13296    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13297    dynamic_linker='NetBSD (a.out) ld.so'
13298  else
13299    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13300    soname_spec='${libname}${release}${shared_ext}$major'
13301    dynamic_linker='NetBSD ld.elf_so'
13302  fi
13303  shlibpath_var=LD_LIBRARY_PATH
13304  shlibpath_overrides_runpath=yes
13305  hardcode_into_libs=yes
13306  ;;
13307
13308newsos6)
13309  version_type=linux
13310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13311  shlibpath_var=LD_LIBRARY_PATH
13312  shlibpath_overrides_runpath=yes
13313  ;;
13314
13315*nto* | *qnx*)
13316  version_type=qnx
13317  need_lib_prefix=no
13318  need_version=no
13319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320  soname_spec='${libname}${release}${shared_ext}$major'
13321  shlibpath_var=LD_LIBRARY_PATH
13322  shlibpath_overrides_runpath=no
13323  hardcode_into_libs=yes
13324  dynamic_linker='ldqnx.so'
13325  ;;
13326
13327openbsd*)
13328  version_type=sunos
13329  sys_lib_dlsearch_path_spec="/usr/lib"
13330  need_lib_prefix=no
13331  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13332  case $host_os in
13333    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13334    *)				need_version=no  ;;
13335  esac
13336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13337  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13338  shlibpath_var=LD_LIBRARY_PATH
13339  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13340    case $host_os in
13341      openbsd2.[89] | openbsd2.[89].*)
13342	shlibpath_overrides_runpath=no
13343	;;
13344      *)
13345	shlibpath_overrides_runpath=yes
13346	;;
13347      esac
13348  else
13349    shlibpath_overrides_runpath=yes
13350  fi
13351  ;;
13352
13353os2*)
13354  libname_spec='$name'
13355  shrext_cmds=".dll"
13356  need_lib_prefix=no
13357  library_names_spec='$libname${shared_ext} $libname.a'
13358  dynamic_linker='OS/2 ld.exe'
13359  shlibpath_var=LIBPATH
13360  ;;
13361
13362osf3* | osf4* | osf5*)
13363  version_type=osf
13364  need_lib_prefix=no
13365  need_version=no
13366  soname_spec='${libname}${release}${shared_ext}$major'
13367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13368  shlibpath_var=LD_LIBRARY_PATH
13369  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13370  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13371  ;;
13372
13373rdos*)
13374  dynamic_linker=no
13375  ;;
13376
13377solaris*)
13378  version_type=linux
13379  need_lib_prefix=no
13380  need_version=no
13381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382  soname_spec='${libname}${release}${shared_ext}$major'
13383  shlibpath_var=LD_LIBRARY_PATH
13384  shlibpath_overrides_runpath=yes
13385  hardcode_into_libs=yes
13386  # ldd complains unless libraries are executable
13387  postinstall_cmds='chmod +x $lib'
13388  ;;
13389
13390sunos4*)
13391  version_type=sunos
13392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13393  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13394  shlibpath_var=LD_LIBRARY_PATH
13395  shlibpath_overrides_runpath=yes
13396  if test "$with_gnu_ld" = yes; then
13397    need_lib_prefix=no
13398  fi
13399  need_version=yes
13400  ;;
13401
13402sysv4 | sysv4.3*)
13403  version_type=linux
13404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13405  soname_spec='${libname}${release}${shared_ext}$major'
13406  shlibpath_var=LD_LIBRARY_PATH
13407  case $host_vendor in
13408    sni)
13409      shlibpath_overrides_runpath=no
13410      need_lib_prefix=no
13411      runpath_var=LD_RUN_PATH
13412      ;;
13413    siemens)
13414      need_lib_prefix=no
13415      ;;
13416    motorola)
13417      need_lib_prefix=no
13418      need_version=no
13419      shlibpath_overrides_runpath=no
13420      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13421      ;;
13422  esac
13423  ;;
13424
13425sysv4*MP*)
13426  if test -d /usr/nec ;then
13427    version_type=linux
13428    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13429    soname_spec='$libname${shared_ext}.$major'
13430    shlibpath_var=LD_LIBRARY_PATH
13431  fi
13432  ;;
13433
13434sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13435  version_type=freebsd-elf
13436  need_lib_prefix=no
13437  need_version=no
13438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13439  soname_spec='${libname}${release}${shared_ext}$major'
13440  shlibpath_var=LD_LIBRARY_PATH
13441  shlibpath_overrides_runpath=yes
13442  hardcode_into_libs=yes
13443  if test "$with_gnu_ld" = yes; then
13444    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13445  else
13446    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13447    case $host_os in
13448      sco3.2v5*)
13449        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13450	;;
13451    esac
13452  fi
13453  sys_lib_dlsearch_path_spec='/usr/lib'
13454  ;;
13455
13456tpf*)
13457  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13458  version_type=linux
13459  need_lib_prefix=no
13460  need_version=no
13461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462  shlibpath_var=LD_LIBRARY_PATH
13463  shlibpath_overrides_runpath=no
13464  hardcode_into_libs=yes
13465  ;;
13466
13467uts4*)
13468  version_type=linux
13469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13470  soname_spec='${libname}${release}${shared_ext}$major'
13471  shlibpath_var=LD_LIBRARY_PATH
13472  ;;
13473
13474*)
13475  dynamic_linker=no
13476  ;;
13477esac
13478{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13479$as_echo "$dynamic_linker" >&6; }
13480test "$dynamic_linker" = no && can_build_shared=no
13481
13482variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13483if test "$GCC" = yes; then
13484  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13485fi
13486
13487if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13488  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13489fi
13490if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13491  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13492fi
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13581$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13582hardcode_action=
13583if test -n "$hardcode_libdir_flag_spec" ||
13584   test -n "$runpath_var" ||
13585   test "X$hardcode_automatic" = "Xyes" ; then
13586
13587  # We can hardcode non-existent directories.
13588  if test "$hardcode_direct" != no &&
13589     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13590     # have to relink, otherwise we might link with an installed library
13591     # when we should be linking with a yet-to-be-installed one
13592     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13593     test "$hardcode_minus_L" != no; then
13594    # Linking always hardcodes the temporary library directory.
13595    hardcode_action=relink
13596  else
13597    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13598    hardcode_action=immediate
13599  fi
13600else
13601  # We cannot hardcode anything, or else we can only hardcode existing
13602  # directories.
13603  hardcode_action=unsupported
13604fi
13605{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
13606$as_echo "$hardcode_action" >&6; }
13607
13608if test "$hardcode_action" = relink ||
13609   test "$inherit_rpath" = yes; then
13610  # Fast installation is not supported
13611  enable_fast_install=no
13612elif test "$shlibpath_overrides_runpath" = yes ||
13613     test "$enable_shared" = no; then
13614  # Fast installation is not necessary
13615  enable_fast_install=needless
13616fi
13617
13618
13619
13620
13621
13622
13623  if test "x$enable_dlopen" != xyes; then
13624  enable_dlopen=unknown
13625  enable_dlopen_self=unknown
13626  enable_dlopen_self_static=unknown
13627else
13628  lt_cv_dlopen=no
13629  lt_cv_dlopen_libs=
13630
13631  case $host_os in
13632  beos*)
13633    lt_cv_dlopen="load_add_on"
13634    lt_cv_dlopen_libs=
13635    lt_cv_dlopen_self=yes
13636    ;;
13637
13638  mingw* | pw32* | cegcc*)
13639    lt_cv_dlopen="LoadLibrary"
13640    lt_cv_dlopen_libs=
13641    ;;
13642
13643  cygwin*)
13644    lt_cv_dlopen="dlopen"
13645    lt_cv_dlopen_libs=
13646    ;;
13647
13648  darwin*)
13649  # if libdl is installed we need to link against it
13650    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13651$as_echo_n "checking for dlopen in -ldl... " >&6; }
13652if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13653  $as_echo_n "(cached) " >&6
13654else
13655  ac_check_lib_save_LIBS=$LIBS
13656LIBS="-ldl  $LIBS"
13657cat >conftest.$ac_ext <<_ACEOF
13658/* confdefs.h.  */
13659_ACEOF
13660cat confdefs.h >>conftest.$ac_ext
13661cat >>conftest.$ac_ext <<_ACEOF
13662/* end confdefs.h.  */
13663
13664/* Override any GCC internal prototype to avoid an error.
13665   Use char because int might match the return type of a GCC
13666   builtin and then its argument prototype would still apply.  */
13667#ifdef __cplusplus
13668extern "C"
13669#endif
13670char dlopen ();
13671int
13672main ()
13673{
13674return dlopen ();
13675  ;
13676  return 0;
13677}
13678_ACEOF
13679rm -f conftest.$ac_objext conftest$ac_exeext
13680if { (ac_try="$ac_link"
13681case "(($ac_try" in
13682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683  *) ac_try_echo=$ac_try;;
13684esac
13685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13686$as_echo "$ac_try_echo") >&5
13687  (eval "$ac_link") 2>conftest.er1
13688  ac_status=$?
13689  grep -v '^ *+' conftest.er1 >conftest.err
13690  rm -f conftest.er1
13691  cat conftest.err >&5
13692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693  (exit $ac_status); } && {
13694	 test -z "$ac_c_werror_flag" ||
13695	 test ! -s conftest.err
13696       } && test -s conftest$ac_exeext && {
13697	 test "$cross_compiling" = yes ||
13698	 $as_test_x conftest$ac_exeext
13699       }; then
13700  ac_cv_lib_dl_dlopen=yes
13701else
13702  $as_echo "$as_me: failed program was:" >&5
13703sed 's/^/| /' conftest.$ac_ext >&5
13704
13705	ac_cv_lib_dl_dlopen=no
13706fi
13707
13708rm -rf conftest.dSYM
13709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13710      conftest$ac_exeext conftest.$ac_ext
13711LIBS=$ac_check_lib_save_LIBS
13712fi
13713{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13714$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13715if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13716  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13717else
13718
13719    lt_cv_dlopen="dyld"
13720    lt_cv_dlopen_libs=
13721    lt_cv_dlopen_self=yes
13722
13723fi
13724
13725    ;;
13726
13727  *)
13728    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
13729$as_echo_n "checking for shl_load... " >&6; }
13730if test "${ac_cv_func_shl_load+set}" = set; then
13731  $as_echo_n "(cached) " >&6
13732else
13733  cat >conftest.$ac_ext <<_ACEOF
13734/* confdefs.h.  */
13735_ACEOF
13736cat confdefs.h >>conftest.$ac_ext
13737cat >>conftest.$ac_ext <<_ACEOF
13738/* end confdefs.h.  */
13739/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13740   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13741#define shl_load innocuous_shl_load
13742
13743/* System header to define __stub macros and hopefully few prototypes,
13744    which can conflict with char shl_load (); below.
13745    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13746    <limits.h> exists even on freestanding compilers.  */
13747
13748#ifdef __STDC__
13749# include <limits.h>
13750#else
13751# include <assert.h>
13752#endif
13753
13754#undef shl_load
13755
13756/* Override any GCC internal prototype to avoid an error.
13757   Use char because int might match the return type of a GCC
13758   builtin and then its argument prototype would still apply.  */
13759#ifdef __cplusplus
13760extern "C"
13761#endif
13762char shl_load ();
13763/* The GNU C library defines this for functions which it implements
13764    to always fail with ENOSYS.  Some functions are actually named
13765    something starting with __ and the normal name is an alias.  */
13766#if defined __stub_shl_load || defined __stub___shl_load
13767choke me
13768#endif
13769
13770int
13771main ()
13772{
13773return shl_load ();
13774  ;
13775  return 0;
13776}
13777_ACEOF
13778rm -f conftest.$ac_objext conftest$ac_exeext
13779if { (ac_try="$ac_link"
13780case "(($ac_try" in
13781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782  *) ac_try_echo=$ac_try;;
13783esac
13784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13785$as_echo "$ac_try_echo") >&5
13786  (eval "$ac_link") 2>conftest.er1
13787  ac_status=$?
13788  grep -v '^ *+' conftest.er1 >conftest.err
13789  rm -f conftest.er1
13790  cat conftest.err >&5
13791  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792  (exit $ac_status); } && {
13793	 test -z "$ac_c_werror_flag" ||
13794	 test ! -s conftest.err
13795       } && test -s conftest$ac_exeext && {
13796	 test "$cross_compiling" = yes ||
13797	 $as_test_x conftest$ac_exeext
13798       }; then
13799  ac_cv_func_shl_load=yes
13800else
13801  $as_echo "$as_me: failed program was:" >&5
13802sed 's/^/| /' conftest.$ac_ext >&5
13803
13804	ac_cv_func_shl_load=no
13805fi
13806
13807rm -rf conftest.dSYM
13808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13809      conftest$ac_exeext conftest.$ac_ext
13810fi
13811{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13812$as_echo "$ac_cv_func_shl_load" >&6; }
13813if test "x$ac_cv_func_shl_load" = x""yes; then
13814  lt_cv_dlopen="shl_load"
13815else
13816  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13817$as_echo_n "checking for shl_load in -ldld... " >&6; }
13818if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13819  $as_echo_n "(cached) " >&6
13820else
13821  ac_check_lib_save_LIBS=$LIBS
13822LIBS="-ldld  $LIBS"
13823cat >conftest.$ac_ext <<_ACEOF
13824/* confdefs.h.  */
13825_ACEOF
13826cat confdefs.h >>conftest.$ac_ext
13827cat >>conftest.$ac_ext <<_ACEOF
13828/* end confdefs.h.  */
13829
13830/* Override any GCC internal prototype to avoid an error.
13831   Use char because int might match the return type of a GCC
13832   builtin and then its argument prototype would still apply.  */
13833#ifdef __cplusplus
13834extern "C"
13835#endif
13836char shl_load ();
13837int
13838main ()
13839{
13840return shl_load ();
13841  ;
13842  return 0;
13843}
13844_ACEOF
13845rm -f conftest.$ac_objext conftest$ac_exeext
13846if { (ac_try="$ac_link"
13847case "(($ac_try" in
13848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849  *) ac_try_echo=$ac_try;;
13850esac
13851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13852$as_echo "$ac_try_echo") >&5
13853  (eval "$ac_link") 2>conftest.er1
13854  ac_status=$?
13855  grep -v '^ *+' conftest.er1 >conftest.err
13856  rm -f conftest.er1
13857  cat conftest.err >&5
13858  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859  (exit $ac_status); } && {
13860	 test -z "$ac_c_werror_flag" ||
13861	 test ! -s conftest.err
13862       } && test -s conftest$ac_exeext && {
13863	 test "$cross_compiling" = yes ||
13864	 $as_test_x conftest$ac_exeext
13865       }; then
13866  ac_cv_lib_dld_shl_load=yes
13867else
13868  $as_echo "$as_me: failed program was:" >&5
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
13871	ac_cv_lib_dld_shl_load=no
13872fi
13873
13874rm -rf conftest.dSYM
13875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13876      conftest$ac_exeext conftest.$ac_ext
13877LIBS=$ac_check_lib_save_LIBS
13878fi
13879{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13880$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13881if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
13882  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13883else
13884  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13885$as_echo_n "checking for dlopen... " >&6; }
13886if test "${ac_cv_func_dlopen+set}" = set; then
13887  $as_echo_n "(cached) " >&6
13888else
13889  cat >conftest.$ac_ext <<_ACEOF
13890/* confdefs.h.  */
13891_ACEOF
13892cat confdefs.h >>conftest.$ac_ext
13893cat >>conftest.$ac_ext <<_ACEOF
13894/* end confdefs.h.  */
13895/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13896   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13897#define dlopen innocuous_dlopen
13898
13899/* System header to define __stub macros and hopefully few prototypes,
13900    which can conflict with char dlopen (); below.
13901    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13902    <limits.h> exists even on freestanding compilers.  */
13903
13904#ifdef __STDC__
13905# include <limits.h>
13906#else
13907# include <assert.h>
13908#endif
13909
13910#undef dlopen
13911
13912/* Override any GCC internal prototype to avoid an error.
13913   Use char because int might match the return type of a GCC
13914   builtin and then its argument prototype would still apply.  */
13915#ifdef __cplusplus
13916extern "C"
13917#endif
13918char dlopen ();
13919/* The GNU C library defines this for functions which it implements
13920    to always fail with ENOSYS.  Some functions are actually named
13921    something starting with __ and the normal name is an alias.  */
13922#if defined __stub_dlopen || defined __stub___dlopen
13923choke me
13924#endif
13925
13926int
13927main ()
13928{
13929return dlopen ();
13930  ;
13931  return 0;
13932}
13933_ACEOF
13934rm -f conftest.$ac_objext conftest$ac_exeext
13935if { (ac_try="$ac_link"
13936case "(($ac_try" in
13937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938  *) ac_try_echo=$ac_try;;
13939esac
13940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13941$as_echo "$ac_try_echo") >&5
13942  (eval "$ac_link") 2>conftest.er1
13943  ac_status=$?
13944  grep -v '^ *+' conftest.er1 >conftest.err
13945  rm -f conftest.er1
13946  cat conftest.err >&5
13947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948  (exit $ac_status); } && {
13949	 test -z "$ac_c_werror_flag" ||
13950	 test ! -s conftest.err
13951       } && test -s conftest$ac_exeext && {
13952	 test "$cross_compiling" = yes ||
13953	 $as_test_x conftest$ac_exeext
13954       }; then
13955  ac_cv_func_dlopen=yes
13956else
13957  $as_echo "$as_me: failed program was:" >&5
13958sed 's/^/| /' conftest.$ac_ext >&5
13959
13960	ac_cv_func_dlopen=no
13961fi
13962
13963rm -rf conftest.dSYM
13964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13965      conftest$ac_exeext conftest.$ac_ext
13966fi
13967{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13968$as_echo "$ac_cv_func_dlopen" >&6; }
13969if test "x$ac_cv_func_dlopen" = x""yes; then
13970  lt_cv_dlopen="dlopen"
13971else
13972  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13973$as_echo_n "checking for dlopen in -ldl... " >&6; }
13974if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13975  $as_echo_n "(cached) " >&6
13976else
13977  ac_check_lib_save_LIBS=$LIBS
13978LIBS="-ldl  $LIBS"
13979cat >conftest.$ac_ext <<_ACEOF
13980/* confdefs.h.  */
13981_ACEOF
13982cat confdefs.h >>conftest.$ac_ext
13983cat >>conftest.$ac_ext <<_ACEOF
13984/* end confdefs.h.  */
13985
13986/* Override any GCC internal prototype to avoid an error.
13987   Use char because int might match the return type of a GCC
13988   builtin and then its argument prototype would still apply.  */
13989#ifdef __cplusplus
13990extern "C"
13991#endif
13992char dlopen ();
13993int
13994main ()
13995{
13996return dlopen ();
13997  ;
13998  return 0;
13999}
14000_ACEOF
14001rm -f conftest.$ac_objext conftest$ac_exeext
14002if { (ac_try="$ac_link"
14003case "(($ac_try" in
14004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005  *) ac_try_echo=$ac_try;;
14006esac
14007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14008$as_echo "$ac_try_echo") >&5
14009  (eval "$ac_link") 2>conftest.er1
14010  ac_status=$?
14011  grep -v '^ *+' conftest.er1 >conftest.err
14012  rm -f conftest.er1
14013  cat conftest.err >&5
14014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015  (exit $ac_status); } && {
14016	 test -z "$ac_c_werror_flag" ||
14017	 test ! -s conftest.err
14018       } && test -s conftest$ac_exeext && {
14019	 test "$cross_compiling" = yes ||
14020	 $as_test_x conftest$ac_exeext
14021       }; then
14022  ac_cv_lib_dl_dlopen=yes
14023else
14024  $as_echo "$as_me: failed program was:" >&5
14025sed 's/^/| /' conftest.$ac_ext >&5
14026
14027	ac_cv_lib_dl_dlopen=no
14028fi
14029
14030rm -rf conftest.dSYM
14031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14032      conftest$ac_exeext conftest.$ac_ext
14033LIBS=$ac_check_lib_save_LIBS
14034fi
14035{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14036$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14037if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14038  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14039else
14040  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14041$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14042if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14043  $as_echo_n "(cached) " >&6
14044else
14045  ac_check_lib_save_LIBS=$LIBS
14046LIBS="-lsvld  $LIBS"
14047cat >conftest.$ac_ext <<_ACEOF
14048/* confdefs.h.  */
14049_ACEOF
14050cat confdefs.h >>conftest.$ac_ext
14051cat >>conftest.$ac_ext <<_ACEOF
14052/* end confdefs.h.  */
14053
14054/* Override any GCC internal prototype to avoid an error.
14055   Use char because int might match the return type of a GCC
14056   builtin and then its argument prototype would still apply.  */
14057#ifdef __cplusplus
14058extern "C"
14059#endif
14060char dlopen ();
14061int
14062main ()
14063{
14064return dlopen ();
14065  ;
14066  return 0;
14067}
14068_ACEOF
14069rm -f conftest.$ac_objext conftest$ac_exeext
14070if { (ac_try="$ac_link"
14071case "(($ac_try" in
14072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073  *) ac_try_echo=$ac_try;;
14074esac
14075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14076$as_echo "$ac_try_echo") >&5
14077  (eval "$ac_link") 2>conftest.er1
14078  ac_status=$?
14079  grep -v '^ *+' conftest.er1 >conftest.err
14080  rm -f conftest.er1
14081  cat conftest.err >&5
14082  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083  (exit $ac_status); } && {
14084	 test -z "$ac_c_werror_flag" ||
14085	 test ! -s conftest.err
14086       } && test -s conftest$ac_exeext && {
14087	 test "$cross_compiling" = yes ||
14088	 $as_test_x conftest$ac_exeext
14089       }; then
14090  ac_cv_lib_svld_dlopen=yes
14091else
14092  $as_echo "$as_me: failed program was:" >&5
14093sed 's/^/| /' conftest.$ac_ext >&5
14094
14095	ac_cv_lib_svld_dlopen=no
14096fi
14097
14098rm -rf conftest.dSYM
14099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14100      conftest$ac_exeext conftest.$ac_ext
14101LIBS=$ac_check_lib_save_LIBS
14102fi
14103{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14104$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14105if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
14106  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14107else
14108  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14109$as_echo_n "checking for dld_link in -ldld... " >&6; }
14110if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14111  $as_echo_n "(cached) " >&6
14112else
14113  ac_check_lib_save_LIBS=$LIBS
14114LIBS="-ldld  $LIBS"
14115cat >conftest.$ac_ext <<_ACEOF
14116/* confdefs.h.  */
14117_ACEOF
14118cat confdefs.h >>conftest.$ac_ext
14119cat >>conftest.$ac_ext <<_ACEOF
14120/* end confdefs.h.  */
14121
14122/* Override any GCC internal prototype to avoid an error.
14123   Use char because int might match the return type of a GCC
14124   builtin and then its argument prototype would still apply.  */
14125#ifdef __cplusplus
14126extern "C"
14127#endif
14128char dld_link ();
14129int
14130main ()
14131{
14132return dld_link ();
14133  ;
14134  return 0;
14135}
14136_ACEOF
14137rm -f conftest.$ac_objext conftest$ac_exeext
14138if { (ac_try="$ac_link"
14139case "(($ac_try" in
14140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141  *) ac_try_echo=$ac_try;;
14142esac
14143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14144$as_echo "$ac_try_echo") >&5
14145  (eval "$ac_link") 2>conftest.er1
14146  ac_status=$?
14147  grep -v '^ *+' conftest.er1 >conftest.err
14148  rm -f conftest.er1
14149  cat conftest.err >&5
14150  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151  (exit $ac_status); } && {
14152	 test -z "$ac_c_werror_flag" ||
14153	 test ! -s conftest.err
14154       } && test -s conftest$ac_exeext && {
14155	 test "$cross_compiling" = yes ||
14156	 $as_test_x conftest$ac_exeext
14157       }; then
14158  ac_cv_lib_dld_dld_link=yes
14159else
14160  $as_echo "$as_me: failed program was:" >&5
14161sed 's/^/| /' conftest.$ac_ext >&5
14162
14163	ac_cv_lib_dld_dld_link=no
14164fi
14165
14166rm -rf conftest.dSYM
14167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14168      conftest$ac_exeext conftest.$ac_ext
14169LIBS=$ac_check_lib_save_LIBS
14170fi
14171{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14172$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14173if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
14174  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14175fi
14176
14177
14178fi
14179
14180
14181fi
14182
14183
14184fi
14185
14186
14187fi
14188
14189
14190fi
14191
14192    ;;
14193  esac
14194
14195  if test "x$lt_cv_dlopen" != xno; then
14196    enable_dlopen=yes
14197  else
14198    enable_dlopen=no
14199  fi
14200
14201  case $lt_cv_dlopen in
14202  dlopen)
14203    save_CPPFLAGS="$CPPFLAGS"
14204    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14205
14206    save_LDFLAGS="$LDFLAGS"
14207    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14208
14209    save_LIBS="$LIBS"
14210    LIBS="$lt_cv_dlopen_libs $LIBS"
14211
14212    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14213$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14214if test "${lt_cv_dlopen_self+set}" = set; then
14215  $as_echo_n "(cached) " >&6
14216else
14217  	  if test "$cross_compiling" = yes; then :
14218  lt_cv_dlopen_self=cross
14219else
14220  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14221  lt_status=$lt_dlunknown
14222  cat > conftest.$ac_ext <<_LT_EOF
14223#line 14223 "configure"
14224#include "confdefs.h"
14225
14226#if HAVE_DLFCN_H
14227#include <dlfcn.h>
14228#endif
14229
14230#include <stdio.h>
14231
14232#ifdef RTLD_GLOBAL
14233#  define LT_DLGLOBAL		RTLD_GLOBAL
14234#else
14235#  ifdef DL_GLOBAL
14236#    define LT_DLGLOBAL		DL_GLOBAL
14237#  else
14238#    define LT_DLGLOBAL		0
14239#  endif
14240#endif
14241
14242/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14243   find out it does not work in some platform. */
14244#ifndef LT_DLLAZY_OR_NOW
14245#  ifdef RTLD_LAZY
14246#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14247#  else
14248#    ifdef DL_LAZY
14249#      define LT_DLLAZY_OR_NOW		DL_LAZY
14250#    else
14251#      ifdef RTLD_NOW
14252#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14253#      else
14254#        ifdef DL_NOW
14255#          define LT_DLLAZY_OR_NOW	DL_NOW
14256#        else
14257#          define LT_DLLAZY_OR_NOW	0
14258#        endif
14259#      endif
14260#    endif
14261#  endif
14262#endif
14263
14264void fnord() { int i=42;}
14265int main ()
14266{
14267  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14268  int status = $lt_dlunknown;
14269
14270  if (self)
14271    {
14272      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14273      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14274      /* dlclose (self); */
14275    }
14276  else
14277    puts (dlerror ());
14278
14279  return status;
14280}
14281_LT_EOF
14282  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14283  (eval $ac_link) 2>&5
14284  ac_status=$?
14285  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14287    (./conftest; exit; ) >&5 2>/dev/null
14288    lt_status=$?
14289    case x$lt_status in
14290      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14291      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14292      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14293    esac
14294  else :
14295    # compilation failed
14296    lt_cv_dlopen_self=no
14297  fi
14298fi
14299rm -fr conftest*
14300
14301
14302fi
14303{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14304$as_echo "$lt_cv_dlopen_self" >&6; }
14305
14306    if test "x$lt_cv_dlopen_self" = xyes; then
14307      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14308      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14309$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14310if test "${lt_cv_dlopen_self_static+set}" = set; then
14311  $as_echo_n "(cached) " >&6
14312else
14313  	  if test "$cross_compiling" = yes; then :
14314  lt_cv_dlopen_self_static=cross
14315else
14316  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14317  lt_status=$lt_dlunknown
14318  cat > conftest.$ac_ext <<_LT_EOF
14319#line 14319 "configure"
14320#include "confdefs.h"
14321
14322#if HAVE_DLFCN_H
14323#include <dlfcn.h>
14324#endif
14325
14326#include <stdio.h>
14327
14328#ifdef RTLD_GLOBAL
14329#  define LT_DLGLOBAL		RTLD_GLOBAL
14330#else
14331#  ifdef DL_GLOBAL
14332#    define LT_DLGLOBAL		DL_GLOBAL
14333#  else
14334#    define LT_DLGLOBAL		0
14335#  endif
14336#endif
14337
14338/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14339   find out it does not work in some platform. */
14340#ifndef LT_DLLAZY_OR_NOW
14341#  ifdef RTLD_LAZY
14342#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14343#  else
14344#    ifdef DL_LAZY
14345#      define LT_DLLAZY_OR_NOW		DL_LAZY
14346#    else
14347#      ifdef RTLD_NOW
14348#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14349#      else
14350#        ifdef DL_NOW
14351#          define LT_DLLAZY_OR_NOW	DL_NOW
14352#        else
14353#          define LT_DLLAZY_OR_NOW	0
14354#        endif
14355#      endif
14356#    endif
14357#  endif
14358#endif
14359
14360void fnord() { int i=42;}
14361int main ()
14362{
14363  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14364  int status = $lt_dlunknown;
14365
14366  if (self)
14367    {
14368      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14369      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14370      /* dlclose (self); */
14371    }
14372  else
14373    puts (dlerror ());
14374
14375  return status;
14376}
14377_LT_EOF
14378  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14379  (eval $ac_link) 2>&5
14380  ac_status=$?
14381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14383    (./conftest; exit; ) >&5 2>/dev/null
14384    lt_status=$?
14385    case x$lt_status in
14386      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14387      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14388      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14389    esac
14390  else :
14391    # compilation failed
14392    lt_cv_dlopen_self_static=no
14393  fi
14394fi
14395rm -fr conftest*
14396
14397
14398fi
14399{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14400$as_echo "$lt_cv_dlopen_self_static" >&6; }
14401    fi
14402
14403    CPPFLAGS="$save_CPPFLAGS"
14404    LDFLAGS="$save_LDFLAGS"
14405    LIBS="$save_LIBS"
14406    ;;
14407  esac
14408
14409  case $lt_cv_dlopen_self in
14410  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14411  *) enable_dlopen_self=unknown ;;
14412  esac
14413
14414  case $lt_cv_dlopen_self_static in
14415  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14416  *) enable_dlopen_self_static=unknown ;;
14417  esac
14418fi
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436striplib=
14437old_striplib=
14438{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14439$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14440if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14441  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14442  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14443  { $as_echo "$as_me:$LINENO: result: yes" >&5
14444$as_echo "yes" >&6; }
14445else
14446# FIXME - insert some real tests, host_os isn't really good enough
14447  case $host_os in
14448  darwin*)
14449    if test -n "$STRIP" ; then
14450      striplib="$STRIP -x"
14451      old_striplib="$STRIP -S"
14452      { $as_echo "$as_me:$LINENO: result: yes" >&5
14453$as_echo "yes" >&6; }
14454    else
14455      { $as_echo "$as_me:$LINENO: result: no" >&5
14456$as_echo "no" >&6; }
14457    fi
14458    ;;
14459  *)
14460    { $as_echo "$as_me:$LINENO: result: no" >&5
14461$as_echo "no" >&6; }
14462    ;;
14463  esac
14464fi
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477  # Report which library types will actually be built
14478  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14479$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14480  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14481$as_echo "$can_build_shared" >&6; }
14482
14483  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14484$as_echo_n "checking whether to build shared libraries... " >&6; }
14485  test "$can_build_shared" = "no" && enable_shared=no
14486
14487  # On AIX, shared libraries and static libraries use the same namespace, and
14488  # are all built from PIC.
14489  case $host_os in
14490  aix3*)
14491    test "$enable_shared" = yes && enable_static=no
14492    if test -n "$RANLIB"; then
14493      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14494      postinstall_cmds='$RANLIB $lib'
14495    fi
14496    ;;
14497
14498  aix[4-9]*)
14499    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14500      test "$enable_shared" = yes && enable_static=no
14501    fi
14502    ;;
14503  esac
14504  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14505$as_echo "$enable_shared" >&6; }
14506
14507  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14508$as_echo_n "checking whether to build static libraries... " >&6; }
14509  # Make sure either enable_shared or enable_static is yes.
14510  test "$enable_shared" = yes || enable_static=yes
14511  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14512$as_echo "$enable_static" >&6; }
14513
14514
14515
14516
14517fi
14518ac_ext=c
14519ac_cpp='$CPP $CPPFLAGS'
14520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14522ac_compiler_gnu=$ac_cv_c_compiler_gnu
14523
14524CC="$lt_save_CC"
14525
14526
14527ac_ext=cpp
14528ac_cpp='$CXXCPP $CPPFLAGS'
14529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14532
14533archive_cmds_need_lc_CXX=no
14534allow_undefined_flag_CXX=
14535always_export_symbols_CXX=no
14536archive_expsym_cmds_CXX=
14537compiler_needs_object_CXX=no
14538export_dynamic_flag_spec_CXX=
14539hardcode_direct_CXX=no
14540hardcode_direct_absolute_CXX=no
14541hardcode_libdir_flag_spec_CXX=
14542hardcode_libdir_flag_spec_ld_CXX=
14543hardcode_libdir_separator_CXX=
14544hardcode_minus_L_CXX=no
14545hardcode_shlibpath_var_CXX=unsupported
14546hardcode_automatic_CXX=no
14547inherit_rpath_CXX=no
14548module_cmds_CXX=
14549module_expsym_cmds_CXX=
14550link_all_deplibs_CXX=unknown
14551old_archive_cmds_CXX=$old_archive_cmds
14552no_undefined_flag_CXX=
14553whole_archive_flag_spec_CXX=
14554enable_shared_with_static_runtimes_CXX=no
14555
14556# Source file extension for C++ test sources.
14557ac_ext=cpp
14558
14559# Object file extension for compiled C++ test sources.
14560objext=o
14561objext_CXX=$objext
14562
14563# No sense in running all these tests if we already determined that
14564# the CXX compiler isn't working.  Some variables (like enable_shared)
14565# are currently assumed to apply to all compilers on this platform,
14566# and will be corrupted by setting them based on a non-working compiler.
14567if test "$_lt_caught_CXX_error" != yes; then
14568  # Code to be used in simple compile tests
14569  lt_simple_compile_test_code="int some_variable = 0;"
14570
14571  # Code to be used in simple link tests
14572  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14573
14574  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14575
14576
14577
14578
14579
14580
14581# If no C compiler was specified, use CC.
14582LTCC=${LTCC-"$CC"}
14583
14584# If no C compiler flags were specified, use CFLAGS.
14585LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14586
14587# Allow CC to be a program name with arguments.
14588compiler=$CC
14589
14590
14591  # save warnings/boilerplate of simple test code
14592  ac_outfile=conftest.$ac_objext
14593echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14594eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14595_lt_compiler_boilerplate=`cat conftest.err`
14596$RM conftest*
14597
14598  ac_outfile=conftest.$ac_objext
14599echo "$lt_simple_link_test_code" >conftest.$ac_ext
14600eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14601_lt_linker_boilerplate=`cat conftest.err`
14602$RM -r conftest*
14603
14604
14605  # Allow CC to be a program name with arguments.
14606  lt_save_CC=$CC
14607  lt_save_LD=$LD
14608  lt_save_GCC=$GCC
14609  GCC=$GXX
14610  lt_save_with_gnu_ld=$with_gnu_ld
14611  lt_save_path_LD=$lt_cv_path_LD
14612  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14613    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14614  else
14615    $as_unset lt_cv_prog_gnu_ld
14616  fi
14617  if test -n "${lt_cv_path_LDCXX+set}"; then
14618    lt_cv_path_LD=$lt_cv_path_LDCXX
14619  else
14620    $as_unset lt_cv_path_LD
14621  fi
14622  test -z "${LDCXX+set}" || LD=$LDCXX
14623  CC=${CXX-"c++"}
14624  compiler=$CC
14625  compiler_CXX=$CC
14626  for cc_temp in $compiler""; do
14627  case $cc_temp in
14628    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14629    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14630    \-*) ;;
14631    *) break;;
14632  esac
14633done
14634cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14635
14636
14637  if test -n "$compiler"; then
14638    # We don't want -fno-exception when compiling C++ code, so set the
14639    # no_builtin_flag separately
14640    if test "$GXX" = yes; then
14641      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14642    else
14643      lt_prog_compiler_no_builtin_flag_CXX=
14644    fi
14645
14646    if test "$GXX" = yes; then
14647      # Set up default GNU C++ configuration
14648
14649
14650
14651# Check whether --with-gnu-ld was given.
14652if test "${with_gnu_ld+set}" = set; then
14653  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14654else
14655  with_gnu_ld=no
14656fi
14657
14658ac_prog=ld
14659if test "$GCC" = yes; then
14660  # Check if gcc -print-prog-name=ld gives a path.
14661  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14662$as_echo_n "checking for ld used by $CC... " >&6; }
14663  case $host in
14664  *-*-mingw*)
14665    # gcc leaves a trailing carriage return which upsets mingw
14666    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14667  *)
14668    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14669  esac
14670  case $ac_prog in
14671    # Accept absolute paths.
14672    [\\/]* | ?:[\\/]*)
14673      re_direlt='/[^/][^/]*/\.\./'
14674      # Canonicalize the pathname of ld
14675      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14676      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14677	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14678      done
14679      test -z "$LD" && LD="$ac_prog"
14680      ;;
14681  "")
14682    # If it fails, then pretend we aren't using GCC.
14683    ac_prog=ld
14684    ;;
14685  *)
14686    # If it is relative, then search for the first ld in PATH.
14687    with_gnu_ld=unknown
14688    ;;
14689  esac
14690elif test "$with_gnu_ld" = yes; then
14691  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
14692$as_echo_n "checking for GNU ld... " >&6; }
14693else
14694  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14695$as_echo_n "checking for non-GNU ld... " >&6; }
14696fi
14697if test "${lt_cv_path_LD+set}" = set; then
14698  $as_echo_n "(cached) " >&6
14699else
14700  if test -z "$LD"; then
14701  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14702  for ac_dir in $PATH; do
14703    IFS="$lt_save_ifs"
14704    test -z "$ac_dir" && ac_dir=.
14705    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14706      lt_cv_path_LD="$ac_dir/$ac_prog"
14707      # Check to see if the program is GNU ld.  I'd rather use --version,
14708      # but apparently some variants of GNU ld only accept -v.
14709      # Break only if it was the GNU/non-GNU ld that we prefer.
14710      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14711      *GNU* | *'with BFD'*)
14712	test "$with_gnu_ld" != no && break
14713	;;
14714      *)
14715	test "$with_gnu_ld" != yes && break
14716	;;
14717      esac
14718    fi
14719  done
14720  IFS="$lt_save_ifs"
14721else
14722  lt_cv_path_LD="$LD" # Let the user override the test with a path.
14723fi
14724fi
14725
14726LD="$lt_cv_path_LD"
14727if test -n "$LD"; then
14728  { $as_echo "$as_me:$LINENO: result: $LD" >&5
14729$as_echo "$LD" >&6; }
14730else
14731  { $as_echo "$as_me:$LINENO: result: no" >&5
14732$as_echo "no" >&6; }
14733fi
14734test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14735$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14736   { (exit 1); exit 1; }; }
14737{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14738$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14739if test "${lt_cv_prog_gnu_ld+set}" = set; then
14740  $as_echo_n "(cached) " >&6
14741else
14742  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14743case `$LD -v 2>&1 </dev/null` in
14744*GNU* | *'with BFD'*)
14745  lt_cv_prog_gnu_ld=yes
14746  ;;
14747*)
14748  lt_cv_prog_gnu_ld=no
14749  ;;
14750esac
14751fi
14752{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14753$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14754with_gnu_ld=$lt_cv_prog_gnu_ld
14755
14756
14757
14758
14759
14760
14761
14762      # Check if GNU C++ uses GNU ld as the underlying linker, since the
14763      # archiving commands below assume that GNU ld is being used.
14764      if test "$with_gnu_ld" = yes; then
14765        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14766        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'
14767
14768        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14769        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14770
14771        # If archive_cmds runs LD, not CC, wlarc should be empty
14772        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14773        #     investigate it a little bit more. (MM)
14774        wlarc='${wl}'
14775
14776        # ancient GNU ld didn't support --whole-archive et. al.
14777        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14778	  $GREP 'no-whole-archive' > /dev/null; then
14779          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14780        else
14781          whole_archive_flag_spec_CXX=
14782        fi
14783      else
14784        with_gnu_ld=no
14785        wlarc=
14786
14787        # A generic and very simple default shared library creation
14788        # command for GNU C++ for the case where it uses the native
14789        # linker, instead of GNU ld.  If possible, this setting should
14790        # overridden to take advantage of the native linker features on
14791        # the platform it is being used on.
14792        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14793      fi
14794
14795      # Commands to make compiler produce verbose output that lists
14796      # what "hidden" libraries, object files and flags are used when
14797      # linking a shared library.
14798      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14799
14800    else
14801      GXX=no
14802      with_gnu_ld=no
14803      wlarc=
14804    fi
14805
14806    # PORTME: fill in a description of your system's C++ link characteristics
14807    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14808$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14809    ld_shlibs_CXX=yes
14810    case $host_os in
14811      aix3*)
14812        # FIXME: insert proper C++ library support
14813        ld_shlibs_CXX=no
14814        ;;
14815      aix[4-9]*)
14816        if test "$host_cpu" = ia64; then
14817          # On IA64, the linker does run time linking by default, so we don't
14818          # have to do anything special.
14819          aix_use_runtimelinking=no
14820          exp_sym_flag='-Bexport'
14821          no_entry_flag=""
14822        else
14823          aix_use_runtimelinking=no
14824
14825          # Test if we are trying to use run time linking or normal
14826          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14827          # need to do runtime linking.
14828          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14829	    for ld_flag in $LDFLAGS; do
14830	      case $ld_flag in
14831	      *-brtl*)
14832	        aix_use_runtimelinking=yes
14833	        break
14834	        ;;
14835	      esac
14836	    done
14837	    ;;
14838          esac
14839
14840          exp_sym_flag='-bexport'
14841          no_entry_flag='-bnoentry'
14842        fi
14843
14844        # When large executables or shared objects are built, AIX ld can
14845        # have problems creating the table of contents.  If linking a library
14846        # or program results in "error TOC overflow" add -mminimal-toc to
14847        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14848        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14849
14850        archive_cmds_CXX=''
14851        hardcode_direct_CXX=yes
14852        hardcode_direct_absolute_CXX=yes
14853        hardcode_libdir_separator_CXX=':'
14854        link_all_deplibs_CXX=yes
14855        file_list_spec_CXX='${wl}-f,'
14856
14857        if test "$GXX" = yes; then
14858          case $host_os in aix4.[012]|aix4.[012].*)
14859          # We only want to do this on AIX 4.2 and lower, the check
14860          # below for broken collect2 doesn't work under 4.3+
14861	  collect2name=`${CC} -print-prog-name=collect2`
14862	  if test -f "$collect2name" &&
14863	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14864	  then
14865	    # We have reworked collect2
14866	    :
14867	  else
14868	    # We have old collect2
14869	    hardcode_direct_CXX=unsupported
14870	    # It fails to find uninstalled libraries when the uninstalled
14871	    # path is not listed in the libpath.  Setting hardcode_minus_L
14872	    # to unsupported forces relinking
14873	    hardcode_minus_L_CXX=yes
14874	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14875	    hardcode_libdir_separator_CXX=
14876	  fi
14877          esac
14878          shared_flag='-shared'
14879	  if test "$aix_use_runtimelinking" = yes; then
14880	    shared_flag="$shared_flag "'${wl}-G'
14881	  fi
14882        else
14883          # not using gcc
14884          if test "$host_cpu" = ia64; then
14885	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14886	  # chokes on -Wl,-G. The following line is correct:
14887	  shared_flag='-G'
14888          else
14889	    if test "$aix_use_runtimelinking" = yes; then
14890	      shared_flag='${wl}-G'
14891	    else
14892	      shared_flag='${wl}-bM:SRE'
14893	    fi
14894          fi
14895        fi
14896
14897        export_dynamic_flag_spec_CXX='${wl}-bexpall'
14898        # It seems that -bexpall does not export symbols beginning with
14899        # underscore (_), so it is better to generate a list of symbols to
14900	# export.
14901        always_export_symbols_CXX=yes
14902        if test "$aix_use_runtimelinking" = yes; then
14903          # Warning - without using the other runtime loading flags (-brtl),
14904          # -berok will link without error, but may produce a broken library.
14905          allow_undefined_flag_CXX='-berok'
14906          # Determine the default libpath from the value encoded in an empty
14907          # executable.
14908          cat >conftest.$ac_ext <<_ACEOF
14909/* confdefs.h.  */
14910_ACEOF
14911cat confdefs.h >>conftest.$ac_ext
14912cat >>conftest.$ac_ext <<_ACEOF
14913/* end confdefs.h.  */
14914
14915int
14916main ()
14917{
14918
14919  ;
14920  return 0;
14921}
14922_ACEOF
14923rm -f conftest.$ac_objext conftest$ac_exeext
14924if { (ac_try="$ac_link"
14925case "(($ac_try" in
14926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927  *) ac_try_echo=$ac_try;;
14928esac
14929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14930$as_echo "$ac_try_echo") >&5
14931  (eval "$ac_link") 2>conftest.er1
14932  ac_status=$?
14933  grep -v '^ *+' conftest.er1 >conftest.err
14934  rm -f conftest.er1
14935  cat conftest.err >&5
14936  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937  (exit $ac_status); } && {
14938	 test -z "$ac_cxx_werror_flag" ||
14939	 test ! -s conftest.err
14940       } && test -s conftest$ac_exeext && {
14941	 test "$cross_compiling" = yes ||
14942	 $as_test_x conftest$ac_exeext
14943       }; then
14944
14945lt_aix_libpath_sed='
14946    /Import File Strings/,/^$/ {
14947	/^0/ {
14948	    s/^0  *\(.*\)$/\1/
14949	    p
14950	}
14951    }'
14952aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14953# Check for a 64-bit object if we didn't find anything.
14954if test -z "$aix_libpath"; then
14955  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14956fi
14957else
14958  $as_echo "$as_me: failed program was:" >&5
14959sed 's/^/| /' conftest.$ac_ext >&5
14960
14961
14962fi
14963
14964rm -rf conftest.dSYM
14965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14966      conftest$ac_exeext conftest.$ac_ext
14967if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14968
14969          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14970
14971          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"
14972        else
14973          if test "$host_cpu" = ia64; then
14974	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14975	    allow_undefined_flag_CXX="-z nodefs"
14976	    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"
14977          else
14978	    # Determine the default libpath from the value encoded in an
14979	    # empty executable.
14980	    cat >conftest.$ac_ext <<_ACEOF
14981/* confdefs.h.  */
14982_ACEOF
14983cat confdefs.h >>conftest.$ac_ext
14984cat >>conftest.$ac_ext <<_ACEOF
14985/* end confdefs.h.  */
14986
14987int
14988main ()
14989{
14990
14991  ;
14992  return 0;
14993}
14994_ACEOF
14995rm -f conftest.$ac_objext conftest$ac_exeext
14996if { (ac_try="$ac_link"
14997case "(($ac_try" in
14998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999  *) ac_try_echo=$ac_try;;
15000esac
15001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15002$as_echo "$ac_try_echo") >&5
15003  (eval "$ac_link") 2>conftest.er1
15004  ac_status=$?
15005  grep -v '^ *+' conftest.er1 >conftest.err
15006  rm -f conftest.er1
15007  cat conftest.err >&5
15008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009  (exit $ac_status); } && {
15010	 test -z "$ac_cxx_werror_flag" ||
15011	 test ! -s conftest.err
15012       } && test -s conftest$ac_exeext && {
15013	 test "$cross_compiling" = yes ||
15014	 $as_test_x conftest$ac_exeext
15015       }; then
15016
15017lt_aix_libpath_sed='
15018    /Import File Strings/,/^$/ {
15019	/^0/ {
15020	    s/^0  *\(.*\)$/\1/
15021	    p
15022	}
15023    }'
15024aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15025# Check for a 64-bit object if we didn't find anything.
15026if test -z "$aix_libpath"; then
15027  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15028fi
15029else
15030  $as_echo "$as_me: failed program was:" >&5
15031sed 's/^/| /' conftest.$ac_ext >&5
15032
15033
15034fi
15035
15036rm -rf conftest.dSYM
15037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15038      conftest$ac_exeext conftest.$ac_ext
15039if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15040
15041	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15042	    # Warning - without using the other run time loading flags,
15043	    # -berok will link without error, but may produce a broken library.
15044	    no_undefined_flag_CXX=' ${wl}-bernotok'
15045	    allow_undefined_flag_CXX=' ${wl}-berok'
15046	    # Exported symbols can be pulled into shared objects from archives
15047	    whole_archive_flag_spec_CXX='$convenience'
15048	    archive_cmds_need_lc_CXX=yes
15049	    # This is similar to how AIX traditionally builds its shared
15050	    # libraries.
15051	    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'
15052          fi
15053        fi
15054        ;;
15055
15056      beos*)
15057	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15058	  allow_undefined_flag_CXX=unsupported
15059	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15060	  # support --undefined.  This deserves some investigation.  FIXME
15061	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15062	else
15063	  ld_shlibs_CXX=no
15064	fi
15065	;;
15066
15067      chorus*)
15068        case $cc_basename in
15069          *)
15070	  # FIXME: insert proper C++ library support
15071	  ld_shlibs_CXX=no
15072	  ;;
15073        esac
15074        ;;
15075
15076      cygwin* | mingw* | pw32* | cegcc*)
15077        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15078        # as there is no search path for DLLs.
15079        hardcode_libdir_flag_spec_CXX='-L$libdir'
15080        allow_undefined_flag_CXX=unsupported
15081        always_export_symbols_CXX=no
15082        enable_shared_with_static_runtimes_CXX=yes
15083
15084        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15085          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'
15086          # If the export-symbols file already is a .def file (1st line
15087          # is EXPORTS), use it as is; otherwise, prepend...
15088          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15089	    cp $export_symbols $output_objdir/$soname.def;
15090          else
15091	    echo EXPORTS > $output_objdir/$soname.def;
15092	    cat $export_symbols >> $output_objdir/$soname.def;
15093          fi~
15094          $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'
15095        else
15096          ld_shlibs_CXX=no
15097        fi
15098        ;;
15099      darwin* | rhapsody*)
15100
15101
15102  archive_cmds_need_lc_CXX=no
15103  hardcode_direct_CXX=no
15104  hardcode_automatic_CXX=yes
15105  hardcode_shlibpath_var_CXX=unsupported
15106  whole_archive_flag_spec_CXX=''
15107  link_all_deplibs_CXX=yes
15108  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15109  case $cc_basename in
15110     ifort*) _lt_dar_can_shared=yes ;;
15111     *) _lt_dar_can_shared=$GCC ;;
15112  esac
15113  if test "$_lt_dar_can_shared" = "yes"; then
15114    output_verbose_link_cmd=echo
15115    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}"
15116    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15117    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}"
15118    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}"
15119       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15120      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}"
15121      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}"
15122    fi
15123
15124  else
15125  ld_shlibs_CXX=no
15126  fi
15127
15128	;;
15129
15130      dgux*)
15131        case $cc_basename in
15132          ec++*)
15133	    # FIXME: insert proper C++ library support
15134	    ld_shlibs_CXX=no
15135	    ;;
15136          ghcx*)
15137	    # Green Hills C++ Compiler
15138	    # FIXME: insert proper C++ library support
15139	    ld_shlibs_CXX=no
15140	    ;;
15141          *)
15142	    # FIXME: insert proper C++ library support
15143	    ld_shlibs_CXX=no
15144	    ;;
15145        esac
15146        ;;
15147
15148      freebsd[12]*)
15149        # C++ shared libraries reported to be fairly broken before
15150	# switch to ELF
15151        ld_shlibs_CXX=no
15152        ;;
15153
15154      freebsd-elf*)
15155        archive_cmds_need_lc_CXX=no
15156        ;;
15157
15158      freebsd* | dragonfly*)
15159        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15160        # conventions
15161        ld_shlibs_CXX=yes
15162        ;;
15163
15164      gnu*)
15165        ;;
15166
15167      hpux9*)
15168        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15169        hardcode_libdir_separator_CXX=:
15170        export_dynamic_flag_spec_CXX='${wl}-E'
15171        hardcode_direct_CXX=yes
15172        hardcode_minus_L_CXX=yes # Not in the search PATH,
15173				             # but as the default
15174				             # location of the library.
15175
15176        case $cc_basename in
15177          CC*)
15178            # FIXME: insert proper C++ library support
15179            ld_shlibs_CXX=no
15180            ;;
15181          aCC*)
15182            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'
15183            # Commands to make compiler produce verbose output that lists
15184            # what "hidden" libraries, object files and flags are used when
15185            # linking a shared library.
15186            #
15187            # There doesn't appear to be a way to prevent this compiler from
15188            # explicitly linking system object files so we need to strip them
15189            # from the output so that they don't get included in the library
15190            # dependencies.
15191            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'
15192            ;;
15193          *)
15194            if test "$GXX" = yes; then
15195              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'
15196            else
15197              # FIXME: insert proper C++ library support
15198              ld_shlibs_CXX=no
15199            fi
15200            ;;
15201        esac
15202        ;;
15203
15204      hpux10*|hpux11*)
15205        if test $with_gnu_ld = no; then
15206	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15207	  hardcode_libdir_separator_CXX=:
15208
15209          case $host_cpu in
15210            hppa*64*|ia64*)
15211              ;;
15212            *)
15213	      export_dynamic_flag_spec_CXX='${wl}-E'
15214              ;;
15215          esac
15216        fi
15217        case $host_cpu in
15218          hppa*64*|ia64*)
15219            hardcode_direct_CXX=no
15220            hardcode_shlibpath_var_CXX=no
15221            ;;
15222          *)
15223            hardcode_direct_CXX=yes
15224            hardcode_direct_absolute_CXX=yes
15225            hardcode_minus_L_CXX=yes # Not in the search PATH,
15226					         # but as the default
15227					         # location of the library.
15228            ;;
15229        esac
15230
15231        case $cc_basename in
15232          CC*)
15233	    # FIXME: insert proper C++ library support
15234	    ld_shlibs_CXX=no
15235	    ;;
15236          aCC*)
15237	    case $host_cpu in
15238	      hppa*64*)
15239	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15240	        ;;
15241	      ia64*)
15242	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15243	        ;;
15244	      *)
15245	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15246	        ;;
15247	    esac
15248	    # Commands to make compiler produce verbose output that lists
15249	    # what "hidden" libraries, object files and flags are used when
15250	    # linking a shared library.
15251	    #
15252	    # There doesn't appear to be a way to prevent this compiler from
15253	    # explicitly linking system object files so we need to strip them
15254	    # from the output so that they don't get included in the library
15255	    # dependencies.
15256	    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'
15257	    ;;
15258          *)
15259	    if test "$GXX" = yes; then
15260	      if test $with_gnu_ld = no; then
15261	        case $host_cpu in
15262	          hppa*64*)
15263	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15264	            ;;
15265	          ia64*)
15266	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15267	            ;;
15268	          *)
15269	            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'
15270	            ;;
15271	        esac
15272	      fi
15273	    else
15274	      # FIXME: insert proper C++ library support
15275	      ld_shlibs_CXX=no
15276	    fi
15277	    ;;
15278        esac
15279        ;;
15280
15281      interix[3-9]*)
15282	hardcode_direct_CXX=no
15283	hardcode_shlibpath_var_CXX=no
15284	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15285	export_dynamic_flag_spec_CXX='${wl}-E'
15286	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15287	# Instead, shared libraries are loaded at an image base (0x10000000 by
15288	# default) and relocated if they conflict, which is a slow very memory
15289	# consuming and fragmenting process.  To avoid this, we pick a random,
15290	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15291	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15292	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'
15293	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'
15294	;;
15295      irix5* | irix6*)
15296        case $cc_basename in
15297          CC*)
15298	    # SGI C++
15299	    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'
15300
15301	    # Archives containing C++ object files must be created using
15302	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15303	    # necessary to make sure instantiated templates are included
15304	    # in the archive.
15305	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15306	    ;;
15307          *)
15308	    if test "$GXX" = yes; then
15309	      if test "$with_gnu_ld" = no; then
15310	        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'
15311	      else
15312	        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'
15313	      fi
15314	    fi
15315	    link_all_deplibs_CXX=yes
15316	    ;;
15317        esac
15318        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15319        hardcode_libdir_separator_CXX=:
15320        inherit_rpath_CXX=yes
15321        ;;
15322
15323      linux* | k*bsd*-gnu)
15324        case $cc_basename in
15325          KCC*)
15326	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15327
15328	    # KCC will only create a shared library if the output file
15329	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15330	    # to its proper name (with version) after linking.
15331	    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'
15332	    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'
15333	    # Commands to make compiler produce verbose output that lists
15334	    # what "hidden" libraries, object files and flags are used when
15335	    # linking a shared library.
15336	    #
15337	    # There doesn't appear to be a way to prevent this compiler from
15338	    # explicitly linking system object files so we need to strip them
15339	    # from the output so that they don't get included in the library
15340	    # dependencies.
15341	    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'
15342
15343	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15344	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15345
15346	    # Archives containing C++ object files must be created using
15347	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15348	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15349	    ;;
15350	  icpc* | ecpc* )
15351	    # Intel C++
15352	    with_gnu_ld=yes
15353	    # version 8.0 and above of icpc choke on multiply defined symbols
15354	    # if we add $predep_objects and $postdep_objects, however 7.1 and
15355	    # earlier do not add the objects themselves.
15356	    case `$CC -V 2>&1` in
15357	      *"Version 7."*)
15358	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15359		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'
15360		;;
15361	      *)  # Version 8.0 or newer
15362	        tmp_idyn=
15363	        case $host_cpu in
15364		  ia64*) tmp_idyn=' -i_dynamic';;
15365		esac
15366	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15367		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'
15368		;;
15369	    esac
15370	    archive_cmds_need_lc_CXX=no
15371	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15372	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15373	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15374	    ;;
15375          pgCC* | pgcpp*)
15376            # Portland Group C++ compiler
15377	    case `$CC -V` in
15378	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15379	      prelink_cmds_CXX='tpldir=Template.dir~
15380		rm -rf $tpldir~
15381		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15382		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15383	      old_archive_cmds_CXX='tpldir=Template.dir~
15384		rm -rf $tpldir~
15385		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15386		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15387		$RANLIB $oldlib'
15388	      archive_cmds_CXX='tpldir=Template.dir~
15389		rm -rf $tpldir~
15390		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15391		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15392	      archive_expsym_cmds_CXX='tpldir=Template.dir~
15393		rm -rf $tpldir~
15394		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15395		$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'
15396	      ;;
15397	    *) # Version 6 will use weak symbols
15398	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15399	      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'
15400	      ;;
15401	    esac
15402
15403	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15404	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15405	    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'
15406            ;;
15407	  cxx*)
15408	    # Compaq C++
15409	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15410	    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'
15411
15412	    runpath_var=LD_RUN_PATH
15413	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15414	    hardcode_libdir_separator_CXX=:
15415
15416	    # Commands to make compiler produce verbose output that lists
15417	    # what "hidden" libraries, object files and flags are used when
15418	    # linking a shared library.
15419	    #
15420	    # There doesn't appear to be a way to prevent this compiler from
15421	    # explicitly linking system object files so we need to strip them
15422	    # from the output so that they don't get included in the library
15423	    # dependencies.
15424	    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'
15425	    ;;
15426	  xl*)
15427	    # IBM XL 8.0 on PPC, with GNU ld
15428	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15429	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15430	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15431	    if test "x$supports_anon_versioning" = xyes; then
15432	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15433		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15434		echo "local: *; };" >> $output_objdir/$libname.ver~
15435		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15436	    fi
15437	    ;;
15438	  *)
15439	    case `$CC -V 2>&1 | sed 5q` in
15440	    *Sun\ C*)
15441	      # Sun C++ 5.9
15442	      no_undefined_flag_CXX=' -zdefs'
15443	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15444	      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'
15445	      hardcode_libdir_flag_spec_CXX='-R$libdir'
15446	      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'
15447	      compiler_needs_object_CXX=yes
15448
15449	      # Not sure whether something based on
15450	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15451	      # would be better.
15452	      output_verbose_link_cmd='echo'
15453
15454	      # Archives containing C++ object files must be created using
15455	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15456	      # necessary to make sure instantiated templates are included
15457	      # in the archive.
15458	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15459	      ;;
15460	    esac
15461	    ;;
15462	esac
15463	;;
15464
15465      lynxos*)
15466        # FIXME: insert proper C++ library support
15467	ld_shlibs_CXX=no
15468	;;
15469
15470      m88k*)
15471        # FIXME: insert proper C++ library support
15472        ld_shlibs_CXX=no
15473	;;
15474
15475      mvs*)
15476        case $cc_basename in
15477          cxx*)
15478	    # FIXME: insert proper C++ library support
15479	    ld_shlibs_CXX=no
15480	    ;;
15481	  *)
15482	    # FIXME: insert proper C++ library support
15483	    ld_shlibs_CXX=no
15484	    ;;
15485	esac
15486	;;
15487
15488      netbsd*)
15489        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15490	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15491	  wlarc=
15492	  hardcode_libdir_flag_spec_CXX='-R$libdir'
15493	  hardcode_direct_CXX=yes
15494	  hardcode_shlibpath_var_CXX=no
15495	fi
15496	# Workaround some broken pre-1.5 toolchains
15497	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15498	;;
15499
15500      *nto* | *qnx*)
15501        ld_shlibs_CXX=yes
15502	;;
15503
15504      openbsd2*)
15505        # C++ shared libraries are fairly broken
15506	ld_shlibs_CXX=no
15507	;;
15508
15509      openbsd*)
15510	if test -f /usr/libexec/ld.so; then
15511	  hardcode_direct_CXX=yes
15512	  hardcode_shlibpath_var_CXX=no
15513	  hardcode_direct_absolute_CXX=yes
15514	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15515	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15516	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15517	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15518	    export_dynamic_flag_spec_CXX='${wl}-E'
15519	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15520	  fi
15521	  output_verbose_link_cmd=echo
15522	else
15523	  ld_shlibs_CXX=no
15524	fi
15525	;;
15526
15527      osf3* | osf4* | osf5*)
15528        case $cc_basename in
15529          KCC*)
15530	    # Kuck and Associates, Inc. (KAI) C++ Compiler
15531
15532	    # KCC will only create a shared library if the output file
15533	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
15534	    # to its proper name (with version) after linking.
15535	    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'
15536
15537	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15538	    hardcode_libdir_separator_CXX=:
15539
15540	    # Archives containing C++ object files must be created using
15541	    # the KAI C++ compiler.
15542	    case $host in
15543	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15544	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15545	    esac
15546	    ;;
15547          RCC*)
15548	    # Rational C++ 2.4.1
15549	    # FIXME: insert proper C++ library support
15550	    ld_shlibs_CXX=no
15551	    ;;
15552          cxx*)
15553	    case $host in
15554	      osf3*)
15555	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15556	        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'
15557	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15558		;;
15559	      *)
15560	        allow_undefined_flag_CXX=' -expect_unresolved \*'
15561	        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'
15562	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15563	          echo "-hidden">> $lib.exp~
15564	          $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~
15565	          $RM $lib.exp'
15566	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15567		;;
15568	    esac
15569
15570	    hardcode_libdir_separator_CXX=:
15571
15572	    # Commands to make compiler produce verbose output that lists
15573	    # what "hidden" libraries, object files and flags are used when
15574	    # linking a shared library.
15575	    #
15576	    # There doesn't appear to be a way to prevent this compiler from
15577	    # explicitly linking system object files so we need to strip them
15578	    # from the output so that they don't get included in the library
15579	    # dependencies.
15580	    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'
15581	    ;;
15582	  *)
15583	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15584	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15585	      case $host in
15586	        osf3*)
15587	          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'
15588		  ;;
15589	        *)
15590	          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'
15591		  ;;
15592	      esac
15593
15594	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15595	      hardcode_libdir_separator_CXX=:
15596
15597	      # Commands to make compiler produce verbose output that lists
15598	      # what "hidden" libraries, object files and flags are used when
15599	      # linking a shared library.
15600	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15601
15602	    else
15603	      # FIXME: insert proper C++ library support
15604	      ld_shlibs_CXX=no
15605	    fi
15606	    ;;
15607        esac
15608        ;;
15609
15610      psos*)
15611        # FIXME: insert proper C++ library support
15612        ld_shlibs_CXX=no
15613        ;;
15614
15615      sunos4*)
15616        case $cc_basename in
15617          CC*)
15618	    # Sun C++ 4.x
15619	    # FIXME: insert proper C++ library support
15620	    ld_shlibs_CXX=no
15621	    ;;
15622          lcc*)
15623	    # Lucid
15624	    # FIXME: insert proper C++ library support
15625	    ld_shlibs_CXX=no
15626	    ;;
15627          *)
15628	    # FIXME: insert proper C++ library support
15629	    ld_shlibs_CXX=no
15630	    ;;
15631        esac
15632        ;;
15633
15634      solaris*)
15635        case $cc_basename in
15636          CC*)
15637	    # Sun C++ 4.2, 5.x and Centerline C++
15638            archive_cmds_need_lc_CXX=yes
15639	    no_undefined_flag_CXX=' -zdefs'
15640	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15641	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15642	      $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'
15643
15644	    hardcode_libdir_flag_spec_CXX='-R$libdir'
15645	    hardcode_shlibpath_var_CXX=no
15646	    case $host_os in
15647	      solaris2.[0-5] | solaris2.[0-5].*) ;;
15648	      *)
15649		# The compiler driver will combine and reorder linker options,
15650		# but understands `-z linker_flag'.
15651	        # Supported since Solaris 2.6 (maybe 2.5.1?)
15652		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15653	        ;;
15654	    esac
15655	    link_all_deplibs_CXX=yes
15656
15657	    output_verbose_link_cmd='echo'
15658
15659	    # Archives containing C++ object files must be created using
15660	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15661	    # necessary to make sure instantiated templates are included
15662	    # in the archive.
15663	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15664	    ;;
15665          gcx*)
15666	    # Green Hills C++ Compiler
15667	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15668
15669	    # The C++ compiler must be used to create the archive.
15670	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15671	    ;;
15672          *)
15673	    # GNU C++ compiler with Solaris linker
15674	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15675	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15676	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15677	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15678	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15679		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15680
15681	        # Commands to make compiler produce verbose output that lists
15682	        # what "hidden" libraries, object files and flags are used when
15683	        # linking a shared library.
15684	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15685	      else
15686	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
15687	        # platform.
15688	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15689	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15690		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15691
15692	        # Commands to make compiler produce verbose output that lists
15693	        # what "hidden" libraries, object files and flags are used when
15694	        # linking a shared library.
15695	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15696	      fi
15697
15698	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15699	      case $host_os in
15700		solaris2.[0-5] | solaris2.[0-5].*) ;;
15701		*)
15702		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15703		  ;;
15704	      esac
15705	    fi
15706	    ;;
15707        esac
15708        ;;
15709
15710    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15711      no_undefined_flag_CXX='${wl}-z,text'
15712      archive_cmds_need_lc_CXX=no
15713      hardcode_shlibpath_var_CXX=no
15714      runpath_var='LD_RUN_PATH'
15715
15716      case $cc_basename in
15717        CC*)
15718	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15719	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15720	  ;;
15721	*)
15722	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724	  ;;
15725      esac
15726      ;;
15727
15728      sysv5* | sco3.2v5* | sco5v6*)
15729	# Note: We can NOT use -z defs as we might desire, because we do not
15730	# link with -lc, and that would cause any symbols used from libc to
15731	# always be unresolved, which means just about no library would
15732	# ever link correctly.  If we're not using GNU ld we use -z text
15733	# though, which does catch some bad symbols but isn't as heavy-handed
15734	# as -z defs.
15735	no_undefined_flag_CXX='${wl}-z,text'
15736	allow_undefined_flag_CXX='${wl}-z,nodefs'
15737	archive_cmds_need_lc_CXX=no
15738	hardcode_shlibpath_var_CXX=no
15739	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15740	hardcode_libdir_separator_CXX=':'
15741	link_all_deplibs_CXX=yes
15742	export_dynamic_flag_spec_CXX='${wl}-Bexport'
15743	runpath_var='LD_RUN_PATH'
15744
15745	case $cc_basename in
15746          CC*)
15747	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15748	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15749	    ;;
15750	  *)
15751	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15752	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15753	    ;;
15754	esac
15755      ;;
15756
15757      tandem*)
15758        case $cc_basename in
15759          NCC*)
15760	    # NonStop-UX NCC 3.20
15761	    # FIXME: insert proper C++ library support
15762	    ld_shlibs_CXX=no
15763	    ;;
15764          *)
15765	    # FIXME: insert proper C++ library support
15766	    ld_shlibs_CXX=no
15767	    ;;
15768        esac
15769        ;;
15770
15771      vxworks*)
15772        # FIXME: insert proper C++ library support
15773        ld_shlibs_CXX=no
15774        ;;
15775
15776      *)
15777        # FIXME: insert proper C++ library support
15778        ld_shlibs_CXX=no
15779        ;;
15780    esac
15781
15782    { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15783$as_echo "$ld_shlibs_CXX" >&6; }
15784    test "$ld_shlibs_CXX" = no && can_build_shared=no
15785
15786    GCC_CXX="$GXX"
15787    LD_CXX="$LD"
15788
15789    ## CAVEAT EMPTOR:
15790    ## There is no encapsulation within the following macros, do not change
15791    ## the running order or otherwise move them around unless you know exactly
15792    ## what you are doing...
15793    # Dependencies to place before and after the object being linked:
15794predep_objects_CXX=
15795postdep_objects_CXX=
15796predeps_CXX=
15797postdeps_CXX=
15798compiler_lib_search_path_CXX=
15799
15800cat > conftest.$ac_ext <<_LT_EOF
15801class Foo
15802{
15803public:
15804  Foo (void) { a = 0; }
15805private:
15806  int a;
15807};
15808_LT_EOF
15809
15810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15811  (eval $ac_compile) 2>&5
15812  ac_status=$?
15813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814  (exit $ac_status); }; then
15815  # Parse the compiler output and extract the necessary
15816  # objects, libraries and library flags.
15817
15818  # Sentinel used to keep track of whether or not we are before
15819  # the conftest object file.
15820  pre_test_object_deps_done=no
15821
15822  for p in `eval "$output_verbose_link_cmd"`; do
15823    case $p in
15824
15825    -L* | -R* | -l*)
15826       # Some compilers place space between "-{L,R}" and the path.
15827       # Remove the space.
15828       if test $p = "-L" ||
15829          test $p = "-R"; then
15830	 prev=$p
15831	 continue
15832       else
15833	 prev=
15834       fi
15835
15836       if test "$pre_test_object_deps_done" = no; then
15837	 case $p in
15838	 -L* | -R*)
15839	   # Internal compiler library paths should come after those
15840	   # provided the user.  The postdeps already come after the
15841	   # user supplied libs so there is no need to process them.
15842	   if test -z "$compiler_lib_search_path_CXX"; then
15843	     compiler_lib_search_path_CXX="${prev}${p}"
15844	   else
15845	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15846	   fi
15847	   ;;
15848	 # The "-l" case would never come before the object being
15849	 # linked, so don't bother handling this case.
15850	 esac
15851       else
15852	 if test -z "$postdeps_CXX"; then
15853	   postdeps_CXX="${prev}${p}"
15854	 else
15855	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15856	 fi
15857       fi
15858       ;;
15859
15860    *.$objext)
15861       # This assumes that the test object file only shows up
15862       # once in the compiler output.
15863       if test "$p" = "conftest.$objext"; then
15864	 pre_test_object_deps_done=yes
15865	 continue
15866       fi
15867
15868       if test "$pre_test_object_deps_done" = no; then
15869	 if test -z "$predep_objects_CXX"; then
15870	   predep_objects_CXX="$p"
15871	 else
15872	   predep_objects_CXX="$predep_objects_CXX $p"
15873	 fi
15874       else
15875	 if test -z "$postdep_objects_CXX"; then
15876	   postdep_objects_CXX="$p"
15877	 else
15878	   postdep_objects_CXX="$postdep_objects_CXX $p"
15879	 fi
15880       fi
15881       ;;
15882
15883    *) ;; # Ignore the rest.
15884
15885    esac
15886  done
15887
15888  # Clean up.
15889  rm -f a.out a.exe
15890else
15891  echo "libtool.m4: error: problem compiling CXX test program"
15892fi
15893
15894$RM -f confest.$objext
15895
15896# PORTME: override above test on systems where it is broken
15897case $host_os in
15898interix[3-9]*)
15899  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15900  # hack all around it, let's just trust "g++" to DTRT.
15901  predep_objects_CXX=
15902  postdep_objects_CXX=
15903  postdeps_CXX=
15904  ;;
15905
15906linux*)
15907  case `$CC -V 2>&1 | sed 5q` in
15908  *Sun\ C*)
15909    # Sun C++ 5.9
15910
15911    # The more standards-conforming stlport4 library is
15912    # incompatible with the Cstd library. Avoid specifying
15913    # it if it's in CXXFLAGS. Ignore libCrun as
15914    # -library=stlport4 depends on it.
15915    case " $CXX $CXXFLAGS " in
15916    *" -library=stlport4 "*)
15917      solaris_use_stlport4=yes
15918      ;;
15919    esac
15920
15921    if test "$solaris_use_stlport4" != yes; then
15922      postdeps_CXX='-library=Cstd -library=Crun'
15923    fi
15924    ;;
15925  esac
15926  ;;
15927
15928solaris*)
15929  case $cc_basename in
15930  CC*)
15931    # The more standards-conforming stlport4 library is
15932    # incompatible with the Cstd library. Avoid specifying
15933    # it if it's in CXXFLAGS. Ignore libCrun as
15934    # -library=stlport4 depends on it.
15935    case " $CXX $CXXFLAGS " in
15936    *" -library=stlport4 "*)
15937      solaris_use_stlport4=yes
15938      ;;
15939    esac
15940
15941    # Adding this requires a known-good setup of shared libraries for
15942    # Sun compiler versions before 5.6, else PIC objects from an old
15943    # archive will be linked into the output, leading to subtle bugs.
15944    if test "$solaris_use_stlport4" != yes; then
15945      postdeps_CXX='-library=Cstd -library=Crun'
15946    fi
15947    ;;
15948  esac
15949  ;;
15950esac
15951
15952
15953case " $postdeps_CXX " in
15954*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15955esac
15956 compiler_lib_search_dirs_CXX=
15957if test -n "${compiler_lib_search_path_CXX}"; then
15958 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15959fi
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991    lt_prog_compiler_wl_CXX=
15992lt_prog_compiler_pic_CXX=
15993lt_prog_compiler_static_CXX=
15994
15995{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15996$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15997
15998  # C++ specific cases for pic, static, wl, etc.
15999  if test "$GXX" = yes; then
16000    lt_prog_compiler_wl_CXX='-Wl,'
16001    lt_prog_compiler_static_CXX='-static'
16002
16003    case $host_os in
16004    aix*)
16005      # All AIX code is PIC.
16006      if test "$host_cpu" = ia64; then
16007	# AIX 5 now supports IA64 processor
16008	lt_prog_compiler_static_CXX='-Bstatic'
16009      fi
16010      ;;
16011
16012    amigaos*)
16013      case $host_cpu in
16014      powerpc)
16015            # see comment about AmigaOS4 .so support
16016            lt_prog_compiler_pic_CXX='-fPIC'
16017        ;;
16018      m68k)
16019            # FIXME: we need at least 68020 code to build shared libraries, but
16020            # adding the `-m68020' flag to GCC prevents building anything better,
16021            # like `-m68040'.
16022            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16023        ;;
16024      esac
16025      ;;
16026
16027    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16028      # PIC is the default for these OSes.
16029      ;;
16030    mingw* | cygwin* | os2* | pw32* | cegcc*)
16031      # This hack is so that the source file can tell whether it is being
16032      # built for inclusion in a dll (and should export symbols for example).
16033      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16034      # (--disable-auto-import) libraries
16035      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16036      ;;
16037    darwin* | rhapsody*)
16038      # PIC is the default on this platform
16039      # Common symbols not allowed in MH_DYLIB files
16040      lt_prog_compiler_pic_CXX='-fno-common'
16041      ;;
16042    *djgpp*)
16043      # DJGPP does not support shared libraries at all
16044      lt_prog_compiler_pic_CXX=
16045      ;;
16046    interix[3-9]*)
16047      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16048      # Instead, we relocate shared libraries at runtime.
16049      ;;
16050    sysv4*MP*)
16051      if test -d /usr/nec; then
16052	lt_prog_compiler_pic_CXX=-Kconform_pic
16053      fi
16054      ;;
16055    hpux*)
16056      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16057      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16058      # sets the default TLS model and affects inlining.
16059      case $host_cpu in
16060      hppa*64*)
16061	;;
16062      *)
16063	lt_prog_compiler_pic_CXX='-fPIC'
16064	;;
16065      esac
16066      ;;
16067    *qnx* | *nto*)
16068      # QNX uses GNU C++, but need to define -shared option too, otherwise
16069      # it will coredump.
16070      lt_prog_compiler_pic_CXX='-fPIC -shared'
16071      ;;
16072    *)
16073      lt_prog_compiler_pic_CXX='-fPIC'
16074      ;;
16075    esac
16076  else
16077    case $host_os in
16078      aix[4-9]*)
16079	# All AIX code is PIC.
16080	if test "$host_cpu" = ia64; then
16081	  # AIX 5 now supports IA64 processor
16082	  lt_prog_compiler_static_CXX='-Bstatic'
16083	else
16084	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16085	fi
16086	;;
16087      chorus*)
16088	case $cc_basename in
16089	cxch68*)
16090	  # Green Hills C++ Compiler
16091	  # _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"
16092	  ;;
16093	esac
16094	;;
16095      dgux*)
16096	case $cc_basename in
16097	  ec++*)
16098	    lt_prog_compiler_pic_CXX='-KPIC'
16099	    ;;
16100	  ghcx*)
16101	    # Green Hills C++ Compiler
16102	    lt_prog_compiler_pic_CXX='-pic'
16103	    ;;
16104	  *)
16105	    ;;
16106	esac
16107	;;
16108      freebsd* | dragonfly*)
16109	# FreeBSD uses GNU C++
16110	;;
16111      hpux9* | hpux10* | hpux11*)
16112	case $cc_basename in
16113	  CC*)
16114	    lt_prog_compiler_wl_CXX='-Wl,'
16115	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16116	    if test "$host_cpu" != ia64; then
16117	      lt_prog_compiler_pic_CXX='+Z'
16118	    fi
16119	    ;;
16120	  aCC*)
16121	    lt_prog_compiler_wl_CXX='-Wl,'
16122	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16123	    case $host_cpu in
16124	    hppa*64*|ia64*)
16125	      # +Z the default
16126	      ;;
16127	    *)
16128	      lt_prog_compiler_pic_CXX='+Z'
16129	      ;;
16130	    esac
16131	    ;;
16132	  *)
16133	    ;;
16134	esac
16135	;;
16136      interix*)
16137	# This is c89, which is MS Visual C++ (no shared libs)
16138	# Anyone wants to do a port?
16139	;;
16140      irix5* | irix6* | nonstopux*)
16141	case $cc_basename in
16142	  CC*)
16143	    lt_prog_compiler_wl_CXX='-Wl,'
16144	    lt_prog_compiler_static_CXX='-non_shared'
16145	    # CC pic flag -KPIC is the default.
16146	    ;;
16147	  *)
16148	    ;;
16149	esac
16150	;;
16151      linux* | k*bsd*-gnu)
16152	case $cc_basename in
16153	  KCC*)
16154	    # KAI C++ Compiler
16155	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16156	    lt_prog_compiler_pic_CXX='-fPIC'
16157	    ;;
16158	  ecpc* )
16159	    # old Intel C++ for x86_64 which still supported -KPIC.
16160	    lt_prog_compiler_wl_CXX='-Wl,'
16161	    lt_prog_compiler_pic_CXX='-KPIC'
16162	    lt_prog_compiler_static_CXX='-static'
16163	    ;;
16164	  icpc* )
16165	    # Intel C++, used to be incompatible with GCC.
16166	    # ICC 10 doesn't accept -KPIC any more.
16167	    lt_prog_compiler_wl_CXX='-Wl,'
16168	    lt_prog_compiler_pic_CXX='-fPIC'
16169	    lt_prog_compiler_static_CXX='-static'
16170	    ;;
16171	  pgCC* | pgcpp*)
16172	    # Portland Group C++ compiler
16173	    lt_prog_compiler_wl_CXX='-Wl,'
16174	    lt_prog_compiler_pic_CXX='-fpic'
16175	    lt_prog_compiler_static_CXX='-Bstatic'
16176	    ;;
16177	  cxx*)
16178	    # Compaq C++
16179	    # Make sure the PIC flag is empty.  It appears that all Alpha
16180	    # Linux and Compaq Tru64 Unix objects are PIC.
16181	    lt_prog_compiler_pic_CXX=
16182	    lt_prog_compiler_static_CXX='-non_shared'
16183	    ;;
16184	  xlc* | xlC*)
16185	    # IBM XL 8.0 on PPC
16186	    lt_prog_compiler_wl_CXX='-Wl,'
16187	    lt_prog_compiler_pic_CXX='-qpic'
16188	    lt_prog_compiler_static_CXX='-qstaticlink'
16189	    ;;
16190	  *)
16191	    case `$CC -V 2>&1 | sed 5q` in
16192	    *Sun\ C*)
16193	      # Sun C++ 5.9
16194	      lt_prog_compiler_pic_CXX='-KPIC'
16195	      lt_prog_compiler_static_CXX='-Bstatic'
16196	      lt_prog_compiler_wl_CXX='-Qoption ld '
16197	      ;;
16198	    esac
16199	    ;;
16200	esac
16201	;;
16202      lynxos*)
16203	;;
16204      m88k*)
16205	;;
16206      mvs*)
16207	case $cc_basename in
16208	  cxx*)
16209	    lt_prog_compiler_pic_CXX='-W c,exportall'
16210	    ;;
16211	  *)
16212	    ;;
16213	esac
16214	;;
16215      netbsd*)
16216	;;
16217      *qnx* | *nto*)
16218        # QNX uses GNU C++, but need to define -shared option too, otherwise
16219        # it will coredump.
16220        lt_prog_compiler_pic_CXX='-fPIC -shared'
16221        ;;
16222      osf3* | osf4* | osf5*)
16223	case $cc_basename in
16224	  KCC*)
16225	    lt_prog_compiler_wl_CXX='--backend -Wl,'
16226	    ;;
16227	  RCC*)
16228	    # Rational C++ 2.4.1
16229	    lt_prog_compiler_pic_CXX='-pic'
16230	    ;;
16231	  cxx*)
16232	    # Digital/Compaq C++
16233	    lt_prog_compiler_wl_CXX='-Wl,'
16234	    # Make sure the PIC flag is empty.  It appears that all Alpha
16235	    # Linux and Compaq Tru64 Unix objects are PIC.
16236	    lt_prog_compiler_pic_CXX=
16237	    lt_prog_compiler_static_CXX='-non_shared'
16238	    ;;
16239	  *)
16240	    ;;
16241	esac
16242	;;
16243      psos*)
16244	;;
16245      solaris*)
16246	case $cc_basename in
16247	  CC*)
16248	    # Sun C++ 4.2, 5.x and Centerline C++
16249	    lt_prog_compiler_pic_CXX='-KPIC'
16250	    lt_prog_compiler_static_CXX='-Bstatic'
16251	    lt_prog_compiler_wl_CXX='-Qoption ld '
16252	    ;;
16253	  gcx*)
16254	    # Green Hills C++ Compiler
16255	    lt_prog_compiler_pic_CXX='-PIC'
16256	    ;;
16257	  *)
16258	    ;;
16259	esac
16260	;;
16261      sunos4*)
16262	case $cc_basename in
16263	  CC*)
16264	    # Sun C++ 4.x
16265	    lt_prog_compiler_pic_CXX='-pic'
16266	    lt_prog_compiler_static_CXX='-Bstatic'
16267	    ;;
16268	  lcc*)
16269	    # Lucid
16270	    lt_prog_compiler_pic_CXX='-pic'
16271	    ;;
16272	  *)
16273	    ;;
16274	esac
16275	;;
16276      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16277	case $cc_basename in
16278	  CC*)
16279	    lt_prog_compiler_wl_CXX='-Wl,'
16280	    lt_prog_compiler_pic_CXX='-KPIC'
16281	    lt_prog_compiler_static_CXX='-Bstatic'
16282	    ;;
16283	esac
16284	;;
16285      tandem*)
16286	case $cc_basename in
16287	  NCC*)
16288	    # NonStop-UX NCC 3.20
16289	    lt_prog_compiler_pic_CXX='-KPIC'
16290	    ;;
16291	  *)
16292	    ;;
16293	esac
16294	;;
16295      vxworks*)
16296	;;
16297      *)
16298	lt_prog_compiler_can_build_shared_CXX=no
16299	;;
16300    esac
16301  fi
16302
16303case $host_os in
16304  # For platforms which do not support PIC, -DPIC is meaningless:
16305  *djgpp*)
16306    lt_prog_compiler_pic_CXX=
16307    ;;
16308  *)
16309    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16310    ;;
16311esac
16312{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16313$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16314
16315
16316
16317#
16318# Check to make sure the PIC flag actually works.
16319#
16320if test -n "$lt_prog_compiler_pic_CXX"; then
16321  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16322$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16323if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16324  $as_echo_n "(cached) " >&6
16325else
16326  lt_cv_prog_compiler_pic_works_CXX=no
16327   ac_outfile=conftest.$ac_objext
16328   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16329   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16330   # Insert the option either (1) after the last *FLAGS variable, or
16331   # (2) before a word containing "conftest.", or (3) at the end.
16332   # Note that $ac_compile itself does not contain backslashes and begins
16333   # with a dollar sign (not a hyphen), so the echo should work correctly.
16334   # The option is referenced via a variable to avoid confusing sed.
16335   lt_compile=`echo "$ac_compile" | $SED \
16336   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16337   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16338   -e 's:$: $lt_compiler_flag:'`
16339   (eval echo "\"\$as_me:16339: $lt_compile\"" >&5)
16340   (eval "$lt_compile" 2>conftest.err)
16341   ac_status=$?
16342   cat conftest.err >&5
16343   echo "$as_me:16343: \$? = $ac_status" >&5
16344   if (exit $ac_status) && test -s "$ac_outfile"; then
16345     # The compiler can only warn and ignore the option if not recognized
16346     # So say no if there are warnings other than the usual output.
16347     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16348     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16349     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16350       lt_cv_prog_compiler_pic_works_CXX=yes
16351     fi
16352   fi
16353   $RM conftest*
16354
16355fi
16356{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16357$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16358
16359if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16360    case $lt_prog_compiler_pic_CXX in
16361     "" | " "*) ;;
16362     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16363     esac
16364else
16365    lt_prog_compiler_pic_CXX=
16366     lt_prog_compiler_can_build_shared_CXX=no
16367fi
16368
16369fi
16370
16371
16372
16373#
16374# Check to make sure the static flag actually works.
16375#
16376wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16377{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16378$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16379if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16380  $as_echo_n "(cached) " >&6
16381else
16382  lt_cv_prog_compiler_static_works_CXX=no
16383   save_LDFLAGS="$LDFLAGS"
16384   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16385   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16386   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16387     # The linker can only warn and ignore the option if not recognized
16388     # So say no if there are warnings
16389     if test -s conftest.err; then
16390       # Append any errors to the config.log.
16391       cat conftest.err 1>&5
16392       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16393       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16394       if diff conftest.exp conftest.er2 >/dev/null; then
16395         lt_cv_prog_compiler_static_works_CXX=yes
16396       fi
16397     else
16398       lt_cv_prog_compiler_static_works_CXX=yes
16399     fi
16400   fi
16401   $RM -r conftest*
16402   LDFLAGS="$save_LDFLAGS"
16403
16404fi
16405{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16406$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16407
16408if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16409    :
16410else
16411    lt_prog_compiler_static_CXX=
16412fi
16413
16414
16415
16416
16417    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16418$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16419if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16420  $as_echo_n "(cached) " >&6
16421else
16422  lt_cv_prog_compiler_c_o_CXX=no
16423   $RM -r conftest 2>/dev/null
16424   mkdir conftest
16425   cd conftest
16426   mkdir out
16427   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16428
16429   lt_compiler_flag="-o out/conftest2.$ac_objext"
16430   # Insert the option either (1) after the last *FLAGS variable, or
16431   # (2) before a word containing "conftest.", or (3) at the end.
16432   # Note that $ac_compile itself does not contain backslashes and begins
16433   # with a dollar sign (not a hyphen), so the echo should work correctly.
16434   lt_compile=`echo "$ac_compile" | $SED \
16435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16437   -e 's:$: $lt_compiler_flag:'`
16438   (eval echo "\"\$as_me:16438: $lt_compile\"" >&5)
16439   (eval "$lt_compile" 2>out/conftest.err)
16440   ac_status=$?
16441   cat out/conftest.err >&5
16442   echo "$as_me:16442: \$? = $ac_status" >&5
16443   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16444   then
16445     # The compiler can only warn and ignore the option if not recognized
16446     # So say no if there are warnings
16447     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16448     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16449     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16450       lt_cv_prog_compiler_c_o_CXX=yes
16451     fi
16452   fi
16453   chmod u+w . 2>&5
16454   $RM conftest*
16455   # SGI C++ compiler will create directory out/ii_files/ for
16456   # template instantiation
16457   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16458   $RM out/* && rmdir out
16459   cd ..
16460   $RM -r conftest
16461   $RM conftest*
16462
16463fi
16464{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16465$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16466
16467
16468
16469    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16470$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16471if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16472  $as_echo_n "(cached) " >&6
16473else
16474  lt_cv_prog_compiler_c_o_CXX=no
16475   $RM -r conftest 2>/dev/null
16476   mkdir conftest
16477   cd conftest
16478   mkdir out
16479   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16480
16481   lt_compiler_flag="-o out/conftest2.$ac_objext"
16482   # Insert the option either (1) after the last *FLAGS variable, or
16483   # (2) before a word containing "conftest.", or (3) at the end.
16484   # Note that $ac_compile itself does not contain backslashes and begins
16485   # with a dollar sign (not a hyphen), so the echo should work correctly.
16486   lt_compile=`echo "$ac_compile" | $SED \
16487   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16488   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16489   -e 's:$: $lt_compiler_flag:'`
16490   (eval echo "\"\$as_me:16490: $lt_compile\"" >&5)
16491   (eval "$lt_compile" 2>out/conftest.err)
16492   ac_status=$?
16493   cat out/conftest.err >&5
16494   echo "$as_me:16494: \$? = $ac_status" >&5
16495   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16496   then
16497     # The compiler can only warn and ignore the option if not recognized
16498     # So say no if there are warnings
16499     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16500     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16501     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16502       lt_cv_prog_compiler_c_o_CXX=yes
16503     fi
16504   fi
16505   chmod u+w . 2>&5
16506   $RM conftest*
16507   # SGI C++ compiler will create directory out/ii_files/ for
16508   # template instantiation
16509   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16510   $RM out/* && rmdir out
16511   cd ..
16512   $RM -r conftest
16513   $RM conftest*
16514
16515fi
16516{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16517$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16518
16519
16520
16521
16522hard_links="nottested"
16523if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16524  # do not overwrite the value of need_locks provided by the user
16525  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16526$as_echo_n "checking if we can lock with hard links... " >&6; }
16527  hard_links=yes
16528  $RM conftest*
16529  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16530  touch conftest.a
16531  ln conftest.a conftest.b 2>&5 || hard_links=no
16532  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16533  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16534$as_echo "$hard_links" >&6; }
16535  if test "$hard_links" = no; then
16536    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16537$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16538    need_locks=warn
16539  fi
16540else
16541  need_locks=no
16542fi
16543
16544
16545
16546    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16547$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16548
16549  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16550  case $host_os in
16551  aix[4-9]*)
16552    # If we're using GNU nm, then we don't want the "-C" option.
16553    # -C means demangle to AIX nm, but means don't demangle with GNU nm
16554    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16555      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'
16556    else
16557      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'
16558    fi
16559    ;;
16560  pw32*)
16561    export_symbols_cmds_CXX="$ltdll_cmds"
16562  ;;
16563  cygwin* | mingw* | cegcc*)
16564    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'
16565  ;;
16566  *)
16567    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16568  ;;
16569  esac
16570  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16571
16572{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16573$as_echo "$ld_shlibs_CXX" >&6; }
16574test "$ld_shlibs_CXX" = no && can_build_shared=no
16575
16576with_gnu_ld_CXX=$with_gnu_ld
16577
16578
16579
16580
16581
16582
16583#
16584# Do we need to explicitly link libc?
16585#
16586case "x$archive_cmds_need_lc_CXX" in
16587x|xyes)
16588  # Assume -lc should be added
16589  archive_cmds_need_lc_CXX=yes
16590
16591  if test "$enable_shared" = yes && test "$GCC" = yes; then
16592    case $archive_cmds_CXX in
16593    *'~'*)
16594      # FIXME: we may have to deal with multi-command sequences.
16595      ;;
16596    '$CC '*)
16597      # Test whether the compiler implicitly links with -lc since on some
16598      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16599      # to ld, don't add -lc before -lgcc.
16600      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16601$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16602      $RM conftest*
16603      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16604
16605      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16606  (eval $ac_compile) 2>&5
16607  ac_status=$?
16608  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609  (exit $ac_status); } 2>conftest.err; then
16610        soname=conftest
16611        lib=conftest
16612        libobjs=conftest.$ac_objext
16613        deplibs=
16614        wl=$lt_prog_compiler_wl_CXX
16615	pic_flag=$lt_prog_compiler_pic_CXX
16616        compiler_flags=-v
16617        linker_flags=-v
16618        verstring=
16619        output_objdir=.
16620        libname=conftest
16621        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16622        allow_undefined_flag_CXX=
16623        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
16624  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16625  ac_status=$?
16626  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627  (exit $ac_status); }
16628        then
16629	  archive_cmds_need_lc_CXX=no
16630        else
16631	  archive_cmds_need_lc_CXX=yes
16632        fi
16633        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16634      else
16635        cat conftest.err 1>&5
16636      fi
16637      $RM conftest*
16638      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16639$as_echo "$archive_cmds_need_lc_CXX" >&6; }
16640      ;;
16641    esac
16642  fi
16643  ;;
16644esac
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709    { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16710$as_echo_n "checking dynamic linker characteristics... " >&6; }
16711
16712library_names_spec=
16713libname_spec='lib$name'
16714soname_spec=
16715shrext_cmds=".so"
16716postinstall_cmds=
16717postuninstall_cmds=
16718finish_cmds=
16719finish_eval=
16720shlibpath_var=
16721shlibpath_overrides_runpath=unknown
16722version_type=none
16723dynamic_linker="$host_os ld.so"
16724sys_lib_dlsearch_path_spec="/lib /usr/lib"
16725need_lib_prefix=unknown
16726hardcode_into_libs=no
16727
16728# when you set need_version to no, make sure it does not cause -set_version
16729# flags to be left without arguments
16730need_version=unknown
16731
16732case $host_os in
16733aix3*)
16734  version_type=linux
16735  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16736  shlibpath_var=LIBPATH
16737
16738  # AIX 3 has no versioning support, so we append a major version to the name.
16739  soname_spec='${libname}${release}${shared_ext}$major'
16740  ;;
16741
16742aix[4-9]*)
16743  version_type=linux
16744  need_lib_prefix=no
16745  need_version=no
16746  hardcode_into_libs=yes
16747  if test "$host_cpu" = ia64; then
16748    # AIX 5 supports IA64
16749    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16750    shlibpath_var=LD_LIBRARY_PATH
16751  else
16752    # With GCC up to 2.95.x, collect2 would create an import file
16753    # for dependence libraries.  The import file would start with
16754    # the line `#! .'.  This would cause the generated library to
16755    # depend on `.', always an invalid library.  This was fixed in
16756    # development snapshots of GCC prior to 3.0.
16757    case $host_os in
16758      aix4 | aix4.[01] | aix4.[01].*)
16759      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16760	   echo ' yes '
16761	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16762	:
16763      else
16764	can_build_shared=no
16765      fi
16766      ;;
16767    esac
16768    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16769    # soname into executable. Probably we can add versioning support to
16770    # collect2, so additional links can be useful in future.
16771    if test "$aix_use_runtimelinking" = yes; then
16772      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16773      # instead of lib<name>.a to let people know that these are not
16774      # typical AIX shared libraries.
16775      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16776    else
16777      # We preserve .a as extension for shared libraries through AIX4.2
16778      # and later when we are not doing run time linking.
16779      library_names_spec='${libname}${release}.a $libname.a'
16780      soname_spec='${libname}${release}${shared_ext}$major'
16781    fi
16782    shlibpath_var=LIBPATH
16783  fi
16784  ;;
16785
16786amigaos*)
16787  case $host_cpu in
16788  powerpc)
16789    # Since July 2007 AmigaOS4 officially supports .so libraries.
16790    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16791    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16792    ;;
16793  m68k)
16794    library_names_spec='$libname.ixlibrary $libname.a'
16795    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16796    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'
16797    ;;
16798  esac
16799  ;;
16800
16801beos*)
16802  library_names_spec='${libname}${shared_ext}'
16803  dynamic_linker="$host_os ld.so"
16804  shlibpath_var=LIBRARY_PATH
16805  ;;
16806
16807bsdi[45]*)
16808  version_type=linux
16809  need_version=no
16810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16811  soname_spec='${libname}${release}${shared_ext}$major'
16812  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16813  shlibpath_var=LD_LIBRARY_PATH
16814  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16815  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16816  # the default ld.so.conf also contains /usr/contrib/lib and
16817  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16818  # libtool to hard-code these into programs
16819  ;;
16820
16821cygwin* | mingw* | pw32* | cegcc*)
16822  version_type=windows
16823  shrext_cmds=".dll"
16824  need_version=no
16825  need_lib_prefix=no
16826
16827  case $GCC,$host_os in
16828  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16829    library_names_spec='$libname.dll.a'
16830    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16831    postinstall_cmds='base_file=`basename \${file}`~
16832      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16833      dldir=$destdir/`dirname \$dlpath`~
16834      test -d \$dldir || mkdir -p \$dldir~
16835      $install_prog $dir/$dlname \$dldir/$dlname~
16836      chmod a+x \$dldir/$dlname~
16837      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16838        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16839      fi'
16840    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16841      dlpath=$dir/\$dldll~
16842       $RM \$dlpath'
16843    shlibpath_overrides_runpath=yes
16844
16845    case $host_os in
16846    cygwin*)
16847      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16848      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16849      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16850      ;;
16851    mingw* | cegcc*)
16852      # MinGW DLLs use traditional 'lib' prefix
16853      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16854      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16855      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16856        # It is most probably a Windows format PATH printed by
16857        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16858        # path with ; separators, and with drive letters. We can handle the
16859        # drive letters (cygwin fileutils understands them), so leave them,
16860        # especially as we might pass files found there to a mingw objdump,
16861        # which wouldn't understand a cygwinified path. Ahh.
16862        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16863      else
16864        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16865      fi
16866      ;;
16867    pw32*)
16868      # pw32 DLLs use 'pw' prefix rather than 'lib'
16869      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16870      ;;
16871    esac
16872    ;;
16873
16874  *)
16875    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16876    ;;
16877  esac
16878  dynamic_linker='Win32 ld.exe'
16879  # FIXME: first we should search . and the directory the executable is in
16880  shlibpath_var=PATH
16881  ;;
16882
16883darwin* | rhapsody*)
16884  dynamic_linker="$host_os dyld"
16885  version_type=darwin
16886  need_lib_prefix=no
16887  need_version=no
16888  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16889  soname_spec='${libname}${release}${major}$shared_ext'
16890  shlibpath_overrides_runpath=yes
16891  shlibpath_var=DYLD_LIBRARY_PATH
16892  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16893
16894  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16895  ;;
16896
16897dgux*)
16898  version_type=linux
16899  need_lib_prefix=no
16900  need_version=no
16901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16902  soname_spec='${libname}${release}${shared_ext}$major'
16903  shlibpath_var=LD_LIBRARY_PATH
16904  ;;
16905
16906freebsd1*)
16907  dynamic_linker=no
16908  ;;
16909
16910freebsd* | dragonfly*)
16911  # DragonFly does not have aout.  When/if they implement a new
16912  # versioning mechanism, adjust this.
16913  if test -x /usr/bin/objformat; then
16914    objformat=`/usr/bin/objformat`
16915  else
16916    case $host_os in
16917    freebsd[123]*) objformat=aout ;;
16918    *) objformat=elf ;;
16919    esac
16920  fi
16921  version_type=freebsd-$objformat
16922  case $version_type in
16923    freebsd-elf*)
16924      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16925      need_version=no
16926      need_lib_prefix=no
16927      ;;
16928    freebsd-*)
16929      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16930      need_version=yes
16931      ;;
16932  esac
16933  shlibpath_var=LD_LIBRARY_PATH
16934  case $host_os in
16935  freebsd2*)
16936    shlibpath_overrides_runpath=yes
16937    ;;
16938  freebsd3.[01]* | freebsdelf3.[01]*)
16939    shlibpath_overrides_runpath=yes
16940    hardcode_into_libs=yes
16941    ;;
16942  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16943  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16944    shlibpath_overrides_runpath=no
16945    hardcode_into_libs=yes
16946    ;;
16947  *) # from 4.6 on, and DragonFly
16948    shlibpath_overrides_runpath=yes
16949    hardcode_into_libs=yes
16950    ;;
16951  esac
16952  ;;
16953
16954gnu*)
16955  version_type=linux
16956  need_lib_prefix=no
16957  need_version=no
16958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16959  soname_spec='${libname}${release}${shared_ext}$major'
16960  shlibpath_var=LD_LIBRARY_PATH
16961  hardcode_into_libs=yes
16962  ;;
16963
16964hpux9* | hpux10* | hpux11*)
16965  # Give a soname corresponding to the major version so that dld.sl refuses to
16966  # link against other versions.
16967  version_type=sunos
16968  need_lib_prefix=no
16969  need_version=no
16970  case $host_cpu in
16971  ia64*)
16972    shrext_cmds='.so'
16973    hardcode_into_libs=yes
16974    dynamic_linker="$host_os dld.so"
16975    shlibpath_var=LD_LIBRARY_PATH
16976    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16977    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16978    soname_spec='${libname}${release}${shared_ext}$major'
16979    if test "X$HPUX_IA64_MODE" = X32; then
16980      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16981    else
16982      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16983    fi
16984    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16985    ;;
16986  hppa*64*)
16987    shrext_cmds='.sl'
16988    hardcode_into_libs=yes
16989    dynamic_linker="$host_os dld.sl"
16990    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16991    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16992    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16993    soname_spec='${libname}${release}${shared_ext}$major'
16994    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16995    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16996    ;;
16997  *)
16998    shrext_cmds='.sl'
16999    dynamic_linker="$host_os dld.sl"
17000    shlibpath_var=SHLIB_PATH
17001    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17002    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17003    soname_spec='${libname}${release}${shared_ext}$major'
17004    ;;
17005  esac
17006  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17007  postinstall_cmds='chmod 555 $lib'
17008  ;;
17009
17010interix[3-9]*)
17011  version_type=linux
17012  need_lib_prefix=no
17013  need_version=no
17014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17015  soname_spec='${libname}${release}${shared_ext}$major'
17016  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17017  shlibpath_var=LD_LIBRARY_PATH
17018  shlibpath_overrides_runpath=no
17019  hardcode_into_libs=yes
17020  ;;
17021
17022irix5* | irix6* | nonstopux*)
17023  case $host_os in
17024    nonstopux*) version_type=nonstopux ;;
17025    *)
17026	if test "$lt_cv_prog_gnu_ld" = yes; then
17027		version_type=linux
17028	else
17029		version_type=irix
17030	fi ;;
17031  esac
17032  need_lib_prefix=no
17033  need_version=no
17034  soname_spec='${libname}${release}${shared_ext}$major'
17035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17036  case $host_os in
17037  irix5* | nonstopux*)
17038    libsuff= shlibsuff=
17039    ;;
17040  *)
17041    case $LD in # libtool.m4 will add one of these switches to LD
17042    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17043      libsuff= shlibsuff= libmagic=32-bit;;
17044    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17045      libsuff=32 shlibsuff=N32 libmagic=N32;;
17046    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17047      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17048    *) libsuff= shlibsuff= libmagic=never-match;;
17049    esac
17050    ;;
17051  esac
17052  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17053  shlibpath_overrides_runpath=no
17054  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17055  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17056  hardcode_into_libs=yes
17057  ;;
17058
17059# No shared lib support for Linux oldld, aout, or coff.
17060linux*oldld* | linux*aout* | linux*coff*)
17061  dynamic_linker=no
17062  ;;
17063
17064# This must be Linux ELF.
17065linux* | k*bsd*-gnu)
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17072  shlibpath_var=LD_LIBRARY_PATH
17073  shlibpath_overrides_runpath=no
17074  # Some binutils ld are patched to set DT_RUNPATH
17075  save_LDFLAGS=$LDFLAGS
17076  save_libdir=$libdir
17077  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17078       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17079  cat >conftest.$ac_ext <<_ACEOF
17080/* confdefs.h.  */
17081_ACEOF
17082cat confdefs.h >>conftest.$ac_ext
17083cat >>conftest.$ac_ext <<_ACEOF
17084/* end confdefs.h.  */
17085
17086int
17087main ()
17088{
17089
17090  ;
17091  return 0;
17092}
17093_ACEOF
17094rm -f conftest.$ac_objext conftest$ac_exeext
17095if { (ac_try="$ac_link"
17096case "(($ac_try" in
17097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098  *) ac_try_echo=$ac_try;;
17099esac
17100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17101$as_echo "$ac_try_echo") >&5
17102  (eval "$ac_link") 2>conftest.er1
17103  ac_status=$?
17104  grep -v '^ *+' conftest.er1 >conftest.err
17105  rm -f conftest.er1
17106  cat conftest.err >&5
17107  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108  (exit $ac_status); } && {
17109	 test -z "$ac_cxx_werror_flag" ||
17110	 test ! -s conftest.err
17111       } && test -s conftest$ac_exeext && {
17112	 test "$cross_compiling" = yes ||
17113	 $as_test_x conftest$ac_exeext
17114       }; then
17115  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
17116  shlibpath_overrides_runpath=yes
17117fi
17118
17119else
17120  $as_echo "$as_me: failed program was:" >&5
17121sed 's/^/| /' conftest.$ac_ext >&5
17122
17123
17124fi
17125
17126rm -rf conftest.dSYM
17127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17128      conftest$ac_exeext conftest.$ac_ext
17129  LDFLAGS=$save_LDFLAGS
17130  libdir=$save_libdir
17131
17132  # This implies no fast_install, which is unacceptable.
17133  # Some rework will be needed to allow for fast_install
17134  # before this can be enabled.
17135  hardcode_into_libs=yes
17136
17137  # Add ABI-specific directories to the system library path.
17138  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17139
17140  # Append ld.so.conf contents to the search path
17141  if test -f /etc/ld.so.conf; then
17142    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' ' '`
17143    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17144  fi
17145
17146  # We used to test for /lib/ld.so.1 and disable shared libraries on
17147  # powerpc, because MkLinux only supported shared libraries with the
17148  # GNU dynamic linker.  Since this was broken with cross compilers,
17149  # most powerpc-linux boxes support dynamic linking these days and
17150  # people can always --disable-shared, the test was removed, and we
17151  # assume the GNU/Linux dynamic linker is in use.
17152  dynamic_linker='GNU/Linux ld.so'
17153  ;;
17154
17155netbsd*)
17156  version_type=sunos
17157  need_lib_prefix=no
17158  need_version=no
17159  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17160    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17161    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17162    dynamic_linker='NetBSD (a.out) ld.so'
17163  else
17164    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165    soname_spec='${libname}${release}${shared_ext}$major'
17166    dynamic_linker='NetBSD ld.elf_so'
17167  fi
17168  shlibpath_var=LD_LIBRARY_PATH
17169  shlibpath_overrides_runpath=yes
17170  hardcode_into_libs=yes
17171  ;;
17172
17173newsos6)
17174  version_type=linux
17175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176  shlibpath_var=LD_LIBRARY_PATH
17177  shlibpath_overrides_runpath=yes
17178  ;;
17179
17180*nto* | *qnx*)
17181  version_type=qnx
17182  need_lib_prefix=no
17183  need_version=no
17184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185  soname_spec='${libname}${release}${shared_ext}$major'
17186  shlibpath_var=LD_LIBRARY_PATH
17187  shlibpath_overrides_runpath=no
17188  hardcode_into_libs=yes
17189  dynamic_linker='ldqnx.so'
17190  ;;
17191
17192openbsd*)
17193  version_type=sunos
17194  sys_lib_dlsearch_path_spec="/usr/lib"
17195  need_lib_prefix=no
17196  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17197  case $host_os in
17198    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17199    *)				need_version=no  ;;
17200  esac
17201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17202  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17203  shlibpath_var=LD_LIBRARY_PATH
17204  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17205    case $host_os in
17206      openbsd2.[89] | openbsd2.[89].*)
17207	shlibpath_overrides_runpath=no
17208	;;
17209      *)
17210	shlibpath_overrides_runpath=yes
17211	;;
17212      esac
17213  else
17214    shlibpath_overrides_runpath=yes
17215  fi
17216  ;;
17217
17218os2*)
17219  libname_spec='$name'
17220  shrext_cmds=".dll"
17221  need_lib_prefix=no
17222  library_names_spec='$libname${shared_ext} $libname.a'
17223  dynamic_linker='OS/2 ld.exe'
17224  shlibpath_var=LIBPATH
17225  ;;
17226
17227osf3* | osf4* | osf5*)
17228  version_type=osf
17229  need_lib_prefix=no
17230  need_version=no
17231  soname_spec='${libname}${release}${shared_ext}$major'
17232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233  shlibpath_var=LD_LIBRARY_PATH
17234  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17235  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17236  ;;
17237
17238rdos*)
17239  dynamic_linker=no
17240  ;;
17241
17242solaris*)
17243  version_type=linux
17244  need_lib_prefix=no
17245  need_version=no
17246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247  soname_spec='${libname}${release}${shared_ext}$major'
17248  shlibpath_var=LD_LIBRARY_PATH
17249  shlibpath_overrides_runpath=yes
17250  hardcode_into_libs=yes
17251  # ldd complains unless libraries are executable
17252  postinstall_cmds='chmod +x $lib'
17253  ;;
17254
17255sunos4*)
17256  version_type=sunos
17257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17258  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17259  shlibpath_var=LD_LIBRARY_PATH
17260  shlibpath_overrides_runpath=yes
17261  if test "$with_gnu_ld" = yes; then
17262    need_lib_prefix=no
17263  fi
17264  need_version=yes
17265  ;;
17266
17267sysv4 | sysv4.3*)
17268  version_type=linux
17269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270  soname_spec='${libname}${release}${shared_ext}$major'
17271  shlibpath_var=LD_LIBRARY_PATH
17272  case $host_vendor in
17273    sni)
17274      shlibpath_overrides_runpath=no
17275      need_lib_prefix=no
17276      runpath_var=LD_RUN_PATH
17277      ;;
17278    siemens)
17279      need_lib_prefix=no
17280      ;;
17281    motorola)
17282      need_lib_prefix=no
17283      need_version=no
17284      shlibpath_overrides_runpath=no
17285      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17286      ;;
17287  esac
17288  ;;
17289
17290sysv4*MP*)
17291  if test -d /usr/nec ;then
17292    version_type=linux
17293    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17294    soname_spec='$libname${shared_ext}.$major'
17295    shlibpath_var=LD_LIBRARY_PATH
17296  fi
17297  ;;
17298
17299sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17300  version_type=freebsd-elf
17301  need_lib_prefix=no
17302  need_version=no
17303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17304  soname_spec='${libname}${release}${shared_ext}$major'
17305  shlibpath_var=LD_LIBRARY_PATH
17306  shlibpath_overrides_runpath=yes
17307  hardcode_into_libs=yes
17308  if test "$with_gnu_ld" = yes; then
17309    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17310  else
17311    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17312    case $host_os in
17313      sco3.2v5*)
17314        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17315	;;
17316    esac
17317  fi
17318  sys_lib_dlsearch_path_spec='/usr/lib'
17319  ;;
17320
17321tpf*)
17322  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17323  version_type=linux
17324  need_lib_prefix=no
17325  need_version=no
17326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327  shlibpath_var=LD_LIBRARY_PATH
17328  shlibpath_overrides_runpath=no
17329  hardcode_into_libs=yes
17330  ;;
17331
17332uts4*)
17333  version_type=linux
17334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335  soname_spec='${libname}${release}${shared_ext}$major'
17336  shlibpath_var=LD_LIBRARY_PATH
17337  ;;
17338
17339*)
17340  dynamic_linker=no
17341  ;;
17342esac
17343{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17344$as_echo "$dynamic_linker" >&6; }
17345test "$dynamic_linker" = no && can_build_shared=no
17346
17347variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17348if test "$GCC" = yes; then
17349  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17350fi
17351
17352if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17353  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17354fi
17355if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17356  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17357fi
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394    { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17395$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17396hardcode_action_CXX=
17397if test -n "$hardcode_libdir_flag_spec_CXX" ||
17398   test -n "$runpath_var_CXX" ||
17399   test "X$hardcode_automatic_CXX" = "Xyes" ; then
17400
17401  # We can hardcode non-existent directories.
17402  if test "$hardcode_direct_CXX" != no &&
17403     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17404     # have to relink, otherwise we might link with an installed library
17405     # when we should be linking with a yet-to-be-installed one
17406     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17407     test "$hardcode_minus_L_CXX" != no; then
17408    # Linking always hardcodes the temporary library directory.
17409    hardcode_action_CXX=relink
17410  else
17411    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17412    hardcode_action_CXX=immediate
17413  fi
17414else
17415  # We cannot hardcode anything, or else we can only hardcode existing
17416  # directories.
17417  hardcode_action_CXX=unsupported
17418fi
17419{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17420$as_echo "$hardcode_action_CXX" >&6; }
17421
17422if test "$hardcode_action_CXX" = relink ||
17423   test "$inherit_rpath_CXX" = yes; then
17424  # Fast installation is not supported
17425  enable_fast_install=no
17426elif test "$shlibpath_overrides_runpath" = yes ||
17427     test "$enable_shared" = no; then
17428  # Fast installation is not necessary
17429  enable_fast_install=needless
17430fi
17431
17432
17433
17434
17435
17436
17437
17438  fi # test -n "$compiler"
17439
17440  CC=$lt_save_CC
17441  LDCXX=$LD
17442  LD=$lt_save_LD
17443  GCC=$lt_save_GCC
17444  with_gnu_ld=$lt_save_with_gnu_ld
17445  lt_cv_path_LDCXX=$lt_cv_path_LD
17446  lt_cv_path_LD=$lt_save_path_LD
17447  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17448  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17449fi # test "$_lt_caught_CXX_error" != yes
17450
17451ac_ext=c
17452ac_cpp='$CPP $CPPFLAGS'
17453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17455ac_compiler_gnu=$ac_cv_c_compiler_gnu
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469        ac_config_commands="$ac_config_commands libtool"
17470
17471
17472
17473
17474# Only expand once:
17475
17476
17477
17478
17479
17480
17481{ $as_echo "$as_me:$LINENO: checking for cpu-specific compiler flags" >&5
17482$as_echo_n "checking for cpu-specific compiler flags... " >&6; }
17483if test "$host_cpu" == "x86_64" && test $enable_static = "yes"; then
17484        { $as_echo "$as_me:$LINENO: result: x86_64/static: adding -fPIC" >&5
17485$as_echo "x86_64/static: adding -fPIC" >&6; }
17486        { $as_echo "$as_me:$LINENO: checking whether C compiler accepts -fPIC" >&5
17487$as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
17488if test "${ax_cv_check_cflags___fPIC+set}" = set; then
17489  $as_echo_n "(cached) " >&6
17490else
17491
17492  ax_check_save_flags=$CFLAGS
17493  CFLAGS="$CFLAGS  -fPIC"
17494  cat >conftest.$ac_ext <<_ACEOF
17495/* confdefs.h.  */
17496_ACEOF
17497cat confdefs.h >>conftest.$ac_ext
17498cat >>conftest.$ac_ext <<_ACEOF
17499/* end confdefs.h.  */
17500
17501int
17502main ()
17503{
17504
17505  ;
17506  return 0;
17507}
17508_ACEOF
17509rm -f conftest.$ac_objext
17510if { (ac_try="$ac_compile"
17511case "(($ac_try" in
17512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513  *) ac_try_echo=$ac_try;;
17514esac
17515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17516$as_echo "$ac_try_echo") >&5
17517  (eval "$ac_compile") 2>conftest.er1
17518  ac_status=$?
17519  grep -v '^ *+' conftest.er1 >conftest.err
17520  rm -f conftest.er1
17521  cat conftest.err >&5
17522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523  (exit $ac_status); } && {
17524	 test -z "$ac_c_werror_flag" ||
17525	 test ! -s conftest.err
17526       } && test -s conftest.$ac_objext; then
17527  ax_cv_check_cflags___fPIC=yes
17528else
17529  $as_echo "$as_me: failed program was:" >&5
17530sed 's/^/| /' conftest.$ac_ext >&5
17531
17532	ax_cv_check_cflags___fPIC=no
17533fi
17534
17535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17536  CFLAGS=$ax_check_save_flags
17537fi
17538{ $as_echo "$as_me:$LINENO: result: $ax_cv_check_cflags___fPIC" >&5
17539$as_echo "$ax_cv_check_cflags___fPIC" >&6; }
17540if test x"$ax_cv_check_cflags___fPIC" = xyes; then
17541  CPPFLAGS="$CPPFLAGS -fPIC"
17542else
17543  :
17544fi
17545
17546
17547else
17548        { $as_echo "$as_me:$LINENO: result: none needed" >&5
17549$as_echo "none needed" >&6; }
17550fi
17551
17552{ $as_echo "$as_me:$LINENO: checking for platform-specific compiler flags" >&5
17553$as_echo_n "checking for platform-specific compiler flags... " >&6; }
17554case "$host_os" in
17555 darwin*)
17556        # It may be called "cc", but it's really a GCC derivative
17557        # with a problematic special precompiler and precompiled
17558        # headers; turn off the special precompiler, as some
17559        # apparently-legal code won't compile with its precompiled
17560        # headers.
17561        { $as_echo "$as_me:$LINENO: result: Darwin: adding -no-cpp-precomp" >&5
17562$as_echo "Darwin: adding -no-cpp-precomp" >&6; }
17563        { $as_echo "$as_me:$LINENO: checking whether C compiler accepts -no-cpp-precomp" >&5
17564$as_echo_n "checking whether C compiler accepts -no-cpp-precomp... " >&6; }
17565if test "${ax_cv_check_cflags___no_cpp_precomp+set}" = set; then
17566  $as_echo_n "(cached) " >&6
17567else
17568
17569  ax_check_save_flags=$CFLAGS
17570  CFLAGS="$CFLAGS  -no-cpp-precomp"
17571  cat >conftest.$ac_ext <<_ACEOF
17572/* confdefs.h.  */
17573_ACEOF
17574cat confdefs.h >>conftest.$ac_ext
17575cat >>conftest.$ac_ext <<_ACEOF
17576/* end confdefs.h.  */
17577
17578int
17579main ()
17580{
17581
17582  ;
17583  return 0;
17584}
17585_ACEOF
17586rm -f conftest.$ac_objext
17587if { (ac_try="$ac_compile"
17588case "(($ac_try" in
17589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590  *) ac_try_echo=$ac_try;;
17591esac
17592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17593$as_echo "$ac_try_echo") >&5
17594  (eval "$ac_compile") 2>conftest.er1
17595  ac_status=$?
17596  grep -v '^ *+' conftest.er1 >conftest.err
17597  rm -f conftest.er1
17598  cat conftest.err >&5
17599  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600  (exit $ac_status); } && {
17601	 test -z "$ac_c_werror_flag" ||
17602	 test ! -s conftest.err
17603       } && test -s conftest.$ac_objext; then
17604  ax_cv_check_cflags___no_cpp_precomp=yes
17605else
17606  $as_echo "$as_me: failed program was:" >&5
17607sed 's/^/| /' conftest.$ac_ext >&5
17608
17609	ax_cv_check_cflags___no_cpp_precomp=no
17610fi
17611
17612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17613  CFLAGS=$ax_check_save_flags
17614fi
17615{ $as_echo "$as_me:$LINENO: result: $ax_cv_check_cflags___no_cpp_precomp" >&5
17616$as_echo "$ax_cv_check_cflags___no_cpp_precomp" >&6; }
17617if test x"$ax_cv_check_cflags___no_cpp_precomp" = xyes; then
17618  PCFLAGS="$PCFLAGS -no-cpp-precomp"
17619else
17620  :
17621fi
17622
17623
17624        libext=dylib
17625        ;;
17626 *)
17627        libext=so
17628        { $as_echo "$as_me:$LINENO: result: none needed" >&5
17629$as_echo "none needed" >&6; }
17630        ;;
17631esac
17632
17633{ $as_echo "$as_me:$LINENO: checking whether the linker accepts -z relro" >&5
17634$as_echo_n "checking whether the linker accepts -z relro... " >&6; }
17635if test "${ax_cv_check_ldflags___z_relro+set}" = set; then
17636  $as_echo_n "(cached) " >&6
17637else
17638
17639  ax_check_save_flags=$LDFLAGS
17640  LDFLAGS="$LDFLAGS  -z relro"
17641  cat >conftest.$ac_ext <<_ACEOF
17642/* confdefs.h.  */
17643_ACEOF
17644cat confdefs.h >>conftest.$ac_ext
17645cat >>conftest.$ac_ext <<_ACEOF
17646/* end confdefs.h.  */
17647
17648int
17649main ()
17650{
17651
17652  ;
17653  return 0;
17654}
17655_ACEOF
17656rm -f conftest.$ac_objext conftest$ac_exeext
17657if { (ac_try="$ac_link"
17658case "(($ac_try" in
17659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660  *) ac_try_echo=$ac_try;;
17661esac
17662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17663$as_echo "$ac_try_echo") >&5
17664  (eval "$ac_link") 2>conftest.er1
17665  ac_status=$?
17666  grep -v '^ *+' conftest.er1 >conftest.err
17667  rm -f conftest.er1
17668  cat conftest.err >&5
17669  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670  (exit $ac_status); } && {
17671	 test -z "$ac_c_werror_flag" ||
17672	 test ! -s conftest.err
17673       } && test -s conftest$ac_exeext && {
17674	 test "$cross_compiling" = yes ||
17675	 $as_test_x conftest$ac_exeext
17676       }; then
17677  ax_cv_check_ldflags___z_relro=yes
17678else
17679  $as_echo "$as_me: failed program was:" >&5
17680sed 's/^/| /' conftest.$ac_ext >&5
17681
17682	ax_cv_check_ldflags___z_relro=no
17683fi
17684
17685rm -rf conftest.dSYM
17686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17687      conftest$ac_exeext conftest.$ac_ext
17688  LDFLAGS=$ax_check_save_flags
17689fi
17690{ $as_echo "$as_me:$LINENO: result: $ax_cv_check_ldflags___z_relro" >&5
17691$as_echo "$ax_cv_check_ldflags___z_relro" >&6; }
17692if test x"$ax_cv_check_ldflags___z_relro" = xyes; then
17693  LDFLAGS="$LDFLAGS -z relro"
17694else
17695  :
17696fi
17697
17698
17699{ $as_echo "$as_me:$LINENO: checking whether the linker accepts -z now" >&5
17700$as_echo_n "checking whether the linker accepts -z now... " >&6; }
17701if test "${ax_cv_check_ldflags___z_now+set}" = set; then
17702  $as_echo_n "(cached) " >&6
17703else
17704
17705  ax_check_save_flags=$LDFLAGS
17706  LDFLAGS="$LDFLAGS  -z now"
17707  cat >conftest.$ac_ext <<_ACEOF
17708/* confdefs.h.  */
17709_ACEOF
17710cat confdefs.h >>conftest.$ac_ext
17711cat >>conftest.$ac_ext <<_ACEOF
17712/* end confdefs.h.  */
17713
17714int
17715main ()
17716{
17717
17718  ;
17719  return 0;
17720}
17721_ACEOF
17722rm -f conftest.$ac_objext conftest$ac_exeext
17723if { (ac_try="$ac_link"
17724case "(($ac_try" in
17725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726  *) ac_try_echo=$ac_try;;
17727esac
17728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17729$as_echo "$ac_try_echo") >&5
17730  (eval "$ac_link") 2>conftest.er1
17731  ac_status=$?
17732  grep -v '^ *+' conftest.er1 >conftest.err
17733  rm -f conftest.er1
17734  cat conftest.err >&5
17735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736  (exit $ac_status); } && {
17737	 test -z "$ac_c_werror_flag" ||
17738	 test ! -s conftest.err
17739       } && test -s conftest$ac_exeext && {
17740	 test "$cross_compiling" = yes ||
17741	 $as_test_x conftest$ac_exeext
17742       }; then
17743  ax_cv_check_ldflags___z_now=yes
17744else
17745  $as_echo "$as_me: failed program was:" >&5
17746sed 's/^/| /' conftest.$ac_ext >&5
17747
17748	ax_cv_check_ldflags___z_now=no
17749fi
17750
17751rm -rf conftest.dSYM
17752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17753      conftest$ac_exeext conftest.$ac_ext
17754  LDFLAGS=$ax_check_save_flags
17755fi
17756{ $as_echo "$as_me:$LINENO: result: $ax_cv_check_ldflags___z_now" >&5
17757$as_echo "$ax_cv_check_ldflags___z_now" >&6; }
17758if test x"$ax_cv_check_ldflags___z_now" = xyes; then
17759  LDFLAGS="$LDFLAGS -z now"
17760else
17761  :
17762fi
17763
17764
17765
17766
17767for i in -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
17768         -Wbad-function-cast -Wcast-qual -Wcast-align -Wnested-externs -Wunused \
17769         -Wformat -Wformat-security; do
17770        as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$i" | $as_tr_sh`
17771{ $as_echo "$as_me:$LINENO: checking whether C compiler accepts $i" >&5
17772$as_echo_n "checking whether C compiler accepts $i... " >&6; }
17773if { as_var=$as_CACHEVAR; eval "test \"\${$as_var+set}\" = set"; }; then
17774  $as_echo_n "(cached) " >&6
17775else
17776
17777  ax_check_save_flags=$CFLAGS
17778  CFLAGS="$CFLAGS  $i"
17779  cat >conftest.$ac_ext <<_ACEOF
17780/* confdefs.h.  */
17781_ACEOF
17782cat confdefs.h >>conftest.$ac_ext
17783cat >>conftest.$ac_ext <<_ACEOF
17784/* end confdefs.h.  */
17785
17786int
17787main ()
17788{
17789
17790  ;
17791  return 0;
17792}
17793_ACEOF
17794rm -f conftest.$ac_objext
17795if { (ac_try="$ac_compile"
17796case "(($ac_try" in
17797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798  *) ac_try_echo=$ac_try;;
17799esac
17800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17801$as_echo "$ac_try_echo") >&5
17802  (eval "$ac_compile") 2>conftest.er1
17803  ac_status=$?
17804  grep -v '^ *+' conftest.er1 >conftest.err
17805  rm -f conftest.er1
17806  cat conftest.err >&5
17807  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808  (exit $ac_status); } && {
17809	 test -z "$ac_c_werror_flag" ||
17810	 test ! -s conftest.err
17811       } && test -s conftest.$ac_objext; then
17812  eval "$as_CACHEVAR=yes"
17813else
17814  $as_echo "$as_me: failed program was:" >&5
17815sed 's/^/| /' conftest.$ac_ext >&5
17816
17817	eval "$as_CACHEVAR=no"
17818fi
17819
17820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821  CFLAGS=$ax_check_save_flags
17822fi
17823ac_res=`eval 'as_val=${'$as_CACHEVAR'}
17824		 $as_echo "$as_val"'`
17825	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17826$as_echo "$ac_res" >&6; }
17827if test x"`eval 'as_val=${'$as_CACHEVAR'}
17828		 $as_echo "$as_val"'`" = xyes; then
17829  PCFLAGS="$PCFLAGS $i"
17830else
17831  :
17832fi
17833
17834
17835done
17836
17837if test x$buggy_pthread_initializers = xyes; then
17838   { $as_echo "$as_me:$LINENO: checking whether C compiler accepts -Wno-missing-braces" >&5
17839$as_echo_n "checking whether C compiler accepts -Wno-missing-braces... " >&6; }
17840if test "${ax_cv_check_cflags___Wno_missing_braces+set}" = set; then
17841  $as_echo_n "(cached) " >&6
17842else
17843
17844  ax_check_save_flags=$CFLAGS
17845  CFLAGS="$CFLAGS  -Wno-missing-braces"
17846  cat >conftest.$ac_ext <<_ACEOF
17847/* confdefs.h.  */
17848_ACEOF
17849cat confdefs.h >>conftest.$ac_ext
17850cat >>conftest.$ac_ext <<_ACEOF
17851/* end confdefs.h.  */
17852
17853int
17854main ()
17855{
17856
17857  ;
17858  return 0;
17859}
17860_ACEOF
17861rm -f conftest.$ac_objext
17862if { (ac_try="$ac_compile"
17863case "(($ac_try" in
17864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865  *) ac_try_echo=$ac_try;;
17866esac
17867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17868$as_echo "$ac_try_echo") >&5
17869  (eval "$ac_compile") 2>conftest.er1
17870  ac_status=$?
17871  grep -v '^ *+' conftest.er1 >conftest.err
17872  rm -f conftest.er1
17873  cat conftest.err >&5
17874  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875  (exit $ac_status); } && {
17876	 test -z "$ac_c_werror_flag" ||
17877	 test ! -s conftest.err
17878       } && test -s conftest.$ac_objext; then
17879  ax_cv_check_cflags___Wno_missing_braces=yes
17880else
17881  $as_echo "$as_me: failed program was:" >&5
17882sed 's/^/| /' conftest.$ac_ext >&5
17883
17884	ax_cv_check_cflags___Wno_missing_braces=no
17885fi
17886
17887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17888  CFLAGS=$ax_check_save_flags
17889fi
17890{ $as_echo "$as_me:$LINENO: result: $ax_cv_check_cflags___Wno_missing_braces" >&5
17891$as_echo "$ax_cv_check_cflags___Wno_missing_braces" >&6; }
17892if test x"$ax_cv_check_cflags___Wno_missing_braces" = xyes; then
17893  PCFLAGS="$PCFLAGS -Wno-missing-braces"
17894else
17895  :
17896fi
17897
17898
17899fi
17900
17901
17902
17903
17904# Check whether --with-libprelude-prefix was given.
17905if test "${with_libprelude_prefix+set}" = set; then
17906  withval=$with_libprelude_prefix; libprelude_config_prefix="$withval"
17907else
17908  libprelude_config_prefix=""
17909fi
17910
17911
17912  if test x$libprelude_config_prefix != x ; then
17913     if test x${LIBPRELUDE_CONFIG+set} != xset ; then
17914        LIBPRELUDE_CONFIG=$libprelude_config_prefix/bin/libprelude-config
17915     fi
17916  fi
17917
17918  # Extract the first word of "libprelude-config", so it can be a program name with args.
17919set dummy libprelude-config; ac_word=$2
17920{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17921$as_echo_n "checking for $ac_word... " >&6; }
17922if test "${ac_cv_path_LIBPRELUDE_CONFIG+set}" = set; then
17923  $as_echo_n "(cached) " >&6
17924else
17925  case $LIBPRELUDE_CONFIG in
17926  [\\/]* | ?:[\\/]*)
17927  ac_cv_path_LIBPRELUDE_CONFIG="$LIBPRELUDE_CONFIG" # Let the user override the test with a path.
17928  ;;
17929  *)
17930  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17931for as_dir in $PATH
17932do
17933  IFS=$as_save_IFS
17934  test -z "$as_dir" && as_dir=.
17935  for ac_exec_ext in '' $ac_executable_extensions; do
17936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17937    ac_cv_path_LIBPRELUDE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17938    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17939    break 2
17940  fi
17941done
17942done
17943IFS=$as_save_IFS
17944
17945  test -z "$ac_cv_path_LIBPRELUDE_CONFIG" && ac_cv_path_LIBPRELUDE_CONFIG="no"
17946  ;;
17947esac
17948fi
17949LIBPRELUDE_CONFIG=$ac_cv_path_LIBPRELUDE_CONFIG
17950if test -n "$LIBPRELUDE_CONFIG"; then
17951  { $as_echo "$as_me:$LINENO: result: $LIBPRELUDE_CONFIG" >&5
17952$as_echo "$LIBPRELUDE_CONFIG" >&6; }
17953else
17954  { $as_echo "$as_me:$LINENO: result: no" >&5
17955$as_echo "no" >&6; }
17956fi
17957
17958
17959  if test "$LIBPRELUDE_CONFIG" != "no"; then
17960  	if $($LIBPRELUDE_CONFIG --thread > /dev/null 2>&1); then
17961        	LIBPRELUDE_PTHREAD_CFLAGS=`$LIBPRELUDE_CONFIG --thread --cflags`
17962
17963        	if test xno = xtrue || test xno = xyes; then
17964                	libprelude_config_args="--thread"
17965        	else
17966                	libprelude_config_args="--no-thread"
17967        	fi
17968  	else
17969        	LIBPRELUDE_PTHREAD_CFLAGS=`$LIBPRELUDE_CONFIG --pthread-cflags`
17970  	fi
17971  fi
17972
17973  min_libprelude_version=1.2.6
17974  { $as_echo "$as_me:$LINENO: checking for libprelude - version >= $min_libprelude_version" >&5
17975$as_echo_n "checking for libprelude - version >= $min_libprelude_version... " >&6; }
17976  no_libprelude=""
17977  if test "$LIBPRELUDE_CONFIG" = "no" ; then
17978    no_libprelude=yes
17979  else
17980    LIBPRELUDE_CFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --cflags`
17981    LIBPRELUDE_LDFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --ldflags`
17982    LIBPRELUDE_LIBS=`$LIBPRELUDE_CONFIG $libprelude_config_args --libs`
17983    LIBPRELUDE_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --prefix`
17984    LIBPRELUDE_CONFIG_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --config-prefix`
17985    libprelude_config_version=`$LIBPRELUDE_CONFIG $libprelude_config_args --version`
17986
17987
17988      ac_save_CFLAGS="$CFLAGS"
17989      ac_save_LDFLAGS="$LDFLAGS"
17990      ac_save_LIBS="$LIBS"
17991      CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
17992      LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
17993      LIBS="$LIBS $LIBPRELUDE_LIBS"
17994      rm -f conf.libpreludetest
17995      if test "$cross_compiling" = yes; then
17996  echo $ac_n "cross compiling; assumed OK... $ac_c"
17997else
17998  cat >conftest.$ac_ext <<_ACEOF
17999/* confdefs.h.  */
18000_ACEOF
18001cat confdefs.h >>conftest.$ac_ext
18002cat >>conftest.$ac_ext <<_ACEOF
18003/* end confdefs.h.  */
18004
18005#include <stdio.h>
18006#include <stdlib.h>
18007#include <string.h>
18008#include <libprelude/prelude.h>
18009
18010int
18011main ()
18012{
18013    system ("touch conf.libpreludetest");
18014
18015    if( strcmp( prelude_check_version(NULL), "$libprelude_config_version" ) )
18016    {
18017      printf("\n*** 'libprelude-config --version' returned %s, but LIBPRELUDE (%s)\n",
18018             "$libprelude_config_version", prelude_check_version(NULL) );
18019      printf("*** was found! If libprelude-config was correct, then it is best\n");
18020      printf("*** to remove the old version of LIBPRELUDE. You may also be able to fix the error\n");
18021      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
18022      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
18023      printf("*** required on your system.\n");
18024      printf("*** If libprelude-config was wrong, set the environment variable LIBPRELUDE_CONFIG\n");
18025      printf("*** to point to the correct copy of libprelude-config, and remove the file config.cache\n");
18026      printf("*** before re-running configure\n");
18027    }
18028    else if ( strcmp(prelude_check_version(NULL), LIBPRELUDE_VERSION ) ) {
18029        printf("\n*** LIBPRELUDE header file (version %s) does not match\n", LIBPRELUDE_VERSION);
18030        printf("*** library (version %s)\n", prelude_check_version(NULL) );
18031    }
18032    else {
18033      if ( prelude_check_version( "$min_libprelude_version" ) )
18034        return 0;
18035      else {
18036        printf("no\n*** An old version of LIBPRELUDE (%s) was found.\n",
18037                prelude_check_version(NULL) );
18038        printf("*** You need a version of LIBPRELUDE newer than %s. The latest version of\n",
18039               "$min_libprelude_version" );
18040        printf("*** LIBPRELUDE is always available from https://www.prelude-siem.org/project/prelude/files\n");
18041        printf("*** \n");
18042        printf("*** If you have already installed a sufficiently new version, this error\n");
18043        printf("*** probably means that the wrong copy of the libprelude-config shell script is\n");
18044        printf("*** being found. The easiest way to fix this is to remove the old version\n");
18045        printf("*** of LIBPRELUDE, but you can also set the LIBPRELUDE_CONFIG environment to point to the\n");
18046        printf("*** correct copy of libprelude-config. (In this case, you will have to\n");
18047        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
18048        printf("*** so that the correct libraries are found at run-time))\n");
18049      }
18050    }
18051    return 1;
18052}
18053
18054_ACEOF
18055rm -f conftest$ac_exeext
18056if { (ac_try="$ac_link"
18057case "(($ac_try" in
18058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059  *) ac_try_echo=$ac_try;;
18060esac
18061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18062$as_echo "$ac_try_echo") >&5
18063  (eval "$ac_link") 2>&5
18064  ac_status=$?
18065  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18067  { (case "(($ac_try" in
18068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069  *) ac_try_echo=$ac_try;;
18070esac
18071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18072$as_echo "$ac_try_echo") >&5
18073  (eval "$ac_try") 2>&5
18074  ac_status=$?
18075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076  (exit $ac_status); }; }; then
18077  :
18078else
18079  $as_echo "$as_me: program exited with status $ac_status" >&5
18080$as_echo "$as_me: failed program was:" >&5
18081sed 's/^/| /' conftest.$ac_ext >&5
18082
18083( exit $ac_status )
18084no_libprelude=yes
18085fi
18086rm -rf conftest.dSYM
18087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18088fi
18089
18090
18091       CFLAGS="$ac_save_CFLAGS"
18092       LIBS="$ac_save_LIBS"
18093       LDFLAGS="$ac_save_LDFLAGS"
18094  fi
18095
18096  if test "x$no_libprelude" = x ; then
18097     { $as_echo "$as_me:$LINENO: result: yes" >&5
18098$as_echo "yes" >&6; }
18099     :
18100  else
18101     if test -f conf.libpreludetest ; then
18102        :
18103     else
18104        { $as_echo "$as_me:$LINENO: result: no" >&5
18105$as_echo "no" >&6; }
18106     fi
18107     if test "$LIBPRELUDE_CONFIG" = "no" ; then
18108       echo "*** The libprelude-config script installed by LIBPRELUDE could not be found"
18109       echo "*** If LIBPRELUDE was installed in PREFIX, make sure PREFIX/bin is in"
18110       echo "*** your path, or set the LIBPRELUDE_CONFIG environment variable to the"
18111       echo "*** full path to libprelude-config."
18112     else
18113       if test -f conf.libpreludetest ; then
18114        :
18115       else
18116          echo "*** Could not run libprelude test program, checking why..."
18117          CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
18118          LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
18119          LIBS="$LIBS $LIBPRELUDE_LIBS"
18120          cat >conftest.$ac_ext <<_ACEOF
18121/* confdefs.h.  */
18122_ACEOF
18123cat confdefs.h >>conftest.$ac_ext
18124cat >>conftest.$ac_ext <<_ACEOF
18125/* end confdefs.h.  */
18126
18127#include <stdio.h>
18128#include <stdlib.h>
18129#include <string.h>
18130#include <libprelude/prelude.h>
18131
18132int
18133main ()
18134{
18135 return !!prelude_check_version(NULL);
18136  ;
18137  return 0;
18138}
18139_ACEOF
18140rm -f conftest.$ac_objext conftest$ac_exeext
18141if { (ac_try="$ac_link"
18142case "(($ac_try" in
18143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144  *) ac_try_echo=$ac_try;;
18145esac
18146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18147$as_echo "$ac_try_echo") >&5
18148  (eval "$ac_link") 2>conftest.er1
18149  ac_status=$?
18150  grep -v '^ *+' conftest.er1 >conftest.err
18151  rm -f conftest.er1
18152  cat conftest.err >&5
18153  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154  (exit $ac_status); } && {
18155	 test -z "$ac_c_werror_flag" ||
18156	 test ! -s conftest.err
18157       } && test -s conftest$ac_exeext && {
18158	 test "$cross_compiling" = yes ||
18159	 $as_test_x conftest$ac_exeext
18160       }; then
18161   echo "*** The test program compiled, but did not run. This usually means"
18162          echo "*** that the run-time linker is not finding LIBPRELUDE or finding the wrong"
18163          echo "*** version of LIBPRELUDE. If it is not finding LIBPRELUDE, you'll need to set your"
18164          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18165          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
18166          echo "*** is required on your system"
18167          echo "***"
18168          echo "*** If you have an old version installed, it is best to remove it, although"
18169          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18170          echo "***"
18171else
18172  $as_echo "$as_me: failed program was:" >&5
18173sed 's/^/| /' conftest.$ac_ext >&5
18174
18175	 echo "*** The test program failed to compile or link. See the file config.log for the"
18176          echo "*** exact error that occured. This usually means LIBPRELUDE was incorrectly installed"
18177          echo "*** or that you have moved LIBPRELUDE since it was installed. In the latter case, you"
18178          echo "*** may want to edit the libprelude-config script: $LIBPRELUDE_CONFIG"
18179fi
18180
18181rm -rf conftest.dSYM
18182rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18183      conftest$ac_exeext conftest.$ac_ext
18184          CFLAGS="$ac_save_CFLAGS"
18185          LDFLAGS="$ac_save_LDFLAGS"
18186          LIBS="$ac_save_LIBS"
18187       fi
18188     fi
18189     LIBPRELUDE_CFLAGS=""
18190     LIBPRELUDE_LDFLAGS=""
18191     LIBPRELUDE_LIBS=""
18192     { { $as_echo "$as_me:$LINENO: error: Cannot find libprelude: Is libprelude-config in the path?" >&5
18193$as_echo "$as_me: error: Cannot find libprelude: Is libprelude-config in the path?" >&2;}
18194   { (exit 1); exit 1; }; }
18195  fi
18196  rm -f conf.libpreludetest
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208# Check whether --with-mysql was given.
18209if test "${with_mysql+set}" = set; then
18210  withval=$with_mysql;
18211        if test "$withval" = "no"; then
18212            want_mysql="no"
18213        elif test "$withval" = "yes"; then
18214            want_mysql="yes"
18215        else
18216            want_mysql="yes"
18217            MYSQL_CONFIG="$withval"
18218        fi
18219
18220else
18221  want_mysql="yes"
18222
18223fi
18224
18225
18226
18227    MYSQL_CFLAGS=""
18228    MYSQL_LDFLAGS=""
18229    MYSQL_VERSION=""
18230
18231
18232    if test "$want_mysql" = "yes"; then
18233
18234        if test -z "$MYSQL_CONFIG" ; then
18235            for ac_prog in mysql_config mysql_config5
18236do
18237  # Extract the first word of "$ac_prog", so it can be a program name with args.
18238set dummy $ac_prog; ac_word=$2
18239{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18240$as_echo_n "checking for $ac_word... " >&6; }
18241if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
18242  $as_echo_n "(cached) " >&6
18243else
18244  case $MYSQL_CONFIG in
18245  [\\/]* | ?:[\\/]*)
18246  ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
18247  ;;
18248  *)
18249  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18250for as_dir in $PATH
18251do
18252  IFS=$as_save_IFS
18253  test -z "$as_dir" && as_dir=.
18254  for ac_exec_ext in '' $ac_executable_extensions; do
18255  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18256    ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18257    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18258    break 2
18259  fi
18260done
18261done
18262IFS=$as_save_IFS
18263
18264  ;;
18265esac
18266fi
18267MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
18268if test -n "$MYSQL_CONFIG"; then
18269  { $as_echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
18270$as_echo "$MYSQL_CONFIG" >&6; }
18271else
18272  { $as_echo "$as_me:$LINENO: result: no" >&5
18273$as_echo "no" >&6; }
18274fi
18275
18276
18277  test -n "$MYSQL_CONFIG" && break
18278done
18279test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="no"
18280
18281        fi
18282
18283        if test "$MYSQL_CONFIG" != "no"; then
18284            MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
18285            MYSQL_LDFLAGS="`$MYSQL_CONFIG --libs`"
18286
18287            MYSQL_VERSION=`$MYSQL_CONFIG --version`
18288
18289            found_mysql="yes"
18290        else
18291            found_mysql="no"
18292        fi
18293    fi
18294
18295
18296
18297    mysql_version_req=
18298
18299    if test "$found_mysql" = "yes" -a -n "$mysql_version_req"; then
18300
18301        { $as_echo "$as_me:$LINENO: checking if MySQL version is >= $mysql_version_req" >&5
18302$as_echo_n "checking if MySQL version is >= $mysql_version_req... " >&6; }
18303
18304                        mysql_version_req_major=`expr $mysql_version_req : '\([0-9]*\)'`
18305        mysql_version_req_minor=`expr $mysql_version_req : '[0-9]*\.\([0-9]*\)'`
18306        mysql_version_req_micro=`expr $mysql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
18307        if test "x$mysql_version_req_micro" = "x"; then
18308            mysql_version_req_micro="0"
18309        fi
18310
18311        mysql_version_req_number=`expr $mysql_version_req_major \* 1000000 \
18312                                   \+ $mysql_version_req_minor \* 1000 \
18313                                   \+ $mysql_version_req_micro`
18314
18315                        mysql_version_major=`expr $MYSQL_VERSION : '\([0-9]*\)'`
18316        mysql_version_minor=`expr $MYSQL_VERSION : '[0-9]*\.\([0-9]*\)'`
18317        mysql_version_micro=`expr $MYSQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
18318        if test "x$mysql_version_micro" = "x"; then
18319            mysql_version_micro="0"
18320        fi
18321
18322        mysql_version_number=`expr $mysql_version_major \* 1000000 \
18323                                   \+ $mysql_version_minor \* 1000 \
18324                                   \+ $mysql_version_micro`
18325
18326        mysql_version_check=`expr $mysql_version_number \>\= $mysql_version_req_number`
18327        if test "$mysql_version_check" = "1"; then
18328            { $as_echo "$as_me:$LINENO: result: yes" >&5
18329$as_echo "yes" >&6; }
18330        else
18331            { $as_echo "$as_me:$LINENO: result: no" >&5
18332$as_echo "no" >&6; }
18333        fi
18334    fi
18335
18336    if test "$found_mysql" = "yes" ; then
18337
18338cat >>confdefs.h <<\_ACEOF
18339#define HAVE_MYSQL 1
18340_ACEOF
18341
18342    fi
18343
18344
18345
18346
18347
18348with_mysql="no"
18349if test x$MYSQL_CONFIG != x; then
18350        LIBS_bkp=$LIBS
18351        LIBS="$MYSQL_LDFLAGS"
18352        { $as_echo "$as_me:$LINENO: checking for mysql_real_escape_string" >&5
18353$as_echo_n "checking for mysql_real_escape_string... " >&6; }
18354if test "${ac_cv_func_mysql_real_escape_string+set}" = set; then
18355  $as_echo_n "(cached) " >&6
18356else
18357  cat >conftest.$ac_ext <<_ACEOF
18358/* confdefs.h.  */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h.  */
18363/* Define mysql_real_escape_string to an innocuous variant, in case <limits.h> declares mysql_real_escape_string.
18364   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18365#define mysql_real_escape_string innocuous_mysql_real_escape_string
18366
18367/* System header to define __stub macros and hopefully few prototypes,
18368    which can conflict with char mysql_real_escape_string (); below.
18369    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18370    <limits.h> exists even on freestanding compilers.  */
18371
18372#ifdef __STDC__
18373# include <limits.h>
18374#else
18375# include <assert.h>
18376#endif
18377
18378#undef mysql_real_escape_string
18379
18380/* Override any GCC internal prototype to avoid an error.
18381   Use char because int might match the return type of a GCC
18382   builtin and then its argument prototype would still apply.  */
18383#ifdef __cplusplus
18384extern "C"
18385#endif
18386char mysql_real_escape_string ();
18387/* The GNU C library defines this for functions which it implements
18388    to always fail with ENOSYS.  Some functions are actually named
18389    something starting with __ and the normal name is an alias.  */
18390#if defined __stub_mysql_real_escape_string || defined __stub___mysql_real_escape_string
18391choke me
18392#endif
18393
18394int
18395main ()
18396{
18397return mysql_real_escape_string ();
18398  ;
18399  return 0;
18400}
18401_ACEOF
18402rm -f conftest.$ac_objext conftest$ac_exeext
18403if { (ac_try="$ac_link"
18404case "(($ac_try" in
18405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406  *) ac_try_echo=$ac_try;;
18407esac
18408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18409$as_echo "$ac_try_echo") >&5
18410  (eval "$ac_link") 2>conftest.er1
18411  ac_status=$?
18412  grep -v '^ *+' conftest.er1 >conftest.err
18413  rm -f conftest.er1
18414  cat conftest.err >&5
18415  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416  (exit $ac_status); } && {
18417	 test -z "$ac_c_werror_flag" ||
18418	 test ! -s conftest.err
18419       } && test -s conftest$ac_exeext && {
18420	 test "$cross_compiling" = yes ||
18421	 $as_test_x conftest$ac_exeext
18422       }; then
18423  ac_cv_func_mysql_real_escape_string=yes
18424else
18425  $as_echo "$as_me: failed program was:" >&5
18426sed 's/^/| /' conftest.$ac_ext >&5
18427
18428	ac_cv_func_mysql_real_escape_string=no
18429fi
18430
18431rm -rf conftest.dSYM
18432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18433      conftest$ac_exeext conftest.$ac_ext
18434fi
18435{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_escape_string" >&5
18436$as_echo "$ac_cv_func_mysql_real_escape_string" >&6; }
18437if test "x$ac_cv_func_mysql_real_escape_string" = x""yes; then
18438
18439cat >>confdefs.h <<\_ACEOF
18440#define HAVE_MYSQL_REAL_ESCAPE_STRING /**/
18441_ACEOF
18442
18443fi
18444
18445        LIBS=$LIBS_bkp
18446
18447        CPPFLAGS_bkp=$CPPFLAGS
18448        CPPFLAGS="$MYSQL_CFLAGS"
18449        if test "${ac_cv_header_mysql_h+set}" = set; then
18450  { $as_echo "$as_me:$LINENO: checking for mysql.h" >&5
18451$as_echo_n "checking for mysql.h... " >&6; }
18452if test "${ac_cv_header_mysql_h+set}" = set; then
18453  $as_echo_n "(cached) " >&6
18454fi
18455{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
18456$as_echo "$ac_cv_header_mysql_h" >&6; }
18457else
18458  # Is the header compilable?
18459{ $as_echo "$as_me:$LINENO: checking mysql.h usability" >&5
18460$as_echo_n "checking mysql.h usability... " >&6; }
18461cat >conftest.$ac_ext <<_ACEOF
18462/* confdefs.h.  */
18463_ACEOF
18464cat confdefs.h >>conftest.$ac_ext
18465cat >>conftest.$ac_ext <<_ACEOF
18466/* end confdefs.h.  */
18467$ac_includes_default
18468#include <mysql.h>
18469_ACEOF
18470rm -f conftest.$ac_objext
18471if { (ac_try="$ac_compile"
18472case "(($ac_try" in
18473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474  *) ac_try_echo=$ac_try;;
18475esac
18476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18477$as_echo "$ac_try_echo") >&5
18478  (eval "$ac_compile") 2>conftest.er1
18479  ac_status=$?
18480  grep -v '^ *+' conftest.er1 >conftest.err
18481  rm -f conftest.er1
18482  cat conftest.err >&5
18483  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484  (exit $ac_status); } && {
18485	 test -z "$ac_c_werror_flag" ||
18486	 test ! -s conftest.err
18487       } && test -s conftest.$ac_objext; then
18488  ac_header_compiler=yes
18489else
18490  $as_echo "$as_me: failed program was:" >&5
18491sed 's/^/| /' conftest.$ac_ext >&5
18492
18493	ac_header_compiler=no
18494fi
18495
18496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18497{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18498$as_echo "$ac_header_compiler" >&6; }
18499
18500# Is the header present?
18501{ $as_echo "$as_me:$LINENO: checking mysql.h presence" >&5
18502$as_echo_n "checking mysql.h presence... " >&6; }
18503cat >conftest.$ac_ext <<_ACEOF
18504/* confdefs.h.  */
18505_ACEOF
18506cat confdefs.h >>conftest.$ac_ext
18507cat >>conftest.$ac_ext <<_ACEOF
18508/* end confdefs.h.  */
18509#include <mysql.h>
18510_ACEOF
18511if { (ac_try="$ac_cpp conftest.$ac_ext"
18512case "(($ac_try" in
18513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514  *) ac_try_echo=$ac_try;;
18515esac
18516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18517$as_echo "$ac_try_echo") >&5
18518  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18519  ac_status=$?
18520  grep -v '^ *+' conftest.er1 >conftest.err
18521  rm -f conftest.er1
18522  cat conftest.err >&5
18523  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524  (exit $ac_status); } >/dev/null && {
18525	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18526	 test ! -s conftest.err
18527       }; then
18528  ac_header_preproc=yes
18529else
18530  $as_echo "$as_me: failed program was:" >&5
18531sed 's/^/| /' conftest.$ac_ext >&5
18532
18533  ac_header_preproc=no
18534fi
18535
18536rm -f conftest.err conftest.$ac_ext
18537{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18538$as_echo "$ac_header_preproc" >&6; }
18539
18540# So?  What about this header?
18541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18542  yes:no: )
18543    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
18544$as_echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18545    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
18546$as_echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
18547    ac_header_preproc=yes
18548    ;;
18549  no:yes:* )
18550    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
18551$as_echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
18552    { $as_echo "$as_me:$LINENO: WARNING: mysql.h:     check for missing prerequisite headers?" >&5
18553$as_echo "$as_me: WARNING: mysql.h:     check for missing prerequisite headers?" >&2;}
18554    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
18555$as_echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
18556    { $as_echo "$as_me:$LINENO: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
18557$as_echo "$as_me: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18558    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
18559$as_echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
18560    { $as_echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
18561$as_echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
18562
18563    ;;
18564esac
18565{ $as_echo "$as_me:$LINENO: checking for mysql.h" >&5
18566$as_echo_n "checking for mysql.h... " >&6; }
18567if test "${ac_cv_header_mysql_h+set}" = set; then
18568  $as_echo_n "(cached) " >&6
18569else
18570  ac_cv_header_mysql_h=$ac_header_preproc
18571fi
18572{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
18573$as_echo "$ac_cv_header_mysql_h" >&6; }
18574
18575fi
18576if test "x$ac_cv_header_mysql_h" = x""yes; then
18577  with_mysql=yes
18578else
18579  with_mysql=no
18580fi
18581
18582
18583        CPPFLAGS=$CPPFLAGS_bkp;
18584fi
18585
18586 if test x$with_mysql = xyes; then
18587  HAVE_MYSQL_TRUE=
18588  HAVE_MYSQL_FALSE='#'
18589else
18590  HAVE_MYSQL_TRUE='#'
18591  HAVE_MYSQL_FALSE=
18592fi
18593
18594
18595
18596
18597
18598# Check whether --with-postgresql was given.
18599if test "${with_postgresql+set}" = set; then
18600  withval=$with_postgresql;
18601        if test "$withval" = "no"; then
18602            want_postgresql="no"
18603        elif test "$withval" = "yes"; then
18604            want_postgresql="yes"
18605        else
18606            want_postgresql="yes"
18607            PG_CONFIG="$withval"
18608        fi
18609
18610else
18611  want_postgresql="yes"
18612
18613fi
18614
18615
18616    POSTGRESQL_CFLAGS=""
18617    POSTGRESQL_LDFLAGS=""
18618    POSTGRESQL_VERSION=""
18619
18620
18621    if test "$want_postgresql" = "yes"; then
18622        { $as_echo "$as_me:$LINENO: checking for $PG_CONFIG" >&5
18623$as_echo_n "checking for $PG_CONFIG... " >&6; }
18624        if test -z "$PG_CONFIG" -o test; then
18625            # Extract the first word of "pg_config", so it can be a program name with args.
18626set dummy pg_config; ac_word=$2
18627{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18628$as_echo_n "checking for $ac_word... " >&6; }
18629if test "${ac_cv_path_PG_CONFIG+set}" = set; then
18630  $as_echo_n "(cached) " >&6
18631else
18632  case $PG_CONFIG in
18633  [\\/]* | ?:[\\/]*)
18634  ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
18635  ;;
18636  *)
18637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18638for as_dir in $PATH
18639do
18640  IFS=$as_save_IFS
18641  test -z "$as_dir" && as_dir=.
18642  for ac_exec_ext in '' $ac_executable_extensions; do
18643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18644    ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18645    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18646    break 2
18647  fi
18648done
18649done
18650IFS=$as_save_IFS
18651
18652  ;;
18653esac
18654fi
18655PG_CONFIG=$ac_cv_path_PG_CONFIG
18656if test -n "$PG_CONFIG"; then
18657  { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
18658$as_echo "$PG_CONFIG" >&6; }
18659else
18660  { $as_echo "$as_me:$LINENO: result: no" >&5
18661$as_echo "no" >&6; }
18662fi
18663
18664
18665        fi
18666
18667        if test ! -x "$PG_CONFIG"; then
18668            { $as_echo "$as_me:$LINENO: result: $PG_CONFIG does not exist or it is not an exectuable file" >&5
18669$as_echo "$PG_CONFIG does not exist or it is not an exectuable file" >&6; }
18670            PG_CONFIG="no"
18671            found_postgresql="no"
18672        fi
18673
18674        if test "$PG_CONFIG" != "no"; then
18675            { $as_echo "$as_me:$LINENO: checking for PostgreSQL libraries" >&5
18676$as_echo_n "checking for PostgreSQL libraries... " >&6; }
18677
18678            POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
18679            POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir` -lpq"
18680
18681            POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'`
18682
18683
18684cat >>confdefs.h <<\_ACEOF
18685#define HAVE_POSTGRESQL 1
18686_ACEOF
18687
18688
18689            found_postgresql="yes"
18690            { $as_echo "$as_me:$LINENO: result: yes" >&5
18691$as_echo "yes" >&6; }
18692        else
18693            found_postgresql="no"
18694            { $as_echo "$as_me:$LINENO: result: no" >&5
18695$as_echo "no" >&6; }
18696        fi
18697    fi
18698
18699
18700
18701    postgresql_version_req=
18702
18703    if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then
18704
18705        { $as_echo "$as_me:$LINENO: checking if PostgreSQL version is >= $postgresql_version_req" >&5
18706$as_echo_n "checking if PostgreSQL version is >= $postgresql_version_req... " >&6; }
18707
18708                        postgresql_version_req_major=`expr $postgresql_version_req : '\([0-9]*\)'`
18709        postgresql_version_req_minor=`expr $postgresql_version_req : '[0-9]*\.\([0-9]*\)'`
18710        postgresql_version_req_micro=`expr $postgresql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
18711        if test "x$postgresql_version_req_micro" = "x"; then
18712            postgresql_version_req_micro="0"
18713        fi
18714
18715        postgresql_version_req_number=`expr $postgresql_version_req_major \* 1000000 \
18716                                   \+ $postgresql_version_req_minor \* 1000 \
18717                                   \+ $postgresql_version_req_micro`
18718
18719                        postgresql_version_major=`expr $POSTGRESQL_VERSION : '\([0-9]*\)'`
18720        postgresql_version_minor=`expr $POSTGRESQL_VERSION : '[0-9]*\.\([0-9]*\)'`
18721        postgresql_version_micro=`expr $POSTGRESQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
18722        if test "x$postgresql_version_micro" = "x"; then
18723            postgresql_version_micro="0"
18724        fi
18725
18726        postgresql_version_number=`expr $postgresql_version_major \* 1000000 \
18727                                   \+ $postgresql_version_minor \* 1000 \
18728                                   \+ $postgresql_version_micro`
18729
18730        postgresql_version_check=`expr $postgresql_version_number \>\= $postgresql_version_req_number`
18731        if test "$postgresql_version_check" = "1"; then
18732            { $as_echo "$as_me:$LINENO: result: yes" >&5
18733$as_echo "yes" >&6; }
18734        else
18735            { $as_echo "$as_me:$LINENO: result: no" >&5
18736$as_echo "no" >&6; }
18737        fi
18738    fi
18739
18740
18741
18742
18743
18744
18745with_pgsql="no"
18746if test x$POSTGRESQL_VERSION != x; then
18747        LIBS_bkp=$LIBS
18748        LIBS="$POSTGRESQL_LDFLAGS"
18749        { $as_echo "$as_me:$LINENO: checking for PQserverVersion" >&5
18750$as_echo_n "checking for PQserverVersion... " >&6; }
18751if test "${ac_cv_func_PQserverVersion+set}" = set; then
18752  $as_echo_n "(cached) " >&6
18753else
18754  cat >conftest.$ac_ext <<_ACEOF
18755/* confdefs.h.  */
18756_ACEOF
18757cat confdefs.h >>conftest.$ac_ext
18758cat >>conftest.$ac_ext <<_ACEOF
18759/* end confdefs.h.  */
18760/* Define PQserverVersion to an innocuous variant, in case <limits.h> declares PQserverVersion.
18761   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18762#define PQserverVersion innocuous_PQserverVersion
18763
18764/* System header to define __stub macros and hopefully few prototypes,
18765    which can conflict with char PQserverVersion (); below.
18766    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18767    <limits.h> exists even on freestanding compilers.  */
18768
18769#ifdef __STDC__
18770# include <limits.h>
18771#else
18772# include <assert.h>
18773#endif
18774
18775#undef PQserverVersion
18776
18777/* Override any GCC internal prototype to avoid an error.
18778   Use char because int might match the return type of a GCC
18779   builtin and then its argument prototype would still apply.  */
18780#ifdef __cplusplus
18781extern "C"
18782#endif
18783char PQserverVersion ();
18784/* The GNU C library defines this for functions which it implements
18785    to always fail with ENOSYS.  Some functions are actually named
18786    something starting with __ and the normal name is an alias.  */
18787#if defined __stub_PQserverVersion || defined __stub___PQserverVersion
18788choke me
18789#endif
18790
18791int
18792main ()
18793{
18794return PQserverVersion ();
18795  ;
18796  return 0;
18797}
18798_ACEOF
18799rm -f conftest.$ac_objext conftest$ac_exeext
18800if { (ac_try="$ac_link"
18801case "(($ac_try" in
18802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803  *) ac_try_echo=$ac_try;;
18804esac
18805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18806$as_echo "$ac_try_echo") >&5
18807  (eval "$ac_link") 2>conftest.er1
18808  ac_status=$?
18809  grep -v '^ *+' conftest.er1 >conftest.err
18810  rm -f conftest.er1
18811  cat conftest.err >&5
18812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813  (exit $ac_status); } && {
18814	 test -z "$ac_c_werror_flag" ||
18815	 test ! -s conftest.err
18816       } && test -s conftest$ac_exeext && {
18817	 test "$cross_compiling" = yes ||
18818	 $as_test_x conftest$ac_exeext
18819       }; then
18820  ac_cv_func_PQserverVersion=yes
18821else
18822  $as_echo "$as_me: failed program was:" >&5
18823sed 's/^/| /' conftest.$ac_ext >&5
18824
18825	ac_cv_func_PQserverVersion=no
18826fi
18827
18828rm -rf conftest.dSYM
18829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18830      conftest$ac_exeext conftest.$ac_ext
18831fi
18832{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_PQserverVersion" >&5
18833$as_echo "$ac_cv_func_PQserverVersion" >&6; }
18834if test "x$ac_cv_func_PQserverVersion" = x""yes; then
18835
18836cat >>confdefs.h <<\_ACEOF
18837#define HAVE_PQSERVERVERSION /**/
18838_ACEOF
18839
18840fi
18841
18842        { $as_echo "$as_me:$LINENO: checking for PQescapeStringConn" >&5
18843$as_echo_n "checking for PQescapeStringConn... " >&6; }
18844if test "${ac_cv_func_PQescapeStringConn+set}" = set; then
18845  $as_echo_n "(cached) " >&6
18846else
18847  cat >conftest.$ac_ext <<_ACEOF
18848/* confdefs.h.  */
18849_ACEOF
18850cat confdefs.h >>conftest.$ac_ext
18851cat >>conftest.$ac_ext <<_ACEOF
18852/* end confdefs.h.  */
18853/* Define PQescapeStringConn to an innocuous variant, in case <limits.h> declares PQescapeStringConn.
18854   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18855#define PQescapeStringConn innocuous_PQescapeStringConn
18856
18857/* System header to define __stub macros and hopefully few prototypes,
18858    which can conflict with char PQescapeStringConn (); below.
18859    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18860    <limits.h> exists even on freestanding compilers.  */
18861
18862#ifdef __STDC__
18863# include <limits.h>
18864#else
18865# include <assert.h>
18866#endif
18867
18868#undef PQescapeStringConn
18869
18870/* Override any GCC internal prototype to avoid an error.
18871   Use char because int might match the return type of a GCC
18872   builtin and then its argument prototype would still apply.  */
18873#ifdef __cplusplus
18874extern "C"
18875#endif
18876char PQescapeStringConn ();
18877/* The GNU C library defines this for functions which it implements
18878    to always fail with ENOSYS.  Some functions are actually named
18879    something starting with __ and the normal name is an alias.  */
18880#if defined __stub_PQescapeStringConn || defined __stub___PQescapeStringConn
18881choke me
18882#endif
18883
18884int
18885main ()
18886{
18887return PQescapeStringConn ();
18888  ;
18889  return 0;
18890}
18891_ACEOF
18892rm -f conftest.$ac_objext conftest$ac_exeext
18893if { (ac_try="$ac_link"
18894case "(($ac_try" in
18895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896  *) ac_try_echo=$ac_try;;
18897esac
18898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18899$as_echo "$ac_try_echo") >&5
18900  (eval "$ac_link") 2>conftest.er1
18901  ac_status=$?
18902  grep -v '^ *+' conftest.er1 >conftest.err
18903  rm -f conftest.er1
18904  cat conftest.err >&5
18905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906  (exit $ac_status); } && {
18907	 test -z "$ac_c_werror_flag" ||
18908	 test ! -s conftest.err
18909       } && test -s conftest$ac_exeext && {
18910	 test "$cross_compiling" = yes ||
18911	 $as_test_x conftest$ac_exeext
18912       }; then
18913  ac_cv_func_PQescapeStringConn=yes
18914else
18915  $as_echo "$as_me: failed program was:" >&5
18916sed 's/^/| /' conftest.$ac_ext >&5
18917
18918	ac_cv_func_PQescapeStringConn=no
18919fi
18920
18921rm -rf conftest.dSYM
18922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18923      conftest$ac_exeext conftest.$ac_ext
18924fi
18925{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_PQescapeStringConn" >&5
18926$as_echo "$ac_cv_func_PQescapeStringConn" >&6; }
18927if test "x$ac_cv_func_PQescapeStringConn" = x""yes; then
18928
18929cat >>confdefs.h <<\_ACEOF
18930#define HAVE_PQESCAPESTRINGCONN /**/
18931_ACEOF
18932
18933fi
18934
18935        { $as_echo "$as_me:$LINENO: checking for PQescapeByteaConn" >&5
18936$as_echo_n "checking for PQescapeByteaConn... " >&6; }
18937if test "${ac_cv_func_PQescapeByteaConn+set}" = set; then
18938  $as_echo_n "(cached) " >&6
18939else
18940  cat >conftest.$ac_ext <<_ACEOF
18941/* confdefs.h.  */
18942_ACEOF
18943cat confdefs.h >>conftest.$ac_ext
18944cat >>conftest.$ac_ext <<_ACEOF
18945/* end confdefs.h.  */
18946/* Define PQescapeByteaConn to an innocuous variant, in case <limits.h> declares PQescapeByteaConn.
18947   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18948#define PQescapeByteaConn innocuous_PQescapeByteaConn
18949
18950/* System header to define __stub macros and hopefully few prototypes,
18951    which can conflict with char PQescapeByteaConn (); below.
18952    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18953    <limits.h> exists even on freestanding compilers.  */
18954
18955#ifdef __STDC__
18956# include <limits.h>
18957#else
18958# include <assert.h>
18959#endif
18960
18961#undef PQescapeByteaConn
18962
18963/* Override any GCC internal prototype to avoid an error.
18964   Use char because int might match the return type of a GCC
18965   builtin and then its argument prototype would still apply.  */
18966#ifdef __cplusplus
18967extern "C"
18968#endif
18969char PQescapeByteaConn ();
18970/* The GNU C library defines this for functions which it implements
18971    to always fail with ENOSYS.  Some functions are actually named
18972    something starting with __ and the normal name is an alias.  */
18973#if defined __stub_PQescapeByteaConn || defined __stub___PQescapeByteaConn
18974choke me
18975#endif
18976
18977int
18978main ()
18979{
18980return PQescapeByteaConn ();
18981  ;
18982  return 0;
18983}
18984_ACEOF
18985rm -f conftest.$ac_objext conftest$ac_exeext
18986if { (ac_try="$ac_link"
18987case "(($ac_try" in
18988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989  *) ac_try_echo=$ac_try;;
18990esac
18991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18992$as_echo "$ac_try_echo") >&5
18993  (eval "$ac_link") 2>conftest.er1
18994  ac_status=$?
18995  grep -v '^ *+' conftest.er1 >conftest.err
18996  rm -f conftest.er1
18997  cat conftest.err >&5
18998  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999  (exit $ac_status); } && {
19000	 test -z "$ac_c_werror_flag" ||
19001	 test ! -s conftest.err
19002       } && test -s conftest$ac_exeext && {
19003	 test "$cross_compiling" = yes ||
19004	 $as_test_x conftest$ac_exeext
19005       }; then
19006  ac_cv_func_PQescapeByteaConn=yes
19007else
19008  $as_echo "$as_me: failed program was:" >&5
19009sed 's/^/| /' conftest.$ac_ext >&5
19010
19011	ac_cv_func_PQescapeByteaConn=no
19012fi
19013
19014rm -rf conftest.dSYM
19015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19016      conftest$ac_exeext conftest.$ac_ext
19017fi
19018{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_PQescapeByteaConn" >&5
19019$as_echo "$ac_cv_func_PQescapeByteaConn" >&6; }
19020if test "x$ac_cv_func_PQescapeByteaConn" = x""yes; then
19021
19022cat >>confdefs.h <<\_ACEOF
19023#define HAVE_PQESCAPEBYTEACONN /**/
19024_ACEOF
19025
19026fi
19027
19028        LIBS=$LIBS_bkp;
19029
19030        CPPFLAGS_bkp=$CPPFLAGS
19031        CPPFLAGS="$POSTGRESQL_CFLAGS"
19032        if test "${ac_cv_header_libpq_fe_h+set}" = set; then
19033  { $as_echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
19034$as_echo_n "checking for libpq-fe.h... " >&6; }
19035if test "${ac_cv_header_libpq_fe_h+set}" = set; then
19036  $as_echo_n "(cached) " >&6
19037fi
19038{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
19039$as_echo "$ac_cv_header_libpq_fe_h" >&6; }
19040else
19041  # Is the header compilable?
19042{ $as_echo "$as_me:$LINENO: checking libpq-fe.h usability" >&5
19043$as_echo_n "checking libpq-fe.h usability... " >&6; }
19044cat >conftest.$ac_ext <<_ACEOF
19045/* confdefs.h.  */
19046_ACEOF
19047cat confdefs.h >>conftest.$ac_ext
19048cat >>conftest.$ac_ext <<_ACEOF
19049/* end confdefs.h.  */
19050$ac_includes_default
19051#include <libpq-fe.h>
19052_ACEOF
19053rm -f conftest.$ac_objext
19054if { (ac_try="$ac_compile"
19055case "(($ac_try" in
19056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057  *) ac_try_echo=$ac_try;;
19058esac
19059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19060$as_echo "$ac_try_echo") >&5
19061  (eval "$ac_compile") 2>conftest.er1
19062  ac_status=$?
19063  grep -v '^ *+' conftest.er1 >conftest.err
19064  rm -f conftest.er1
19065  cat conftest.err >&5
19066  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067  (exit $ac_status); } && {
19068	 test -z "$ac_c_werror_flag" ||
19069	 test ! -s conftest.err
19070       } && test -s conftest.$ac_objext; then
19071  ac_header_compiler=yes
19072else
19073  $as_echo "$as_me: failed program was:" >&5
19074sed 's/^/| /' conftest.$ac_ext >&5
19075
19076	ac_header_compiler=no
19077fi
19078
19079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19080{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19081$as_echo "$ac_header_compiler" >&6; }
19082
19083# Is the header present?
19084{ $as_echo "$as_me:$LINENO: checking libpq-fe.h presence" >&5
19085$as_echo_n "checking libpq-fe.h presence... " >&6; }
19086cat >conftest.$ac_ext <<_ACEOF
19087/* confdefs.h.  */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
19091/* end confdefs.h.  */
19092#include <libpq-fe.h>
19093_ACEOF
19094if { (ac_try="$ac_cpp conftest.$ac_ext"
19095case "(($ac_try" in
19096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097  *) ac_try_echo=$ac_try;;
19098esac
19099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19100$as_echo "$ac_try_echo") >&5
19101  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19102  ac_status=$?
19103  grep -v '^ *+' conftest.er1 >conftest.err
19104  rm -f conftest.er1
19105  cat conftest.err >&5
19106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107  (exit $ac_status); } >/dev/null && {
19108	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19109	 test ! -s conftest.err
19110       }; then
19111  ac_header_preproc=yes
19112else
19113  $as_echo "$as_me: failed program was:" >&5
19114sed 's/^/| /' conftest.$ac_ext >&5
19115
19116  ac_header_preproc=no
19117fi
19118
19119rm -f conftest.err conftest.$ac_ext
19120{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19121$as_echo "$ac_header_preproc" >&6; }
19122
19123# So?  What about this header?
19124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19125  yes:no: )
19126    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&5
19127$as_echo "$as_me: WARNING: libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19128    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the compiler's result" >&5
19129$as_echo "$as_me: WARNING: libpq-fe.h: proceeding with the compiler's result" >&2;}
19130    ac_header_preproc=yes
19131    ;;
19132  no:yes:* )
19133    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: present but cannot be compiled" >&5
19134$as_echo "$as_me: WARNING: libpq-fe.h: present but cannot be compiled" >&2;}
19135    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h:     check for missing prerequisite headers?" >&5
19136$as_echo "$as_me: WARNING: libpq-fe.h:     check for missing prerequisite headers?" >&2;}
19137    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: see the Autoconf documentation" >&5
19138$as_echo "$as_me: WARNING: libpq-fe.h: see the Autoconf documentation" >&2;}
19139    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h:     section \"Present But Cannot Be Compiled\"" >&5
19140$as_echo "$as_me: WARNING: libpq-fe.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19141    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&5
19142$as_echo "$as_me: WARNING: libpq-fe.h: proceeding with the preprocessor's result" >&2;}
19143    { $as_echo "$as_me:$LINENO: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&5
19144$as_echo "$as_me: WARNING: libpq-fe.h: in the future, the compiler will take precedence" >&2;}
19145
19146    ;;
19147esac
19148{ $as_echo "$as_me:$LINENO: checking for libpq-fe.h" >&5
19149$as_echo_n "checking for libpq-fe.h... " >&6; }
19150if test "${ac_cv_header_libpq_fe_h+set}" = set; then
19151  $as_echo_n "(cached) " >&6
19152else
19153  ac_cv_header_libpq_fe_h=$ac_header_preproc
19154fi
19155{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libpq_fe_h" >&5
19156$as_echo "$ac_cv_header_libpq_fe_h" >&6; }
19157
19158fi
19159if test "x$ac_cv_header_libpq_fe_h" = x""yes; then
19160  with_pgsql=yes
19161else
19162  with_pgsql=no
19163fi
19164
19165
19166        CPPFLAGS=$CPPFLAGS_bkp;
19167fi
19168
19169 if test x$with_pgsql = xyes; then
19170  HAVE_PGSQL_TRUE=
19171  HAVE_PGSQL_FALSE='#'
19172else
19173  HAVE_PGSQL_TRUE='#'
19174  HAVE_PGSQL_FALSE=
19175fi
19176
19177
19178
19179
19180# Check whether --with-sqlite3 was given.
19181if test "${with_sqlite3+set}" = set; then
19182  withval=$with_sqlite3;
19183        if test "$withval" = "no"; then
19184            WANT_SQLITE3="no"
19185        elif test "$withval" = "yes"; then
19186            WANT_SQLITE3="yes"
19187            ac_sqlite3_path=""
19188        else
19189            WANT_SQLITE3="yes"
19190            ac_sqlite3_path="$withval"
19191        fi
19192
19193else
19194  WANT_SQLITE3="yes"
19195
19196fi
19197
19198
19199    SQLITE3_CFLAGS=""
19200    SQLITE3_LDFLAGS=""
19201    SQLITE3_VERSION=""
19202
19203    if test "x$WANT_SQLITE3" = "xyes"; then
19204
19205        ac_sqlite3_header="sqlite3.h"
19206
19207        sqlite3_version_req="3.0.0"
19208        sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'`
19209        sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'`
19210        sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'`
19211        sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
19212        if test "x$sqlite3_version_req_micro" = "x" ; then
19213            sqlite3_version_req_micro="0"
19214        fi
19215
19216        sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \
19217                                   \+ $sqlite3_version_req_minor \* 1000 \
19218                                   \+ $sqlite3_version_req_micro`
19219
19220        { $as_echo "$as_me:$LINENO: checking for SQLite3 library >= $sqlite3_version_req" >&5
19221$as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
19222
19223        if test "$ac_sqlite3_path" != ""; then
19224            ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
19225            ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
19226        else
19227            for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do
19228                if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \
19229                    && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then
19230                    ac_sqlite3_path=$ac_sqlite3_path_tmp
19231                    ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include"
19232                    ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib"
19233                    break;
19234                fi
19235            done
19236        fi
19237
19238        ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3"
19239
19240        saved_CPPFLAGS="$CPPFLAGS"
19241        CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags"
19242
19243        ac_ext=c
19244ac_cpp='$CPP $CPPFLAGS'
19245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19247ac_compiler_gnu=$ac_cv_c_compiler_gnu
19248
19249        cat >conftest.$ac_ext <<_ACEOF
19250
19251            /* confdefs.h.  */
19252_ACEOF
19253cat confdefs.h >>conftest.$ac_ext
19254cat >>conftest.$ac_ext <<_ACEOF
19255/* end confdefs.h.  */
19256#include <sqlite3.h>
19257int
19258main ()
19259{
19260
19261#if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number)
19262/* Everything is okay */
19263#else
19264#  error SQLite version is too old
19265#endif
19266
19267
19268  ;
19269  return 0;
19270}
19271
19272_ACEOF
19273rm -f conftest.$ac_objext
19274if { (ac_try="$ac_compile"
19275case "(($ac_try" in
19276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277  *) ac_try_echo=$ac_try;;
19278esac
19279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19280$as_echo "$ac_try_echo") >&5
19281  (eval "$ac_compile") 2>conftest.er1
19282  ac_status=$?
19283  grep -v '^ *+' conftest.er1 >conftest.err
19284  rm -f conftest.er1
19285  cat conftest.err >&5
19286  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287  (exit $ac_status); } && {
19288	 test -z "$ac_c_werror_flag" ||
19289	 test ! -s conftest.err
19290       } && test -s conftest.$ac_objext; then
19291
19292            { $as_echo "$as_me:$LINENO: result: yes" >&5
19293$as_echo "yes" >&6; }
19294            success="yes"
19295
19296else
19297  $as_echo "$as_me: failed program was:" >&5
19298sed 's/^/| /' conftest.$ac_ext >&5
19299
19300
19301            { $as_echo "$as_me:$LINENO: result: not found" >&5
19302$as_echo "not found" >&6; }
19303            success="no"
19304
19305
19306fi
19307
19308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19309        ac_ext=c
19310ac_cpp='$CPP $CPPFLAGS'
19311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19313ac_compiler_gnu=$ac_cv_c_compiler_gnu
19314
19315
19316        CPPFLAGS="$saved_CPPFLAGS"
19317
19318        if test "$success" = "yes"; then
19319
19320            SQLITE3_CFLAGS="$ac_sqlite3_cppflags"
19321            SQLITE3_LDFLAGS="$ac_sqlite3_ldflags"
19322
19323            ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header"
19324
19325                        if test "x$ac_sqlite3_header_path" != "x"; then
19326                ac_sqlite3_version=`cat $ac_sqlite3_header_path \
19327                    | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \
19328                        | sed -e 's/"//'`
19329                if test $ac_sqlite3_version != ""; then
19330                    SQLITE3_VERSION=$ac_sqlite3_version
19331                else
19332                    { $as_echo "$as_me:$LINENO: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5
19333$as_echo "$as_me: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;}
19334                fi
19335            fi
19336
19337
19338
19339
19340
19341cat >>confdefs.h <<\_ACEOF
19342#define HAVE_SQLITE3 /**/
19343_ACEOF
19344
19345        fi
19346    fi
19347
19348
19349with_sqlite3="no"
19350if test x$SQLITE3_VERSION != x; then
19351        CPPFLAGS_bkp=$CPPFLAGS
19352        CPPFLAGS="$SQLITE3_CFLAGS"
19353        if test "${ac_cv_header_sqlite3_h+set}" = set; then
19354  { $as_echo "$as_me:$LINENO: checking for sqlite3.h" >&5
19355$as_echo_n "checking for sqlite3.h... " >&6; }
19356if test "${ac_cv_header_sqlite3_h+set}" = set; then
19357  $as_echo_n "(cached) " >&6
19358fi
19359{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
19360$as_echo "$ac_cv_header_sqlite3_h" >&6; }
19361else
19362  # Is the header compilable?
19363{ $as_echo "$as_me:$LINENO: checking sqlite3.h usability" >&5
19364$as_echo_n "checking sqlite3.h usability... " >&6; }
19365cat >conftest.$ac_ext <<_ACEOF
19366/* confdefs.h.  */
19367_ACEOF
19368cat confdefs.h >>conftest.$ac_ext
19369cat >>conftest.$ac_ext <<_ACEOF
19370/* end confdefs.h.  */
19371$ac_includes_default
19372#include <sqlite3.h>
19373_ACEOF
19374rm -f conftest.$ac_objext
19375if { (ac_try="$ac_compile"
19376case "(($ac_try" in
19377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378  *) ac_try_echo=$ac_try;;
19379esac
19380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19381$as_echo "$ac_try_echo") >&5
19382  (eval "$ac_compile") 2>conftest.er1
19383  ac_status=$?
19384  grep -v '^ *+' conftest.er1 >conftest.err
19385  rm -f conftest.er1
19386  cat conftest.err >&5
19387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388  (exit $ac_status); } && {
19389	 test -z "$ac_c_werror_flag" ||
19390	 test ! -s conftest.err
19391       } && test -s conftest.$ac_objext; then
19392  ac_header_compiler=yes
19393else
19394  $as_echo "$as_me: failed program was:" >&5
19395sed 's/^/| /' conftest.$ac_ext >&5
19396
19397	ac_header_compiler=no
19398fi
19399
19400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19401{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19402$as_echo "$ac_header_compiler" >&6; }
19403
19404# Is the header present?
19405{ $as_echo "$as_me:$LINENO: checking sqlite3.h presence" >&5
19406$as_echo_n "checking sqlite3.h presence... " >&6; }
19407cat >conftest.$ac_ext <<_ACEOF
19408/* confdefs.h.  */
19409_ACEOF
19410cat confdefs.h >>conftest.$ac_ext
19411cat >>conftest.$ac_ext <<_ACEOF
19412/* end confdefs.h.  */
19413#include <sqlite3.h>
19414_ACEOF
19415if { (ac_try="$ac_cpp conftest.$ac_ext"
19416case "(($ac_try" in
19417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418  *) ac_try_echo=$ac_try;;
19419esac
19420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19421$as_echo "$ac_try_echo") >&5
19422  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19423  ac_status=$?
19424  grep -v '^ *+' conftest.er1 >conftest.err
19425  rm -f conftest.er1
19426  cat conftest.err >&5
19427  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428  (exit $ac_status); } >/dev/null && {
19429	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19430	 test ! -s conftest.err
19431       }; then
19432  ac_header_preproc=yes
19433else
19434  $as_echo "$as_me: failed program was:" >&5
19435sed 's/^/| /' conftest.$ac_ext >&5
19436
19437  ac_header_preproc=no
19438fi
19439
19440rm -f conftest.err conftest.$ac_ext
19441{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19442$as_echo "$ac_header_preproc" >&6; }
19443
19444# So?  What about this header?
19445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19446  yes:no: )
19447    { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&5
19448$as_echo "$as_me: WARNING: sqlite3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19449    { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the compiler's result" >&5
19450$as_echo "$as_me: WARNING: sqlite3.h: proceeding with the compiler's result" >&2;}
19451    ac_header_preproc=yes
19452    ;;
19453  no:yes:* )
19454    { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: present but cannot be compiled" >&5
19455$as_echo "$as_me: WARNING: sqlite3.h: present but cannot be compiled" >&2;}
19456    { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h:     check for missing prerequisite headers?" >&5
19457$as_echo "$as_me: WARNING: sqlite3.h:     check for missing prerequisite headers?" >&2;}
19458    { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: see the Autoconf documentation" >&5
19459$as_echo "$as_me: WARNING: sqlite3.h: see the Autoconf documentation" >&2;}
19460    { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h:     section \"Present But Cannot Be Compiled\"" >&5
19461$as_echo "$as_me: WARNING: sqlite3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19462    { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&5
19463$as_echo "$as_me: WARNING: sqlite3.h: proceeding with the preprocessor's result" >&2;}
19464    { $as_echo "$as_me:$LINENO: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&5
19465$as_echo "$as_me: WARNING: sqlite3.h: in the future, the compiler will take precedence" >&2;}
19466
19467    ;;
19468esac
19469{ $as_echo "$as_me:$LINENO: checking for sqlite3.h" >&5
19470$as_echo_n "checking for sqlite3.h... " >&6; }
19471if test "${ac_cv_header_sqlite3_h+set}" = set; then
19472  $as_echo_n "(cached) " >&6
19473else
19474  ac_cv_header_sqlite3_h=$ac_header_preproc
19475fi
19476{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sqlite3_h" >&5
19477$as_echo "$ac_cv_header_sqlite3_h" >&6; }
19478
19479fi
19480if test "x$ac_cv_header_sqlite3_h" = x""yes; then
19481  with_sqlite3=yes
19482else
19483  with_sqlite3=no
19484fi
19485
19486
19487        CPPFLAGS=$CPPFLAGS_bkp;
19488fi
19489
19490 if test x$with_sqlite3 = xyes; then
19491  HAVE_SQLITE3_TRUE=
19492  HAVE_SQLITE3_FALSE='#'
19493else
19494  HAVE_SQLITE3_TRUE='#'
19495  HAVE_SQLITE3_FALSE=
19496fi
19497
19498
19499
19500
19501
19502
19503# Check whether --with-swig was given.
19504if test "${with_swig+set}" = set; then
19505  withval=$with_swig; swig_required=true; if test x$withval = xyes; then with_swig="swig"; fi
19506else
19507  with_swig="swig"
19508fi
19509
19510
19511if test x$with_swig != xno; then
19512   # Extract the first word of "`basename $with_swig`", so it can be a program name with args.
19513set dummy `basename $with_swig`; ac_word=$2
19514{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19515$as_echo_n "checking for $ac_word... " >&6; }
19516if test "${ac_cv_path_SWIG+set}" = set; then
19517  $as_echo_n "(cached) " >&6
19518else
19519  case $SWIG in
19520  [\\/]* | ?:[\\/]*)
19521  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19522  ;;
19523  *)
19524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19525as_dummy="`dirname $with_swig`:$PATH"
19526for as_dir in $as_dummy
19527do
19528  IFS=$as_save_IFS
19529  test -z "$as_dir" && as_dir=.
19530  for ac_exec_ext in '' $ac_executable_extensions; do
19531  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19532    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19533    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19534    break 2
19535  fi
19536done
19537done
19538IFS=$as_save_IFS
19539
19540  test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="no"
19541  ;;
19542esac
19543fi
19544SWIG=$ac_cv_path_SWIG
19545if test -n "$SWIG"; then
19546  { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
19547$as_echo "$SWIG" >&6; }
19548else
19549  { $as_echo "$as_me:$LINENO: result: no" >&5
19550$as_echo "no" >&6; }
19551fi
19552
19553
19554
19555   if test x$SWIG = xno; then
19556      if test x$swig_required = xtrue; then
19557         { { $as_echo "$as_me:$LINENO: error: Could not find $with_swig binary" >&5
19558$as_echo "$as_me: error: Could not find $with_swig binary" >&2;}
19559   { (exit 1); exit 1; }; }
19560      fi
19561   fi
19562fi
19563
19564 if test x$SWIG != xno; then
19565  HAVE_SWIG_TRUE=
19566  HAVE_SWIG_FALSE='#'
19567else
19568  HAVE_SWIG_TRUE='#'
19569  HAVE_SWIG_FALSE=
19570fi
19571
19572
19573
19574
19575
19576
19577# Check whether --with-python2 was given.
19578if test "${with_python2+set}" = set; then
19579  withval=$with_python2; python2_required=true; if test x$withval = xyes; then with_python2="python2"; fi
19580else
19581  with_python2="python2"
19582fi
19583
19584
19585if test x$with_python2 != xno; then
19586   for ac_prog in $with_python2 "python2.7" "python2.6" "python2.5" "python2.4" "python2.3" "python2.2" "python2.1" "python2.0"
19587do
19588  # Extract the first word of "$ac_prog", so it can be a program name with args.
19589set dummy $ac_prog; ac_word=$2
19590{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19591$as_echo_n "checking for $ac_word... " >&6; }
19592if test "${ac_cv_path_PYTHON2+set}" = set; then
19593  $as_echo_n "(cached) " >&6
19594else
19595  case $PYTHON2 in
19596  [\\/]* | ?:[\\/]*)
19597  ac_cv_path_PYTHON2="$PYTHON2" # Let the user override the test with a path.
19598  ;;
19599  *)
19600  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19601as_dummy="`dirname $with_python2`:$PATH"
19602for as_dir in $as_dummy
19603do
19604  IFS=$as_save_IFS
19605  test -z "$as_dir" && as_dir=.
19606  for ac_exec_ext in '' $ac_executable_extensions; do
19607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19608    ac_cv_path_PYTHON2="$as_dir/$ac_word$ac_exec_ext"
19609    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19610    break 2
19611  fi
19612done
19613done
19614IFS=$as_save_IFS
19615
19616  ;;
19617esac
19618fi
19619PYTHON2=$ac_cv_path_PYTHON2
19620if test -n "$PYTHON2"; then
19621  { $as_echo "$as_me:$LINENO: result: $PYTHON2" >&5
19622$as_echo "$PYTHON2" >&6; }
19623else
19624  { $as_echo "$as_me:$LINENO: result: no" >&5
19625$as_echo "no" >&6; }
19626fi
19627
19628
19629  test -n "$PYTHON2" && break
19630done
19631test -n "$PYTHON2" || PYTHON2="no"
19632
19633   if test x$PYTHON2 = xno; then
19634      if test x$python2_required = xtrue; then
19635         { { $as_echo "$as_me:$LINENO: error: Could not find $with_python2 binary" >&5
19636$as_echo "$as_me: error: Could not find $with_python2 binary" >&2;}
19637   { (exit 1); exit 1; }; }
19638      fi
19639
19640      with_python2=no
19641   else
19642      old_CPPFLAGS="$CPPFLAGS"
19643      CPPFLAGS="-I`$PYTHON2 -c 'from distutils.sysconfig import get_python_inc; print(get_python_inc())'`"
19644
19645      if test "${ac_cv_header_Python_h+set}" = set; then
19646  { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
19647$as_echo_n "checking for Python.h... " >&6; }
19648if test "${ac_cv_header_Python_h+set}" = set; then
19649  $as_echo_n "(cached) " >&6
19650fi
19651{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
19652$as_echo "$ac_cv_header_Python_h" >&6; }
19653else
19654  # Is the header compilable?
19655{ $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
19656$as_echo_n "checking Python.h usability... " >&6; }
19657cat >conftest.$ac_ext <<_ACEOF
19658/* confdefs.h.  */
19659_ACEOF
19660cat confdefs.h >>conftest.$ac_ext
19661cat >>conftest.$ac_ext <<_ACEOF
19662/* end confdefs.h.  */
19663$ac_includes_default
19664#include <Python.h>
19665_ACEOF
19666rm -f conftest.$ac_objext
19667if { (ac_try="$ac_compile"
19668case "(($ac_try" in
19669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670  *) ac_try_echo=$ac_try;;
19671esac
19672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19673$as_echo "$ac_try_echo") >&5
19674  (eval "$ac_compile") 2>conftest.er1
19675  ac_status=$?
19676  grep -v '^ *+' conftest.er1 >conftest.err
19677  rm -f conftest.er1
19678  cat conftest.err >&5
19679  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680  (exit $ac_status); } && {
19681	 test -z "$ac_c_werror_flag" ||
19682	 test ! -s conftest.err
19683       } && test -s conftest.$ac_objext; then
19684  ac_header_compiler=yes
19685else
19686  $as_echo "$as_me: failed program was:" >&5
19687sed 's/^/| /' conftest.$ac_ext >&5
19688
19689	ac_header_compiler=no
19690fi
19691
19692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19693{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19694$as_echo "$ac_header_compiler" >&6; }
19695
19696# Is the header present?
19697{ $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
19698$as_echo_n "checking Python.h presence... " >&6; }
19699cat >conftest.$ac_ext <<_ACEOF
19700/* confdefs.h.  */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
19704/* end confdefs.h.  */
19705#include <Python.h>
19706_ACEOF
19707if { (ac_try="$ac_cpp conftest.$ac_ext"
19708case "(($ac_try" in
19709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710  *) ac_try_echo=$ac_try;;
19711esac
19712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19713$as_echo "$ac_try_echo") >&5
19714  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19715  ac_status=$?
19716  grep -v '^ *+' conftest.er1 >conftest.err
19717  rm -f conftest.er1
19718  cat conftest.err >&5
19719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720  (exit $ac_status); } >/dev/null && {
19721	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19722	 test ! -s conftest.err
19723       }; then
19724  ac_header_preproc=yes
19725else
19726  $as_echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
19729  ac_header_preproc=no
19730fi
19731
19732rm -f conftest.err conftest.$ac_ext
19733{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19734$as_echo "$ac_header_preproc" >&6; }
19735
19736# So?  What about this header?
19737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19738  yes:no: )
19739    { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
19740$as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19741    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
19742$as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
19743    ac_header_preproc=yes
19744    ;;
19745  no:yes:* )
19746    { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
19747$as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
19748    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
19749$as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
19750    { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
19751$as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
19752    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
19753$as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19754    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
19755$as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
19756    { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
19757$as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
19758
19759    ;;
19760esac
19761{ $as_echo "$as_me:$LINENO: checking for Python.h" >&5
19762$as_echo_n "checking for Python.h... " >&6; }
19763if test "${ac_cv_header_Python_h+set}" = set; then
19764  $as_echo_n "(cached) " >&6
19765else
19766  ac_cv_header_Python_h=$ac_header_preproc
19767fi
19768{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
19769$as_echo "$ac_cv_header_Python_h" >&6; }
19770
19771fi
19772if test "x$ac_cv_header_Python_h" = x""yes; then
19773  with_python2=yes
19774else
19775  with_python2=no
19776fi
19777
19778
19779      CPPFLAGS="$old_CPPFLAGS"
19780
19781   for ax_var in Python.h
19782do
19783
19784            as_ax_Var=`$as_echo "ac_cv_header_${ax_var}" | $as_tr_sh`
19785
19786      $as_unset $as_ax_Var || test "${$as_ax_Var+set}" != set || { $as_ax_Var=; export $as_ax_Var; }
19787
19788
19789done
19790
19791   fi
19792fi
19793
19794 if test x$with_python2 = xyes; then
19795  HAVE_PYTHON2_TRUE=
19796  HAVE_PYTHON2_FALSE='#'
19797else
19798  HAVE_PYTHON2_TRUE='#'
19799  HAVE_PYTHON2_FALSE=
19800fi
19801
19802
19803
19804
19805# Check whether --with-python3 was given.
19806if test "${with_python3+set}" = set; then
19807  withval=$with_python3; python3_required=true; if test x$withval = xyes; then with_python3="python3"; fi
19808else
19809  with_python3="python3"
19810fi
19811
19812
19813if test x$with_python3 != xno; then
19814   for ac_prog in $with_python3 "python3.5" "python3.4" "python3.3" "python3.2" "python3.1" "python3.0"
19815do
19816  # Extract the first word of "$ac_prog", so it can be a program name with args.
19817set dummy $ac_prog; ac_word=$2
19818{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19819$as_echo_n "checking for $ac_word... " >&6; }
19820if test "${ac_cv_path_PYTHON3+set}" = set; then
19821  $as_echo_n "(cached) " >&6
19822else
19823  case $PYTHON3 in
19824  [\\/]* | ?:[\\/]*)
19825  ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
19826  ;;
19827  *)
19828  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19829as_dummy="`dirname $with_python3`:$PATH"
19830for as_dir in $as_dummy
19831do
19832  IFS=$as_save_IFS
19833  test -z "$as_dir" && as_dir=.
19834  for ac_exec_ext in '' $ac_executable_extensions; do
19835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19836    ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
19837    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19838    break 2
19839  fi
19840done
19841done
19842IFS=$as_save_IFS
19843
19844  ;;
19845esac
19846fi
19847PYTHON3=$ac_cv_path_PYTHON3
19848if test -n "$PYTHON3"; then
19849  { $as_echo "$as_me:$LINENO: result: $PYTHON3" >&5
19850$as_echo "$PYTHON3" >&6; }
19851else
19852  { $as_echo "$as_me:$LINENO: result: no" >&5
19853$as_echo "no" >&6; }
19854fi
19855
19856
19857  test -n "$PYTHON3" && break
19858done
19859test -n "$PYTHON3" || PYTHON3="no"
19860
19861   if test x$PYTHON3 = xno; then
19862      if test x$python3_required = xtrue; then
19863         { { $as_echo "$as_me:$LINENO: error: Could not find $with_python3 binary" >&5
19864$as_echo "$as_me: error: Could not find $with_python3 binary" >&2;}
19865   { (exit 1); exit 1; }; }
19866      fi
19867
19868      with_python3=no
19869   else
19870      old_CPPFLAGS="$CPPFLAGS"
19871      CPPFLAGS="-I`$PYTHON3 -c 'from distutils.sysconfig import get_python_inc; print(get_python_inc())'`"
19872
19873      if test "${ac_cv_header_Python_h+set}" = set; then
19874  { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
19875$as_echo_n "checking for Python.h... " >&6; }
19876if test "${ac_cv_header_Python_h+set}" = set; then
19877  $as_echo_n "(cached) " >&6
19878fi
19879{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
19880$as_echo "$ac_cv_header_Python_h" >&6; }
19881else
19882  # Is the header compilable?
19883{ $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
19884$as_echo_n "checking Python.h usability... " >&6; }
19885cat >conftest.$ac_ext <<_ACEOF
19886/* confdefs.h.  */
19887_ACEOF
19888cat confdefs.h >>conftest.$ac_ext
19889cat >>conftest.$ac_ext <<_ACEOF
19890/* end confdefs.h.  */
19891$ac_includes_default
19892#include <Python.h>
19893_ACEOF
19894rm -f conftest.$ac_objext
19895if { (ac_try="$ac_compile"
19896case "(($ac_try" in
19897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898  *) ac_try_echo=$ac_try;;
19899esac
19900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19901$as_echo "$ac_try_echo") >&5
19902  (eval "$ac_compile") 2>conftest.er1
19903  ac_status=$?
19904  grep -v '^ *+' conftest.er1 >conftest.err
19905  rm -f conftest.er1
19906  cat conftest.err >&5
19907  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908  (exit $ac_status); } && {
19909	 test -z "$ac_c_werror_flag" ||
19910	 test ! -s conftest.err
19911       } && test -s conftest.$ac_objext; then
19912  ac_header_compiler=yes
19913else
19914  $as_echo "$as_me: failed program was:" >&5
19915sed 's/^/| /' conftest.$ac_ext >&5
19916
19917	ac_header_compiler=no
19918fi
19919
19920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19921{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19922$as_echo "$ac_header_compiler" >&6; }
19923
19924# Is the header present?
19925{ $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
19926$as_echo_n "checking Python.h presence... " >&6; }
19927cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h.  */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h.  */
19933#include <Python.h>
19934_ACEOF
19935if { (ac_try="$ac_cpp conftest.$ac_ext"
19936case "(($ac_try" in
19937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938  *) ac_try_echo=$ac_try;;
19939esac
19940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19941$as_echo "$ac_try_echo") >&5
19942  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19943  ac_status=$?
19944  grep -v '^ *+' conftest.er1 >conftest.err
19945  rm -f conftest.er1
19946  cat conftest.err >&5
19947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948  (exit $ac_status); } >/dev/null && {
19949	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19950	 test ! -s conftest.err
19951       }; then
19952  ac_header_preproc=yes
19953else
19954  $as_echo "$as_me: failed program was:" >&5
19955sed 's/^/| /' conftest.$ac_ext >&5
19956
19957  ac_header_preproc=no
19958fi
19959
19960rm -f conftest.err conftest.$ac_ext
19961{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19962$as_echo "$ac_header_preproc" >&6; }
19963
19964# So?  What about this header?
19965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19966  yes:no: )
19967    { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
19968$as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19969    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
19970$as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
19971    ac_header_preproc=yes
19972    ;;
19973  no:yes:* )
19974    { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
19975$as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
19976    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
19977$as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
19978    { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
19979$as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
19980    { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
19981$as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19982    { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
19983$as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
19984    { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
19985$as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
19986
19987    ;;
19988esac
19989{ $as_echo "$as_me:$LINENO: checking for Python.h" >&5
19990$as_echo_n "checking for Python.h... " >&6; }
19991if test "${ac_cv_header_Python_h+set}" = set; then
19992  $as_echo_n "(cached) " >&6
19993else
19994  ac_cv_header_Python_h=$ac_header_preproc
19995fi
19996{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
19997$as_echo "$ac_cv_header_Python_h" >&6; }
19998
19999fi
20000if test "x$ac_cv_header_Python_h" = x""yes; then
20001  with_python3=yes
20002else
20003  with_python3=no
20004fi
20005
20006
20007      CPPFLAGS="$old_CPPFLAGS"
20008   fi
20009fi
20010
20011 if test x$with_python3 = xyes; then
20012  HAVE_PYTHON3_TRUE=
20013  HAVE_PYTHON3_FALSE='#'
20014else
20015  HAVE_PYTHON3_TRUE='#'
20016  HAVE_PYTHON3_FALSE=
20017fi
20018
20019 if test x$with_python2 = xyes -o x$with_python3 = xyes; then
20020  HAVE_PYTHON_TRUE=
20021  HAVE_PYTHON_FALSE='#'
20022else
20023  HAVE_PYTHON_TRUE='#'
20024  HAVE_PYTHON_FALSE=
20025fi
20026
20027
20028
20029
20030
20031# Check whether --enable-easy-bindings was given.
20032if test "${enable_easy_bindings+set}" = set; then
20033  enableval=$enable_easy_bindings; enable_easy_bindings=$enableval
20034else
20035  enable_easy_bindings="yes"
20036fi
20037
20038
20039 if test x$enable_easy_bindings = xyes; then
20040  HAVE_EASY_BINDINGS_TRUE=
20041  HAVE_EASY_BINDINGS_FALSE='#'
20042else
20043  HAVE_EASY_BINDINGS_TRUE='#'
20044  HAVE_EASY_BINDINGS_FALSE=
20045fi
20046
20047
20048if test x$enable_easy_bindings = xyes; then
20049        # Extract the first word of "$CXX", so it can be a program name with args.
20050set dummy $CXX; ac_word=$2
20051{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20052$as_echo_n "checking for $ac_word... " >&6; }
20053if test "${ac_cv_prog_HAVE_CXX+set}" = set; then
20054  $as_echo_n "(cached) " >&6
20055else
20056  if test -n "$HAVE_CXX"; then
20057  ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
20058else
20059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20060for as_dir in $PATH
20061do
20062  IFS=$as_save_IFS
20063  test -z "$as_dir" && as_dir=.
20064  for ac_exec_ext in '' $ac_executable_extensions; do
20065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20066    ac_cv_prog_HAVE_CXX="yes"
20067    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20068    break 2
20069  fi
20070done
20071done
20072IFS=$as_save_IFS
20073
20074  test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
20075fi
20076fi
20077HAVE_CXX=$ac_cv_prog_HAVE_CXX
20078if test -n "$HAVE_CXX"; then
20079  { $as_echo "$as_me:$LINENO: result: $HAVE_CXX" >&5
20080$as_echo "$HAVE_CXX" >&6; }
20081else
20082  { $as_echo "$as_me:$LINENO: result: no" >&5
20083$as_echo "no" >&6; }
20084fi
20085
20086
20087        if test x$HAVE_CXX != xyes; then
20088                { { $as_echo "$as_me:$LINENO: error: Easybindings require a C++ compiler, but none were found." >&5
20089$as_echo "$as_me: error: Easybindings require a C++ compiler, but none were found." >&2;}
20090   { (exit 1); exit 1; }; }
20091        fi
20092fi
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105          LIBC_FATAL_STDERR_=1
20106  export LIBC_FATAL_STDERR_
20107
20108# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20109# for constant arguments.  Useless!
20110{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
20111$as_echo_n "checking for working alloca.h... " >&6; }
20112if test "${ac_cv_working_alloca_h+set}" = set; then
20113  $as_echo_n "(cached) " >&6
20114else
20115  cat >conftest.$ac_ext <<_ACEOF
20116/* confdefs.h.  */
20117_ACEOF
20118cat confdefs.h >>conftest.$ac_ext
20119cat >>conftest.$ac_ext <<_ACEOF
20120/* end confdefs.h.  */
20121#include <alloca.h>
20122int
20123main ()
20124{
20125char *p = (char *) alloca (2 * sizeof (int));
20126			  if (p) return 0;
20127  ;
20128  return 0;
20129}
20130_ACEOF
20131rm -f conftest.$ac_objext conftest$ac_exeext
20132if { (ac_try="$ac_link"
20133case "(($ac_try" in
20134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135  *) ac_try_echo=$ac_try;;
20136esac
20137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20138$as_echo "$ac_try_echo") >&5
20139  (eval "$ac_link") 2>conftest.er1
20140  ac_status=$?
20141  grep -v '^ *+' conftest.er1 >conftest.err
20142  rm -f conftest.er1
20143  cat conftest.err >&5
20144  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145  (exit $ac_status); } && {
20146	 test -z "$ac_c_werror_flag" ||
20147	 test ! -s conftest.err
20148       } && test -s conftest$ac_exeext && {
20149	 test "$cross_compiling" = yes ||
20150	 $as_test_x conftest$ac_exeext
20151       }; then
20152  ac_cv_working_alloca_h=yes
20153else
20154  $as_echo "$as_me: failed program was:" >&5
20155sed 's/^/| /' conftest.$ac_ext >&5
20156
20157	ac_cv_working_alloca_h=no
20158fi
20159
20160rm -rf conftest.dSYM
20161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20162      conftest$ac_exeext conftest.$ac_ext
20163fi
20164{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20165$as_echo "$ac_cv_working_alloca_h" >&6; }
20166if test $ac_cv_working_alloca_h = yes; then
20167
20168cat >>confdefs.h <<\_ACEOF
20169#define HAVE_ALLOCA_H 1
20170_ACEOF
20171
20172fi
20173
20174{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
20175$as_echo_n "checking for alloca... " >&6; }
20176if test "${ac_cv_func_alloca_works+set}" = set; then
20177  $as_echo_n "(cached) " >&6
20178else
20179  cat >conftest.$ac_ext <<_ACEOF
20180/* confdefs.h.  */
20181_ACEOF
20182cat confdefs.h >>conftest.$ac_ext
20183cat >>conftest.$ac_ext <<_ACEOF
20184/* end confdefs.h.  */
20185#ifdef __GNUC__
20186# define alloca __builtin_alloca
20187#else
20188# ifdef _MSC_VER
20189#  include <malloc.h>
20190#  define alloca _alloca
20191# else
20192#  ifdef HAVE_ALLOCA_H
20193#   include <alloca.h>
20194#  else
20195#   ifdef _AIX
20196 #pragma alloca
20197#   else
20198#    ifndef alloca /* predefined by HP cc +Olibcalls */
20199char *alloca ();
20200#    endif
20201#   endif
20202#  endif
20203# endif
20204#endif
20205
20206int
20207main ()
20208{
20209char *p = (char *) alloca (1);
20210				    if (p) return 0;
20211  ;
20212  return 0;
20213}
20214_ACEOF
20215rm -f conftest.$ac_objext conftest$ac_exeext
20216if { (ac_try="$ac_link"
20217case "(($ac_try" in
20218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219  *) ac_try_echo=$ac_try;;
20220esac
20221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20222$as_echo "$ac_try_echo") >&5
20223  (eval "$ac_link") 2>conftest.er1
20224  ac_status=$?
20225  grep -v '^ *+' conftest.er1 >conftest.err
20226  rm -f conftest.er1
20227  cat conftest.err >&5
20228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229  (exit $ac_status); } && {
20230	 test -z "$ac_c_werror_flag" ||
20231	 test ! -s conftest.err
20232       } && test -s conftest$ac_exeext && {
20233	 test "$cross_compiling" = yes ||
20234	 $as_test_x conftest$ac_exeext
20235       }; then
20236  ac_cv_func_alloca_works=yes
20237else
20238  $as_echo "$as_me: failed program was:" >&5
20239sed 's/^/| /' conftest.$ac_ext >&5
20240
20241	ac_cv_func_alloca_works=no
20242fi
20243
20244rm -rf conftest.dSYM
20245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20246      conftest$ac_exeext conftest.$ac_ext
20247fi
20248{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20249$as_echo "$ac_cv_func_alloca_works" >&6; }
20250
20251if test $ac_cv_func_alloca_works = yes; then
20252
20253cat >>confdefs.h <<\_ACEOF
20254#define HAVE_ALLOCA 1
20255_ACEOF
20256
20257else
20258  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20259# that cause trouble.  Some versions do not even contain alloca or
20260# contain a buggy version.  If you still want to use their alloca,
20261# use ar to extract alloca.o from them instead of compiling alloca.c.
20262
20263
20264
20265
20266
20267ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20268
20269cat >>confdefs.h <<\_ACEOF
20270#define C_ALLOCA 1
20271_ACEOF
20272
20273
20274{ $as_echo "$as_me:$LINENO: checking whether 'alloca.c' needs Cray hooks" >&5
20275$as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
20276if test "${ac_cv_os_cray+set}" = set; then
20277  $as_echo_n "(cached) " >&6
20278else
20279  cat >conftest.$ac_ext <<_ACEOF
20280/* confdefs.h.  */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
20284/* end confdefs.h.  */
20285#if defined CRAY && ! defined CRAY2
20286webecray
20287#else
20288wenotbecray
20289#endif
20290
20291_ACEOF
20292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20293  $EGREP "webecray" >/dev/null 2>&1; then
20294  ac_cv_os_cray=yes
20295else
20296  ac_cv_os_cray=no
20297fi
20298rm -f conftest*
20299
20300fi
20301{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20302$as_echo "$ac_cv_os_cray" >&6; }
20303if test $ac_cv_os_cray = yes; then
20304  for ac_func in _getb67 GETB67 getb67; do
20305    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20306{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20307$as_echo_n "checking for $ac_func... " >&6; }
20308if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20309  $as_echo_n "(cached) " >&6
20310else
20311  cat >conftest.$ac_ext <<_ACEOF
20312/* confdefs.h.  */
20313_ACEOF
20314cat confdefs.h >>conftest.$ac_ext
20315cat >>conftest.$ac_ext <<_ACEOF
20316/* end confdefs.h.  */
20317/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20318   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20319#define $ac_func innocuous_$ac_func
20320
20321/* System header to define __stub macros and hopefully few prototypes,
20322    which can conflict with char $ac_func (); below.
20323    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20324    <limits.h> exists even on freestanding compilers.  */
20325
20326#ifdef __STDC__
20327# include <limits.h>
20328#else
20329# include <assert.h>
20330#endif
20331
20332#undef $ac_func
20333
20334/* Override any GCC internal prototype to avoid an error.
20335   Use char because int might match the return type of a GCC
20336   builtin and then its argument prototype would still apply.  */
20337#ifdef __cplusplus
20338extern "C"
20339#endif
20340char $ac_func ();
20341/* The GNU C library defines this for functions which it implements
20342    to always fail with ENOSYS.  Some functions are actually named
20343    something starting with __ and the normal name is an alias.  */
20344#if defined __stub_$ac_func || defined __stub___$ac_func
20345choke me
20346#endif
20347
20348int
20349main ()
20350{
20351return $ac_func ();
20352  ;
20353  return 0;
20354}
20355_ACEOF
20356rm -f conftest.$ac_objext conftest$ac_exeext
20357if { (ac_try="$ac_link"
20358case "(($ac_try" in
20359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360  *) ac_try_echo=$ac_try;;
20361esac
20362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20363$as_echo "$ac_try_echo") >&5
20364  (eval "$ac_link") 2>conftest.er1
20365  ac_status=$?
20366  grep -v '^ *+' conftest.er1 >conftest.err
20367  rm -f conftest.er1
20368  cat conftest.err >&5
20369  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370  (exit $ac_status); } && {
20371	 test -z "$ac_c_werror_flag" ||
20372	 test ! -s conftest.err
20373       } && test -s conftest$ac_exeext && {
20374	 test "$cross_compiling" = yes ||
20375	 $as_test_x conftest$ac_exeext
20376       }; then
20377  eval "$as_ac_var=yes"
20378else
20379  $as_echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
20382	eval "$as_ac_var=no"
20383fi
20384
20385rm -rf conftest.dSYM
20386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20387      conftest$ac_exeext conftest.$ac_ext
20388fi
20389ac_res=`eval 'as_val=${'$as_ac_var'}
20390		 $as_echo "$as_val"'`
20391	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20392$as_echo "$ac_res" >&6; }
20393as_val=`eval 'as_val=${'$as_ac_var'}
20394		 $as_echo "$as_val"'`
20395   if test "x$as_val" = x""yes; then
20396
20397cat >>confdefs.h <<_ACEOF
20398#define CRAY_STACKSEG_END $ac_func
20399_ACEOF
20400
20401    break
20402fi
20403
20404  done
20405fi
20406
20407{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20408$as_echo_n "checking stack direction for C alloca... " >&6; }
20409if test "${ac_cv_c_stack_direction+set}" = set; then
20410  $as_echo_n "(cached) " >&6
20411else
20412  if test "$cross_compiling" = yes; then
20413  ac_cv_c_stack_direction=0
20414else
20415  cat >conftest.$ac_ext <<_ACEOF
20416/* confdefs.h.  */
20417_ACEOF
20418cat confdefs.h >>conftest.$ac_ext
20419cat >>conftest.$ac_ext <<_ACEOF
20420/* end confdefs.h.  */
20421$ac_includes_default
20422int
20423find_stack_direction (int *addr, int depth)
20424{
20425  int dir, dummy = 0;
20426  if (! addr)
20427    addr = &dummy;
20428  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
20429  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
20430  return dir + dummy;
20431}
20432
20433int
20434main (int argc, char **argv)
20435{
20436  return find_stack_direction (0, argc + !argv + 20) < 0;
20437}
20438_ACEOF
20439rm -f conftest$ac_exeext
20440if { (ac_try="$ac_link"
20441case "(($ac_try" in
20442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443  *) ac_try_echo=$ac_try;;
20444esac
20445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20446$as_echo "$ac_try_echo") >&5
20447  (eval "$ac_link") 2>&5
20448  ac_status=$?
20449  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20451  { (case "(($ac_try" in
20452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453  *) ac_try_echo=$ac_try;;
20454esac
20455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20456$as_echo "$ac_try_echo") >&5
20457  (eval "$ac_try") 2>&5
20458  ac_status=$?
20459  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460  (exit $ac_status); }; }; then
20461  ac_cv_c_stack_direction=1
20462else
20463  $as_echo "$as_me: program exited with status $ac_status" >&5
20464$as_echo "$as_me: failed program was:" >&5
20465sed 's/^/| /' conftest.$ac_ext >&5
20466
20467( exit $ac_status )
20468ac_cv_c_stack_direction=-1
20469fi
20470rm -rf conftest.dSYM
20471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20472fi
20473
20474
20475fi
20476{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20477$as_echo "$ac_cv_c_stack_direction" >&6; }
20478
20479cat >>confdefs.h <<_ACEOF
20480#define STACK_DIRECTION $ac_cv_c_stack_direction
20481_ACEOF
20482
20483
20484fi
20485
20486
20487
20488  { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
20489$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
20490if test "${gl_cv_have_include_next+set}" = set; then
20491  $as_echo_n "(cached) " >&6
20492else
20493  rm -rf conftestd1a conftestd1b conftestd2
20494     mkdir conftestd1a conftestd1b conftestd2
20495                                                  cat <<EOF > conftestd1a/conftest.h
20496#define DEFINED_IN_CONFTESTD1
20497#include_next <conftest.h>
20498#ifdef DEFINED_IN_CONFTESTD2
20499int foo;
20500#else
20501#error "include_next doesn't work"
20502#endif
20503EOF
20504     cat <<EOF > conftestd1b/conftest.h
20505#define DEFINED_IN_CONFTESTD1
20506#include <stdio.h>
20507#include_next <conftest.h>
20508#ifdef DEFINED_IN_CONFTESTD2
20509int foo;
20510#else
20511#error "include_next doesn't work"
20512#endif
20513EOF
20514     cat <<EOF > conftestd2/conftest.h
20515#ifndef DEFINED_IN_CONFTESTD1
20516#error "include_next test doesn't work"
20517#endif
20518#define DEFINED_IN_CONFTESTD2
20519EOF
20520     gl_save_CPPFLAGS="$CPPFLAGS"
20521     CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
20522     cat >conftest.$ac_ext <<_ACEOF
20523#include <conftest.h>
20524_ACEOF
20525rm -f conftest.$ac_objext
20526if { (ac_try="$ac_compile"
20527case "(($ac_try" in
20528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529  *) ac_try_echo=$ac_try;;
20530esac
20531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20532$as_echo "$ac_try_echo") >&5
20533  (eval "$ac_compile") 2>conftest.er1
20534  ac_status=$?
20535  grep -v '^ *+' conftest.er1 >conftest.err
20536  rm -f conftest.er1
20537  cat conftest.err >&5
20538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539  (exit $ac_status); } && {
20540	 test -z "$ac_c_werror_flag" ||
20541	 test ! -s conftest.err
20542       } && test -s conftest.$ac_objext; then
20543  gl_cv_have_include_next=yes
20544else
20545  $as_echo "$as_me: failed program was:" >&5
20546sed 's/^/| /' conftest.$ac_ext >&5
20547
20548	CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
20549        cat >conftest.$ac_ext <<_ACEOF
20550#include <conftest.h>
20551_ACEOF
20552rm -f conftest.$ac_objext
20553if { (ac_try="$ac_compile"
20554case "(($ac_try" in
20555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556  *) ac_try_echo=$ac_try;;
20557esac
20558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20559$as_echo "$ac_try_echo") >&5
20560  (eval "$ac_compile") 2>conftest.er1
20561  ac_status=$?
20562  grep -v '^ *+' conftest.er1 >conftest.err
20563  rm -f conftest.er1
20564  cat conftest.err >&5
20565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566  (exit $ac_status); } && {
20567	 test -z "$ac_c_werror_flag" ||
20568	 test ! -s conftest.err
20569       } && test -s conftest.$ac_objext; then
20570  gl_cv_have_include_next=buggy
20571else
20572  $as_echo "$as_me: failed program was:" >&5
20573sed 's/^/| /' conftest.$ac_ext >&5
20574
20575	gl_cv_have_include_next=no
20576fi
20577
20578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20579
20580fi
20581
20582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583     CPPFLAGS="$gl_save_CPPFLAGS"
20584     rm -rf conftestd1a conftestd1b conftestd2
20585
20586fi
20587{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
20588$as_echo "$gl_cv_have_include_next" >&6; }
20589  PRAGMA_SYSTEM_HEADER=
20590  if test $gl_cv_have_include_next = yes; then
20591    INCLUDE_NEXT=include_next
20592    INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
20593    if test -n "$GCC"; then
20594      PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
20595    fi
20596  else
20597    if test $gl_cv_have_include_next = buggy; then
20598      INCLUDE_NEXT=include
20599      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
20600    else
20601      INCLUDE_NEXT=include
20602      INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
20603    fi
20604  fi
20605
20606
20607
20608  { $as_echo "$as_me:$LINENO: checking whether system header files limit the line length" >&5
20609$as_echo_n "checking whether system header files limit the line length... " >&6; }
20610if test "${gl_cv_pragma_columns+set}" = set; then
20611  $as_echo_n "(cached) " >&6
20612else
20613       cat >conftest.$ac_ext <<_ACEOF
20614/* confdefs.h.  */
20615_ACEOF
20616cat confdefs.h >>conftest.$ac_ext
20617cat >>conftest.$ac_ext <<_ACEOF
20618/* end confdefs.h.  */
20619
20620#ifdef __TANDEM
20621choke me
20622#endif
20623
20624_ACEOF
20625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20626  $EGREP "choke me" >/dev/null 2>&1; then
20627  gl_cv_pragma_columns=yes
20628else
20629  gl_cv_pragma_columns=no
20630fi
20631rm -f conftest*
20632
20633
20634fi
20635{ $as_echo "$as_me:$LINENO: result: $gl_cv_pragma_columns" >&5
20636$as_echo "$gl_cv_pragma_columns" >&6; }
20637  if test $gl_cv_pragma_columns = yes; then
20638    PRAGMA_COLUMNS="#pragma COLUMNS 10000"
20639  else
20640    PRAGMA_COLUMNS=
20641  fi
20642
20643
20644
20645
20646  { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
20647$as_echo_n "checking for complete errno.h... " >&6; }
20648if test "${gl_cv_header_errno_h_complete+set}" = set; then
20649  $as_echo_n "(cached) " >&6
20650else
20651
20652    cat >conftest.$ac_ext <<_ACEOF
20653/* confdefs.h.  */
20654_ACEOF
20655cat confdefs.h >>conftest.$ac_ext
20656cat >>conftest.$ac_ext <<_ACEOF
20657/* end confdefs.h.  */
20658
20659#include <errno.h>
20660#if !defined ETXTBSY
20661booboo
20662#endif
20663#if !defined ENOMSG
20664booboo
20665#endif
20666#if !defined EIDRM
20667booboo
20668#endif
20669#if !defined ENOLINK
20670booboo
20671#endif
20672#if !defined EPROTO
20673booboo
20674#endif
20675#if !defined EMULTIHOP
20676booboo
20677#endif
20678#if !defined EBADMSG
20679booboo
20680#endif
20681#if !defined EOVERFLOW
20682booboo
20683#endif
20684#if !defined ENOTSUP
20685booboo
20686#endif
20687#if !defined ENETRESET
20688booboo
20689#endif
20690#if !defined ECONNABORTED
20691booboo
20692#endif
20693#if !defined ESTALE
20694booboo
20695#endif
20696#if !defined EDQUOT
20697booboo
20698#endif
20699#if !defined ECANCELED
20700booboo
20701#endif
20702#if !defined EOWNERDEAD
20703booboo
20704#endif
20705#if !defined ENOTRECOVERABLE
20706booboo
20707#endif
20708#if !defined EILSEQ
20709booboo
20710#endif
20711
20712_ACEOF
20713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20714  $EGREP "booboo" >/dev/null 2>&1; then
20715  gl_cv_header_errno_h_complete=no
20716else
20717  gl_cv_header_errno_h_complete=yes
20718fi
20719rm -f conftest*
20720
20721
20722fi
20723{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
20724$as_echo "$gl_cv_header_errno_h_complete" >&6; }
20725  if test $gl_cv_header_errno_h_complete = yes; then
20726    ERRNO_H=''
20727  else
20728
20729
20730
20731
20732
20733
20734
20735
20736     if test $gl_cv_have_include_next = yes; then
20737       gl_cv_next_errno_h='<'errno.h'>'
20738     else
20739       { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
20740$as_echo_n "checking absolute name of <errno.h>... " >&6; }
20741if test "${gl_cv_next_errno_h+set}" = set; then
20742  $as_echo_n "(cached) " >&6
20743else
20744
20745
20746
20747  cat >conftest.$ac_ext <<_ACEOF
20748/* confdefs.h.  */
20749_ACEOF
20750cat confdefs.h >>conftest.$ac_ext
20751cat >>conftest.$ac_ext <<_ACEOF
20752/* end confdefs.h.  */
20753#include <errno.h>
20754_ACEOF
20755                case "$host_os" in
20756    aix*) gl_absname_cpp="$ac_cpp -C" ;;
20757    *)    gl_absname_cpp="$ac_cpp" ;;
20758  esac
20759
20760  case "$host_os" in
20761    mingw*)
20762                                          gl_dirsep_regex='[/\\]'
20763      ;;
20764    *)
20765      gl_dirsep_regex='\/'
20766      ;;
20767  esac
20768      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20769  gl_header_literal_regex=`echo 'errno.h' \
20770                           | sed -e "$gl_make_literal_regex_sed"`
20771  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20772      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20773      s|^/[^/]|//&|
20774      p
20775      q
20776    }'
20777
20778        gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20779  sed -n "$gl_absolute_header_sed"`
20780
20781           gl_header=$gl_cv_absolute_errno_h
20782           gl_cv_next_errno_h='"'$gl_header'"'
20783
20784
20785fi
20786{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
20787$as_echo "$gl_cv_next_errno_h" >&6; }
20788     fi
20789     NEXT_ERRNO_H=$gl_cv_next_errno_h
20790
20791     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20792       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20793       gl_next_as_first_directive='<'errno.h'>'
20794     else
20795       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20796       gl_next_as_first_directive=$gl_cv_next_errno_h
20797     fi
20798     NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
20799
20800
20801
20802
20803    ERRNO_H='errno.h'
20804  fi
20805
20806   if test -n "$ERRNO_H"; then
20807  GL_GENERATE_ERRNO_H_TRUE=
20808  GL_GENERATE_ERRNO_H_FALSE='#'
20809else
20810  GL_GENERATE_ERRNO_H_TRUE='#'
20811  GL_GENERATE_ERRNO_H_FALSE=
20812fi
20813
20814
20815  if test -n "$ERRNO_H"; then
20816    { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
20817$as_echo_n "checking for EMULTIHOP value... " >&6; }
20818if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
20819  $as_echo_n "(cached) " >&6
20820else
20821
20822      cat >conftest.$ac_ext <<_ACEOF
20823/* confdefs.h.  */
20824_ACEOF
20825cat confdefs.h >>conftest.$ac_ext
20826cat >>conftest.$ac_ext <<_ACEOF
20827/* end confdefs.h.  */
20828
20829#include <errno.h>
20830#ifdef EMULTIHOP
20831yes
20832#endif
20833
20834_ACEOF
20835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20836  $EGREP "yes" >/dev/null 2>&1; then
20837  gl_cv_header_errno_h_EMULTIHOP=yes
20838else
20839  gl_cv_header_errno_h_EMULTIHOP=no
20840fi
20841rm -f conftest*
20842
20843      if test $gl_cv_header_errno_h_EMULTIHOP = no; then
20844        cat >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
20851#define _XOPEN_SOURCE_EXTENDED 1
20852#include <errno.h>
20853#ifdef EMULTIHOP
20854yes
20855#endif
20856
20857_ACEOF
20858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20859  $EGREP "yes" >/dev/null 2>&1; then
20860  gl_cv_header_errno_h_EMULTIHOP=hidden
20861fi
20862rm -f conftest*
20863
20864        if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
20865                              if test "$cross_compiling" = yes; then
20866  # Depending upon the size, compute the lo and hi bounds.
20867cat >conftest.$ac_ext <<_ACEOF
20868/* confdefs.h.  */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h.  */
20873
20874#define _XOPEN_SOURCE_EXTENDED 1
20875#include <errno.h>
20876/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20877#include <stdio.h>
20878#include <stdlib.h>
20879
20880int
20881main ()
20882{
20883static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
20884test_array [0] = 0
20885
20886  ;
20887  return 0;
20888}
20889_ACEOF
20890rm -f conftest.$ac_objext
20891if { (ac_try="$ac_compile"
20892case "(($ac_try" in
20893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894  *) ac_try_echo=$ac_try;;
20895esac
20896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20897$as_echo "$ac_try_echo") >&5
20898  (eval "$ac_compile") 2>conftest.er1
20899  ac_status=$?
20900  grep -v '^ *+' conftest.er1 >conftest.err
20901  rm -f conftest.er1
20902  cat conftest.err >&5
20903  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904  (exit $ac_status); } && {
20905	 test -z "$ac_c_werror_flag" ||
20906	 test ! -s conftest.err
20907       } && test -s conftest.$ac_objext; then
20908  ac_lo=0 ac_mid=0
20909  while :; do
20910    cat >conftest.$ac_ext <<_ACEOF
20911/* confdefs.h.  */
20912_ACEOF
20913cat confdefs.h >>conftest.$ac_ext
20914cat >>conftest.$ac_ext <<_ACEOF
20915/* end confdefs.h.  */
20916
20917#define _XOPEN_SOURCE_EXTENDED 1
20918#include <errno.h>
20919/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20920#include <stdio.h>
20921#include <stdlib.h>
20922
20923int
20924main ()
20925{
20926static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
20927test_array [0] = 0
20928
20929  ;
20930  return 0;
20931}
20932_ACEOF
20933rm -f conftest.$ac_objext
20934if { (ac_try="$ac_compile"
20935case "(($ac_try" in
20936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937  *) ac_try_echo=$ac_try;;
20938esac
20939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20940$as_echo "$ac_try_echo") >&5
20941  (eval "$ac_compile") 2>conftest.er1
20942  ac_status=$?
20943  grep -v '^ *+' conftest.er1 >conftest.err
20944  rm -f conftest.er1
20945  cat conftest.err >&5
20946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947  (exit $ac_status); } && {
20948	 test -z "$ac_c_werror_flag" ||
20949	 test ! -s conftest.err
20950       } && test -s conftest.$ac_objext; then
20951  ac_hi=$ac_mid; break
20952else
20953  $as_echo "$as_me: failed program was:" >&5
20954sed 's/^/| /' conftest.$ac_ext >&5
20955
20956	ac_lo=`expr $ac_mid + 1`
20957			if test $ac_lo -le $ac_mid; then
20958			  ac_lo= ac_hi=
20959			  break
20960			fi
20961			ac_mid=`expr 2 '*' $ac_mid + 1`
20962fi
20963
20964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965  done
20966else
20967  $as_echo "$as_me: failed program was:" >&5
20968sed 's/^/| /' conftest.$ac_ext >&5
20969
20970	cat >conftest.$ac_ext <<_ACEOF
20971/* confdefs.h.  */
20972_ACEOF
20973cat confdefs.h >>conftest.$ac_ext
20974cat >>conftest.$ac_ext <<_ACEOF
20975/* end confdefs.h.  */
20976
20977#define _XOPEN_SOURCE_EXTENDED 1
20978#include <errno.h>
20979/* The following two lines are a workaround against an autoconf-2.52 bug.  */
20980#include <stdio.h>
20981#include <stdlib.h>
20982
20983int
20984main ()
20985{
20986static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
20987test_array [0] = 0
20988
20989  ;
20990  return 0;
20991}
20992_ACEOF
20993rm -f conftest.$ac_objext
20994if { (ac_try="$ac_compile"
20995case "(($ac_try" in
20996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997  *) ac_try_echo=$ac_try;;
20998esac
20999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21000$as_echo "$ac_try_echo") >&5
21001  (eval "$ac_compile") 2>conftest.er1
21002  ac_status=$?
21003  grep -v '^ *+' conftest.er1 >conftest.err
21004  rm -f conftest.er1
21005  cat conftest.err >&5
21006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007  (exit $ac_status); } && {
21008	 test -z "$ac_c_werror_flag" ||
21009	 test ! -s conftest.err
21010       } && test -s conftest.$ac_objext; then
21011  ac_hi=-1 ac_mid=-1
21012  while :; do
21013    cat >conftest.$ac_ext <<_ACEOF
21014/* confdefs.h.  */
21015_ACEOF
21016cat confdefs.h >>conftest.$ac_ext
21017cat >>conftest.$ac_ext <<_ACEOF
21018/* end confdefs.h.  */
21019
21020#define _XOPEN_SOURCE_EXTENDED 1
21021#include <errno.h>
21022/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21023#include <stdio.h>
21024#include <stdlib.h>
21025
21026int
21027main ()
21028{
21029static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
21030test_array [0] = 0
21031
21032  ;
21033  return 0;
21034}
21035_ACEOF
21036rm -f conftest.$ac_objext
21037if { (ac_try="$ac_compile"
21038case "(($ac_try" in
21039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040  *) ac_try_echo=$ac_try;;
21041esac
21042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21043$as_echo "$ac_try_echo") >&5
21044  (eval "$ac_compile") 2>conftest.er1
21045  ac_status=$?
21046  grep -v '^ *+' conftest.er1 >conftest.err
21047  rm -f conftest.er1
21048  cat conftest.err >&5
21049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050  (exit $ac_status); } && {
21051	 test -z "$ac_c_werror_flag" ||
21052	 test ! -s conftest.err
21053       } && test -s conftest.$ac_objext; then
21054  ac_lo=$ac_mid; break
21055else
21056  $as_echo "$as_me: failed program was:" >&5
21057sed 's/^/| /' conftest.$ac_ext >&5
21058
21059	ac_hi=`expr '(' $ac_mid ')' - 1`
21060			if test $ac_mid -le $ac_hi; then
21061			  ac_lo= ac_hi=
21062			  break
21063			fi
21064			ac_mid=`expr 2 '*' $ac_mid`
21065fi
21066
21067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21068  done
21069else
21070  $as_echo "$as_me: failed program was:" >&5
21071sed 's/^/| /' conftest.$ac_ext >&5
21072
21073	ac_lo= ac_hi=
21074fi
21075
21076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077fi
21078
21079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21080# Binary search between lo and hi bounds.
21081while test "x$ac_lo" != "x$ac_hi"; do
21082  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21083  cat >conftest.$ac_ext <<_ACEOF
21084/* confdefs.h.  */
21085_ACEOF
21086cat confdefs.h >>conftest.$ac_ext
21087cat >>conftest.$ac_ext <<_ACEOF
21088/* end confdefs.h.  */
21089
21090#define _XOPEN_SOURCE_EXTENDED 1
21091#include <errno.h>
21092/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21093#include <stdio.h>
21094#include <stdlib.h>
21095
21096int
21097main ()
21098{
21099static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
21100test_array [0] = 0
21101
21102  ;
21103  return 0;
21104}
21105_ACEOF
21106rm -f conftest.$ac_objext
21107if { (ac_try="$ac_compile"
21108case "(($ac_try" in
21109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110  *) ac_try_echo=$ac_try;;
21111esac
21112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21113$as_echo "$ac_try_echo") >&5
21114  (eval "$ac_compile") 2>conftest.er1
21115  ac_status=$?
21116  grep -v '^ *+' conftest.er1 >conftest.err
21117  rm -f conftest.er1
21118  cat conftest.err >&5
21119  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120  (exit $ac_status); } && {
21121	 test -z "$ac_c_werror_flag" ||
21122	 test ! -s conftest.err
21123       } && test -s conftest.$ac_objext; then
21124  ac_hi=$ac_mid
21125else
21126  $as_echo "$as_me: failed program was:" >&5
21127sed 's/^/| /' conftest.$ac_ext >&5
21128
21129	ac_lo=`expr '(' $ac_mid ')' + 1`
21130fi
21131
21132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21133done
21134case $ac_lo in
21135?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
21136'')  ;;
21137esac
21138else
21139  cat >conftest.$ac_ext <<_ACEOF
21140/* confdefs.h.  */
21141_ACEOF
21142cat confdefs.h >>conftest.$ac_ext
21143cat >>conftest.$ac_ext <<_ACEOF
21144/* end confdefs.h.  */
21145
21146#define _XOPEN_SOURCE_EXTENDED 1
21147#include <errno.h>
21148/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21149#include <stdio.h>
21150#include <stdlib.h>
21151
21152static long int longval () { return EMULTIHOP; }
21153static unsigned long int ulongval () { return EMULTIHOP; }
21154#include <stdio.h>
21155#include <stdlib.h>
21156int
21157main ()
21158{
21159
21160  FILE *f = fopen ("conftest.val", "w");
21161  if (! f)
21162    return 1;
21163  if ((EMULTIHOP) < 0)
21164    {
21165      long int i = longval ();
21166      if (i != (EMULTIHOP))
21167	return 1;
21168      fprintf (f, "%ld", i);
21169    }
21170  else
21171    {
21172      unsigned long int i = ulongval ();
21173      if (i != (EMULTIHOP))
21174	return 1;
21175      fprintf (f, "%lu", i);
21176    }
21177  /* Do not output a trailing newline, as this causes \r\n confusion
21178     on some platforms.  */
21179  return ferror (f) || fclose (f) != 0;
21180
21181  ;
21182  return 0;
21183}
21184_ACEOF
21185rm -f conftest$ac_exeext
21186if { (ac_try="$ac_link"
21187case "(($ac_try" in
21188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189  *) ac_try_echo=$ac_try;;
21190esac
21191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21192$as_echo "$ac_try_echo") >&5
21193  (eval "$ac_link") 2>&5
21194  ac_status=$?
21195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21197  { (case "(($ac_try" in
21198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199  *) ac_try_echo=$ac_try;;
21200esac
21201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21202$as_echo "$ac_try_echo") >&5
21203  (eval "$ac_try") 2>&5
21204  ac_status=$?
21205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206  (exit $ac_status); }; }; then
21207  gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
21208else
21209  $as_echo "$as_me: program exited with status $ac_status" >&5
21210$as_echo "$as_me: failed program was:" >&5
21211sed 's/^/| /' conftest.$ac_ext >&5
21212
21213fi
21214rm -rf conftest.dSYM
21215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21216fi
21217rm -f conftest.val
21218        fi
21219      fi
21220
21221fi
21222{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
21223$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
21224    case $gl_cv_header_errno_h_EMULTIHOP in
21225      yes | no)
21226        EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
21227        ;;
21228      *)
21229        EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
21230        ;;
21231    esac
21232
21233
21234  fi
21235
21236
21237  if test -n "$ERRNO_H"; then
21238    { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
21239$as_echo_n "checking for ENOLINK value... " >&6; }
21240if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
21241  $as_echo_n "(cached) " >&6
21242else
21243
21244      cat >conftest.$ac_ext <<_ACEOF
21245/* confdefs.h.  */
21246_ACEOF
21247cat confdefs.h >>conftest.$ac_ext
21248cat >>conftest.$ac_ext <<_ACEOF
21249/* end confdefs.h.  */
21250
21251#include <errno.h>
21252#ifdef ENOLINK
21253yes
21254#endif
21255
21256_ACEOF
21257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21258  $EGREP "yes" >/dev/null 2>&1; then
21259  gl_cv_header_errno_h_ENOLINK=yes
21260else
21261  gl_cv_header_errno_h_ENOLINK=no
21262fi
21263rm -f conftest*
21264
21265      if test $gl_cv_header_errno_h_ENOLINK = no; then
21266        cat >conftest.$ac_ext <<_ACEOF
21267/* confdefs.h.  */
21268_ACEOF
21269cat confdefs.h >>conftest.$ac_ext
21270cat >>conftest.$ac_ext <<_ACEOF
21271/* end confdefs.h.  */
21272
21273#define _XOPEN_SOURCE_EXTENDED 1
21274#include <errno.h>
21275#ifdef ENOLINK
21276yes
21277#endif
21278
21279_ACEOF
21280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21281  $EGREP "yes" >/dev/null 2>&1; then
21282  gl_cv_header_errno_h_ENOLINK=hidden
21283fi
21284rm -f conftest*
21285
21286        if test $gl_cv_header_errno_h_ENOLINK = hidden; then
21287                              if test "$cross_compiling" = yes; then
21288  # Depending upon the size, compute the lo and hi bounds.
21289cat >conftest.$ac_ext <<_ACEOF
21290/* confdefs.h.  */
21291_ACEOF
21292cat confdefs.h >>conftest.$ac_ext
21293cat >>conftest.$ac_ext <<_ACEOF
21294/* end confdefs.h.  */
21295
21296#define _XOPEN_SOURCE_EXTENDED 1
21297#include <errno.h>
21298/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21299#include <stdio.h>
21300#include <stdlib.h>
21301
21302int
21303main ()
21304{
21305static int test_array [1 - 2 * !((ENOLINK) >= 0)];
21306test_array [0] = 0
21307
21308  ;
21309  return 0;
21310}
21311_ACEOF
21312rm -f conftest.$ac_objext
21313if { (ac_try="$ac_compile"
21314case "(($ac_try" in
21315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316  *) ac_try_echo=$ac_try;;
21317esac
21318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21319$as_echo "$ac_try_echo") >&5
21320  (eval "$ac_compile") 2>conftest.er1
21321  ac_status=$?
21322  grep -v '^ *+' conftest.er1 >conftest.err
21323  rm -f conftest.er1
21324  cat conftest.err >&5
21325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326  (exit $ac_status); } && {
21327	 test -z "$ac_c_werror_flag" ||
21328	 test ! -s conftest.err
21329       } && test -s conftest.$ac_objext; then
21330  ac_lo=0 ac_mid=0
21331  while :; do
21332    cat >conftest.$ac_ext <<_ACEOF
21333/* confdefs.h.  */
21334_ACEOF
21335cat confdefs.h >>conftest.$ac_ext
21336cat >>conftest.$ac_ext <<_ACEOF
21337/* end confdefs.h.  */
21338
21339#define _XOPEN_SOURCE_EXTENDED 1
21340#include <errno.h>
21341/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21342#include <stdio.h>
21343#include <stdlib.h>
21344
21345int
21346main ()
21347{
21348static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
21349test_array [0] = 0
21350
21351  ;
21352  return 0;
21353}
21354_ACEOF
21355rm -f conftest.$ac_objext
21356if { (ac_try="$ac_compile"
21357case "(($ac_try" in
21358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359  *) ac_try_echo=$ac_try;;
21360esac
21361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21362$as_echo "$ac_try_echo") >&5
21363  (eval "$ac_compile") 2>conftest.er1
21364  ac_status=$?
21365  grep -v '^ *+' conftest.er1 >conftest.err
21366  rm -f conftest.er1
21367  cat conftest.err >&5
21368  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369  (exit $ac_status); } && {
21370	 test -z "$ac_c_werror_flag" ||
21371	 test ! -s conftest.err
21372       } && test -s conftest.$ac_objext; then
21373  ac_hi=$ac_mid; break
21374else
21375  $as_echo "$as_me: failed program was:" >&5
21376sed 's/^/| /' conftest.$ac_ext >&5
21377
21378	ac_lo=`expr $ac_mid + 1`
21379			if test $ac_lo -le $ac_mid; then
21380			  ac_lo= ac_hi=
21381			  break
21382			fi
21383			ac_mid=`expr 2 '*' $ac_mid + 1`
21384fi
21385
21386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387  done
21388else
21389  $as_echo "$as_me: failed program was:" >&5
21390sed 's/^/| /' conftest.$ac_ext >&5
21391
21392	cat >conftest.$ac_ext <<_ACEOF
21393/* confdefs.h.  */
21394_ACEOF
21395cat confdefs.h >>conftest.$ac_ext
21396cat >>conftest.$ac_ext <<_ACEOF
21397/* end confdefs.h.  */
21398
21399#define _XOPEN_SOURCE_EXTENDED 1
21400#include <errno.h>
21401/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21402#include <stdio.h>
21403#include <stdlib.h>
21404
21405int
21406main ()
21407{
21408static int test_array [1 - 2 * !((ENOLINK) < 0)];
21409test_array [0] = 0
21410
21411  ;
21412  return 0;
21413}
21414_ACEOF
21415rm -f conftest.$ac_objext
21416if { (ac_try="$ac_compile"
21417case "(($ac_try" in
21418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419  *) ac_try_echo=$ac_try;;
21420esac
21421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21422$as_echo "$ac_try_echo") >&5
21423  (eval "$ac_compile") 2>conftest.er1
21424  ac_status=$?
21425  grep -v '^ *+' conftest.er1 >conftest.err
21426  rm -f conftest.er1
21427  cat conftest.err >&5
21428  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429  (exit $ac_status); } && {
21430	 test -z "$ac_c_werror_flag" ||
21431	 test ! -s conftest.err
21432       } && test -s conftest.$ac_objext; then
21433  ac_hi=-1 ac_mid=-1
21434  while :; do
21435    cat >conftest.$ac_ext <<_ACEOF
21436/* confdefs.h.  */
21437_ACEOF
21438cat confdefs.h >>conftest.$ac_ext
21439cat >>conftest.$ac_ext <<_ACEOF
21440/* end confdefs.h.  */
21441
21442#define _XOPEN_SOURCE_EXTENDED 1
21443#include <errno.h>
21444/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21445#include <stdio.h>
21446#include <stdlib.h>
21447
21448int
21449main ()
21450{
21451static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
21452test_array [0] = 0
21453
21454  ;
21455  return 0;
21456}
21457_ACEOF
21458rm -f conftest.$ac_objext
21459if { (ac_try="$ac_compile"
21460case "(($ac_try" in
21461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462  *) ac_try_echo=$ac_try;;
21463esac
21464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21465$as_echo "$ac_try_echo") >&5
21466  (eval "$ac_compile") 2>conftest.er1
21467  ac_status=$?
21468  grep -v '^ *+' conftest.er1 >conftest.err
21469  rm -f conftest.er1
21470  cat conftest.err >&5
21471  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472  (exit $ac_status); } && {
21473	 test -z "$ac_c_werror_flag" ||
21474	 test ! -s conftest.err
21475       } && test -s conftest.$ac_objext; then
21476  ac_lo=$ac_mid; break
21477else
21478  $as_echo "$as_me: failed program was:" >&5
21479sed 's/^/| /' conftest.$ac_ext >&5
21480
21481	ac_hi=`expr '(' $ac_mid ')' - 1`
21482			if test $ac_mid -le $ac_hi; then
21483			  ac_lo= ac_hi=
21484			  break
21485			fi
21486			ac_mid=`expr 2 '*' $ac_mid`
21487fi
21488
21489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21490  done
21491else
21492  $as_echo "$as_me: failed program was:" >&5
21493sed 's/^/| /' conftest.$ac_ext >&5
21494
21495	ac_lo= ac_hi=
21496fi
21497
21498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21499fi
21500
21501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21502# Binary search between lo and hi bounds.
21503while test "x$ac_lo" != "x$ac_hi"; do
21504  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21505  cat >conftest.$ac_ext <<_ACEOF
21506/* confdefs.h.  */
21507_ACEOF
21508cat confdefs.h >>conftest.$ac_ext
21509cat >>conftest.$ac_ext <<_ACEOF
21510/* end confdefs.h.  */
21511
21512#define _XOPEN_SOURCE_EXTENDED 1
21513#include <errno.h>
21514/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21515#include <stdio.h>
21516#include <stdlib.h>
21517
21518int
21519main ()
21520{
21521static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
21522test_array [0] = 0
21523
21524  ;
21525  return 0;
21526}
21527_ACEOF
21528rm -f conftest.$ac_objext
21529if { (ac_try="$ac_compile"
21530case "(($ac_try" in
21531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532  *) ac_try_echo=$ac_try;;
21533esac
21534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21535$as_echo "$ac_try_echo") >&5
21536  (eval "$ac_compile") 2>conftest.er1
21537  ac_status=$?
21538  grep -v '^ *+' conftest.er1 >conftest.err
21539  rm -f conftest.er1
21540  cat conftest.err >&5
21541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542  (exit $ac_status); } && {
21543	 test -z "$ac_c_werror_flag" ||
21544	 test ! -s conftest.err
21545       } && test -s conftest.$ac_objext; then
21546  ac_hi=$ac_mid
21547else
21548  $as_echo "$as_me: failed program was:" >&5
21549sed 's/^/| /' conftest.$ac_ext >&5
21550
21551	ac_lo=`expr '(' $ac_mid ')' + 1`
21552fi
21553
21554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555done
21556case $ac_lo in
21557?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
21558'')  ;;
21559esac
21560else
21561  cat >conftest.$ac_ext <<_ACEOF
21562/* confdefs.h.  */
21563_ACEOF
21564cat confdefs.h >>conftest.$ac_ext
21565cat >>conftest.$ac_ext <<_ACEOF
21566/* end confdefs.h.  */
21567
21568#define _XOPEN_SOURCE_EXTENDED 1
21569#include <errno.h>
21570/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21571#include <stdio.h>
21572#include <stdlib.h>
21573
21574static long int longval () { return ENOLINK; }
21575static unsigned long int ulongval () { return ENOLINK; }
21576#include <stdio.h>
21577#include <stdlib.h>
21578int
21579main ()
21580{
21581
21582  FILE *f = fopen ("conftest.val", "w");
21583  if (! f)
21584    return 1;
21585  if ((ENOLINK) < 0)
21586    {
21587      long int i = longval ();
21588      if (i != (ENOLINK))
21589	return 1;
21590      fprintf (f, "%ld", i);
21591    }
21592  else
21593    {
21594      unsigned long int i = ulongval ();
21595      if (i != (ENOLINK))
21596	return 1;
21597      fprintf (f, "%lu", i);
21598    }
21599  /* Do not output a trailing newline, as this causes \r\n confusion
21600     on some platforms.  */
21601  return ferror (f) || fclose (f) != 0;
21602
21603  ;
21604  return 0;
21605}
21606_ACEOF
21607rm -f conftest$ac_exeext
21608if { (ac_try="$ac_link"
21609case "(($ac_try" in
21610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611  *) ac_try_echo=$ac_try;;
21612esac
21613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21614$as_echo "$ac_try_echo") >&5
21615  (eval "$ac_link") 2>&5
21616  ac_status=$?
21617  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21619  { (case "(($ac_try" in
21620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621  *) ac_try_echo=$ac_try;;
21622esac
21623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21624$as_echo "$ac_try_echo") >&5
21625  (eval "$ac_try") 2>&5
21626  ac_status=$?
21627  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628  (exit $ac_status); }; }; then
21629  gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
21630else
21631  $as_echo "$as_me: program exited with status $ac_status" >&5
21632$as_echo "$as_me: failed program was:" >&5
21633sed 's/^/| /' conftest.$ac_ext >&5
21634
21635fi
21636rm -rf conftest.dSYM
21637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21638fi
21639rm -f conftest.val
21640        fi
21641      fi
21642
21643fi
21644{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
21645$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
21646    case $gl_cv_header_errno_h_ENOLINK in
21647      yes | no)
21648        ENOLINK_HIDDEN=0; ENOLINK_VALUE=
21649        ;;
21650      *)
21651        ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
21652        ;;
21653    esac
21654
21655
21656  fi
21657
21658
21659  if test -n "$ERRNO_H"; then
21660    { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
21661$as_echo_n "checking for EOVERFLOW value... " >&6; }
21662if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
21663  $as_echo_n "(cached) " >&6
21664else
21665
21666      cat >conftest.$ac_ext <<_ACEOF
21667/* confdefs.h.  */
21668_ACEOF
21669cat confdefs.h >>conftest.$ac_ext
21670cat >>conftest.$ac_ext <<_ACEOF
21671/* end confdefs.h.  */
21672
21673#include <errno.h>
21674#ifdef EOVERFLOW
21675yes
21676#endif
21677
21678_ACEOF
21679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21680  $EGREP "yes" >/dev/null 2>&1; then
21681  gl_cv_header_errno_h_EOVERFLOW=yes
21682else
21683  gl_cv_header_errno_h_EOVERFLOW=no
21684fi
21685rm -f conftest*
21686
21687      if test $gl_cv_header_errno_h_EOVERFLOW = no; then
21688        cat >conftest.$ac_ext <<_ACEOF
21689/* confdefs.h.  */
21690_ACEOF
21691cat confdefs.h >>conftest.$ac_ext
21692cat >>conftest.$ac_ext <<_ACEOF
21693/* end confdefs.h.  */
21694
21695#define _XOPEN_SOURCE_EXTENDED 1
21696#include <errno.h>
21697#ifdef EOVERFLOW
21698yes
21699#endif
21700
21701_ACEOF
21702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21703  $EGREP "yes" >/dev/null 2>&1; then
21704  gl_cv_header_errno_h_EOVERFLOW=hidden
21705fi
21706rm -f conftest*
21707
21708        if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
21709                              if test "$cross_compiling" = yes; then
21710  # Depending upon the size, compute the lo and hi bounds.
21711cat >conftest.$ac_ext <<_ACEOF
21712/* confdefs.h.  */
21713_ACEOF
21714cat confdefs.h >>conftest.$ac_ext
21715cat >>conftest.$ac_ext <<_ACEOF
21716/* end confdefs.h.  */
21717
21718#define _XOPEN_SOURCE_EXTENDED 1
21719#include <errno.h>
21720/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21721#include <stdio.h>
21722#include <stdlib.h>
21723
21724int
21725main ()
21726{
21727static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
21728test_array [0] = 0
21729
21730  ;
21731  return 0;
21732}
21733_ACEOF
21734rm -f conftest.$ac_objext
21735if { (ac_try="$ac_compile"
21736case "(($ac_try" in
21737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738  *) ac_try_echo=$ac_try;;
21739esac
21740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21741$as_echo "$ac_try_echo") >&5
21742  (eval "$ac_compile") 2>conftest.er1
21743  ac_status=$?
21744  grep -v '^ *+' conftest.er1 >conftest.err
21745  rm -f conftest.er1
21746  cat conftest.err >&5
21747  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748  (exit $ac_status); } && {
21749	 test -z "$ac_c_werror_flag" ||
21750	 test ! -s conftest.err
21751       } && test -s conftest.$ac_objext; then
21752  ac_lo=0 ac_mid=0
21753  while :; do
21754    cat >conftest.$ac_ext <<_ACEOF
21755/* confdefs.h.  */
21756_ACEOF
21757cat confdefs.h >>conftest.$ac_ext
21758cat >>conftest.$ac_ext <<_ACEOF
21759/* end confdefs.h.  */
21760
21761#define _XOPEN_SOURCE_EXTENDED 1
21762#include <errno.h>
21763/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21764#include <stdio.h>
21765#include <stdlib.h>
21766
21767int
21768main ()
21769{
21770static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
21771test_array [0] = 0
21772
21773  ;
21774  return 0;
21775}
21776_ACEOF
21777rm -f conftest.$ac_objext
21778if { (ac_try="$ac_compile"
21779case "(($ac_try" in
21780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781  *) ac_try_echo=$ac_try;;
21782esac
21783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21784$as_echo "$ac_try_echo") >&5
21785  (eval "$ac_compile") 2>conftest.er1
21786  ac_status=$?
21787  grep -v '^ *+' conftest.er1 >conftest.err
21788  rm -f conftest.er1
21789  cat conftest.err >&5
21790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791  (exit $ac_status); } && {
21792	 test -z "$ac_c_werror_flag" ||
21793	 test ! -s conftest.err
21794       } && test -s conftest.$ac_objext; then
21795  ac_hi=$ac_mid; break
21796else
21797  $as_echo "$as_me: failed program was:" >&5
21798sed 's/^/| /' conftest.$ac_ext >&5
21799
21800	ac_lo=`expr $ac_mid + 1`
21801			if test $ac_lo -le $ac_mid; then
21802			  ac_lo= ac_hi=
21803			  break
21804			fi
21805			ac_mid=`expr 2 '*' $ac_mid + 1`
21806fi
21807
21808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21809  done
21810else
21811  $as_echo "$as_me: failed program was:" >&5
21812sed 's/^/| /' conftest.$ac_ext >&5
21813
21814	cat >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
21821#define _XOPEN_SOURCE_EXTENDED 1
21822#include <errno.h>
21823/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21824#include <stdio.h>
21825#include <stdlib.h>
21826
21827int
21828main ()
21829{
21830static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
21831test_array [0] = 0
21832
21833  ;
21834  return 0;
21835}
21836_ACEOF
21837rm -f conftest.$ac_objext
21838if { (ac_try="$ac_compile"
21839case "(($ac_try" in
21840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841  *) ac_try_echo=$ac_try;;
21842esac
21843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21844$as_echo "$ac_try_echo") >&5
21845  (eval "$ac_compile") 2>conftest.er1
21846  ac_status=$?
21847  grep -v '^ *+' conftest.er1 >conftest.err
21848  rm -f conftest.er1
21849  cat conftest.err >&5
21850  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851  (exit $ac_status); } && {
21852	 test -z "$ac_c_werror_flag" ||
21853	 test ! -s conftest.err
21854       } && test -s conftest.$ac_objext; then
21855  ac_hi=-1 ac_mid=-1
21856  while :; do
21857    cat >conftest.$ac_ext <<_ACEOF
21858/* confdefs.h.  */
21859_ACEOF
21860cat confdefs.h >>conftest.$ac_ext
21861cat >>conftest.$ac_ext <<_ACEOF
21862/* end confdefs.h.  */
21863
21864#define _XOPEN_SOURCE_EXTENDED 1
21865#include <errno.h>
21866/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21867#include <stdio.h>
21868#include <stdlib.h>
21869
21870int
21871main ()
21872{
21873static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
21874test_array [0] = 0
21875
21876  ;
21877  return 0;
21878}
21879_ACEOF
21880rm -f conftest.$ac_objext
21881if { (ac_try="$ac_compile"
21882case "(($ac_try" in
21883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884  *) ac_try_echo=$ac_try;;
21885esac
21886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21887$as_echo "$ac_try_echo") >&5
21888  (eval "$ac_compile") 2>conftest.er1
21889  ac_status=$?
21890  grep -v '^ *+' conftest.er1 >conftest.err
21891  rm -f conftest.er1
21892  cat conftest.err >&5
21893  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894  (exit $ac_status); } && {
21895	 test -z "$ac_c_werror_flag" ||
21896	 test ! -s conftest.err
21897       } && test -s conftest.$ac_objext; then
21898  ac_lo=$ac_mid; break
21899else
21900  $as_echo "$as_me: failed program was:" >&5
21901sed 's/^/| /' conftest.$ac_ext >&5
21902
21903	ac_hi=`expr '(' $ac_mid ')' - 1`
21904			if test $ac_mid -le $ac_hi; then
21905			  ac_lo= ac_hi=
21906			  break
21907			fi
21908			ac_mid=`expr 2 '*' $ac_mid`
21909fi
21910
21911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21912  done
21913else
21914  $as_echo "$as_me: failed program was:" >&5
21915sed 's/^/| /' conftest.$ac_ext >&5
21916
21917	ac_lo= ac_hi=
21918fi
21919
21920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21921fi
21922
21923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21924# Binary search between lo and hi bounds.
21925while test "x$ac_lo" != "x$ac_hi"; do
21926  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21927  cat >conftest.$ac_ext <<_ACEOF
21928/* confdefs.h.  */
21929_ACEOF
21930cat confdefs.h >>conftest.$ac_ext
21931cat >>conftest.$ac_ext <<_ACEOF
21932/* end confdefs.h.  */
21933
21934#define _XOPEN_SOURCE_EXTENDED 1
21935#include <errno.h>
21936/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21937#include <stdio.h>
21938#include <stdlib.h>
21939
21940int
21941main ()
21942{
21943static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
21944test_array [0] = 0
21945
21946  ;
21947  return 0;
21948}
21949_ACEOF
21950rm -f conftest.$ac_objext
21951if { (ac_try="$ac_compile"
21952case "(($ac_try" in
21953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954  *) ac_try_echo=$ac_try;;
21955esac
21956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21957$as_echo "$ac_try_echo") >&5
21958  (eval "$ac_compile") 2>conftest.er1
21959  ac_status=$?
21960  grep -v '^ *+' conftest.er1 >conftest.err
21961  rm -f conftest.er1
21962  cat conftest.err >&5
21963  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964  (exit $ac_status); } && {
21965	 test -z "$ac_c_werror_flag" ||
21966	 test ! -s conftest.err
21967       } && test -s conftest.$ac_objext; then
21968  ac_hi=$ac_mid
21969else
21970  $as_echo "$as_me: failed program was:" >&5
21971sed 's/^/| /' conftest.$ac_ext >&5
21972
21973	ac_lo=`expr '(' $ac_mid ')' + 1`
21974fi
21975
21976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21977done
21978case $ac_lo in
21979?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
21980'')  ;;
21981esac
21982else
21983  cat >conftest.$ac_ext <<_ACEOF
21984/* confdefs.h.  */
21985_ACEOF
21986cat confdefs.h >>conftest.$ac_ext
21987cat >>conftest.$ac_ext <<_ACEOF
21988/* end confdefs.h.  */
21989
21990#define _XOPEN_SOURCE_EXTENDED 1
21991#include <errno.h>
21992/* The following two lines are a workaround against an autoconf-2.52 bug.  */
21993#include <stdio.h>
21994#include <stdlib.h>
21995
21996static long int longval () { return EOVERFLOW; }
21997static unsigned long int ulongval () { return EOVERFLOW; }
21998#include <stdio.h>
21999#include <stdlib.h>
22000int
22001main ()
22002{
22003
22004  FILE *f = fopen ("conftest.val", "w");
22005  if (! f)
22006    return 1;
22007  if ((EOVERFLOW) < 0)
22008    {
22009      long int i = longval ();
22010      if (i != (EOVERFLOW))
22011	return 1;
22012      fprintf (f, "%ld", i);
22013    }
22014  else
22015    {
22016      unsigned long int i = ulongval ();
22017      if (i != (EOVERFLOW))
22018	return 1;
22019      fprintf (f, "%lu", i);
22020    }
22021  /* Do not output a trailing newline, as this causes \r\n confusion
22022     on some platforms.  */
22023  return ferror (f) || fclose (f) != 0;
22024
22025  ;
22026  return 0;
22027}
22028_ACEOF
22029rm -f conftest$ac_exeext
22030if { (ac_try="$ac_link"
22031case "(($ac_try" in
22032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033  *) ac_try_echo=$ac_try;;
22034esac
22035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22036$as_echo "$ac_try_echo") >&5
22037  (eval "$ac_link") 2>&5
22038  ac_status=$?
22039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22041  { (case "(($ac_try" in
22042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043  *) ac_try_echo=$ac_try;;
22044esac
22045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22046$as_echo "$ac_try_echo") >&5
22047  (eval "$ac_try") 2>&5
22048  ac_status=$?
22049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050  (exit $ac_status); }; }; then
22051  gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
22052else
22053  $as_echo "$as_me: program exited with status $ac_status" >&5
22054$as_echo "$as_me: failed program was:" >&5
22055sed 's/^/| /' conftest.$ac_ext >&5
22056
22057fi
22058rm -rf conftest.dSYM
22059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22060fi
22061rm -f conftest.val
22062        fi
22063      fi
22064
22065fi
22066{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
22067$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
22068    case $gl_cv_header_errno_h_EOVERFLOW in
22069      yes | no)
22070        EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
22071        ;;
22072      *)
22073        EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
22074        ;;
22075    esac
22076
22077
22078  fi
22079
22080
22081
22082
22083
22084
22085{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
22086$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22087if test "${ac_cv_c_restrict+set}" = set; then
22088  $as_echo_n "(cached) " >&6
22089else
22090  ac_cv_c_restrict=no
22091   # The order here caters to the fact that C++ does not require restrict.
22092   for ac_kw in __restrict __restrict__ _Restrict restrict; do
22093     cat >conftest.$ac_ext <<_ACEOF
22094/* confdefs.h.  */
22095_ACEOF
22096cat confdefs.h >>conftest.$ac_ext
22097cat >>conftest.$ac_ext <<_ACEOF
22098/* end confdefs.h.  */
22099typedef int *int_ptr;
22100	   int foo (int_ptr $ac_kw ip) { return ip[0]; }
22101	   int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
22102	   int bar (int ip[$ac_kw]) { return ip[0]; }
22103
22104int
22105main ()
22106{
22107int s[1];
22108	   int *$ac_kw t = s;
22109	   t[0] = 0;
22110	   return foo (t) + bar (t);
22111
22112  ;
22113  return 0;
22114}
22115_ACEOF
22116rm -f conftest.$ac_objext
22117if { (ac_try="$ac_compile"
22118case "(($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_compile") 2>conftest.er1
22125  ac_status=$?
22126  grep -v '^ *+' conftest.er1 >conftest.err
22127  rm -f conftest.er1
22128  cat conftest.err >&5
22129  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130  (exit $ac_status); } && {
22131	 test -z "$ac_c_werror_flag" ||
22132	 test ! -s conftest.err
22133       } && test -s conftest.$ac_objext; then
22134  ac_cv_c_restrict=$ac_kw
22135else
22136  $as_echo "$as_me: failed program was:" >&5
22137sed 's/^/| /' conftest.$ac_ext >&5
22138
22139
22140fi
22141
22142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143     test "$ac_cv_c_restrict" != no && break
22144   done
22145
22146fi
22147{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
22148$as_echo "$ac_cv_c_restrict" >&6; }
22149
22150
22151 case $ac_cv_c_restrict in
22152   restrict) ;;
22153   no) cat >>confdefs.h <<\_ACEOF
22154#define restrict /**/
22155_ACEOF
22156 ;;
22157   *)  cat >>confdefs.h <<_ACEOF
22158#define restrict $ac_cv_c_restrict
22159_ACEOF
22160 ;;
22161 esac
22162
22163
22164  GNULIB_GETTIMEOFDAY=0;
22165    HAVE_GETTIMEOFDAY=1;
22166  HAVE_STRUCT_TIMEVAL=1;
22167  HAVE_SYS_TIME_H=1;
22168  REPLACE_GETTIMEOFDAY=0;
22169  REPLACE_STRUCT_TIMEVAL=0;
22170
22171
22172
22173
22174
22175
22176for ac_header in $gl_header_list
22177do
22178as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22180  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22181$as_echo_n "checking for $ac_header... " >&6; }
22182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22183  $as_echo_n "(cached) " >&6
22184fi
22185ac_res=`eval 'as_val=${'$as_ac_Header'}
22186		 $as_echo "$as_val"'`
22187	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22188$as_echo "$ac_res" >&6; }
22189else
22190  # Is the header compilable?
22191{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22192$as_echo_n "checking $ac_header usability... " >&6; }
22193cat >conftest.$ac_ext <<_ACEOF
22194/* confdefs.h.  */
22195_ACEOF
22196cat confdefs.h >>conftest.$ac_ext
22197cat >>conftest.$ac_ext <<_ACEOF
22198/* end confdefs.h.  */
22199$ac_includes_default
22200#include <$ac_header>
22201_ACEOF
22202rm -f conftest.$ac_objext
22203if { (ac_try="$ac_compile"
22204case "(($ac_try" in
22205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22206  *) ac_try_echo=$ac_try;;
22207esac
22208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22209$as_echo "$ac_try_echo") >&5
22210  (eval "$ac_compile") 2>conftest.er1
22211  ac_status=$?
22212  grep -v '^ *+' conftest.er1 >conftest.err
22213  rm -f conftest.er1
22214  cat conftest.err >&5
22215  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216  (exit $ac_status); } && {
22217	 test -z "$ac_c_werror_flag" ||
22218	 test ! -s conftest.err
22219       } && test -s conftest.$ac_objext; then
22220  ac_header_compiler=yes
22221else
22222  $as_echo "$as_me: failed program was:" >&5
22223sed 's/^/| /' conftest.$ac_ext >&5
22224
22225	ac_header_compiler=no
22226fi
22227
22228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22229{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22230$as_echo "$ac_header_compiler" >&6; }
22231
22232# Is the header present?
22233{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22234$as_echo_n "checking $ac_header presence... " >&6; }
22235cat >conftest.$ac_ext <<_ACEOF
22236/* confdefs.h.  */
22237_ACEOF
22238cat confdefs.h >>conftest.$ac_ext
22239cat >>conftest.$ac_ext <<_ACEOF
22240/* end confdefs.h.  */
22241#include <$ac_header>
22242_ACEOF
22243if { (ac_try="$ac_cpp conftest.$ac_ext"
22244case "(($ac_try" in
22245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246  *) ac_try_echo=$ac_try;;
22247esac
22248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22249$as_echo "$ac_try_echo") >&5
22250  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22251  ac_status=$?
22252  grep -v '^ *+' conftest.er1 >conftest.err
22253  rm -f conftest.er1
22254  cat conftest.err >&5
22255  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256  (exit $ac_status); } >/dev/null && {
22257	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22258	 test ! -s conftest.err
22259       }; then
22260  ac_header_preproc=yes
22261else
22262  $as_echo "$as_me: failed program was:" >&5
22263sed 's/^/| /' conftest.$ac_ext >&5
22264
22265  ac_header_preproc=no
22266fi
22267
22268rm -f conftest.err conftest.$ac_ext
22269{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22270$as_echo "$ac_header_preproc" >&6; }
22271
22272# So?  What about this header?
22273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22274  yes:no: )
22275    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22276$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22277    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22278$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22279    ac_header_preproc=yes
22280    ;;
22281  no:yes:* )
22282    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22283$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22284    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22285$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22286    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22287$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22288    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22289$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22290    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22291$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22292    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22293$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22294
22295    ;;
22296esac
22297{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22298$as_echo_n "checking for $ac_header... " >&6; }
22299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22300  $as_echo_n "(cached) " >&6
22301else
22302  eval "$as_ac_Header=\$ac_header_preproc"
22303fi
22304ac_res=`eval 'as_val=${'$as_ac_Header'}
22305		 $as_echo "$as_val"'`
22306	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22307$as_echo "$ac_res" >&6; }
22308
22309fi
22310as_val=`eval 'as_val=${'$as_ac_Header'}
22311		 $as_echo "$as_val"'`
22312   if test "x$as_val" = x""yes; then
22313  cat >>confdefs.h <<_ACEOF
22314#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22315_ACEOF
22316
22317fi
22318
22319done
22320
22321
22322
22323
22324
22325
22326
22327  GNULIB_CHDIR=0;
22328  GNULIB_CHOWN=0;
22329  GNULIB_CLOSE=0;
22330  GNULIB_DUP=0;
22331  GNULIB_DUP2=0;
22332  GNULIB_DUP3=0;
22333  GNULIB_ENVIRON=0;
22334  GNULIB_EUIDACCESS=0;
22335  GNULIB_FACCESSAT=0;
22336  GNULIB_FCHDIR=0;
22337  GNULIB_FCHOWNAT=0;
22338  GNULIB_FDATASYNC=0;
22339  GNULIB_FSYNC=0;
22340  GNULIB_FTRUNCATE=0;
22341  GNULIB_GETCWD=0;
22342  GNULIB_GETDOMAINNAME=0;
22343  GNULIB_GETDTABLESIZE=0;
22344  GNULIB_GETGROUPS=0;
22345  GNULIB_GETHOSTNAME=0;
22346  GNULIB_GETLOGIN=0;
22347  GNULIB_GETLOGIN_R=0;
22348  GNULIB_GETPAGESIZE=0;
22349  GNULIB_GETUSERSHELL=0;
22350  GNULIB_GROUP_MEMBER=0;
22351  GNULIB_ISATTY=0;
22352  GNULIB_LCHOWN=0;
22353  GNULIB_LINK=0;
22354  GNULIB_LINKAT=0;
22355  GNULIB_LSEEK=0;
22356  GNULIB_PIPE=0;
22357  GNULIB_PIPE2=0;
22358  GNULIB_PREAD=0;
22359  GNULIB_PWRITE=0;
22360  GNULIB_READ=0;
22361  GNULIB_READLINK=0;
22362  GNULIB_READLINKAT=0;
22363  GNULIB_RMDIR=0;
22364  GNULIB_SETHOSTNAME=0;
22365  GNULIB_SLEEP=0;
22366  GNULIB_SYMLINK=0;
22367  GNULIB_SYMLINKAT=0;
22368  GNULIB_TTYNAME_R=0;
22369  GNULIB_UNISTD_H_NONBLOCKING=0;
22370  GNULIB_UNISTD_H_SIGPIPE=0;
22371  GNULIB_UNLINK=0;
22372  GNULIB_UNLINKAT=0;
22373  GNULIB_USLEEP=0;
22374  GNULIB_WRITE=0;
22375    HAVE_CHOWN=1;
22376  HAVE_DUP2=1;
22377  HAVE_DUP3=1;
22378  HAVE_EUIDACCESS=1;
22379  HAVE_FACCESSAT=1;
22380  HAVE_FCHDIR=1;
22381  HAVE_FCHOWNAT=1;
22382  HAVE_FDATASYNC=1;
22383  HAVE_FSYNC=1;
22384  HAVE_FTRUNCATE=1;
22385  HAVE_GETDTABLESIZE=1;
22386  HAVE_GETGROUPS=1;
22387  HAVE_GETHOSTNAME=1;
22388  HAVE_GETLOGIN=1;
22389  HAVE_GETPAGESIZE=1;
22390  HAVE_GROUP_MEMBER=1;
22391  HAVE_LCHOWN=1;
22392  HAVE_LINK=1;
22393  HAVE_LINKAT=1;
22394  HAVE_PIPE=1;
22395  HAVE_PIPE2=1;
22396  HAVE_PREAD=1;
22397  HAVE_PWRITE=1;
22398  HAVE_READLINK=1;
22399  HAVE_READLINKAT=1;
22400  HAVE_SETHOSTNAME=1;
22401  HAVE_SLEEP=1;
22402  HAVE_SYMLINK=1;
22403  HAVE_SYMLINKAT=1;
22404  HAVE_UNLINKAT=1;
22405  HAVE_USLEEP=1;
22406  HAVE_DECL_ENVIRON=1;
22407  HAVE_DECL_FCHDIR=1;
22408  HAVE_DECL_FDATASYNC=1;
22409  HAVE_DECL_GETDOMAINNAME=1;
22410  HAVE_DECL_GETLOGIN_R=1;
22411  HAVE_DECL_GETPAGESIZE=1;
22412  HAVE_DECL_GETUSERSHELL=1;
22413  HAVE_DECL_SETHOSTNAME=1;
22414  HAVE_DECL_TTYNAME_R=1;
22415  HAVE_OS_H=0;
22416  HAVE_SYS_PARAM_H=0;
22417  REPLACE_CHOWN=0;
22418  REPLACE_CLOSE=0;
22419  REPLACE_DUP=0;
22420  REPLACE_DUP2=0;
22421  REPLACE_FCHOWNAT=0;
22422  REPLACE_FTRUNCATE=0;
22423  REPLACE_GETCWD=0;
22424  REPLACE_GETDOMAINNAME=0;
22425  REPLACE_GETDTABLESIZE=0;
22426  REPLACE_GETLOGIN_R=0;
22427  REPLACE_GETGROUPS=0;
22428  REPLACE_GETPAGESIZE=0;
22429  REPLACE_ISATTY=0;
22430  REPLACE_LCHOWN=0;
22431  REPLACE_LINK=0;
22432  REPLACE_LINKAT=0;
22433  REPLACE_LSEEK=0;
22434  REPLACE_PREAD=0;
22435  REPLACE_PWRITE=0;
22436  REPLACE_READ=0;
22437  REPLACE_READLINK=0;
22438  REPLACE_RMDIR=0;
22439  REPLACE_SLEEP=0;
22440  REPLACE_SYMLINK=0;
22441  REPLACE_TTYNAME_R=0;
22442  REPLACE_UNLINK=0;
22443  REPLACE_UNLINKAT=0;
22444  REPLACE_USLEEP=0;
22445  REPLACE_WRITE=0;
22446  UNISTD_H_HAVE_WINSOCK2_H=0;
22447  UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460  :
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472  :
22473
22474
22475
22476
22477
22478
22479
22480
22481     if test $gl_cv_have_include_next = yes; then
22482       gl_cv_next_sys_time_h='<'sys/time.h'>'
22483     else
22484       { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
22485$as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
22486if test "${gl_cv_next_sys_time_h+set}" = set; then
22487  $as_echo_n "(cached) " >&6
22488else
22489
22490             if test $ac_cv_header_sys_time_h = yes; then
22491
22492
22493
22494
22495  cat >conftest.$ac_ext <<_ACEOF
22496/* confdefs.h.  */
22497_ACEOF
22498cat confdefs.h >>conftest.$ac_ext
22499cat >>conftest.$ac_ext <<_ACEOF
22500/* end confdefs.h.  */
22501#include <sys/time.h>
22502_ACEOF
22503                case "$host_os" in
22504    aix*) gl_absname_cpp="$ac_cpp -C" ;;
22505    *)    gl_absname_cpp="$ac_cpp" ;;
22506  esac
22507
22508  case "$host_os" in
22509    mingw*)
22510                                          gl_dirsep_regex='[/\\]'
22511      ;;
22512    *)
22513      gl_dirsep_regex='\/'
22514      ;;
22515  esac
22516      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22517  gl_header_literal_regex=`echo 'sys/time.h' \
22518                           | sed -e "$gl_make_literal_regex_sed"`
22519  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22520      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22521      s|^/[^/]|//&|
22522      p
22523      q
22524    }'
22525
22526        gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22527  sed -n "$gl_absolute_header_sed"`
22528
22529           gl_header=$gl_cv_absolute_sys_time_h
22530           gl_cv_next_sys_time_h='"'$gl_header'"'
22531          else
22532               gl_cv_next_sys_time_h='<'sys/time.h'>'
22533             fi
22534
22535
22536fi
22537{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
22538$as_echo "$gl_cv_next_sys_time_h" >&6; }
22539     fi
22540     NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
22541
22542     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22543       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22544       gl_next_as_first_directive='<'sys/time.h'>'
22545     else
22546       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22547       gl_next_as_first_directive=$gl_cv_next_sys_time_h
22548     fi
22549     NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
22550
22551
22552
22553
22554
22555  if test $ac_cv_header_sys_time_h != yes; then
22556    HAVE_SYS_TIME_H=0
22557  fi
22558
22559
22560
22561
22562
22563  :
22564
22565
22566
22567
22568
22569  if test $ac_cv_header_sys_socket_h != yes; then
22570
22571for ac_header in winsock2.h
22572do
22573as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22575  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22576$as_echo_n "checking for $ac_header... " >&6; }
22577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22578  $as_echo_n "(cached) " >&6
22579fi
22580ac_res=`eval 'as_val=${'$as_ac_Header'}
22581		 $as_echo "$as_val"'`
22582	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22583$as_echo "$ac_res" >&6; }
22584else
22585  # Is the header compilable?
22586{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22587$as_echo_n "checking $ac_header usability... " >&6; }
22588cat >conftest.$ac_ext <<_ACEOF
22589/* confdefs.h.  */
22590_ACEOF
22591cat confdefs.h >>conftest.$ac_ext
22592cat >>conftest.$ac_ext <<_ACEOF
22593/* end confdefs.h.  */
22594$ac_includes_default
22595#include <$ac_header>
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  ac_header_compiler=yes
22616else
22617  $as_echo "$as_me: failed program was:" >&5
22618sed 's/^/| /' conftest.$ac_ext >&5
22619
22620	ac_header_compiler=no
22621fi
22622
22623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22625$as_echo "$ac_header_compiler" >&6; }
22626
22627# Is the header present?
22628{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22629$as_echo_n "checking $ac_header presence... " >&6; }
22630cat >conftest.$ac_ext <<_ACEOF
22631/* confdefs.h.  */
22632_ACEOF
22633cat confdefs.h >>conftest.$ac_ext
22634cat >>conftest.$ac_ext <<_ACEOF
22635/* end confdefs.h.  */
22636#include <$ac_header>
22637_ACEOF
22638if { (ac_try="$ac_cpp conftest.$ac_ext"
22639case "(($ac_try" in
22640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22641  *) ac_try_echo=$ac_try;;
22642esac
22643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22644$as_echo "$ac_try_echo") >&5
22645  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22646  ac_status=$?
22647  grep -v '^ *+' conftest.er1 >conftest.err
22648  rm -f conftest.er1
22649  cat conftest.err >&5
22650  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651  (exit $ac_status); } >/dev/null && {
22652	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22653	 test ! -s conftest.err
22654       }; then
22655  ac_header_preproc=yes
22656else
22657  $as_echo "$as_me: failed program was:" >&5
22658sed 's/^/| /' conftest.$ac_ext >&5
22659
22660  ac_header_preproc=no
22661fi
22662
22663rm -f conftest.err conftest.$ac_ext
22664{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22665$as_echo "$ac_header_preproc" >&6; }
22666
22667# So?  What about this header?
22668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22669  yes:no: )
22670    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22671$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22672    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22673$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22674    ac_header_preproc=yes
22675    ;;
22676  no:yes:* )
22677    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22678$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22679    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22680$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22681    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22682$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22683    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22684$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22685    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22686$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22687    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22688$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22689
22690    ;;
22691esac
22692{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22693$as_echo_n "checking for $ac_header... " >&6; }
22694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22695  $as_echo_n "(cached) " >&6
22696else
22697  eval "$as_ac_Header=\$ac_header_preproc"
22698fi
22699ac_res=`eval 'as_val=${'$as_ac_Header'}
22700		 $as_echo "$as_val"'`
22701	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22702$as_echo "$ac_res" >&6; }
22703
22704fi
22705as_val=`eval 'as_val=${'$as_ac_Header'}
22706		 $as_echo "$as_val"'`
22707   if test "x$as_val" = x""yes; then
22708  cat >>confdefs.h <<_ACEOF
22709#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22710_ACEOF
22711
22712fi
22713
22714done
22715
22716  fi
22717  if test "$ac_cv_header_winsock2_h" = yes; then
22718    HAVE_WINSOCK2_H=1
22719    UNISTD_H_HAVE_WINSOCK2_H=1
22720    SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22721  else
22722    HAVE_WINSOCK2_H=0
22723  fi
22724
22725
22726  { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
22727$as_echo_n "checking for struct timeval... " >&6; }
22728if test "${gl_cv_sys_struct_timeval+set}" = set; then
22729  $as_echo_n "(cached) " >&6
22730else
22731  cat >conftest.$ac_ext <<_ACEOF
22732/* confdefs.h.  */
22733_ACEOF
22734cat confdefs.h >>conftest.$ac_ext
22735cat >>conftest.$ac_ext <<_ACEOF
22736/* end confdefs.h.  */
22737#if HAVE_SYS_TIME_H
22738             #include <sys/time.h>
22739            #endif
22740            #include <time.h>
22741            #if HAVE_WINSOCK2_H
22742            # include <winsock2.h>
22743            #endif
22744
22745int
22746main ()
22747{
22748static struct timeval x; x.tv_sec = x.tv_usec;
22749  ;
22750  return 0;
22751}
22752_ACEOF
22753rm -f conftest.$ac_objext
22754if { (ac_try="$ac_compile"
22755case "(($ac_try" in
22756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22757  *) ac_try_echo=$ac_try;;
22758esac
22759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22760$as_echo "$ac_try_echo") >&5
22761  (eval "$ac_compile") 2>conftest.er1
22762  ac_status=$?
22763  grep -v '^ *+' conftest.er1 >conftest.err
22764  rm -f conftest.er1
22765  cat conftest.err >&5
22766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767  (exit $ac_status); } && {
22768	 test -z "$ac_c_werror_flag" ||
22769	 test ! -s conftest.err
22770       } && test -s conftest.$ac_objext; then
22771  gl_cv_sys_struct_timeval=yes
22772else
22773  $as_echo "$as_me: failed program was:" >&5
22774sed 's/^/| /' conftest.$ac_ext >&5
22775
22776	gl_cv_sys_struct_timeval=no
22777fi
22778
22779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22780
22781fi
22782{ $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
22783$as_echo "$gl_cv_sys_struct_timeval" >&6; }
22784  if test $gl_cv_sys_struct_timeval != yes; then
22785    HAVE_STRUCT_TIMEVAL=0
22786  else
22787                            { $as_echo "$as_me:$LINENO: checking for wide-enough struct timeval.tv_sec member" >&5
22788$as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
22789if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then
22790  $as_echo_n "(cached) " >&6
22791else
22792  cat >conftest.$ac_ext <<_ACEOF
22793/* confdefs.h.  */
22794_ACEOF
22795cat confdefs.h >>conftest.$ac_ext
22796cat >>conftest.$ac_ext <<_ACEOF
22797/* end confdefs.h.  */
22798#if HAVE_SYS_TIME_H
22799               #include <sys/time.h>
22800              #endif
22801              #include <time.h>
22802              #if HAVE_WINSOCK2_H
22803              # include <winsock2.h>
22804              #endif
22805
22806int
22807main ()
22808{
22809static struct timeval x;
22810              typedef int verify_tv_sec_type[
22811                sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
22812              ];
22813
22814  ;
22815  return 0;
22816}
22817_ACEOF
22818rm -f conftest.$ac_objext
22819if { (ac_try="$ac_compile"
22820case "(($ac_try" in
22821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822  *) ac_try_echo=$ac_try;;
22823esac
22824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22825$as_echo "$ac_try_echo") >&5
22826  (eval "$ac_compile") 2>conftest.er1
22827  ac_status=$?
22828  grep -v '^ *+' conftest.er1 >conftest.err
22829  rm -f conftest.er1
22830  cat conftest.err >&5
22831  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832  (exit $ac_status); } && {
22833	 test -z "$ac_c_werror_flag" ||
22834	 test ! -s conftest.err
22835       } && test -s conftest.$ac_objext; then
22836  gl_cv_sys_struct_timeval_tv_sec=yes
22837else
22838  $as_echo "$as_me: failed program was:" >&5
22839sed 's/^/| /' conftest.$ac_ext >&5
22840
22841	gl_cv_sys_struct_timeval_tv_sec=no
22842fi
22843
22844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845
22846fi
22847{ $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
22848$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
22849    if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
22850      REPLACE_STRUCT_TIMEVAL=1
22851    fi
22852  fi
22853
22854
22855
22856  for gl_func in gettimeofday; do
22857    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22858    { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
22859$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22860if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
22861  $as_echo_n "(cached) " >&6
22862else
22863  cat >conftest.$ac_ext <<_ACEOF
22864/* confdefs.h.  */
22865_ACEOF
22866cat confdefs.h >>conftest.$ac_ext
22867cat >>conftest.$ac_ext <<_ACEOF
22868/* end confdefs.h.  */
22869
22870#if HAVE_SYS_TIME_H
22871# include <sys/time.h>
22872#endif
22873#include <time.h>
22874
22875int
22876main ()
22877{
22878#undef $gl_func
22879  (void) $gl_func;
22880  ;
22881  return 0;
22882}
22883_ACEOF
22884rm -f conftest.$ac_objext
22885if { (ac_try="$ac_compile"
22886case "(($ac_try" in
22887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888  *) ac_try_echo=$ac_try;;
22889esac
22890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22891$as_echo "$ac_try_echo") >&5
22892  (eval "$ac_compile") 2>conftest.er1
22893  ac_status=$?
22894  grep -v '^ *+' conftest.er1 >conftest.err
22895  rm -f conftest.er1
22896  cat conftest.err >&5
22897  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898  (exit $ac_status); } && {
22899	 test -z "$ac_c_werror_flag" ||
22900	 test ! -s conftest.err
22901       } && test -s conftest.$ac_objext; then
22902  eval "$as_gl_Symbol=yes"
22903else
22904  $as_echo "$as_me: failed program was:" >&5
22905sed 's/^/| /' conftest.$ac_ext >&5
22906
22907	eval "$as_gl_Symbol=no"
22908fi
22909
22910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22911fi
22912ac_res=`eval 'as_val=${'$as_gl_Symbol'}
22913		 $as_echo "$as_val"'`
22914	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22915$as_echo "$ac_res" >&6; }
22916    as_val=`eval 'as_val=${'$as_gl_Symbol'}
22917		 $as_echo "$as_val"'`
22918   if test "x$as_val" = x""yes; then
22919  cat >>confdefs.h <<_ACEOF
22920#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22921_ACEOF
22922
22923                     eval ac_cv_have_decl_$gl_func=yes
22924fi
22925
22926      done
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937for ac_func in $gl_func_list
22938do
22939as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22940{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22941$as_echo_n "checking for $ac_func... " >&6; }
22942if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22943  $as_echo_n "(cached) " >&6
22944else
22945  cat >conftest.$ac_ext <<_ACEOF
22946/* confdefs.h.  */
22947_ACEOF
22948cat confdefs.h >>conftest.$ac_ext
22949cat >>conftest.$ac_ext <<_ACEOF
22950/* end confdefs.h.  */
22951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22952   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22953#define $ac_func innocuous_$ac_func
22954
22955/* System header to define __stub macros and hopefully few prototypes,
22956    which can conflict with char $ac_func (); below.
22957    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22958    <limits.h> exists even on freestanding compilers.  */
22959
22960#ifdef __STDC__
22961# include <limits.h>
22962#else
22963# include <assert.h>
22964#endif
22965
22966#undef $ac_func
22967
22968/* Override any GCC internal prototype to avoid an error.
22969   Use char because int might match the return type of a GCC
22970   builtin and then its argument prototype would still apply.  */
22971#ifdef __cplusplus
22972extern "C"
22973#endif
22974char $ac_func ();
22975/* The GNU C library defines this for functions which it implements
22976    to always fail with ENOSYS.  Some functions are actually named
22977    something starting with __ and the normal name is an alias.  */
22978#if defined __stub_$ac_func || defined __stub___$ac_func
22979choke me
22980#endif
22981
22982int
22983main ()
22984{
22985return $ac_func ();
22986  ;
22987  return 0;
22988}
22989_ACEOF
22990rm -f conftest.$ac_objext conftest$ac_exeext
22991if { (ac_try="$ac_link"
22992case "(($ac_try" in
22993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994  *) ac_try_echo=$ac_try;;
22995esac
22996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22997$as_echo "$ac_try_echo") >&5
22998  (eval "$ac_link") 2>conftest.er1
22999  ac_status=$?
23000  grep -v '^ *+' conftest.er1 >conftest.err
23001  rm -f conftest.er1
23002  cat conftest.err >&5
23003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004  (exit $ac_status); } && {
23005	 test -z "$ac_c_werror_flag" ||
23006	 test ! -s conftest.err
23007       } && test -s conftest$ac_exeext && {
23008	 test "$cross_compiling" = yes ||
23009	 $as_test_x conftest$ac_exeext
23010       }; then
23011  eval "$as_ac_var=yes"
23012else
23013  $as_echo "$as_me: failed program was:" >&5
23014sed 's/^/| /' conftest.$ac_ext >&5
23015
23016	eval "$as_ac_var=no"
23017fi
23018
23019rm -rf conftest.dSYM
23020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23021      conftest$ac_exeext conftest.$ac_ext
23022fi
23023ac_res=`eval 'as_val=${'$as_ac_var'}
23024		 $as_echo "$as_val"'`
23025	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23026$as_echo "$ac_res" >&6; }
23027as_val=`eval 'as_val=${'$as_ac_var'}
23028		 $as_echo "$as_val"'`
23029   if test "x$as_val" = x""yes; then
23030  cat >>confdefs.h <<_ACEOF
23031#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23032_ACEOF
23033
23034fi
23035done
23036
23037
23038
23039
23040
23041
23042
23043      if test "X$prefix" = "XNONE"; then
23044    acl_final_prefix="$ac_default_prefix"
23045  else
23046    acl_final_prefix="$prefix"
23047  fi
23048  if test "X$exec_prefix" = "XNONE"; then
23049    acl_final_exec_prefix='${prefix}'
23050  else
23051    acl_final_exec_prefix="$exec_prefix"
23052  fi
23053  acl_save_prefix="$prefix"
23054  prefix="$acl_final_prefix"
23055  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
23056  prefix="$acl_save_prefix"
23057
23058
23059
23060# Check whether --with-gnu-ld was given.
23061if test "${with_gnu_ld+set}" = set; then
23062  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
23063else
23064  with_gnu_ld=no
23065fi
23066
23067# Prepare PATH_SEPARATOR.
23068# The user is always right.
23069if test "${PATH_SEPARATOR+set}" != set; then
23070  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
23071  # contains only /bin. Note that ksh looks also at the FPATH variable,
23072  # so we have to set that as well for the test.
23073  PATH_SEPARATOR=:
23074  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
23075    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
23076           || PATH_SEPARATOR=';'
23077       }
23078fi
23079
23080ac_prog=ld
23081if test "$GCC" = yes; then
23082  # Check if gcc -print-prog-name=ld gives a path.
23083  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
23084$as_echo_n "checking for ld used by $CC... " >&6; }
23085  case $host in
23086  *-*-mingw*)
23087    # gcc leaves a trailing carriage return which upsets mingw
23088    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
23089  *)
23090    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
23091  esac
23092  case $ac_prog in
23093    # Accept absolute paths.
23094    [\\/]* | ?:[\\/]*)
23095      re_direlt='/[^/][^/]*/\.\./'
23096      # Canonicalize the pathname of ld
23097      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
23098      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
23099        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
23100      done
23101      test -z "$LD" && LD="$ac_prog"
23102      ;;
23103  "")
23104    # If it fails, then pretend we aren't using GCC.
23105    ac_prog=ld
23106    ;;
23107  *)
23108    # If it is relative, then search for the first ld in PATH.
23109    with_gnu_ld=unknown
23110    ;;
23111  esac
23112elif test "$with_gnu_ld" = yes; then
23113  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
23114$as_echo_n "checking for GNU ld... " >&6; }
23115else
23116  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
23117$as_echo_n "checking for non-GNU ld... " >&6; }
23118fi
23119if test "${acl_cv_path_LD+set}" = set; then
23120  $as_echo_n "(cached) " >&6
23121else
23122  if test -z "$LD"; then
23123  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
23124  for ac_dir in $PATH; do
23125    IFS="$acl_save_ifs"
23126    test -z "$ac_dir" && ac_dir=.
23127    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
23128      acl_cv_path_LD="$ac_dir/$ac_prog"
23129      # Check to see if the program is GNU ld.  I'd rather use --version,
23130      # but apparently some variants of GNU ld only accept -v.
23131      # Break only if it was the GNU/non-GNU ld that we prefer.
23132      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
23133      *GNU* | *'with BFD'*)
23134        test "$with_gnu_ld" != no && break
23135        ;;
23136      *)
23137        test "$with_gnu_ld" != yes && break
23138        ;;
23139      esac
23140    fi
23141  done
23142  IFS="$acl_save_ifs"
23143else
23144  acl_cv_path_LD="$LD" # Let the user override the test with a path.
23145fi
23146fi
23147
23148LD="$acl_cv_path_LD"
23149if test -n "$LD"; then
23150  { $as_echo "$as_me:$LINENO: result: $LD" >&5
23151$as_echo "$LD" >&6; }
23152else
23153  { $as_echo "$as_me:$LINENO: result: no" >&5
23154$as_echo "no" >&6; }
23155fi
23156test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
23157$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
23158   { (exit 1); exit 1; }; }
23159{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
23160$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
23161if test "${acl_cv_prog_gnu_ld+set}" = set; then
23162  $as_echo_n "(cached) " >&6
23163else
23164  # I'd rather use --version here, but apparently some GNU lds only accept -v.
23165case `$LD -v 2>&1 </dev/null` in
23166*GNU* | *'with BFD'*)
23167  acl_cv_prog_gnu_ld=yes
23168  ;;
23169*)
23170  acl_cv_prog_gnu_ld=no
23171  ;;
23172esac
23173fi
23174{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
23175$as_echo "$acl_cv_prog_gnu_ld" >&6; }
23176with_gnu_ld=$acl_cv_prog_gnu_ld
23177
23178
23179
23180
23181                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
23182$as_echo_n "checking for shared library run path origin... " >&6; }
23183if test "${acl_cv_rpath+set}" = set; then
23184  $as_echo_n "(cached) " >&6
23185else
23186
23187    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
23188    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
23189    . ./conftest.sh
23190    rm -f ./conftest.sh
23191    acl_cv_rpath=done
23192
23193fi
23194{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
23195$as_echo "$acl_cv_rpath" >&6; }
23196  wl="$acl_cv_wl"
23197  acl_libext="$acl_cv_libext"
23198  acl_shlibext="$acl_cv_shlibext"
23199  acl_libname_spec="$acl_cv_libname_spec"
23200  acl_library_names_spec="$acl_cv_library_names_spec"
23201  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
23202  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
23203  acl_hardcode_direct="$acl_cv_hardcode_direct"
23204  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
23205    # Check whether --enable-rpath was given.
23206if test "${enable_rpath+set}" = set; then
23207  enableval=$enable_rpath; :
23208else
23209  enable_rpath=yes
23210fi
23211
23212
23213
23214
23215  acl_libdirstem=lib
23216  acl_libdirstem2=
23217  case "$host_os" in
23218    solaris*)
23219                                    { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
23220$as_echo_n "checking for 64-bit host... " >&6; }
23221if test "${gl_cv_solaris_64bit+set}" = set; then
23222  $as_echo_n "(cached) " >&6
23223else
23224  cat >conftest.$ac_ext <<_ACEOF
23225/* confdefs.h.  */
23226_ACEOF
23227cat confdefs.h >>conftest.$ac_ext
23228cat >>conftest.$ac_ext <<_ACEOF
23229/* end confdefs.h.  */
23230
23231#ifdef _LP64
23232sixtyfour bits
23233#endif
23234
23235_ACEOF
23236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23237  $EGREP "sixtyfour bits" >/dev/null 2>&1; then
23238  gl_cv_solaris_64bit=yes
23239else
23240  gl_cv_solaris_64bit=no
23241fi
23242rm -f conftest*
23243
23244
23245fi
23246{ $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
23247$as_echo "$gl_cv_solaris_64bit" >&6; }
23248      if test $gl_cv_solaris_64bit = yes; then
23249        acl_libdirstem=lib/64
23250        case "$host_cpu" in
23251          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
23252          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
23253        esac
23254      fi
23255      ;;
23256    *)
23257      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
23258      if test -n "$searchpath"; then
23259        acl_save_IFS="${IFS= 	}"; IFS=":"
23260        for searchdir in $searchpath; do
23261          if test -d "$searchdir"; then
23262            case "$searchdir" in
23263              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
23264              */../ | */.. )
23265                # Better ignore directories of this form. They are misleading.
23266                ;;
23267              *) searchdir=`cd "$searchdir" && pwd`
23268                 case "$searchdir" in
23269                   */lib64 ) acl_libdirstem=lib64 ;;
23270                 esac ;;
23271            esac
23272          fi
23273        done
23274        IFS="$acl_save_IFS"
23275      fi
23276      ;;
23277  esac
23278  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
23279
23280
23281
23282  gl_threads_api=none
23283  LIBTHREAD=
23284  LTLIBTHREAD=
23285  LIBMULTITHREAD=
23286  LTLIBMULTITHREAD=
23287  if test "$gl_use_threads" != no; then
23288        { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
23289$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
23290if test "${gl_cv_have_weak+set}" = set; then
23291  $as_echo_n "(cached) " >&6
23292else
23293  gl_cv_have_weak=no
23294              cat >conftest.$ac_ext <<_ACEOF
23295/* confdefs.h.  */
23296_ACEOF
23297cat confdefs.h >>conftest.$ac_ext
23298cat >>conftest.$ac_ext <<_ACEOF
23299/* end confdefs.h.  */
23300extern void xyzzy ();
23301#pragma weak xyzzy
23302int
23303main ()
23304{
23305xyzzy();
23306  ;
23307  return 0;
23308}
23309_ACEOF
23310rm -f conftest.$ac_objext conftest$ac_exeext
23311if { (ac_try="$ac_link"
23312case "(($ac_try" in
23313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314  *) ac_try_echo=$ac_try;;
23315esac
23316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23317$as_echo "$ac_try_echo") >&5
23318  (eval "$ac_link") 2>conftest.er1
23319  ac_status=$?
23320  grep -v '^ *+' conftest.er1 >conftest.err
23321  rm -f conftest.er1
23322  cat conftest.err >&5
23323  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324  (exit $ac_status); } && {
23325	 test -z "$ac_c_werror_flag" ||
23326	 test ! -s conftest.err
23327       } && test -s conftest$ac_exeext && {
23328	 test "$cross_compiling" = yes ||
23329	 $as_test_x conftest$ac_exeext
23330       }; then
23331  gl_cv_have_weak=maybe
23332else
23333  $as_echo "$as_me: failed program was:" >&5
23334sed 's/^/| /' conftest.$ac_ext >&5
23335
23336
23337fi
23338
23339rm -rf conftest.dSYM
23340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23341      conftest$ac_exeext conftest.$ac_ext
23342       if test $gl_cv_have_weak = maybe; then
23343                           if test "$cross_compiling" = yes; then
23344                          cat >conftest.$ac_ext <<_ACEOF
23345/* confdefs.h.  */
23346_ACEOF
23347cat confdefs.h >>conftest.$ac_ext
23348cat >>conftest.$ac_ext <<_ACEOF
23349/* end confdefs.h.  */
23350#ifdef __ELF__
23351               Extensible Linking Format
23352               #endif
23353
23354_ACEOF
23355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23356  $EGREP "Extensible Linking Format" >/dev/null 2>&1; then
23357  gl_cv_have_weak="guessing yes"
23358else
23359  gl_cv_have_weak="guessing no"
23360fi
23361rm -f conftest*
23362
23363
23364else
23365  cat >conftest.$ac_ext <<_ACEOF
23366/* confdefs.h.  */
23367_ACEOF
23368cat confdefs.h >>conftest.$ac_ext
23369cat >>conftest.$ac_ext <<_ACEOF
23370/* end confdefs.h.  */
23371
23372#include <stdio.h>
23373#pragma weak fputs
23374int main ()
23375{
23376  return (fputs == NULL);
23377}
23378_ACEOF
23379rm -f conftest$ac_exeext
23380if { (ac_try="$ac_link"
23381case "(($ac_try" in
23382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383  *) ac_try_echo=$ac_try;;
23384esac
23385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23386$as_echo "$ac_try_echo") >&5
23387  (eval "$ac_link") 2>&5
23388  ac_status=$?
23389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23391  { (case "(($ac_try" in
23392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393  *) ac_try_echo=$ac_try;;
23394esac
23395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23396$as_echo "$ac_try_echo") >&5
23397  (eval "$ac_try") 2>&5
23398  ac_status=$?
23399  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400  (exit $ac_status); }; }; then
23401  gl_cv_have_weak=yes
23402else
23403  $as_echo "$as_me: program exited with status $ac_status" >&5
23404$as_echo "$as_me: failed program was:" >&5
23405sed 's/^/| /' conftest.$ac_ext >&5
23406
23407( exit $ac_status )
23408gl_cv_have_weak=no
23409fi
23410rm -rf conftest.dSYM
23411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23412fi
23413
23414
23415       fi
23416
23417fi
23418{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_weak" >&5
23419$as_echo "$gl_cv_have_weak" >&6; }
23420    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
23421      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
23422      # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
23423      if test "${ac_cv_header_pthread_h+set}" = set; then
23424  { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23425$as_echo_n "checking for pthread.h... " >&6; }
23426if test "${ac_cv_header_pthread_h+set}" = set; then
23427  $as_echo_n "(cached) " >&6
23428fi
23429{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23430$as_echo "$ac_cv_header_pthread_h" >&6; }
23431else
23432  # Is the header compilable?
23433{ $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23434$as_echo_n "checking pthread.h usability... " >&6; }
23435cat >conftest.$ac_ext <<_ACEOF
23436/* confdefs.h.  */
23437_ACEOF
23438cat confdefs.h >>conftest.$ac_ext
23439cat >>conftest.$ac_ext <<_ACEOF
23440/* end confdefs.h.  */
23441$ac_includes_default
23442#include <pthread.h>
23443_ACEOF
23444rm -f conftest.$ac_objext
23445if { (ac_try="$ac_compile"
23446case "(($ac_try" in
23447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448  *) ac_try_echo=$ac_try;;
23449esac
23450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23451$as_echo "$ac_try_echo") >&5
23452  (eval "$ac_compile") 2>conftest.er1
23453  ac_status=$?
23454  grep -v '^ *+' conftest.er1 >conftest.err
23455  rm -f conftest.er1
23456  cat conftest.err >&5
23457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458  (exit $ac_status); } && {
23459	 test -z "$ac_c_werror_flag" ||
23460	 test ! -s conftest.err
23461       } && test -s conftest.$ac_objext; then
23462  ac_header_compiler=yes
23463else
23464  $as_echo "$as_me: failed program was:" >&5
23465sed 's/^/| /' conftest.$ac_ext >&5
23466
23467	ac_header_compiler=no
23468fi
23469
23470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23471{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23472$as_echo "$ac_header_compiler" >&6; }
23473
23474# Is the header present?
23475{ $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23476$as_echo_n "checking pthread.h presence... " >&6; }
23477cat >conftest.$ac_ext <<_ACEOF
23478/* confdefs.h.  */
23479_ACEOF
23480cat confdefs.h >>conftest.$ac_ext
23481cat >>conftest.$ac_ext <<_ACEOF
23482/* end confdefs.h.  */
23483#include <pthread.h>
23484_ACEOF
23485if { (ac_try="$ac_cpp conftest.$ac_ext"
23486case "(($ac_try" in
23487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488  *) ac_try_echo=$ac_try;;
23489esac
23490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23491$as_echo "$ac_try_echo") >&5
23492  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23493  ac_status=$?
23494  grep -v '^ *+' conftest.er1 >conftest.err
23495  rm -f conftest.er1
23496  cat conftest.err >&5
23497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498  (exit $ac_status); } >/dev/null && {
23499	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23500	 test ! -s conftest.err
23501       }; then
23502  ac_header_preproc=yes
23503else
23504  $as_echo "$as_me: failed program was:" >&5
23505sed 's/^/| /' conftest.$ac_ext >&5
23506
23507  ac_header_preproc=no
23508fi
23509
23510rm -f conftest.err conftest.$ac_ext
23511{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23512$as_echo "$ac_header_preproc" >&6; }
23513
23514# So?  What about this header?
23515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23516  yes:no: )
23517    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23518$as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23519    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23520$as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23521    ac_header_preproc=yes
23522    ;;
23523  no:yes:* )
23524    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23525$as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23526    { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23527$as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23528    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23529$as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23530    { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23531$as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23532    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23533$as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23534    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23535$as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23536
23537    ;;
23538esac
23539{ $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23540$as_echo_n "checking for pthread.h... " >&6; }
23541if test "${ac_cv_header_pthread_h+set}" = set; then
23542  $as_echo_n "(cached) " >&6
23543else
23544  ac_cv_header_pthread_h=$ac_header_preproc
23545fi
23546{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23547$as_echo "$ac_cv_header_pthread_h" >&6; }
23548
23549fi
23550if test "x$ac_cv_header_pthread_h" = x""yes; then
23551  gl_have_pthread_h=yes
23552else
23553  gl_have_pthread_h=no
23554fi
23555
23556
23557      if test "$gl_have_pthread_h" = yes; then
23558        # Other possible tests:
23559        #   -lpthreads (FSU threads, PCthreads)
23560        #   -lgthreads
23561        gl_have_pthread=
23562        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
23563        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
23564        # the second one only in libpthread, and lock.c needs it.
23565        #
23566        # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
23567        # needs -pthread for some reason.  See:
23568        # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
23569        save_LIBS=$LIBS
23570        for gl_pthread in '' '-pthread'; do
23571          LIBS="$LIBS $gl_pthread"
23572          cat >conftest.$ac_ext <<_ACEOF
23573/* confdefs.h.  */
23574_ACEOF
23575cat confdefs.h >>conftest.$ac_ext
23576cat >>conftest.$ac_ext <<_ACEOF
23577/* end confdefs.h.  */
23578#include <pthread.h>
23579                 pthread_mutex_t m;
23580                 pthread_mutexattr_t ma;
23581
23582int
23583main ()
23584{
23585pthread_mutex_lock (&m);
23586                 pthread_mutexattr_init (&ma);
23587  ;
23588  return 0;
23589}
23590_ACEOF
23591rm -f conftest.$ac_objext conftest$ac_exeext
23592if { (ac_try="$ac_link"
23593case "(($ac_try" in
23594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23595  *) ac_try_echo=$ac_try;;
23596esac
23597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23598$as_echo "$ac_try_echo") >&5
23599  (eval "$ac_link") 2>conftest.er1
23600  ac_status=$?
23601  grep -v '^ *+' conftest.er1 >conftest.err
23602  rm -f conftest.er1
23603  cat conftest.err >&5
23604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605  (exit $ac_status); } && {
23606	 test -z "$ac_c_werror_flag" ||
23607	 test ! -s conftest.err
23608       } && test -s conftest$ac_exeext && {
23609	 test "$cross_compiling" = yes ||
23610	 $as_test_x conftest$ac_exeext
23611       }; then
23612  gl_have_pthread=yes
23613             LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
23614             LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
23615else
23616  $as_echo "$as_me: failed program was:" >&5
23617sed 's/^/| /' conftest.$ac_ext >&5
23618
23619
23620fi
23621
23622rm -rf conftest.dSYM
23623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23624      conftest$ac_exeext conftest.$ac_ext
23625          LIBS=$save_LIBS
23626          test -n "$gl_have_pthread" && break
23627        done
23628
23629        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
23630        # since it is defined as a macro on OSF/1.)
23631        if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
23632          # The program links fine without libpthread. But it may actually
23633          # need to link with libpthread in order to create multiple threads.
23634          { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
23635$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
23636if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
23637  $as_echo_n "(cached) " >&6
23638else
23639  ac_check_lib_save_LIBS=$LIBS
23640LIBS="-lpthread  $LIBS"
23641cat >conftest.$ac_ext <<_ACEOF
23642/* confdefs.h.  */
23643_ACEOF
23644cat confdefs.h >>conftest.$ac_ext
23645cat >>conftest.$ac_ext <<_ACEOF
23646/* end confdefs.h.  */
23647
23648/* Override any GCC internal prototype to avoid an error.
23649   Use char because int might match the return type of a GCC
23650   builtin and then its argument prototype would still apply.  */
23651#ifdef __cplusplus
23652extern "C"
23653#endif
23654char pthread_kill ();
23655int
23656main ()
23657{
23658return pthread_kill ();
23659  ;
23660  return 0;
23661}
23662_ACEOF
23663rm -f conftest.$ac_objext conftest$ac_exeext
23664if { (ac_try="$ac_link"
23665case "(($ac_try" in
23666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23667  *) ac_try_echo=$ac_try;;
23668esac
23669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23670$as_echo "$ac_try_echo") >&5
23671  (eval "$ac_link") 2>conftest.er1
23672  ac_status=$?
23673  grep -v '^ *+' conftest.er1 >conftest.err
23674  rm -f conftest.er1
23675  cat conftest.err >&5
23676  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677  (exit $ac_status); } && {
23678	 test -z "$ac_c_werror_flag" ||
23679	 test ! -s conftest.err
23680       } && test -s conftest$ac_exeext && {
23681	 test "$cross_compiling" = yes ||
23682	 $as_test_x conftest$ac_exeext
23683       }; then
23684  ac_cv_lib_pthread_pthread_kill=yes
23685else
23686  $as_echo "$as_me: failed program was:" >&5
23687sed 's/^/| /' conftest.$ac_ext >&5
23688
23689	ac_cv_lib_pthread_pthread_kill=no
23690fi
23691
23692rm -rf conftest.dSYM
23693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23694      conftest$ac_exeext conftest.$ac_ext
23695LIBS=$ac_check_lib_save_LIBS
23696fi
23697{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
23698$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
23699if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
23700  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
23701             # On Solaris and HP-UX, most pthread functions exist also in libc.
23702             # Therefore pthread_in_use() needs to actually try to create a
23703             # thread: pthread_create from libc will fail, whereas
23704             # pthread_create will actually create a thread.
23705             case "$host_os" in
23706               solaris* | hpux*)
23707
23708cat >>confdefs.h <<\_ACEOF
23709#define PTHREAD_IN_USE_DETECTION_HARD 1
23710_ACEOF
23711
23712             esac
23713
23714fi
23715
23716        elif test -z "$gl_have_pthread"; then
23717          # Some library is needed. Try libpthread and libc_r.
23718          { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
23719$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
23720if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
23721  $as_echo_n "(cached) " >&6
23722else
23723  ac_check_lib_save_LIBS=$LIBS
23724LIBS="-lpthread  $LIBS"
23725cat >conftest.$ac_ext <<_ACEOF
23726/* confdefs.h.  */
23727_ACEOF
23728cat confdefs.h >>conftest.$ac_ext
23729cat >>conftest.$ac_ext <<_ACEOF
23730/* end confdefs.h.  */
23731
23732/* Override any GCC internal prototype to avoid an error.
23733   Use char because int might match the return type of a GCC
23734   builtin and then its argument prototype would still apply.  */
23735#ifdef __cplusplus
23736extern "C"
23737#endif
23738char pthread_kill ();
23739int
23740main ()
23741{
23742return pthread_kill ();
23743  ;
23744  return 0;
23745}
23746_ACEOF
23747rm -f conftest.$ac_objext conftest$ac_exeext
23748if { (ac_try="$ac_link"
23749case "(($ac_try" in
23750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751  *) ac_try_echo=$ac_try;;
23752esac
23753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23754$as_echo "$ac_try_echo") >&5
23755  (eval "$ac_link") 2>conftest.er1
23756  ac_status=$?
23757  grep -v '^ *+' conftest.er1 >conftest.err
23758  rm -f conftest.er1
23759  cat conftest.err >&5
23760  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761  (exit $ac_status); } && {
23762	 test -z "$ac_c_werror_flag" ||
23763	 test ! -s conftest.err
23764       } && test -s conftest$ac_exeext && {
23765	 test "$cross_compiling" = yes ||
23766	 $as_test_x conftest$ac_exeext
23767       }; then
23768  ac_cv_lib_pthread_pthread_kill=yes
23769else
23770  $as_echo "$as_me: failed program was:" >&5
23771sed 's/^/| /' conftest.$ac_ext >&5
23772
23773	ac_cv_lib_pthread_pthread_kill=no
23774fi
23775
23776rm -rf conftest.dSYM
23777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23778      conftest$ac_exeext conftest.$ac_ext
23779LIBS=$ac_check_lib_save_LIBS
23780fi
23781{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
23782$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
23783if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
23784  gl_have_pthread=yes
23785             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
23786             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
23787fi
23788
23789          if test -z "$gl_have_pthread"; then
23790            # For FreeBSD 4.
23791            { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
23792$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
23793if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
23794  $as_echo_n "(cached) " >&6
23795else
23796  ac_check_lib_save_LIBS=$LIBS
23797LIBS="-lc_r  $LIBS"
23798cat >conftest.$ac_ext <<_ACEOF
23799/* confdefs.h.  */
23800_ACEOF
23801cat confdefs.h >>conftest.$ac_ext
23802cat >>conftest.$ac_ext <<_ACEOF
23803/* end confdefs.h.  */
23804
23805/* Override any GCC internal prototype to avoid an error.
23806   Use char because int might match the return type of a GCC
23807   builtin and then its argument prototype would still apply.  */
23808#ifdef __cplusplus
23809extern "C"
23810#endif
23811char pthread_kill ();
23812int
23813main ()
23814{
23815return pthread_kill ();
23816  ;
23817  return 0;
23818}
23819_ACEOF
23820rm -f conftest.$ac_objext conftest$ac_exeext
23821if { (ac_try="$ac_link"
23822case "(($ac_try" in
23823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824  *) ac_try_echo=$ac_try;;
23825esac
23826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23827$as_echo "$ac_try_echo") >&5
23828  (eval "$ac_link") 2>conftest.er1
23829  ac_status=$?
23830  grep -v '^ *+' conftest.er1 >conftest.err
23831  rm -f conftest.er1
23832  cat conftest.err >&5
23833  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834  (exit $ac_status); } && {
23835	 test -z "$ac_c_werror_flag" ||
23836	 test ! -s conftest.err
23837       } && test -s conftest$ac_exeext && {
23838	 test "$cross_compiling" = yes ||
23839	 $as_test_x conftest$ac_exeext
23840       }; then
23841  ac_cv_lib_c_r_pthread_kill=yes
23842else
23843  $as_echo "$as_me: failed program was:" >&5
23844sed 's/^/| /' conftest.$ac_ext >&5
23845
23846	ac_cv_lib_c_r_pthread_kill=no
23847fi
23848
23849rm -rf conftest.dSYM
23850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23851      conftest$ac_exeext conftest.$ac_ext
23852LIBS=$ac_check_lib_save_LIBS
23853fi
23854{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
23855$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
23856if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
23857  gl_have_pthread=yes
23858               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
23859               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
23860fi
23861
23862          fi
23863        fi
23864        if test -n "$gl_have_pthread"; then
23865          gl_threads_api=posix
23866
23867cat >>confdefs.h <<\_ACEOF
23868#define USE_POSIX_THREADS 1
23869_ACEOF
23870
23871          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
23872            if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
23873
23874cat >>confdefs.h <<\_ACEOF
23875#define USE_POSIX_THREADS_WEAK 1
23876_ACEOF
23877
23878              LIBTHREAD=
23879              LTLIBTHREAD=
23880            fi
23881          fi
23882        fi
23883      fi
23884    fi
23885    if test -z "$gl_have_pthread"; then
23886      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
23887        gl_have_solaristhread=
23888        gl_save_LIBS="$LIBS"
23889        LIBS="$LIBS -lthread"
23890        cat >conftest.$ac_ext <<_ACEOF
23891/* confdefs.h.  */
23892_ACEOF
23893cat confdefs.h >>conftest.$ac_ext
23894cat >>conftest.$ac_ext <<_ACEOF
23895/* end confdefs.h.  */
23896
23897#include <thread.h>
23898#include <synch.h>
23899
23900int
23901main ()
23902{
23903thr_self();
23904  ;
23905  return 0;
23906}
23907_ACEOF
23908rm -f conftest.$ac_objext conftest$ac_exeext
23909if { (ac_try="$ac_link"
23910case "(($ac_try" in
23911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912  *) ac_try_echo=$ac_try;;
23913esac
23914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23915$as_echo "$ac_try_echo") >&5
23916  (eval "$ac_link") 2>conftest.er1
23917  ac_status=$?
23918  grep -v '^ *+' conftest.er1 >conftest.err
23919  rm -f conftest.er1
23920  cat conftest.err >&5
23921  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922  (exit $ac_status); } && {
23923	 test -z "$ac_c_werror_flag" ||
23924	 test ! -s conftest.err
23925       } && test -s conftest$ac_exeext && {
23926	 test "$cross_compiling" = yes ||
23927	 $as_test_x conftest$ac_exeext
23928       }; then
23929  gl_have_solaristhread=yes
23930else
23931  $as_echo "$as_me: failed program was:" >&5
23932sed 's/^/| /' conftest.$ac_ext >&5
23933
23934
23935fi
23936
23937rm -rf conftest.dSYM
23938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23939      conftest$ac_exeext conftest.$ac_ext
23940        LIBS="$gl_save_LIBS"
23941        if test -n "$gl_have_solaristhread"; then
23942          gl_threads_api=solaris
23943          LIBTHREAD=-lthread
23944          LTLIBTHREAD=-lthread
23945          LIBMULTITHREAD="$LIBTHREAD"
23946          LTLIBMULTITHREAD="$LTLIBTHREAD"
23947
23948cat >>confdefs.h <<\_ACEOF
23949#define USE_SOLARIS_THREADS 1
23950_ACEOF
23951
23952          if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
23953
23954cat >>confdefs.h <<\_ACEOF
23955#define USE_SOLARIS_THREADS_WEAK 1
23956_ACEOF
23957
23958            LIBTHREAD=
23959            LTLIBTHREAD=
23960          fi
23961        fi
23962      fi
23963    fi
23964    if test "$gl_use_threads" = pth; then
23965      gl_save_CPPFLAGS="$CPPFLAGS"
23966
23967
23968
23969
23970
23971  { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
23972$as_echo_n "checking how to link with libpth... " >&6; }
23973if test "${ac_cv_libpth_libs+set}" = set; then
23974  $as_echo_n "(cached) " >&6
23975else
23976
23977
23978
23979
23980
23981
23982
23983
23984    use_additional=yes
23985
23986  acl_save_prefix="$prefix"
23987  prefix="$acl_final_prefix"
23988  acl_save_exec_prefix="$exec_prefix"
23989  exec_prefix="$acl_final_exec_prefix"
23990
23991    eval additional_includedir=\"$includedir\"
23992    eval additional_libdir=\"$libdir\"
23993
23994  exec_prefix="$acl_save_exec_prefix"
23995  prefix="$acl_save_prefix"
23996
23997
23998# Check whether --with-libpth-prefix was given.
23999if test "${with_libpth_prefix+set}" = set; then
24000  withval=$with_libpth_prefix;
24001    if test "X$withval" = "Xno"; then
24002      use_additional=no
24003    else
24004      if test "X$withval" = "X"; then
24005
24006  acl_save_prefix="$prefix"
24007  prefix="$acl_final_prefix"
24008  acl_save_exec_prefix="$exec_prefix"
24009  exec_prefix="$acl_final_exec_prefix"
24010
24011          eval additional_includedir=\"$includedir\"
24012          eval additional_libdir=\"$libdir\"
24013
24014  exec_prefix="$acl_save_exec_prefix"
24015  prefix="$acl_save_prefix"
24016
24017      else
24018        additional_includedir="$withval/include"
24019        additional_libdir="$withval/$acl_libdirstem"
24020        if test "$acl_libdirstem2" != "$acl_libdirstem" \
24021           && ! test -d "$withval/$acl_libdirstem"; then
24022          additional_libdir="$withval/$acl_libdirstem2"
24023        fi
24024      fi
24025    fi
24026
24027fi
24028
24029      LIBPTH=
24030  LTLIBPTH=
24031  INCPTH=
24032  LIBPTH_PREFIX=
24033      HAVE_LIBPTH=
24034  rpathdirs=
24035  ltrpathdirs=
24036  names_already_handled=
24037  names_next_round='pth '
24038  while test -n "$names_next_round"; do
24039    names_this_round="$names_next_round"
24040    names_next_round=
24041    for name in $names_this_round; do
24042      already_handled=
24043      for n in $names_already_handled; do
24044        if test "$n" = "$name"; then
24045          already_handled=yes
24046          break
24047        fi
24048      done
24049      if test -z "$already_handled"; then
24050        names_already_handled="$names_already_handled $name"
24051                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
24052        eval value=\"\$HAVE_LIB$uppername\"
24053        if test -n "$value"; then
24054          if test "$value" = yes; then
24055            eval value=\"\$LIB$uppername\"
24056            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
24057            eval value=\"\$LTLIB$uppername\"
24058            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
24059          else
24060                                    :
24061          fi
24062        else
24063                              found_dir=
24064          found_la=
24065          found_so=
24066          found_a=
24067          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
24068          if test -n "$acl_shlibext"; then
24069            shrext=".$acl_shlibext"             # typically: shrext=.so
24070          else
24071            shrext=
24072          fi
24073          if test $use_additional = yes; then
24074            dir="$additional_libdir"
24075                                    if test -n "$acl_shlibext"; then
24076              if test -f "$dir/$libname$shrext"; then
24077                found_dir="$dir"
24078                found_so="$dir/$libname$shrext"
24079              else
24080                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24081                  ver=`(cd "$dir" && \
24082                        for f in "$libname$shrext".*; do echo "$f"; done \
24083                        | sed -e "s,^$libname$shrext\\\\.,," \
24084                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24085                        | sed 1q ) 2>/dev/null`
24086                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24087                    found_dir="$dir"
24088                    found_so="$dir/$libname$shrext.$ver"
24089                  fi
24090                else
24091                  eval library_names=\"$acl_library_names_spec\"
24092                  for f in $library_names; do
24093                    if test -f "$dir/$f"; then
24094                      found_dir="$dir"
24095                      found_so="$dir/$f"
24096                      break
24097                    fi
24098                  done
24099                fi
24100              fi
24101            fi
24102                        if test "X$found_dir" = "X"; then
24103              if test -f "$dir/$libname.$acl_libext"; then
24104                found_dir="$dir"
24105                found_a="$dir/$libname.$acl_libext"
24106              fi
24107            fi
24108            if test "X$found_dir" != "X"; then
24109              if test -f "$dir/$libname.la"; then
24110                found_la="$dir/$libname.la"
24111              fi
24112            fi
24113          fi
24114          if test "X$found_dir" = "X"; then
24115            for x in $LDFLAGS $LTLIBPTH; do
24116
24117  acl_save_prefix="$prefix"
24118  prefix="$acl_final_prefix"
24119  acl_save_exec_prefix="$exec_prefix"
24120  exec_prefix="$acl_final_exec_prefix"
24121  eval x=\"$x\"
24122  exec_prefix="$acl_save_exec_prefix"
24123  prefix="$acl_save_prefix"
24124
24125              case "$x" in
24126                -L*)
24127                  dir=`echo "X$x" | sed -e 's/^X-L//'`
24128                                    if test -n "$acl_shlibext"; then
24129                    if test -f "$dir/$libname$shrext"; then
24130                      found_dir="$dir"
24131                      found_so="$dir/$libname$shrext"
24132                    else
24133                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24134                        ver=`(cd "$dir" && \
24135                              for f in "$libname$shrext".*; do echo "$f"; done \
24136                              | sed -e "s,^$libname$shrext\\\\.,," \
24137                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24138                              | sed 1q ) 2>/dev/null`
24139                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24140                          found_dir="$dir"
24141                          found_so="$dir/$libname$shrext.$ver"
24142                        fi
24143                      else
24144                        eval library_names=\"$acl_library_names_spec\"
24145                        for f in $library_names; do
24146                          if test -f "$dir/$f"; then
24147                            found_dir="$dir"
24148                            found_so="$dir/$f"
24149                            break
24150                          fi
24151                        done
24152                      fi
24153                    fi
24154                  fi
24155                                    if test "X$found_dir" = "X"; then
24156                    if test -f "$dir/$libname.$acl_libext"; then
24157                      found_dir="$dir"
24158                      found_a="$dir/$libname.$acl_libext"
24159                    fi
24160                  fi
24161                  if test "X$found_dir" != "X"; then
24162                    if test -f "$dir/$libname.la"; then
24163                      found_la="$dir/$libname.la"
24164                    fi
24165                  fi
24166                  ;;
24167              esac
24168              if test "X$found_dir" != "X"; then
24169                break
24170              fi
24171            done
24172          fi
24173          if test "X$found_dir" != "X"; then
24174                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
24175            if test "X$found_so" != "X"; then
24176                                                        if test "$enable_rpath" = no \
24177                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
24178                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
24179                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
24180              else
24181                                                                                haveit=
24182                for x in $ltrpathdirs; do
24183                  if test "X$x" = "X$found_dir"; then
24184                    haveit=yes
24185                    break
24186                  fi
24187                done
24188                if test -z "$haveit"; then
24189                  ltrpathdirs="$ltrpathdirs $found_dir"
24190                fi
24191                                if test "$acl_hardcode_direct" = yes; then
24192                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
24193                else
24194                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
24195                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
24196                                                            haveit=
24197                    for x in $rpathdirs; do
24198                      if test "X$x" = "X$found_dir"; then
24199                        haveit=yes
24200                        break
24201                      fi
24202                    done
24203                    if test -z "$haveit"; then
24204                      rpathdirs="$rpathdirs $found_dir"
24205                    fi
24206                  else
24207                                                                                haveit=
24208                    for x in $LDFLAGS $LIBPTH; do
24209
24210  acl_save_prefix="$prefix"
24211  prefix="$acl_final_prefix"
24212  acl_save_exec_prefix="$exec_prefix"
24213  exec_prefix="$acl_final_exec_prefix"
24214  eval x=\"$x\"
24215  exec_prefix="$acl_save_exec_prefix"
24216  prefix="$acl_save_prefix"
24217
24218                      if test "X$x" = "X-L$found_dir"; then
24219                        haveit=yes
24220                        break
24221                      fi
24222                    done
24223                    if test -z "$haveit"; then
24224                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
24225                    fi
24226                    if test "$acl_hardcode_minus_L" != no; then
24227                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
24228                    else
24229                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
24230                    fi
24231                  fi
24232                fi
24233              fi
24234            else
24235              if test "X$found_a" != "X"; then
24236                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
24237              else
24238                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
24239              fi
24240            fi
24241                        additional_includedir=
24242            case "$found_dir" in
24243              */$acl_libdirstem | */$acl_libdirstem/)
24244                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24245                if test "$name" = 'pth'; then
24246                  LIBPTH_PREFIX="$basedir"
24247                fi
24248                additional_includedir="$basedir/include"
24249                ;;
24250              */$acl_libdirstem2 | */$acl_libdirstem2/)
24251                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
24252                if test "$name" = 'pth'; then
24253                  LIBPTH_PREFIX="$basedir"
24254                fi
24255                additional_includedir="$basedir/include"
24256                ;;
24257            esac
24258            if test "X$additional_includedir" != "X"; then
24259                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
24260                haveit=
24261                if test "X$additional_includedir" = "X/usr/local/include"; then
24262                  if test -n "$GCC"; then
24263                    case $host_os in
24264                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24265                    esac
24266                  fi
24267                fi
24268                if test -z "$haveit"; then
24269                  for x in $CPPFLAGS $INCPTH; do
24270
24271  acl_save_prefix="$prefix"
24272  prefix="$acl_final_prefix"
24273  acl_save_exec_prefix="$exec_prefix"
24274  exec_prefix="$acl_final_exec_prefix"
24275  eval x=\"$x\"
24276  exec_prefix="$acl_save_exec_prefix"
24277  prefix="$acl_save_prefix"
24278
24279                    if test "X$x" = "X-I$additional_includedir"; then
24280                      haveit=yes
24281                      break
24282                    fi
24283                  done
24284                  if test -z "$haveit"; then
24285                    if test -d "$additional_includedir"; then
24286                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
24287                    fi
24288                  fi
24289                fi
24290              fi
24291            fi
24292                        if test -n "$found_la"; then
24293                                                        save_libdir="$libdir"
24294              case "$found_la" in
24295                */* | *\\*) . "$found_la" ;;
24296                *) . "./$found_la" ;;
24297              esac
24298              libdir="$save_libdir"
24299                            for dep in $dependency_libs; do
24300                case "$dep" in
24301                  -L*)
24302                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24303                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
24304                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
24305                      haveit=
24306                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
24307                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
24308                        if test -n "$GCC"; then
24309                          case $host_os in
24310                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24311                          esac
24312                        fi
24313                      fi
24314                      if test -z "$haveit"; then
24315                        haveit=
24316                        for x in $LDFLAGS $LIBPTH; do
24317
24318  acl_save_prefix="$prefix"
24319  prefix="$acl_final_prefix"
24320  acl_save_exec_prefix="$exec_prefix"
24321  exec_prefix="$acl_final_exec_prefix"
24322  eval x=\"$x\"
24323  exec_prefix="$acl_save_exec_prefix"
24324  prefix="$acl_save_prefix"
24325
24326                          if test "X$x" = "X-L$additional_libdir"; then
24327                            haveit=yes
24328                            break
24329                          fi
24330                        done
24331                        if test -z "$haveit"; then
24332                          if test -d "$additional_libdir"; then
24333                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
24334                          fi
24335                        fi
24336                        haveit=
24337                        for x in $LDFLAGS $LTLIBPTH; do
24338
24339  acl_save_prefix="$prefix"
24340  prefix="$acl_final_prefix"
24341  acl_save_exec_prefix="$exec_prefix"
24342  exec_prefix="$acl_final_exec_prefix"
24343  eval x=\"$x\"
24344  exec_prefix="$acl_save_exec_prefix"
24345  prefix="$acl_save_prefix"
24346
24347                          if test "X$x" = "X-L$additional_libdir"; then
24348                            haveit=yes
24349                            break
24350                          fi
24351                        done
24352                        if test -z "$haveit"; then
24353                          if test -d "$additional_libdir"; then
24354                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
24355                          fi
24356                        fi
24357                      fi
24358                    fi
24359                    ;;
24360                  -R*)
24361                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
24362                    if test "$enable_rpath" != no; then
24363                                                                  haveit=
24364                      for x in $rpathdirs; do
24365                        if test "X$x" = "X$dir"; then
24366                          haveit=yes
24367                          break
24368                        fi
24369                      done
24370                      if test -z "$haveit"; then
24371                        rpathdirs="$rpathdirs $dir"
24372                      fi
24373                                                                  haveit=
24374                      for x in $ltrpathdirs; do
24375                        if test "X$x" = "X$dir"; then
24376                          haveit=yes
24377                          break
24378                        fi
24379                      done
24380                      if test -z "$haveit"; then
24381                        ltrpathdirs="$ltrpathdirs $dir"
24382                      fi
24383                    fi
24384                    ;;
24385                  -l*)
24386                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24387                    ;;
24388                  *.la)
24389                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24390                    ;;
24391                  *)
24392                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
24393                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
24394                    ;;
24395                esac
24396              done
24397            fi
24398          else
24399                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
24400            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
24401          fi
24402        fi
24403      fi
24404    done
24405  done
24406  if test "X$rpathdirs" != "X"; then
24407    if test -n "$acl_hardcode_libdir_separator"; then
24408                        alldirs=
24409      for found_dir in $rpathdirs; do
24410        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
24411      done
24412            acl_save_libdir="$libdir"
24413      libdir="$alldirs"
24414      eval flag=\"$acl_hardcode_libdir_flag_spec\"
24415      libdir="$acl_save_libdir"
24416      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
24417    else
24418            for found_dir in $rpathdirs; do
24419        acl_save_libdir="$libdir"
24420        libdir="$found_dir"
24421        eval flag=\"$acl_hardcode_libdir_flag_spec\"
24422        libdir="$acl_save_libdir"
24423        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
24424      done
24425    fi
24426  fi
24427  if test "X$ltrpathdirs" != "X"; then
24428            for found_dir in $ltrpathdirs; do
24429      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
24430    done
24431  fi
24432
24433
24434
24435
24436
24437
24438    ac_cv_libpth_libs="$LIBPTH"
24439    ac_cv_libpth_ltlibs="$LTLIBPTH"
24440    ac_cv_libpth_cppflags="$INCPTH"
24441    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
24442
24443fi
24444{ $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
24445$as_echo "$ac_cv_libpth_libs" >&6; }
24446  LIBPTH="$ac_cv_libpth_libs"
24447  LTLIBPTH="$ac_cv_libpth_ltlibs"
24448  INCPTH="$ac_cv_libpth_cppflags"
24449  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
24450
24451  for element in $INCPTH; do
24452    haveit=
24453    for x in $CPPFLAGS; do
24454
24455  acl_save_prefix="$prefix"
24456  prefix="$acl_final_prefix"
24457  acl_save_exec_prefix="$exec_prefix"
24458  exec_prefix="$acl_final_exec_prefix"
24459  eval x=\"$x\"
24460  exec_prefix="$acl_save_exec_prefix"
24461  prefix="$acl_save_prefix"
24462
24463      if test "X$x" = "X$element"; then
24464        haveit=yes
24465        break
24466      fi
24467    done
24468    if test -z "$haveit"; then
24469      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24470    fi
24471  done
24472
24473
24474
24475
24476      HAVE_LIBPTH=yes
24477
24478
24479
24480      gl_have_pth=
24481      gl_save_LIBS="$LIBS"
24482      LIBS="$LIBS $LIBPTH"
24483      cat >conftest.$ac_ext <<_ACEOF
24484/* confdefs.h.  */
24485_ACEOF
24486cat confdefs.h >>conftest.$ac_ext
24487cat >>conftest.$ac_ext <<_ACEOF
24488/* end confdefs.h.  */
24489#include <pth.h>
24490int
24491main ()
24492{
24493pth_self();
24494  ;
24495  return 0;
24496}
24497_ACEOF
24498rm -f conftest.$ac_objext conftest$ac_exeext
24499if { (ac_try="$ac_link"
24500case "(($ac_try" in
24501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502  *) ac_try_echo=$ac_try;;
24503esac
24504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24505$as_echo "$ac_try_echo") >&5
24506  (eval "$ac_link") 2>conftest.er1
24507  ac_status=$?
24508  grep -v '^ *+' conftest.er1 >conftest.err
24509  rm -f conftest.er1
24510  cat conftest.err >&5
24511  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512  (exit $ac_status); } && {
24513	 test -z "$ac_c_werror_flag" ||
24514	 test ! -s conftest.err
24515       } && test -s conftest$ac_exeext && {
24516	 test "$cross_compiling" = yes ||
24517	 $as_test_x conftest$ac_exeext
24518       }; then
24519  gl_have_pth=yes
24520else
24521  $as_echo "$as_me: failed program was:" >&5
24522sed 's/^/| /' conftest.$ac_ext >&5
24523
24524
24525fi
24526
24527rm -rf conftest.dSYM
24528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24529      conftest$ac_exeext conftest.$ac_ext
24530      LIBS="$gl_save_LIBS"
24531      if test -n "$gl_have_pth"; then
24532        gl_threads_api=pth
24533        LIBTHREAD="$LIBPTH"
24534        LTLIBTHREAD="$LTLIBPTH"
24535        LIBMULTITHREAD="$LIBTHREAD"
24536        LTLIBMULTITHREAD="$LTLIBTHREAD"
24537
24538cat >>confdefs.h <<\_ACEOF
24539#define USE_PTH_THREADS 1
24540_ACEOF
24541
24542        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
24543          if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
24544
24545cat >>confdefs.h <<\_ACEOF
24546#define USE_PTH_THREADS_WEAK 1
24547_ACEOF
24548
24549            LIBTHREAD=
24550            LTLIBTHREAD=
24551          fi
24552        fi
24553      else
24554        CPPFLAGS="$gl_save_CPPFLAGS"
24555      fi
24556    fi
24557    if test -z "$gl_have_pthread"; then
24558      case "$gl_use_threads" in
24559        yes | windows | win32) # The 'win32' is for backward compatibility.
24560          if { case "$host_os" in
24561                 mingw*) true;;
24562                 *) false;;
24563               esac
24564             }; then
24565            gl_threads_api=windows
24566
24567cat >>confdefs.h <<\_ACEOF
24568#define USE_WINDOWS_THREADS 1
24569_ACEOF
24570
24571          fi
24572          ;;
24573      esac
24574    fi
24575  fi
24576  { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
24577$as_echo_n "checking for multithread API to use... " >&6; }
24578  { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
24579$as_echo "$gl_threads_api" >&6; }
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590  GNULIB__EXIT=0;
24591  GNULIB_ATOLL=0;
24592  GNULIB_CALLOC_POSIX=0;
24593  GNULIB_CANONICALIZE_FILE_NAME=0;
24594  GNULIB_GETLOADAVG=0;
24595  GNULIB_GETSUBOPT=0;
24596  GNULIB_GRANTPT=0;
24597  GNULIB_MALLOC_POSIX=0;
24598  GNULIB_MBTOWC=0;
24599  GNULIB_MKDTEMP=0;
24600  GNULIB_MKOSTEMP=0;
24601  GNULIB_MKOSTEMPS=0;
24602  GNULIB_MKSTEMP=0;
24603  GNULIB_MKSTEMPS=0;
24604  GNULIB_POSIX_OPENPT=0;
24605  GNULIB_PTSNAME=0;
24606  GNULIB_PTSNAME_R=0;
24607  GNULIB_PUTENV=0;
24608  GNULIB_QSORT_R=0;
24609  GNULIB_RANDOM=0;
24610  GNULIB_RANDOM_R=0;
24611  GNULIB_REALLOC_POSIX=0;
24612  GNULIB_REALPATH=0;
24613  GNULIB_RPMATCH=0;
24614  GNULIB_SECURE_GETENV=0;
24615  GNULIB_SETENV=0;
24616  GNULIB_STRTOD=0;
24617  GNULIB_STRTOLL=0;
24618  GNULIB_STRTOULL=0;
24619  GNULIB_SYSTEM_POSIX=0;
24620  GNULIB_UNLOCKPT=0;
24621  GNULIB_UNSETENV=0;
24622  GNULIB_WCTOMB=0;
24623    HAVE__EXIT=1;
24624  HAVE_ATOLL=1;
24625  HAVE_CANONICALIZE_FILE_NAME=1;
24626  HAVE_DECL_GETLOADAVG=1;
24627  HAVE_GETSUBOPT=1;
24628  HAVE_GRANTPT=1;
24629  HAVE_MKDTEMP=1;
24630  HAVE_MKOSTEMP=1;
24631  HAVE_MKOSTEMPS=1;
24632  HAVE_MKSTEMP=1;
24633  HAVE_MKSTEMPS=1;
24634  HAVE_POSIX_OPENPT=1;
24635  HAVE_PTSNAME=1;
24636  HAVE_PTSNAME_R=1;
24637  HAVE_RANDOM=1;
24638  HAVE_RANDOM_H=1;
24639  HAVE_RANDOM_R=1;
24640  HAVE_REALPATH=1;
24641  HAVE_RPMATCH=1;
24642  HAVE_SECURE_GETENV=1;
24643  HAVE_SETENV=1;
24644  HAVE_DECL_SETENV=1;
24645  HAVE_STRTOD=1;
24646  HAVE_STRTOLL=1;
24647  HAVE_STRTOULL=1;
24648  HAVE_STRUCT_RANDOM_DATA=1;
24649  HAVE_SYS_LOADAVG_H=0;
24650  HAVE_UNLOCKPT=1;
24651  HAVE_DECL_UNSETENV=1;
24652  REPLACE_CALLOC=0;
24653  REPLACE_CANONICALIZE_FILE_NAME=0;
24654  REPLACE_MALLOC=0;
24655  REPLACE_MBTOWC=0;
24656  REPLACE_MKSTEMP=0;
24657  REPLACE_PTSNAME=0;
24658  REPLACE_PTSNAME_R=0;
24659  REPLACE_PUTENV=0;
24660  REPLACE_QSORT_R=0;
24661  REPLACE_RANDOM_R=0;
24662  REPLACE_REALLOC=0;
24663  REPLACE_REALPATH=0;
24664  REPLACE_SETENV=0;
24665  REPLACE_STRTOD=0;
24666  REPLACE_UNSETENV=0;
24667  REPLACE_WCTOMB=0;
24668
24669
24670  { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
24671$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
24672if test "${gl_cv_func_malloc_posix+set}" = set; then
24673  $as_echo_n "(cached) " >&6
24674else
24675
24676                        cat >conftest.$ac_ext <<_ACEOF
24677/* confdefs.h.  */
24678_ACEOF
24679cat confdefs.h >>conftest.$ac_ext
24680cat >>conftest.$ac_ext <<_ACEOF
24681/* end confdefs.h.  */
24682
24683int
24684main ()
24685{
24686#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
24687             choke me
24688             #endif
24689
24690  ;
24691  return 0;
24692}
24693_ACEOF
24694rm -f conftest.$ac_objext
24695if { (ac_try="$ac_compile"
24696case "(($ac_try" in
24697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698  *) ac_try_echo=$ac_try;;
24699esac
24700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24701$as_echo "$ac_try_echo") >&5
24702  (eval "$ac_compile") 2>conftest.er1
24703  ac_status=$?
24704  grep -v '^ *+' conftest.er1 >conftest.err
24705  rm -f conftest.er1
24706  cat conftest.err >&5
24707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708  (exit $ac_status); } && {
24709	 test -z "$ac_c_werror_flag" ||
24710	 test ! -s conftest.err
24711       } && test -s conftest.$ac_objext; then
24712  gl_cv_func_malloc_posix=yes
24713else
24714  $as_echo "$as_me: failed program was:" >&5
24715sed 's/^/| /' conftest.$ac_ext >&5
24716
24717	gl_cv_func_malloc_posix=no
24718fi
24719
24720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24721
24722fi
24723{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
24724$as_echo "$gl_cv_func_malloc_posix" >&6; }
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739  GNULIB_FFSL=0;
24740  GNULIB_FFSLL=0;
24741  GNULIB_MEMCHR=0;
24742  GNULIB_MEMMEM=0;
24743  GNULIB_MEMPCPY=0;
24744  GNULIB_MEMRCHR=0;
24745  GNULIB_RAWMEMCHR=0;
24746  GNULIB_STPCPY=0;
24747  GNULIB_STPNCPY=0;
24748  GNULIB_STRCHRNUL=0;
24749  GNULIB_STRDUP=0;
24750  GNULIB_STRNCAT=0;
24751  GNULIB_STRNDUP=0;
24752  GNULIB_STRNLEN=0;
24753  GNULIB_STRPBRK=0;
24754  GNULIB_STRSEP=0;
24755  GNULIB_STRSTR=0;
24756  GNULIB_STRCASESTR=0;
24757  GNULIB_STRTOK_R=0;
24758  GNULIB_MBSLEN=0;
24759  GNULIB_MBSNLEN=0;
24760  GNULIB_MBSCHR=0;
24761  GNULIB_MBSRCHR=0;
24762  GNULIB_MBSSTR=0;
24763  GNULIB_MBSCASECMP=0;
24764  GNULIB_MBSNCASECMP=0;
24765  GNULIB_MBSPCASECMP=0;
24766  GNULIB_MBSCASESTR=0;
24767  GNULIB_MBSCSPN=0;
24768  GNULIB_MBSPBRK=0;
24769  GNULIB_MBSSPN=0;
24770  GNULIB_MBSSEP=0;
24771  GNULIB_MBSTOK_R=0;
24772  GNULIB_STRERROR=0;
24773  GNULIB_STRERROR_R=0;
24774  GNULIB_STRSIGNAL=0;
24775  GNULIB_STRVERSCMP=0;
24776  HAVE_MBSLEN=0;
24777    HAVE_FFSL=1;
24778  HAVE_FFSLL=1;
24779  HAVE_MEMCHR=1;
24780  HAVE_DECL_MEMMEM=1;
24781  HAVE_MEMPCPY=1;
24782  HAVE_DECL_MEMRCHR=1;
24783  HAVE_RAWMEMCHR=1;
24784  HAVE_STPCPY=1;
24785  HAVE_STPNCPY=1;
24786  HAVE_STRCHRNUL=1;
24787  HAVE_DECL_STRDUP=1;
24788  HAVE_DECL_STRNDUP=1;
24789  HAVE_DECL_STRNLEN=1;
24790  HAVE_STRPBRK=1;
24791  HAVE_STRSEP=1;
24792  HAVE_STRCASESTR=1;
24793  HAVE_DECL_STRTOK_R=1;
24794  HAVE_DECL_STRERROR_R=1;
24795  HAVE_DECL_STRSIGNAL=1;
24796  HAVE_STRVERSCMP=1;
24797  REPLACE_MEMCHR=0;
24798  REPLACE_MEMMEM=0;
24799  REPLACE_STPNCPY=0;
24800  REPLACE_STRDUP=0;
24801  REPLACE_STRSTR=0;
24802  REPLACE_STRCASESTR=0;
24803  REPLACE_STRCHRNUL=0;
24804  REPLACE_STRERROR=0;
24805  REPLACE_STRERROR_R=0;
24806  REPLACE_STRNCAT=0;
24807  REPLACE_STRNDUP=0;
24808  REPLACE_STRNLEN=0;
24809  REPLACE_STRSIGNAL=0;
24810  REPLACE_STRTOK_R=0;
24811  UNDEFINE_STRTOK_R=0;
24812
24813
24814
24815
24816
24817  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
24818  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
24819  # irrelevant for anonymous mappings.
24820  { $as_echo "$as_me:$LINENO: checking for mmap" >&5
24821$as_echo_n "checking for mmap... " >&6; }
24822if test "${ac_cv_func_mmap+set}" = set; then
24823  $as_echo_n "(cached) " >&6
24824else
24825  cat >conftest.$ac_ext <<_ACEOF
24826/* confdefs.h.  */
24827_ACEOF
24828cat confdefs.h >>conftest.$ac_ext
24829cat >>conftest.$ac_ext <<_ACEOF
24830/* end confdefs.h.  */
24831/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
24832   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24833#define mmap innocuous_mmap
24834
24835/* System header to define __stub macros and hopefully few prototypes,
24836    which can conflict with char mmap (); below.
24837    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24838    <limits.h> exists even on freestanding compilers.  */
24839
24840#ifdef __STDC__
24841# include <limits.h>
24842#else
24843# include <assert.h>
24844#endif
24845
24846#undef mmap
24847
24848/* Override any GCC internal prototype to avoid an error.
24849   Use char because int might match the return type of a GCC
24850   builtin and then its argument prototype would still apply.  */
24851#ifdef __cplusplus
24852extern "C"
24853#endif
24854char mmap ();
24855/* The GNU C library defines this for functions which it implements
24856    to always fail with ENOSYS.  Some functions are actually named
24857    something starting with __ and the normal name is an alias.  */
24858#if defined __stub_mmap || defined __stub___mmap
24859choke me
24860#endif
24861
24862int
24863main ()
24864{
24865return mmap ();
24866  ;
24867  return 0;
24868}
24869_ACEOF
24870rm -f conftest.$ac_objext conftest$ac_exeext
24871if { (ac_try="$ac_link"
24872case "(($ac_try" in
24873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874  *) ac_try_echo=$ac_try;;
24875esac
24876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24877$as_echo "$ac_try_echo") >&5
24878  (eval "$ac_link") 2>conftest.er1
24879  ac_status=$?
24880  grep -v '^ *+' conftest.er1 >conftest.err
24881  rm -f conftest.er1
24882  cat conftest.err >&5
24883  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884  (exit $ac_status); } && {
24885	 test -z "$ac_c_werror_flag" ||
24886	 test ! -s conftest.err
24887       } && test -s conftest$ac_exeext && {
24888	 test "$cross_compiling" = yes ||
24889	 $as_test_x conftest$ac_exeext
24890       }; then
24891  ac_cv_func_mmap=yes
24892else
24893  $as_echo "$as_me: failed program was:" >&5
24894sed 's/^/| /' conftest.$ac_ext >&5
24895
24896	ac_cv_func_mmap=no
24897fi
24898
24899rm -rf conftest.dSYM
24900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24901      conftest$ac_exeext conftest.$ac_ext
24902fi
24903{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
24904$as_echo "$ac_cv_func_mmap" >&6; }
24905if test "x$ac_cv_func_mmap" = x""yes; then
24906  gl_have_mmap=yes
24907else
24908  gl_have_mmap=no
24909fi
24910
24911
24912  # Try to allow MAP_ANONYMOUS.
24913  gl_have_mmap_anonymous=no
24914  if test $gl_have_mmap = yes; then
24915    { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
24916$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
24917    cat >conftest.$ac_ext <<_ACEOF
24918/* confdefs.h.  */
24919_ACEOF
24920cat confdefs.h >>conftest.$ac_ext
24921cat >>conftest.$ac_ext <<_ACEOF
24922/* end confdefs.h.  */
24923
24924#include <sys/mman.h>
24925#ifdef MAP_ANONYMOUS
24926    I cannot identify this map
24927#endif
24928
24929_ACEOF
24930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24931  $EGREP "I cannot identify this map" >/dev/null 2>&1; then
24932  gl_have_mmap_anonymous=yes
24933fi
24934rm -f conftest*
24935
24936    if test $gl_have_mmap_anonymous != yes; then
24937      cat >conftest.$ac_ext <<_ACEOF
24938/* confdefs.h.  */
24939_ACEOF
24940cat confdefs.h >>conftest.$ac_ext
24941cat >>conftest.$ac_ext <<_ACEOF
24942/* end confdefs.h.  */
24943
24944#include <sys/mman.h>
24945#ifdef MAP_ANON
24946    I cannot identify this map
24947#endif
24948
24949_ACEOF
24950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24951  $EGREP "I cannot identify this map" >/dev/null 2>&1; then
24952
24953cat >>confdefs.h <<\_ACEOF
24954#define MAP_ANONYMOUS MAP_ANON
24955_ACEOF
24956
24957         gl_have_mmap_anonymous=yes
24958fi
24959rm -f conftest*
24960
24961    fi
24962    { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
24963$as_echo "$gl_have_mmap_anonymous" >&6; }
24964    if test $gl_have_mmap_anonymous = yes; then
24965
24966cat >>confdefs.h <<\_ACEOF
24967#define HAVE_MAP_ANONYMOUS 1
24968_ACEOF
24969
24970    fi
24971  fi
24972
24973
24974  :
24975
24976
24977
24978
24979
24980
24981  :
24982
24983
24984
24985
24986
24987
24988
24989
24990  if test $HAVE_MEMCHR = 1; then
24991    # Detect platform-specific bugs in some versions of glibc:
24992    # memchr should not dereference anything with length 0
24993    #   http://bugzilla.redhat.com/499689
24994    # memchr should not dereference overestimated length after a match
24995    #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
24996    #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
24997    # Assume that memchr works on platforms that lack mprotect.
24998    { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
24999$as_echo_n "checking whether memchr works... " >&6; }
25000if test "${gl_cv_func_memchr_works+set}" = set; then
25001  $as_echo_n "(cached) " >&6
25002else
25003  if test "$cross_compiling" = yes; then
25004         gl_cv_func_memchr_works="guessing no"
25005else
25006  cat >conftest.$ac_ext <<_ACEOF
25007/* confdefs.h.  */
25008_ACEOF
25009cat confdefs.h >>conftest.$ac_ext
25010cat >>conftest.$ac_ext <<_ACEOF
25011/* end confdefs.h.  */
25012
25013#include <string.h>
25014#if HAVE_SYS_MMAN_H
25015# include <fcntl.h>
25016# include <unistd.h>
25017# include <sys/types.h>
25018# include <sys/mman.h>
25019# ifndef MAP_FILE
25020#  define MAP_FILE 0
25021# endif
25022#endif
25023
25024int
25025main ()
25026{
25027
25028  int result = 0;
25029  char *fence = NULL;
25030#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
25031# if HAVE_MAP_ANONYMOUS
25032  const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
25033  const int fd = -1;
25034# else /* !HAVE_MAP_ANONYMOUS */
25035  const int flags = MAP_FILE | MAP_PRIVATE;
25036  int fd = open ("/dev/zero", O_RDONLY, 0666);
25037  if (fd >= 0)
25038# endif
25039    {
25040      int pagesize = getpagesize ();
25041      char *two_pages =
25042        (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
25043                       flags, fd, 0);
25044      if (two_pages != (char *)(-1)
25045          && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
25046        fence = two_pages + pagesize;
25047    }
25048#endif
25049  if (fence)
25050    {
25051      if (memchr (fence, 0, 0))
25052        result |= 1;
25053      strcpy (fence - 9, "12345678");
25054      if (memchr (fence - 9, 0, 79) != fence - 1)
25055        result |= 2;
25056      if (memchr (fence - 1, 0, 3) != fence - 1)
25057        result |= 4;
25058    }
25059  return result;
25060
25061  ;
25062  return 0;
25063}
25064_ACEOF
25065rm -f conftest$ac_exeext
25066if { (ac_try="$ac_link"
25067case "(($ac_try" in
25068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069  *) ac_try_echo=$ac_try;;
25070esac
25071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25072$as_echo "$ac_try_echo") >&5
25073  (eval "$ac_link") 2>&5
25074  ac_status=$?
25075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25077  { (case "(($ac_try" in
25078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079  *) ac_try_echo=$ac_try;;
25080esac
25081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25082$as_echo "$ac_try_echo") >&5
25083  (eval "$ac_try") 2>&5
25084  ac_status=$?
25085  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086  (exit $ac_status); }; }; then
25087  gl_cv_func_memchr_works=yes
25088else
25089  $as_echo "$as_me: program exited with status $ac_status" >&5
25090$as_echo "$as_me: failed program was:" >&5
25091sed 's/^/| /' conftest.$ac_ext >&5
25092
25093( exit $ac_status )
25094gl_cv_func_memchr_works=no
25095fi
25096rm -rf conftest.dSYM
25097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25098fi
25099
25100
25101fi
25102{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
25103$as_echo "$gl_cv_func_memchr_works" >&6; }
25104    if test "$gl_cv_func_memchr_works" != yes; then
25105      REPLACE_MEMCHR=1
25106    fi
25107  fi
25108
25109
25110      { $as_echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
25111$as_echo_n "checking whether memrchr is declared... " >&6; }
25112if test "${ac_cv_have_decl_memrchr+set}" = set; then
25113  $as_echo_n "(cached) " >&6
25114else
25115  cat >conftest.$ac_ext <<_ACEOF
25116/* confdefs.h.  */
25117_ACEOF
25118cat confdefs.h >>conftest.$ac_ext
25119cat >>conftest.$ac_ext <<_ACEOF
25120/* end confdefs.h.  */
25121$ac_includes_default
25122int
25123main ()
25124{
25125#ifndef memrchr
25126  (void) memrchr;
25127#endif
25128
25129  ;
25130  return 0;
25131}
25132_ACEOF
25133rm -f conftest.$ac_objext
25134if { (ac_try="$ac_compile"
25135case "(($ac_try" in
25136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137  *) ac_try_echo=$ac_try;;
25138esac
25139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25140$as_echo "$ac_try_echo") >&5
25141  (eval "$ac_compile") 2>conftest.er1
25142  ac_status=$?
25143  grep -v '^ *+' conftest.er1 >conftest.err
25144  rm -f conftest.er1
25145  cat conftest.err >&5
25146  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147  (exit $ac_status); } && {
25148	 test -z "$ac_c_werror_flag" ||
25149	 test ! -s conftest.err
25150       } && test -s conftest.$ac_objext; then
25151  ac_cv_have_decl_memrchr=yes
25152else
25153  $as_echo "$as_me: failed program was:" >&5
25154sed 's/^/| /' conftest.$ac_ext >&5
25155
25156	ac_cv_have_decl_memrchr=no
25157fi
25158
25159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25160fi
25161{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
25162$as_echo "$ac_cv_have_decl_memrchr" >&6; }
25163if test "x$ac_cv_have_decl_memrchr" = x""yes; then
25164
25165cat >>confdefs.h <<_ACEOF
25166#define HAVE_DECL_MEMRCHR 1
25167_ACEOF
25168
25169
25170else
25171  cat >>confdefs.h <<_ACEOF
25172#define HAVE_DECL_MEMRCHR 0
25173_ACEOF
25174
25175
25176fi
25177
25178
25179
25180
25181    gl_cv_c_multiarch=no
25182  cat >conftest.$ac_ext <<_ACEOF
25183/* confdefs.h.  */
25184_ACEOF
25185cat confdefs.h >>conftest.$ac_ext
25186cat >>conftest.$ac_ext <<_ACEOF
25187/* end confdefs.h.  */
25188#ifndef __APPLE_CC__
25189         not a universal capable compiler
25190        #endif
25191        typedef int dummy;
25192
25193_ACEOF
25194rm -f conftest.$ac_objext
25195if { (ac_try="$ac_compile"
25196case "(($ac_try" in
25197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198  *) ac_try_echo=$ac_try;;
25199esac
25200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25201$as_echo "$ac_try_echo") >&5
25202  (eval "$ac_compile") 2>conftest.er1
25203  ac_status=$?
25204  grep -v '^ *+' conftest.er1 >conftest.err
25205  rm -f conftest.er1
25206  cat conftest.err >&5
25207  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208  (exit $ac_status); } && {
25209	 test -z "$ac_c_werror_flag" ||
25210	 test ! -s conftest.err
25211       } && test -s conftest.$ac_objext; then
25212
25213               arch=
25214     prev=
25215     for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
25216       if test -n "$prev"; then
25217         case $word in
25218           i?86 | x86_64 | ppc | ppc64)
25219             if test -z "$arch" || test "$arch" = "$word"; then
25220               arch="$word"
25221             else
25222               gl_cv_c_multiarch=yes
25223             fi
25224             ;;
25225         esac
25226         prev=
25227       else
25228         if test "x$word" = "x-arch"; then
25229           prev=arch
25230         fi
25231       fi
25232     done
25233
25234else
25235  $as_echo "$as_me: failed program was:" >&5
25236sed 's/^/| /' conftest.$ac_ext >&5
25237
25238
25239fi
25240
25241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25242  if test $gl_cv_c_multiarch = yes; then
25243    APPLE_UNIVERSAL_BUILD=1
25244  else
25245    APPLE_UNIVERSAL_BUILD=0
25246  fi
25247
25248
25249
25250  GNULIB_DPRINTF=0;
25251  GNULIB_FCLOSE=0;
25252  GNULIB_FDOPEN=0;
25253  GNULIB_FFLUSH=0;
25254  GNULIB_FGETC=0;
25255  GNULIB_FGETS=0;
25256  GNULIB_FOPEN=0;
25257  GNULIB_FPRINTF=0;
25258  GNULIB_FPRINTF_POSIX=0;
25259  GNULIB_FPURGE=0;
25260  GNULIB_FPUTC=0;
25261  GNULIB_FPUTS=0;
25262  GNULIB_FREAD=0;
25263  GNULIB_FREOPEN=0;
25264  GNULIB_FSCANF=0;
25265  GNULIB_FSEEK=0;
25266  GNULIB_FSEEKO=0;
25267  GNULIB_FTELL=0;
25268  GNULIB_FTELLO=0;
25269  GNULIB_FWRITE=0;
25270  GNULIB_GETC=0;
25271  GNULIB_GETCHAR=0;
25272  GNULIB_GETDELIM=0;
25273  GNULIB_GETLINE=0;
25274  GNULIB_OBSTACK_PRINTF=0;
25275  GNULIB_OBSTACK_PRINTF_POSIX=0;
25276  GNULIB_PCLOSE=0;
25277  GNULIB_PERROR=0;
25278  GNULIB_POPEN=0;
25279  GNULIB_PRINTF=0;
25280  GNULIB_PRINTF_POSIX=0;
25281  GNULIB_PUTC=0;
25282  GNULIB_PUTCHAR=0;
25283  GNULIB_PUTS=0;
25284  GNULIB_REMOVE=0;
25285  GNULIB_RENAME=0;
25286  GNULIB_RENAMEAT=0;
25287  GNULIB_SCANF=0;
25288  GNULIB_SNPRINTF=0;
25289  GNULIB_SPRINTF_POSIX=0;
25290  GNULIB_STDIO_H_NONBLOCKING=0;
25291  GNULIB_STDIO_H_SIGPIPE=0;
25292  GNULIB_TMPFILE=0;
25293  GNULIB_VASPRINTF=0;
25294  GNULIB_VFSCANF=0;
25295  GNULIB_VSCANF=0;
25296  GNULIB_VDPRINTF=0;
25297  GNULIB_VFPRINTF=0;
25298  GNULIB_VFPRINTF_POSIX=0;
25299  GNULIB_VPRINTF=0;
25300  GNULIB_VPRINTF_POSIX=0;
25301  GNULIB_VSNPRINTF=0;
25302  GNULIB_VSPRINTF_POSIX=0;
25303    HAVE_DECL_FPURGE=1;
25304  HAVE_DECL_FSEEKO=1;
25305  HAVE_DECL_FTELLO=1;
25306  HAVE_DECL_GETDELIM=1;
25307  HAVE_DECL_GETLINE=1;
25308  HAVE_DECL_OBSTACK_PRINTF=1;
25309  HAVE_DECL_SNPRINTF=1;
25310  HAVE_DECL_VSNPRINTF=1;
25311  HAVE_DPRINTF=1;
25312  HAVE_FSEEKO=1;
25313  HAVE_FTELLO=1;
25314  HAVE_PCLOSE=1;
25315  HAVE_POPEN=1;
25316  HAVE_RENAMEAT=1;
25317  HAVE_VASPRINTF=1;
25318  HAVE_VDPRINTF=1;
25319  REPLACE_DPRINTF=0;
25320  REPLACE_FCLOSE=0;
25321  REPLACE_FDOPEN=0;
25322  REPLACE_FFLUSH=0;
25323  REPLACE_FOPEN=0;
25324  REPLACE_FPRINTF=0;
25325  REPLACE_FPURGE=0;
25326  REPLACE_FREOPEN=0;
25327  REPLACE_FSEEK=0;
25328  REPLACE_FSEEKO=0;
25329  REPLACE_FTELL=0;
25330  REPLACE_FTELLO=0;
25331  REPLACE_GETDELIM=0;
25332  REPLACE_GETLINE=0;
25333  REPLACE_OBSTACK_PRINTF=0;
25334  REPLACE_PERROR=0;
25335  REPLACE_POPEN=0;
25336  REPLACE_PRINTF=0;
25337  REPLACE_REMOVE=0;
25338  REPLACE_RENAME=0;
25339  REPLACE_RENAMEAT=0;
25340  REPLACE_SNPRINTF=0;
25341  REPLACE_SPRINTF=0;
25342  REPLACE_STDIO_READ_FUNCS=0;
25343  REPLACE_STDIO_WRITE_FUNCS=0;
25344  REPLACE_TMPFILE=0;
25345  REPLACE_VASPRINTF=0;
25346  REPLACE_VDPRINTF=0;
25347  REPLACE_VFPRINTF=0;
25348  REPLACE_VPRINTF=0;
25349  REPLACE_VSNPRINTF=0;
25350  REPLACE_VSPRINTF=0;
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360  :
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370  { $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
25371$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
25372if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
25373  $as_echo_n "(cached) " >&6
25374else
25375
25376      if test "$cross_compiling" = yes; then
25377
25378         case "$host_os" in
25379                                 # Guess yes on glibc systems.
25380           *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
25381                                 # Guess yes on FreeBSD >= 5.
25382           freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
25383           freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
25384                                 # Guess yes on Mac OS X >= 10.3.
25385           darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
25386           darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
25387                                 # Guess yes on OpenBSD >= 3.9.
25388           openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
25389                                 gl_cv_func_snprintf_retval_c99="guessing no";;
25390           openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
25391                                 # Guess yes on Solaris >= 2.10.
25392           solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
25393           solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
25394                                 # Guess yes on AIX >= 4.
25395           aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
25396           aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
25397                                 # Guess yes on NetBSD >= 3.
25398           netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
25399                                 gl_cv_func_snprintf_retval_c99="guessing no";;
25400           netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
25401                                 # Guess yes on BeOS.
25402           beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
25403                                 # If we don't know, assume the worst.
25404           *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
25405         esac
25406
25407else
25408  cat >conftest.$ac_ext <<_ACEOF
25409/* confdefs.h.  */
25410_ACEOF
25411cat confdefs.h >>conftest.$ac_ext
25412cat >>conftest.$ac_ext <<_ACEOF
25413/* end confdefs.h.  */
25414
25415#include <stdio.h>
25416#include <string.h>
25417#if HAVE_SNPRINTF
25418# define my_snprintf snprintf
25419#else
25420# include <stdarg.h>
25421static int my_snprintf (char *buf, int size, const char *format, ...)
25422{
25423  va_list args;
25424  int ret;
25425  va_start (args, format);
25426  ret = vsnprintf (buf, size, format, args);
25427  va_end (args);
25428  return ret;
25429}
25430#endif
25431static char buf[100];
25432int main ()
25433{
25434  strcpy (buf, "ABCDEF");
25435  if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
25436    return 1;
25437  if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
25438    return 2;
25439  if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
25440    return 3;
25441  return 0;
25442}
25443_ACEOF
25444rm -f conftest$ac_exeext
25445if { (ac_try="$ac_link"
25446case "(($ac_try" in
25447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25448  *) ac_try_echo=$ac_try;;
25449esac
25450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25451$as_echo "$ac_try_echo") >&5
25452  (eval "$ac_link") 2>&5
25453  ac_status=$?
25454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25456  { (case "(($ac_try" in
25457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458  *) ac_try_echo=$ac_try;;
25459esac
25460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25461$as_echo "$ac_try_echo") >&5
25462  (eval "$ac_try") 2>&5
25463  ac_status=$?
25464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465  (exit $ac_status); }; }; then
25466  gl_cv_func_snprintf_retval_c99=yes
25467else
25468  $as_echo "$as_me: program exited with status $ac_status" >&5
25469$as_echo "$as_me: failed program was:" >&5
25470sed 's/^/| /' conftest.$ac_ext >&5
25471
25472( exit $ac_status )
25473gl_cv_func_snprintf_retval_c99=no
25474fi
25475rm -rf conftest.dSYM
25476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25477fi
25478
25479
25480
25481fi
25482{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
25483$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
25484
25485
25486      { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
25487$as_echo_n "checking whether snprintf is declared... " >&6; }
25488if test "${ac_cv_have_decl_snprintf+set}" = set; then
25489  $as_echo_n "(cached) " >&6
25490else
25491  cat >conftest.$ac_ext <<_ACEOF
25492/* confdefs.h.  */
25493_ACEOF
25494cat confdefs.h >>conftest.$ac_ext
25495cat >>conftest.$ac_ext <<_ACEOF
25496/* end confdefs.h.  */
25497$ac_includes_default
25498int
25499main ()
25500{
25501#ifndef snprintf
25502  (void) snprintf;
25503#endif
25504
25505  ;
25506  return 0;
25507}
25508_ACEOF
25509rm -f conftest.$ac_objext
25510if { (ac_try="$ac_compile"
25511case "(($ac_try" in
25512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25513  *) ac_try_echo=$ac_try;;
25514esac
25515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25516$as_echo "$ac_try_echo") >&5
25517  (eval "$ac_compile") 2>conftest.er1
25518  ac_status=$?
25519  grep -v '^ *+' conftest.er1 >conftest.err
25520  rm -f conftest.er1
25521  cat conftest.err >&5
25522  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523  (exit $ac_status); } && {
25524	 test -z "$ac_c_werror_flag" ||
25525	 test ! -s conftest.err
25526       } && test -s conftest.$ac_objext; then
25527  ac_cv_have_decl_snprintf=yes
25528else
25529  $as_echo "$as_me: failed program was:" >&5
25530sed 's/^/| /' conftest.$ac_ext >&5
25531
25532	ac_cv_have_decl_snprintf=no
25533fi
25534
25535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25536fi
25537{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
25538$as_echo "$ac_cv_have_decl_snprintf" >&6; }
25539if test "x$ac_cv_have_decl_snprintf" = x""yes; then
25540
25541cat >>confdefs.h <<_ACEOF
25542#define HAVE_DECL_SNPRINTF 1
25543_ACEOF
25544
25545
25546else
25547  cat >>confdefs.h <<_ACEOF
25548#define HAVE_DECL_SNPRINTF 0
25549_ACEOF
25550
25551
25552fi
25553
25554
25555
25556
25557    REPLACE_NULL=0;
25558  HAVE_WCHAR_T=1;
25559
25560
25561  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
25562$as_echo_n "checking for wchar_t... " >&6; }
25563if test "${gt_cv_c_wchar_t+set}" = set; then
25564  $as_echo_n "(cached) " >&6
25565else
25566  cat >conftest.$ac_ext <<_ACEOF
25567/* confdefs.h.  */
25568_ACEOF
25569cat confdefs.h >>conftest.$ac_ext
25570cat >>conftest.$ac_ext <<_ACEOF
25571/* end confdefs.h.  */
25572#include <stddef.h>
25573            wchar_t foo = (wchar_t)'\0';
25574int
25575main ()
25576{
25577
25578  ;
25579  return 0;
25580}
25581_ACEOF
25582rm -f conftest.$ac_objext
25583if { (ac_try="$ac_compile"
25584case "(($ac_try" in
25585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586  *) ac_try_echo=$ac_try;;
25587esac
25588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25589$as_echo "$ac_try_echo") >&5
25590  (eval "$ac_compile") 2>conftest.er1
25591  ac_status=$?
25592  grep -v '^ *+' conftest.er1 >conftest.err
25593  rm -f conftest.er1
25594  cat conftest.err >&5
25595  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596  (exit $ac_status); } && {
25597	 test -z "$ac_c_werror_flag" ||
25598	 test ! -s conftest.err
25599       } && test -s conftest.$ac_objext; then
25600  gt_cv_c_wchar_t=yes
25601else
25602  $as_echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
25605	gt_cv_c_wchar_t=no
25606fi
25607
25608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25609fi
25610{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
25611$as_echo "$gt_cv_c_wchar_t" >&6; }
25612  if test $gt_cv_c_wchar_t = yes; then
25613
25614cat >>confdefs.h <<\_ACEOF
25615#define HAVE_WCHAR_T 1
25616_ACEOF
25617
25618  fi
25619
25620
25621  { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
25622$as_echo_n "checking for unsigned long long int... " >&6; }
25623if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
25624  $as_echo_n "(cached) " >&6
25625else
25626  ac_cv_type_unsigned_long_long_int=yes
25627     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
25628       cat >conftest.$ac_ext <<_ACEOF
25629
25630  /* confdefs.h.  */
25631_ACEOF
25632cat confdefs.h >>conftest.$ac_ext
25633cat >>conftest.$ac_ext <<_ACEOF
25634/* end confdefs.h.  */
25635/* For now, do not test the preprocessor; as of 2007 there are too many
25636         implementations with broken preprocessors.  Perhaps this can
25637         be revisited in 2012.  In the meantime, code should not expect
25638         #if to work with literals wider than 32 bits.  */
25639      /* Test literals.  */
25640      long long int ll = 9223372036854775807ll;
25641      long long int nll = -9223372036854775807LL;
25642      unsigned long long int ull = 18446744073709551615ULL;
25643      /* Test constant expressions.   */
25644      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
25645                     ? 1 : -1)];
25646      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
25647                     ? 1 : -1)];
25648      int i = 63;
25649int
25650main ()
25651{
25652/* Test availability of runtime routines for shift and division.  */
25653      long long int llmax = 9223372036854775807ll;
25654      unsigned long long int ullmax = 18446744073709551615ull;
25655      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
25656              | (llmax / ll) | (llmax % ll)
25657              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
25658              | (ullmax / ull) | (ullmax % ull));
25659  ;
25660  return 0;
25661}
25662
25663_ACEOF
25664rm -f conftest.$ac_objext conftest$ac_exeext
25665if { (ac_try="$ac_link"
25666case "(($ac_try" in
25667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25668  *) ac_try_echo=$ac_try;;
25669esac
25670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25671$as_echo "$ac_try_echo") >&5
25672  (eval "$ac_link") 2>conftest.er1
25673  ac_status=$?
25674  grep -v '^ *+' conftest.er1 >conftest.err
25675  rm -f conftest.er1
25676  cat conftest.err >&5
25677  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678  (exit $ac_status); } && {
25679	 test -z "$ac_c_werror_flag" ||
25680	 test ! -s conftest.err
25681       } && test -s conftest$ac_exeext && {
25682	 test "$cross_compiling" = yes ||
25683	 $as_test_x conftest$ac_exeext
25684       }; then
25685  :
25686else
25687  $as_echo "$as_me: failed program was:" >&5
25688sed 's/^/| /' conftest.$ac_ext >&5
25689
25690	ac_cv_type_unsigned_long_long_int=no
25691fi
25692
25693rm -rf conftest.dSYM
25694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25695      conftest$ac_exeext conftest.$ac_ext
25696     fi
25697fi
25698{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
25699$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
25700  if test $ac_cv_type_unsigned_long_long_int = yes; then
25701
25702cat >>confdefs.h <<\_ACEOF
25703#define HAVE_UNSIGNED_LONG_LONG_INT 1
25704_ACEOF
25705
25706  fi
25707
25708
25709
25710  { $as_echo "$as_me:$LINENO: checking for long long int" >&5
25711$as_echo_n "checking for long long int... " >&6; }
25712if test "${ac_cv_type_long_long_int+set}" = set; then
25713  $as_echo_n "(cached) " >&6
25714else
25715  ac_cv_type_long_long_int=yes
25716      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
25717        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
25718        if test $ac_cv_type_long_long_int = yes; then
25719                                        if test "$cross_compiling" = yes; then
25720  :
25721else
25722  cat >conftest.$ac_ext <<_ACEOF
25723/* confdefs.h.  */
25724_ACEOF
25725cat confdefs.h >>conftest.$ac_ext
25726cat >>conftest.$ac_ext <<_ACEOF
25727/* end confdefs.h.  */
25728#include <limits.h>
25729                 #ifndef LLONG_MAX
25730                 # define HALF \
25731                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
25732                 # define LLONG_MAX (HALF - 1 + HALF)
25733                 #endif
25734int
25735main ()
25736{
25737long long int n = 1;
25738                 int i;
25739                 for (i = 0; ; i++)
25740                   {
25741                     long long int m = n << i;
25742                     if (m >> i != n)
25743                       return 1;
25744                     if (LLONG_MAX / 2 < m)
25745                       break;
25746                   }
25747                 return 0;
25748  ;
25749  return 0;
25750}
25751_ACEOF
25752rm -f conftest$ac_exeext
25753if { (ac_try="$ac_link"
25754case "(($ac_try" in
25755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25756  *) ac_try_echo=$ac_try;;
25757esac
25758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25759$as_echo "$ac_try_echo") >&5
25760  (eval "$ac_link") 2>&5
25761  ac_status=$?
25762  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25764  { (case "(($ac_try" in
25765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25766  *) ac_try_echo=$ac_try;;
25767esac
25768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25769$as_echo "$ac_try_echo") >&5
25770  (eval "$ac_try") 2>&5
25771  ac_status=$?
25772  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773  (exit $ac_status); }; }; then
25774  :
25775else
25776  $as_echo "$as_me: program exited with status $ac_status" >&5
25777$as_echo "$as_me: failed program was:" >&5
25778sed 's/^/| /' conftest.$ac_ext >&5
25779
25780( exit $ac_status )
25781ac_cv_type_long_long_int=no
25782fi
25783rm -rf conftest.dSYM
25784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25785fi
25786
25787
25788        fi
25789      fi
25790fi
25791{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25792$as_echo "$ac_cv_type_long_long_int" >&6; }
25793  if test $ac_cv_type_long_long_int = yes; then
25794
25795cat >>confdefs.h <<\_ACEOF
25796#define HAVE_LONG_LONG_INT 1
25797_ACEOF
25798
25799  fi
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816  if test $ac_cv_type_long_long_int = yes; then
25817    HAVE_LONG_LONG_INT=1
25818  else
25819    HAVE_LONG_LONG_INT=0
25820  fi
25821
25822
25823  if test $ac_cv_type_unsigned_long_long_int = yes; then
25824    HAVE_UNSIGNED_LONG_LONG_INT=1
25825  else
25826    HAVE_UNSIGNED_LONG_LONG_INT=0
25827  fi
25828
25829
25830
25831  :
25832
25833
25834
25835
25836
25837  if test $ac_cv_header_wchar_h = yes; then
25838    HAVE_WCHAR_H=1
25839  else
25840    HAVE_WCHAR_H=0
25841  fi
25842
25843
25844      if test $ac_cv_header_inttypes_h = yes; then
25845    HAVE_INTTYPES_H=1
25846  else
25847    HAVE_INTTYPES_H=0
25848  fi
25849
25850
25851      if test $ac_cv_header_sys_types_h = yes; then
25852    HAVE_SYS_TYPES_H=1
25853  else
25854    HAVE_SYS_TYPES_H=0
25855  fi
25856
25857
25858
25859
25860
25861
25862
25863
25864  :
25865
25866
25867
25868
25869
25870
25871
25872
25873     if test $gl_cv_have_include_next = yes; then
25874       gl_cv_next_stdint_h='<'stdint.h'>'
25875     else
25876       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
25877$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
25878if test "${gl_cv_next_stdint_h+set}" = set; then
25879  $as_echo_n "(cached) " >&6
25880else
25881
25882             if test $ac_cv_header_stdint_h = yes; then
25883
25884
25885
25886
25887  cat >conftest.$ac_ext <<_ACEOF
25888/* confdefs.h.  */
25889_ACEOF
25890cat confdefs.h >>conftest.$ac_ext
25891cat >>conftest.$ac_ext <<_ACEOF
25892/* end confdefs.h.  */
25893#include <stdint.h>
25894_ACEOF
25895                case "$host_os" in
25896    aix*) gl_absname_cpp="$ac_cpp -C" ;;
25897    *)    gl_absname_cpp="$ac_cpp" ;;
25898  esac
25899
25900  case "$host_os" in
25901    mingw*)
25902                                          gl_dirsep_regex='[/\\]'
25903      ;;
25904    *)
25905      gl_dirsep_regex='\/'
25906      ;;
25907  esac
25908      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25909  gl_header_literal_regex=`echo 'stdint.h' \
25910                           | sed -e "$gl_make_literal_regex_sed"`
25911  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25912      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25913      s|^/[^/]|//&|
25914      p
25915      q
25916    }'
25917
25918        gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25919  sed -n "$gl_absolute_header_sed"`
25920
25921           gl_header=$gl_cv_absolute_stdint_h
25922           gl_cv_next_stdint_h='"'$gl_header'"'
25923          else
25924               gl_cv_next_stdint_h='<'stdint.h'>'
25925             fi
25926
25927
25928fi
25929{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
25930$as_echo "$gl_cv_next_stdint_h" >&6; }
25931     fi
25932     NEXT_STDINT_H=$gl_cv_next_stdint_h
25933
25934     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25935       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25936       gl_next_as_first_directive='<'stdint.h'>'
25937     else
25938       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25939       gl_next_as_first_directive=$gl_cv_next_stdint_h
25940     fi
25941     NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
25942
25943
25944
25945
25946  if test $ac_cv_header_stdint_h = yes; then
25947    HAVE_STDINT_H=1
25948  else
25949    HAVE_STDINT_H=0
25950  fi
25951
25952
25953    if test $ac_cv_header_stdint_h = yes; then
25954    { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
25955$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
25956if test "${gl_cv_header_working_stdint_h+set}" = set; then
25957  $as_echo_n "(cached) " >&6
25958else
25959  gl_cv_header_working_stdint_h=no
25960       cat >conftest.$ac_ext <<_ACEOF
25961
25962         /* confdefs.h.  */
25963_ACEOF
25964cat confdefs.h >>conftest.$ac_ext
25965cat >>conftest.$ac_ext <<_ACEOF
25966/* end confdefs.h.  */
25967
25968#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
25969#include <stdint.h>
25970/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
25971#if !(defined WCHAR_MIN && defined WCHAR_MAX)
25972#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
25973#endif
25974
25975
25976  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25977     included before <wchar.h>.  */
25978  #include <stddef.h>
25979  #include <signal.h>
25980  #if HAVE_WCHAR_H
25981  # include <stdio.h>
25982  # include <time.h>
25983  # include <wchar.h>
25984  #endif
25985
25986
25987#ifdef INT8_MAX
25988int8_t a1 = INT8_MAX;
25989int8_t a1min = INT8_MIN;
25990#endif
25991#ifdef INT16_MAX
25992int16_t a2 = INT16_MAX;
25993int16_t a2min = INT16_MIN;
25994#endif
25995#ifdef INT32_MAX
25996int32_t a3 = INT32_MAX;
25997int32_t a3min = INT32_MIN;
25998#endif
25999#ifdef INT64_MAX
26000int64_t a4 = INT64_MAX;
26001int64_t a4min = INT64_MIN;
26002#endif
26003#ifdef UINT8_MAX
26004uint8_t b1 = UINT8_MAX;
26005#else
26006typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
26007#endif
26008#ifdef UINT16_MAX
26009uint16_t b2 = UINT16_MAX;
26010#endif
26011#ifdef UINT32_MAX
26012uint32_t b3 = UINT32_MAX;
26013#endif
26014#ifdef UINT64_MAX
26015uint64_t b4 = UINT64_MAX;
26016#endif
26017int_least8_t c1 = INT8_C (0x7f);
26018int_least8_t c1max = INT_LEAST8_MAX;
26019int_least8_t c1min = INT_LEAST8_MIN;
26020int_least16_t c2 = INT16_C (0x7fff);
26021int_least16_t c2max = INT_LEAST16_MAX;
26022int_least16_t c2min = INT_LEAST16_MIN;
26023int_least32_t c3 = INT32_C (0x7fffffff);
26024int_least32_t c3max = INT_LEAST32_MAX;
26025int_least32_t c3min = INT_LEAST32_MIN;
26026int_least64_t c4 = INT64_C (0x7fffffffffffffff);
26027int_least64_t c4max = INT_LEAST64_MAX;
26028int_least64_t c4min = INT_LEAST64_MIN;
26029uint_least8_t d1 = UINT8_C (0xff);
26030uint_least8_t d1max = UINT_LEAST8_MAX;
26031uint_least16_t d2 = UINT16_C (0xffff);
26032uint_least16_t d2max = UINT_LEAST16_MAX;
26033uint_least32_t d3 = UINT32_C (0xffffffff);
26034uint_least32_t d3max = UINT_LEAST32_MAX;
26035uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
26036uint_least64_t d4max = UINT_LEAST64_MAX;
26037int_fast8_t e1 = INT_FAST8_MAX;
26038int_fast8_t e1min = INT_FAST8_MIN;
26039int_fast16_t e2 = INT_FAST16_MAX;
26040int_fast16_t e2min = INT_FAST16_MIN;
26041int_fast32_t e3 = INT_FAST32_MAX;
26042int_fast32_t e3min = INT_FAST32_MIN;
26043int_fast64_t e4 = INT_FAST64_MAX;
26044int_fast64_t e4min = INT_FAST64_MIN;
26045uint_fast8_t f1 = UINT_FAST8_MAX;
26046uint_fast16_t f2 = UINT_FAST16_MAX;
26047uint_fast32_t f3 = UINT_FAST32_MAX;
26048uint_fast64_t f4 = UINT_FAST64_MAX;
26049#ifdef INTPTR_MAX
26050intptr_t g = INTPTR_MAX;
26051intptr_t gmin = INTPTR_MIN;
26052#endif
26053#ifdef UINTPTR_MAX
26054uintptr_t h = UINTPTR_MAX;
26055#endif
26056intmax_t i = INTMAX_MAX;
26057uintmax_t j = UINTMAX_MAX;
26058
26059#include <limits.h> /* for CHAR_BIT */
26060#define TYPE_MINIMUM(t) \
26061  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
26062#define TYPE_MAXIMUM(t) \
26063  ((t) ((t) 0 < (t) -1 \
26064        ? (t) -1 \
26065        : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
26066struct s {
26067  int check_PTRDIFF:
26068      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
26069      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
26070      ? 1 : -1;
26071  /* Detect bug in FreeBSD 6.0 / ia64.  */
26072  int check_SIG_ATOMIC:
26073      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
26074      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
26075      ? 1 : -1;
26076  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
26077  int check_WCHAR:
26078      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
26079      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
26080      ? 1 : -1;
26081  /* Detect bug in mingw.  */
26082  int check_WINT:
26083      WINT_MIN == TYPE_MINIMUM (wint_t)
26084      && WINT_MAX == TYPE_MAXIMUM (wint_t)
26085      ? 1 : -1;
26086
26087  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
26088  int check_UINT8_C:
26089        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
26090  int check_UINT16_C:
26091        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
26092
26093  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
26094#ifdef UINT8_MAX
26095  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
26096#endif
26097#ifdef UINT16_MAX
26098  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
26099#endif
26100#ifdef UINT32_MAX
26101  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
26102#endif
26103#ifdef UINT64_MAX
26104  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
26105#endif
26106  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
26107  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
26108  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
26109  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
26110  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
26111  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
26112  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
26113  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
26114  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
26115  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
26116  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
26117};
26118
26119int
26120main ()
26121{
26122
26123  ;
26124  return 0;
26125}
26126_ACEOF
26127rm -f conftest.$ac_objext
26128if { (ac_try="$ac_compile"
26129case "(($ac_try" in
26130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131  *) ac_try_echo=$ac_try;;
26132esac
26133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26134$as_echo "$ac_try_echo") >&5
26135  (eval "$ac_compile") 2>conftest.er1
26136  ac_status=$?
26137  grep -v '^ *+' conftest.er1 >conftest.err
26138  rm -f conftest.er1
26139  cat conftest.err >&5
26140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141  (exit $ac_status); } && {
26142	 test -z "$ac_c_werror_flag" ||
26143	 test ! -s conftest.err
26144       } && test -s conftest.$ac_objext; then
26145                                                    if test "$cross_compiling" = yes; then
26146                 gl_cv_header_working_stdint_h=yes
26147
26148else
26149  cat >conftest.$ac_ext <<_ACEOF
26150
26151            /* confdefs.h.  */
26152_ACEOF
26153cat confdefs.h >>conftest.$ac_ext
26154cat >>conftest.$ac_ext <<_ACEOF
26155/* end confdefs.h.  */
26156
26157#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
26158#include <stdint.h>
26159
26160
26161  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26162     included before <wchar.h>.  */
26163  #include <stddef.h>
26164  #include <signal.h>
26165  #if HAVE_WCHAR_H
26166  # include <stdio.h>
26167  # include <time.h>
26168  # include <wchar.h>
26169  #endif
26170
26171
26172#include <stdio.h>
26173#include <string.h>
26174#define MVAL(macro) MVAL1(macro)
26175#define MVAL1(expression) #expression
26176static const char *macro_values[] =
26177  {
26178#ifdef INT8_MAX
26179    MVAL (INT8_MAX),
26180#endif
26181#ifdef INT16_MAX
26182    MVAL (INT16_MAX),
26183#endif
26184#ifdef INT32_MAX
26185    MVAL (INT32_MAX),
26186#endif
26187#ifdef INT64_MAX
26188    MVAL (INT64_MAX),
26189#endif
26190#ifdef UINT8_MAX
26191    MVAL (UINT8_MAX),
26192#endif
26193#ifdef UINT16_MAX
26194    MVAL (UINT16_MAX),
26195#endif
26196#ifdef UINT32_MAX
26197    MVAL (UINT32_MAX),
26198#endif
26199#ifdef UINT64_MAX
26200    MVAL (UINT64_MAX),
26201#endif
26202    NULL
26203  };
26204
26205int
26206main ()
26207{
26208
26209  const char **mv;
26210  for (mv = macro_values; *mv != NULL; mv++)
26211    {
26212      const char *value = *mv;
26213      /* Test whether it looks like a cast expression.  */
26214      if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
26215          || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
26216          || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
26217          || strncmp (value, "((int)"/*)*/, 6) == 0
26218          || strncmp (value, "((signed short)"/*)*/, 15) == 0
26219          || strncmp (value, "((signed char)"/*)*/, 14) == 0)
26220        return mv - macro_values + 1;
26221    }
26222  return 0;
26223
26224  ;
26225  return 0;
26226}
26227_ACEOF
26228rm -f conftest$ac_exeext
26229if { (ac_try="$ac_link"
26230case "(($ac_try" in
26231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232  *) ac_try_echo=$ac_try;;
26233esac
26234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26235$as_echo "$ac_try_echo") >&5
26236  (eval "$ac_link") 2>&5
26237  ac_status=$?
26238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26240  { (case "(($ac_try" in
26241  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26242  *) ac_try_echo=$ac_try;;
26243esac
26244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26245$as_echo "$ac_try_echo") >&5
26246  (eval "$ac_try") 2>&5
26247  ac_status=$?
26248  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249  (exit $ac_status); }; }; then
26250  gl_cv_header_working_stdint_h=yes
26251else
26252  $as_echo "$as_me: program exited with status $ac_status" >&5
26253$as_echo "$as_me: failed program was:" >&5
26254sed 's/^/| /' conftest.$ac_ext >&5
26255
26256fi
26257rm -rf conftest.dSYM
26258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26259fi
26260
26261
26262
26263else
26264  $as_echo "$as_me: failed program was:" >&5
26265sed 's/^/| /' conftest.$ac_ext >&5
26266
26267
26268fi
26269
26270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26271
26272fi
26273{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
26274$as_echo "$gl_cv_header_working_stdint_h" >&6; }
26275  fi
26276  if test "$gl_cv_header_working_stdint_h" = yes; then
26277    STDINT_H=
26278  else
26279
26280
26281for ac_header in sys/inttypes.h sys/bitypes.h
26282do
26283as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26285  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26286$as_echo_n "checking for $ac_header... " >&6; }
26287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26288  $as_echo_n "(cached) " >&6
26289fi
26290ac_res=`eval 'as_val=${'$as_ac_Header'}
26291		 $as_echo "$as_val"'`
26292	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26293$as_echo "$ac_res" >&6; }
26294else
26295  # Is the header compilable?
26296{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26297$as_echo_n "checking $ac_header usability... " >&6; }
26298cat >conftest.$ac_ext <<_ACEOF
26299/* confdefs.h.  */
26300_ACEOF
26301cat confdefs.h >>conftest.$ac_ext
26302cat >>conftest.$ac_ext <<_ACEOF
26303/* end confdefs.h.  */
26304$ac_includes_default
26305#include <$ac_header>
26306_ACEOF
26307rm -f conftest.$ac_objext
26308if { (ac_try="$ac_compile"
26309case "(($ac_try" in
26310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26311  *) ac_try_echo=$ac_try;;
26312esac
26313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26314$as_echo "$ac_try_echo") >&5
26315  (eval "$ac_compile") 2>conftest.er1
26316  ac_status=$?
26317  grep -v '^ *+' conftest.er1 >conftest.err
26318  rm -f conftest.er1
26319  cat conftest.err >&5
26320  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321  (exit $ac_status); } && {
26322	 test -z "$ac_c_werror_flag" ||
26323	 test ! -s conftest.err
26324       } && test -s conftest.$ac_objext; then
26325  ac_header_compiler=yes
26326else
26327  $as_echo "$as_me: failed program was:" >&5
26328sed 's/^/| /' conftest.$ac_ext >&5
26329
26330	ac_header_compiler=no
26331fi
26332
26333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26334{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26335$as_echo "$ac_header_compiler" >&6; }
26336
26337# Is the header present?
26338{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26339$as_echo_n "checking $ac_header presence... " >&6; }
26340cat >conftest.$ac_ext <<_ACEOF
26341/* confdefs.h.  */
26342_ACEOF
26343cat confdefs.h >>conftest.$ac_ext
26344cat >>conftest.$ac_ext <<_ACEOF
26345/* end confdefs.h.  */
26346#include <$ac_header>
26347_ACEOF
26348if { (ac_try="$ac_cpp conftest.$ac_ext"
26349case "(($ac_try" in
26350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26351  *) ac_try_echo=$ac_try;;
26352esac
26353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26354$as_echo "$ac_try_echo") >&5
26355  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26356  ac_status=$?
26357  grep -v '^ *+' conftest.er1 >conftest.err
26358  rm -f conftest.er1
26359  cat conftest.err >&5
26360  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361  (exit $ac_status); } >/dev/null && {
26362	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26363	 test ! -s conftest.err
26364       }; then
26365  ac_header_preproc=yes
26366else
26367  $as_echo "$as_me: failed program was:" >&5
26368sed 's/^/| /' conftest.$ac_ext >&5
26369
26370  ac_header_preproc=no
26371fi
26372
26373rm -f conftest.err conftest.$ac_ext
26374{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26375$as_echo "$ac_header_preproc" >&6; }
26376
26377# So?  What about this header?
26378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26379  yes:no: )
26380    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26381$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26382    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26383$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26384    ac_header_preproc=yes
26385    ;;
26386  no:yes:* )
26387    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26388$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26389    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26390$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26391    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26392$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26393    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26394$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26395    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26396$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26397    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26398$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26399
26400    ;;
26401esac
26402{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26403$as_echo_n "checking for $ac_header... " >&6; }
26404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26405  $as_echo_n "(cached) " >&6
26406else
26407  eval "$as_ac_Header=\$ac_header_preproc"
26408fi
26409ac_res=`eval 'as_val=${'$as_ac_Header'}
26410		 $as_echo "$as_val"'`
26411	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26412$as_echo "$ac_res" >&6; }
26413
26414fi
26415as_val=`eval 'as_val=${'$as_ac_Header'}
26416		 $as_echo "$as_val"'`
26417   if test "x$as_val" = x""yes; then
26418  cat >>confdefs.h <<_ACEOF
26419#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26420_ACEOF
26421
26422fi
26423
26424done
26425
26426    if test $ac_cv_header_sys_inttypes_h = yes; then
26427      HAVE_SYS_INTTYPES_H=1
26428    else
26429      HAVE_SYS_INTTYPES_H=0
26430    fi
26431
26432    if test $ac_cv_header_sys_bitypes_h = yes; then
26433      HAVE_SYS_BITYPES_H=1
26434    else
26435      HAVE_SYS_BITYPES_H=0
26436    fi
26437
26438
26439
26440
26441  if test $APPLE_UNIVERSAL_BUILD = 0; then
26442
26443
26444
26445
26446  for gltype in ptrdiff_t size_t ; do
26447    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
26448$as_echo_n "checking for bit size of $gltype... " >&6; }
26449if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
26450  $as_echo_n "(cached) " >&6
26451else
26452  if test "$cross_compiling" = yes; then
26453  # Depending upon the size, compute the lo and hi bounds.
26454cat >conftest.$ac_ext <<_ACEOF
26455/* confdefs.h.  */
26456_ACEOF
26457cat confdefs.h >>conftest.$ac_ext
26458cat >>conftest.$ac_ext <<_ACEOF
26459/* end confdefs.h.  */
26460
26461  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26462     included before <wchar.h>.  */
26463  #include <stddef.h>
26464  #include <signal.h>
26465  #if HAVE_WCHAR_H
26466  # include <stdio.h>
26467  # include <time.h>
26468  # include <wchar.h>
26469  #endif
26470
26471#include <limits.h>
26472int
26473main ()
26474{
26475static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
26476test_array [0] = 0
26477
26478  ;
26479  return 0;
26480}
26481_ACEOF
26482rm -f conftest.$ac_objext
26483if { (ac_try="$ac_compile"
26484case "(($ac_try" in
26485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26486  *) ac_try_echo=$ac_try;;
26487esac
26488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26489$as_echo "$ac_try_echo") >&5
26490  (eval "$ac_compile") 2>conftest.er1
26491  ac_status=$?
26492  grep -v '^ *+' conftest.er1 >conftest.err
26493  rm -f conftest.er1
26494  cat conftest.err >&5
26495  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496  (exit $ac_status); } && {
26497	 test -z "$ac_c_werror_flag" ||
26498	 test ! -s conftest.err
26499       } && test -s conftest.$ac_objext; then
26500  ac_lo=0 ac_mid=0
26501  while :; do
26502    cat >conftest.$ac_ext <<_ACEOF
26503/* confdefs.h.  */
26504_ACEOF
26505cat confdefs.h >>conftest.$ac_ext
26506cat >>conftest.$ac_ext <<_ACEOF
26507/* end confdefs.h.  */
26508
26509  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26510     included before <wchar.h>.  */
26511  #include <stddef.h>
26512  #include <signal.h>
26513  #if HAVE_WCHAR_H
26514  # include <stdio.h>
26515  # include <time.h>
26516  # include <wchar.h>
26517  #endif
26518
26519#include <limits.h>
26520int
26521main ()
26522{
26523static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
26524test_array [0] = 0
26525
26526  ;
26527  return 0;
26528}
26529_ACEOF
26530rm -f conftest.$ac_objext
26531if { (ac_try="$ac_compile"
26532case "(($ac_try" in
26533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534  *) ac_try_echo=$ac_try;;
26535esac
26536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26537$as_echo "$ac_try_echo") >&5
26538  (eval "$ac_compile") 2>conftest.er1
26539  ac_status=$?
26540  grep -v '^ *+' conftest.er1 >conftest.err
26541  rm -f conftest.er1
26542  cat conftest.err >&5
26543  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544  (exit $ac_status); } && {
26545	 test -z "$ac_c_werror_flag" ||
26546	 test ! -s conftest.err
26547       } && test -s conftest.$ac_objext; then
26548  ac_hi=$ac_mid; break
26549else
26550  $as_echo "$as_me: failed program was:" >&5
26551sed 's/^/| /' conftest.$ac_ext >&5
26552
26553	ac_lo=`expr $ac_mid + 1`
26554			if test $ac_lo -le $ac_mid; then
26555			  ac_lo= ac_hi=
26556			  break
26557			fi
26558			ac_mid=`expr 2 '*' $ac_mid + 1`
26559fi
26560
26561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26562  done
26563else
26564  $as_echo "$as_me: failed program was:" >&5
26565sed 's/^/| /' conftest.$ac_ext >&5
26566
26567	cat >conftest.$ac_ext <<_ACEOF
26568/* confdefs.h.  */
26569_ACEOF
26570cat confdefs.h >>conftest.$ac_ext
26571cat >>conftest.$ac_ext <<_ACEOF
26572/* end confdefs.h.  */
26573
26574  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26575     included before <wchar.h>.  */
26576  #include <stddef.h>
26577  #include <signal.h>
26578  #if HAVE_WCHAR_H
26579  # include <stdio.h>
26580  # include <time.h>
26581  # include <wchar.h>
26582  #endif
26583
26584#include <limits.h>
26585int
26586main ()
26587{
26588static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
26589test_array [0] = 0
26590
26591  ;
26592  return 0;
26593}
26594_ACEOF
26595rm -f conftest.$ac_objext
26596if { (ac_try="$ac_compile"
26597case "(($ac_try" in
26598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26599  *) ac_try_echo=$ac_try;;
26600esac
26601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26602$as_echo "$ac_try_echo") >&5
26603  (eval "$ac_compile") 2>conftest.er1
26604  ac_status=$?
26605  grep -v '^ *+' conftest.er1 >conftest.err
26606  rm -f conftest.er1
26607  cat conftest.err >&5
26608  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609  (exit $ac_status); } && {
26610	 test -z "$ac_c_werror_flag" ||
26611	 test ! -s conftest.err
26612       } && test -s conftest.$ac_objext; then
26613  ac_hi=-1 ac_mid=-1
26614  while :; do
26615    cat >conftest.$ac_ext <<_ACEOF
26616/* confdefs.h.  */
26617_ACEOF
26618cat confdefs.h >>conftest.$ac_ext
26619cat >>conftest.$ac_ext <<_ACEOF
26620/* end confdefs.h.  */
26621
26622  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26623     included before <wchar.h>.  */
26624  #include <stddef.h>
26625  #include <signal.h>
26626  #if HAVE_WCHAR_H
26627  # include <stdio.h>
26628  # include <time.h>
26629  # include <wchar.h>
26630  #endif
26631
26632#include <limits.h>
26633int
26634main ()
26635{
26636static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
26637test_array [0] = 0
26638
26639  ;
26640  return 0;
26641}
26642_ACEOF
26643rm -f conftest.$ac_objext
26644if { (ac_try="$ac_compile"
26645case "(($ac_try" in
26646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26647  *) ac_try_echo=$ac_try;;
26648esac
26649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26650$as_echo "$ac_try_echo") >&5
26651  (eval "$ac_compile") 2>conftest.er1
26652  ac_status=$?
26653  grep -v '^ *+' conftest.er1 >conftest.err
26654  rm -f conftest.er1
26655  cat conftest.err >&5
26656  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657  (exit $ac_status); } && {
26658	 test -z "$ac_c_werror_flag" ||
26659	 test ! -s conftest.err
26660       } && test -s conftest.$ac_objext; then
26661  ac_lo=$ac_mid; break
26662else
26663  $as_echo "$as_me: failed program was:" >&5
26664sed 's/^/| /' conftest.$ac_ext >&5
26665
26666	ac_hi=`expr '(' $ac_mid ')' - 1`
26667			if test $ac_mid -le $ac_hi; then
26668			  ac_lo= ac_hi=
26669			  break
26670			fi
26671			ac_mid=`expr 2 '*' $ac_mid`
26672fi
26673
26674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26675  done
26676else
26677  $as_echo "$as_me: failed program was:" >&5
26678sed 's/^/| /' conftest.$ac_ext >&5
26679
26680	ac_lo= ac_hi=
26681fi
26682
26683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26684fi
26685
26686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26687# Binary search between lo and hi bounds.
26688while test "x$ac_lo" != "x$ac_hi"; do
26689  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26690  cat >conftest.$ac_ext <<_ACEOF
26691/* confdefs.h.  */
26692_ACEOF
26693cat confdefs.h >>conftest.$ac_ext
26694cat >>conftest.$ac_ext <<_ACEOF
26695/* end confdefs.h.  */
26696
26697  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26698     included before <wchar.h>.  */
26699  #include <stddef.h>
26700  #include <signal.h>
26701  #if HAVE_WCHAR_H
26702  # include <stdio.h>
26703  # include <time.h>
26704  # include <wchar.h>
26705  #endif
26706
26707#include <limits.h>
26708int
26709main ()
26710{
26711static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
26712test_array [0] = 0
26713
26714  ;
26715  return 0;
26716}
26717_ACEOF
26718rm -f conftest.$ac_objext
26719if { (ac_try="$ac_compile"
26720case "(($ac_try" in
26721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26722  *) ac_try_echo=$ac_try;;
26723esac
26724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26725$as_echo "$ac_try_echo") >&5
26726  (eval "$ac_compile") 2>conftest.er1
26727  ac_status=$?
26728  grep -v '^ *+' conftest.er1 >conftest.err
26729  rm -f conftest.er1
26730  cat conftest.err >&5
26731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732  (exit $ac_status); } && {
26733	 test -z "$ac_c_werror_flag" ||
26734	 test ! -s conftest.err
26735       } && test -s conftest.$ac_objext; then
26736  ac_hi=$ac_mid
26737else
26738  $as_echo "$as_me: failed program was:" >&5
26739sed 's/^/| /' conftest.$ac_ext >&5
26740
26741	ac_lo=`expr '(' $ac_mid ')' + 1`
26742fi
26743
26744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26745done
26746case $ac_lo in
26747?*) result=$ac_lo;;
26748'') result=unknown ;;
26749esac
26750else
26751  cat >conftest.$ac_ext <<_ACEOF
26752/* confdefs.h.  */
26753_ACEOF
26754cat confdefs.h >>conftest.$ac_ext
26755cat >>conftest.$ac_ext <<_ACEOF
26756/* end confdefs.h.  */
26757
26758  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26759     included before <wchar.h>.  */
26760  #include <stddef.h>
26761  #include <signal.h>
26762  #if HAVE_WCHAR_H
26763  # include <stdio.h>
26764  # include <time.h>
26765  # include <wchar.h>
26766  #endif
26767
26768#include <limits.h>
26769static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
26770static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
26771#include <stdio.h>
26772#include <stdlib.h>
26773int
26774main ()
26775{
26776
26777  FILE *f = fopen ("conftest.val", "w");
26778  if (! f)
26779    return 1;
26780  if ((sizeof ($gltype) * CHAR_BIT) < 0)
26781    {
26782      long int i = longval ();
26783      if (i != (sizeof ($gltype) * CHAR_BIT))
26784	return 1;
26785      fprintf (f, "%ld", i);
26786    }
26787  else
26788    {
26789      unsigned long int i = ulongval ();
26790      if (i != (sizeof ($gltype) * CHAR_BIT))
26791	return 1;
26792      fprintf (f, "%lu", i);
26793    }
26794  /* Do not output a trailing newline, as this causes \r\n confusion
26795     on some platforms.  */
26796  return ferror (f) || fclose (f) != 0;
26797
26798  ;
26799  return 0;
26800}
26801_ACEOF
26802rm -f conftest$ac_exeext
26803if { (ac_try="$ac_link"
26804case "(($ac_try" in
26805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26806  *) ac_try_echo=$ac_try;;
26807esac
26808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26809$as_echo "$ac_try_echo") >&5
26810  (eval "$ac_link") 2>&5
26811  ac_status=$?
26812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26814  { (case "(($ac_try" in
26815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816  *) ac_try_echo=$ac_try;;
26817esac
26818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26819$as_echo "$ac_try_echo") >&5
26820  (eval "$ac_try") 2>&5
26821  ac_status=$?
26822  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823  (exit $ac_status); }; }; then
26824  result=`cat conftest.val`
26825else
26826  $as_echo "$as_me: program exited with status $ac_status" >&5
26827$as_echo "$as_me: failed program was:" >&5
26828sed 's/^/| /' conftest.$ac_ext >&5
26829
26830( exit $ac_status )
26831result=unknown
26832fi
26833rm -rf conftest.dSYM
26834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26835fi
26836rm -f conftest.val
26837       eval gl_cv_bitsizeof_${gltype}=\$result
26838
26839fi
26840ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
26841		 $as_echo "$as_val"'`
26842	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26843$as_echo "$ac_res" >&6; }
26844    eval result=\$gl_cv_bitsizeof_${gltype}
26845    if test $result = unknown; then
26846                                                result=0
26847    fi
26848    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
26849    cat >>confdefs.h <<_ACEOF
26850#define BITSIZEOF_${GLTYPE} $result
26851_ACEOF
26852
26853    eval BITSIZEOF_${GLTYPE}=\$result
26854  done
26855
26856
26857  fi
26858
26859
26860
26861
26862
26863  for gltype in sig_atomic_t wchar_t wint_t ; do
26864    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
26865$as_echo_n "checking for bit size of $gltype... " >&6; }
26866if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
26867  $as_echo_n "(cached) " >&6
26868else
26869  if test "$cross_compiling" = yes; then
26870  # Depending upon the size, compute the lo and hi bounds.
26871cat >conftest.$ac_ext <<_ACEOF
26872/* confdefs.h.  */
26873_ACEOF
26874cat confdefs.h >>conftest.$ac_ext
26875cat >>conftest.$ac_ext <<_ACEOF
26876/* end confdefs.h.  */
26877
26878  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26879     included before <wchar.h>.  */
26880  #include <stddef.h>
26881  #include <signal.h>
26882  #if HAVE_WCHAR_H
26883  # include <stdio.h>
26884  # include <time.h>
26885  # include <wchar.h>
26886  #endif
26887
26888#include <limits.h>
26889int
26890main ()
26891{
26892static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
26893test_array [0] = 0
26894
26895  ;
26896  return 0;
26897}
26898_ACEOF
26899rm -f conftest.$ac_objext
26900if { (ac_try="$ac_compile"
26901case "(($ac_try" in
26902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26903  *) ac_try_echo=$ac_try;;
26904esac
26905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26906$as_echo "$ac_try_echo") >&5
26907  (eval "$ac_compile") 2>conftest.er1
26908  ac_status=$?
26909  grep -v '^ *+' conftest.er1 >conftest.err
26910  rm -f conftest.er1
26911  cat conftest.err >&5
26912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913  (exit $ac_status); } && {
26914	 test -z "$ac_c_werror_flag" ||
26915	 test ! -s conftest.err
26916       } && test -s conftest.$ac_objext; then
26917  ac_lo=0 ac_mid=0
26918  while :; do
26919    cat >conftest.$ac_ext <<_ACEOF
26920/* confdefs.h.  */
26921_ACEOF
26922cat confdefs.h >>conftest.$ac_ext
26923cat >>conftest.$ac_ext <<_ACEOF
26924/* end confdefs.h.  */
26925
26926  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26927     included before <wchar.h>.  */
26928  #include <stddef.h>
26929  #include <signal.h>
26930  #if HAVE_WCHAR_H
26931  # include <stdio.h>
26932  # include <time.h>
26933  # include <wchar.h>
26934  #endif
26935
26936#include <limits.h>
26937int
26938main ()
26939{
26940static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
26941test_array [0] = 0
26942
26943  ;
26944  return 0;
26945}
26946_ACEOF
26947rm -f conftest.$ac_objext
26948if { (ac_try="$ac_compile"
26949case "(($ac_try" in
26950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26951  *) ac_try_echo=$ac_try;;
26952esac
26953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26954$as_echo "$ac_try_echo") >&5
26955  (eval "$ac_compile") 2>conftest.er1
26956  ac_status=$?
26957  grep -v '^ *+' conftest.er1 >conftest.err
26958  rm -f conftest.er1
26959  cat conftest.err >&5
26960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961  (exit $ac_status); } && {
26962	 test -z "$ac_c_werror_flag" ||
26963	 test ! -s conftest.err
26964       } && test -s conftest.$ac_objext; then
26965  ac_hi=$ac_mid; break
26966else
26967  $as_echo "$as_me: failed program was:" >&5
26968sed 's/^/| /' conftest.$ac_ext >&5
26969
26970	ac_lo=`expr $ac_mid + 1`
26971			if test $ac_lo -le $ac_mid; then
26972			  ac_lo= ac_hi=
26973			  break
26974			fi
26975			ac_mid=`expr 2 '*' $ac_mid + 1`
26976fi
26977
26978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26979  done
26980else
26981  $as_echo "$as_me: failed program was:" >&5
26982sed 's/^/| /' conftest.$ac_ext >&5
26983
26984	cat >conftest.$ac_ext <<_ACEOF
26985/* confdefs.h.  */
26986_ACEOF
26987cat confdefs.h >>conftest.$ac_ext
26988cat >>conftest.$ac_ext <<_ACEOF
26989/* end confdefs.h.  */
26990
26991  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26992     included before <wchar.h>.  */
26993  #include <stddef.h>
26994  #include <signal.h>
26995  #if HAVE_WCHAR_H
26996  # include <stdio.h>
26997  # include <time.h>
26998  # include <wchar.h>
26999  #endif
27000
27001#include <limits.h>
27002int
27003main ()
27004{
27005static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
27006test_array [0] = 0
27007
27008  ;
27009  return 0;
27010}
27011_ACEOF
27012rm -f conftest.$ac_objext
27013if { (ac_try="$ac_compile"
27014case "(($ac_try" in
27015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27016  *) ac_try_echo=$ac_try;;
27017esac
27018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27019$as_echo "$ac_try_echo") >&5
27020  (eval "$ac_compile") 2>conftest.er1
27021  ac_status=$?
27022  grep -v '^ *+' conftest.er1 >conftest.err
27023  rm -f conftest.er1
27024  cat conftest.err >&5
27025  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026  (exit $ac_status); } && {
27027	 test -z "$ac_c_werror_flag" ||
27028	 test ! -s conftest.err
27029       } && test -s conftest.$ac_objext; then
27030  ac_hi=-1 ac_mid=-1
27031  while :; do
27032    cat >conftest.$ac_ext <<_ACEOF
27033/* confdefs.h.  */
27034_ACEOF
27035cat confdefs.h >>conftest.$ac_ext
27036cat >>conftest.$ac_ext <<_ACEOF
27037/* end confdefs.h.  */
27038
27039  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27040     included before <wchar.h>.  */
27041  #include <stddef.h>
27042  #include <signal.h>
27043  #if HAVE_WCHAR_H
27044  # include <stdio.h>
27045  # include <time.h>
27046  # include <wchar.h>
27047  #endif
27048
27049#include <limits.h>
27050int
27051main ()
27052{
27053static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
27054test_array [0] = 0
27055
27056  ;
27057  return 0;
27058}
27059_ACEOF
27060rm -f conftest.$ac_objext
27061if { (ac_try="$ac_compile"
27062case "(($ac_try" in
27063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27064  *) ac_try_echo=$ac_try;;
27065esac
27066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27067$as_echo "$ac_try_echo") >&5
27068  (eval "$ac_compile") 2>conftest.er1
27069  ac_status=$?
27070  grep -v '^ *+' conftest.er1 >conftest.err
27071  rm -f conftest.er1
27072  cat conftest.err >&5
27073  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074  (exit $ac_status); } && {
27075	 test -z "$ac_c_werror_flag" ||
27076	 test ! -s conftest.err
27077       } && test -s conftest.$ac_objext; then
27078  ac_lo=$ac_mid; break
27079else
27080  $as_echo "$as_me: failed program was:" >&5
27081sed 's/^/| /' conftest.$ac_ext >&5
27082
27083	ac_hi=`expr '(' $ac_mid ')' - 1`
27084			if test $ac_mid -le $ac_hi; then
27085			  ac_lo= ac_hi=
27086			  break
27087			fi
27088			ac_mid=`expr 2 '*' $ac_mid`
27089fi
27090
27091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27092  done
27093else
27094  $as_echo "$as_me: failed program was:" >&5
27095sed 's/^/| /' conftest.$ac_ext >&5
27096
27097	ac_lo= ac_hi=
27098fi
27099
27100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27101fi
27102
27103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27104# Binary search between lo and hi bounds.
27105while test "x$ac_lo" != "x$ac_hi"; do
27106  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27107  cat >conftest.$ac_ext <<_ACEOF
27108/* confdefs.h.  */
27109_ACEOF
27110cat confdefs.h >>conftest.$ac_ext
27111cat >>conftest.$ac_ext <<_ACEOF
27112/* end confdefs.h.  */
27113
27114  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27115     included before <wchar.h>.  */
27116  #include <stddef.h>
27117  #include <signal.h>
27118  #if HAVE_WCHAR_H
27119  # include <stdio.h>
27120  # include <time.h>
27121  # include <wchar.h>
27122  #endif
27123
27124#include <limits.h>
27125int
27126main ()
27127{
27128static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
27129test_array [0] = 0
27130
27131  ;
27132  return 0;
27133}
27134_ACEOF
27135rm -f conftest.$ac_objext
27136if { (ac_try="$ac_compile"
27137case "(($ac_try" in
27138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27139  *) ac_try_echo=$ac_try;;
27140esac
27141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27142$as_echo "$ac_try_echo") >&5
27143  (eval "$ac_compile") 2>conftest.er1
27144  ac_status=$?
27145  grep -v '^ *+' conftest.er1 >conftest.err
27146  rm -f conftest.er1
27147  cat conftest.err >&5
27148  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149  (exit $ac_status); } && {
27150	 test -z "$ac_c_werror_flag" ||
27151	 test ! -s conftest.err
27152       } && test -s conftest.$ac_objext; then
27153  ac_hi=$ac_mid
27154else
27155  $as_echo "$as_me: failed program was:" >&5
27156sed 's/^/| /' conftest.$ac_ext >&5
27157
27158	ac_lo=`expr '(' $ac_mid ')' + 1`
27159fi
27160
27161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27162done
27163case $ac_lo in
27164?*) result=$ac_lo;;
27165'') result=unknown ;;
27166esac
27167else
27168  cat >conftest.$ac_ext <<_ACEOF
27169/* confdefs.h.  */
27170_ACEOF
27171cat confdefs.h >>conftest.$ac_ext
27172cat >>conftest.$ac_ext <<_ACEOF
27173/* end confdefs.h.  */
27174
27175  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27176     included before <wchar.h>.  */
27177  #include <stddef.h>
27178  #include <signal.h>
27179  #if HAVE_WCHAR_H
27180  # include <stdio.h>
27181  # include <time.h>
27182  # include <wchar.h>
27183  #endif
27184
27185#include <limits.h>
27186static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
27187static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
27188#include <stdio.h>
27189#include <stdlib.h>
27190int
27191main ()
27192{
27193
27194  FILE *f = fopen ("conftest.val", "w");
27195  if (! f)
27196    return 1;
27197  if ((sizeof ($gltype) * CHAR_BIT) < 0)
27198    {
27199      long int i = longval ();
27200      if (i != (sizeof ($gltype) * CHAR_BIT))
27201	return 1;
27202      fprintf (f, "%ld", i);
27203    }
27204  else
27205    {
27206      unsigned long int i = ulongval ();
27207      if (i != (sizeof ($gltype) * CHAR_BIT))
27208	return 1;
27209      fprintf (f, "%lu", i);
27210    }
27211  /* Do not output a trailing newline, as this causes \r\n confusion
27212     on some platforms.  */
27213  return ferror (f) || fclose (f) != 0;
27214
27215  ;
27216  return 0;
27217}
27218_ACEOF
27219rm -f conftest$ac_exeext
27220if { (ac_try="$ac_link"
27221case "(($ac_try" in
27222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27223  *) ac_try_echo=$ac_try;;
27224esac
27225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27226$as_echo "$ac_try_echo") >&5
27227  (eval "$ac_link") 2>&5
27228  ac_status=$?
27229  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27231  { (case "(($ac_try" in
27232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27233  *) ac_try_echo=$ac_try;;
27234esac
27235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27236$as_echo "$ac_try_echo") >&5
27237  (eval "$ac_try") 2>&5
27238  ac_status=$?
27239  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240  (exit $ac_status); }; }; then
27241  result=`cat conftest.val`
27242else
27243  $as_echo "$as_me: program exited with status $ac_status" >&5
27244$as_echo "$as_me: failed program was:" >&5
27245sed 's/^/| /' conftest.$ac_ext >&5
27246
27247( exit $ac_status )
27248result=unknown
27249fi
27250rm -rf conftest.dSYM
27251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27252fi
27253rm -f conftest.val
27254       eval gl_cv_bitsizeof_${gltype}=\$result
27255
27256fi
27257ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
27258		 $as_echo "$as_val"'`
27259	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27260$as_echo "$ac_res" >&6; }
27261    eval result=\$gl_cv_bitsizeof_${gltype}
27262    if test $result = unknown; then
27263                                                result=0
27264    fi
27265    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27266    cat >>confdefs.h <<_ACEOF
27267#define BITSIZEOF_${GLTYPE} $result
27268_ACEOF
27269
27270    eval BITSIZEOF_${GLTYPE}=\$result
27271  done
27272
27273
27274
27275
27276
27277
27278
27279  for gltype in sig_atomic_t wchar_t wint_t ; do
27280    { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
27281$as_echo_n "checking whether $gltype is signed... " >&6; }
27282if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
27283  $as_echo_n "(cached) " >&6
27284else
27285  cat >conftest.$ac_ext <<_ACEOF
27286/* confdefs.h.  */
27287_ACEOF
27288cat confdefs.h >>conftest.$ac_ext
27289cat >>conftest.$ac_ext <<_ACEOF
27290/* end confdefs.h.  */
27291
27292  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27293     included before <wchar.h>.  */
27294  #include <stddef.h>
27295  #include <signal.h>
27296  #if HAVE_WCHAR_H
27297  # include <stdio.h>
27298  # include <time.h>
27299  # include <wchar.h>
27300  #endif
27301
27302            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
27303int
27304main ()
27305{
27306
27307  ;
27308  return 0;
27309}
27310_ACEOF
27311rm -f conftest.$ac_objext
27312if { (ac_try="$ac_compile"
27313case "(($ac_try" in
27314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315  *) ac_try_echo=$ac_try;;
27316esac
27317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27318$as_echo "$ac_try_echo") >&5
27319  (eval "$ac_compile") 2>conftest.er1
27320  ac_status=$?
27321  grep -v '^ *+' conftest.er1 >conftest.err
27322  rm -f conftest.er1
27323  cat conftest.err >&5
27324  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325  (exit $ac_status); } && {
27326	 test -z "$ac_c_werror_flag" ||
27327	 test ! -s conftest.err
27328       } && test -s conftest.$ac_objext; then
27329  result=yes
27330else
27331  $as_echo "$as_me: failed program was:" >&5
27332sed 's/^/| /' conftest.$ac_ext >&5
27333
27334	result=no
27335fi
27336
27337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27338       eval gl_cv_type_${gltype}_signed=\$result
27339
27340fi
27341ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
27342		 $as_echo "$as_val"'`
27343	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27344$as_echo "$ac_res" >&6; }
27345    eval result=\$gl_cv_type_${gltype}_signed
27346    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27347    if test "$result" = yes; then
27348      cat >>confdefs.h <<_ACEOF
27349#define HAVE_SIGNED_${GLTYPE} 1
27350_ACEOF
27351
27352      eval HAVE_SIGNED_${GLTYPE}=1
27353    else
27354      eval HAVE_SIGNED_${GLTYPE}=0
27355    fi
27356  done
27357
27358
27359  gl_cv_type_ptrdiff_t_signed=yes
27360  gl_cv_type_size_t_signed=no
27361  if test $APPLE_UNIVERSAL_BUILD = 0; then
27362
27363
27364
27365
27366  for gltype in ptrdiff_t size_t ; do
27367    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
27368$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
27369if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
27370  $as_echo_n "(cached) " >&6
27371else
27372  eval gl_cv_type_${gltype}_suffix=no
27373       eval result=\$gl_cv_type_${gltype}_signed
27374       if test "$result" = yes; then
27375         glsufu=
27376       else
27377         glsufu=u
27378       fi
27379       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
27380         case $glsuf in
27381           '')  gltype1='int';;
27382           l)   gltype1='long int';;
27383           ll)  gltype1='long long int';;
27384           i64) gltype1='__int64';;
27385           u)   gltype1='unsigned int';;
27386           ul)  gltype1='unsigned long int';;
27387           ull) gltype1='unsigned long long int';;
27388           ui64)gltype1='unsigned __int64';;
27389         esac
27390         cat >conftest.$ac_ext <<_ACEOF
27391/* confdefs.h.  */
27392_ACEOF
27393cat confdefs.h >>conftest.$ac_ext
27394cat >>conftest.$ac_ext <<_ACEOF
27395/* end confdefs.h.  */
27396
27397  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27398     included before <wchar.h>.  */
27399  #include <stddef.h>
27400  #include <signal.h>
27401  #if HAVE_WCHAR_H
27402  # include <stdio.h>
27403  # include <time.h>
27404  # include <wchar.h>
27405  #endif
27406
27407              extern $gltype foo;
27408              extern $gltype1 foo;
27409int
27410main ()
27411{
27412
27413  ;
27414  return 0;
27415}
27416_ACEOF
27417rm -f conftest.$ac_objext
27418if { (ac_try="$ac_compile"
27419case "(($ac_try" in
27420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421  *) ac_try_echo=$ac_try;;
27422esac
27423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27424$as_echo "$ac_try_echo") >&5
27425  (eval "$ac_compile") 2>conftest.er1
27426  ac_status=$?
27427  grep -v '^ *+' conftest.er1 >conftest.err
27428  rm -f conftest.er1
27429  cat conftest.err >&5
27430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431  (exit $ac_status); } && {
27432	 test -z "$ac_c_werror_flag" ||
27433	 test ! -s conftest.err
27434       } && test -s conftest.$ac_objext; then
27435  eval gl_cv_type_${gltype}_suffix=\$glsuf
27436else
27437  $as_echo "$as_me: failed program was:" >&5
27438sed 's/^/| /' conftest.$ac_ext >&5
27439
27440
27441fi
27442
27443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27444         eval result=\$gl_cv_type_${gltype}_suffix
27445         test "$result" != no && break
27446       done
27447fi
27448ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
27449		 $as_echo "$as_val"'`
27450	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27451$as_echo "$ac_res" >&6; }
27452    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27453    eval result=\$gl_cv_type_${gltype}_suffix
27454    test "$result" = no && result=
27455    eval ${GLTYPE}_SUFFIX=\$result
27456    cat >>confdefs.h <<_ACEOF
27457#define ${GLTYPE}_SUFFIX $result
27458_ACEOF
27459
27460  done
27461
27462
27463  fi
27464
27465
27466
27467
27468
27469  for gltype in sig_atomic_t wchar_t wint_t ; do
27470    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
27471$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
27472if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
27473  $as_echo_n "(cached) " >&6
27474else
27475  eval gl_cv_type_${gltype}_suffix=no
27476       eval result=\$gl_cv_type_${gltype}_signed
27477       if test "$result" = yes; then
27478         glsufu=
27479       else
27480         glsufu=u
27481       fi
27482       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
27483         case $glsuf in
27484           '')  gltype1='int';;
27485           l)   gltype1='long int';;
27486           ll)  gltype1='long long int';;
27487           i64) gltype1='__int64';;
27488           u)   gltype1='unsigned int';;
27489           ul)  gltype1='unsigned long int';;
27490           ull) gltype1='unsigned long long int';;
27491           ui64)gltype1='unsigned __int64';;
27492         esac
27493         cat >conftest.$ac_ext <<_ACEOF
27494/* confdefs.h.  */
27495_ACEOF
27496cat confdefs.h >>conftest.$ac_ext
27497cat >>conftest.$ac_ext <<_ACEOF
27498/* end confdefs.h.  */
27499
27500  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27501     included before <wchar.h>.  */
27502  #include <stddef.h>
27503  #include <signal.h>
27504  #if HAVE_WCHAR_H
27505  # include <stdio.h>
27506  # include <time.h>
27507  # include <wchar.h>
27508  #endif
27509
27510              extern $gltype foo;
27511              extern $gltype1 foo;
27512int
27513main ()
27514{
27515
27516  ;
27517  return 0;
27518}
27519_ACEOF
27520rm -f conftest.$ac_objext
27521if { (ac_try="$ac_compile"
27522case "(($ac_try" in
27523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27524  *) ac_try_echo=$ac_try;;
27525esac
27526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27527$as_echo "$ac_try_echo") >&5
27528  (eval "$ac_compile") 2>conftest.er1
27529  ac_status=$?
27530  grep -v '^ *+' conftest.er1 >conftest.err
27531  rm -f conftest.er1
27532  cat conftest.err >&5
27533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534  (exit $ac_status); } && {
27535	 test -z "$ac_c_werror_flag" ||
27536	 test ! -s conftest.err
27537       } && test -s conftest.$ac_objext; then
27538  eval gl_cv_type_${gltype}_suffix=\$glsuf
27539else
27540  $as_echo "$as_me: failed program was:" >&5
27541sed 's/^/| /' conftest.$ac_ext >&5
27542
27543
27544fi
27545
27546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27547         eval result=\$gl_cv_type_${gltype}_suffix
27548         test "$result" != no && break
27549       done
27550fi
27551ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
27552		 $as_echo "$as_val"'`
27553	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27554$as_echo "$ac_res" >&6; }
27555    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27556    eval result=\$gl_cv_type_${gltype}_suffix
27557    test "$result" = no && result=
27558    eval ${GLTYPE}_SUFFIX=\$result
27559    cat >>confdefs.h <<_ACEOF
27560#define ${GLTYPE}_SUFFIX $result
27561_ACEOF
27562
27563  done
27564
27565
27566
27567          if test $BITSIZEOF_WINT_T -lt 32; then
27568    BITSIZEOF_WINT_T=32
27569  fi
27570
27571    STDINT_H=stdint.h
27572  fi
27573
27574   if test -n "$STDINT_H"; then
27575  GL_GENERATE_STDINT_H_TRUE=
27576  GL_GENERATE_STDINT_H_FALSE='#'
27577else
27578  GL_GENERATE_STDINT_H_TRUE='#'
27579  GL_GENERATE_STDINT_H_FALSE=
27580fi
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590      { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
27591$as_echo_n "checking whether strdup is declared... " >&6; }
27592if test "${ac_cv_have_decl_strdup+set}" = set; then
27593  $as_echo_n "(cached) " >&6
27594else
27595  cat >conftest.$ac_ext <<_ACEOF
27596/* confdefs.h.  */
27597_ACEOF
27598cat confdefs.h >>conftest.$ac_ext
27599cat >>conftest.$ac_ext <<_ACEOF
27600/* end confdefs.h.  */
27601$ac_includes_default
27602int
27603main ()
27604{
27605#ifndef strdup
27606  (void) strdup;
27607#endif
27608
27609  ;
27610  return 0;
27611}
27612_ACEOF
27613rm -f conftest.$ac_objext
27614if { (ac_try="$ac_compile"
27615case "(($ac_try" in
27616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617  *) ac_try_echo=$ac_try;;
27618esac
27619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27620$as_echo "$ac_try_echo") >&5
27621  (eval "$ac_compile") 2>conftest.er1
27622  ac_status=$?
27623  grep -v '^ *+' conftest.er1 >conftest.err
27624  rm -f conftest.er1
27625  cat conftest.err >&5
27626  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627  (exit $ac_status); } && {
27628	 test -z "$ac_c_werror_flag" ||
27629	 test ! -s conftest.err
27630       } && test -s conftest.$ac_objext; then
27631  ac_cv_have_decl_strdup=yes
27632else
27633  $as_echo "$as_me: failed program was:" >&5
27634sed 's/^/| /' conftest.$ac_ext >&5
27635
27636	ac_cv_have_decl_strdup=no
27637fi
27638
27639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27640fi
27641{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
27642$as_echo "$ac_cv_have_decl_strdup" >&6; }
27643if test "x$ac_cv_have_decl_strdup" = x""yes; then
27644
27645cat >>confdefs.h <<_ACEOF
27646#define HAVE_DECL_STRDUP 1
27647_ACEOF
27648
27649
27650else
27651  cat >>confdefs.h <<_ACEOF
27652#define HAVE_DECL_STRDUP 0
27653_ACEOF
27654
27655
27656fi
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671     if test $gl_cv_have_include_next = yes; then
27672       gl_cv_next_string_h='<'string.h'>'
27673     else
27674       { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
27675$as_echo_n "checking absolute name of <string.h>... " >&6; }
27676if test "${gl_cv_next_string_h+set}" = set; then
27677  $as_echo_n "(cached) " >&6
27678else
27679
27680
27681
27682  cat >conftest.$ac_ext <<_ACEOF
27683/* confdefs.h.  */
27684_ACEOF
27685cat confdefs.h >>conftest.$ac_ext
27686cat >>conftest.$ac_ext <<_ACEOF
27687/* end confdefs.h.  */
27688#include <string.h>
27689_ACEOF
27690                case "$host_os" in
27691    aix*) gl_absname_cpp="$ac_cpp -C" ;;
27692    *)    gl_absname_cpp="$ac_cpp" ;;
27693  esac
27694
27695  case "$host_os" in
27696    mingw*)
27697                                          gl_dirsep_regex='[/\\]'
27698      ;;
27699    *)
27700      gl_dirsep_regex='\/'
27701      ;;
27702  esac
27703      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27704  gl_header_literal_regex=`echo 'string.h' \
27705                           | sed -e "$gl_make_literal_regex_sed"`
27706  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27707      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27708      s|^/[^/]|//&|
27709      p
27710      q
27711    }'
27712
27713        gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27714  sed -n "$gl_absolute_header_sed"`
27715
27716           gl_header=$gl_cv_absolute_string_h
27717           gl_cv_next_string_h='"'$gl_header'"'
27718
27719
27720fi
27721{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
27722$as_echo "$gl_cv_next_string_h" >&6; }
27723     fi
27724     NEXT_STRING_H=$gl_cv_next_string_h
27725
27726     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27727       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27728       gl_next_as_first_directive='<'string.h'>'
27729     else
27730       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27731       gl_next_as_first_directive=$gl_cv_next_string_h
27732     fi
27733     NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760  for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
27761    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27762    { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
27763$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27764if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
27765  $as_echo_n "(cached) " >&6
27766else
27767  cat >conftest.$ac_ext <<_ACEOF
27768/* confdefs.h.  */
27769_ACEOF
27770cat confdefs.h >>conftest.$ac_ext
27771cat >>conftest.$ac_ext <<_ACEOF
27772/* end confdefs.h.  */
27773#include <string.h>
27774
27775int
27776main ()
27777{
27778#undef $gl_func
27779  (void) $gl_func;
27780  ;
27781  return 0;
27782}
27783_ACEOF
27784rm -f conftest.$ac_objext
27785if { (ac_try="$ac_compile"
27786case "(($ac_try" in
27787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788  *) ac_try_echo=$ac_try;;
27789esac
27790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27791$as_echo "$ac_try_echo") >&5
27792  (eval "$ac_compile") 2>conftest.er1
27793  ac_status=$?
27794  grep -v '^ *+' conftest.er1 >conftest.err
27795  rm -f conftest.er1
27796  cat conftest.err >&5
27797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798  (exit $ac_status); } && {
27799	 test -z "$ac_c_werror_flag" ||
27800	 test ! -s conftest.err
27801       } && test -s conftest.$ac_objext; then
27802  eval "$as_gl_Symbol=yes"
27803else
27804  $as_echo "$as_me: failed program was:" >&5
27805sed 's/^/| /' conftest.$ac_ext >&5
27806
27807	eval "$as_gl_Symbol=no"
27808fi
27809
27810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27811fi
27812ac_res=`eval 'as_val=${'$as_gl_Symbol'}
27813		 $as_echo "$as_val"'`
27814	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27815$as_echo "$ac_res" >&6; }
27816    as_val=`eval 'as_val=${'$as_gl_Symbol'}
27817		 $as_echo "$as_val"'`
27818   if test "x$as_val" = x""yes; then
27819  cat >>confdefs.h <<_ACEOF
27820#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27821_ACEOF
27822
27823                     eval ac_cv_have_decl_$gl_func=yes
27824fi
27825
27826      done
27827
27828
27829
27830      { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
27831$as_echo_n "checking whether strndup is declared... " >&6; }
27832if test "${ac_cv_have_decl_strndup+set}" = set; then
27833  $as_echo_n "(cached) " >&6
27834else
27835  cat >conftest.$ac_ext <<_ACEOF
27836/* confdefs.h.  */
27837_ACEOF
27838cat confdefs.h >>conftest.$ac_ext
27839cat >>conftest.$ac_ext <<_ACEOF
27840/* end confdefs.h.  */
27841$ac_includes_default
27842int
27843main ()
27844{
27845#ifndef strndup
27846  (void) strndup;
27847#endif
27848
27849  ;
27850  return 0;
27851}
27852_ACEOF
27853rm -f conftest.$ac_objext
27854if { (ac_try="$ac_compile"
27855case "(($ac_try" in
27856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857  *) ac_try_echo=$ac_try;;
27858esac
27859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27860$as_echo "$ac_try_echo") >&5
27861  (eval "$ac_compile") 2>conftest.er1
27862  ac_status=$?
27863  grep -v '^ *+' conftest.er1 >conftest.err
27864  rm -f conftest.er1
27865  cat conftest.err >&5
27866  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867  (exit $ac_status); } && {
27868	 test -z "$ac_c_werror_flag" ||
27869	 test ! -s conftest.err
27870       } && test -s conftest.$ac_objext; then
27871  ac_cv_have_decl_strndup=yes
27872else
27873  $as_echo "$as_me: failed program was:" >&5
27874sed 's/^/| /' conftest.$ac_ext >&5
27875
27876	ac_cv_have_decl_strndup=no
27877fi
27878
27879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27880fi
27881{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
27882$as_echo "$ac_cv_have_decl_strndup" >&6; }
27883if test "x$ac_cv_have_decl_strndup" = x""yes; then
27884
27885cat >>confdefs.h <<_ACEOF
27886#define HAVE_DECL_STRNDUP 1
27887_ACEOF
27888
27889
27890else
27891  cat >>confdefs.h <<_ACEOF
27892#define HAVE_DECL_STRNDUP 0
27893_ACEOF
27894
27895
27896fi
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907      { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
27908$as_echo_n "checking whether strnlen is declared... " >&6; }
27909if test "${ac_cv_have_decl_strnlen+set}" = set; then
27910  $as_echo_n "(cached) " >&6
27911else
27912  cat >conftest.$ac_ext <<_ACEOF
27913/* confdefs.h.  */
27914_ACEOF
27915cat confdefs.h >>conftest.$ac_ext
27916cat >>conftest.$ac_ext <<_ACEOF
27917/* end confdefs.h.  */
27918$ac_includes_default
27919int
27920main ()
27921{
27922#ifndef strnlen
27923  (void) strnlen;
27924#endif
27925
27926  ;
27927  return 0;
27928}
27929_ACEOF
27930rm -f conftest.$ac_objext
27931if { (ac_try="$ac_compile"
27932case "(($ac_try" in
27933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934  *) ac_try_echo=$ac_try;;
27935esac
27936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27937$as_echo "$ac_try_echo") >&5
27938  (eval "$ac_compile") 2>conftest.er1
27939  ac_status=$?
27940  grep -v '^ *+' conftest.er1 >conftest.err
27941  rm -f conftest.er1
27942  cat conftest.err >&5
27943  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944  (exit $ac_status); } && {
27945	 test -z "$ac_c_werror_flag" ||
27946	 test ! -s conftest.err
27947       } && test -s conftest.$ac_objext; then
27948  ac_cv_have_decl_strnlen=yes
27949else
27950  $as_echo "$as_me: failed program was:" >&5
27951sed 's/^/| /' conftest.$ac_ext >&5
27952
27953	ac_cv_have_decl_strnlen=no
27954fi
27955
27956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27957fi
27958{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
27959$as_echo "$ac_cv_have_decl_strnlen" >&6; }
27960if test "x$ac_cv_have_decl_strnlen" = x""yes; then
27961
27962cat >>confdefs.h <<_ACEOF
27963#define HAVE_DECL_STRNLEN 1
27964_ACEOF
27965
27966
27967else
27968  cat >>confdefs.h <<_ACEOF
27969#define HAVE_DECL_STRNLEN 0
27970_ACEOF
27971
27972
27973fi
27974
27975
27976
27977
27978
27979{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
27980$as_echo_n "checking for pid_t... " >&6; }
27981if test "${ac_cv_type_pid_t+set}" = set; then
27982  $as_echo_n "(cached) " >&6
27983else
27984  ac_cv_type_pid_t=no
27985cat >conftest.$ac_ext <<_ACEOF
27986/* confdefs.h.  */
27987_ACEOF
27988cat confdefs.h >>conftest.$ac_ext
27989cat >>conftest.$ac_ext <<_ACEOF
27990/* end confdefs.h.  */
27991$ac_includes_default
27992int
27993main ()
27994{
27995if (sizeof (pid_t))
27996       return 0;
27997  ;
27998  return 0;
27999}
28000_ACEOF
28001rm -f conftest.$ac_objext
28002if { (ac_try="$ac_compile"
28003case "(($ac_try" in
28004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28005  *) ac_try_echo=$ac_try;;
28006esac
28007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28008$as_echo "$ac_try_echo") >&5
28009  (eval "$ac_compile") 2>conftest.er1
28010  ac_status=$?
28011  grep -v '^ *+' conftest.er1 >conftest.err
28012  rm -f conftest.er1
28013  cat conftest.err >&5
28014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015  (exit $ac_status); } && {
28016	 test -z "$ac_c_werror_flag" ||
28017	 test ! -s conftest.err
28018       } && test -s conftest.$ac_objext; then
28019  cat >conftest.$ac_ext <<_ACEOF
28020/* confdefs.h.  */
28021_ACEOF
28022cat confdefs.h >>conftest.$ac_ext
28023cat >>conftest.$ac_ext <<_ACEOF
28024/* end confdefs.h.  */
28025$ac_includes_default
28026int
28027main ()
28028{
28029if (sizeof ((pid_t)))
28030	  return 0;
28031  ;
28032  return 0;
28033}
28034_ACEOF
28035rm -f conftest.$ac_objext
28036if { (ac_try="$ac_compile"
28037case "(($ac_try" in
28038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28039  *) ac_try_echo=$ac_try;;
28040esac
28041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28042$as_echo "$ac_try_echo") >&5
28043  (eval "$ac_compile") 2>conftest.er1
28044  ac_status=$?
28045  grep -v '^ *+' conftest.er1 >conftest.err
28046  rm -f conftest.er1
28047  cat conftest.err >&5
28048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049  (exit $ac_status); } && {
28050	 test -z "$ac_c_werror_flag" ||
28051	 test ! -s conftest.err
28052       } && test -s conftest.$ac_objext; then
28053  :
28054else
28055  $as_echo "$as_me: failed program was:" >&5
28056sed 's/^/| /' conftest.$ac_ext >&5
28057
28058	ac_cv_type_pid_t=yes
28059fi
28060
28061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28062else
28063  $as_echo "$as_me: failed program was:" >&5
28064sed 's/^/| /' conftest.$ac_ext >&5
28065
28066
28067fi
28068
28069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28070fi
28071{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28072$as_echo "$ac_cv_type_pid_t" >&6; }
28073if test "x$ac_cv_type_pid_t" = x""yes; then
28074  :
28075else
28076
28077cat >>confdefs.h <<_ACEOF
28078#define pid_t int
28079_ACEOF
28080
28081fi
28082
28083{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
28084$as_echo_n "checking for mode_t... " >&6; }
28085if test "${ac_cv_type_mode_t+set}" = set; then
28086  $as_echo_n "(cached) " >&6
28087else
28088  ac_cv_type_mode_t=no
28089cat >conftest.$ac_ext <<_ACEOF
28090/* confdefs.h.  */
28091_ACEOF
28092cat confdefs.h >>conftest.$ac_ext
28093cat >>conftest.$ac_ext <<_ACEOF
28094/* end confdefs.h.  */
28095$ac_includes_default
28096int
28097main ()
28098{
28099if (sizeof (mode_t))
28100       return 0;
28101  ;
28102  return 0;
28103}
28104_ACEOF
28105rm -f conftest.$ac_objext
28106if { (ac_try="$ac_compile"
28107case "(($ac_try" in
28108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109  *) ac_try_echo=$ac_try;;
28110esac
28111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28112$as_echo "$ac_try_echo") >&5
28113  (eval "$ac_compile") 2>conftest.er1
28114  ac_status=$?
28115  grep -v '^ *+' conftest.er1 >conftest.err
28116  rm -f conftest.er1
28117  cat conftest.err >&5
28118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119  (exit $ac_status); } && {
28120	 test -z "$ac_c_werror_flag" ||
28121	 test ! -s conftest.err
28122       } && test -s conftest.$ac_objext; then
28123  cat >conftest.$ac_ext <<_ACEOF
28124/* confdefs.h.  */
28125_ACEOF
28126cat confdefs.h >>conftest.$ac_ext
28127cat >>conftest.$ac_ext <<_ACEOF
28128/* end confdefs.h.  */
28129$ac_includes_default
28130int
28131main ()
28132{
28133if (sizeof ((mode_t)))
28134	  return 0;
28135  ;
28136  return 0;
28137}
28138_ACEOF
28139rm -f conftest.$ac_objext
28140if { (ac_try="$ac_compile"
28141case "(($ac_try" in
28142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143  *) ac_try_echo=$ac_try;;
28144esac
28145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28146$as_echo "$ac_try_echo") >&5
28147  (eval "$ac_compile") 2>conftest.er1
28148  ac_status=$?
28149  grep -v '^ *+' conftest.er1 >conftest.err
28150  rm -f conftest.er1
28151  cat conftest.err >&5
28152  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153  (exit $ac_status); } && {
28154	 test -z "$ac_c_werror_flag" ||
28155	 test ! -s conftest.err
28156       } && test -s conftest.$ac_objext; then
28157  :
28158else
28159  $as_echo "$as_me: failed program was:" >&5
28160sed 's/^/| /' conftest.$ac_ext >&5
28161
28162	ac_cv_type_mode_t=yes
28163fi
28164
28165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28166else
28167  $as_echo "$as_me: failed program was:" >&5
28168sed 's/^/| /' conftest.$ac_ext >&5
28169
28170
28171fi
28172
28173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28174fi
28175{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28176$as_echo "$ac_cv_type_mode_t" >&6; }
28177if test "x$ac_cv_type_mode_t" = x""yes; then
28178  :
28179else
28180
28181cat >>confdefs.h <<_ACEOF
28182#define mode_t int
28183_ACEOF
28184
28185fi
28186
28187
28188
28189    WINDOWS_64_BIT_OFF_T=0
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203     if test $gl_cv_have_include_next = yes; then
28204       gl_cv_next_sys_types_h='<'sys/types.h'>'
28205     else
28206       { $as_echo "$as_me:$LINENO: checking absolute name of <sys/types.h>" >&5
28207$as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
28208if test "${gl_cv_next_sys_types_h+set}" = set; then
28209  $as_echo_n "(cached) " >&6
28210else
28211
28212
28213
28214  cat >conftest.$ac_ext <<_ACEOF
28215/* confdefs.h.  */
28216_ACEOF
28217cat confdefs.h >>conftest.$ac_ext
28218cat >>conftest.$ac_ext <<_ACEOF
28219/* end confdefs.h.  */
28220#include <sys/types.h>
28221_ACEOF
28222                case "$host_os" in
28223    aix*) gl_absname_cpp="$ac_cpp -C" ;;
28224    *)    gl_absname_cpp="$ac_cpp" ;;
28225  esac
28226
28227  case "$host_os" in
28228    mingw*)
28229                                          gl_dirsep_regex='[/\\]'
28230      ;;
28231    *)
28232      gl_dirsep_regex='\/'
28233      ;;
28234  esac
28235      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28236  gl_header_literal_regex=`echo 'sys/types.h' \
28237                           | sed -e "$gl_make_literal_regex_sed"`
28238  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28239      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28240      s|^/[^/]|//&|
28241      p
28242      q
28243    }'
28244
28245        gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28246  sed -n "$gl_absolute_header_sed"`
28247
28248           gl_header=$gl_cv_absolute_sys_types_h
28249           gl_cv_next_sys_types_h='"'$gl_header'"'
28250
28251
28252fi
28253{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_types_h" >&5
28254$as_echo "$gl_cv_next_sys_types_h" >&6; }
28255     fi
28256     NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
28257
28258     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28259       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28260       gl_next_as_first_directive='<'sys/types.h'>'
28261     else
28262       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28263       gl_next_as_first_directive=$gl_cv_next_sys_types_h
28264     fi
28265     NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
28266
28267
28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278  GNULIB_MKTIME=0;
28279  GNULIB_NANOSLEEP=0;
28280  GNULIB_STRPTIME=0;
28281  GNULIB_TIMEGM=0;
28282  GNULIB_TIME_R=0;
28283    HAVE_DECL_LOCALTIME_R=1;
28284  HAVE_NANOSLEEP=1;
28285  HAVE_STRPTIME=1;
28286  HAVE_TIMEGM=1;
28287        REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
28288  REPLACE_MKTIME=GNULIB_PORTCHECK;
28289  REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
28290  REPLACE_TIMEGM=GNULIB_PORTCHECK;
28291
28292      : ${GNULIB_GETTIMEOFDAY=0};
28293        REPLACE_GMTIME=0;
28294  REPLACE_LOCALTIME=0;
28295
28296
28297
28298  :
28299
28300
28301
28302
28303
28304  { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
28305$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
28306if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
28307  $as_echo_n "(cached) " >&6
28308else
28309  cat >conftest.$ac_ext <<_ACEOF
28310/* confdefs.h.  */
28311_ACEOF
28312cat confdefs.h >>conftest.$ac_ext
28313cat >>conftest.$ac_ext <<_ACEOF
28314/* end confdefs.h.  */
28315#include <time.h>
28316
28317int
28318main ()
28319{
28320static struct timespec x; x.tv_sec = x.tv_nsec;
28321  ;
28322  return 0;
28323}
28324_ACEOF
28325rm -f conftest.$ac_objext
28326if { (ac_try="$ac_compile"
28327case "(($ac_try" in
28328  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28329  *) ac_try_echo=$ac_try;;
28330esac
28331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28332$as_echo "$ac_try_echo") >&5
28333  (eval "$ac_compile") 2>conftest.er1
28334  ac_status=$?
28335  grep -v '^ *+' conftest.er1 >conftest.err
28336  rm -f conftest.er1
28337  cat conftest.err >&5
28338  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339  (exit $ac_status); } && {
28340	 test -z "$ac_c_werror_flag" ||
28341	 test ! -s conftest.err
28342       } && test -s conftest.$ac_objext; then
28343  gl_cv_sys_struct_timespec_in_time_h=yes
28344else
28345  $as_echo "$as_me: failed program was:" >&5
28346sed 's/^/| /' conftest.$ac_ext >&5
28347
28348	gl_cv_sys_struct_timespec_in_time_h=no
28349fi
28350
28351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28352fi
28353{ $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
28354$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
28355
28356  TIME_H_DEFINES_STRUCT_TIMESPEC=0
28357  SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
28358  PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
28359  if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
28360    TIME_H_DEFINES_STRUCT_TIMESPEC=1
28361  else
28362    { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
28363$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
28364if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
28365  $as_echo_n "(cached) " >&6
28366else
28367  cat >conftest.$ac_ext <<_ACEOF
28368/* confdefs.h.  */
28369_ACEOF
28370cat confdefs.h >>conftest.$ac_ext
28371cat >>conftest.$ac_ext <<_ACEOF
28372/* end confdefs.h.  */
28373#include <sys/time.h>
28374
28375int
28376main ()
28377{
28378static struct timespec x; x.tv_sec = x.tv_nsec;
28379  ;
28380  return 0;
28381}
28382_ACEOF
28383rm -f conftest.$ac_objext
28384if { (ac_try="$ac_compile"
28385case "(($ac_try" in
28386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28387  *) ac_try_echo=$ac_try;;
28388esac
28389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28390$as_echo "$ac_try_echo") >&5
28391  (eval "$ac_compile") 2>conftest.er1
28392  ac_status=$?
28393  grep -v '^ *+' conftest.er1 >conftest.err
28394  rm -f conftest.er1
28395  cat conftest.err >&5
28396  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397  (exit $ac_status); } && {
28398	 test -z "$ac_c_werror_flag" ||
28399	 test ! -s conftest.err
28400       } && test -s conftest.$ac_objext; then
28401  gl_cv_sys_struct_timespec_in_sys_time_h=yes
28402else
28403  $as_echo "$as_me: failed program was:" >&5
28404sed 's/^/| /' conftest.$ac_ext >&5
28405
28406	gl_cv_sys_struct_timespec_in_sys_time_h=no
28407fi
28408
28409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28410fi
28411{ $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
28412$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
28413    if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
28414      SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
28415    else
28416      { $as_echo "$as_me:$LINENO: checking for struct timespec in <pthread.h>" >&5
28417$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
28418if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then
28419  $as_echo_n "(cached) " >&6
28420else
28421  cat >conftest.$ac_ext <<_ACEOF
28422/* confdefs.h.  */
28423_ACEOF
28424cat confdefs.h >>conftest.$ac_ext
28425cat >>conftest.$ac_ext <<_ACEOF
28426/* end confdefs.h.  */
28427#include <pthread.h>
28428
28429int
28430main ()
28431{
28432static struct timespec x; x.tv_sec = x.tv_nsec;
28433  ;
28434  return 0;
28435}
28436_ACEOF
28437rm -f conftest.$ac_objext
28438if { (ac_try="$ac_compile"
28439case "(($ac_try" in
28440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28441  *) ac_try_echo=$ac_try;;
28442esac
28443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28444$as_echo "$ac_try_echo") >&5
28445  (eval "$ac_compile") 2>conftest.er1
28446  ac_status=$?
28447  grep -v '^ *+' conftest.er1 >conftest.err
28448  rm -f conftest.er1
28449  cat conftest.err >&5
28450  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451  (exit $ac_status); } && {
28452	 test -z "$ac_c_werror_flag" ||
28453	 test ! -s conftest.err
28454       } && test -s conftest.$ac_objext; then
28455  gl_cv_sys_struct_timespec_in_pthread_h=yes
28456else
28457  $as_echo "$as_me: failed program was:" >&5
28458sed 's/^/| /' conftest.$ac_ext >&5
28459
28460	gl_cv_sys_struct_timespec_in_pthread_h=no
28461fi
28462
28463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28464fi
28465{ $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
28466$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
28467      if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
28468        PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
28469      fi
28470    fi
28471  fi
28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487     if test $gl_cv_have_include_next = yes; then
28488       gl_cv_next_time_h='<'time.h'>'
28489     else
28490       { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
28491$as_echo_n "checking absolute name of <time.h>... " >&6; }
28492if test "${gl_cv_next_time_h+set}" = set; then
28493  $as_echo_n "(cached) " >&6
28494else
28495
28496
28497
28498  cat >conftest.$ac_ext <<_ACEOF
28499/* confdefs.h.  */
28500_ACEOF
28501cat confdefs.h >>conftest.$ac_ext
28502cat >>conftest.$ac_ext <<_ACEOF
28503/* end confdefs.h.  */
28504#include <time.h>
28505_ACEOF
28506                case "$host_os" in
28507    aix*) gl_absname_cpp="$ac_cpp -C" ;;
28508    *)    gl_absname_cpp="$ac_cpp" ;;
28509  esac
28510
28511  case "$host_os" in
28512    mingw*)
28513                                          gl_dirsep_regex='[/\\]'
28514      ;;
28515    *)
28516      gl_dirsep_regex='\/'
28517      ;;
28518  esac
28519      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28520  gl_header_literal_regex=`echo 'time.h' \
28521                           | sed -e "$gl_make_literal_regex_sed"`
28522  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28523      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28524      s|^/[^/]|//&|
28525      p
28526      q
28527    }'
28528
28529        gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28530  sed -n "$gl_absolute_header_sed"`
28531
28532           gl_header=$gl_cv_absolute_time_h
28533           gl_cv_next_time_h='"'$gl_header'"'
28534
28535
28536fi
28537{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
28538$as_echo "$gl_cv_next_time_h" >&6; }
28539     fi
28540     NEXT_TIME_H=$gl_cv_next_time_h
28541
28542     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28543       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28544       gl_next_as_first_directive='<'time.h'>'
28545     else
28546       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28547       gl_next_as_first_directive=$gl_cv_next_time_h
28548     fi
28549     NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
28550
28551
28552
28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
28576$as_echo_n "checking for wint_t... " >&6; }
28577if test "${gt_cv_c_wint_t+set}" = set; then
28578  $as_echo_n "(cached) " >&6
28579else
28580  cat >conftest.$ac_ext <<_ACEOF
28581/* confdefs.h.  */
28582_ACEOF
28583cat confdefs.h >>conftest.$ac_ext
28584cat >>conftest.$ac_ext <<_ACEOF
28585/* end confdefs.h.  */
28586
28587/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28588   <wchar.h>.
28589   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
28590   before <wchar.h>.  */
28591#include <stddef.h>
28592#include <stdio.h>
28593#include <time.h>
28594#include <wchar.h>
28595            wint_t foo = (wchar_t)'\0';
28596int
28597main ()
28598{
28599
28600  ;
28601  return 0;
28602}
28603_ACEOF
28604rm -f conftest.$ac_objext
28605if { (ac_try="$ac_compile"
28606case "(($ac_try" in
28607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608  *) ac_try_echo=$ac_try;;
28609esac
28610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28611$as_echo "$ac_try_echo") >&5
28612  (eval "$ac_compile") 2>conftest.er1
28613  ac_status=$?
28614  grep -v '^ *+' conftest.er1 >conftest.err
28615  rm -f conftest.er1
28616  cat conftest.err >&5
28617  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618  (exit $ac_status); } && {
28619	 test -z "$ac_c_werror_flag" ||
28620	 test ! -s conftest.err
28621       } && test -s conftest.$ac_objext; then
28622  gt_cv_c_wint_t=yes
28623else
28624  $as_echo "$as_me: failed program was:" >&5
28625sed 's/^/| /' conftest.$ac_ext >&5
28626
28627	gt_cv_c_wint_t=no
28628fi
28629
28630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28631fi
28632{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
28633$as_echo "$gt_cv_c_wint_t" >&6; }
28634  if test $gt_cv_c_wint_t = yes; then
28635
28636cat >>confdefs.h <<\_ACEOF
28637#define HAVE_WINT_T 1
28638_ACEOF
28639
28640  fi
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650  :
28651
28652
28653
28654
28655
28656  if test $ac_cv_header_features_h = yes; then
28657    HAVE_FEATURES_H=1
28658  else
28659    HAVE_FEATURES_H=0
28660  fi
28661
28662
28663{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
28664$as_echo_n "checking for size_t... " >&6; }
28665if test "${ac_cv_type_size_t+set}" = set; then
28666  $as_echo_n "(cached) " >&6
28667else
28668  ac_cv_type_size_t=no
28669cat >conftest.$ac_ext <<_ACEOF
28670/* confdefs.h.  */
28671_ACEOF
28672cat confdefs.h >>conftest.$ac_ext
28673cat >>conftest.$ac_ext <<_ACEOF
28674/* end confdefs.h.  */
28675$ac_includes_default
28676int
28677main ()
28678{
28679if (sizeof (size_t))
28680       return 0;
28681  ;
28682  return 0;
28683}
28684_ACEOF
28685rm -f conftest.$ac_objext
28686if { (ac_try="$ac_compile"
28687case "(($ac_try" in
28688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28689  *) ac_try_echo=$ac_try;;
28690esac
28691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28692$as_echo "$ac_try_echo") >&5
28693  (eval "$ac_compile") 2>conftest.er1
28694  ac_status=$?
28695  grep -v '^ *+' conftest.er1 >conftest.err
28696  rm -f conftest.er1
28697  cat conftest.err >&5
28698  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699  (exit $ac_status); } && {
28700	 test -z "$ac_c_werror_flag" ||
28701	 test ! -s conftest.err
28702       } && test -s conftest.$ac_objext; then
28703  cat >conftest.$ac_ext <<_ACEOF
28704/* confdefs.h.  */
28705_ACEOF
28706cat confdefs.h >>conftest.$ac_ext
28707cat >>conftest.$ac_ext <<_ACEOF
28708/* end confdefs.h.  */
28709$ac_includes_default
28710int
28711main ()
28712{
28713if (sizeof ((size_t)))
28714	  return 0;
28715  ;
28716  return 0;
28717}
28718_ACEOF
28719rm -f conftest.$ac_objext
28720if { (ac_try="$ac_compile"
28721case "(($ac_try" in
28722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28723  *) ac_try_echo=$ac_try;;
28724esac
28725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28726$as_echo "$ac_try_echo") >&5
28727  (eval "$ac_compile") 2>conftest.er1
28728  ac_status=$?
28729  grep -v '^ *+' conftest.er1 >conftest.err
28730  rm -f conftest.er1
28731  cat conftest.err >&5
28732  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733  (exit $ac_status); } && {
28734	 test -z "$ac_c_werror_flag" ||
28735	 test ! -s conftest.err
28736       } && test -s conftest.$ac_objext; then
28737  :
28738else
28739  $as_echo "$as_me: failed program was:" >&5
28740sed 's/^/| /' conftest.$ac_ext >&5
28741
28742	ac_cv_type_size_t=yes
28743fi
28744
28745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28746else
28747  $as_echo "$as_me: failed program was:" >&5
28748sed 's/^/| /' conftest.$ac_ext >&5
28749
28750
28751fi
28752
28753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28754fi
28755{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28756$as_echo "$ac_cv_type_size_t" >&6; }
28757if test "x$ac_cv_type_size_t" = x""yes; then
28758  :
28759else
28760
28761cat >>confdefs.h <<_ACEOF
28762#define size_t unsigned int
28763_ACEOF
28764
28765fi
28766
28767
28768  { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
28769$as_echo_n "checking for inttypes.h... " >&6; }
28770if test "${gl_cv_header_inttypes_h+set}" = set; then
28771  $as_echo_n "(cached) " >&6
28772else
28773  cat >conftest.$ac_ext <<_ACEOF
28774/* confdefs.h.  */
28775_ACEOF
28776cat confdefs.h >>conftest.$ac_ext
28777cat >>conftest.$ac_ext <<_ACEOF
28778/* end confdefs.h.  */
28779
28780#include <sys/types.h>
28781#include <inttypes.h>
28782
28783int
28784main ()
28785{
28786uintmax_t i = (uintmax_t) -1; return !i;
28787  ;
28788  return 0;
28789}
28790_ACEOF
28791rm -f conftest.$ac_objext
28792if { (ac_try="$ac_compile"
28793case "(($ac_try" in
28794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28795  *) ac_try_echo=$ac_try;;
28796esac
28797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28798$as_echo "$ac_try_echo") >&5
28799  (eval "$ac_compile") 2>conftest.er1
28800  ac_status=$?
28801  grep -v '^ *+' conftest.er1 >conftest.err
28802  rm -f conftest.er1
28803  cat conftest.err >&5
28804  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805  (exit $ac_status); } && {
28806	 test -z "$ac_c_werror_flag" ||
28807	 test ! -s conftest.err
28808       } && test -s conftest.$ac_objext; then
28809  gl_cv_header_inttypes_h=yes
28810else
28811  $as_echo "$as_me: failed program was:" >&5
28812sed 's/^/| /' conftest.$ac_ext >&5
28813
28814	gl_cv_header_inttypes_h=no
28815fi
28816
28817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28818fi
28819{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
28820$as_echo "$gl_cv_header_inttypes_h" >&6; }
28821  if test $gl_cv_header_inttypes_h = yes; then
28822
28823cat >>confdefs.h <<_ACEOF
28824#define HAVE_INTTYPES_H_WITH_UINTMAX 1
28825_ACEOF
28826
28827  fi
28828
28829
28830  { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
28831$as_echo_n "checking for stdint.h... " >&6; }
28832if test "${gl_cv_header_stdint_h+set}" = set; then
28833  $as_echo_n "(cached) " >&6
28834else
28835  cat >conftest.$ac_ext <<_ACEOF
28836/* confdefs.h.  */
28837_ACEOF
28838cat confdefs.h >>conftest.$ac_ext
28839cat >>conftest.$ac_ext <<_ACEOF
28840/* end confdefs.h.  */
28841#include <sys/types.h>
28842            #include <stdint.h>
28843int
28844main ()
28845{
28846uintmax_t i = (uintmax_t) -1; return !i;
28847  ;
28848  return 0;
28849}
28850_ACEOF
28851rm -f conftest.$ac_objext
28852if { (ac_try="$ac_compile"
28853case "(($ac_try" in
28854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855  *) ac_try_echo=$ac_try;;
28856esac
28857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28858$as_echo "$ac_try_echo") >&5
28859  (eval "$ac_compile") 2>conftest.er1
28860  ac_status=$?
28861  grep -v '^ *+' conftest.er1 >conftest.err
28862  rm -f conftest.er1
28863  cat conftest.err >&5
28864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865  (exit $ac_status); } && {
28866	 test -z "$ac_c_werror_flag" ||
28867	 test ! -s conftest.err
28868       } && test -s conftest.$ac_objext; then
28869  gl_cv_header_stdint_h=yes
28870else
28871  $as_echo "$as_me: failed program was:" >&5
28872sed 's/^/| /' conftest.$ac_ext >&5
28873
28874	gl_cv_header_stdint_h=no
28875fi
28876
28877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28878fi
28879{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
28880$as_echo "$gl_cv_header_stdint_h" >&6; }
28881  if test $gl_cv_header_stdint_h = yes; then
28882
28883cat >>confdefs.h <<_ACEOF
28884#define HAVE_STDINT_H_WITH_UINTMAX 1
28885_ACEOF
28886
28887  fi
28888
28889
28890
28891
28892  { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
28893$as_echo_n "checking for intmax_t... " >&6; }
28894if test "${gt_cv_c_intmax_t+set}" = set; then
28895  $as_echo_n "(cached) " >&6
28896else
28897  cat >conftest.$ac_ext <<_ACEOF
28898/* confdefs.h.  */
28899_ACEOF
28900cat confdefs.h >>conftest.$ac_ext
28901cat >>conftest.$ac_ext <<_ACEOF
28902/* end confdefs.h.  */
28903
28904#include <stddef.h>
28905#include <stdlib.h>
28906#if HAVE_STDINT_H_WITH_UINTMAX
28907#include <stdint.h>
28908#endif
28909#if HAVE_INTTYPES_H_WITH_UINTMAX
28910#include <inttypes.h>
28911#endif
28912
28913int
28914main ()
28915{
28916intmax_t x = -1; return !x;
28917  ;
28918  return 0;
28919}
28920_ACEOF
28921rm -f conftest.$ac_objext
28922if { (ac_try="$ac_compile"
28923case "(($ac_try" in
28924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28925  *) ac_try_echo=$ac_try;;
28926esac
28927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28928$as_echo "$ac_try_echo") >&5
28929  (eval "$ac_compile") 2>conftest.er1
28930  ac_status=$?
28931  grep -v '^ *+' conftest.er1 >conftest.err
28932  rm -f conftest.er1
28933  cat conftest.err >&5
28934  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935  (exit $ac_status); } && {
28936	 test -z "$ac_c_werror_flag" ||
28937	 test ! -s conftest.err
28938       } && test -s conftest.$ac_objext; then
28939  gt_cv_c_intmax_t=yes
28940else
28941  $as_echo "$as_me: failed program was:" >&5
28942sed 's/^/| /' conftest.$ac_ext >&5
28943
28944	gt_cv_c_intmax_t=no
28945fi
28946
28947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28948fi
28949{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
28950$as_echo "$gt_cv_c_intmax_t" >&6; }
28951  if test $gt_cv_c_intmax_t = yes; then
28952
28953cat >>confdefs.h <<\_ACEOF
28954#define HAVE_INTMAX_T 1
28955_ACEOF
28956
28957  else
28958
28959    test $ac_cv_type_long_long_int = yes \
28960      && ac_type='long long' \
28961      || ac_type='long'
28962
28963cat >>confdefs.h <<_ACEOF
28964#define intmax_t $ac_type
28965_ACEOF
28966
28967  fi
28968
28969
28970  { $as_echo "$as_me:$LINENO: checking where to find the exponent in a 'double'" >&5
28971$as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
28972if test "${gl_cv_cc_double_expbit0+set}" = set; then
28973  $as_echo_n "(cached) " >&6
28974else
28975
28976      if test "$cross_compiling" = yes; then
28977
28978                                                                      cat >conftest.$ac_ext <<_ACEOF
28979/* confdefs.h.  */
28980_ACEOF
28981cat confdefs.h >>conftest.$ac_ext
28982cat >>conftest.$ac_ext <<_ACEOF
28983/* end confdefs.h.  */
28984
28985#if defined arm || defined __arm || defined __arm__
28986  mixed_endianness
28987#endif
28988
28989_ACEOF
28990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28991  $EGREP "mixed_endianness" >/dev/null 2>&1; then
28992  gl_cv_cc_double_expbit0="unknown"
28993else
28994
28995
28996 :
28997if test "${ac_cv_c_bigendian+set}" = set; then
28998  $as_echo_n "(cached) " >&6
28999else
29000  ac_cv_c_bigendian=unknown
29001    # See if we're dealing with a universal compiler.
29002    cat >conftest.$ac_ext <<_ACEOF
29003/* confdefs.h.  */
29004_ACEOF
29005cat confdefs.h >>conftest.$ac_ext
29006cat >>conftest.$ac_ext <<_ACEOF
29007/* end confdefs.h.  */
29008#ifndef __APPLE_CC__
29009	       not a universal capable compiler
29010	     #endif
29011	     typedef int dummy;
29012
29013_ACEOF
29014rm -f conftest.$ac_objext
29015if { (ac_try="$ac_compile"
29016case "(($ac_try" in
29017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29018  *) ac_try_echo=$ac_try;;
29019esac
29020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29021$as_echo "$ac_try_echo") >&5
29022  (eval "$ac_compile") 2>conftest.er1
29023  ac_status=$?
29024  grep -v '^ *+' conftest.er1 >conftest.err
29025  rm -f conftest.er1
29026  cat conftest.err >&5
29027  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028  (exit $ac_status); } && {
29029	 test -z "$ac_c_werror_flag" ||
29030	 test ! -s conftest.err
29031       } && test -s conftest.$ac_objext; then
29032
29033	# Check for potential -arch flags.  It is not universal unless
29034	# there are some -arch flags.  Note that *ppc* also matches
29035	# ppc64.  This check is also rather less than ideal.
29036	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
29037	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
29038	esac
29039else
29040  $as_echo "$as_me: failed program was:" >&5
29041sed 's/^/| /' conftest.$ac_ext >&5
29042
29043
29044fi
29045
29046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29047    if test $ac_cv_c_bigendian = unknown; then
29048      # See if sys/param.h defines the BYTE_ORDER macro.
29049      cat >conftest.$ac_ext <<_ACEOF
29050/* confdefs.h.  */
29051_ACEOF
29052cat confdefs.h >>conftest.$ac_ext
29053cat >>conftest.$ac_ext <<_ACEOF
29054/* end confdefs.h.  */
29055#include <sys/types.h>
29056	     #include <sys/param.h>
29057
29058int
29059main ()
29060{
29061#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
29062		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
29063		     && LITTLE_ENDIAN)
29064	      bogus endian macros
29065	     #endif
29066
29067  ;
29068  return 0;
29069}
29070_ACEOF
29071rm -f conftest.$ac_objext
29072if { (ac_try="$ac_compile"
29073case "(($ac_try" in
29074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075  *) ac_try_echo=$ac_try;;
29076esac
29077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29078$as_echo "$ac_try_echo") >&5
29079  (eval "$ac_compile") 2>conftest.er1
29080  ac_status=$?
29081  grep -v '^ *+' conftest.er1 >conftest.err
29082  rm -f conftest.er1
29083  cat conftest.err >&5
29084  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085  (exit $ac_status); } && {
29086	 test -z "$ac_c_werror_flag" ||
29087	 test ! -s conftest.err
29088       } && test -s conftest.$ac_objext; then
29089  # It does; now see whether it defined to BIG_ENDIAN or not.
29090	 cat >conftest.$ac_ext <<_ACEOF
29091/* confdefs.h.  */
29092_ACEOF
29093cat confdefs.h >>conftest.$ac_ext
29094cat >>conftest.$ac_ext <<_ACEOF
29095/* end confdefs.h.  */
29096#include <sys/types.h>
29097		#include <sys/param.h>
29098
29099int
29100main ()
29101{
29102#if BYTE_ORDER != BIG_ENDIAN
29103		 not big endian
29104		#endif
29105
29106  ;
29107  return 0;
29108}
29109_ACEOF
29110rm -f conftest.$ac_objext
29111if { (ac_try="$ac_compile"
29112case "(($ac_try" in
29113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114  *) ac_try_echo=$ac_try;;
29115esac
29116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29117$as_echo "$ac_try_echo") >&5
29118  (eval "$ac_compile") 2>conftest.er1
29119  ac_status=$?
29120  grep -v '^ *+' conftest.er1 >conftest.err
29121  rm -f conftest.er1
29122  cat conftest.err >&5
29123  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124  (exit $ac_status); } && {
29125	 test -z "$ac_c_werror_flag" ||
29126	 test ! -s conftest.err
29127       } && test -s conftest.$ac_objext; then
29128  ac_cv_c_bigendian=yes
29129else
29130  $as_echo "$as_me: failed program was:" >&5
29131sed 's/^/| /' conftest.$ac_ext >&5
29132
29133	ac_cv_c_bigendian=no
29134fi
29135
29136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29137else
29138  $as_echo "$as_me: failed program was:" >&5
29139sed 's/^/| /' conftest.$ac_ext >&5
29140
29141
29142fi
29143
29144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29145    fi
29146    if test $ac_cv_c_bigendian = unknown; then
29147      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
29148      cat >conftest.$ac_ext <<_ACEOF
29149/* confdefs.h.  */
29150_ACEOF
29151cat confdefs.h >>conftest.$ac_ext
29152cat >>conftest.$ac_ext <<_ACEOF
29153/* end confdefs.h.  */
29154#include <limits.h>
29155
29156int
29157main ()
29158{
29159#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
29160	      bogus endian macros
29161	     #endif
29162
29163  ;
29164  return 0;
29165}
29166_ACEOF
29167rm -f conftest.$ac_objext
29168if { (ac_try="$ac_compile"
29169case "(($ac_try" in
29170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171  *) ac_try_echo=$ac_try;;
29172esac
29173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29174$as_echo "$ac_try_echo") >&5
29175  (eval "$ac_compile") 2>conftest.er1
29176  ac_status=$?
29177  grep -v '^ *+' conftest.er1 >conftest.err
29178  rm -f conftest.er1
29179  cat conftest.err >&5
29180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181  (exit $ac_status); } && {
29182	 test -z "$ac_c_werror_flag" ||
29183	 test ! -s conftest.err
29184       } && test -s conftest.$ac_objext; then
29185  # It does; now see whether it defined to _BIG_ENDIAN or not.
29186	 cat >conftest.$ac_ext <<_ACEOF
29187/* confdefs.h.  */
29188_ACEOF
29189cat confdefs.h >>conftest.$ac_ext
29190cat >>conftest.$ac_ext <<_ACEOF
29191/* end confdefs.h.  */
29192#include <limits.h>
29193
29194int
29195main ()
29196{
29197#ifndef _BIG_ENDIAN
29198		 not big endian
29199		#endif
29200
29201  ;
29202  return 0;
29203}
29204_ACEOF
29205rm -f conftest.$ac_objext
29206if { (ac_try="$ac_compile"
29207case "(($ac_try" in
29208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209  *) ac_try_echo=$ac_try;;
29210esac
29211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29212$as_echo "$ac_try_echo") >&5
29213  (eval "$ac_compile") 2>conftest.er1
29214  ac_status=$?
29215  grep -v '^ *+' conftest.er1 >conftest.err
29216  rm -f conftest.er1
29217  cat conftest.err >&5
29218  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219  (exit $ac_status); } && {
29220	 test -z "$ac_c_werror_flag" ||
29221	 test ! -s conftest.err
29222       } && test -s conftest.$ac_objext; then
29223  ac_cv_c_bigendian=yes
29224else
29225  $as_echo "$as_me: failed program was:" >&5
29226sed 's/^/| /' conftest.$ac_ext >&5
29227
29228	ac_cv_c_bigendian=no
29229fi
29230
29231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29232else
29233  $as_echo "$as_me: failed program was:" >&5
29234sed 's/^/| /' conftest.$ac_ext >&5
29235
29236
29237fi
29238
29239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29240    fi
29241    if test $ac_cv_c_bigendian = unknown; then
29242      # Compile a test program.
29243      if test "$cross_compiling" = yes; then
29244  # Try to guess by grepping values from an object file.
29245	 cat >conftest.$ac_ext <<_ACEOF
29246/* confdefs.h.  */
29247_ACEOF
29248cat confdefs.h >>conftest.$ac_ext
29249cat >>conftest.$ac_ext <<_ACEOF
29250/* end confdefs.h.  */
29251short int ascii_mm[] =
29252		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
29253		short int ascii_ii[] =
29254		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
29255		int use_ascii (int i) {
29256		  return ascii_mm[i] + ascii_ii[i];
29257		}
29258		short int ebcdic_ii[] =
29259		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
29260		short int ebcdic_mm[] =
29261		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
29262		int use_ebcdic (int i) {
29263		  return ebcdic_mm[i] + ebcdic_ii[i];
29264		}
29265		extern int foo;
29266
29267int
29268main ()
29269{
29270return use_ascii (foo) == use_ebcdic (foo);
29271  ;
29272  return 0;
29273}
29274_ACEOF
29275rm -f conftest.$ac_objext
29276if { (ac_try="$ac_compile"
29277case "(($ac_try" in
29278  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29279  *) ac_try_echo=$ac_try;;
29280esac
29281eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29282$as_echo "$ac_try_echo") >&5
29283  (eval "$ac_compile") 2>conftest.er1
29284  ac_status=$?
29285  grep -v '^ *+' conftest.er1 >conftest.err
29286  rm -f conftest.er1
29287  cat conftest.err >&5
29288  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289  (exit $ac_status); } && {
29290	 test -z "$ac_c_werror_flag" ||
29291	 test ! -s conftest.err
29292       } && test -s conftest.$ac_objext; then
29293  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
29294	      ac_cv_c_bigendian=yes
29295	    fi
29296	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
29297	      if test "$ac_cv_c_bigendian" = unknown; then
29298		ac_cv_c_bigendian=no
29299	      else
29300		# finding both strings is unlikely to happen, but who knows?
29301		ac_cv_c_bigendian=unknown
29302	      fi
29303	    fi
29304else
29305  $as_echo "$as_me: failed program was:" >&5
29306sed 's/^/| /' conftest.$ac_ext >&5
29307
29308
29309fi
29310
29311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29312else
29313  cat >conftest.$ac_ext <<_ACEOF
29314/* confdefs.h.  */
29315_ACEOF
29316cat confdefs.h >>conftest.$ac_ext
29317cat >>conftest.$ac_ext <<_ACEOF
29318/* end confdefs.h.  */
29319$ac_includes_default
29320int
29321main ()
29322{
29323
29324	     /* Are we little or big endian?  From Harbison&Steele.  */
29325	     union
29326	     {
29327	       long int l;
29328	       char c[sizeof (long int)];
29329	     } u;
29330	     u.l = 1;
29331	     return u.c[sizeof (long int) - 1] == 1;
29332
29333  ;
29334  return 0;
29335}
29336_ACEOF
29337rm -f conftest$ac_exeext
29338if { (ac_try="$ac_link"
29339case "(($ac_try" in
29340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341  *) ac_try_echo=$ac_try;;
29342esac
29343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29344$as_echo "$ac_try_echo") >&5
29345  (eval "$ac_link") 2>&5
29346  ac_status=$?
29347  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29349  { (case "(($ac_try" in
29350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351  *) ac_try_echo=$ac_try;;
29352esac
29353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29354$as_echo "$ac_try_echo") >&5
29355  (eval "$ac_try") 2>&5
29356  ac_status=$?
29357  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358  (exit $ac_status); }; }; then
29359  ac_cv_c_bigendian=no
29360else
29361  $as_echo "$as_me: program exited with status $ac_status" >&5
29362$as_echo "$as_me: failed program was:" >&5
29363sed 's/^/| /' conftest.$ac_ext >&5
29364
29365( exit $ac_status )
29366ac_cv_c_bigendian=yes
29367fi
29368rm -rf conftest.dSYM
29369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29370fi
29371
29372
29373    fi
29374fi
29375:
29376 case $ac_cv_c_bigendian in #(
29377   yes)
29378     gl_cv_cc_double_expbit0="word 0 bit 20";; #(
29379   no)
29380     gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
29381   universal)
29382
29383cat >>confdefs.h <<\_ACEOF
29384#define AC_APPLE_UNIVERSAL_BUILD 1
29385_ACEOF
29386
29387     ;; #(
29388   *)
29389     gl_cv_cc_double_expbit0="unknown" ;;
29390 esac
29391
29392
29393fi
29394rm -f conftest*
29395
29396
29397else
29398  cat >conftest.$ac_ext <<_ACEOF
29399/* confdefs.h.  */
29400_ACEOF
29401cat confdefs.h >>conftest.$ac_ext
29402cat >>conftest.$ac_ext <<_ACEOF
29403/* end confdefs.h.  */
29404
29405#include <float.h>
29406#include <stddef.h>
29407#include <stdio.h>
29408#include <string.h>
29409#define NWORDS \
29410  ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
29411typedef union { double value; unsigned int word[NWORDS]; } memory_double;
29412static unsigned int ored_words[NWORDS];
29413static unsigned int anded_words[NWORDS];
29414static void add_to_ored_words (double x)
29415{
29416  memory_double m;
29417  size_t i;
29418  /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
29419  memset (&m, 0, sizeof (memory_double));
29420  m.value = x;
29421  for (i = 0; i < NWORDS; i++)
29422    {
29423      ored_words[i] |= m.word[i];
29424      anded_words[i] &= m.word[i];
29425    }
29426}
29427int main ()
29428{
29429  size_t j;
29430  FILE *fp = fopen ("conftest.out", "w");
29431  if (fp == NULL)
29432    return 1;
29433  for (j = 0; j < NWORDS; j++)
29434    anded_words[j] = ~ (unsigned int) 0;
29435  add_to_ored_words (0.25);
29436  add_to_ored_words (0.5);
29437  add_to_ored_words (1.0);
29438  add_to_ored_words (2.0);
29439  add_to_ored_words (4.0);
29440  /* Remove bits that are common (e.g. if representation of the first mantissa
29441     bit is explicit).  */
29442  for (j = 0; j < NWORDS; j++)
29443    ored_words[j] &= ~anded_words[j];
29444  /* Now find the nonzero word.  */
29445  for (j = 0; j < NWORDS; j++)
29446    if (ored_words[j] != 0)
29447      break;
29448  if (j < NWORDS)
29449    {
29450      size_t i;
29451      for (i = j + 1; i < NWORDS; i++)
29452        if (ored_words[i] != 0)
29453          {
29454            fprintf (fp, "unknown");
29455            return (fclose (fp) != 0);
29456          }
29457      for (i = 0; ; i++)
29458        if ((ored_words[j] >> i) & 1)
29459          {
29460            fprintf (fp, "word %d bit %d", (int) j, (int) i);
29461            return (fclose (fp) != 0);
29462          }
29463    }
29464  fprintf (fp, "unknown");
29465  return (fclose (fp) != 0);
29466}
29467
29468_ACEOF
29469rm -f conftest$ac_exeext
29470if { (ac_try="$ac_link"
29471case "(($ac_try" in
29472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29473  *) ac_try_echo=$ac_try;;
29474esac
29475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29476$as_echo "$ac_try_echo") >&5
29477  (eval "$ac_link") 2>&5
29478  ac_status=$?
29479  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29481  { (case "(($ac_try" in
29482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483  *) ac_try_echo=$ac_try;;
29484esac
29485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29486$as_echo "$ac_try_echo") >&5
29487  (eval "$ac_try") 2>&5
29488  ac_status=$?
29489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490  (exit $ac_status); }; }; then
29491  gl_cv_cc_double_expbit0=`cat conftest.out`
29492else
29493  $as_echo "$as_me: program exited with status $ac_status" >&5
29494$as_echo "$as_me: failed program was:" >&5
29495sed 's/^/| /' conftest.$ac_ext >&5
29496
29497( exit $ac_status )
29498gl_cv_cc_double_expbit0="unknown"
29499fi
29500rm -rf conftest.dSYM
29501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29502fi
29503
29504
29505      rm -f conftest.out
29506
29507fi
29508{ $as_echo "$as_me:$LINENO: result: $gl_cv_cc_double_expbit0" >&5
29509$as_echo "$gl_cv_cc_double_expbit0" >&6; }
29510  case "$gl_cv_cc_double_expbit0" in
29511    word*bit*)
29512      word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
29513      bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
29514
29515cat >>confdefs.h <<_ACEOF
29516#define DBL_EXPBIT0_WORD $word
29517_ACEOF
29518
29519
29520cat >>confdefs.h <<_ACEOF
29521#define DBL_EXPBIT0_BIT $bit
29522_ACEOF
29523
29524      ;;
29525  esac
29526
29527
29528
29529
29530
29531
29532
29533
29534
29535
29536
29537
29538for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
29539do
29540as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29541{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29542$as_echo_n "checking for $ac_func... " >&6; }
29543if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29544  $as_echo_n "(cached) " >&6
29545else
29546  cat >conftest.$ac_ext <<_ACEOF
29547/* confdefs.h.  */
29548_ACEOF
29549cat confdefs.h >>conftest.$ac_ext
29550cat >>conftest.$ac_ext <<_ACEOF
29551/* end confdefs.h.  */
29552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29553   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29554#define $ac_func innocuous_$ac_func
29555
29556/* System header to define __stub macros and hopefully few prototypes,
29557    which can conflict with char $ac_func (); below.
29558    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29559    <limits.h> exists even on freestanding compilers.  */
29560
29561#ifdef __STDC__
29562# include <limits.h>
29563#else
29564# include <assert.h>
29565#endif
29566
29567#undef $ac_func
29568
29569/* Override any GCC internal prototype to avoid an error.
29570   Use char because int might match the return type of a GCC
29571   builtin and then its argument prototype would still apply.  */
29572#ifdef __cplusplus
29573extern "C"
29574#endif
29575char $ac_func ();
29576/* The GNU C library defines this for functions which it implements
29577    to always fail with ENOSYS.  Some functions are actually named
29578    something starting with __ and the normal name is an alias.  */
29579#if defined __stub_$ac_func || defined __stub___$ac_func
29580choke me
29581#endif
29582
29583int
29584main ()
29585{
29586return $ac_func ();
29587  ;
29588  return 0;
29589}
29590_ACEOF
29591rm -f conftest.$ac_objext conftest$ac_exeext
29592if { (ac_try="$ac_link"
29593case "(($ac_try" in
29594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595  *) ac_try_echo=$ac_try;;
29596esac
29597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29598$as_echo "$ac_try_echo") >&5
29599  (eval "$ac_link") 2>conftest.er1
29600  ac_status=$?
29601  grep -v '^ *+' conftest.er1 >conftest.err
29602  rm -f conftest.er1
29603  cat conftest.err >&5
29604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605  (exit $ac_status); } && {
29606	 test -z "$ac_c_werror_flag" ||
29607	 test ! -s conftest.err
29608       } && test -s conftest$ac_exeext && {
29609	 test "$cross_compiling" = yes ||
29610	 $as_test_x conftest$ac_exeext
29611       }; then
29612  eval "$as_ac_var=yes"
29613else
29614  $as_echo "$as_me: failed program was:" >&5
29615sed 's/^/| /' conftest.$ac_ext >&5
29616
29617	eval "$as_ac_var=no"
29618fi
29619
29620rm -rf conftest.dSYM
29621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29622      conftest$ac_exeext conftest.$ac_ext
29623fi
29624ac_res=`eval 'as_val=${'$as_ac_var'}
29625		 $as_echo "$as_val"'`
29626	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29627$as_echo "$ac_res" >&6; }
29628as_val=`eval 'as_val=${'$as_ac_var'}
29629		 $as_echo "$as_val"'`
29630   if test "x$as_val" = x""yes; then
29631  cat >>confdefs.h <<_ACEOF
29632#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29633_ACEOF
29634
29635fi
29636done
29637
29638      { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
29639$as_echo_n "checking whether _snprintf is declared... " >&6; }
29640if test "${ac_cv_have_decl__snprintf+set}" = set; then
29641  $as_echo_n "(cached) " >&6
29642else
29643  cat >conftest.$ac_ext <<_ACEOF
29644/* confdefs.h.  */
29645_ACEOF
29646cat confdefs.h >>conftest.$ac_ext
29647cat >>conftest.$ac_ext <<_ACEOF
29648/* end confdefs.h.  */
29649#include <stdio.h>
29650
29651int
29652main ()
29653{
29654#ifndef _snprintf
29655  (void) _snprintf;
29656#endif
29657
29658  ;
29659  return 0;
29660}
29661_ACEOF
29662rm -f conftest.$ac_objext
29663if { (ac_try="$ac_compile"
29664case "(($ac_try" in
29665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666  *) ac_try_echo=$ac_try;;
29667esac
29668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29669$as_echo "$ac_try_echo") >&5
29670  (eval "$ac_compile") 2>conftest.er1
29671  ac_status=$?
29672  grep -v '^ *+' conftest.er1 >conftest.err
29673  rm -f conftest.er1
29674  cat conftest.err >&5
29675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676  (exit $ac_status); } && {
29677	 test -z "$ac_c_werror_flag" ||
29678	 test ! -s conftest.err
29679       } && test -s conftest.$ac_objext; then
29680  ac_cv_have_decl__snprintf=yes
29681else
29682  $as_echo "$as_me: failed program was:" >&5
29683sed 's/^/| /' conftest.$ac_ext >&5
29684
29685	ac_cv_have_decl__snprintf=no
29686fi
29687
29688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29689fi
29690{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
29691$as_echo "$ac_cv_have_decl__snprintf" >&6; }
29692if test "x$ac_cv_have_decl__snprintf" = x""yes; then
29693
29694cat >>confdefs.h <<_ACEOF
29695#define HAVE_DECL__SNPRINTF 1
29696_ACEOF
29697
29698
29699else
29700  cat >>confdefs.h <<_ACEOF
29701#define HAVE_DECL__SNPRINTF 0
29702_ACEOF
29703
29704
29705fi
29706
29707
29708
29709
29710  case "$gl_cv_func_snprintf_retval_c99" in
29711    *yes)
29712
29713cat >>confdefs.h <<\_ACEOF
29714#define HAVE_SNPRINTF_RETVAL_C99 1
29715_ACEOF
29716
29717      ;;
29718  esac
29719
29720
29721      { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
29722$as_echo_n "checking whether vsnprintf is declared... " >&6; }
29723if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
29724  $as_echo_n "(cached) " >&6
29725else
29726  cat >conftest.$ac_ext <<_ACEOF
29727/* confdefs.h.  */
29728_ACEOF
29729cat confdefs.h >>conftest.$ac_ext
29730cat >>conftest.$ac_ext <<_ACEOF
29731/* end confdefs.h.  */
29732$ac_includes_default
29733int
29734main ()
29735{
29736#ifndef vsnprintf
29737  (void) vsnprintf;
29738#endif
29739
29740  ;
29741  return 0;
29742}
29743_ACEOF
29744rm -f conftest.$ac_objext
29745if { (ac_try="$ac_compile"
29746case "(($ac_try" in
29747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29748  *) ac_try_echo=$ac_try;;
29749esac
29750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29751$as_echo "$ac_try_echo") >&5
29752  (eval "$ac_compile") 2>conftest.er1
29753  ac_status=$?
29754  grep -v '^ *+' conftest.er1 >conftest.err
29755  rm -f conftest.er1
29756  cat conftest.err >&5
29757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758  (exit $ac_status); } && {
29759	 test -z "$ac_c_werror_flag" ||
29760	 test ! -s conftest.err
29761       } && test -s conftest.$ac_objext; then
29762  ac_cv_have_decl_vsnprintf=yes
29763else
29764  $as_echo "$as_me: failed program was:" >&5
29765sed 's/^/| /' conftest.$ac_ext >&5
29766
29767	ac_cv_have_decl_vsnprintf=no
29768fi
29769
29770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29771fi
29772{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
29773$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
29774if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
29775
29776cat >>confdefs.h <<_ACEOF
29777#define HAVE_DECL_VSNPRINTF 1
29778_ACEOF
29779
29780
29781else
29782  cat >>confdefs.h <<_ACEOF
29783#define HAVE_DECL_VSNPRINTF 0
29784_ACEOF
29785
29786
29787fi
29788
29789
29790
29791
29792  GNULIB_BTOWC=0;
29793  GNULIB_WCTOB=0;
29794  GNULIB_MBSINIT=0;
29795  GNULIB_MBRTOWC=0;
29796  GNULIB_MBRLEN=0;
29797  GNULIB_MBSRTOWCS=0;
29798  GNULIB_MBSNRTOWCS=0;
29799  GNULIB_WCRTOMB=0;
29800  GNULIB_WCSRTOMBS=0;
29801  GNULIB_WCSNRTOMBS=0;
29802  GNULIB_WCWIDTH=0;
29803  GNULIB_WMEMCHR=0;
29804  GNULIB_WMEMCMP=0;
29805  GNULIB_WMEMCPY=0;
29806  GNULIB_WMEMMOVE=0;
29807  GNULIB_WMEMSET=0;
29808  GNULIB_WCSLEN=0;
29809  GNULIB_WCSNLEN=0;
29810  GNULIB_WCSCPY=0;
29811  GNULIB_WCPCPY=0;
29812  GNULIB_WCSNCPY=0;
29813  GNULIB_WCPNCPY=0;
29814  GNULIB_WCSCAT=0;
29815  GNULIB_WCSNCAT=0;
29816  GNULIB_WCSCMP=0;
29817  GNULIB_WCSNCMP=0;
29818  GNULIB_WCSCASECMP=0;
29819  GNULIB_WCSNCASECMP=0;
29820  GNULIB_WCSCOLL=0;
29821  GNULIB_WCSXFRM=0;
29822  GNULIB_WCSDUP=0;
29823  GNULIB_WCSCHR=0;
29824  GNULIB_WCSRCHR=0;
29825  GNULIB_WCSCSPN=0;
29826  GNULIB_WCSSPN=0;
29827  GNULIB_WCSPBRK=0;
29828  GNULIB_WCSSTR=0;
29829  GNULIB_WCSTOK=0;
29830  GNULIB_WCSWIDTH=0;
29831    HAVE_BTOWC=1;
29832  HAVE_MBSINIT=1;
29833  HAVE_MBRTOWC=1;
29834  HAVE_MBRLEN=1;
29835  HAVE_MBSRTOWCS=1;
29836  HAVE_MBSNRTOWCS=1;
29837  HAVE_WCRTOMB=1;
29838  HAVE_WCSRTOMBS=1;
29839  HAVE_WCSNRTOMBS=1;
29840  HAVE_WMEMCHR=1;
29841  HAVE_WMEMCMP=1;
29842  HAVE_WMEMCPY=1;
29843  HAVE_WMEMMOVE=1;
29844  HAVE_WMEMSET=1;
29845  HAVE_WCSLEN=1;
29846  HAVE_WCSNLEN=1;
29847  HAVE_WCSCPY=1;
29848  HAVE_WCPCPY=1;
29849  HAVE_WCSNCPY=1;
29850  HAVE_WCPNCPY=1;
29851  HAVE_WCSCAT=1;
29852  HAVE_WCSNCAT=1;
29853  HAVE_WCSCMP=1;
29854  HAVE_WCSNCMP=1;
29855  HAVE_WCSCASECMP=1;
29856  HAVE_WCSNCASECMP=1;
29857  HAVE_WCSCOLL=1;
29858  HAVE_WCSXFRM=1;
29859  HAVE_WCSDUP=1;
29860  HAVE_WCSCHR=1;
29861  HAVE_WCSRCHR=1;
29862  HAVE_WCSCSPN=1;
29863  HAVE_WCSSPN=1;
29864  HAVE_WCSPBRK=1;
29865  HAVE_WCSSTR=1;
29866  HAVE_WCSTOK=1;
29867  HAVE_WCSWIDTH=1;
29868  HAVE_DECL_WCTOB=1;
29869  HAVE_DECL_WCWIDTH=1;
29870  REPLACE_MBSTATE_T=0;
29871  REPLACE_BTOWC=0;
29872  REPLACE_WCTOB=0;
29873  REPLACE_MBSINIT=0;
29874  REPLACE_MBRTOWC=0;
29875  REPLACE_MBRLEN=0;
29876  REPLACE_MBSRTOWCS=0;
29877  REPLACE_MBSNRTOWCS=0;
29878  REPLACE_WCRTOMB=0;
29879  REPLACE_WCSRTOMBS=0;
29880  REPLACE_WCSNRTOMBS=0;
29881  REPLACE_WCWIDTH=0;
29882  REPLACE_WCSWIDTH=0;
29883
29884
29885            { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
29886$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
29887if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
29888  $as_echo_n "(cached) " >&6
29889else
29890  gl_cv_header_wchar_h_correct_inline=yes
29891     cat >conftest.$ac_ext <<_ACEOF
29892
29893       /* confdefs.h.  */
29894_ACEOF
29895cat confdefs.h >>conftest.$ac_ext
29896cat >>conftest.$ac_ext <<_ACEOF
29897/* end confdefs.h.  */
29898#define wcstod renamed_wcstod
29899/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29900   <wchar.h>.
29901   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29902   included before <wchar.h>.  */
29903#include <stddef.h>
29904#include <stdio.h>
29905#include <time.h>
29906#include <wchar.h>
29907extern int zero (void);
29908int main () { return zero(); }
29909
29910_ACEOF
29911     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29912  (eval $ac_compile) 2>&5
29913  ac_status=$?
29914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915  (exit $ac_status); }; then
29916       mv conftest.$ac_objext conftest1.$ac_objext
29917       cat >conftest.$ac_ext <<_ACEOF
29918
29919         /* confdefs.h.  */
29920_ACEOF
29921cat confdefs.h >>conftest.$ac_ext
29922cat >>conftest.$ac_ext <<_ACEOF
29923/* end confdefs.h.  */
29924#define wcstod renamed_wcstod
29925/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29926   <wchar.h>.
29927   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29928   included before <wchar.h>.  */
29929#include <stddef.h>
29930#include <stdio.h>
29931#include <time.h>
29932#include <wchar.h>
29933int zero (void) { return 0; }
29934
29935_ACEOF
29936       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29937  (eval $ac_compile) 2>&5
29938  ac_status=$?
29939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940  (exit $ac_status); }; then
29941         mv conftest.$ac_objext conftest2.$ac_objext
29942         if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
29943           :
29944         else
29945           gl_cv_header_wchar_h_correct_inline=no
29946         fi
29947       fi
29948     fi
29949     rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
29950
29951fi
29952{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
29953$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
29954  if test $gl_cv_header_wchar_h_correct_inline = no; then
29955    { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
29956This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
29957C99 mode. You have four options:
29958  - Add the flag -fgnu89-inline to CC and reconfigure, or
29959  - Fix your include files, using parts of
29960    <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
29961  - Use a gcc version older than 4.3, or
29962  - Don't use the flags -std=c99 or -std=gnu99.
29963Configuration aborted." >&5
29964$as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
29965This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
29966C99 mode. You have four options:
29967  - Add the flag -fgnu89-inline to CC and reconfigure, or
29968  - Fix your include files, using parts of
29969    <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
29970  - Use a gcc version older than 4.3, or
29971  - Don't use the flags -std=c99 or -std=gnu99.
29972Configuration aborted." >&2;}
29973   { (exit 1); exit 1; }; }
29974  fi
29975
29976
29977
29978
29979
29980
29981
29982
29983
29984  :
29985
29986
29987
29988
29989
29990  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
29991    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
29992
29993cat >>confdefs.h <<\_ACEOF
29994#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1
29995_ACEOF
29996
29997  else
29998    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
29999  fi
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009  GNULIB_IMAXABS=0;
30010  GNULIB_IMAXDIV=0;
30011  GNULIB_STRTOIMAX=0;
30012  GNULIB_STRTOUMAX=0;
30013    HAVE_DECL_IMAXABS=1;
30014  HAVE_DECL_IMAXDIV=1;
30015  HAVE_DECL_STRTOIMAX=1;
30016  HAVE_DECL_STRTOUMAX=1;
30017  REPLACE_STRTOIMAX=0;
30018  REPLACE_STRTOUMAX=0;
30019  INT32_MAX_LT_INTMAX_MAX=1;
30020  INT64_MAX_EQ_LONG_MAX='defined _LP64';
30021  PRI_MACROS_BROKEN=0;
30022  PRIPTR_PREFIX=__PRIPTR_PREFIX;
30023  UINT32_MAX_LT_UINTMAX_MAX=1;
30024  UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
30025
30026
30027
30028
30029  :
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043  :
30044
30045
30046
30047
30048
30049
30050
30051
30052     if test $gl_cv_have_include_next = yes; then
30053       gl_cv_next_inttypes_h='<'inttypes.h'>'
30054     else
30055       { $as_echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
30056$as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
30057if test "${gl_cv_next_inttypes_h+set}" = set; then
30058  $as_echo_n "(cached) " >&6
30059else
30060
30061             if test $ac_cv_header_inttypes_h = yes; then
30062
30063
30064
30065
30066  cat >conftest.$ac_ext <<_ACEOF
30067/* confdefs.h.  */
30068_ACEOF
30069cat confdefs.h >>conftest.$ac_ext
30070cat >>conftest.$ac_ext <<_ACEOF
30071/* end confdefs.h.  */
30072#include <inttypes.h>
30073_ACEOF
30074                case "$host_os" in
30075    aix*) gl_absname_cpp="$ac_cpp -C" ;;
30076    *)    gl_absname_cpp="$ac_cpp" ;;
30077  esac
30078
30079  case "$host_os" in
30080    mingw*)
30081                                          gl_dirsep_regex='[/\\]'
30082      ;;
30083    *)
30084      gl_dirsep_regex='\/'
30085      ;;
30086  esac
30087      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30088  gl_header_literal_regex=`echo 'inttypes.h' \
30089                           | sed -e "$gl_make_literal_regex_sed"`
30090  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30091      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30092      s|^/[^/]|//&|
30093      p
30094      q
30095    }'
30096
30097        gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30098  sed -n "$gl_absolute_header_sed"`
30099
30100           gl_header=$gl_cv_absolute_inttypes_h
30101           gl_cv_next_inttypes_h='"'$gl_header'"'
30102          else
30103               gl_cv_next_inttypes_h='<'inttypes.h'>'
30104             fi
30105
30106
30107fi
30108{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
30109$as_echo "$gl_cv_next_inttypes_h" >&6; }
30110     fi
30111     NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
30112
30113     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30114       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30115       gl_next_as_first_directive='<'inttypes.h'>'
30116     else
30117       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30118       gl_next_as_first_directive=$gl_cv_next_inttypes_h
30119     fi
30120     NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133  for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
30134    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30135    { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30136$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30137if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30138  $as_echo_n "(cached) " >&6
30139else
30140  cat >conftest.$ac_ext <<_ACEOF
30141/* confdefs.h.  */
30142_ACEOF
30143cat confdefs.h >>conftest.$ac_ext
30144cat >>conftest.$ac_ext <<_ACEOF
30145/* end confdefs.h.  */
30146#include <inttypes.h>
30147
30148int
30149main ()
30150{
30151#undef $gl_func
30152  (void) $gl_func;
30153  ;
30154  return 0;
30155}
30156_ACEOF
30157rm -f conftest.$ac_objext
30158if { (ac_try="$ac_compile"
30159case "(($ac_try" in
30160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30161  *) ac_try_echo=$ac_try;;
30162esac
30163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30164$as_echo "$ac_try_echo") >&5
30165  (eval "$ac_compile") 2>conftest.er1
30166  ac_status=$?
30167  grep -v '^ *+' conftest.er1 >conftest.err
30168  rm -f conftest.er1
30169  cat conftest.err >&5
30170  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171  (exit $ac_status); } && {
30172	 test -z "$ac_c_werror_flag" ||
30173	 test ! -s conftest.err
30174       } && test -s conftest.$ac_objext; then
30175  eval "$as_gl_Symbol=yes"
30176else
30177  $as_echo "$as_me: failed program was:" >&5
30178sed 's/^/| /' conftest.$ac_ext >&5
30179
30180	eval "$as_gl_Symbol=no"
30181fi
30182
30183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30184fi
30185ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30186		 $as_echo "$as_val"'`
30187	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30188$as_echo "$ac_res" >&6; }
30189    as_val=`eval 'as_val=${'$as_gl_Symbol'}
30190		 $as_echo "$as_val"'`
30191   if test "x$as_val" = x""yes; then
30192  cat >>confdefs.h <<_ACEOF
30193#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30194_ACEOF
30195
30196                     eval ac_cv_have_decl_$gl_func=yes
30197fi
30198
30199      done
30200
30201
30202
30203
30204
30205for ac_header in inttypes.h
30206do
30207as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30209  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30210$as_echo_n "checking for $ac_header... " >&6; }
30211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30212  $as_echo_n "(cached) " >&6
30213fi
30214ac_res=`eval 'as_val=${'$as_ac_Header'}
30215		 $as_echo "$as_val"'`
30216	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30217$as_echo "$ac_res" >&6; }
30218else
30219  # Is the header compilable?
30220{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30221$as_echo_n "checking $ac_header usability... " >&6; }
30222cat >conftest.$ac_ext <<_ACEOF
30223/* confdefs.h.  */
30224_ACEOF
30225cat confdefs.h >>conftest.$ac_ext
30226cat >>conftest.$ac_ext <<_ACEOF
30227/* end confdefs.h.  */
30228$ac_includes_default
30229#include <$ac_header>
30230_ACEOF
30231rm -f conftest.$ac_objext
30232if { (ac_try="$ac_compile"
30233case "(($ac_try" in
30234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235  *) ac_try_echo=$ac_try;;
30236esac
30237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30238$as_echo "$ac_try_echo") >&5
30239  (eval "$ac_compile") 2>conftest.er1
30240  ac_status=$?
30241  grep -v '^ *+' conftest.er1 >conftest.err
30242  rm -f conftest.er1
30243  cat conftest.err >&5
30244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245  (exit $ac_status); } && {
30246	 test -z "$ac_c_werror_flag" ||
30247	 test ! -s conftest.err
30248       } && test -s conftest.$ac_objext; then
30249  ac_header_compiler=yes
30250else
30251  $as_echo "$as_me: failed program was:" >&5
30252sed 's/^/| /' conftest.$ac_ext >&5
30253
30254	ac_header_compiler=no
30255fi
30256
30257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30258{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30259$as_echo "$ac_header_compiler" >&6; }
30260
30261# Is the header present?
30262{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30263$as_echo_n "checking $ac_header presence... " >&6; }
30264cat >conftest.$ac_ext <<_ACEOF
30265/* confdefs.h.  */
30266_ACEOF
30267cat confdefs.h >>conftest.$ac_ext
30268cat >>conftest.$ac_ext <<_ACEOF
30269/* end confdefs.h.  */
30270#include <$ac_header>
30271_ACEOF
30272if { (ac_try="$ac_cpp conftest.$ac_ext"
30273case "(($ac_try" in
30274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275  *) ac_try_echo=$ac_try;;
30276esac
30277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30278$as_echo "$ac_try_echo") >&5
30279  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30280  ac_status=$?
30281  grep -v '^ *+' conftest.er1 >conftest.err
30282  rm -f conftest.er1
30283  cat conftest.err >&5
30284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285  (exit $ac_status); } >/dev/null && {
30286	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30287	 test ! -s conftest.err
30288       }; then
30289  ac_header_preproc=yes
30290else
30291  $as_echo "$as_me: failed program was:" >&5
30292sed 's/^/| /' conftest.$ac_ext >&5
30293
30294  ac_header_preproc=no
30295fi
30296
30297rm -f conftest.err conftest.$ac_ext
30298{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30299$as_echo "$ac_header_preproc" >&6; }
30300
30301# So?  What about this header?
30302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30303  yes:no: )
30304    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30305$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30306    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30307$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30308    ac_header_preproc=yes
30309    ;;
30310  no:yes:* )
30311    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30312$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30313    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30314$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30315    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30316$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30317    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30318$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30319    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30320$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30321    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30322$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30323
30324    ;;
30325esac
30326{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30327$as_echo_n "checking for $ac_header... " >&6; }
30328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30329  $as_echo_n "(cached) " >&6
30330else
30331  eval "$as_ac_Header=\$ac_header_preproc"
30332fi
30333ac_res=`eval 'as_val=${'$as_ac_Header'}
30334		 $as_echo "$as_val"'`
30335	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30336$as_echo "$ac_res" >&6; }
30337
30338fi
30339as_val=`eval 'as_val=${'$as_ac_Header'}
30340		 $as_echo "$as_val"'`
30341   if test "x$as_val" = x""yes; then
30342  cat >>confdefs.h <<_ACEOF
30343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30344_ACEOF
30345
30346fi
30347
30348done
30349
30350  if test $ac_cv_header_inttypes_h = yes; then
30351    { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
30352$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
30353if test "${gt_cv_inttypes_pri_broken+set}" = set; then
30354  $as_echo_n "(cached) " >&6
30355else
30356
30357        cat >conftest.$ac_ext <<_ACEOF
30358/* confdefs.h.  */
30359_ACEOF
30360cat confdefs.h >>conftest.$ac_ext
30361cat >>conftest.$ac_ext <<_ACEOF
30362/* end confdefs.h.  */
30363
30364#include <inttypes.h>
30365#ifdef PRId32
30366char *p = PRId32;
30367#endif
30368
30369int
30370main ()
30371{
30372
30373  ;
30374  return 0;
30375}
30376_ACEOF
30377rm -f conftest.$ac_objext
30378if { (ac_try="$ac_compile"
30379case "(($ac_try" in
30380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30381  *) ac_try_echo=$ac_try;;
30382esac
30383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30384$as_echo "$ac_try_echo") >&5
30385  (eval "$ac_compile") 2>conftest.er1
30386  ac_status=$?
30387  grep -v '^ *+' conftest.er1 >conftest.err
30388  rm -f conftest.er1
30389  cat conftest.err >&5
30390  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391  (exit $ac_status); } && {
30392	 test -z "$ac_c_werror_flag" ||
30393	 test ! -s conftest.err
30394       } && test -s conftest.$ac_objext; then
30395  gt_cv_inttypes_pri_broken=no
30396else
30397  $as_echo "$as_me: failed program was:" >&5
30398sed 's/^/| /' conftest.$ac_ext >&5
30399
30400	gt_cv_inttypes_pri_broken=yes
30401fi
30402
30403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30404
30405fi
30406{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
30407$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
30408  fi
30409  if test "$gt_cv_inttypes_pri_broken" = yes; then
30410
30411cat >>confdefs.h <<_ACEOF
30412#define PRI_MACROS_BROKEN 1
30413_ACEOF
30414
30415    PRI_MACROS_BROKEN=1
30416  else
30417    PRI_MACROS_BROKEN=0
30418  fi
30419
30420
30421{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
30422$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
30423if test "${ac_cv_header_stdbool_h+set}" = set; then
30424  $as_echo_n "(cached) " >&6
30425else
30426  cat >conftest.$ac_ext <<_ACEOF
30427/* confdefs.h.  */
30428_ACEOF
30429cat confdefs.h >>conftest.$ac_ext
30430cat >>conftest.$ac_ext <<_ACEOF
30431/* end confdefs.h.  */
30432
30433             #include <stdbool.h>
30434             #ifndef bool
30435              "error: bool is not defined"
30436             #endif
30437             #ifndef false
30438              "error: false is not defined"
30439             #endif
30440             #if false
30441              "error: false is not 0"
30442             #endif
30443             #ifndef true
30444              "error: true is not defined"
30445             #endif
30446             #if true != 1
30447              "error: true is not 1"
30448             #endif
30449             #ifndef __bool_true_false_are_defined
30450              "error: __bool_true_false_are_defined is not defined"
30451             #endif
30452
30453             struct s { _Bool s: 1; _Bool t; } s;
30454
30455             char a[true == 1 ? 1 : -1];
30456             char b[false == 0 ? 1 : -1];
30457             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
30458             char d[(bool) 0.5 == true ? 1 : -1];
30459             /* See body of main program for 'e'.  */
30460             char f[(_Bool) 0.0 == false ? 1 : -1];
30461             char g[true];
30462             char h[sizeof (_Bool)];
30463             char i[sizeof s.t];
30464             enum { j = false, k = true, l = false * true, m = true * 256 };
30465             /* The following fails for
30466                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
30467             _Bool n[m];
30468             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
30469             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
30470             /* Catch a bug in an HP-UX C compiler.  See
30471                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
30472                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
30473              */
30474             _Bool q = true;
30475             _Bool *pq = &q;
30476
30477int
30478main ()
30479{
30480
30481             bool e = &s;
30482             *pq |= q;
30483             *pq |= ! q;
30484             /* Refer to every declared value, to avoid compiler optimizations.  */
30485             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
30486                     + !m + !n + !o + !p + !q + !pq);
30487
30488  ;
30489  return 0;
30490}
30491_ACEOF
30492rm -f conftest.$ac_objext
30493if { (ac_try="$ac_compile"
30494case "(($ac_try" in
30495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30496  *) ac_try_echo=$ac_try;;
30497esac
30498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30499$as_echo "$ac_try_echo") >&5
30500  (eval "$ac_compile") 2>conftest.er1
30501  ac_status=$?
30502  grep -v '^ *+' conftest.er1 >conftest.err
30503  rm -f conftest.er1
30504  cat conftest.err >&5
30505  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506  (exit $ac_status); } && {
30507	 test -z "$ac_c_werror_flag" ||
30508	 test ! -s conftest.err
30509       } && test -s conftest.$ac_objext; then
30510  ac_cv_header_stdbool_h=yes
30511else
30512  $as_echo "$as_me: failed program was:" >&5
30513sed 's/^/| /' conftest.$ac_ext >&5
30514
30515	ac_cv_header_stdbool_h=no
30516fi
30517
30518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30519fi
30520{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
30521$as_echo "$ac_cv_header_stdbool_h" >&6; }
30522   { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
30523$as_echo_n "checking for _Bool... " >&6; }
30524if test "${ac_cv_type__Bool+set}" = set; then
30525  $as_echo_n "(cached) " >&6
30526else
30527  ac_cv_type__Bool=no
30528cat >conftest.$ac_ext <<_ACEOF
30529/* confdefs.h.  */
30530_ACEOF
30531cat confdefs.h >>conftest.$ac_ext
30532cat >>conftest.$ac_ext <<_ACEOF
30533/* end confdefs.h.  */
30534$ac_includes_default
30535int
30536main ()
30537{
30538if (sizeof (_Bool))
30539       return 0;
30540  ;
30541  return 0;
30542}
30543_ACEOF
30544rm -f conftest.$ac_objext
30545if { (ac_try="$ac_compile"
30546case "(($ac_try" in
30547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30548  *) ac_try_echo=$ac_try;;
30549esac
30550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30551$as_echo "$ac_try_echo") >&5
30552  (eval "$ac_compile") 2>conftest.er1
30553  ac_status=$?
30554  grep -v '^ *+' conftest.er1 >conftest.err
30555  rm -f conftest.er1
30556  cat conftest.err >&5
30557  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558  (exit $ac_status); } && {
30559	 test -z "$ac_c_werror_flag" ||
30560	 test ! -s conftest.err
30561       } && test -s conftest.$ac_objext; then
30562  cat >conftest.$ac_ext <<_ACEOF
30563/* confdefs.h.  */
30564_ACEOF
30565cat confdefs.h >>conftest.$ac_ext
30566cat >>conftest.$ac_ext <<_ACEOF
30567/* end confdefs.h.  */
30568$ac_includes_default
30569int
30570main ()
30571{
30572if (sizeof ((_Bool)))
30573	  return 0;
30574  ;
30575  return 0;
30576}
30577_ACEOF
30578rm -f conftest.$ac_objext
30579if { (ac_try="$ac_compile"
30580case "(($ac_try" in
30581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30582  *) ac_try_echo=$ac_try;;
30583esac
30584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30585$as_echo "$ac_try_echo") >&5
30586  (eval "$ac_compile") 2>conftest.er1
30587  ac_status=$?
30588  grep -v '^ *+' conftest.er1 >conftest.err
30589  rm -f conftest.er1
30590  cat conftest.err >&5
30591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592  (exit $ac_status); } && {
30593	 test -z "$ac_c_werror_flag" ||
30594	 test ! -s conftest.err
30595       } && test -s conftest.$ac_objext; then
30596  :
30597else
30598  $as_echo "$as_me: failed program was:" >&5
30599sed 's/^/| /' conftest.$ac_ext >&5
30600
30601	ac_cv_type__Bool=yes
30602fi
30603
30604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30605else
30606  $as_echo "$as_me: failed program was:" >&5
30607sed 's/^/| /' conftest.$ac_ext >&5
30608
30609
30610fi
30611
30612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30613fi
30614{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
30615$as_echo "$ac_cv_type__Bool" >&6; }
30616if test "x$ac_cv_type__Bool" = x""yes; then
30617
30618cat >>confdefs.h <<_ACEOF
30619#define HAVE__BOOL 1
30620_ACEOF
30621
30622
30623fi
30624
30625
30626
30627   if true; then
30628  GL_COND_LIBTOOL_TRUE=
30629  GL_COND_LIBTOOL_FALSE='#'
30630else
30631  GL_COND_LIBTOOL_TRUE='#'
30632  GL_COND_LIBTOOL_FALSE=
30633fi
30634
30635  gl_cond_libtool=true
30636  gl_m4_base='libmissing/m4'
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646  gl_source_base='libmissing'
30647
30648
30649  if test $ac_cv_func_alloca_works = no; then
30650    :
30651  fi
30652
30653  # Define an additional variable used in the Makefile substitution.
30654  if test $ac_cv_working_alloca_h = yes; then
30655    { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
30656$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
30657if test "${gl_cv_rpl_alloca+set}" = set; then
30658  $as_echo_n "(cached) " >&6
30659else
30660
30661      cat >conftest.$ac_ext <<_ACEOF
30662/* confdefs.h.  */
30663_ACEOF
30664cat confdefs.h >>conftest.$ac_ext
30665cat >>conftest.$ac_ext <<_ACEOF
30666/* end confdefs.h.  */
30667
30668#if defined __GNUC__ || defined _AIX || defined _MSC_VER
30669        Need own alloca
30670#endif
30671
30672_ACEOF
30673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30674  $EGREP "Need own alloca" >/dev/null 2>&1; then
30675  gl_cv_rpl_alloca=yes
30676else
30677  gl_cv_rpl_alloca=no
30678fi
30679rm -f conftest*
30680
30681
30682fi
30683{ $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
30684$as_echo "$gl_cv_rpl_alloca" >&6; }
30685    if test $gl_cv_rpl_alloca = yes; then
30686
30687cat >>confdefs.h <<\_ACEOF
30688#define HAVE_ALLOCA 1
30689_ACEOF
30690
30691      ALLOCA_H=alloca.h
30692    else
30693                  ALLOCA_H=
30694    fi
30695  else
30696    ALLOCA_H=alloca.h
30697  fi
30698
30699   if test -n "$ALLOCA_H"; then
30700  GL_GENERATE_ALLOCA_H_TRUE=
30701  GL_GENERATE_ALLOCA_H_FALSE='#'
30702else
30703  GL_GENERATE_ALLOCA_H_TRUE='#'
30704  GL_GENERATE_ALLOCA_H_FALSE=
30705fi
30706
30707
30708
30709
30710
30711
30712
30713  FLOAT_H=
30714  REPLACE_FLOAT_LDBL=0
30715  case "$host_os" in
30716    aix* | beos* | openbsd* | mirbsd* | irix*)
30717      FLOAT_H=float.h
30718      ;;
30719    freebsd*)
30720      case "$host_cpu" in
30721        i[34567]86 )
30722          FLOAT_H=float.h
30723          ;;
30724        x86_64 )
30725          # On x86_64 systems, the C compiler may still be generating
30726          # 32-bit code.
30727          cat >conftest.$ac_ext <<_ACEOF
30728/* confdefs.h.  */
30729_ACEOF
30730cat confdefs.h >>conftest.$ac_ext
30731cat >>conftest.$ac_ext <<_ACEOF
30732/* end confdefs.h.  */
30733#if defined __LP64__ || defined __x86_64__ || defined __amd64__
30734             yes
30735             #endif
30736_ACEOF
30737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30738  $EGREP "yes" >/dev/null 2>&1; then
30739  :
30740else
30741  FLOAT_H=float.h
30742fi
30743rm -f conftest*
30744
30745          ;;
30746      esac
30747      ;;
30748    linux*)
30749      case "$host_cpu" in
30750        powerpc*)
30751          FLOAT_H=float.h
30752          ;;
30753      esac
30754      ;;
30755  esac
30756  case "$host_os" in
30757    aix* | freebsd* | linux*)
30758      if test -n "$FLOAT_H"; then
30759        REPLACE_FLOAT_LDBL=1
30760      fi
30761      ;;
30762  esac
30763
30764    REPLACE_ITOLD=0
30765  { $as_echo "$as_me:$LINENO: checking whether conversion from 'int' to 'long double' works" >&5
30766$as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
30767if test "${gl_cv_func_itold_works+set}" = set; then
30768  $as_echo_n "(cached) " >&6
30769else
30770
30771      if test "$cross_compiling" = yes; then
30772  case "$host" in
30773           sparc*-*-linux*)
30774             cat >conftest.$ac_ext <<_ACEOF
30775/* confdefs.h.  */
30776_ACEOF
30777cat confdefs.h >>conftest.$ac_ext
30778cat >>conftest.$ac_ext <<_ACEOF
30779/* end confdefs.h.  */
30780#if defined __LP64__ || defined __arch64__
30781                yes
30782                #endif
30783_ACEOF
30784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30785  $EGREP "yes" >/dev/null 2>&1; then
30786  gl_cv_func_itold_works="guessing no"
30787else
30788  gl_cv_func_itold_works="guessing yes"
30789fi
30790rm -f conftest*
30791
30792             ;;
30793           *) gl_cv_func_itold_works="guessing yes" ;;
30794         esac
30795
30796else
30797  cat >conftest.$ac_ext <<_ACEOF
30798/* confdefs.h.  */
30799_ACEOF
30800cat confdefs.h >>conftest.$ac_ext
30801cat >>conftest.$ac_ext <<_ACEOF
30802/* end confdefs.h.  */
30803
30804int i = -1;
30805volatile long double ld;
30806int main ()
30807{
30808  ld += i * 1.0L;
30809  if (ld > 0)
30810    return 1;
30811  return 0;
30812}
30813_ACEOF
30814rm -f conftest$ac_exeext
30815if { (ac_try="$ac_link"
30816case "(($ac_try" in
30817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30818  *) ac_try_echo=$ac_try;;
30819esac
30820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30821$as_echo "$ac_try_echo") >&5
30822  (eval "$ac_link") 2>&5
30823  ac_status=$?
30824  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30826  { (case "(($ac_try" in
30827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828  *) ac_try_echo=$ac_try;;
30829esac
30830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30831$as_echo "$ac_try_echo") >&5
30832  (eval "$ac_try") 2>&5
30833  ac_status=$?
30834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835  (exit $ac_status); }; }; then
30836  gl_cv_func_itold_works=yes
30837else
30838  $as_echo "$as_me: program exited with status $ac_status" >&5
30839$as_echo "$as_me: failed program was:" >&5
30840sed 's/^/| /' conftest.$ac_ext >&5
30841
30842( exit $ac_status )
30843gl_cv_func_itold_works=no
30844fi
30845rm -rf conftest.dSYM
30846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30847fi
30848
30849
30850
30851fi
30852{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_itold_works" >&5
30853$as_echo "$gl_cv_func_itold_works" >&6; }
30854  case "$gl_cv_func_itold_works" in
30855    *no)
30856      REPLACE_ITOLD=1
30857                  FLOAT_H=float.h
30858      ;;
30859  esac
30860
30861  if test -n "$FLOAT_H"; then
30862
30863
30864
30865
30866
30867
30868
30869
30870     if test $gl_cv_have_include_next = yes; then
30871       gl_cv_next_float_h='<'float.h'>'
30872     else
30873       { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
30874$as_echo_n "checking absolute name of <float.h>... " >&6; }
30875if test "${gl_cv_next_float_h+set}" = set; then
30876  $as_echo_n "(cached) " >&6
30877else
30878
30879
30880
30881  cat >conftest.$ac_ext <<_ACEOF
30882/* confdefs.h.  */
30883_ACEOF
30884cat confdefs.h >>conftest.$ac_ext
30885cat >>conftest.$ac_ext <<_ACEOF
30886/* end confdefs.h.  */
30887#include <float.h>
30888_ACEOF
30889                case "$host_os" in
30890    aix*) gl_absname_cpp="$ac_cpp -C" ;;
30891    *)    gl_absname_cpp="$ac_cpp" ;;
30892  esac
30893
30894  case "$host_os" in
30895    mingw*)
30896                                          gl_dirsep_regex='[/\\]'
30897      ;;
30898    *)
30899      gl_dirsep_regex='\/'
30900      ;;
30901  esac
30902      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30903  gl_header_literal_regex=`echo 'float.h' \
30904                           | sed -e "$gl_make_literal_regex_sed"`
30905  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30906      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30907      s|^/[^/]|//&|
30908      p
30909      q
30910    }'
30911
30912        gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30913  sed -n "$gl_absolute_header_sed"`
30914
30915           gl_header=$gl_cv_absolute_float_h
30916           gl_cv_next_float_h='"'$gl_header'"'
30917
30918
30919fi
30920{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
30921$as_echo "$gl_cv_next_float_h" >&6; }
30922     fi
30923     NEXT_FLOAT_H=$gl_cv_next_float_h
30924
30925     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30926       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30927       gl_next_as_first_directive='<'float.h'>'
30928     else
30929       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30930       gl_next_as_first_directive=$gl_cv_next_float_h
30931     fi
30932     NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
30933
30934
30935
30936
30937  fi
30938
30939   if test -n "$FLOAT_H"; then
30940  GL_GENERATE_FLOAT_H_TRUE=
30941  GL_GENERATE_FLOAT_H_FALSE='#'
30942else
30943  GL_GENERATE_FLOAT_H_TRUE='#'
30944  GL_GENERATE_FLOAT_H_FALSE=
30945fi
30946
30947
30948
30949  if test $REPLACE_FLOAT_LDBL = 1; then
30950
30951
30952
30953
30954
30955
30956
30957
30958  gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
30959
30960  fi
30961  if test $REPLACE_ITOLD = 1; then
30962
30963
30964
30965
30966
30967
30968
30969
30970  gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
30971
30972  fi
30973
30974
30975
30976
30977
30978  :
30979
30980
30981
30982
30983
30984
30985  gl_gettimeofday_timezone=void
30986  if test $ac_cv_func_gettimeofday != yes; then
30987    HAVE_GETTIMEOFDAY=0
30988  else
30989
30990
30991
30992 { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
30993$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
30994if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
30995  $as_echo_n "(cached) " >&6
30996else
30997  if test "$cross_compiling" = yes; then
30998  # When cross-compiling:
30999      case "$host_os" in
31000                # Guess all is fine on glibc systems.
31001        *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
31002                # If we don't know, assume the worst.
31003        *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
31004      esac
31005
31006else
31007  cat >conftest.$ac_ext <<_ACEOF
31008/* confdefs.h.  */
31009_ACEOF
31010cat confdefs.h >>conftest.$ac_ext
31011cat >>conftest.$ac_ext <<_ACEOF
31012/* end confdefs.h.  */
31013#include <string.h>
31014          #include <sys/time.h>
31015          #include <time.h>
31016          #include <stdlib.h>
31017
31018int
31019main ()
31020{
31021
31022          time_t t = 0;
31023          struct tm *lt;
31024          struct tm saved_lt;
31025          struct timeval tv;
31026          lt = localtime (&t);
31027          saved_lt = *lt;
31028          gettimeofday (&tv, NULL);
31029          return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
31030
31031  ;
31032  return 0;
31033}
31034_ACEOF
31035rm -f conftest$ac_exeext
31036if { (ac_try="$ac_link"
31037case "(($ac_try" in
31038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31039  *) ac_try_echo=$ac_try;;
31040esac
31041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31042$as_echo "$ac_try_echo") >&5
31043  (eval "$ac_link") 2>&5
31044  ac_status=$?
31045  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31047  { (case "(($ac_try" in
31048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31049  *) ac_try_echo=$ac_try;;
31050esac
31051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31052$as_echo "$ac_try_echo") >&5
31053  (eval "$ac_try") 2>&5
31054  ac_status=$?
31055  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056  (exit $ac_status); }; }; then
31057  gl_cv_func_gettimeofday_clobber=no
31058else
31059  $as_echo "$as_me: program exited with status $ac_status" >&5
31060$as_echo "$as_me: failed program was:" >&5
31061sed 's/^/| /' conftest.$ac_ext >&5
31062
31063( exit $ac_status )
31064gl_cv_func_gettimeofday_clobber=yes
31065fi
31066rm -rf conftest.dSYM
31067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31068fi
31069
31070
31071fi
31072{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
31073$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
31074
31075 case "$gl_cv_func_gettimeofday_clobber" in
31076   *yes)
31077     REPLACE_GETTIMEOFDAY=1
31078
31079  REPLACE_GMTIME=1
31080  REPLACE_LOCALTIME=1
31081
31082
31083cat >>confdefs.h <<\_ACEOF
31084#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
31085_ACEOF
31086
31087     ;;
31088 esac
31089
31090    { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
31091$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
31092if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
31093  $as_echo_n "(cached) " >&6
31094else
31095  cat >conftest.$ac_ext <<_ACEOF
31096/* confdefs.h.  */
31097_ACEOF
31098cat confdefs.h >>conftest.$ac_ext
31099cat >>conftest.$ac_ext <<_ACEOF
31100/* end confdefs.h.  */
31101#include <sys/time.h>
31102              struct timeval c;
31103              int gettimeofday (struct timeval *restrict, void *restrict);
31104
31105int
31106main ()
31107{
31108/* glibc uses struct timezone * rather than the POSIX void *
31109                 if _GNU_SOURCE is defined.  However, since the only portable
31110                 use of gettimeofday uses NULL as the second parameter, and
31111                 since the glibc definition is actually more typesafe, it is
31112                 not worth wrapping this to get a compliant signature.  */
31113              int (*f) (struct timeval *restrict, void *restrict)
31114                = gettimeofday;
31115              int x = f (&c, 0);
31116              return !(x | c.tv_sec | c.tv_usec);
31117
31118  ;
31119  return 0;
31120}
31121_ACEOF
31122rm -f conftest.$ac_objext
31123if { (ac_try="$ac_compile"
31124case "(($ac_try" in
31125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31126  *) ac_try_echo=$ac_try;;
31127esac
31128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31129$as_echo "$ac_try_echo") >&5
31130  (eval "$ac_compile") 2>conftest.er1
31131  ac_status=$?
31132  grep -v '^ *+' conftest.er1 >conftest.err
31133  rm -f conftest.er1
31134  cat conftest.err >&5
31135  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136  (exit $ac_status); } && {
31137	 test -z "$ac_c_werror_flag" ||
31138	 test ! -s conftest.err
31139       } && test -s conftest.$ac_objext; then
31140  gl_cv_func_gettimeofday_posix_signature=yes
31141else
31142  $as_echo "$as_me: failed program was:" >&5
31143sed 's/^/| /' conftest.$ac_ext >&5
31144
31145	cat >conftest.$ac_ext <<_ACEOF
31146/* confdefs.h.  */
31147_ACEOF
31148cat confdefs.h >>conftest.$ac_ext
31149cat >>conftest.$ac_ext <<_ACEOF
31150/* end confdefs.h.  */
31151#include <sys/time.h>
31152int gettimeofday (struct timeval *restrict, struct timezone *restrict);
31153
31154int
31155main ()
31156{
31157
31158  ;
31159  return 0;
31160}
31161_ACEOF
31162rm -f conftest.$ac_objext
31163if { (ac_try="$ac_compile"
31164case "(($ac_try" in
31165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166  *) ac_try_echo=$ac_try;;
31167esac
31168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31169$as_echo "$ac_try_echo") >&5
31170  (eval "$ac_compile") 2>conftest.er1
31171  ac_status=$?
31172  grep -v '^ *+' conftest.er1 >conftest.err
31173  rm -f conftest.er1
31174  cat conftest.err >&5
31175  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176  (exit $ac_status); } && {
31177	 test -z "$ac_c_werror_flag" ||
31178	 test ! -s conftest.err
31179       } && test -s conftest.$ac_objext; then
31180  gl_cv_func_gettimeofday_posix_signature=almost
31181else
31182  $as_echo "$as_me: failed program was:" >&5
31183sed 's/^/| /' conftest.$ac_ext >&5
31184
31185	gl_cv_func_gettimeofday_posix_signature=no
31186fi
31187
31188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31189fi
31190
31191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31192fi
31193{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
31194$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
31195    if test $gl_cv_func_gettimeofday_posix_signature = almost; then
31196      gl_gettimeofday_timezone='struct timezone'
31197    elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
31198      REPLACE_GETTIMEOFDAY=1
31199    fi
31200        if test $REPLACE_STRUCT_TIMEVAL = 1; then
31201      REPLACE_GETTIMEOFDAY=1
31202    fi
31203
31204  fi
31205
31206cat >>confdefs.h <<_ACEOF
31207#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
31208_ACEOF
31209
31210
31211  if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
31212
31213
31214
31215
31216
31217
31218
31219
31220  gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
31221
31222
31223
31224for ac_header in sys/timeb.h
31225do
31226as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31228  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31229$as_echo_n "checking for $ac_header... " >&6; }
31230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31231  $as_echo_n "(cached) " >&6
31232fi
31233ac_res=`eval 'as_val=${'$as_ac_Header'}
31234		 $as_echo "$as_val"'`
31235	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31236$as_echo "$ac_res" >&6; }
31237else
31238  # Is the header compilable?
31239{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31240$as_echo_n "checking $ac_header usability... " >&6; }
31241cat >conftest.$ac_ext <<_ACEOF
31242/* confdefs.h.  */
31243_ACEOF
31244cat confdefs.h >>conftest.$ac_ext
31245cat >>conftest.$ac_ext <<_ACEOF
31246/* end confdefs.h.  */
31247$ac_includes_default
31248#include <$ac_header>
31249_ACEOF
31250rm -f conftest.$ac_objext
31251if { (ac_try="$ac_compile"
31252case "(($ac_try" in
31253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31254  *) ac_try_echo=$ac_try;;
31255esac
31256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31257$as_echo "$ac_try_echo") >&5
31258  (eval "$ac_compile") 2>conftest.er1
31259  ac_status=$?
31260  grep -v '^ *+' conftest.er1 >conftest.err
31261  rm -f conftest.er1
31262  cat conftest.err >&5
31263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31264  (exit $ac_status); } && {
31265	 test -z "$ac_c_werror_flag" ||
31266	 test ! -s conftest.err
31267       } && test -s conftest.$ac_objext; then
31268  ac_header_compiler=yes
31269else
31270  $as_echo "$as_me: failed program was:" >&5
31271sed 's/^/| /' conftest.$ac_ext >&5
31272
31273	ac_header_compiler=no
31274fi
31275
31276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31277{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31278$as_echo "$ac_header_compiler" >&6; }
31279
31280# Is the header present?
31281{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31282$as_echo_n "checking $ac_header presence... " >&6; }
31283cat >conftest.$ac_ext <<_ACEOF
31284/* confdefs.h.  */
31285_ACEOF
31286cat confdefs.h >>conftest.$ac_ext
31287cat >>conftest.$ac_ext <<_ACEOF
31288/* end confdefs.h.  */
31289#include <$ac_header>
31290_ACEOF
31291if { (ac_try="$ac_cpp conftest.$ac_ext"
31292case "(($ac_try" in
31293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31294  *) ac_try_echo=$ac_try;;
31295esac
31296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31297$as_echo "$ac_try_echo") >&5
31298  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31299  ac_status=$?
31300  grep -v '^ *+' conftest.er1 >conftest.err
31301  rm -f conftest.er1
31302  cat conftest.err >&5
31303  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304  (exit $ac_status); } >/dev/null && {
31305	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31306	 test ! -s conftest.err
31307       }; then
31308  ac_header_preproc=yes
31309else
31310  $as_echo "$as_me: failed program was:" >&5
31311sed 's/^/| /' conftest.$ac_ext >&5
31312
31313  ac_header_preproc=no
31314fi
31315
31316rm -f conftest.err conftest.$ac_ext
31317{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31318$as_echo "$ac_header_preproc" >&6; }
31319
31320# So?  What about this header?
31321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31322  yes:no: )
31323    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31324$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31325    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31326$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31327    ac_header_preproc=yes
31328    ;;
31329  no:yes:* )
31330    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31331$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31332    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31333$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31334    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31335$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31336    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31337$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31338    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31339$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31340    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31341$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31342
31343    ;;
31344esac
31345{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31346$as_echo_n "checking for $ac_header... " >&6; }
31347if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31348  $as_echo_n "(cached) " >&6
31349else
31350  eval "$as_ac_Header=\$ac_header_preproc"
31351fi
31352ac_res=`eval 'as_val=${'$as_ac_Header'}
31353		 $as_echo "$as_val"'`
31354	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31355$as_echo "$ac_res" >&6; }
31356
31357fi
31358as_val=`eval 'as_val=${'$as_ac_Header'}
31359		 $as_echo "$as_val"'`
31360   if test "x$as_val" = x""yes; then
31361  cat >>confdefs.h <<_ACEOF
31362#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31363_ACEOF
31364
31365fi
31366
31367done
31368
31369
31370for ac_func in _ftime
31371do
31372as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31373{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31374$as_echo_n "checking for $ac_func... " >&6; }
31375if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31376  $as_echo_n "(cached) " >&6
31377else
31378  cat >conftest.$ac_ext <<_ACEOF
31379/* confdefs.h.  */
31380_ACEOF
31381cat confdefs.h >>conftest.$ac_ext
31382cat >>conftest.$ac_ext <<_ACEOF
31383/* end confdefs.h.  */
31384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31385   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31386#define $ac_func innocuous_$ac_func
31387
31388/* System header to define __stub macros and hopefully few prototypes,
31389    which can conflict with char $ac_func (); below.
31390    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31391    <limits.h> exists even on freestanding compilers.  */
31392
31393#ifdef __STDC__
31394# include <limits.h>
31395#else
31396# include <assert.h>
31397#endif
31398
31399#undef $ac_func
31400
31401/* Override any GCC internal prototype to avoid an error.
31402   Use char because int might match the return type of a GCC
31403   builtin and then its argument prototype would still apply.  */
31404#ifdef __cplusplus
31405extern "C"
31406#endif
31407char $ac_func ();
31408/* The GNU C library defines this for functions which it implements
31409    to always fail with ENOSYS.  Some functions are actually named
31410    something starting with __ and the normal name is an alias.  */
31411#if defined __stub_$ac_func || defined __stub___$ac_func
31412choke me
31413#endif
31414
31415int
31416main ()
31417{
31418return $ac_func ();
31419  ;
31420  return 0;
31421}
31422_ACEOF
31423rm -f conftest.$ac_objext conftest$ac_exeext
31424if { (ac_try="$ac_link"
31425case "(($ac_try" in
31426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427  *) ac_try_echo=$ac_try;;
31428esac
31429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31430$as_echo "$ac_try_echo") >&5
31431  (eval "$ac_link") 2>conftest.er1
31432  ac_status=$?
31433  grep -v '^ *+' conftest.er1 >conftest.err
31434  rm -f conftest.er1
31435  cat conftest.err >&5
31436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437  (exit $ac_status); } && {
31438	 test -z "$ac_c_werror_flag" ||
31439	 test ! -s conftest.err
31440       } && test -s conftest$ac_exeext && {
31441	 test "$cross_compiling" = yes ||
31442	 $as_test_x conftest$ac_exeext
31443       }; then
31444  eval "$as_ac_var=yes"
31445else
31446  $as_echo "$as_me: failed program was:" >&5
31447sed 's/^/| /' conftest.$ac_ext >&5
31448
31449	eval "$as_ac_var=no"
31450fi
31451
31452rm -rf conftest.dSYM
31453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31454      conftest$ac_exeext conftest.$ac_ext
31455fi
31456ac_res=`eval 'as_val=${'$as_ac_var'}
31457		 $as_echo "$as_val"'`
31458	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31459$as_echo "$ac_res" >&6; }
31460as_val=`eval 'as_val=${'$as_ac_var'}
31461		 $as_echo "$as_val"'`
31462   if test "x$as_val" = x""yes; then
31463  cat >>confdefs.h <<_ACEOF
31464#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31465_ACEOF
31466
31467fi
31468done
31469
31470
31471  fi
31472
31473
31474
31475
31476
31477          GNULIB_GETTIMEOFDAY=1
31478
31479
31480
31481
31482
31483cat >>confdefs.h <<\_ACEOF
31484#define GNULIB_TEST_GETTIMEOFDAY 1
31485_ACEOF
31486
31487
31488
31489
31490
31491  if test "$gl_threads_api" = posix; then
31492    # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
31493    # pthread_rwlock_* functions.
31494    { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
31495$as_echo_n "checking for pthread_rwlock_t... " >&6; }
31496if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
31497  $as_echo_n "(cached) " >&6
31498else
31499  ac_cv_type_pthread_rwlock_t=no
31500cat >conftest.$ac_ext <<_ACEOF
31501/* confdefs.h.  */
31502_ACEOF
31503cat confdefs.h >>conftest.$ac_ext
31504cat >>conftest.$ac_ext <<_ACEOF
31505/* end confdefs.h.  */
31506#include <pthread.h>
31507
31508int
31509main ()
31510{
31511if (sizeof (pthread_rwlock_t))
31512       return 0;
31513  ;
31514  return 0;
31515}
31516_ACEOF
31517rm -f conftest.$ac_objext
31518if { (ac_try="$ac_compile"
31519case "(($ac_try" in
31520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521  *) ac_try_echo=$ac_try;;
31522esac
31523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31524$as_echo "$ac_try_echo") >&5
31525  (eval "$ac_compile") 2>conftest.er1
31526  ac_status=$?
31527  grep -v '^ *+' conftest.er1 >conftest.err
31528  rm -f conftest.er1
31529  cat conftest.err >&5
31530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531  (exit $ac_status); } && {
31532	 test -z "$ac_c_werror_flag" ||
31533	 test ! -s conftest.err
31534       } && test -s conftest.$ac_objext; then
31535  cat >conftest.$ac_ext <<_ACEOF
31536/* confdefs.h.  */
31537_ACEOF
31538cat confdefs.h >>conftest.$ac_ext
31539cat >>conftest.$ac_ext <<_ACEOF
31540/* end confdefs.h.  */
31541#include <pthread.h>
31542
31543int
31544main ()
31545{
31546if (sizeof ((pthread_rwlock_t)))
31547	  return 0;
31548  ;
31549  return 0;
31550}
31551_ACEOF
31552rm -f conftest.$ac_objext
31553if { (ac_try="$ac_compile"
31554case "(($ac_try" in
31555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31556  *) ac_try_echo=$ac_try;;
31557esac
31558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31559$as_echo "$ac_try_echo") >&5
31560  (eval "$ac_compile") 2>conftest.er1
31561  ac_status=$?
31562  grep -v '^ *+' conftest.er1 >conftest.err
31563  rm -f conftest.er1
31564  cat conftest.err >&5
31565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566  (exit $ac_status); } && {
31567	 test -z "$ac_c_werror_flag" ||
31568	 test ! -s conftest.err
31569       } && test -s conftest.$ac_objext; then
31570  :
31571else
31572  $as_echo "$as_me: failed program was:" >&5
31573sed 's/^/| /' conftest.$ac_ext >&5
31574
31575	ac_cv_type_pthread_rwlock_t=yes
31576fi
31577
31578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31579else
31580  $as_echo "$as_me: failed program was:" >&5
31581sed 's/^/| /' conftest.$ac_ext >&5
31582
31583
31584fi
31585
31586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31587fi
31588{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
31589$as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
31590if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
31591
31592cat >>confdefs.h <<\_ACEOF
31593#define HAVE_PTHREAD_RWLOCK 1
31594_ACEOF
31595
31596fi
31597
31598    # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
31599    cat >conftest.$ac_ext <<_ACEOF
31600
31601      /* confdefs.h.  */
31602_ACEOF
31603cat confdefs.h >>conftest.$ac_ext
31604cat >>conftest.$ac_ext <<_ACEOF
31605/* end confdefs.h.  */
31606#include <pthread.h>
31607int
31608main ()
31609{
31610
31611#if __FreeBSD__ == 4
31612error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
31613#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
31614       && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
31615error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
31616#else
31617int x = (int)PTHREAD_MUTEX_RECURSIVE;
31618return !x;
31619#endif
31620
31621  ;
31622  return 0;
31623}
31624_ACEOF
31625rm -f conftest.$ac_objext
31626if { (ac_try="$ac_compile"
31627case "(($ac_try" in
31628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31629  *) ac_try_echo=$ac_try;;
31630esac
31631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31632$as_echo "$ac_try_echo") >&5
31633  (eval "$ac_compile") 2>conftest.er1
31634  ac_status=$?
31635  grep -v '^ *+' conftest.er1 >conftest.err
31636  rm -f conftest.er1
31637  cat conftest.err >&5
31638  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31639  (exit $ac_status); } && {
31640	 test -z "$ac_c_werror_flag" ||
31641	 test ! -s conftest.err
31642       } && test -s conftest.$ac_objext; then
31643
31644cat >>confdefs.h <<\_ACEOF
31645#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
31646_ACEOF
31647
31648else
31649  $as_echo "$as_me: failed program was:" >&5
31650sed 's/^/| /' conftest.$ac_ext >&5
31651
31652
31653fi
31654
31655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31656  fi
31657  :
31658
31659
31660
31661cat >>confdefs.h <<_ACEOF
31662#define GNULIB_LOCK 1
31663_ACEOF
31664
31665
31666
31667
31668
31669  if test $gl_cv_func_malloc_posix = yes; then
31670
31671cat >>confdefs.h <<\_ACEOF
31672#define HAVE_MALLOC_POSIX 1
31673_ACEOF
31674
31675  else
31676    REPLACE_MALLOC=1
31677  fi
31678
31679  if test $REPLACE_MALLOC = 1; then
31680
31681
31682
31683
31684
31685
31686
31687
31688  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
31689
31690  fi
31691
31692
31693
31694
31695
31696          GNULIB_MALLOC_POSIX=1
31697
31698
31699
31700
31701
31702cat >>confdefs.h <<\_ACEOF
31703#define GNULIB_TEST_MALLOC_POSIX 1
31704_ACEOF
31705
31706
31707
31708
31709  if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
31710
31711
31712
31713
31714
31715
31716
31717
31718  gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
31719
31720
31721
31722for ac_header in bp-sym.h
31723do
31724as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31726  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31727$as_echo_n "checking for $ac_header... " >&6; }
31728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31729  $as_echo_n "(cached) " >&6
31730fi
31731ac_res=`eval 'as_val=${'$as_ac_Header'}
31732		 $as_echo "$as_val"'`
31733	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31734$as_echo "$ac_res" >&6; }
31735else
31736  # Is the header compilable?
31737{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31738$as_echo_n "checking $ac_header usability... " >&6; }
31739cat >conftest.$ac_ext <<_ACEOF
31740/* confdefs.h.  */
31741_ACEOF
31742cat confdefs.h >>conftest.$ac_ext
31743cat >>conftest.$ac_ext <<_ACEOF
31744/* end confdefs.h.  */
31745$ac_includes_default
31746#include <$ac_header>
31747_ACEOF
31748rm -f conftest.$ac_objext
31749if { (ac_try="$ac_compile"
31750case "(($ac_try" in
31751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752  *) ac_try_echo=$ac_try;;
31753esac
31754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31755$as_echo "$ac_try_echo") >&5
31756  (eval "$ac_compile") 2>conftest.er1
31757  ac_status=$?
31758  grep -v '^ *+' conftest.er1 >conftest.err
31759  rm -f conftest.er1
31760  cat conftest.err >&5
31761  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762  (exit $ac_status); } && {
31763	 test -z "$ac_c_werror_flag" ||
31764	 test ! -s conftest.err
31765       } && test -s conftest.$ac_objext; then
31766  ac_header_compiler=yes
31767else
31768  $as_echo "$as_me: failed program was:" >&5
31769sed 's/^/| /' conftest.$ac_ext >&5
31770
31771	ac_header_compiler=no
31772fi
31773
31774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31775{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31776$as_echo "$ac_header_compiler" >&6; }
31777
31778# Is the header present?
31779{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31780$as_echo_n "checking $ac_header presence... " >&6; }
31781cat >conftest.$ac_ext <<_ACEOF
31782/* confdefs.h.  */
31783_ACEOF
31784cat confdefs.h >>conftest.$ac_ext
31785cat >>conftest.$ac_ext <<_ACEOF
31786/* end confdefs.h.  */
31787#include <$ac_header>
31788_ACEOF
31789if { (ac_try="$ac_cpp conftest.$ac_ext"
31790case "(($ac_try" in
31791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31792  *) ac_try_echo=$ac_try;;
31793esac
31794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31795$as_echo "$ac_try_echo") >&5
31796  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31797  ac_status=$?
31798  grep -v '^ *+' conftest.er1 >conftest.err
31799  rm -f conftest.er1
31800  cat conftest.err >&5
31801  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802  (exit $ac_status); } >/dev/null && {
31803	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31804	 test ! -s conftest.err
31805       }; then
31806  ac_header_preproc=yes
31807else
31808  $as_echo "$as_me: failed program was:" >&5
31809sed 's/^/| /' conftest.$ac_ext >&5
31810
31811  ac_header_preproc=no
31812fi
31813
31814rm -f conftest.err conftest.$ac_ext
31815{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31816$as_echo "$ac_header_preproc" >&6; }
31817
31818# So?  What about this header?
31819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31820  yes:no: )
31821    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31822$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31823    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31824$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31825    ac_header_preproc=yes
31826    ;;
31827  no:yes:* )
31828    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31829$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31830    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31831$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31832    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31833$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31834    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31835$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31836    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31837$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31838    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31839$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31840
31841    ;;
31842esac
31843{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31844$as_echo_n "checking for $ac_header... " >&6; }
31845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31846  $as_echo_n "(cached) " >&6
31847else
31848  eval "$as_ac_Header=\$ac_header_preproc"
31849fi
31850ac_res=`eval 'as_val=${'$as_ac_Header'}
31851		 $as_echo "$as_val"'`
31852	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31853$as_echo "$ac_res" >&6; }
31854
31855fi
31856as_val=`eval 'as_val=${'$as_ac_Header'}
31857		 $as_echo "$as_val"'`
31858   if test "x$as_val" = x""yes; then
31859  cat >>confdefs.h <<_ACEOF
31860#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31861_ACEOF
31862
31863fi
31864
31865done
31866
31867
31868  fi
31869
31870
31871
31872
31873
31874          GNULIB_MEMCHR=1
31875
31876
31877
31878
31879
31880cat >>confdefs.h <<\_ACEOF
31881#define GNULIB_TEST_MEMCHR 1
31882_ACEOF
31883
31884
31885
31886
31887
31888
31889
31890
31891  :
31892
31893
31894
31895
31896
31897  if test $ac_cv_have_decl_memrchr = no; then
31898    HAVE_DECL_MEMRCHR=0
31899  fi
31900
31901
31902for ac_func in memrchr
31903do
31904as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31905{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31906$as_echo_n "checking for $ac_func... " >&6; }
31907if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31908  $as_echo_n "(cached) " >&6
31909else
31910  cat >conftest.$ac_ext <<_ACEOF
31911/* confdefs.h.  */
31912_ACEOF
31913cat confdefs.h >>conftest.$ac_ext
31914cat >>conftest.$ac_ext <<_ACEOF
31915/* end confdefs.h.  */
31916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31917   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31918#define $ac_func innocuous_$ac_func
31919
31920/* System header to define __stub macros and hopefully few prototypes,
31921    which can conflict with char $ac_func (); below.
31922    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31923    <limits.h> exists even on freestanding compilers.  */
31924
31925#ifdef __STDC__
31926# include <limits.h>
31927#else
31928# include <assert.h>
31929#endif
31930
31931#undef $ac_func
31932
31933/* Override any GCC internal prototype to avoid an error.
31934   Use char because int might match the return type of a GCC
31935   builtin and then its argument prototype would still apply.  */
31936#ifdef __cplusplus
31937extern "C"
31938#endif
31939char $ac_func ();
31940/* The GNU C library defines this for functions which it implements
31941    to always fail with ENOSYS.  Some functions are actually named
31942    something starting with __ and the normal name is an alias.  */
31943#if defined __stub_$ac_func || defined __stub___$ac_func
31944choke me
31945#endif
31946
31947int
31948main ()
31949{
31950return $ac_func ();
31951  ;
31952  return 0;
31953}
31954_ACEOF
31955rm -f conftest.$ac_objext conftest$ac_exeext
31956if { (ac_try="$ac_link"
31957case "(($ac_try" in
31958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959  *) ac_try_echo=$ac_try;;
31960esac
31961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31962$as_echo "$ac_try_echo") >&5
31963  (eval "$ac_link") 2>conftest.er1
31964  ac_status=$?
31965  grep -v '^ *+' conftest.er1 >conftest.err
31966  rm -f conftest.er1
31967  cat conftest.err >&5
31968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969  (exit $ac_status); } && {
31970	 test -z "$ac_c_werror_flag" ||
31971	 test ! -s conftest.err
31972       } && test -s conftest$ac_exeext && {
31973	 test "$cross_compiling" = yes ||
31974	 $as_test_x conftest$ac_exeext
31975       }; then
31976  eval "$as_ac_var=yes"
31977else
31978  $as_echo "$as_me: failed program was:" >&5
31979sed 's/^/| /' conftest.$ac_ext >&5
31980
31981	eval "$as_ac_var=no"
31982fi
31983
31984rm -rf conftest.dSYM
31985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31986      conftest$ac_exeext conftest.$ac_ext
31987fi
31988ac_res=`eval 'as_val=${'$as_ac_var'}
31989		 $as_echo "$as_val"'`
31990	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31991$as_echo "$ac_res" >&6; }
31992as_val=`eval 'as_val=${'$as_ac_var'}
31993		 $as_echo "$as_val"'`
31994   if test "x$as_val" = x""yes; then
31995  cat >>confdefs.h <<_ACEOF
31996#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31997_ACEOF
31998
31999fi
32000done
32001
32002
32003  if test $ac_cv_func_memrchr = no; then
32004
32005
32006
32007
32008
32009
32010
32011
32012  gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
32013
32014    :
32015  fi
32016
32017
32018
32019
32020
32021          GNULIB_MEMRCHR=1
32022
32023
32024
32025
32026
32027cat >>confdefs.h <<\_ACEOF
32028#define GNULIB_TEST_MEMRCHR 1
32029_ACEOF
32030
32031
32032
32033
32034
32035
32036for ac_header in stdint.h
32037do
32038as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32040  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32041$as_echo_n "checking for $ac_header... " >&6; }
32042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32043  $as_echo_n "(cached) " >&6
32044fi
32045ac_res=`eval 'as_val=${'$as_ac_Header'}
32046		 $as_echo "$as_val"'`
32047	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32048$as_echo "$ac_res" >&6; }
32049else
32050  # Is the header compilable?
32051{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32052$as_echo_n "checking $ac_header usability... " >&6; }
32053cat >conftest.$ac_ext <<_ACEOF
32054/* confdefs.h.  */
32055_ACEOF
32056cat confdefs.h >>conftest.$ac_ext
32057cat >>conftest.$ac_ext <<_ACEOF
32058/* end confdefs.h.  */
32059$ac_includes_default
32060#include <$ac_header>
32061_ACEOF
32062rm -f conftest.$ac_objext
32063if { (ac_try="$ac_compile"
32064case "(($ac_try" in
32065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066  *) ac_try_echo=$ac_try;;
32067esac
32068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32069$as_echo "$ac_try_echo") >&5
32070  (eval "$ac_compile") 2>conftest.er1
32071  ac_status=$?
32072  grep -v '^ *+' conftest.er1 >conftest.err
32073  rm -f conftest.er1
32074  cat conftest.err >&5
32075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076  (exit $ac_status); } && {
32077	 test -z "$ac_c_werror_flag" ||
32078	 test ! -s conftest.err
32079       } && test -s conftest.$ac_objext; then
32080  ac_header_compiler=yes
32081else
32082  $as_echo "$as_me: failed program was:" >&5
32083sed 's/^/| /' conftest.$ac_ext >&5
32084
32085	ac_header_compiler=no
32086fi
32087
32088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32089{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32090$as_echo "$ac_header_compiler" >&6; }
32091
32092# Is the header present?
32093{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32094$as_echo_n "checking $ac_header presence... " >&6; }
32095cat >conftest.$ac_ext <<_ACEOF
32096/* confdefs.h.  */
32097_ACEOF
32098cat confdefs.h >>conftest.$ac_ext
32099cat >>conftest.$ac_ext <<_ACEOF
32100/* end confdefs.h.  */
32101#include <$ac_header>
32102_ACEOF
32103if { (ac_try="$ac_cpp conftest.$ac_ext"
32104case "(($ac_try" in
32105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32106  *) ac_try_echo=$ac_try;;
32107esac
32108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32109$as_echo "$ac_try_echo") >&5
32110  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32111  ac_status=$?
32112  grep -v '^ *+' conftest.er1 >conftest.err
32113  rm -f conftest.er1
32114  cat conftest.err >&5
32115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116  (exit $ac_status); } >/dev/null && {
32117	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32118	 test ! -s conftest.err
32119       }; then
32120  ac_header_preproc=yes
32121else
32122  $as_echo "$as_me: failed program was:" >&5
32123sed 's/^/| /' conftest.$ac_ext >&5
32124
32125  ac_header_preproc=no
32126fi
32127
32128rm -f conftest.err conftest.$ac_ext
32129{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32130$as_echo "$ac_header_preproc" >&6; }
32131
32132# So?  What about this header?
32133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32134  yes:no: )
32135    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32136$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32137    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32138$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32139    ac_header_preproc=yes
32140    ;;
32141  no:yes:* )
32142    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32143$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32144    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32145$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32146    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32147$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32148    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32149$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32150    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32151$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32152    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32153$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32154
32155    ;;
32156esac
32157{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32158$as_echo_n "checking for $ac_header... " >&6; }
32159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32160  $as_echo_n "(cached) " >&6
32161else
32162  eval "$as_ac_Header=\$ac_header_preproc"
32163fi
32164ac_res=`eval 'as_val=${'$as_ac_Header'}
32165		 $as_echo "$as_val"'`
32166	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32167$as_echo "$ac_res" >&6; }
32168
32169fi
32170as_val=`eval 'as_val=${'$as_ac_Header'}
32171		 $as_echo "$as_val"'`
32172   if test "x$as_val" = x""yes; then
32173  cat >>confdefs.h <<_ACEOF
32174#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32175_ACEOF
32176
32177fi
32178
32179done
32180
32181    { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
32182$as_echo_n "checking for SIZE_MAX... " >&6; }
32183if test "${gl_cv_size_max+set}" = set; then
32184  $as_echo_n "(cached) " >&6
32185else
32186
32187    gl_cv_size_max=
32188    cat >conftest.$ac_ext <<_ACEOF
32189/* confdefs.h.  */
32190_ACEOF
32191cat confdefs.h >>conftest.$ac_ext
32192cat >>conftest.$ac_ext <<_ACEOF
32193/* end confdefs.h.  */
32194
32195#include <limits.h>
32196#if HAVE_STDINT_H
32197#include <stdint.h>
32198#endif
32199#ifdef SIZE_MAX
32200Found it
32201#endif
32202
32203_ACEOF
32204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32205  $EGREP "Found it" >/dev/null 2>&1; then
32206  gl_cv_size_max=yes
32207fi
32208rm -f conftest*
32209
32210    if test -z "$gl_cv_size_max"; then
32211                        if test "$cross_compiling" = yes; then
32212  # Depending upon the size, compute the lo and hi bounds.
32213cat >conftest.$ac_ext <<_ACEOF
32214/* confdefs.h.  */
32215_ACEOF
32216cat confdefs.h >>conftest.$ac_ext
32217cat >>conftest.$ac_ext <<_ACEOF
32218/* end confdefs.h.  */
32219#include <stddef.h>
32220#include <limits.h>
32221int
32222main ()
32223{
32224static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
32225test_array [0] = 0
32226
32227  ;
32228  return 0;
32229}
32230_ACEOF
32231rm -f conftest.$ac_objext
32232if { (ac_try="$ac_compile"
32233case "(($ac_try" in
32234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235  *) ac_try_echo=$ac_try;;
32236esac
32237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32238$as_echo "$ac_try_echo") >&5
32239  (eval "$ac_compile") 2>conftest.er1
32240  ac_status=$?
32241  grep -v '^ *+' conftest.er1 >conftest.err
32242  rm -f conftest.er1
32243  cat conftest.err >&5
32244  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245  (exit $ac_status); } && {
32246	 test -z "$ac_c_werror_flag" ||
32247	 test ! -s conftest.err
32248       } && test -s conftest.$ac_objext; then
32249  ac_lo=0 ac_mid=0
32250  while :; do
32251    cat >conftest.$ac_ext <<_ACEOF
32252/* confdefs.h.  */
32253_ACEOF
32254cat confdefs.h >>conftest.$ac_ext
32255cat >>conftest.$ac_ext <<_ACEOF
32256/* end confdefs.h.  */
32257#include <stddef.h>
32258#include <limits.h>
32259int
32260main ()
32261{
32262static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
32263test_array [0] = 0
32264
32265  ;
32266  return 0;
32267}
32268_ACEOF
32269rm -f conftest.$ac_objext
32270if { (ac_try="$ac_compile"
32271case "(($ac_try" in
32272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32273  *) ac_try_echo=$ac_try;;
32274esac
32275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32276$as_echo "$ac_try_echo") >&5
32277  (eval "$ac_compile") 2>conftest.er1
32278  ac_status=$?
32279  grep -v '^ *+' conftest.er1 >conftest.err
32280  rm -f conftest.er1
32281  cat conftest.err >&5
32282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283  (exit $ac_status); } && {
32284	 test -z "$ac_c_werror_flag" ||
32285	 test ! -s conftest.err
32286       } && test -s conftest.$ac_objext; then
32287  ac_hi=$ac_mid; break
32288else
32289  $as_echo "$as_me: failed program was:" >&5
32290sed 's/^/| /' conftest.$ac_ext >&5
32291
32292	ac_lo=`expr $ac_mid + 1`
32293			if test $ac_lo -le $ac_mid; then
32294			  ac_lo= ac_hi=
32295			  break
32296			fi
32297			ac_mid=`expr 2 '*' $ac_mid + 1`
32298fi
32299
32300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32301  done
32302else
32303  $as_echo "$as_me: failed program was:" >&5
32304sed 's/^/| /' conftest.$ac_ext >&5
32305
32306	cat >conftest.$ac_ext <<_ACEOF
32307/* confdefs.h.  */
32308_ACEOF
32309cat confdefs.h >>conftest.$ac_ext
32310cat >>conftest.$ac_ext <<_ACEOF
32311/* end confdefs.h.  */
32312#include <stddef.h>
32313#include <limits.h>
32314int
32315main ()
32316{
32317static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
32318test_array [0] = 0
32319
32320  ;
32321  return 0;
32322}
32323_ACEOF
32324rm -f conftest.$ac_objext
32325if { (ac_try="$ac_compile"
32326case "(($ac_try" in
32327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32328  *) ac_try_echo=$ac_try;;
32329esac
32330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32331$as_echo "$ac_try_echo") >&5
32332  (eval "$ac_compile") 2>conftest.er1
32333  ac_status=$?
32334  grep -v '^ *+' conftest.er1 >conftest.err
32335  rm -f conftest.er1
32336  cat conftest.err >&5
32337  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32338  (exit $ac_status); } && {
32339	 test -z "$ac_c_werror_flag" ||
32340	 test ! -s conftest.err
32341       } && test -s conftest.$ac_objext; then
32342  ac_hi=-1 ac_mid=-1
32343  while :; do
32344    cat >conftest.$ac_ext <<_ACEOF
32345/* confdefs.h.  */
32346_ACEOF
32347cat confdefs.h >>conftest.$ac_ext
32348cat >>conftest.$ac_ext <<_ACEOF
32349/* end confdefs.h.  */
32350#include <stddef.h>
32351#include <limits.h>
32352int
32353main ()
32354{
32355static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
32356test_array [0] = 0
32357
32358  ;
32359  return 0;
32360}
32361_ACEOF
32362rm -f conftest.$ac_objext
32363if { (ac_try="$ac_compile"
32364case "(($ac_try" in
32365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32366  *) ac_try_echo=$ac_try;;
32367esac
32368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32369$as_echo "$ac_try_echo") >&5
32370  (eval "$ac_compile") 2>conftest.er1
32371  ac_status=$?
32372  grep -v '^ *+' conftest.er1 >conftest.err
32373  rm -f conftest.er1
32374  cat conftest.err >&5
32375  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376  (exit $ac_status); } && {
32377	 test -z "$ac_c_werror_flag" ||
32378	 test ! -s conftest.err
32379       } && test -s conftest.$ac_objext; then
32380  ac_lo=$ac_mid; break
32381else
32382  $as_echo "$as_me: failed program was:" >&5
32383sed 's/^/| /' conftest.$ac_ext >&5
32384
32385	ac_hi=`expr '(' $ac_mid ')' - 1`
32386			if test $ac_mid -le $ac_hi; then
32387			  ac_lo= ac_hi=
32388			  break
32389			fi
32390			ac_mid=`expr 2 '*' $ac_mid`
32391fi
32392
32393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32394  done
32395else
32396  $as_echo "$as_me: failed program was:" >&5
32397sed 's/^/| /' conftest.$ac_ext >&5
32398
32399	ac_lo= ac_hi=
32400fi
32401
32402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32403fi
32404
32405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32406# Binary search between lo and hi bounds.
32407while test "x$ac_lo" != "x$ac_hi"; do
32408  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32409  cat >conftest.$ac_ext <<_ACEOF
32410/* confdefs.h.  */
32411_ACEOF
32412cat confdefs.h >>conftest.$ac_ext
32413cat >>conftest.$ac_ext <<_ACEOF
32414/* end confdefs.h.  */
32415#include <stddef.h>
32416#include <limits.h>
32417int
32418main ()
32419{
32420static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
32421test_array [0] = 0
32422
32423  ;
32424  return 0;
32425}
32426_ACEOF
32427rm -f conftest.$ac_objext
32428if { (ac_try="$ac_compile"
32429case "(($ac_try" in
32430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32431  *) ac_try_echo=$ac_try;;
32432esac
32433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32434$as_echo "$ac_try_echo") >&5
32435  (eval "$ac_compile") 2>conftest.er1
32436  ac_status=$?
32437  grep -v '^ *+' conftest.er1 >conftest.err
32438  rm -f conftest.er1
32439  cat conftest.err >&5
32440  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441  (exit $ac_status); } && {
32442	 test -z "$ac_c_werror_flag" ||
32443	 test ! -s conftest.err
32444       } && test -s conftest.$ac_objext; then
32445  ac_hi=$ac_mid
32446else
32447  $as_echo "$as_me: failed program was:" >&5
32448sed 's/^/| /' conftest.$ac_ext >&5
32449
32450	ac_lo=`expr '(' $ac_mid ')' + 1`
32451fi
32452
32453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32454done
32455case $ac_lo in
32456?*) size_t_bits_minus_1=$ac_lo;;
32457'') size_t_bits_minus_1= ;;
32458esac
32459else
32460  cat >conftest.$ac_ext <<_ACEOF
32461/* confdefs.h.  */
32462_ACEOF
32463cat confdefs.h >>conftest.$ac_ext
32464cat >>conftest.$ac_ext <<_ACEOF
32465/* end confdefs.h.  */
32466#include <stddef.h>
32467#include <limits.h>
32468static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
32469static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
32470#include <stdio.h>
32471#include <stdlib.h>
32472int
32473main ()
32474{
32475
32476  FILE *f = fopen ("conftest.val", "w");
32477  if (! f)
32478    return 1;
32479  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
32480    {
32481      long int i = longval ();
32482      if (i != (sizeof (size_t) * CHAR_BIT - 1))
32483	return 1;
32484      fprintf (f, "%ld", i);
32485    }
32486  else
32487    {
32488      unsigned long int i = ulongval ();
32489      if (i != (sizeof (size_t) * CHAR_BIT - 1))
32490	return 1;
32491      fprintf (f, "%lu", i);
32492    }
32493  /* Do not output a trailing newline, as this causes \r\n confusion
32494     on some platforms.  */
32495  return ferror (f) || fclose (f) != 0;
32496
32497  ;
32498  return 0;
32499}
32500_ACEOF
32501rm -f conftest$ac_exeext
32502if { (ac_try="$ac_link"
32503case "(($ac_try" in
32504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505  *) ac_try_echo=$ac_try;;
32506esac
32507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32508$as_echo "$ac_try_echo") >&5
32509  (eval "$ac_link") 2>&5
32510  ac_status=$?
32511  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32513  { (case "(($ac_try" in
32514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515  *) ac_try_echo=$ac_try;;
32516esac
32517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32518$as_echo "$ac_try_echo") >&5
32519  (eval "$ac_try") 2>&5
32520  ac_status=$?
32521  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522  (exit $ac_status); }; }; then
32523  size_t_bits_minus_1=`cat conftest.val`
32524else
32525  $as_echo "$as_me: program exited with status $ac_status" >&5
32526$as_echo "$as_me: failed program was:" >&5
32527sed 's/^/| /' conftest.$ac_ext >&5
32528
32529( exit $ac_status )
32530size_t_bits_minus_1=
32531fi
32532rm -rf conftest.dSYM
32533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32534fi
32535rm -f conftest.val
32536      if test "$cross_compiling" = yes; then
32537  # Depending upon the size, compute the lo and hi bounds.
32538cat >conftest.$ac_ext <<_ACEOF
32539/* confdefs.h.  */
32540_ACEOF
32541cat confdefs.h >>conftest.$ac_ext
32542cat >>conftest.$ac_ext <<_ACEOF
32543/* end confdefs.h.  */
32544#include <stddef.h>
32545int
32546main ()
32547{
32548static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
32549test_array [0] = 0
32550
32551  ;
32552  return 0;
32553}
32554_ACEOF
32555rm -f conftest.$ac_objext
32556if { (ac_try="$ac_compile"
32557case "(($ac_try" in
32558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559  *) ac_try_echo=$ac_try;;
32560esac
32561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32562$as_echo "$ac_try_echo") >&5
32563  (eval "$ac_compile") 2>conftest.er1
32564  ac_status=$?
32565  grep -v '^ *+' conftest.er1 >conftest.err
32566  rm -f conftest.er1
32567  cat conftest.err >&5
32568  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569  (exit $ac_status); } && {
32570	 test -z "$ac_c_werror_flag" ||
32571	 test ! -s conftest.err
32572       } && test -s conftest.$ac_objext; then
32573  ac_lo=0 ac_mid=0
32574  while :; do
32575    cat >conftest.$ac_ext <<_ACEOF
32576/* confdefs.h.  */
32577_ACEOF
32578cat confdefs.h >>conftest.$ac_ext
32579cat >>conftest.$ac_ext <<_ACEOF
32580/* end confdefs.h.  */
32581#include <stddef.h>
32582int
32583main ()
32584{
32585static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
32586test_array [0] = 0
32587
32588  ;
32589  return 0;
32590}
32591_ACEOF
32592rm -f conftest.$ac_objext
32593if { (ac_try="$ac_compile"
32594case "(($ac_try" in
32595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596  *) ac_try_echo=$ac_try;;
32597esac
32598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32599$as_echo "$ac_try_echo") >&5
32600  (eval "$ac_compile") 2>conftest.er1
32601  ac_status=$?
32602  grep -v '^ *+' conftest.er1 >conftest.err
32603  rm -f conftest.er1
32604  cat conftest.err >&5
32605  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606  (exit $ac_status); } && {
32607	 test -z "$ac_c_werror_flag" ||
32608	 test ! -s conftest.err
32609       } && test -s conftest.$ac_objext; then
32610  ac_hi=$ac_mid; break
32611else
32612  $as_echo "$as_me: failed program was:" >&5
32613sed 's/^/| /' conftest.$ac_ext >&5
32614
32615	ac_lo=`expr $ac_mid + 1`
32616			if test $ac_lo -le $ac_mid; then
32617			  ac_lo= ac_hi=
32618			  break
32619			fi
32620			ac_mid=`expr 2 '*' $ac_mid + 1`
32621fi
32622
32623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32624  done
32625else
32626  $as_echo "$as_me: failed program was:" >&5
32627sed 's/^/| /' conftest.$ac_ext >&5
32628
32629	cat >conftest.$ac_ext <<_ACEOF
32630/* confdefs.h.  */
32631_ACEOF
32632cat confdefs.h >>conftest.$ac_ext
32633cat >>conftest.$ac_ext <<_ACEOF
32634/* end confdefs.h.  */
32635#include <stddef.h>
32636int
32637main ()
32638{
32639static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
32640test_array [0] = 0
32641
32642  ;
32643  return 0;
32644}
32645_ACEOF
32646rm -f conftest.$ac_objext
32647if { (ac_try="$ac_compile"
32648case "(($ac_try" in
32649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650  *) ac_try_echo=$ac_try;;
32651esac
32652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32653$as_echo "$ac_try_echo") >&5
32654  (eval "$ac_compile") 2>conftest.er1
32655  ac_status=$?
32656  grep -v '^ *+' conftest.er1 >conftest.err
32657  rm -f conftest.er1
32658  cat conftest.err >&5
32659  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660  (exit $ac_status); } && {
32661	 test -z "$ac_c_werror_flag" ||
32662	 test ! -s conftest.err
32663       } && test -s conftest.$ac_objext; then
32664  ac_hi=-1 ac_mid=-1
32665  while :; do
32666    cat >conftest.$ac_ext <<_ACEOF
32667/* confdefs.h.  */
32668_ACEOF
32669cat confdefs.h >>conftest.$ac_ext
32670cat >>conftest.$ac_ext <<_ACEOF
32671/* end confdefs.h.  */
32672#include <stddef.h>
32673int
32674main ()
32675{
32676static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
32677test_array [0] = 0
32678
32679  ;
32680  return 0;
32681}
32682_ACEOF
32683rm -f conftest.$ac_objext
32684if { (ac_try="$ac_compile"
32685case "(($ac_try" in
32686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687  *) ac_try_echo=$ac_try;;
32688esac
32689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32690$as_echo "$ac_try_echo") >&5
32691  (eval "$ac_compile") 2>conftest.er1
32692  ac_status=$?
32693  grep -v '^ *+' conftest.er1 >conftest.err
32694  rm -f conftest.er1
32695  cat conftest.err >&5
32696  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697  (exit $ac_status); } && {
32698	 test -z "$ac_c_werror_flag" ||
32699	 test ! -s conftest.err
32700       } && test -s conftest.$ac_objext; then
32701  ac_lo=$ac_mid; break
32702else
32703  $as_echo "$as_me: failed program was:" >&5
32704sed 's/^/| /' conftest.$ac_ext >&5
32705
32706	ac_hi=`expr '(' $ac_mid ')' - 1`
32707			if test $ac_mid -le $ac_hi; then
32708			  ac_lo= ac_hi=
32709			  break
32710			fi
32711			ac_mid=`expr 2 '*' $ac_mid`
32712fi
32713
32714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32715  done
32716else
32717  $as_echo "$as_me: failed program was:" >&5
32718sed 's/^/| /' conftest.$ac_ext >&5
32719
32720	ac_lo= ac_hi=
32721fi
32722
32723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32724fi
32725
32726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32727# Binary search between lo and hi bounds.
32728while test "x$ac_lo" != "x$ac_hi"; do
32729  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32730  cat >conftest.$ac_ext <<_ACEOF
32731/* confdefs.h.  */
32732_ACEOF
32733cat confdefs.h >>conftest.$ac_ext
32734cat >>conftest.$ac_ext <<_ACEOF
32735/* end confdefs.h.  */
32736#include <stddef.h>
32737int
32738main ()
32739{
32740static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
32741test_array [0] = 0
32742
32743  ;
32744  return 0;
32745}
32746_ACEOF
32747rm -f conftest.$ac_objext
32748if { (ac_try="$ac_compile"
32749case "(($ac_try" in
32750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751  *) ac_try_echo=$ac_try;;
32752esac
32753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32754$as_echo "$ac_try_echo") >&5
32755  (eval "$ac_compile") 2>conftest.er1
32756  ac_status=$?
32757  grep -v '^ *+' conftest.er1 >conftest.err
32758  rm -f conftest.er1
32759  cat conftest.err >&5
32760  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761  (exit $ac_status); } && {
32762	 test -z "$ac_c_werror_flag" ||
32763	 test ! -s conftest.err
32764       } && test -s conftest.$ac_objext; then
32765  ac_hi=$ac_mid
32766else
32767  $as_echo "$as_me: failed program was:" >&5
32768sed 's/^/| /' conftest.$ac_ext >&5
32769
32770	ac_lo=`expr '(' $ac_mid ')' + 1`
32771fi
32772
32773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32774done
32775case $ac_lo in
32776?*) fits_in_uint=$ac_lo;;
32777'') fits_in_uint= ;;
32778esac
32779else
32780  cat >conftest.$ac_ext <<_ACEOF
32781/* confdefs.h.  */
32782_ACEOF
32783cat confdefs.h >>conftest.$ac_ext
32784cat >>conftest.$ac_ext <<_ACEOF
32785/* end confdefs.h.  */
32786#include <stddef.h>
32787static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
32788static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
32789#include <stdio.h>
32790#include <stdlib.h>
32791int
32792main ()
32793{
32794
32795  FILE *f = fopen ("conftest.val", "w");
32796  if (! f)
32797    return 1;
32798  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
32799    {
32800      long int i = longval ();
32801      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
32802	return 1;
32803      fprintf (f, "%ld", i);
32804    }
32805  else
32806    {
32807      unsigned long int i = ulongval ();
32808      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
32809	return 1;
32810      fprintf (f, "%lu", i);
32811    }
32812  /* Do not output a trailing newline, as this causes \r\n confusion
32813     on some platforms.  */
32814  return ferror (f) || fclose (f) != 0;
32815
32816  ;
32817  return 0;
32818}
32819_ACEOF
32820rm -f conftest$ac_exeext
32821if { (ac_try="$ac_link"
32822case "(($ac_try" in
32823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32824  *) ac_try_echo=$ac_try;;
32825esac
32826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32827$as_echo "$ac_try_echo") >&5
32828  (eval "$ac_link") 2>&5
32829  ac_status=$?
32830  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32832  { (case "(($ac_try" in
32833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32834  *) ac_try_echo=$ac_try;;
32835esac
32836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32837$as_echo "$ac_try_echo") >&5
32838  (eval "$ac_try") 2>&5
32839  ac_status=$?
32840  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841  (exit $ac_status); }; }; then
32842  fits_in_uint=`cat conftest.val`
32843else
32844  $as_echo "$as_me: program exited with status $ac_status" >&5
32845$as_echo "$as_me: failed program was:" >&5
32846sed 's/^/| /' conftest.$ac_ext >&5
32847
32848( exit $ac_status )
32849fits_in_uint=
32850fi
32851rm -rf conftest.dSYM
32852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32853fi
32854rm -f conftest.val
32855      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
32856        if test $fits_in_uint = 1; then
32857                              cat >conftest.$ac_ext <<_ACEOF
32858/* confdefs.h.  */
32859_ACEOF
32860cat confdefs.h >>conftest.$ac_ext
32861cat >>conftest.$ac_ext <<_ACEOF
32862/* end confdefs.h.  */
32863#include <stddef.h>
32864                 extern size_t foo;
32865                 extern unsigned long foo;
32866
32867int
32868main ()
32869{
32870
32871  ;
32872  return 0;
32873}
32874_ACEOF
32875rm -f conftest.$ac_objext
32876if { (ac_try="$ac_compile"
32877case "(($ac_try" in
32878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879  *) ac_try_echo=$ac_try;;
32880esac
32881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32882$as_echo "$ac_try_echo") >&5
32883  (eval "$ac_compile") 2>conftest.er1
32884  ac_status=$?
32885  grep -v '^ *+' conftest.er1 >conftest.err
32886  rm -f conftest.er1
32887  cat conftest.err >&5
32888  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889  (exit $ac_status); } && {
32890	 test -z "$ac_c_werror_flag" ||
32891	 test ! -s conftest.err
32892       } && test -s conftest.$ac_objext; then
32893  fits_in_uint=0
32894else
32895  $as_echo "$as_me: failed program was:" >&5
32896sed 's/^/| /' conftest.$ac_ext >&5
32897
32898
32899fi
32900
32901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32902        fi
32903                                if test $fits_in_uint = 1; then
32904          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
32905        else
32906          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
32907        fi
32908      else
32909                gl_cv_size_max='((size_t)~(size_t)0)'
32910      fi
32911    fi
32912
32913fi
32914{ $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
32915$as_echo "$gl_cv_size_max" >&6; }
32916  if test "$gl_cv_size_max" != yes; then
32917
32918cat >>confdefs.h <<_ACEOF
32919#define SIZE_MAX $gl_cv_size_max
32920_ACEOF
32921
32922  fi
32923
32924
32925
32926
32927
32928  gl_cv_func_snprintf_usable=no
32929
32930for ac_func in snprintf
32931do
32932as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32933{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32934$as_echo_n "checking for $ac_func... " >&6; }
32935if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32936  $as_echo_n "(cached) " >&6
32937else
32938  cat >conftest.$ac_ext <<_ACEOF
32939/* confdefs.h.  */
32940_ACEOF
32941cat confdefs.h >>conftest.$ac_ext
32942cat >>conftest.$ac_ext <<_ACEOF
32943/* end confdefs.h.  */
32944/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32945   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32946#define $ac_func innocuous_$ac_func
32947
32948/* System header to define __stub macros and hopefully few prototypes,
32949    which can conflict with char $ac_func (); below.
32950    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32951    <limits.h> exists even on freestanding compilers.  */
32952
32953#ifdef __STDC__
32954# include <limits.h>
32955#else
32956# include <assert.h>
32957#endif
32958
32959#undef $ac_func
32960
32961/* Override any GCC internal prototype to avoid an error.
32962   Use char because int might match the return type of a GCC
32963   builtin and then its argument prototype would still apply.  */
32964#ifdef __cplusplus
32965extern "C"
32966#endif
32967char $ac_func ();
32968/* The GNU C library defines this for functions which it implements
32969    to always fail with ENOSYS.  Some functions are actually named
32970    something starting with __ and the normal name is an alias.  */
32971#if defined __stub_$ac_func || defined __stub___$ac_func
32972choke me
32973#endif
32974
32975int
32976main ()
32977{
32978return $ac_func ();
32979  ;
32980  return 0;
32981}
32982_ACEOF
32983rm -f conftest.$ac_objext conftest$ac_exeext
32984if { (ac_try="$ac_link"
32985case "(($ac_try" in
32986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32987  *) ac_try_echo=$ac_try;;
32988esac
32989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32990$as_echo "$ac_try_echo") >&5
32991  (eval "$ac_link") 2>conftest.er1
32992  ac_status=$?
32993  grep -v '^ *+' conftest.er1 >conftest.err
32994  rm -f conftest.er1
32995  cat conftest.err >&5
32996  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997  (exit $ac_status); } && {
32998	 test -z "$ac_c_werror_flag" ||
32999	 test ! -s conftest.err
33000       } && test -s conftest$ac_exeext && {
33001	 test "$cross_compiling" = yes ||
33002	 $as_test_x conftest$ac_exeext
33003       }; then
33004  eval "$as_ac_var=yes"
33005else
33006  $as_echo "$as_me: failed program was:" >&5
33007sed 's/^/| /' conftest.$ac_ext >&5
33008
33009	eval "$as_ac_var=no"
33010fi
33011
33012rm -rf conftest.dSYM
33013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33014      conftest$ac_exeext conftest.$ac_ext
33015fi
33016ac_res=`eval 'as_val=${'$as_ac_var'}
33017		 $as_echo "$as_val"'`
33018	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33019$as_echo "$ac_res" >&6; }
33020as_val=`eval 'as_val=${'$as_ac_var'}
33021		 $as_echo "$as_val"'`
33022   if test "x$as_val" = x""yes; then
33023  cat >>confdefs.h <<_ACEOF
33024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33025_ACEOF
33026
33027fi
33028done
33029
33030  if test $ac_cv_func_snprintf = yes; then
33031
33032
33033
33034  { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
33035$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
33036if test "${gl_cv_func_snprintf_size1+set}" = set; then
33037  $as_echo_n "(cached) " >&6
33038else
33039
33040      if test "$cross_compiling" = yes; then
33041  gl_cv_func_snprintf_size1="guessing yes"
33042else
33043  cat >conftest.$ac_ext <<_ACEOF
33044/* confdefs.h.  */
33045_ACEOF
33046cat confdefs.h >>conftest.$ac_ext
33047cat >>conftest.$ac_ext <<_ACEOF
33048/* end confdefs.h.  */
33049
33050#include <stdio.h>
33051#if HAVE_SNPRINTF
33052# define my_snprintf snprintf
33053#else
33054# include <stdarg.h>
33055static int my_snprintf (char *buf, int size, const char *format, ...)
33056{
33057  va_list args;
33058  int ret;
33059  va_start (args, format);
33060  ret = vsnprintf (buf, size, format, args);
33061  va_end (args);
33062  return ret;
33063}
33064#endif
33065int main()
33066{
33067  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
33068  my_snprintf (buf, 1, "%d", 12345);
33069  return buf[1] != 'E';
33070}
33071_ACEOF
33072rm -f conftest$ac_exeext
33073if { (ac_try="$ac_link"
33074case "(($ac_try" in
33075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33076  *) ac_try_echo=$ac_try;;
33077esac
33078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33079$as_echo "$ac_try_echo") >&5
33080  (eval "$ac_link") 2>&5
33081  ac_status=$?
33082  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33084  { (case "(($ac_try" in
33085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33086  *) ac_try_echo=$ac_try;;
33087esac
33088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33089$as_echo "$ac_try_echo") >&5
33090  (eval "$ac_try") 2>&5
33091  ac_status=$?
33092  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093  (exit $ac_status); }; }; then
33094  gl_cv_func_snprintf_size1=yes
33095else
33096  $as_echo "$as_me: program exited with status $ac_status" >&5
33097$as_echo "$as_me: failed program was:" >&5
33098sed 's/^/| /' conftest.$ac_ext >&5
33099
33100( exit $ac_status )
33101gl_cv_func_snprintf_size1=no
33102fi
33103rm -rf conftest.dSYM
33104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33105fi
33106
33107
33108
33109fi
33110{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
33111$as_echo "$gl_cv_func_snprintf_size1" >&6; }
33112
33113    case "$gl_cv_func_snprintf_size1" in
33114      *yes)
33115
33116        case "$gl_cv_func_snprintf_retval_c99" in
33117          *yes)
33118
33119
33120     { $as_echo "$as_me:$LINENO: checking whether printf supports POSIX/XSI format strings with positions" >&5
33121$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
33122if test "${gl_cv_func_printf_positions+set}" = set; then
33123  $as_echo_n "(cached) " >&6
33124else
33125
33126      if test "$cross_compiling" = yes; then
33127
33128         case "$host_os" in
33129           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
33130                         gl_cv_func_printf_positions="guessing no";;
33131           beos*)        gl_cv_func_printf_positions="guessing no";;
33132           mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
33133           *)            gl_cv_func_printf_positions="guessing yes";;
33134         esac
33135
33136else
33137  cat >conftest.$ac_ext <<_ACEOF
33138/* confdefs.h.  */
33139_ACEOF
33140cat confdefs.h >>conftest.$ac_ext
33141cat >>conftest.$ac_ext <<_ACEOF
33142/* end confdefs.h.  */
33143
33144#include <stdio.h>
33145#include <string.h>
33146/* The string "%2$d %1$d", with dollar characters protected from the shell's
33147   dollar expansion (possibly an autoconf bug).  */
33148static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
33149static char buf[100];
33150int main ()
33151{
33152  sprintf (buf, format, 33, 55);
33153  return (strcmp (buf, "55 33") != 0);
33154}
33155_ACEOF
33156rm -f conftest$ac_exeext
33157if { (ac_try="$ac_link"
33158case "(($ac_try" in
33159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160  *) ac_try_echo=$ac_try;;
33161esac
33162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33163$as_echo "$ac_try_echo") >&5
33164  (eval "$ac_link") 2>&5
33165  ac_status=$?
33166  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33168  { (case "(($ac_try" in
33169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170  *) ac_try_echo=$ac_try;;
33171esac
33172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33173$as_echo "$ac_try_echo") >&5
33174  (eval "$ac_try") 2>&5
33175  ac_status=$?
33176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177  (exit $ac_status); }; }; then
33178  gl_cv_func_printf_positions=yes
33179else
33180  $as_echo "$as_me: program exited with status $ac_status" >&5
33181$as_echo "$as_me: failed program was:" >&5
33182sed 's/^/| /' conftest.$ac_ext >&5
33183
33184( exit $ac_status )
33185gl_cv_func_printf_positions=no
33186fi
33187rm -rf conftest.dSYM
33188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33189fi
33190
33191
33192
33193fi
33194{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_printf_positions" >&5
33195$as_echo "$gl_cv_func_printf_positions" >&6; }
33196
33197            case "$gl_cv_func_printf_positions" in
33198              *yes)
33199                gl_cv_func_snprintf_usable=yes
33200                ;;
33201            esac
33202            ;;
33203        esac
33204        ;;
33205    esac
33206  fi
33207  if test $gl_cv_func_snprintf_usable = no; then
33208
33209
33210
33211
33212
33213
33214
33215
33216
33217
33218  gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
33219
33220  if test $ac_cv_func_snprintf = yes; then
33221    REPLACE_SNPRINTF=1
33222  fi
33223  :
33224
33225  fi
33226
33227  :
33228
33229
33230
33231
33232
33233  if test $ac_cv_have_decl_snprintf = no; then
33234    HAVE_DECL_SNPRINTF=0
33235  fi
33236
33237
33238
33239
33240
33241
33242          GNULIB_SNPRINTF=1
33243
33244
33245
33246
33247
33248cat >>confdefs.h <<\_ACEOF
33249#define GNULIB_TEST_SNPRINTF 1
33250_ACEOF
33251
33252
33253
33254
33255
33256cat >>confdefs.h <<_ACEOF
33257#define GNULIB_SNPRINTF 1
33258_ACEOF
33259
33260
33261
33262  { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
33263$as_echo_n "checking for ssize_t... " >&6; }
33264if test "${gt_cv_ssize_t+set}" = set; then
33265  $as_echo_n "(cached) " >&6
33266else
33267  cat >conftest.$ac_ext <<_ACEOF
33268/* confdefs.h.  */
33269_ACEOF
33270cat confdefs.h >>conftest.$ac_ext
33271cat >>conftest.$ac_ext <<_ACEOF
33272/* end confdefs.h.  */
33273#include <sys/types.h>
33274int
33275main ()
33276{
33277int x = sizeof (ssize_t *) + sizeof (ssize_t);
33278            return !x;
33279  ;
33280  return 0;
33281}
33282_ACEOF
33283rm -f conftest.$ac_objext
33284if { (ac_try="$ac_compile"
33285case "(($ac_try" in
33286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287  *) ac_try_echo=$ac_try;;
33288esac
33289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33290$as_echo "$ac_try_echo") >&5
33291  (eval "$ac_compile") 2>conftest.er1
33292  ac_status=$?
33293  grep -v '^ *+' conftest.er1 >conftest.err
33294  rm -f conftest.er1
33295  cat conftest.err >&5
33296  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297  (exit $ac_status); } && {
33298	 test -z "$ac_c_werror_flag" ||
33299	 test ! -s conftest.err
33300       } && test -s conftest.$ac_objext; then
33301  gt_cv_ssize_t=yes
33302else
33303  $as_echo "$as_me: failed program was:" >&5
33304sed 's/^/| /' conftest.$ac_ext >&5
33305
33306	gt_cv_ssize_t=no
33307fi
33308
33309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33310fi
33311{ $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
33312$as_echo "$gt_cv_ssize_t" >&6; }
33313  if test $gt_cv_ssize_t = no; then
33314
33315cat >>confdefs.h <<\_ACEOF
33316#define ssize_t int
33317_ACEOF
33318
33319  fi
33320
33321
33322
33323
33324  STDDEF_H=
33325  if test $gt_cv_c_wchar_t = no; then
33326    HAVE_WCHAR_T=0
33327    STDDEF_H=stddef.h
33328  fi
33329  { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
33330$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
33331if test "${gl_cv_decl_null_works+set}" = set; then
33332  $as_echo_n "(cached) " >&6
33333else
33334  cat >conftest.$ac_ext <<_ACEOF
33335/* confdefs.h.  */
33336_ACEOF
33337cat confdefs.h >>conftest.$ac_ext
33338cat >>conftest.$ac_ext <<_ACEOF
33339/* end confdefs.h.  */
33340#include <stddef.h>
33341      int test[2 * (sizeof NULL == sizeof (void *)) -1];
33342
33343int
33344main ()
33345{
33346
33347  ;
33348  return 0;
33349}
33350_ACEOF
33351rm -f conftest.$ac_objext
33352if { (ac_try="$ac_compile"
33353case "(($ac_try" in
33354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33355  *) ac_try_echo=$ac_try;;
33356esac
33357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33358$as_echo "$ac_try_echo") >&5
33359  (eval "$ac_compile") 2>conftest.er1
33360  ac_status=$?
33361  grep -v '^ *+' conftest.er1 >conftest.err
33362  rm -f conftest.er1
33363  cat conftest.err >&5
33364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365  (exit $ac_status); } && {
33366	 test -z "$ac_c_werror_flag" ||
33367	 test ! -s conftest.err
33368       } && test -s conftest.$ac_objext; then
33369  gl_cv_decl_null_works=yes
33370else
33371  $as_echo "$as_me: failed program was:" >&5
33372sed 's/^/| /' conftest.$ac_ext >&5
33373
33374	gl_cv_decl_null_works=no
33375fi
33376
33377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33378fi
33379{ $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
33380$as_echo "$gl_cv_decl_null_works" >&6; }
33381  if test $gl_cv_decl_null_works = no; then
33382    REPLACE_NULL=1
33383    STDDEF_H=stddef.h
33384  fi
33385
33386   if test -n "$STDDEF_H"; then
33387  GL_GENERATE_STDDEF_H_TRUE=
33388  GL_GENERATE_STDDEF_H_FALSE='#'
33389else
33390  GL_GENERATE_STDDEF_H_TRUE='#'
33391  GL_GENERATE_STDDEF_H_FALSE=
33392fi
33393
33394  if test -n "$STDDEF_H"; then
33395
33396
33397
33398
33399
33400
33401
33402
33403     if test $gl_cv_have_include_next = yes; then
33404       gl_cv_next_stddef_h='<'stddef.h'>'
33405     else
33406       { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
33407$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
33408if test "${gl_cv_next_stddef_h+set}" = set; then
33409  $as_echo_n "(cached) " >&6
33410else
33411
33412
33413
33414  cat >conftest.$ac_ext <<_ACEOF
33415/* confdefs.h.  */
33416_ACEOF
33417cat confdefs.h >>conftest.$ac_ext
33418cat >>conftest.$ac_ext <<_ACEOF
33419/* end confdefs.h.  */
33420#include <stddef.h>
33421_ACEOF
33422                case "$host_os" in
33423    aix*) gl_absname_cpp="$ac_cpp -C" ;;
33424    *)    gl_absname_cpp="$ac_cpp" ;;
33425  esac
33426
33427  case "$host_os" in
33428    mingw*)
33429                                          gl_dirsep_regex='[/\\]'
33430      ;;
33431    *)
33432      gl_dirsep_regex='\/'
33433      ;;
33434  esac
33435      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33436  gl_header_literal_regex=`echo 'stddef.h' \
33437                           | sed -e "$gl_make_literal_regex_sed"`
33438  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33439      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33440      s|^/[^/]|//&|
33441      p
33442      q
33443    }'
33444
33445        gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33446  sed -n "$gl_absolute_header_sed"`
33447
33448           gl_header=$gl_cv_absolute_stddef_h
33449           gl_cv_next_stddef_h='"'$gl_header'"'
33450
33451
33452fi
33453{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
33454$as_echo "$gl_cv_next_stddef_h" >&6; }
33455     fi
33456     NEXT_STDDEF_H=$gl_cv_next_stddef_h
33457
33458     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33459       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33460       gl_next_as_first_directive='<'stddef.h'>'
33461     else
33462       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33463       gl_next_as_first_directive=$gl_cv_next_stddef_h
33464     fi
33465     NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
33466
33467
33468
33469
33470  fi
33471
33472
33473
33474
33475
33476
33477
33478
33479
33480
33481
33482
33483     if test $gl_cv_have_include_next = yes; then
33484       gl_cv_next_stdio_h='<'stdio.h'>'
33485     else
33486       { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
33487$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
33488if test "${gl_cv_next_stdio_h+set}" = set; then
33489  $as_echo_n "(cached) " >&6
33490else
33491
33492
33493
33494  cat >conftest.$ac_ext <<_ACEOF
33495/* confdefs.h.  */
33496_ACEOF
33497cat confdefs.h >>conftest.$ac_ext
33498cat >>conftest.$ac_ext <<_ACEOF
33499/* end confdefs.h.  */
33500#include <stdio.h>
33501_ACEOF
33502                case "$host_os" in
33503    aix*) gl_absname_cpp="$ac_cpp -C" ;;
33504    *)    gl_absname_cpp="$ac_cpp" ;;
33505  esac
33506
33507  case "$host_os" in
33508    mingw*)
33509                                          gl_dirsep_regex='[/\\]'
33510      ;;
33511    *)
33512      gl_dirsep_regex='\/'
33513      ;;
33514  esac
33515      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33516  gl_header_literal_regex=`echo 'stdio.h' \
33517                           | sed -e "$gl_make_literal_regex_sed"`
33518  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33519      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33520      s|^/[^/]|//&|
33521      p
33522      q
33523    }'
33524
33525        gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33526  sed -n "$gl_absolute_header_sed"`
33527
33528           gl_header=$gl_cv_absolute_stdio_h
33529           gl_cv_next_stdio_h='"'$gl_header'"'
33530
33531
33532fi
33533{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
33534$as_echo "$gl_cv_next_stdio_h" >&6; }
33535     fi
33536     NEXT_STDIO_H=$gl_cv_next_stdio_h
33537
33538     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33539       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33540       gl_next_as_first_directive='<'stdio.h'>'
33541     else
33542       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33543       gl_next_as_first_directive=$gl_cv_next_stdio_h
33544     fi
33545     NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
33546
33547
33548
33549
33550
33551      GNULIB_FSCANF=1
33552
33553
33554cat >>confdefs.h <<_ACEOF
33555#define GNULIB_FSCANF 1
33556_ACEOF
33557
33558
33559  GNULIB_SCANF=1
33560
33561
33562cat >>confdefs.h <<_ACEOF
33563#define GNULIB_SCANF 1
33564_ACEOF
33565
33566
33567  GNULIB_FGETC=1
33568  GNULIB_GETC=1
33569  GNULIB_GETCHAR=1
33570  GNULIB_FGETS=1
33571  GNULIB_FREAD=1
33572
33573
33574      GNULIB_FPRINTF=1
33575  GNULIB_PRINTF=1
33576  GNULIB_VFPRINTF=1
33577  GNULIB_VPRINTF=1
33578  GNULIB_FPUTC=1
33579  GNULIB_PUTC=1
33580  GNULIB_PUTCHAR=1
33581  GNULIB_FPUTS=1
33582  GNULIB_PUTS=1
33583  GNULIB_FWRITE=1
33584
33585
33586
33587
33588
33589
33590
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602  for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
33603    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33604    { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
33605$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33606if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
33607  $as_echo_n "(cached) " >&6
33608else
33609  cat >conftest.$ac_ext <<_ACEOF
33610/* confdefs.h.  */
33611_ACEOF
33612cat confdefs.h >>conftest.$ac_ext
33613cat >>conftest.$ac_ext <<_ACEOF
33614/* end confdefs.h.  */
33615#include <stdio.h>
33616
33617int
33618main ()
33619{
33620#undef $gl_func
33621  (void) $gl_func;
33622  ;
33623  return 0;
33624}
33625_ACEOF
33626rm -f conftest.$ac_objext
33627if { (ac_try="$ac_compile"
33628case "(($ac_try" in
33629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33630  *) ac_try_echo=$ac_try;;
33631esac
33632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33633$as_echo "$ac_try_echo") >&5
33634  (eval "$ac_compile") 2>conftest.er1
33635  ac_status=$?
33636  grep -v '^ *+' conftest.er1 >conftest.err
33637  rm -f conftest.er1
33638  cat conftest.err >&5
33639  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640  (exit $ac_status); } && {
33641	 test -z "$ac_c_werror_flag" ||
33642	 test ! -s conftest.err
33643       } && test -s conftest.$ac_objext; then
33644  eval "$as_gl_Symbol=yes"
33645else
33646  $as_echo "$as_me: failed program was:" >&5
33647sed 's/^/| /' conftest.$ac_ext >&5
33648
33649	eval "$as_gl_Symbol=no"
33650fi
33651
33652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33653fi
33654ac_res=`eval 'as_val=${'$as_gl_Symbol'}
33655		 $as_echo "$as_val"'`
33656	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33657$as_echo "$ac_res" >&6; }
33658    as_val=`eval 'as_val=${'$as_gl_Symbol'}
33659		 $as_echo "$as_val"'`
33660   if test "x$as_val" = x""yes; then
33661  cat >>confdefs.h <<_ACEOF
33662#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33663_ACEOF
33664
33665                     eval ac_cv_have_decl_$gl_func=yes
33666fi
33667
33668      done
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679
33680
33681     if test $gl_cv_have_include_next = yes; then
33682       gl_cv_next_stdlib_h='<'stdlib.h'>'
33683     else
33684       { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
33685$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
33686if test "${gl_cv_next_stdlib_h+set}" = set; then
33687  $as_echo_n "(cached) " >&6
33688else
33689
33690
33691
33692  cat >conftest.$ac_ext <<_ACEOF
33693/* confdefs.h.  */
33694_ACEOF
33695cat confdefs.h >>conftest.$ac_ext
33696cat >>conftest.$ac_ext <<_ACEOF
33697/* end confdefs.h.  */
33698#include <stdlib.h>
33699_ACEOF
33700                case "$host_os" in
33701    aix*) gl_absname_cpp="$ac_cpp -C" ;;
33702    *)    gl_absname_cpp="$ac_cpp" ;;
33703  esac
33704
33705  case "$host_os" in
33706    mingw*)
33707                                          gl_dirsep_regex='[/\\]'
33708      ;;
33709    *)
33710      gl_dirsep_regex='\/'
33711      ;;
33712  esac
33713      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33714  gl_header_literal_regex=`echo 'stdlib.h' \
33715                           | sed -e "$gl_make_literal_regex_sed"`
33716  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33717      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33718      s|^/[^/]|//&|
33719      p
33720      q
33721    }'
33722
33723        gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33724  sed -n "$gl_absolute_header_sed"`
33725
33726           gl_header=$gl_cv_absolute_stdlib_h
33727           gl_cv_next_stdlib_h='"'$gl_header'"'
33728
33729
33730fi
33731{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
33732$as_echo "$gl_cv_next_stdlib_h" >&6; }
33733     fi
33734     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
33735
33736     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33737       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33738       gl_next_as_first_directive='<'stdlib.h'>'
33739     else
33740       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33741       gl_next_as_first_directive=$gl_cv_next_stdlib_h
33742     fi
33743     NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
33744
33745
33746
33747
33748
33749
33750
33751
33752
33753
33754
33755
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
33781  for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
33782    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33783    { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
33784$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33785if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
33786  $as_echo_n "(cached) " >&6
33787else
33788  cat >conftest.$ac_ext <<_ACEOF
33789/* confdefs.h.  */
33790_ACEOF
33791cat confdefs.h >>conftest.$ac_ext
33792cat >>conftest.$ac_ext <<_ACEOF
33793/* end confdefs.h.  */
33794#include <stdlib.h>
33795#if HAVE_SYS_LOADAVG_H
33796# include <sys/loadavg.h>
33797#endif
33798#if HAVE_RANDOM_H
33799# include <random.h>
33800#endif
33801
33802int
33803main ()
33804{
33805#undef $gl_func
33806  (void) $gl_func;
33807  ;
33808  return 0;
33809}
33810_ACEOF
33811rm -f conftest.$ac_objext
33812if { (ac_try="$ac_compile"
33813case "(($ac_try" in
33814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815  *) ac_try_echo=$ac_try;;
33816esac
33817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33818$as_echo "$ac_try_echo") >&5
33819  (eval "$ac_compile") 2>conftest.er1
33820  ac_status=$?
33821  grep -v '^ *+' conftest.er1 >conftest.err
33822  rm -f conftest.er1
33823  cat conftest.err >&5
33824  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825  (exit $ac_status); } && {
33826	 test -z "$ac_c_werror_flag" ||
33827	 test ! -s conftest.err
33828       } && test -s conftest.$ac_objext; then
33829  eval "$as_gl_Symbol=yes"
33830else
33831  $as_echo "$as_me: failed program was:" >&5
33832sed 's/^/| /' conftest.$ac_ext >&5
33833
33834	eval "$as_gl_Symbol=no"
33835fi
33836
33837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33838fi
33839ac_res=`eval 'as_val=${'$as_gl_Symbol'}
33840		 $as_echo "$as_val"'`
33841	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33842$as_echo "$ac_res" >&6; }
33843    as_val=`eval 'as_val=${'$as_gl_Symbol'}
33844		 $as_echo "$as_val"'`
33845   if test "x$as_val" = x""yes; then
33846  cat >>confdefs.h <<_ACEOF
33847#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33848_ACEOF
33849
33850                     eval ac_cv_have_decl_$gl_func=yes
33851fi
33852
33853      done
33854
33855
33856
33857
33858
33859
33860  :
33861
33862
33863
33864
33865
33866  if test $ac_cv_func_strdup = yes; then
33867    if test $gl_cv_func_malloc_posix != yes; then
33868      REPLACE_STRDUP=1
33869    fi
33870  fi
33871
33872  :
33873
33874
33875
33876
33877
33878  if test $ac_cv_have_decl_strdup = no; then
33879    HAVE_DECL_STRDUP=0
33880  fi
33881
33882  if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
33883
33884
33885
33886
33887
33888
33889
33890
33891  gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
33892
33893    :
33894  fi
33895
33896
33897
33898
33899
33900          GNULIB_STRDUP=1
33901
33902
33903
33904
33905
33906cat >>confdefs.h <<\_ACEOF
33907#define GNULIB_TEST_STRDUP 1
33908_ACEOF
33909
33910
33911
33912
33913
33914
33915
33916
33917
33918
33919
33920  :
33921
33922
33923
33924
33925
33926
33927  :
33928
33929
33930
33931
33932
33933  if test $ac_cv_have_decl_strndup = no; then
33934    HAVE_DECL_STRNDUP=0
33935  fi
33936
33937  if test $ac_cv_func_strndup = yes; then
33938    HAVE_STRNDUP=1
33939    # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
33940    { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
33941$as_echo_n "checking for working strndup... " >&6; }
33942if test "${gl_cv_func_strndup_works+set}" = set; then
33943  $as_echo_n "(cached) " >&6
33944else
33945  if test "$cross_compiling" = yes; then
33946
33947          case $host_os in
33948            aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
33949            *)               gl_cv_func_strndup_works="guessing yes";;
33950          esac
33951
33952else
33953  cat >conftest.$ac_ext <<_ACEOF
33954
33955         /* confdefs.h.  */
33956_ACEOF
33957cat confdefs.h >>conftest.$ac_ext
33958cat >>conftest.$ac_ext <<_ACEOF
33959/* end confdefs.h.  */
33960#include <string.h>
33961                           #include <stdlib.h>
33962int
33963main ()
33964{
33965
33966#if !HAVE_DECL_STRNDUP
33967  extern
33968  #ifdef __cplusplus
33969  "C"
33970  #endif
33971  char *strndup (const char *, size_t);
33972#endif
33973  char *s;
33974  s = strndup ("some longer string", 15);
33975  free (s);
33976  s = strndup ("shorter string", 13);
33977  return s[13] != '\0';
33978  ;
33979  return 0;
33980}
33981_ACEOF
33982rm -f conftest$ac_exeext
33983if { (ac_try="$ac_link"
33984case "(($ac_try" in
33985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33986  *) ac_try_echo=$ac_try;;
33987esac
33988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33989$as_echo "$ac_try_echo") >&5
33990  (eval "$ac_link") 2>&5
33991  ac_status=$?
33992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33994  { (case "(($ac_try" in
33995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33996  *) ac_try_echo=$ac_try;;
33997esac
33998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33999$as_echo "$ac_try_echo") >&5
34000  (eval "$ac_try") 2>&5
34001  ac_status=$?
34002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003  (exit $ac_status); }; }; then
34004  gl_cv_func_strndup_works=yes
34005else
34006  $as_echo "$as_me: program exited with status $ac_status" >&5
34007$as_echo "$as_me: failed program was:" >&5
34008sed 's/^/| /' conftest.$ac_ext >&5
34009
34010( exit $ac_status )
34011gl_cv_func_strndup_works=no
34012fi
34013rm -rf conftest.dSYM
34014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34015fi
34016
34017
34018fi
34019{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup_works" >&5
34020$as_echo "$gl_cv_func_strndup_works" >&6; }
34021    case $gl_cv_func_strndup_works in
34022      *no) REPLACE_STRNDUP=1 ;;
34023    esac
34024  else
34025    HAVE_STRNDUP=0
34026  fi
34027
34028  if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
34029
34030
34031
34032
34033
34034
34035
34036
34037  gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
34038
34039  fi
34040
34041
34042
34043
34044
34045          GNULIB_STRNDUP=1
34046
34047
34048
34049
34050
34051cat >>confdefs.h <<\_ACEOF
34052#define GNULIB_TEST_STRNDUP 1
34053_ACEOF
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063  :
34064
34065
34066
34067
34068
34069  if test $ac_cv_have_decl_strnlen = no; then
34070    HAVE_DECL_STRNLEN=0
34071  else
34072
34073        { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
34074$as_echo_n "checking for working strnlen... " >&6; }
34075if test "${ac_cv_func_strnlen_working+set}" = set; then
34076  $as_echo_n "(cached) " >&6
34077else
34078  if test "$cross_compiling" = yes; then
34079  ac_cv_func_strnlen_working=no
34080else
34081  cat >conftest.$ac_ext <<_ACEOF
34082/* confdefs.h.  */
34083_ACEOF
34084cat confdefs.h >>conftest.$ac_ext
34085cat >>conftest.$ac_ext <<_ACEOF
34086/* end confdefs.h.  */
34087$ac_includes_default
34088int
34089main ()
34090{
34091
34092#define S "foobar"
34093#define S_LEN (sizeof S - 1)
34094
34095  /* At least one implementation is buggy: that of AIX 4.3 would
34096     give strnlen (S, 1) == 3.  */
34097
34098  int i;
34099  for (i = 0; i < S_LEN + 1; ++i)
34100    {
34101      int expected = i <= S_LEN ? i : S_LEN;
34102      if (strnlen (S, i) != expected)
34103	return 1;
34104    }
34105  return 0;
34106
34107  ;
34108  return 0;
34109}
34110_ACEOF
34111rm -f conftest$ac_exeext
34112if { (ac_try="$ac_link"
34113case "(($ac_try" in
34114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34115  *) ac_try_echo=$ac_try;;
34116esac
34117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34118$as_echo "$ac_try_echo") >&5
34119  (eval "$ac_link") 2>&5
34120  ac_status=$?
34121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34123  { (case "(($ac_try" in
34124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34125  *) ac_try_echo=$ac_try;;
34126esac
34127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34128$as_echo "$ac_try_echo") >&5
34129  (eval "$ac_try") 2>&5
34130  ac_status=$?
34131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34132  (exit $ac_status); }; }; then
34133  ac_cv_func_strnlen_working=yes
34134else
34135  $as_echo "$as_me: program exited with status $ac_status" >&5
34136$as_echo "$as_me: failed program was:" >&5
34137sed 's/^/| /' conftest.$ac_ext >&5
34138
34139( exit $ac_status )
34140ac_cv_func_strnlen_working=no
34141fi
34142rm -rf conftest.dSYM
34143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34144fi
34145
34146
34147fi
34148{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
34149$as_echo "$ac_cv_func_strnlen_working" >&6; }
34150test $ac_cv_func_strnlen_working = no && :
34151
34152
34153    if test $ac_cv_func_strnlen_working = no; then
34154      REPLACE_STRNLEN=1
34155    fi
34156  fi
34157
34158  if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
34159
34160
34161
34162
34163
34164
34165
34166
34167  gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
34168
34169    :
34170  fi
34171
34172
34173
34174
34175
34176          GNULIB_STRNLEN=1
34177
34178
34179
34180
34181
34182cat >>confdefs.h <<\_ACEOF
34183#define GNULIB_TEST_STRNLEN 1
34184_ACEOF
34185
34186
34187
34188
34189
34190
34191  { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
34192$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
34193if test -z "$MKDIR_P"; then
34194  if test "${ac_cv_path_mkdir+set}" = set; then
34195  $as_echo_n "(cached) " >&6
34196else
34197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34198for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
34199do
34200  IFS=$as_save_IFS
34201  test -z "$as_dir" && as_dir=.
34202  for ac_prog in mkdir gmkdir; do
34203	 for ac_exec_ext in '' $ac_executable_extensions; do
34204	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
34205	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
34206	     'mkdir (GNU coreutils) '* | \
34207	     'mkdir (coreutils) '* | \
34208	     'mkdir (fileutils) '4.1*)
34209	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
34210	       break 3;;
34211	   esac
34212	 done
34213       done
34214done
34215IFS=$as_save_IFS
34216
34217fi
34218
34219  if test "${ac_cv_path_mkdir+set}" = set; then
34220    MKDIR_P="$ac_cv_path_mkdir -p"
34221  else
34222    # As a last resort, use the slow shell script.  Don't cache a
34223    # value for MKDIR_P within a source directory, because that will
34224    # break other packages using the cache if that directory is
34225    # removed, or if the value is a relative name.
34226    test -d ./--version && rmdir ./--version
34227    MKDIR_P="$ac_install_sh -d"
34228  fi
34229fi
34230{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
34231$as_echo "$MKDIR_P" >&6; }
34232
34233
34234  { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
34235$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
34236if test -z "$MKDIR_P"; then
34237  if test "${ac_cv_path_mkdir+set}" = set; then
34238  $as_echo_n "(cached) " >&6
34239else
34240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34241for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
34242do
34243  IFS=$as_save_IFS
34244  test -z "$as_dir" && as_dir=.
34245  for ac_prog in mkdir gmkdir; do
34246	 for ac_exec_ext in '' $ac_executable_extensions; do
34247	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
34248	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
34249	     'mkdir (GNU coreutils) '* | \
34250	     'mkdir (coreutils) '* | \
34251	     'mkdir (fileutils) '4.1*)
34252	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
34253	       break 3;;
34254	   esac
34255	 done
34256       done
34257done
34258IFS=$as_save_IFS
34259
34260fi
34261
34262  if test "${ac_cv_path_mkdir+set}" = set; then
34263    MKDIR_P="$ac_cv_path_mkdir -p"
34264  else
34265    # As a last resort, use the slow shell script.  Don't cache a
34266    # value for MKDIR_P within a source directory, because that will
34267    # break other packages using the cache if that directory is
34268    # removed, or if the value is a relative name.
34269    test -d ./--version && rmdir ./--version
34270    MKDIR_P="$ac_install_sh -d"
34271  fi
34272fi
34273{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
34274$as_echo "$MKDIR_P" >&6; }
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286
34287
34288
34289      { $as_echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
34290$as_echo_n "checking whether localtime_r is declared... " >&6; }
34291if test "${ac_cv_have_decl_localtime_r+set}" = set; then
34292  $as_echo_n "(cached) " >&6
34293else
34294  cat >conftest.$ac_ext <<_ACEOF
34295/* confdefs.h.  */
34296_ACEOF
34297cat confdefs.h >>conftest.$ac_ext
34298cat >>conftest.$ac_ext <<_ACEOF
34299/* end confdefs.h.  */
34300#include <time.h>
34301
34302int
34303main ()
34304{
34305#ifndef localtime_r
34306  (void) localtime_r;
34307#endif
34308
34309  ;
34310  return 0;
34311}
34312_ACEOF
34313rm -f conftest.$ac_objext
34314if { (ac_try="$ac_compile"
34315case "(($ac_try" in
34316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34317  *) ac_try_echo=$ac_try;;
34318esac
34319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34320$as_echo "$ac_try_echo") >&5
34321  (eval "$ac_compile") 2>conftest.er1
34322  ac_status=$?
34323  grep -v '^ *+' conftest.er1 >conftest.err
34324  rm -f conftest.er1
34325  cat conftest.err >&5
34326  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327  (exit $ac_status); } && {
34328	 test -z "$ac_c_werror_flag" ||
34329	 test ! -s conftest.err
34330       } && test -s conftest.$ac_objext; then
34331  ac_cv_have_decl_localtime_r=yes
34332else
34333  $as_echo "$as_me: failed program was:" >&5
34334sed 's/^/| /' conftest.$ac_ext >&5
34335
34336	ac_cv_have_decl_localtime_r=no
34337fi
34338
34339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34340fi
34341{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_localtime_r" >&5
34342$as_echo "$ac_cv_have_decl_localtime_r" >&6; }
34343if test "x$ac_cv_have_decl_localtime_r" = x""yes; then
34344
34345cat >>confdefs.h <<_ACEOF
34346#define HAVE_DECL_LOCALTIME_R 1
34347_ACEOF
34348
34349
34350else
34351  cat >>confdefs.h <<_ACEOF
34352#define HAVE_DECL_LOCALTIME_R 0
34353_ACEOF
34354
34355
34356fi
34357
34358
34359  if test $ac_cv_have_decl_localtime_r = no; then
34360    HAVE_DECL_LOCALTIME_R=0
34361  fi
34362
34363
34364  :
34365
34366
34367
34368
34369
34370  if test $ac_cv_func_localtime_r = yes; then
34371    HAVE_LOCALTIME_R=1
34372    { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
34373$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
34374if test "${gl_cv_time_r_posix+set}" = set; then
34375  $as_echo_n "(cached) " >&6
34376else
34377  cat >conftest.$ac_ext <<_ACEOF
34378/* confdefs.h.  */
34379_ACEOF
34380cat confdefs.h >>conftest.$ac_ext
34381cat >>conftest.$ac_ext <<_ACEOF
34382/* end confdefs.h.  */
34383#include <time.h>
34384int
34385main ()
34386{
34387/* We don't need to append 'restrict's to the argument types,
34388                 even though the POSIX signature has the 'restrict's,
34389                 since C99 says they can't affect type compatibility.  */
34390              struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
34391              if (ptr) return 0;
34392              /* Check the return type is a pointer.
34393                 On HP-UX 10 it is 'int'.  */
34394              *localtime_r (0, 0);
34395  ;
34396  return 0;
34397}
34398
34399_ACEOF
34400rm -f conftest.$ac_objext
34401if { (ac_try="$ac_compile"
34402case "(($ac_try" in
34403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34404  *) ac_try_echo=$ac_try;;
34405esac
34406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34407$as_echo "$ac_try_echo") >&5
34408  (eval "$ac_compile") 2>conftest.er1
34409  ac_status=$?
34410  grep -v '^ *+' conftest.er1 >conftest.err
34411  rm -f conftest.er1
34412  cat conftest.err >&5
34413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34414  (exit $ac_status); } && {
34415	 test -z "$ac_c_werror_flag" ||
34416	 test ! -s conftest.err
34417       } && test -s conftest.$ac_objext; then
34418  gl_cv_time_r_posix=yes
34419else
34420  $as_echo "$as_me: failed program was:" >&5
34421sed 's/^/| /' conftest.$ac_ext >&5
34422
34423	gl_cv_time_r_posix=no
34424fi
34425
34426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34427
34428fi
34429{ $as_echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
34430$as_echo "$gl_cv_time_r_posix" >&6; }
34431    if test $gl_cv_time_r_posix = yes; then
34432      REPLACE_LOCALTIME_R=0
34433    else
34434      REPLACE_LOCALTIME_R=1
34435    fi
34436  else
34437    HAVE_LOCALTIME_R=0
34438  fi
34439
34440  if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
34441
34442
34443
34444
34445
34446
34447
34448
34449  gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
34450
34451
34452  :
34453
34454  fi
34455
34456
34457
34458
34459
34460          GNULIB_TIME_R=1
34461
34462
34463
34464
34465
34466cat >>confdefs.h <<\_ACEOF
34467#define GNULIB_TEST_TIME_R 1
34468_ACEOF
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481  :
34482
34483
34484
34485
34486
34487
34488
34489
34490     if test $gl_cv_have_include_next = yes; then
34491       gl_cv_next_unistd_h='<'unistd.h'>'
34492     else
34493       { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
34494$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
34495if test "${gl_cv_next_unistd_h+set}" = set; then
34496  $as_echo_n "(cached) " >&6
34497else
34498
34499             if test $ac_cv_header_unistd_h = yes; then
34500
34501
34502
34503
34504  cat >conftest.$ac_ext <<_ACEOF
34505/* confdefs.h.  */
34506_ACEOF
34507cat confdefs.h >>conftest.$ac_ext
34508cat >>conftest.$ac_ext <<_ACEOF
34509/* end confdefs.h.  */
34510#include <unistd.h>
34511_ACEOF
34512                case "$host_os" in
34513    aix*) gl_absname_cpp="$ac_cpp -C" ;;
34514    *)    gl_absname_cpp="$ac_cpp" ;;
34515  esac
34516
34517  case "$host_os" in
34518    mingw*)
34519                                          gl_dirsep_regex='[/\\]'
34520      ;;
34521    *)
34522      gl_dirsep_regex='\/'
34523      ;;
34524  esac
34525      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34526  gl_header_literal_regex=`echo 'unistd.h' \
34527                           | sed -e "$gl_make_literal_regex_sed"`
34528  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34529      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34530      s|^/[^/]|//&|
34531      p
34532      q
34533    }'
34534
34535        gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34536  sed -n "$gl_absolute_header_sed"`
34537
34538           gl_header=$gl_cv_absolute_unistd_h
34539           gl_cv_next_unistd_h='"'$gl_header'"'
34540          else
34541               gl_cv_next_unistd_h='<'unistd.h'>'
34542             fi
34543
34544
34545fi
34546{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
34547$as_echo "$gl_cv_next_unistd_h" >&6; }
34548     fi
34549     NEXT_UNISTD_H=$gl_cv_next_unistd_h
34550
34551     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34552       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34553       gl_next_as_first_directive='<'unistd.h'>'
34554     else
34555       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34556       gl_next_as_first_directive=$gl_cv_next_unistd_h
34557     fi
34558     NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
34559
34560
34561
34562
34563  if test $ac_cv_header_unistd_h = yes; then
34564    HAVE_UNISTD_H=1
34565  else
34566    HAVE_UNISTD_H=0
34567  fi
34568
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620  for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
34621    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34622    { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
34623$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34624if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
34625  $as_echo_n "(cached) " >&6
34626else
34627  cat >conftest.$ac_ext <<_ACEOF
34628/* confdefs.h.  */
34629_ACEOF
34630cat confdefs.h >>conftest.$ac_ext
34631cat >>conftest.$ac_ext <<_ACEOF
34632/* end confdefs.h.  */
34633
34634#if HAVE_UNISTD_H
34635# include <unistd.h>
34636#endif
34637/* Some systems declare various items in the wrong headers.  */
34638#if !(defined __GLIBC__ && !defined __UCLIBC__)
34639# include <fcntl.h>
34640# include <stdio.h>
34641# include <stdlib.h>
34642# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
34643#  include <io.h>
34644# endif
34645#endif
34646
34647int
34648main ()
34649{
34650#undef $gl_func
34651  (void) $gl_func;
34652  ;
34653  return 0;
34654}
34655_ACEOF
34656rm -f conftest.$ac_objext
34657if { (ac_try="$ac_compile"
34658case "(($ac_try" in
34659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34660  *) ac_try_echo=$ac_try;;
34661esac
34662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34663$as_echo "$ac_try_echo") >&5
34664  (eval "$ac_compile") 2>conftest.er1
34665  ac_status=$?
34666  grep -v '^ *+' conftest.er1 >conftest.err
34667  rm -f conftest.er1
34668  cat conftest.err >&5
34669  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670  (exit $ac_status); } && {
34671	 test -z "$ac_c_werror_flag" ||
34672	 test ! -s conftest.err
34673       } && test -s conftest.$ac_objext; then
34674  eval "$as_gl_Symbol=yes"
34675else
34676  $as_echo "$as_me: failed program was:" >&5
34677sed 's/^/| /' conftest.$ac_ext >&5
34678
34679	eval "$as_gl_Symbol=no"
34680fi
34681
34682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34683fi
34684ac_res=`eval 'as_val=${'$as_gl_Symbol'}
34685		 $as_echo "$as_val"'`
34686	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34687$as_echo "$ac_res" >&6; }
34688    as_val=`eval 'as_val=${'$as_gl_Symbol'}
34689		 $as_echo "$as_val"'`
34690   if test "x$as_val" = x""yes; then
34691  cat >>confdefs.h <<_ACEOF
34692#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34693_ACEOF
34694
34695                     eval ac_cv_have_decl_$gl_func=yes
34696fi
34697
34698      done
34699
34700
34701
34702
34703  :
34704
34705
34706
34707
34708
34709  if test $ac_cv_func_vasnprintf = no; then
34710
34711
34712  :
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
34757
34758  if test $ac_cv_func_vasnprintf = yes; then
34759
34760cat >>confdefs.h <<\_ACEOF
34761#define REPLACE_VASNPRINTF 1
34762_ACEOF
34763
34764  fi
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776  { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34777$as_echo_n "checking for ptrdiff_t... " >&6; }
34778if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34779  $as_echo_n "(cached) " >&6
34780else
34781  ac_cv_type_ptrdiff_t=no
34782cat >conftest.$ac_ext <<_ACEOF
34783/* confdefs.h.  */
34784_ACEOF
34785cat confdefs.h >>conftest.$ac_ext
34786cat >>conftest.$ac_ext <<_ACEOF
34787/* end confdefs.h.  */
34788$ac_includes_default
34789int
34790main ()
34791{
34792if (sizeof (ptrdiff_t))
34793       return 0;
34794  ;
34795  return 0;
34796}
34797_ACEOF
34798rm -f conftest.$ac_objext
34799if { (ac_try="$ac_compile"
34800case "(($ac_try" in
34801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34802  *) ac_try_echo=$ac_try;;
34803esac
34804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34805$as_echo "$ac_try_echo") >&5
34806  (eval "$ac_compile") 2>conftest.er1
34807  ac_status=$?
34808  grep -v '^ *+' conftest.er1 >conftest.err
34809  rm -f conftest.er1
34810  cat conftest.err >&5
34811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812  (exit $ac_status); } && {
34813	 test -z "$ac_c_werror_flag" ||
34814	 test ! -s conftest.err
34815       } && test -s conftest.$ac_objext; then
34816  cat >conftest.$ac_ext <<_ACEOF
34817/* confdefs.h.  */
34818_ACEOF
34819cat confdefs.h >>conftest.$ac_ext
34820cat >>conftest.$ac_ext <<_ACEOF
34821/* end confdefs.h.  */
34822$ac_includes_default
34823int
34824main ()
34825{
34826if (sizeof ((ptrdiff_t)))
34827	  return 0;
34828  ;
34829  return 0;
34830}
34831_ACEOF
34832rm -f conftest.$ac_objext
34833if { (ac_try="$ac_compile"
34834case "(($ac_try" in
34835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34836  *) ac_try_echo=$ac_try;;
34837esac
34838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34839$as_echo "$ac_try_echo") >&5
34840  (eval "$ac_compile") 2>conftest.er1
34841  ac_status=$?
34842  grep -v '^ *+' conftest.er1 >conftest.err
34843  rm -f conftest.er1
34844  cat conftest.err >&5
34845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846  (exit $ac_status); } && {
34847	 test -z "$ac_c_werror_flag" ||
34848	 test ! -s conftest.err
34849       } && test -s conftest.$ac_objext; then
34850  :
34851else
34852  $as_echo "$as_me: failed program was:" >&5
34853sed 's/^/| /' conftest.$ac_ext >&5
34854
34855	ac_cv_type_ptrdiff_t=yes
34856fi
34857
34858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34859else
34860  $as_echo "$as_me: failed program was:" >&5
34861sed 's/^/| /' conftest.$ac_ext >&5
34862
34863
34864fi
34865
34866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34867fi
34868{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34869$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
34870if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
34871  :
34872else
34873
34874cat >>confdefs.h <<\_ACEOF
34875#define ptrdiff_t long
34876_ACEOF
34877
34878
34879fi
34880
34881
34882
34883
34884
34885
34886
34887  fi
34888
34889
34890
34891  gl_cv_func_vsnprintf_usable=no
34892
34893for ac_func in vsnprintf
34894do
34895as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34896{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34897$as_echo_n "checking for $ac_func... " >&6; }
34898if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34899  $as_echo_n "(cached) " >&6
34900else
34901  cat >conftest.$ac_ext <<_ACEOF
34902/* confdefs.h.  */
34903_ACEOF
34904cat confdefs.h >>conftest.$ac_ext
34905cat >>conftest.$ac_ext <<_ACEOF
34906/* end confdefs.h.  */
34907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34908   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34909#define $ac_func innocuous_$ac_func
34910
34911/* System header to define __stub macros and hopefully few prototypes,
34912    which can conflict with char $ac_func (); below.
34913    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34914    <limits.h> exists even on freestanding compilers.  */
34915
34916#ifdef __STDC__
34917# include <limits.h>
34918#else
34919# include <assert.h>
34920#endif
34921
34922#undef $ac_func
34923
34924/* Override any GCC internal prototype to avoid an error.
34925   Use char because int might match the return type of a GCC
34926   builtin and then its argument prototype would still apply.  */
34927#ifdef __cplusplus
34928extern "C"
34929#endif
34930char $ac_func ();
34931/* The GNU C library defines this for functions which it implements
34932    to always fail with ENOSYS.  Some functions are actually named
34933    something starting with __ and the normal name is an alias.  */
34934#if defined __stub_$ac_func || defined __stub___$ac_func
34935choke me
34936#endif
34937
34938int
34939main ()
34940{
34941return $ac_func ();
34942  ;
34943  return 0;
34944}
34945_ACEOF
34946rm -f conftest.$ac_objext conftest$ac_exeext
34947if { (ac_try="$ac_link"
34948case "(($ac_try" in
34949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34950  *) ac_try_echo=$ac_try;;
34951esac
34952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34953$as_echo "$ac_try_echo") >&5
34954  (eval "$ac_link") 2>conftest.er1
34955  ac_status=$?
34956  grep -v '^ *+' conftest.er1 >conftest.err
34957  rm -f conftest.er1
34958  cat conftest.err >&5
34959  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34960  (exit $ac_status); } && {
34961	 test -z "$ac_c_werror_flag" ||
34962	 test ! -s conftest.err
34963       } && test -s conftest$ac_exeext && {
34964	 test "$cross_compiling" = yes ||
34965	 $as_test_x conftest$ac_exeext
34966       }; then
34967  eval "$as_ac_var=yes"
34968else
34969  $as_echo "$as_me: failed program was:" >&5
34970sed 's/^/| /' conftest.$ac_ext >&5
34971
34972	eval "$as_ac_var=no"
34973fi
34974
34975rm -rf conftest.dSYM
34976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34977      conftest$ac_exeext conftest.$ac_ext
34978fi
34979ac_res=`eval 'as_val=${'$as_ac_var'}
34980		 $as_echo "$as_val"'`
34981	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34982$as_echo "$ac_res" >&6; }
34983as_val=`eval 'as_val=${'$as_ac_var'}
34984		 $as_echo "$as_val"'`
34985   if test "x$as_val" = x""yes; then
34986  cat >>confdefs.h <<_ACEOF
34987#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34988_ACEOF
34989
34990fi
34991done
34992
34993  if test $ac_cv_func_vsnprintf = yes; then
34994
34995
34996
34997  { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
34998$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
34999if test "${gl_cv_func_snprintf_size1+set}" = set; then
35000  $as_echo_n "(cached) " >&6
35001else
35002
35003      if test "$cross_compiling" = yes; then
35004  gl_cv_func_snprintf_size1="guessing yes"
35005else
35006  cat >conftest.$ac_ext <<_ACEOF
35007/* confdefs.h.  */
35008_ACEOF
35009cat confdefs.h >>conftest.$ac_ext
35010cat >>conftest.$ac_ext <<_ACEOF
35011/* end confdefs.h.  */
35012
35013#include <stdio.h>
35014#if HAVE_SNPRINTF
35015# define my_snprintf snprintf
35016#else
35017# include <stdarg.h>
35018static int my_snprintf (char *buf, int size, const char *format, ...)
35019{
35020  va_list args;
35021  int ret;
35022  va_start (args, format);
35023  ret = vsnprintf (buf, size, format, args);
35024  va_end (args);
35025  return ret;
35026}
35027#endif
35028int main()
35029{
35030  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
35031  my_snprintf (buf, 1, "%d", 12345);
35032  return buf[1] != 'E';
35033}
35034_ACEOF
35035rm -f conftest$ac_exeext
35036if { (ac_try="$ac_link"
35037case "(($ac_try" in
35038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35039  *) ac_try_echo=$ac_try;;
35040esac
35041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35042$as_echo "$ac_try_echo") >&5
35043  (eval "$ac_link") 2>&5
35044  ac_status=$?
35045  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35047  { (case "(($ac_try" in
35048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35049  *) ac_try_echo=$ac_try;;
35050esac
35051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35052$as_echo "$ac_try_echo") >&5
35053  (eval "$ac_try") 2>&5
35054  ac_status=$?
35055  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056  (exit $ac_status); }; }; then
35057  gl_cv_func_snprintf_size1=yes
35058else
35059  $as_echo "$as_me: program exited with status $ac_status" >&5
35060$as_echo "$as_me: failed program was:" >&5
35061sed 's/^/| /' conftest.$ac_ext >&5
35062
35063( exit $ac_status )
35064gl_cv_func_snprintf_size1=no
35065fi
35066rm -rf conftest.dSYM
35067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35068fi
35069
35070
35071
35072fi
35073{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
35074$as_echo "$gl_cv_func_snprintf_size1" >&6; }
35075
35076    case "$gl_cv_func_snprintf_size1" in
35077      *yes)
35078
35079        case "$gl_cv_func_snprintf_retval_c99" in
35080          *yes)
35081
35082
35083     { $as_echo "$as_me:$LINENO: checking whether printf supports POSIX/XSI format strings with positions" >&5
35084$as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
35085if test "${gl_cv_func_printf_positions+set}" = set; then
35086  $as_echo_n "(cached) " >&6
35087else
35088
35089      if test "$cross_compiling" = yes; then
35090
35091         case "$host_os" in
35092           netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
35093                         gl_cv_func_printf_positions="guessing no";;
35094           beos*)        gl_cv_func_printf_positions="guessing no";;
35095           mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
35096           *)            gl_cv_func_printf_positions="guessing yes";;
35097         esac
35098
35099else
35100  cat >conftest.$ac_ext <<_ACEOF
35101/* confdefs.h.  */
35102_ACEOF
35103cat confdefs.h >>conftest.$ac_ext
35104cat >>conftest.$ac_ext <<_ACEOF
35105/* end confdefs.h.  */
35106
35107#include <stdio.h>
35108#include <string.h>
35109/* The string "%2$d %1$d", with dollar characters protected from the shell's
35110   dollar expansion (possibly an autoconf bug).  */
35111static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
35112static char buf[100];
35113int main ()
35114{
35115  sprintf (buf, format, 33, 55);
35116  return (strcmp (buf, "55 33") != 0);
35117}
35118_ACEOF
35119rm -f conftest$ac_exeext
35120if { (ac_try="$ac_link"
35121case "(($ac_try" in
35122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35123  *) ac_try_echo=$ac_try;;
35124esac
35125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35126$as_echo "$ac_try_echo") >&5
35127  (eval "$ac_link") 2>&5
35128  ac_status=$?
35129  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35131  { (case "(($ac_try" in
35132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35133  *) ac_try_echo=$ac_try;;
35134esac
35135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35136$as_echo "$ac_try_echo") >&5
35137  (eval "$ac_try") 2>&5
35138  ac_status=$?
35139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35140  (exit $ac_status); }; }; then
35141  gl_cv_func_printf_positions=yes
35142else
35143  $as_echo "$as_me: program exited with status $ac_status" >&5
35144$as_echo "$as_me: failed program was:" >&5
35145sed 's/^/| /' conftest.$ac_ext >&5
35146
35147( exit $ac_status )
35148gl_cv_func_printf_positions=no
35149fi
35150rm -rf conftest.dSYM
35151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35152fi
35153
35154
35155
35156fi
35157{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_printf_positions" >&5
35158$as_echo "$gl_cv_func_printf_positions" >&6; }
35159
35160            case "$gl_cv_func_printf_positions" in
35161              *yes)
35162                gl_cv_func_vsnprintf_usable=yes
35163                ;;
35164            esac
35165            ;;
35166        esac
35167        ;;
35168    esac
35169  fi
35170  if test $gl_cv_func_vsnprintf_usable = no; then
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181  gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
35182
35183  if test $ac_cv_func_vsnprintf = yes; then
35184    REPLACE_VSNPRINTF=1
35185  fi
35186  :
35187
35188  fi
35189
35190  :
35191
35192
35193
35194
35195
35196  if test $ac_cv_have_decl_vsnprintf = no; then
35197    HAVE_DECL_VSNPRINTF=0
35198  fi
35199
35200
35201
35202
35203
35204
35205          GNULIB_VSNPRINTF=1
35206
35207
35208
35209
35210
35211cat >>confdefs.h <<\_ACEOF
35212#define GNULIB_TEST_VSNPRINTF 1
35213_ACEOF
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226  :
35227
35228
35229
35230
35231
35232
35233
35234
35235     if test $gl_cv_have_include_next = yes; then
35236       gl_cv_next_wchar_h='<'wchar.h'>'
35237     else
35238       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
35239$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
35240if test "${gl_cv_next_wchar_h+set}" = set; then
35241  $as_echo_n "(cached) " >&6
35242else
35243
35244             if test $ac_cv_header_wchar_h = yes; then
35245
35246
35247
35248
35249  cat >conftest.$ac_ext <<_ACEOF
35250/* confdefs.h.  */
35251_ACEOF
35252cat confdefs.h >>conftest.$ac_ext
35253cat >>conftest.$ac_ext <<_ACEOF
35254/* end confdefs.h.  */
35255#include <wchar.h>
35256_ACEOF
35257                case "$host_os" in
35258    aix*) gl_absname_cpp="$ac_cpp -C" ;;
35259    *)    gl_absname_cpp="$ac_cpp" ;;
35260  esac
35261
35262  case "$host_os" in
35263    mingw*)
35264                                          gl_dirsep_regex='[/\\]'
35265      ;;
35266    *)
35267      gl_dirsep_regex='\/'
35268      ;;
35269  esac
35270      gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35271  gl_header_literal_regex=`echo 'wchar.h' \
35272                           | sed -e "$gl_make_literal_regex_sed"`
35273  gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35274      s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35275      s|^/[^/]|//&|
35276      p
35277      q
35278    }'
35279
35280        gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35281  sed -n "$gl_absolute_header_sed"`
35282
35283           gl_header=$gl_cv_absolute_wchar_h
35284           gl_cv_next_wchar_h='"'$gl_header'"'
35285          else
35286               gl_cv_next_wchar_h='<'wchar.h'>'
35287             fi
35288
35289
35290fi
35291{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
35292$as_echo "$gl_cv_next_wchar_h" >&6; }
35293     fi
35294     NEXT_WCHAR_H=$gl_cv_next_wchar_h
35295
35296     if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35297       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35298       gl_next_as_first_directive='<'wchar.h'>'
35299     else
35300       # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35301       gl_next_as_first_directive=$gl_cv_next_wchar_h
35302     fi
35303     NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
35304
35305
35306
35307
35308  if test $ac_cv_header_wchar_h = yes; then
35309    HAVE_WCHAR_H=1
35310  else
35311    HAVE_WCHAR_H=0
35312  fi
35313
35314
35315
35316
35317
35318  if test $gt_cv_c_wint_t = yes; then
35319    HAVE_WINT_T=1
35320  else
35321    HAVE_WINT_T=0
35322  fi
35323
35324
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365  for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
35366    as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35367    { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
35368$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35369if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
35370  $as_echo_n "(cached) " >&6
35371else
35372  cat >conftest.$ac_ext <<_ACEOF
35373/* confdefs.h.  */
35374_ACEOF
35375cat confdefs.h >>conftest.$ac_ext
35376cat >>conftest.$ac_ext <<_ACEOF
35377/* end confdefs.h.  */
35378
35379/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35380   <wchar.h>.
35381   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35382   included before <wchar.h>.  */
35383#if !(defined __GLIBC__ && !defined __UCLIBC__)
35384# include <stddef.h>
35385# include <stdio.h>
35386# include <time.h>
35387#endif
35388#include <wchar.h>
35389
35390int
35391main ()
35392{
35393#undef $gl_func
35394  (void) $gl_func;
35395  ;
35396  return 0;
35397}
35398_ACEOF
35399rm -f conftest.$ac_objext
35400if { (ac_try="$ac_compile"
35401case "(($ac_try" in
35402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35403  *) ac_try_echo=$ac_try;;
35404esac
35405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35406$as_echo "$ac_try_echo") >&5
35407  (eval "$ac_compile") 2>conftest.er1
35408  ac_status=$?
35409  grep -v '^ *+' conftest.er1 >conftest.err
35410  rm -f conftest.er1
35411  cat conftest.err >&5
35412  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413  (exit $ac_status); } && {
35414	 test -z "$ac_c_werror_flag" ||
35415	 test ! -s conftest.err
35416       } && test -s conftest.$ac_objext; then
35417  eval "$as_gl_Symbol=yes"
35418else
35419  $as_echo "$as_me: failed program was:" >&5
35420sed 's/^/| /' conftest.$ac_ext >&5
35421
35422	eval "$as_gl_Symbol=no"
35423fi
35424
35425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35426fi
35427ac_res=`eval 'as_val=${'$as_gl_Symbol'}
35428		 $as_echo "$as_val"'`
35429	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35430$as_echo "$ac_res" >&6; }
35431    as_val=`eval 'as_val=${'$as_gl_Symbol'}
35432		 $as_echo "$as_val"'`
35433   if test "x$as_val" = x""yes; then
35434  cat >>confdefs.h <<_ACEOF
35435#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
35436_ACEOF
35437
35438                     eval ac_cv_have_decl_$gl_func=yes
35439fi
35440
35441      done
35442
35443
35444
35445
35446
35447for ac_header in stdint.h
35448do
35449as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35451  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35452$as_echo_n "checking for $ac_header... " >&6; }
35453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35454  $as_echo_n "(cached) " >&6
35455fi
35456ac_res=`eval 'as_val=${'$as_ac_Header'}
35457		 $as_echo "$as_val"'`
35458	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35459$as_echo "$ac_res" >&6; }
35460else
35461  # Is the header compilable?
35462{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35463$as_echo_n "checking $ac_header usability... " >&6; }
35464cat >conftest.$ac_ext <<_ACEOF
35465/* confdefs.h.  */
35466_ACEOF
35467cat confdefs.h >>conftest.$ac_ext
35468cat >>conftest.$ac_ext <<_ACEOF
35469/* end confdefs.h.  */
35470$ac_includes_default
35471#include <$ac_header>
35472_ACEOF
35473rm -f conftest.$ac_objext
35474if { (ac_try="$ac_compile"
35475case "(($ac_try" in
35476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35477  *) ac_try_echo=$ac_try;;
35478esac
35479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35480$as_echo "$ac_try_echo") >&5
35481  (eval "$ac_compile") 2>conftest.er1
35482  ac_status=$?
35483  grep -v '^ *+' conftest.er1 >conftest.err
35484  rm -f conftest.er1
35485  cat conftest.err >&5
35486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35487  (exit $ac_status); } && {
35488	 test -z "$ac_c_werror_flag" ||
35489	 test ! -s conftest.err
35490       } && test -s conftest.$ac_objext; then
35491  ac_header_compiler=yes
35492else
35493  $as_echo "$as_me: failed program was:" >&5
35494sed 's/^/| /' conftest.$ac_ext >&5
35495
35496	ac_header_compiler=no
35497fi
35498
35499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35500{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35501$as_echo "$ac_header_compiler" >&6; }
35502
35503# Is the header present?
35504{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35505$as_echo_n "checking $ac_header presence... " >&6; }
35506cat >conftest.$ac_ext <<_ACEOF
35507/* confdefs.h.  */
35508_ACEOF
35509cat confdefs.h >>conftest.$ac_ext
35510cat >>conftest.$ac_ext <<_ACEOF
35511/* end confdefs.h.  */
35512#include <$ac_header>
35513_ACEOF
35514if { (ac_try="$ac_cpp conftest.$ac_ext"
35515case "(($ac_try" in
35516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35517  *) ac_try_echo=$ac_try;;
35518esac
35519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35520$as_echo "$ac_try_echo") >&5
35521  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35522  ac_status=$?
35523  grep -v '^ *+' conftest.er1 >conftest.err
35524  rm -f conftest.er1
35525  cat conftest.err >&5
35526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527  (exit $ac_status); } >/dev/null && {
35528	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35529	 test ! -s conftest.err
35530       }; then
35531  ac_header_preproc=yes
35532else
35533  $as_echo "$as_me: failed program was:" >&5
35534sed 's/^/| /' conftest.$ac_ext >&5
35535
35536  ac_header_preproc=no
35537fi
35538
35539rm -f conftest.err conftest.$ac_ext
35540{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35541$as_echo "$ac_header_preproc" >&6; }
35542
35543# So?  What about this header?
35544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35545  yes:no: )
35546    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35547$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35548    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35549$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35550    ac_header_preproc=yes
35551    ;;
35552  no:yes:* )
35553    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35554$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35555    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35556$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35557    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35558$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35559    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35560$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35561    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35562$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35563    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35564$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35565
35566    ;;
35567esac
35568{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35569$as_echo_n "checking for $ac_header... " >&6; }
35570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35571  $as_echo_n "(cached) " >&6
35572else
35573  eval "$as_ac_Header=\$ac_header_preproc"
35574fi
35575ac_res=`eval 'as_val=${'$as_ac_Header'}
35576		 $as_echo "$as_val"'`
35577	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35578$as_echo "$ac_res" >&6; }
35579
35580fi
35581as_val=`eval 'as_val=${'$as_ac_Header'}
35582		 $as_echo "$as_val"'`
35583   if test "x$as_val" = x""yes; then
35584  cat >>confdefs.h <<_ACEOF
35585#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35586_ACEOF
35587
35588fi
35589
35590done
35591
35592
35593  # End of code from modules
35594
35595
35596
35597
35598
35599
35600
35601
35602
35603  gltests_libdeps=
35604  gltests_ltlibdeps=
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614  gl_source_base='libmissing/tests'
35615  gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
35616
35617  gl_module_indicator_condition=$gltests_WITNESS
35618
35619
35620
35621
35622  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
35623    REPLACE_FDOPEN=1
35624  else
35625        { $as_echo "$as_me:$LINENO: checking whether fdopen sets errno" >&5
35626$as_echo_n "checking whether fdopen sets errno... " >&6; }
35627if test "${gl_cv_func_fdopen_works+set}" = set; then
35628  $as_echo_n "(cached) " >&6
35629else
35630
35631        if test "$cross_compiling" = yes; then
35632  case "$host_os" in
35633             mingw*) gl_cv_func_fdopen_works="guessing no" ;;
35634             *)      gl_cv_func_fdopen_works="guessing yes" ;;
35635           esac
35636
35637else
35638  cat >conftest.$ac_ext <<_ACEOF
35639/* confdefs.h.  */
35640_ACEOF
35641cat confdefs.h >>conftest.$ac_ext
35642cat >>conftest.$ac_ext <<_ACEOF
35643/* end confdefs.h.  */
35644
35645#include <stdio.h>
35646#include <errno.h>
35647int
35648main (void)
35649{
35650  FILE *fp;
35651  errno = 0;
35652  fp = fdopen (-1, "r");
35653  if (fp == NULL && errno == 0)
35654    return 1;
35655  return 0;
35656}
35657_ACEOF
35658rm -f conftest$ac_exeext
35659if { (ac_try="$ac_link"
35660case "(($ac_try" in
35661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35662  *) ac_try_echo=$ac_try;;
35663esac
35664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35665$as_echo "$ac_try_echo") >&5
35666  (eval "$ac_link") 2>&5
35667  ac_status=$?
35668  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35669  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35670  { (case "(($ac_try" in
35671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35672  *) ac_try_echo=$ac_try;;
35673esac
35674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35675$as_echo "$ac_try_echo") >&5
35676  (eval "$ac_try") 2>&5
35677  ac_status=$?
35678  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679  (exit $ac_status); }; }; then
35680  gl_cv_func_fdopen_works=yes
35681else
35682  $as_echo "$as_me: program exited with status $ac_status" >&5
35683$as_echo "$as_me: failed program was:" >&5
35684sed 's/^/| /' conftest.$ac_ext >&5
35685
35686( exit $ac_status )
35687gl_cv_func_fdopen_works=no
35688fi
35689rm -rf conftest.dSYM
35690rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35691fi
35692
35693
35694
35695fi
35696{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_fdopen_works" >&5
35697$as_echo "$gl_cv_func_fdopen_works" >&6; }
35698    case "$gl_cv_func_fdopen_works" in
35699      *no) REPLACE_FDOPEN=1 ;;
35700    esac
35701  fi
35702
35703  if test $REPLACE_FDOPEN = 1; then
35704
35705
35706
35707
35708
35709
35710
35711
35712  gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
35713
35714
35715  fi
35716
35717
35718
35719
35720
35721    if test "$GNULIB_FDOPEN" != 1; then
35722        if test "$GNULIB_FDOPEN" = 0; then
35723      GNULIB_FDOPEN=$gl_module_indicator_condition
35724    else
35725      GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
35726    fi
35727  fi
35728
35729
35730
35731
35732
35733cat >>confdefs.h <<\_ACEOF
35734#define GNULIB_TEST_FDOPEN 1
35735_ACEOF
35736
35737
35738
35739
35740
35741
35742
35743for ac_func in getpagesize
35744do
35745as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35746{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35747$as_echo_n "checking for $ac_func... " >&6; }
35748if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35749  $as_echo_n "(cached) " >&6
35750else
35751  cat >conftest.$ac_ext <<_ACEOF
35752/* confdefs.h.  */
35753_ACEOF
35754cat confdefs.h >>conftest.$ac_ext
35755cat >>conftest.$ac_ext <<_ACEOF
35756/* end confdefs.h.  */
35757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35759#define $ac_func innocuous_$ac_func
35760
35761/* System header to define __stub macros and hopefully few prototypes,
35762    which can conflict with char $ac_func (); below.
35763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35764    <limits.h> exists even on freestanding compilers.  */
35765
35766#ifdef __STDC__
35767# include <limits.h>
35768#else
35769# include <assert.h>
35770#endif
35771
35772#undef $ac_func
35773
35774/* Override any GCC internal prototype to avoid an error.
35775   Use char because int might match the return type of a GCC
35776   builtin and then its argument prototype would still apply.  */
35777#ifdef __cplusplus
35778extern "C"
35779#endif
35780char $ac_func ();
35781/* The GNU C library defines this for functions which it implements
35782    to always fail with ENOSYS.  Some functions are actually named
35783    something starting with __ and the normal name is an alias.  */
35784#if defined __stub_$ac_func || defined __stub___$ac_func
35785choke me
35786#endif
35787
35788int
35789main ()
35790{
35791return $ac_func ();
35792  ;
35793  return 0;
35794}
35795_ACEOF
35796rm -f conftest.$ac_objext conftest$ac_exeext
35797if { (ac_try="$ac_link"
35798case "(($ac_try" in
35799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35800  *) ac_try_echo=$ac_try;;
35801esac
35802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35803$as_echo "$ac_try_echo") >&5
35804  (eval "$ac_link") 2>conftest.er1
35805  ac_status=$?
35806  grep -v '^ *+' conftest.er1 >conftest.err
35807  rm -f conftest.er1
35808  cat conftest.err >&5
35809  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810  (exit $ac_status); } && {
35811	 test -z "$ac_c_werror_flag" ||
35812	 test ! -s conftest.err
35813       } && test -s conftest$ac_exeext && {
35814	 test "$cross_compiling" = yes ||
35815	 $as_test_x conftest$ac_exeext
35816       }; then
35817  eval "$as_ac_var=yes"
35818else
35819  $as_echo "$as_me: failed program was:" >&5
35820sed 's/^/| /' conftest.$ac_ext >&5
35821
35822	eval "$as_ac_var=no"
35823fi
35824
35825rm -rf conftest.dSYM
35826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35827      conftest$ac_exeext conftest.$ac_ext
35828fi
35829ac_res=`eval 'as_val=${'$as_ac_var'}
35830		 $as_echo "$as_val"'`
35831	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35832$as_echo "$ac_res" >&6; }
35833as_val=`eval 'as_val=${'$as_ac_var'}
35834		 $as_echo "$as_val"'`
35835   if test "x$as_val" = x""yes; then
35836  cat >>confdefs.h <<_ACEOF
35837#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35838_ACEOF
35839
35840fi
35841done
35842
35843  if test $ac_cv_func_getpagesize = no; then
35844    HAVE_GETPAGESIZE=0
35845
35846for ac_header in OS.h
35847do
35848as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35850  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35851$as_echo_n "checking for $ac_header... " >&6; }
35852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35853  $as_echo_n "(cached) " >&6
35854fi
35855ac_res=`eval 'as_val=${'$as_ac_Header'}
35856		 $as_echo "$as_val"'`
35857	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35858$as_echo "$ac_res" >&6; }
35859else
35860  # Is the header compilable?
35861{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35862$as_echo_n "checking $ac_header usability... " >&6; }
35863cat >conftest.$ac_ext <<_ACEOF
35864/* confdefs.h.  */
35865_ACEOF
35866cat confdefs.h >>conftest.$ac_ext
35867cat >>conftest.$ac_ext <<_ACEOF
35868/* end confdefs.h.  */
35869$ac_includes_default
35870#include <$ac_header>
35871_ACEOF
35872rm -f conftest.$ac_objext
35873if { (ac_try="$ac_compile"
35874case "(($ac_try" in
35875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35876  *) ac_try_echo=$ac_try;;
35877esac
35878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35879$as_echo "$ac_try_echo") >&5
35880  (eval "$ac_compile") 2>conftest.er1
35881  ac_status=$?
35882  grep -v '^ *+' conftest.er1 >conftest.err
35883  rm -f conftest.er1
35884  cat conftest.err >&5
35885  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886  (exit $ac_status); } && {
35887	 test -z "$ac_c_werror_flag" ||
35888	 test ! -s conftest.err
35889       } && test -s conftest.$ac_objext; then
35890  ac_header_compiler=yes
35891else
35892  $as_echo "$as_me: failed program was:" >&5
35893sed 's/^/| /' conftest.$ac_ext >&5
35894
35895	ac_header_compiler=no
35896fi
35897
35898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35899{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35900$as_echo "$ac_header_compiler" >&6; }
35901
35902# Is the header present?
35903{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35904$as_echo_n "checking $ac_header presence... " >&6; }
35905cat >conftest.$ac_ext <<_ACEOF
35906/* confdefs.h.  */
35907_ACEOF
35908cat confdefs.h >>conftest.$ac_ext
35909cat >>conftest.$ac_ext <<_ACEOF
35910/* end confdefs.h.  */
35911#include <$ac_header>
35912_ACEOF
35913if { (ac_try="$ac_cpp conftest.$ac_ext"
35914case "(($ac_try" in
35915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35916  *) ac_try_echo=$ac_try;;
35917esac
35918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35919$as_echo "$ac_try_echo") >&5
35920  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35921  ac_status=$?
35922  grep -v '^ *+' conftest.er1 >conftest.err
35923  rm -f conftest.er1
35924  cat conftest.err >&5
35925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35926  (exit $ac_status); } >/dev/null && {
35927	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35928	 test ! -s conftest.err
35929       }; then
35930  ac_header_preproc=yes
35931else
35932  $as_echo "$as_me: failed program was:" >&5
35933sed 's/^/| /' conftest.$ac_ext >&5
35934
35935  ac_header_preproc=no
35936fi
35937
35938rm -f conftest.err conftest.$ac_ext
35939{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35940$as_echo "$ac_header_preproc" >&6; }
35941
35942# So?  What about this header?
35943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35944  yes:no: )
35945    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35946$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35947    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35948$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35949    ac_header_preproc=yes
35950    ;;
35951  no:yes:* )
35952    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35953$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35954    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35955$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35956    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35957$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35958    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35959$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35960    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35961$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35962    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35963$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35964
35965    ;;
35966esac
35967{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35968$as_echo_n "checking for $ac_header... " >&6; }
35969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35970  $as_echo_n "(cached) " >&6
35971else
35972  eval "$as_ac_Header=\$ac_header_preproc"
35973fi
35974ac_res=`eval 'as_val=${'$as_ac_Header'}
35975		 $as_echo "$as_val"'`
35976	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35977$as_echo "$ac_res" >&6; }
35978
35979fi
35980as_val=`eval 'as_val=${'$as_ac_Header'}
35981		 $as_echo "$as_val"'`
35982   if test "x$as_val" = x""yes; then
35983  cat >>confdefs.h <<_ACEOF
35984#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35985_ACEOF
35986
35987fi
35988
35989done
35990
35991    if test $ac_cv_header_OS_h = yes; then
35992      HAVE_OS_H=1
35993    fi
35994
35995for ac_header in sys/param.h
35996do
35997as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35999  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36000$as_echo_n "checking for $ac_header... " >&6; }
36001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36002  $as_echo_n "(cached) " >&6
36003fi
36004ac_res=`eval 'as_val=${'$as_ac_Header'}
36005		 $as_echo "$as_val"'`
36006	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36007$as_echo "$ac_res" >&6; }
36008else
36009  # Is the header compilable?
36010{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36011$as_echo_n "checking $ac_header usability... " >&6; }
36012cat >conftest.$ac_ext <<_ACEOF
36013/* confdefs.h.  */
36014_ACEOF
36015cat confdefs.h >>conftest.$ac_ext
36016cat >>conftest.$ac_ext <<_ACEOF
36017/* end confdefs.h.  */
36018$ac_includes_default
36019#include <$ac_header>
36020_ACEOF
36021rm -f conftest.$ac_objext
36022if { (ac_try="$ac_compile"
36023case "(($ac_try" in
36024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36025  *) ac_try_echo=$ac_try;;
36026esac
36027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36028$as_echo "$ac_try_echo") >&5
36029  (eval "$ac_compile") 2>conftest.er1
36030  ac_status=$?
36031  grep -v '^ *+' conftest.er1 >conftest.err
36032  rm -f conftest.er1
36033  cat conftest.err >&5
36034  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035  (exit $ac_status); } && {
36036	 test -z "$ac_c_werror_flag" ||
36037	 test ! -s conftest.err
36038       } && test -s conftest.$ac_objext; then
36039  ac_header_compiler=yes
36040else
36041  $as_echo "$as_me: failed program was:" >&5
36042sed 's/^/| /' conftest.$ac_ext >&5
36043
36044	ac_header_compiler=no
36045fi
36046
36047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36048{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36049$as_echo "$ac_header_compiler" >&6; }
36050
36051# Is the header present?
36052{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36053$as_echo_n "checking $ac_header presence... " >&6; }
36054cat >conftest.$ac_ext <<_ACEOF
36055/* confdefs.h.  */
36056_ACEOF
36057cat confdefs.h >>conftest.$ac_ext
36058cat >>conftest.$ac_ext <<_ACEOF
36059/* end confdefs.h.  */
36060#include <$ac_header>
36061_ACEOF
36062if { (ac_try="$ac_cpp conftest.$ac_ext"
36063case "(($ac_try" in
36064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36065  *) ac_try_echo=$ac_try;;
36066esac
36067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36068$as_echo "$ac_try_echo") >&5
36069  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36070  ac_status=$?
36071  grep -v '^ *+' conftest.er1 >conftest.err
36072  rm -f conftest.er1
36073  cat conftest.err >&5
36074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36075  (exit $ac_status); } >/dev/null && {
36076	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36077	 test ! -s conftest.err
36078       }; then
36079  ac_header_preproc=yes
36080else
36081  $as_echo "$as_me: failed program was:" >&5
36082sed 's/^/| /' conftest.$ac_ext >&5
36083
36084  ac_header_preproc=no
36085fi
36086
36087rm -f conftest.err conftest.$ac_ext
36088{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36089$as_echo "$ac_header_preproc" >&6; }
36090
36091# So?  What about this header?
36092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36093  yes:no: )
36094    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36095$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36096    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36097$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36098    ac_header_preproc=yes
36099    ;;
36100  no:yes:* )
36101    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36102$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36103    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36104$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36105    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36106$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36107    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36108$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36109    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36110$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36111    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36112$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36113
36114    ;;
36115esac
36116{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36117$as_echo_n "checking for $ac_header... " >&6; }
36118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36119  $as_echo_n "(cached) " >&6
36120else
36121  eval "$as_ac_Header=\$ac_header_preproc"
36122fi
36123ac_res=`eval 'as_val=${'$as_ac_Header'}
36124		 $as_echo "$as_val"'`
36125	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36126$as_echo "$ac_res" >&6; }
36127
36128fi
36129as_val=`eval 'as_val=${'$as_ac_Header'}
36130		 $as_echo "$as_val"'`
36131   if test "x$as_val" = x""yes; then
36132  cat >>confdefs.h <<_ACEOF
36133#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36134_ACEOF
36135
36136fi
36137
36138done
36139
36140    if test $ac_cv_header_sys_param_h = yes; then
36141      HAVE_SYS_PARAM_H=1
36142    fi
36143  fi
36144  case "$host_os" in
36145    mingw*)
36146      REPLACE_GETPAGESIZE=1
36147      ;;
36148  esac
36149      { $as_echo "$as_me:$LINENO: checking whether getpagesize is declared" >&5
36150$as_echo_n "checking whether getpagesize is declared... " >&6; }
36151if test "${ac_cv_have_decl_getpagesize+set}" = set; then
36152  $as_echo_n "(cached) " >&6
36153else
36154  cat >conftest.$ac_ext <<_ACEOF
36155/* confdefs.h.  */
36156_ACEOF
36157cat confdefs.h >>conftest.$ac_ext
36158cat >>conftest.$ac_ext <<_ACEOF
36159/* end confdefs.h.  */
36160$ac_includes_default
36161int
36162main ()
36163{
36164#ifndef getpagesize
36165  (void) getpagesize;
36166#endif
36167
36168  ;
36169  return 0;
36170}
36171_ACEOF
36172rm -f conftest.$ac_objext
36173if { (ac_try="$ac_compile"
36174case "(($ac_try" in
36175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36176  *) ac_try_echo=$ac_try;;
36177esac
36178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36179$as_echo "$ac_try_echo") >&5
36180  (eval "$ac_compile") 2>conftest.er1
36181  ac_status=$?
36182  grep -v '^ *+' conftest.er1 >conftest.err
36183  rm -f conftest.er1
36184  cat conftest.err >&5
36185  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186  (exit $ac_status); } && {
36187	 test -z "$ac_c_werror_flag" ||
36188	 test ! -s conftest.err
36189       } && test -s conftest.$ac_objext; then
36190  ac_cv_have_decl_getpagesize=yes
36191else
36192  $as_echo "$as_me: failed program was:" >&5
36193sed 's/^/| /' conftest.$ac_ext >&5
36194
36195	ac_cv_have_decl_getpagesize=no
36196fi
36197
36198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36199fi
36200{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpagesize" >&5
36201$as_echo "$ac_cv_have_decl_getpagesize" >&6; }
36202if test "x$ac_cv_have_decl_getpagesize" = x""yes; then
36203  :
36204else
36205  HAVE_DECL_GETPAGESIZE=0
36206fi
36207
36208
36209  if test $REPLACE_GETPAGESIZE = 1; then
36210
36211
36212
36213
36214
36215
36216
36217
36218  gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
36219
36220  fi
36221
36222
36223
36224
36225
36226    if test "$GNULIB_GETPAGESIZE" != 1; then
36227        if test "$GNULIB_GETPAGESIZE" = 0; then
36228      GNULIB_GETPAGESIZE=$gl_module_indicator_condition
36229    else
36230      GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
36231    fi
36232  fi
36233
36234
36235
36236
36237
36238cat >>confdefs.h <<\_ACEOF
36239#define GNULIB_TEST_GETPAGESIZE 1
36240_ACEOF
36241
36242
36243
36244
36245
36246
36247
36248
36249  PRIPTR_PREFIX=
36250  if test -n "$STDINT_H"; then
36251        PRIPTR_PREFIX='"l"'
36252  else
36253        for glpfx in '' l ll I64; do
36254      case $glpfx in
36255        '')  gltype1='int';;
36256        l)   gltype1='long int';;
36257        ll)  gltype1='long long int';;
36258        I64) gltype1='__int64';;
36259      esac
36260      cat >conftest.$ac_ext <<_ACEOF
36261/* confdefs.h.  */
36262_ACEOF
36263cat confdefs.h >>conftest.$ac_ext
36264cat >>conftest.$ac_ext <<_ACEOF
36265/* end confdefs.h.  */
36266#include <stdint.h>
36267           extern intptr_t foo;
36268           extern $gltype1 foo;
36269int
36270main ()
36271{
36272
36273  ;
36274  return 0;
36275}
36276_ACEOF
36277rm -f conftest.$ac_objext
36278if { (ac_try="$ac_compile"
36279case "(($ac_try" in
36280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36281  *) ac_try_echo=$ac_try;;
36282esac
36283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36284$as_echo "$ac_try_echo") >&5
36285  (eval "$ac_compile") 2>conftest.er1
36286  ac_status=$?
36287  grep -v '^ *+' conftest.er1 >conftest.err
36288  rm -f conftest.er1
36289  cat conftest.err >&5
36290  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291  (exit $ac_status); } && {
36292	 test -z "$ac_c_werror_flag" ||
36293	 test ! -s conftest.err
36294       } && test -s conftest.$ac_objext; then
36295  PRIPTR_PREFIX='"'$glpfx'"'
36296else
36297  $as_echo "$as_me: failed program was:" >&5
36298sed 's/^/| /' conftest.$ac_ext >&5
36299
36300
36301fi
36302
36303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36304      test -n "$PRIPTR_PREFIX" && break
36305    done
36306  fi
36307
36308
36309
36310  { $as_echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
36311$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
36312if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
36313  $as_echo_n "(cached) " >&6
36314else
36315  cat >conftest.$ac_ext <<_ACEOF
36316/* confdefs.h.  */
36317_ACEOF
36318cat confdefs.h >>conftest.$ac_ext
36319cat >>conftest.$ac_ext <<_ACEOF
36320/* end confdefs.h.  */
36321/* Work also in C++ mode.  */
36322            #define __STDC_LIMIT_MACROS 1
36323
36324            /* Work if build is not clean.  */
36325            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
36326
36327            #include <limits.h>
36328            #if HAVE_STDINT_H
36329             #include <stdint.h>
36330            #endif
36331
36332            #if defined INT32_MAX && defined INTMAX_MAX
36333             #define CONDITION (INT32_MAX < INTMAX_MAX)
36334            #elif HAVE_LONG_LONG_INT
36335             #define CONDITION (sizeof (int) < sizeof (long long int))
36336            #else
36337             #define CONDITION 0
36338            #endif
36339            int test[CONDITION ? 1 : -1];
36340int
36341main ()
36342{
36343
36344  ;
36345  return 0;
36346}
36347_ACEOF
36348rm -f conftest.$ac_objext
36349if { (ac_try="$ac_compile"
36350case "(($ac_try" in
36351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36352  *) ac_try_echo=$ac_try;;
36353esac
36354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36355$as_echo "$ac_try_echo") >&5
36356  (eval "$ac_compile") 2>conftest.er1
36357  ac_status=$?
36358  grep -v '^ *+' conftest.er1 >conftest.err
36359  rm -f conftest.er1
36360  cat conftest.err >&5
36361  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362  (exit $ac_status); } && {
36363	 test -z "$ac_c_werror_flag" ||
36364	 test ! -s conftest.err
36365       } && test -s conftest.$ac_objext; then
36366  gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
36367else
36368  $as_echo "$as_me: failed program was:" >&5
36369sed 's/^/| /' conftest.$ac_ext >&5
36370
36371	gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
36372fi
36373
36374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36375fi
36376{ $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
36377$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
36378  if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
36379    INT32_MAX_LT_INTMAX_MAX=1;
36380  else
36381    INT32_MAX_LT_INTMAX_MAX=0;
36382  fi
36383
36384
36385  if test $APPLE_UNIVERSAL_BUILD = 0; then
36386
36387  { $as_echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
36388$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
36389if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
36390  $as_echo_n "(cached) " >&6
36391else
36392  cat >conftest.$ac_ext <<_ACEOF
36393/* confdefs.h.  */
36394_ACEOF
36395cat confdefs.h >>conftest.$ac_ext
36396cat >>conftest.$ac_ext <<_ACEOF
36397/* end confdefs.h.  */
36398/* Work also in C++ mode.  */
36399            #define __STDC_LIMIT_MACROS 1
36400
36401            /* Work if build is not clean.  */
36402            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
36403
36404            #include <limits.h>
36405            #if HAVE_STDINT_H
36406             #include <stdint.h>
36407            #endif
36408
36409            #if defined INT64_MAX
36410             #define CONDITION (INT64_MAX == LONG_MAX)
36411            #elif HAVE_LONG_LONG_INT
36412             #define CONDITION (sizeof (long long int) == sizeof (long int))
36413            #else
36414             #define CONDITION 0
36415            #endif
36416            int test[CONDITION ? 1 : -1];
36417int
36418main ()
36419{
36420
36421  ;
36422  return 0;
36423}
36424_ACEOF
36425rm -f conftest.$ac_objext
36426if { (ac_try="$ac_compile"
36427case "(($ac_try" in
36428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36429  *) ac_try_echo=$ac_try;;
36430esac
36431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36432$as_echo "$ac_try_echo") >&5
36433  (eval "$ac_compile") 2>conftest.er1
36434  ac_status=$?
36435  grep -v '^ *+' conftest.er1 >conftest.err
36436  rm -f conftest.er1
36437  cat conftest.err >&5
36438  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439  (exit $ac_status); } && {
36440	 test -z "$ac_c_werror_flag" ||
36441	 test ! -s conftest.err
36442       } && test -s conftest.$ac_objext; then
36443  gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
36444else
36445  $as_echo "$as_me: failed program was:" >&5
36446sed 's/^/| /' conftest.$ac_ext >&5
36447
36448	gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
36449fi
36450
36451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36452fi
36453{ $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
36454$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
36455  if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
36456    INT64_MAX_EQ_LONG_MAX=1;
36457  else
36458    INT64_MAX_EQ_LONG_MAX=0;
36459  fi
36460
36461
36462  else
36463    INT64_MAX_EQ_LONG_MAX=-1
36464  fi
36465
36466  { $as_echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
36467$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
36468if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
36469  $as_echo_n "(cached) " >&6
36470else
36471  cat >conftest.$ac_ext <<_ACEOF
36472/* confdefs.h.  */
36473_ACEOF
36474cat confdefs.h >>conftest.$ac_ext
36475cat >>conftest.$ac_ext <<_ACEOF
36476/* end confdefs.h.  */
36477/* Work also in C++ mode.  */
36478            #define __STDC_LIMIT_MACROS 1
36479
36480            /* Work if build is not clean.  */
36481            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
36482
36483            #include <limits.h>
36484            #if HAVE_STDINT_H
36485             #include <stdint.h>
36486            #endif
36487
36488            #if defined UINT32_MAX && defined UINTMAX_MAX
36489             #define CONDITION (UINT32_MAX < UINTMAX_MAX)
36490            #elif HAVE_LONG_LONG_INT
36491             #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
36492            #else
36493             #define CONDITION 0
36494            #endif
36495            int test[CONDITION ? 1 : -1];
36496int
36497main ()
36498{
36499
36500  ;
36501  return 0;
36502}
36503_ACEOF
36504rm -f conftest.$ac_objext
36505if { (ac_try="$ac_compile"
36506case "(($ac_try" in
36507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36508  *) ac_try_echo=$ac_try;;
36509esac
36510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36511$as_echo "$ac_try_echo") >&5
36512  (eval "$ac_compile") 2>conftest.er1
36513  ac_status=$?
36514  grep -v '^ *+' conftest.er1 >conftest.err
36515  rm -f conftest.er1
36516  cat conftest.err >&5
36517  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518  (exit $ac_status); } && {
36519	 test -z "$ac_c_werror_flag" ||
36520	 test ! -s conftest.err
36521       } && test -s conftest.$ac_objext; then
36522  gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
36523else
36524  $as_echo "$as_me: failed program was:" >&5
36525sed 's/^/| /' conftest.$ac_ext >&5
36526
36527	gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
36528fi
36529
36530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36531fi
36532{ $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
36533$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
36534  if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
36535    UINT32_MAX_LT_UINTMAX_MAX=1;
36536  else
36537    UINT32_MAX_LT_UINTMAX_MAX=0;
36538  fi
36539
36540
36541  if test $APPLE_UNIVERSAL_BUILD = 0; then
36542
36543  { $as_echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
36544$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
36545if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
36546  $as_echo_n "(cached) " >&6
36547else
36548  cat >conftest.$ac_ext <<_ACEOF
36549/* confdefs.h.  */
36550_ACEOF
36551cat confdefs.h >>conftest.$ac_ext
36552cat >>conftest.$ac_ext <<_ACEOF
36553/* end confdefs.h.  */
36554/* Work also in C++ mode.  */
36555            #define __STDC_LIMIT_MACROS 1
36556
36557            /* Work if build is not clean.  */
36558            #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
36559
36560            #include <limits.h>
36561            #if HAVE_STDINT_H
36562             #include <stdint.h>
36563            #endif
36564
36565            #if defined UINT64_MAX
36566             #define CONDITION (UINT64_MAX == ULONG_MAX)
36567            #elif HAVE_LONG_LONG_INT
36568             #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
36569            #else
36570             #define CONDITION 0
36571            #endif
36572            int test[CONDITION ? 1 : -1];
36573int
36574main ()
36575{
36576
36577  ;
36578  return 0;
36579}
36580_ACEOF
36581rm -f conftest.$ac_objext
36582if { (ac_try="$ac_compile"
36583case "(($ac_try" in
36584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36585  *) ac_try_echo=$ac_try;;
36586esac
36587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36588$as_echo "$ac_try_echo") >&5
36589  (eval "$ac_compile") 2>conftest.er1
36590  ac_status=$?
36591  grep -v '^ *+' conftest.er1 >conftest.err
36592  rm -f conftest.er1
36593  cat conftest.err >&5
36594  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595  (exit $ac_status); } && {
36596	 test -z "$ac_c_werror_flag" ||
36597	 test ! -s conftest.err
36598       } && test -s conftest.$ac_objext; then
36599  gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
36600else
36601  $as_echo "$as_me: failed program was:" >&5
36602sed 's/^/| /' conftest.$ac_ext >&5
36603
36604	gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
36605fi
36606
36607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36608fi
36609{ $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
36610$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
36611  if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
36612    UINT64_MAX_EQ_ULONG_MAX=1;
36613  else
36614    UINT64_MAX_EQ_ULONG_MAX=0;
36615  fi
36616
36617
36618  else
36619    UINT64_MAX_EQ_ULONG_MAX=-1
36620  fi
36621
36622
36623
36624
36625
36626
36627  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
36628  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
36629  # irrelevant for anonymous mappings.
36630  { $as_echo "$as_me:$LINENO: checking for mmap" >&5
36631$as_echo_n "checking for mmap... " >&6; }
36632if test "${ac_cv_func_mmap+set}" = set; then
36633  $as_echo_n "(cached) " >&6
36634else
36635  cat >conftest.$ac_ext <<_ACEOF
36636/* confdefs.h.  */
36637_ACEOF
36638cat confdefs.h >>conftest.$ac_ext
36639cat >>conftest.$ac_ext <<_ACEOF
36640/* end confdefs.h.  */
36641/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
36642   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36643#define mmap innocuous_mmap
36644
36645/* System header to define __stub macros and hopefully few prototypes,
36646    which can conflict with char mmap (); below.
36647    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36648    <limits.h> exists even on freestanding compilers.  */
36649
36650#ifdef __STDC__
36651# include <limits.h>
36652#else
36653# include <assert.h>
36654#endif
36655
36656#undef mmap
36657
36658/* Override any GCC internal prototype to avoid an error.
36659   Use char because int might match the return type of a GCC
36660   builtin and then its argument prototype would still apply.  */
36661#ifdef __cplusplus
36662extern "C"
36663#endif
36664char mmap ();
36665/* The GNU C library defines this for functions which it implements
36666    to always fail with ENOSYS.  Some functions are actually named
36667    something starting with __ and the normal name is an alias.  */
36668#if defined __stub_mmap || defined __stub___mmap
36669choke me
36670#endif
36671
36672int
36673main ()
36674{
36675return mmap ();
36676  ;
36677  return 0;
36678}
36679_ACEOF
36680rm -f conftest.$ac_objext conftest$ac_exeext
36681if { (ac_try="$ac_link"
36682case "(($ac_try" in
36683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36684  *) ac_try_echo=$ac_try;;
36685esac
36686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36687$as_echo "$ac_try_echo") >&5
36688  (eval "$ac_link") 2>conftest.er1
36689  ac_status=$?
36690  grep -v '^ *+' conftest.er1 >conftest.err
36691  rm -f conftest.er1
36692  cat conftest.err >&5
36693  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36694  (exit $ac_status); } && {
36695	 test -z "$ac_c_werror_flag" ||
36696	 test ! -s conftest.err
36697       } && test -s conftest$ac_exeext && {
36698	 test "$cross_compiling" = yes ||
36699	 $as_test_x conftest$ac_exeext
36700       }; then
36701  ac_cv_func_mmap=yes
36702else
36703  $as_echo "$as_me: failed program was:" >&5
36704sed 's/^/| /' conftest.$ac_ext >&5
36705
36706	ac_cv_func_mmap=no
36707fi
36708
36709rm -rf conftest.dSYM
36710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36711      conftest$ac_exeext conftest.$ac_ext
36712fi
36713{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
36714$as_echo "$ac_cv_func_mmap" >&6; }
36715if test "x$ac_cv_func_mmap" = x""yes; then
36716  gl_have_mmap=yes
36717else
36718  gl_have_mmap=no
36719fi
36720
36721
36722  # Try to allow MAP_ANONYMOUS.
36723  gl_have_mmap_anonymous=no
36724  if test $gl_have_mmap = yes; then
36725    { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
36726$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
36727    cat >conftest.$ac_ext <<_ACEOF
36728/* confdefs.h.  */
36729_ACEOF
36730cat confdefs.h >>conftest.$ac_ext
36731cat >>conftest.$ac_ext <<_ACEOF
36732/* end confdefs.h.  */
36733
36734#include <sys/mman.h>
36735#ifdef MAP_ANONYMOUS
36736    I cannot identify this map
36737#endif
36738
36739_ACEOF
36740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36741  $EGREP "I cannot identify this map" >/dev/null 2>&1; then
36742  gl_have_mmap_anonymous=yes
36743fi
36744rm -f conftest*
36745
36746    if test $gl_have_mmap_anonymous != yes; then
36747      cat >conftest.$ac_ext <<_ACEOF
36748/* confdefs.h.  */
36749_ACEOF
36750cat confdefs.h >>conftest.$ac_ext
36751cat >>conftest.$ac_ext <<_ACEOF
36752/* end confdefs.h.  */
36753
36754#include <sys/mman.h>
36755#ifdef MAP_ANON
36756    I cannot identify this map
36757#endif
36758
36759_ACEOF
36760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36761  $EGREP "I cannot identify this map" >/dev/null 2>&1; then
36762
36763cat >>confdefs.h <<\_ACEOF
36764#define MAP_ANONYMOUS MAP_ANON
36765_ACEOF
36766
36767         gl_have_mmap_anonymous=yes
36768fi
36769rm -f conftest*
36770
36771    fi
36772    { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
36773$as_echo "$gl_have_mmap_anonymous" >&6; }
36774    if test $gl_have_mmap_anonymous = yes; then
36775
36776cat >>confdefs.h <<\_ACEOF
36777#define HAVE_MAP_ANONYMOUS 1
36778_ACEOF
36779
36780    fi
36781  fi
36782
36783
36784  :
36785
36786
36787
36788
36789
36790
36791  :
36792
36793
36794
36795
36796
36797
36798
36799
36800  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
36801  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
36802  # irrelevant for anonymous mappings.
36803  { $as_echo "$as_me:$LINENO: checking for mmap" >&5
36804$as_echo_n "checking for mmap... " >&6; }
36805if test "${ac_cv_func_mmap+set}" = set; then
36806  $as_echo_n "(cached) " >&6
36807else
36808  cat >conftest.$ac_ext <<_ACEOF
36809/* confdefs.h.  */
36810_ACEOF
36811cat confdefs.h >>conftest.$ac_ext
36812cat >>conftest.$ac_ext <<_ACEOF
36813/* end confdefs.h.  */
36814/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
36815   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36816#define mmap innocuous_mmap
36817
36818/* System header to define __stub macros and hopefully few prototypes,
36819    which can conflict with char mmap (); below.
36820    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36821    <limits.h> exists even on freestanding compilers.  */
36822
36823#ifdef __STDC__
36824# include <limits.h>
36825#else
36826# include <assert.h>
36827#endif
36828
36829#undef mmap
36830
36831/* Override any GCC internal prototype to avoid an error.
36832   Use char because int might match the return type of a GCC
36833   builtin and then its argument prototype would still apply.  */
36834#ifdef __cplusplus
36835extern "C"
36836#endif
36837char mmap ();
36838/* The GNU C library defines this for functions which it implements
36839    to always fail with ENOSYS.  Some functions are actually named
36840    something starting with __ and the normal name is an alias.  */
36841#if defined __stub_mmap || defined __stub___mmap
36842choke me
36843#endif
36844
36845int
36846main ()
36847{
36848return mmap ();
36849  ;
36850  return 0;
36851}
36852_ACEOF
36853rm -f conftest.$ac_objext conftest$ac_exeext
36854if { (ac_try="$ac_link"
36855case "(($ac_try" in
36856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36857  *) ac_try_echo=$ac_try;;
36858esac
36859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36860$as_echo "$ac_try_echo") >&5
36861  (eval "$ac_link") 2>conftest.er1
36862  ac_status=$?
36863  grep -v '^ *+' conftest.er1 >conftest.err
36864  rm -f conftest.er1
36865  cat conftest.err >&5
36866  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867  (exit $ac_status); } && {
36868	 test -z "$ac_c_werror_flag" ||
36869	 test ! -s conftest.err
36870       } && test -s conftest$ac_exeext && {
36871	 test "$cross_compiling" = yes ||
36872	 $as_test_x conftest$ac_exeext
36873       }; then
36874  ac_cv_func_mmap=yes
36875else
36876  $as_echo "$as_me: failed program was:" >&5
36877sed 's/^/| /' conftest.$ac_ext >&5
36878
36879	ac_cv_func_mmap=no
36880fi
36881
36882rm -rf conftest.dSYM
36883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36884      conftest$ac_exeext conftest.$ac_ext
36885fi
36886{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
36887$as_echo "$ac_cv_func_mmap" >&6; }
36888if test "x$ac_cv_func_mmap" = x""yes; then
36889  gl_have_mmap=yes
36890else
36891  gl_have_mmap=no
36892fi
36893
36894
36895  # Try to allow MAP_ANONYMOUS.
36896  gl_have_mmap_anonymous=no
36897  if test $gl_have_mmap = yes; then
36898    { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
36899$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
36900    cat >conftest.$ac_ext <<_ACEOF
36901/* confdefs.h.  */
36902_ACEOF
36903cat confdefs.h >>conftest.$ac_ext
36904cat >>conftest.$ac_ext <<_ACEOF
36905/* end confdefs.h.  */
36906
36907#include <sys/mman.h>
36908#ifdef MAP_ANONYMOUS
36909    I cannot identify this map
36910#endif
36911
36912_ACEOF
36913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36914  $EGREP "I cannot identify this map" >/dev/null 2>&1; then
36915  gl_have_mmap_anonymous=yes
36916fi
36917rm -f conftest*
36918
36919    if test $gl_have_mmap_anonymous != yes; then
36920      cat >conftest.$ac_ext <<_ACEOF
36921/* confdefs.h.  */
36922_ACEOF
36923cat confdefs.h >>conftest.$ac_ext
36924cat >>conftest.$ac_ext <<_ACEOF
36925/* end confdefs.h.  */
36926
36927#include <sys/mman.h>
36928#ifdef MAP_ANON
36929    I cannot identify this map
36930#endif
36931
36932_ACEOF
36933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36934  $EGREP "I cannot identify this map" >/dev/null 2>&1; then
36935
36936cat >>confdefs.h <<\_ACEOF
36937#define MAP_ANONYMOUS MAP_ANON
36938_ACEOF
36939
36940         gl_have_mmap_anonymous=yes
36941fi
36942rm -f conftest*
36943
36944    fi
36945    { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
36946$as_echo "$gl_have_mmap_anonymous" >&6; }
36947    if test $gl_have_mmap_anonymous = yes; then
36948
36949cat >>confdefs.h <<\_ACEOF
36950#define HAVE_MAP_ANONYMOUS 1
36951_ACEOF
36952
36953    fi
36954  fi
36955
36956
36957  :
36958
36959
36960
36961
36962
36963
36964  :
36965
36966
36967
36968
36969
36970
36971
36972  :
36973
36974
36975
36976
36977
36978  if test $ac_cv_func__set_invalid_parameter_handler = yes; then
36979    HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
36980
36981cat >>confdefs.h <<\_ACEOF
36982#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1
36983_ACEOF
36984
36985  else
36986    HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
36987  fi
36988
36989
36990  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
36991
36992
36993
36994
36995
36996
36997
36998
36999  gltests_LIBOBJS="$gltests_LIBOBJS msvc-inval.$ac_objext"
37000
37001  fi
37002
37003
37004
37005  # Define two additional variables used in the Makefile substitution.
37006
37007  if test "$ac_cv_header_stdbool_h" = yes; then
37008    STDBOOL_H=''
37009  else
37010    STDBOOL_H='stdbool.h'
37011  fi
37012
37013   if test -n "$STDBOOL_H"; then
37014  GL_GENERATE_STDBOOL_H_TRUE=
37015  GL_GENERATE_STDBOOL_H_FALSE='#'
37016else
37017  GL_GENERATE_STDBOOL_H_TRUE='#'
37018  GL_GENERATE_STDBOOL_H_FALSE=
37019fi
37020
37021
37022  if test "$ac_cv_type__Bool" = yes; then
37023    HAVE__BOOL=1
37024  else
37025    HAVE__BOOL=0
37026  fi
37027
37028
37029
37030
37031
37032
37033
37034  # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
37035  # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
37036  # irrelevant for anonymous mappings.
37037  { $as_echo "$as_me:$LINENO: checking for mmap" >&5
37038$as_echo_n "checking for mmap... " >&6; }
37039if test "${ac_cv_func_mmap+set}" = set; then
37040  $as_echo_n "(cached) " >&6
37041else
37042  cat >conftest.$ac_ext <<_ACEOF
37043/* confdefs.h.  */
37044_ACEOF
37045cat confdefs.h >>conftest.$ac_ext
37046cat >>conftest.$ac_ext <<_ACEOF
37047/* end confdefs.h.  */
37048/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
37049   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37050#define mmap innocuous_mmap
37051
37052/* System header to define __stub macros and hopefully few prototypes,
37053    which can conflict with char mmap (); below.
37054    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37055    <limits.h> exists even on freestanding compilers.  */
37056
37057#ifdef __STDC__
37058# include <limits.h>
37059#else
37060# include <assert.h>
37061#endif
37062
37063#undef mmap
37064
37065/* Override any GCC internal prototype to avoid an error.
37066   Use char because int might match the return type of a GCC
37067   builtin and then its argument prototype would still apply.  */
37068#ifdef __cplusplus
37069extern "C"
37070#endif
37071char mmap ();
37072/* The GNU C library defines this for functions which it implements
37073    to always fail with ENOSYS.  Some functions are actually named
37074    something starting with __ and the normal name is an alias.  */
37075#if defined __stub_mmap || defined __stub___mmap
37076choke me
37077#endif
37078
37079int
37080main ()
37081{
37082return mmap ();
37083  ;
37084  return 0;
37085}
37086_ACEOF
37087rm -f conftest.$ac_objext conftest$ac_exeext
37088if { (ac_try="$ac_link"
37089case "(($ac_try" in
37090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37091  *) ac_try_echo=$ac_try;;
37092esac
37093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37094$as_echo "$ac_try_echo") >&5
37095  (eval "$ac_link") 2>conftest.er1
37096  ac_status=$?
37097  grep -v '^ *+' conftest.er1 >conftest.err
37098  rm -f conftest.er1
37099  cat conftest.err >&5
37100  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37101  (exit $ac_status); } && {
37102	 test -z "$ac_c_werror_flag" ||
37103	 test ! -s conftest.err
37104       } && test -s conftest$ac_exeext && {
37105	 test "$cross_compiling" = yes ||
37106	 $as_test_x conftest$ac_exeext
37107       }; then
37108  ac_cv_func_mmap=yes
37109else
37110  $as_echo "$as_me: failed program was:" >&5
37111sed 's/^/| /' conftest.$ac_ext >&5
37112
37113	ac_cv_func_mmap=no
37114fi
37115
37116rm -rf conftest.dSYM
37117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37118      conftest$ac_exeext conftest.$ac_ext
37119fi
37120{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
37121$as_echo "$ac_cv_func_mmap" >&6; }
37122if test "x$ac_cv_func_mmap" = x""yes; then
37123  gl_have_mmap=yes
37124else
37125  gl_have_mmap=no
37126fi
37127
37128
37129  # Try to allow MAP_ANONYMOUS.
37130  gl_have_mmap_anonymous=no
37131  if test $gl_have_mmap = yes; then
37132    { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
37133$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
37134    cat >conftest.$ac_ext <<_ACEOF
37135/* confdefs.h.  */
37136_ACEOF
37137cat confdefs.h >>conftest.$ac_ext
37138cat >>conftest.$ac_ext <<_ACEOF
37139/* end confdefs.h.  */
37140
37141#include <sys/mman.h>
37142#ifdef MAP_ANONYMOUS
37143    I cannot identify this map
37144#endif
37145
37146_ACEOF
37147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37148  $EGREP "I cannot identify this map" >/dev/null 2>&1; then
37149  gl_have_mmap_anonymous=yes
37150fi
37151rm -f conftest*
37152
37153    if test $gl_have_mmap_anonymous != yes; then
37154      cat >conftest.$ac_ext <<_ACEOF
37155/* confdefs.h.  */
37156_ACEOF
37157cat confdefs.h >>conftest.$ac_ext
37158cat >>conftest.$ac_ext <<_ACEOF
37159/* end confdefs.h.  */
37160
37161#include <sys/mman.h>
37162#ifdef MAP_ANON
37163    I cannot identify this map
37164#endif
37165
37166_ACEOF
37167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37168  $EGREP "I cannot identify this map" >/dev/null 2>&1; then
37169
37170cat >>confdefs.h <<\_ACEOF
37171#define MAP_ANONYMOUS MAP_ANON
37172_ACEOF
37173
37174         gl_have_mmap_anonymous=yes
37175fi
37176rm -f conftest*
37177
37178    fi
37179    { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
37180$as_echo "$gl_have_mmap_anonymous" >&6; }
37181    if test $gl_have_mmap_anonymous = yes; then
37182
37183cat >>confdefs.h <<\_ACEOF
37184#define HAVE_MAP_ANONYMOUS 1
37185_ACEOF
37186
37187    fi
37188  fi
37189
37190
37191  :
37192
37193
37194
37195
37196
37197
37198  :
37199
37200
37201
37202
37203
37204
37205
37206
37207  if test $gl_threads_api = posix; then
37208    gl_save_LIBS="$LIBS"
37209    LIBS="$LIBS $LIBMULTITHREAD"
37210
37211for ac_func in pthread_atfork
37212do
37213as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37214{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37215$as_echo_n "checking for $ac_func... " >&6; }
37216if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37217  $as_echo_n "(cached) " >&6
37218else
37219  cat >conftest.$ac_ext <<_ACEOF
37220/* confdefs.h.  */
37221_ACEOF
37222cat confdefs.h >>conftest.$ac_ext
37223cat >>conftest.$ac_ext <<_ACEOF
37224/* end confdefs.h.  */
37225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37226   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37227#define $ac_func innocuous_$ac_func
37228
37229/* System header to define __stub macros and hopefully few prototypes,
37230    which can conflict with char $ac_func (); below.
37231    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37232    <limits.h> exists even on freestanding compilers.  */
37233
37234#ifdef __STDC__
37235# include <limits.h>
37236#else
37237# include <assert.h>
37238#endif
37239
37240#undef $ac_func
37241
37242/* Override any GCC internal prototype to avoid an error.
37243   Use char because int might match the return type of a GCC
37244   builtin and then its argument prototype would still apply.  */
37245#ifdef __cplusplus
37246extern "C"
37247#endif
37248char $ac_func ();
37249/* The GNU C library defines this for functions which it implements
37250    to always fail with ENOSYS.  Some functions are actually named
37251    something starting with __ and the normal name is an alias.  */
37252#if defined __stub_$ac_func || defined __stub___$ac_func
37253choke me
37254#endif
37255
37256int
37257main ()
37258{
37259return $ac_func ();
37260  ;
37261  return 0;
37262}
37263_ACEOF
37264rm -f conftest.$ac_objext conftest$ac_exeext
37265if { (ac_try="$ac_link"
37266case "(($ac_try" in
37267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37268  *) ac_try_echo=$ac_try;;
37269esac
37270eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37271$as_echo "$ac_try_echo") >&5
37272  (eval "$ac_link") 2>conftest.er1
37273  ac_status=$?
37274  grep -v '^ *+' conftest.er1 >conftest.err
37275  rm -f conftest.er1
37276  cat conftest.err >&5
37277  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278  (exit $ac_status); } && {
37279	 test -z "$ac_c_werror_flag" ||
37280	 test ! -s conftest.err
37281       } && test -s conftest$ac_exeext && {
37282	 test "$cross_compiling" = yes ||
37283	 $as_test_x conftest$ac_exeext
37284       }; then
37285  eval "$as_ac_var=yes"
37286else
37287  $as_echo "$as_me: failed program was:" >&5
37288sed 's/^/| /' conftest.$ac_ext >&5
37289
37290	eval "$as_ac_var=no"
37291fi
37292
37293rm -rf conftest.dSYM
37294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37295      conftest$ac_exeext conftest.$ac_ext
37296fi
37297ac_res=`eval 'as_val=${'$as_ac_var'}
37298		 $as_echo "$as_val"'`
37299	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37300$as_echo "$ac_res" >&6; }
37301as_val=`eval 'as_val=${'$as_ac_var'}
37302		 $as_echo "$as_val"'`
37303   if test "x$as_val" = x""yes; then
37304  cat >>confdefs.h <<_ACEOF
37305#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37306_ACEOF
37307
37308fi
37309done
37310
37311    LIBS="$gl_save_LIBS"
37312  fi
37313
37314
37315
37316    YIELD_LIB=
37317  if test $gl_threads_api = posix; then
37318        { $as_echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
37319$as_echo_n "checking for sched_yield in -lrt... " >&6; }
37320if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
37321  $as_echo_n "(cached) " >&6
37322else
37323  ac_check_lib_save_LIBS=$LIBS
37324LIBS="-lrt  $LIBS"
37325cat >conftest.$ac_ext <<_ACEOF
37326/* confdefs.h.  */
37327_ACEOF
37328cat confdefs.h >>conftest.$ac_ext
37329cat >>conftest.$ac_ext <<_ACEOF
37330/* end confdefs.h.  */
37331
37332/* Override any GCC internal prototype to avoid an error.
37333   Use char because int might match the return type of a GCC
37334   builtin and then its argument prototype would still apply.  */
37335#ifdef __cplusplus
37336extern "C"
37337#endif
37338char sched_yield ();
37339int
37340main ()
37341{
37342return sched_yield ();
37343  ;
37344  return 0;
37345}
37346_ACEOF
37347rm -f conftest.$ac_objext conftest$ac_exeext
37348if { (ac_try="$ac_link"
37349case "(($ac_try" in
37350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37351  *) ac_try_echo=$ac_try;;
37352esac
37353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37354$as_echo "$ac_try_echo") >&5
37355  (eval "$ac_link") 2>conftest.er1
37356  ac_status=$?
37357  grep -v '^ *+' conftest.er1 >conftest.err
37358  rm -f conftest.er1
37359  cat conftest.err >&5
37360  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361  (exit $ac_status); } && {
37362	 test -z "$ac_c_werror_flag" ||
37363	 test ! -s conftest.err
37364       } && test -s conftest$ac_exeext && {
37365	 test "$cross_compiling" = yes ||
37366	 $as_test_x conftest$ac_exeext
37367       }; then
37368  ac_cv_lib_rt_sched_yield=yes
37369else
37370  $as_echo "$as_me: failed program was:" >&5
37371sed 's/^/| /' conftest.$ac_ext >&5
37372
37373	ac_cv_lib_rt_sched_yield=no
37374fi
37375
37376rm -rf conftest.dSYM
37377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37378      conftest$ac_exeext conftest.$ac_ext
37379LIBS=$ac_check_lib_save_LIBS
37380fi
37381{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
37382$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
37383if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then
37384  YIELD_LIB=-lrt
37385else
37386         { $as_echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37387$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
37388if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37389  $as_echo_n "(cached) " >&6
37390else
37391  ac_check_lib_save_LIBS=$LIBS
37392LIBS="-lposix4  $LIBS"
37393cat >conftest.$ac_ext <<_ACEOF
37394/* confdefs.h.  */
37395_ACEOF
37396cat confdefs.h >>conftest.$ac_ext
37397cat >>conftest.$ac_ext <<_ACEOF
37398/* end confdefs.h.  */
37399
37400/* Override any GCC internal prototype to avoid an error.
37401   Use char because int might match the return type of a GCC
37402   builtin and then its argument prototype would still apply.  */
37403#ifdef __cplusplus
37404extern "C"
37405#endif
37406char sched_yield ();
37407int
37408main ()
37409{
37410return sched_yield ();
37411  ;
37412  return 0;
37413}
37414_ACEOF
37415rm -f conftest.$ac_objext conftest$ac_exeext
37416if { (ac_try="$ac_link"
37417case "(($ac_try" in
37418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37419  *) ac_try_echo=$ac_try;;
37420esac
37421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37422$as_echo "$ac_try_echo") >&5
37423  (eval "$ac_link") 2>conftest.er1
37424  ac_status=$?
37425  grep -v '^ *+' conftest.er1 >conftest.err
37426  rm -f conftest.er1
37427  cat conftest.err >&5
37428  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429  (exit $ac_status); } && {
37430	 test -z "$ac_c_werror_flag" ||
37431	 test ! -s conftest.err
37432       } && test -s conftest$ac_exeext && {
37433	 test "$cross_compiling" = yes ||
37434	 $as_test_x conftest$ac_exeext
37435       }; then
37436  ac_cv_lib_posix4_sched_yield=yes
37437else
37438  $as_echo "$as_me: failed program was:" >&5
37439sed 's/^/| /' conftest.$ac_ext >&5
37440
37441	ac_cv_lib_posix4_sched_yield=no
37442fi
37443
37444rm -rf conftest.dSYM
37445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37446      conftest$ac_exeext conftest.$ac_ext
37447LIBS=$ac_check_lib_save_LIBS
37448fi
37449{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37450$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
37451if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then
37452  YIELD_LIB=-lposix4
37453fi
37454
37455fi
37456
37457  fi
37458
37459
37460
37461
37462
37463
37464
37465
37466
37467
37468
37469
37470  LIBTESTS_LIBDEPS="$gltests_libdeps"
37471
37472
37473
37474
37475
37476
37477
37478if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
37479	if test -n "$ac_tool_prefix"; then
37480  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
37481set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37482{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37483$as_echo_n "checking for $ac_word... " >&6; }
37484if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37485  $as_echo_n "(cached) " >&6
37486else
37487  case $PKG_CONFIG in
37488  [\\/]* | ?:[\\/]*)
37489  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37490  ;;
37491  *)
37492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37493for as_dir in $PATH
37494do
37495  IFS=$as_save_IFS
37496  test -z "$as_dir" && as_dir=.
37497  for ac_exec_ext in '' $ac_executable_extensions; do
37498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37499    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37500    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37501    break 2
37502  fi
37503done
37504done
37505IFS=$as_save_IFS
37506
37507  ;;
37508esac
37509fi
37510PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37511if test -n "$PKG_CONFIG"; then
37512  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37513$as_echo "$PKG_CONFIG" >&6; }
37514else
37515  { $as_echo "$as_me:$LINENO: result: no" >&5
37516$as_echo "no" >&6; }
37517fi
37518
37519
37520fi
37521if test -z "$ac_cv_path_PKG_CONFIG"; then
37522  ac_pt_PKG_CONFIG=$PKG_CONFIG
37523  # Extract the first word of "pkg-config", so it can be a program name with args.
37524set dummy pkg-config; ac_word=$2
37525{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37526$as_echo_n "checking for $ac_word... " >&6; }
37527if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
37528  $as_echo_n "(cached) " >&6
37529else
37530  case $ac_pt_PKG_CONFIG in
37531  [\\/]* | ?:[\\/]*)
37532  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37533  ;;
37534  *)
37535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37536for as_dir in $PATH
37537do
37538  IFS=$as_save_IFS
37539  test -z "$as_dir" && as_dir=.
37540  for ac_exec_ext in '' $ac_executable_extensions; do
37541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37542    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37543    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37544    break 2
37545  fi
37546done
37547done
37548IFS=$as_save_IFS
37549
37550  ;;
37551esac
37552fi
37553ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
37554if test -n "$ac_pt_PKG_CONFIG"; then
37555  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
37556$as_echo "$ac_pt_PKG_CONFIG" >&6; }
37557else
37558  { $as_echo "$as_me:$LINENO: result: no" >&5
37559$as_echo "no" >&6; }
37560fi
37561
37562  if test "x$ac_pt_PKG_CONFIG" = x; then
37563    PKG_CONFIG=""
37564  else
37565    case $cross_compiling:$ac_tool_warned in
37566yes:)
37567{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
37568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37569ac_tool_warned=yes ;;
37570esac
37571    PKG_CONFIG=$ac_pt_PKG_CONFIG
37572  fi
37573else
37574  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
37575fi
37576
37577fi
37578if test -n "$PKG_CONFIG"; then
37579	_pkg_min_version=0.9.0
37580	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
37581$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
37582	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
37583		{ $as_echo "$as_me:$LINENO: result: yes" >&5
37584$as_echo "yes" >&6; }
37585	else
37586		{ $as_echo "$as_me:$LINENO: result: no" >&5
37587$as_echo "no" >&6; }
37588		PKG_CONFIG=""
37589	fi
37590
37591fi
37592
37593
37594# Check whether --with-html-dir was given.
37595if test "${with_html_dir+set}" = set; then
37596  withval=$with_html_dir;
37597else
37598  with_html_dir='${datadir}/gtk-doc/html'
37599fi
37600
37601  HTML_DIR="$with_html_dir"
37602
37603
37604    # Check whether --enable-gtk-doc was given.
37605if test "${enable_gtk_doc+set}" = set; then
37606  enableval=$enable_gtk_doc;
37607else
37608  enable_gtk_doc=no
37609fi
37610
37611
37612  if test x$enable_gtk_doc = xyes; then
37613    if test -n "$PKG_CONFIG" && \
37614    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\"") >&5
37615  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
37616  ac_status=$?
37617  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618  (exit $ac_status); }; then
37619  :
37620else
37621  { { $as_echo "$as_me:$LINENO: error: You need to have gtk-doc >= 1.0 installed to build gtk-doc" >&5
37622$as_echo "$as_me: error: You need to have gtk-doc >= 1.0 installed to build gtk-doc" >&2;}
37623   { (exit 1); exit 1; }; }
37624fi
37625  fi
37626
37627  { $as_echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5
37628$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
37629  { $as_echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5
37630$as_echo "$enable_gtk_doc" >&6; }
37631
37632  for ac_prog in gtkdoc-check
37633do
37634  # Extract the first word of "$ac_prog", so it can be a program name with args.
37635set dummy $ac_prog; ac_word=$2
37636{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37637$as_echo_n "checking for $ac_word... " >&6; }
37638if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then
37639  $as_echo_n "(cached) " >&6
37640else
37641  case $GTKDOC_CHECK in
37642  [\\/]* | ?:[\\/]*)
37643  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
37644  ;;
37645  *)
37646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37647for as_dir in $PATH
37648do
37649  IFS=$as_save_IFS
37650  test -z "$as_dir" && as_dir=.
37651  for ac_exec_ext in '' $ac_executable_extensions; do
37652  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37653    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
37654    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37655    break 2
37656  fi
37657done
37658done
37659IFS=$as_save_IFS
37660
37661  ;;
37662esac
37663fi
37664GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
37665if test -n "$GTKDOC_CHECK"; then
37666  { $as_echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5
37667$as_echo "$GTKDOC_CHECK" >&6; }
37668else
37669  { $as_echo "$as_me:$LINENO: result: no" >&5
37670$as_echo "no" >&6; }
37671fi
37672
37673
37674  test -n "$GTKDOC_CHECK" && break
37675done
37676
37677
37678   if test x$enable_gtk_doc = xyes; then
37679  ENABLE_GTK_DOC_TRUE=
37680  ENABLE_GTK_DOC_FALSE='#'
37681else
37682  ENABLE_GTK_DOC_TRUE='#'
37683  ENABLE_GTK_DOC_FALSE=
37684fi
37685
37686   if test -n "$LIBTOOL"; then
37687  GTK_DOC_USE_LIBTOOL_TRUE=
37688  GTK_DOC_USE_LIBTOOL_FALSE='#'
37689else
37690  GTK_DOC_USE_LIBTOOL_TRUE='#'
37691  GTK_DOC_USE_LIBTOOL_FALSE=
37692fi
37693
37694
37695
37696
37697
37698{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
37699$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
37700if test "${ac_cv_c_const+set}" = set; then
37701  $as_echo_n "(cached) " >&6
37702else
37703  cat >conftest.$ac_ext <<_ACEOF
37704/* confdefs.h.  */
37705_ACEOF
37706cat confdefs.h >>conftest.$ac_ext
37707cat >>conftest.$ac_ext <<_ACEOF
37708/* end confdefs.h.  */
37709
37710int
37711main ()
37712{
37713/* FIXME: Include the comments suggested by Paul. */
37714#ifndef __cplusplus
37715  /* Ultrix mips cc rejects this.  */
37716  typedef int charset[2];
37717  const charset cs;
37718  /* SunOS 4.1.1 cc rejects this.  */
37719  char const *const *pcpcc;
37720  char **ppc;
37721  /* NEC SVR4.0.2 mips cc rejects this.  */
37722  struct point {int x, y;};
37723  static struct point const zero = {0,0};
37724  /* AIX XL C 1.02.0.0 rejects this.
37725     It does not let you subtract one const X* pointer from another in
37726     an arm of an if-expression whose if-part is not a constant
37727     expression */
37728  const char *g = "string";
37729  pcpcc = &g + (g ? g-g : 0);
37730  /* HPUX 7.0 cc rejects these. */
37731  ++pcpcc;
37732  ppc = (char**) pcpcc;
37733  pcpcc = (char const *const *) ppc;
37734  { /* SCO 3.2v4 cc rejects this.  */
37735    char *t;
37736    char const *s = 0 ? (char *) 0 : (char const *) 0;
37737
37738    *t++ = 0;
37739    if (s) return 0;
37740  }
37741  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
37742    int x[] = {25, 17};
37743    const int *foo = &x[0];
37744    ++foo;
37745  }
37746  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
37747    typedef const int *iptr;
37748    iptr p = 0;
37749    ++p;
37750  }
37751  { /* AIX XL C 1.02.0.0 rejects this saying
37752       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
37753    struct s { int j; const int *ap[3]; };
37754    struct s *b; b->j = 5;
37755  }
37756  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
37757    const int foo = 10;
37758    if (!foo) return 0;
37759  }
37760  return !cs[0] && !zero.x;
37761#endif
37762
37763  ;
37764  return 0;
37765}
37766_ACEOF
37767rm -f conftest.$ac_objext
37768if { (ac_try="$ac_compile"
37769case "(($ac_try" in
37770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37771  *) ac_try_echo=$ac_try;;
37772esac
37773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37774$as_echo "$ac_try_echo") >&5
37775  (eval "$ac_compile") 2>conftest.er1
37776  ac_status=$?
37777  grep -v '^ *+' conftest.er1 >conftest.err
37778  rm -f conftest.er1
37779  cat conftest.err >&5
37780  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37781  (exit $ac_status); } && {
37782	 test -z "$ac_c_werror_flag" ||
37783	 test ! -s conftest.err
37784       } && test -s conftest.$ac_objext; then
37785  ac_cv_c_const=yes
37786else
37787  $as_echo "$as_me: failed program was:" >&5
37788sed 's/^/| /' conftest.$ac_ext >&5
37789
37790	ac_cv_c_const=no
37791fi
37792
37793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37794fi
37795{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
37796$as_echo "$ac_cv_c_const" >&6; }
37797if test $ac_cv_c_const = no; then
37798
37799cat >>confdefs.h <<\_ACEOF
37800#define const /**/
37801_ACEOF
37802
37803fi
37804
37805{ $as_echo "$as_me:$LINENO: checking for inline" >&5
37806$as_echo_n "checking for inline... " >&6; }
37807if test "${ac_cv_c_inline+set}" = set; then
37808  $as_echo_n "(cached) " >&6
37809else
37810  ac_cv_c_inline=no
37811for ac_kw in inline __inline__ __inline; do
37812  cat >conftest.$ac_ext <<_ACEOF
37813/* confdefs.h.  */
37814_ACEOF
37815cat confdefs.h >>conftest.$ac_ext
37816cat >>conftest.$ac_ext <<_ACEOF
37817/* end confdefs.h.  */
37818#ifndef __cplusplus
37819typedef int foo_t;
37820static $ac_kw foo_t static_foo () {return 0; }
37821$ac_kw foo_t foo () {return 0; }
37822#endif
37823
37824_ACEOF
37825rm -f conftest.$ac_objext
37826if { (ac_try="$ac_compile"
37827case "(($ac_try" in
37828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37829  *) ac_try_echo=$ac_try;;
37830esac
37831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37832$as_echo "$ac_try_echo") >&5
37833  (eval "$ac_compile") 2>conftest.er1
37834  ac_status=$?
37835  grep -v '^ *+' conftest.er1 >conftest.err
37836  rm -f conftest.er1
37837  cat conftest.err >&5
37838  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37839  (exit $ac_status); } && {
37840	 test -z "$ac_c_werror_flag" ||
37841	 test ! -s conftest.err
37842       } && test -s conftest.$ac_objext; then
37843  ac_cv_c_inline=$ac_kw
37844else
37845  $as_echo "$as_me: failed program was:" >&5
37846sed 's/^/| /' conftest.$ac_ext >&5
37847
37848
37849fi
37850
37851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37852  test "$ac_cv_c_inline" != no && break
37853done
37854
37855fi
37856{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
37857$as_echo "$ac_cv_c_inline" >&6; }
37858
37859
37860case $ac_cv_c_inline in
37861  inline | yes) ;;
37862  *)
37863    case $ac_cv_c_inline in
37864      no) ac_val=;;
37865      *) ac_val=$ac_cv_c_inline;;
37866    esac
37867    cat >>confdefs.h <<_ACEOF
37868#ifndef __cplusplus
37869#define inline $ac_val
37870#endif
37871_ACEOF
37872    ;;
37873esac
37874
37875{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
37876$as_echo_n "checking for size_t... " >&6; }
37877if test "${ac_cv_type_size_t+set}" = set; then
37878  $as_echo_n "(cached) " >&6
37879else
37880  ac_cv_type_size_t=no
37881cat >conftest.$ac_ext <<_ACEOF
37882/* confdefs.h.  */
37883_ACEOF
37884cat confdefs.h >>conftest.$ac_ext
37885cat >>conftest.$ac_ext <<_ACEOF
37886/* end confdefs.h.  */
37887$ac_includes_default
37888int
37889main ()
37890{
37891if (sizeof (size_t))
37892       return 0;
37893  ;
37894  return 0;
37895}
37896_ACEOF
37897rm -f conftest.$ac_objext
37898if { (ac_try="$ac_compile"
37899case "(($ac_try" in
37900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37901  *) ac_try_echo=$ac_try;;
37902esac
37903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37904$as_echo "$ac_try_echo") >&5
37905  (eval "$ac_compile") 2>conftest.er1
37906  ac_status=$?
37907  grep -v '^ *+' conftest.er1 >conftest.err
37908  rm -f conftest.er1
37909  cat conftest.err >&5
37910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37911  (exit $ac_status); } && {
37912	 test -z "$ac_c_werror_flag" ||
37913	 test ! -s conftest.err
37914       } && test -s conftest.$ac_objext; then
37915  cat >conftest.$ac_ext <<_ACEOF
37916/* confdefs.h.  */
37917_ACEOF
37918cat confdefs.h >>conftest.$ac_ext
37919cat >>conftest.$ac_ext <<_ACEOF
37920/* end confdefs.h.  */
37921$ac_includes_default
37922int
37923main ()
37924{
37925if (sizeof ((size_t)))
37926	  return 0;
37927  ;
37928  return 0;
37929}
37930_ACEOF
37931rm -f conftest.$ac_objext
37932if { (ac_try="$ac_compile"
37933case "(($ac_try" in
37934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37935  *) ac_try_echo=$ac_try;;
37936esac
37937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37938$as_echo "$ac_try_echo") >&5
37939  (eval "$ac_compile") 2>conftest.er1
37940  ac_status=$?
37941  grep -v '^ *+' conftest.er1 >conftest.err
37942  rm -f conftest.er1
37943  cat conftest.err >&5
37944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37945  (exit $ac_status); } && {
37946	 test -z "$ac_c_werror_flag" ||
37947	 test ! -s conftest.err
37948       } && test -s conftest.$ac_objext; then
37949  :
37950else
37951  $as_echo "$as_me: failed program was:" >&5
37952sed 's/^/| /' conftest.$ac_ext >&5
37953
37954	ac_cv_type_size_t=yes
37955fi
37956
37957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37958else
37959  $as_echo "$as_me: failed program was:" >&5
37960sed 's/^/| /' conftest.$ac_ext >&5
37961
37962
37963fi
37964
37965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37966fi
37967{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37968$as_echo "$ac_cv_type_size_t" >&6; }
37969if test "x$ac_cv_type_size_t" = x""yes; then
37970  :
37971else
37972
37973cat >>confdefs.h <<_ACEOF
37974#define size_t unsigned int
37975_ACEOF
37976
37977fi
37978
37979{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37980$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
37981if test "${ac_cv_header_time+set}" = set; then
37982  $as_echo_n "(cached) " >&6
37983else
37984  cat >conftest.$ac_ext <<_ACEOF
37985/* confdefs.h.  */
37986_ACEOF
37987cat confdefs.h >>conftest.$ac_ext
37988cat >>conftest.$ac_ext <<_ACEOF
37989/* end confdefs.h.  */
37990#include <sys/types.h>
37991#include <sys/time.h>
37992#include <time.h>
37993
37994int
37995main ()
37996{
37997if ((struct tm *) 0)
37998return 0;
37999  ;
38000  return 0;
38001}
38002_ACEOF
38003rm -f conftest.$ac_objext
38004if { (ac_try="$ac_compile"
38005case "(($ac_try" in
38006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38007  *) ac_try_echo=$ac_try;;
38008esac
38009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38010$as_echo "$ac_try_echo") >&5
38011  (eval "$ac_compile") 2>conftest.er1
38012  ac_status=$?
38013  grep -v '^ *+' conftest.er1 >conftest.err
38014  rm -f conftest.er1
38015  cat conftest.err >&5
38016  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017  (exit $ac_status); } && {
38018	 test -z "$ac_c_werror_flag" ||
38019	 test ! -s conftest.err
38020       } && test -s conftest.$ac_objext; then
38021  ac_cv_header_time=yes
38022else
38023  $as_echo "$as_me: failed program was:" >&5
38024sed 's/^/| /' conftest.$ac_ext >&5
38025
38026	ac_cv_header_time=no
38027fi
38028
38029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38030fi
38031{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
38032$as_echo "$ac_cv_header_time" >&6; }
38033if test $ac_cv_header_time = yes; then
38034
38035cat >>confdefs.h <<\_ACEOF
38036#define TIME_WITH_SYS_TIME 1
38037_ACEOF
38038
38039fi
38040
38041
38042
38043
38044
38045
38046
38047
38048
38049
38050  EXP_VAR=LIBDIR
38051  FROM_VAR=$libdir
38052
38053    prefix_save=$prefix
38054  exec_prefix_save=$exec_prefix
38055
38056    if test "x$prefix" = "xNONE"; then
38057    prefix="$ac_default_prefix"
38058  fi
38059    if test "x$exec_prefix" = "xNONE"; then
38060    exec_prefix=$prefix
38061  fi
38062
38063  full_var="$FROM_VAR"
38064    while true; do
38065    new_full_var="`eval echo $full_var`"
38066    if test "x$new_full_var" = "x$full_var"; then break; fi
38067    full_var=$new_full_var
38068  done
38069
38070    full_var=$new_full_var
38071  LIBDIR="$full_var"
38072
38073
38074    prefix=$prefix_save
38075  exec_prefix=$exec_prefix_save
38076
38077
38078  EXP_VAR=DATADIR
38079  FROM_VAR=$datadir
38080
38081    prefix_save=$prefix
38082  exec_prefix_save=$exec_prefix
38083
38084    if test "x$prefix" = "xNONE"; then
38085    prefix="$ac_default_prefix"
38086  fi
38087    if test "x$exec_prefix" = "xNONE"; then
38088    exec_prefix=$prefix
38089  fi
38090
38091  full_var="$FROM_VAR"
38092    while true; do
38093    new_full_var="`eval echo $full_var`"
38094    if test "x$new_full_var" = "x$full_var"; then break; fi
38095    full_var=$new_full_var
38096  done
38097
38098    full_var=$new_full_var
38099  DATADIR="$full_var"
38100
38101
38102    prefix=$prefix_save
38103  exec_prefix=$exec_prefix_save
38104
38105
38106  EXP_VAR=SYSCONFDIR
38107  FROM_VAR=$sysconfdir
38108
38109    prefix_save=$prefix
38110  exec_prefix_save=$exec_prefix
38111
38112    if test "x$prefix" = "xNONE"; then
38113    prefix="$ac_default_prefix"
38114  fi
38115    if test "x$exec_prefix" = "xNONE"; then
38116    exec_prefix=$prefix
38117  fi
38118
38119  full_var="$FROM_VAR"
38120    while true; do
38121    new_full_var="`eval echo $full_var`"
38122    if test "x$new_full_var" = "x$full_var"; then break; fi
38123    full_var=$new_full_var
38124  done
38125
38126    full_var=$new_full_var
38127  SYSCONFDIR="$full_var"
38128
38129
38130    prefix=$prefix_save
38131  exec_prefix=$exec_prefix_save
38132
38133
38134
38135db_plugin_dir=$LIBDIR/libpreludedb/plugins
38136sql_plugin_dir=$db_plugin_dir/sql
38137format_plugin_dir=$db_plugin_dir/formats
38138format_schema_dir=$DATADIR/libpreludedb
38139
38140
38141
38142
38143
38144
38145
38146
38147
38148
38149
38150
38151
38152ac_config_files="$ac_config_files libpreludedb-config Makefile m4/Makefile libmissing/Makefile libmissing/tests/Makefile src/Makefile src/include/Makefile src/include/preludedb-version.h plugins/Makefile plugins/sql/Makefile plugins/sql/mysql/Makefile plugins/sql/pgsql/Makefile plugins/sql/sqlite3/Makefile plugins/format/Makefile plugins/format/classic/Makefile plugins/format/classic/include/Makefile docs/Makefile docs/api/Makefile docs/manpages/Makefile bindings/Makefile bindings/c++/Makefile bindings/c++/include/Makefile bindings/python/Makefile bindings/python/setup.py"
38153
38154ac_config_commands="$ac_config_commands default"
38155
38156cat >confcache <<\_ACEOF
38157# This file is a shell script that caches the results of configure
38158# tests run on this system so they can be shared between configure
38159# scripts and configure runs, see configure's option --config-cache.
38160# It is not useful on other systems.  If it contains results you don't
38161# want to keep, you may remove or edit it.
38162#
38163# config.status only pays attention to the cache file if you give it
38164# the --recheck option to rerun configure.
38165#
38166# `ac_cv_env_foo' variables (set or unset) will be overridden when
38167# loading this file, other *unset* `ac_cv_foo' will be assigned the
38168# following values.
38169
38170_ACEOF
38171
38172# The following way of writing the cache mishandles newlines in values,
38173# but we know of no workaround that is simple, portable, and efficient.
38174# So, we kill variables containing newlines.
38175# Ultrix sh set writes to stderr and can't be redirected directly,
38176# and sets the high bit in the cache file unless we assign to the vars.
38177(
38178  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38179    eval ac_val=\$$ac_var
38180    case $ac_val in #(
38181    *${as_nl}*)
38182      case $ac_var in #(
38183      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
38184$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
38185      esac
38186      case $ac_var in #(
38187      _ | IFS | as_nl) ;; #(
38188      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
38189      *) $as_unset $ac_var ;;
38190      esac ;;
38191    esac
38192  done
38193
38194  (set) 2>&1 |
38195    case $as_nl`(ac_space=' '; set) 2>&1` in #(
38196    *${as_nl}ac_space=\ *)
38197      # `set' does not quote correctly, so add quotes (double-quote
38198      # substitution turns \\\\ into \\, and sed turns \\ into \).
38199      sed -n \
38200	"s/'/'\\\\''/g;
38201	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38202      ;; #(
38203    *)
38204      # `set' quotes correctly as required by POSIX, so do not add quotes.
38205      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38206      ;;
38207    esac |
38208    sort
38209) |
38210  sed '
38211     /^ac_cv_env_/b end
38212     t clear
38213     :clear
38214     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38215     t end
38216     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38217     :end' >>confcache
38218if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38219  if test -w "$cache_file"; then
38220    test "x$cache_file" != "x/dev/null" &&
38221      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
38222$as_echo "$as_me: updating cache $cache_file" >&6;}
38223    cat confcache >$cache_file
38224  else
38225    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38226$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38227  fi
38228fi
38229rm -f confcache
38230
38231test "x$prefix" = xNONE && prefix=$ac_default_prefix
38232# Let make expand exec_prefix.
38233test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38234
38235DEFS=-DHAVE_CONFIG_H
38236
38237ac_libobjs=
38238ac_ltlibobjs=
38239for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38240  # 1. Remove the extension, and $U if already installed.
38241  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38242  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
38243  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38244  #    will be set to the directory where LIBOBJS objects are built.
38245  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38246  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38247done
38248LIBOBJS=$ac_libobjs
38249
38250LTLIBOBJS=$ac_ltlibobjs
38251
38252
38253 if test -n "$EXEEXT"; then
38254  am__EXEEXT_TRUE=
38255  am__EXEEXT_FALSE='#'
38256else
38257  am__EXEEXT_TRUE='#'
38258  am__EXEEXT_FALSE=
38259fi
38260
38261if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
38262  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
38263Usually this means the macro was only invoked conditionally." >&5
38264$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
38265Usually this means the macro was only invoked conditionally." >&2;}
38266   { (exit 1); exit 1; }; }
38267fi
38268if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38269  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38270Usually this means the macro was only invoked conditionally." >&5
38271$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
38272Usually this means the macro was only invoked conditionally." >&2;}
38273   { (exit 1); exit 1; }; }
38274fi
38275if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38276  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38277Usually this means the macro was only invoked conditionally." >&5
38278$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38279Usually this means the macro was only invoked conditionally." >&2;}
38280   { (exit 1); exit 1; }; }
38281fi
38282if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
38283  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
38284Usually this means the macro was only invoked conditionally." >&5
38285$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
38286Usually this means the macro was only invoked conditionally." >&2;}
38287   { (exit 1); exit 1; }; }
38288fi
38289if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
38290  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
38291Usually this means the macro was only invoked conditionally." >&5
38292$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
38293Usually this means the macro was only invoked conditionally." >&2;}
38294   { (exit 1); exit 1; }; }
38295fi
38296if test -z "${HAVE_MYSQL_TRUE}" && test -z "${HAVE_MYSQL_FALSE}"; then
38297  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MYSQL\" was never defined.
38298Usually this means the macro was only invoked conditionally." >&5
38299$as_echo "$as_me: error: conditional \"HAVE_MYSQL\" was never defined.
38300Usually this means the macro was only invoked conditionally." >&2;}
38301   { (exit 1); exit 1; }; }
38302fi
38303if test -z "${HAVE_PGSQL_TRUE}" && test -z "${HAVE_PGSQL_FALSE}"; then
38304  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PGSQL\" was never defined.
38305Usually this means the macro was only invoked conditionally." >&5
38306$as_echo "$as_me: error: conditional \"HAVE_PGSQL\" was never defined.
38307Usually this means the macro was only invoked conditionally." >&2;}
38308   { (exit 1); exit 1; }; }
38309fi
38310if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
38311  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
38312Usually this means the macro was only invoked conditionally." >&5
38313$as_echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
38314Usually this means the macro was only invoked conditionally." >&2;}
38315   { (exit 1); exit 1; }; }
38316fi
38317if test -z "${HAVE_SWIG_TRUE}" && test -z "${HAVE_SWIG_FALSE}"; then
38318  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SWIG\" was never defined.
38319Usually this means the macro was only invoked conditionally." >&5
38320$as_echo "$as_me: error: conditional \"HAVE_SWIG\" was never defined.
38321Usually this means the macro was only invoked conditionally." >&2;}
38322   { (exit 1); exit 1; }; }
38323fi
38324if test -z "${HAVE_PYTHON2_TRUE}" && test -z "${HAVE_PYTHON2_FALSE}"; then
38325  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON2\" was never defined.
38326Usually this means the macro was only invoked conditionally." >&5
38327$as_echo "$as_me: error: conditional \"HAVE_PYTHON2\" was never defined.
38328Usually this means the macro was only invoked conditionally." >&2;}
38329   { (exit 1); exit 1; }; }
38330fi
38331if test -z "${HAVE_PYTHON3_TRUE}" && test -z "${HAVE_PYTHON3_FALSE}"; then
38332  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON3\" was never defined.
38333Usually this means the macro was only invoked conditionally." >&5
38334$as_echo "$as_me: error: conditional \"HAVE_PYTHON3\" was never defined.
38335Usually this means the macro was only invoked conditionally." >&2;}
38336   { (exit 1); exit 1; }; }
38337fi
38338if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
38339  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON\" was never defined.
38340Usually this means the macro was only invoked conditionally." >&5
38341$as_echo "$as_me: error: conditional \"HAVE_PYTHON\" was never defined.
38342Usually this means the macro was only invoked conditionally." >&2;}
38343   { (exit 1); exit 1; }; }
38344fi
38345if test -z "${HAVE_EASY_BINDINGS_TRUE}" && test -z "${HAVE_EASY_BINDINGS_FALSE}"; then
38346  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_EASY_BINDINGS\" was never defined.
38347Usually this means the macro was only invoked conditionally." >&5
38348$as_echo "$as_me: error: conditional \"HAVE_EASY_BINDINGS\" was never defined.
38349Usually this means the macro was only invoked conditionally." >&2;}
38350   { (exit 1); exit 1; }; }
38351fi
38352if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
38353  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
38354Usually this means the macro was only invoked conditionally." >&5
38355$as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
38356Usually this means the macro was only invoked conditionally." >&2;}
38357   { (exit 1); exit 1; }; }
38358fi
38359if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
38360  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
38361Usually this means the macro was only invoked conditionally." >&5
38362$as_echo "$as_me: error: conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
38363Usually this means the macro was only invoked conditionally." >&2;}
38364   { (exit 1); exit 1; }; }
38365fi
38366if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
38367  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_GENERATE_ERRNO_H\" was never defined.
38368Usually this means the macro was only invoked conditionally." >&5
38369$as_echo "$as_me: error: conditional \"GL_GENERATE_ERRNO_H\" was never defined.
38370Usually this means the macro was only invoked conditionally." >&2;}
38371   { (exit 1); exit 1; }; }
38372fi
38373if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
38374  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_GENERATE_FLOAT_H\" was never defined.
38375Usually this means the macro was only invoked conditionally." >&5
38376$as_echo "$as_me: error: conditional \"GL_GENERATE_FLOAT_H\" was never defined.
38377Usually this means the macro was only invoked conditionally." >&2;}
38378   { (exit 1); exit 1; }; }
38379fi
38380if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
38381  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_GENERATE_STDDEF_H\" was never defined.
38382Usually this means the macro was only invoked conditionally." >&5
38383$as_echo "$as_me: error: conditional \"GL_GENERATE_STDDEF_H\" was never defined.
38384Usually this means the macro was only invoked conditionally." >&2;}
38385   { (exit 1); exit 1; }; }
38386fi
38387if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
38388  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_GENERATE_STDINT_H\" was never defined.
38389Usually this means the macro was only invoked conditionally." >&5
38390$as_echo "$as_me: error: conditional \"GL_GENERATE_STDINT_H\" was never defined.
38391Usually this means the macro was only invoked conditionally." >&2;}
38392   { (exit 1); exit 1; }; }
38393fi
38394
38395
38396    gl_libobjs=
38397    gl_ltlibobjs=
38398    if test -n "$gl_LIBOBJS"; then
38399      # Remove the extension.
38400      sed_drop_objext='s/\.o$//;s/\.obj$//'
38401      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
38402        gl_libobjs="$gl_libobjs $i.$ac_objext"
38403        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
38404      done
38405    fi
38406    gl_LIBOBJS=$gl_libobjs
38407
38408    gl_LTLIBOBJS=$gl_ltlibobjs
38409
38410
38411if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
38412  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
38413Usually this means the macro was only invoked conditionally." >&5
38414$as_echo "$as_me: error: conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
38415Usually this means the macro was only invoked conditionally." >&2;}
38416   { (exit 1); exit 1; }; }
38417fi
38418
38419    gltests_libobjs=
38420    gltests_ltlibobjs=
38421    if test -n "$gltests_LIBOBJS"; then
38422      # Remove the extension.
38423      sed_drop_objext='s/\.o$//;s/\.obj$//'
38424      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
38425        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
38426        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
38427      done
38428    fi
38429    gltests_LIBOBJS=$gltests_libobjs
38430
38431    gltests_LTLIBOBJS=$gltests_ltlibobjs
38432
38433
38434if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
38435  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
38436Usually this means the macro was only invoked conditionally." >&5
38437$as_echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
38438Usually this means the macro was only invoked conditionally." >&2;}
38439   { (exit 1); exit 1; }; }
38440fi
38441if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
38442  { { $as_echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
38443Usually this means the macro was only invoked conditionally." >&5
38444$as_echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
38445Usually this means the macro was only invoked conditionally." >&2;}
38446   { (exit 1); exit 1; }; }
38447fi
38448
38449: ${CONFIG_STATUS=./config.status}
38450ac_write_fail=0
38451ac_clean_files_save=$ac_clean_files
38452ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38453{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38454$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
38455cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38456#! $SHELL
38457# Generated by $as_me.
38458# Run this file to recreate the current configuration.
38459# Compiler output produced by configure, useful for debugging
38460# configure, is in config.log if it exists.
38461
38462debug=false
38463ac_cs_recheck=false
38464ac_cs_silent=false
38465SHELL=\${CONFIG_SHELL-$SHELL}
38466_ACEOF
38467
38468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38469## --------------------- ##
38470## M4sh Initialization.  ##
38471## --------------------- ##
38472
38473# Be more Bourne compatible
38474DUALCASE=1; export DUALCASE # for MKS sh
38475if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38476  emulate sh
38477  NULLCMD=:
38478  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
38479  # is contrary to our usage.  Disable this feature.
38480  alias -g '${1+"$@"}'='"$@"'
38481  setopt NO_GLOB_SUBST
38482else
38483  case `(set -o) 2>/dev/null` in
38484  *posix*) set -o posix ;;
38485esac
38486
38487fi
38488
38489
38490
38491
38492# PATH needs CR
38493# Avoid depending upon Character Ranges.
38494as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38495as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38496as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38497as_cr_digits='0123456789'
38498as_cr_alnum=$as_cr_Letters$as_cr_digits
38499
38500as_nl='
38501'
38502export as_nl
38503# Printing a long string crashes Solaris 7 /usr/bin/printf.
38504as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38505as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
38506as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
38507if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
38508  as_echo='printf %s\n'
38509  as_echo_n='printf %s'
38510else
38511  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
38512    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
38513    as_echo_n='/usr/ucb/echo -n'
38514  else
38515    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
38516    as_echo_n_body='eval
38517      arg=$1;
38518      case $arg in
38519      *"$as_nl"*)
38520	expr "X$arg" : "X\\(.*\\)$as_nl";
38521	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
38522      esac;
38523      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
38524    '
38525    export as_echo_n_body
38526    as_echo_n='sh -c $as_echo_n_body as_echo'
38527  fi
38528  export as_echo_body
38529  as_echo='sh -c $as_echo_body as_echo'
38530fi
38531
38532# The user is always right.
38533if test "${PATH_SEPARATOR+set}" != set; then
38534  PATH_SEPARATOR=:
38535  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
38536    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
38537      PATH_SEPARATOR=';'
38538  }
38539fi
38540
38541# Support unset when possible.
38542if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38543  as_unset=unset
38544else
38545  as_unset=false
38546fi
38547
38548
38549# IFS
38550# We need space, tab and new line, in precisely that order.  Quoting is
38551# there to prevent editors from complaining about space-tab.
38552# (If _AS_PATH_WALK were called with IFS unset, it would disable word
38553# splitting by setting IFS to empty value.)
38554IFS=" ""	$as_nl"
38555
38556# Find who we are.  Look in the path if we contain no directory separator.
38557case $0 in
38558  *[\\/]* ) as_myself=$0 ;;
38559  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38560for as_dir in $PATH
38561do
38562  IFS=$as_save_IFS
38563  test -z "$as_dir" && as_dir=.
38564  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38565done
38566IFS=$as_save_IFS
38567
38568     ;;
38569esac
38570# We did not find ourselves, most probably we were run as `sh COMMAND'
38571# in which case we are not to be found in the path.
38572if test "x$as_myself" = x; then
38573  as_myself=$0
38574fi
38575if test ! -f "$as_myself"; then
38576  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38577  { (exit 1); exit 1; }
38578fi
38579
38580# Work around bugs in pre-3.0 UWIN ksh.
38581for as_var in ENV MAIL MAILPATH
38582do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38583done
38584PS1='$ '
38585PS2='> '
38586PS4='+ '
38587
38588# NLS nuisances.
38589LC_ALL=C
38590export LC_ALL
38591LANGUAGE=C
38592export LANGUAGE
38593
38594# Required to use basename.
38595if expr a : '\(a\)' >/dev/null 2>&1 &&
38596   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38597  as_expr=expr
38598else
38599  as_expr=false
38600fi
38601
38602if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38603  as_basename=basename
38604else
38605  as_basename=false
38606fi
38607
38608
38609# Name of the executable.
38610as_me=`$as_basename -- "$0" ||
38611$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38612	 X"$0" : 'X\(//\)$' \| \
38613	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38614$as_echo X/"$0" |
38615    sed '/^.*\/\([^/][^/]*\)\/*$/{
38616	    s//\1/
38617	    q
38618	  }
38619	  /^X\/\(\/\/\)$/{
38620	    s//\1/
38621	    q
38622	  }
38623	  /^X\/\(\/\).*/{
38624	    s//\1/
38625	    q
38626	  }
38627	  s/.*/./; q'`
38628
38629# CDPATH.
38630$as_unset CDPATH
38631
38632
38633
38634  as_lineno_1=$LINENO
38635  as_lineno_2=$LINENO
38636  test "x$as_lineno_1" != "x$as_lineno_2" &&
38637  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38638
38639  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38640  # uniformly replaced by the line number.  The first 'sed' inserts a
38641  # line-number line after each line using $LINENO; the second 'sed'
38642  # does the real work.  The second script uses 'N' to pair each
38643  # line-number line with the line containing $LINENO, and appends
38644  # trailing '-' during substitution so that $LINENO is not a special
38645  # case at line end.
38646  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38647  # scripts with optimization help from Paolo Bonzini.  Blame Lee
38648  # E. McMahon (1931-1989) for sed's syntax.  :-)
38649  sed -n '
38650    p
38651    /[$]LINENO/=
38652  ' <$as_myself |
38653    sed '
38654      s/[$]LINENO.*/&-/
38655      t lineno
38656      b
38657      :lineno
38658      N
38659      :loop
38660      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38661      t loop
38662      s/-\n.*//
38663    ' >$as_me.lineno &&
38664  chmod +x "$as_me.lineno" ||
38665    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38666   { (exit 1); exit 1; }; }
38667
38668  # Don't try to exec as it changes $[0], causing all sort of problems
38669  # (the dirname of $[0] is not the place where we might find the
38670  # original and so on.  Autoconf is especially sensitive to this).
38671  . "./$as_me.lineno"
38672  # Exit status is that of the last command.
38673  exit
38674}
38675
38676
38677if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38678  as_dirname=dirname
38679else
38680  as_dirname=false
38681fi
38682
38683ECHO_C= ECHO_N= ECHO_T=
38684case `echo -n x` in
38685-n*)
38686  case `echo 'x\c'` in
38687  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
38688  *)   ECHO_C='\c';;
38689  esac;;
38690*)
38691  ECHO_N='-n';;
38692esac
38693if expr a : '\(a\)' >/dev/null 2>&1 &&
38694   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38695  as_expr=expr
38696else
38697  as_expr=false
38698fi
38699
38700rm -f conf$$ conf$$.exe conf$$.file
38701if test -d conf$$.dir; then
38702  rm -f conf$$.dir/conf$$.file
38703else
38704  rm -f conf$$.dir
38705  mkdir conf$$.dir 2>/dev/null
38706fi
38707if (echo >conf$$.file) 2>/dev/null; then
38708  if ln -s conf$$.file conf$$ 2>/dev/null; then
38709    as_ln_s='ln -s'
38710    # ... but there are two gotchas:
38711    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38712    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38713    # In both cases, we have to default to `cp -p'.
38714    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38715      as_ln_s='cp -p'
38716  elif ln conf$$.file conf$$ 2>/dev/null; then
38717    as_ln_s=ln
38718  else
38719    as_ln_s='cp -p'
38720  fi
38721else
38722  as_ln_s='cp -p'
38723fi
38724rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38725rmdir conf$$.dir 2>/dev/null
38726
38727if mkdir -p . 2>/dev/null; then
38728  as_mkdir_p=:
38729else
38730  test -d ./-p && rmdir ./-p
38731  as_mkdir_p=false
38732fi
38733
38734if test -x / >/dev/null 2>&1; then
38735  as_test_x='test -x'
38736else
38737  if ls -dL / >/dev/null 2>&1; then
38738    as_ls_L_option=L
38739  else
38740    as_ls_L_option=
38741  fi
38742  as_test_x='
38743    eval sh -c '\''
38744      if test -d "$1"; then
38745	test -d "$1/.";
38746      else
38747	case $1 in
38748	-*)set "./$1";;
38749	esac;
38750	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
38751	???[sx]*):;;*)false;;esac;fi
38752    '\'' sh
38753  '
38754fi
38755as_executable_p=$as_test_x
38756
38757# Sed expression to map a string onto a valid CPP name.
38758as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38759
38760# Sed expression to map a string onto a valid variable name.
38761as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38762
38763
38764exec 6>&1
38765
38766# Save the log message, to keep $[0] and so on meaningful, and to
38767# report actual input values of CONFIG_FILES etc. instead of their
38768# values after options handling.
38769ac_log="
38770This file was extended by libpreludedb $as_me 1.2.6, which was
38771generated by GNU Autoconf 2.63.  Invocation command line was
38772
38773  CONFIG_FILES    = $CONFIG_FILES
38774  CONFIG_HEADERS  = $CONFIG_HEADERS
38775  CONFIG_LINKS    = $CONFIG_LINKS
38776  CONFIG_COMMANDS = $CONFIG_COMMANDS
38777  $ $0 $@
38778
38779on `(hostname || uname -n) 2>/dev/null | sed 1q`
38780"
38781
38782_ACEOF
38783
38784case $ac_config_files in *"
38785"*) set x $ac_config_files; shift; ac_config_files=$*;;
38786esac
38787
38788case $ac_config_headers in *"
38789"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
38790esac
38791
38792
38793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38794# Files that config.status was made for.
38795config_files="$ac_config_files"
38796config_headers="$ac_config_headers"
38797config_commands="$ac_config_commands"
38798
38799_ACEOF
38800
38801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38802ac_cs_usage="\
38803\`$as_me' instantiates files from templates according to the
38804current configuration.
38805
38806Usage: $0 [OPTION]... [FILE]...
38807
38808  -h, --help       print this help, then exit
38809  -V, --version    print version number and configuration settings, then exit
38810  -q, --quiet, --silent
38811                   do not print progress messages
38812  -d, --debug      don't remove temporary files
38813      --recheck    update $as_me by reconfiguring in the same conditions
38814      --file=FILE[:TEMPLATE]
38815                   instantiate the configuration file FILE
38816      --header=FILE[:TEMPLATE]
38817                   instantiate the configuration header FILE
38818
38819Configuration files:
38820$config_files
38821
38822Configuration headers:
38823$config_headers
38824
38825Configuration commands:
38826$config_commands
38827
38828Report bugs to <bug-autoconf@gnu.org>."
38829
38830_ACEOF
38831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38832ac_cs_version="\\
38833libpreludedb config.status 1.2.6
38834configured by $0, generated by GNU Autoconf 2.63,
38835  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
38836
38837Copyright (C) 2008 Free Software Foundation, Inc.
38838This config.status script is free software; the Free Software Foundation
38839gives unlimited permission to copy, distribute and modify it."
38840
38841ac_pwd='$ac_pwd'
38842srcdir='$srcdir'
38843INSTALL='$INSTALL'
38844MKDIR_P='$MKDIR_P'
38845AWK='$AWK'
38846test -n "\$AWK" || AWK=awk
38847_ACEOF
38848
38849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38850# The default lists apply if the user does not specify any file.
38851ac_need_defaults=:
38852while test $# != 0
38853do
38854  case $1 in
38855  --*=*)
38856    ac_option=`expr "X$1" : 'X\([^=]*\)='`
38857    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
38858    ac_shift=:
38859    ;;
38860  *)
38861    ac_option=$1
38862    ac_optarg=$2
38863    ac_shift=shift
38864    ;;
38865  esac
38866
38867  case $ac_option in
38868  # Handling of the options.
38869  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38870    ac_cs_recheck=: ;;
38871  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
38872    $as_echo "$ac_cs_version"; exit ;;
38873  --debug | --debu | --deb | --de | --d | -d )
38874    debug=: ;;
38875  --file | --fil | --fi | --f )
38876    $ac_shift
38877    case $ac_optarg in
38878    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38879    esac
38880    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
38881    ac_need_defaults=false;;
38882  --header | --heade | --head | --hea )
38883    $ac_shift
38884    case $ac_optarg in
38885    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38886    esac
38887    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
38888    ac_need_defaults=false;;
38889  --he | --h)
38890    # Conflict between --help and --header
38891    { $as_echo "$as_me: error: ambiguous option: $1
38892Try \`$0 --help' for more information." >&2
38893   { (exit 1); exit 1; }; };;
38894  --help | --hel | -h )
38895    $as_echo "$ac_cs_usage"; exit ;;
38896  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38897  | -silent | --silent | --silen | --sile | --sil | --si | --s)
38898    ac_cs_silent=: ;;
38899
38900  # This is an error.
38901  -*) { $as_echo "$as_me: error: unrecognized option: $1
38902Try \`$0 --help' for more information." >&2
38903   { (exit 1); exit 1; }; } ;;
38904
38905  *) ac_config_targets="$ac_config_targets $1"
38906     ac_need_defaults=false ;;
38907
38908  esac
38909  shift
38910done
38911
38912ac_configure_extra_args=
38913
38914if $ac_cs_silent; then
38915  exec 6>/dev/null
38916  ac_configure_extra_args="$ac_configure_extra_args --silent"
38917fi
38918
38919_ACEOF
38920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38921if \$ac_cs_recheck; then
38922  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38923  shift
38924  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38925  CONFIG_SHELL='$SHELL'
38926  export CONFIG_SHELL
38927  exec "\$@"
38928fi
38929
38930_ACEOF
38931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38932exec 5>>config.log
38933{
38934  echo
38935  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38936## Running $as_me. ##
38937_ASBOX
38938  $as_echo "$ac_log"
38939} >&5
38940
38941_ACEOF
38942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38943#
38944# INIT-COMMANDS
38945#
38946AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38947
38948
38949# The HP-UX ksh and POSIX shell print the target directory to stdout
38950# if CDPATH is set.
38951(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38952
38953sed_quote_subst='$sed_quote_subst'
38954double_quote_subst='$double_quote_subst'
38955delay_variable_subst='$delay_variable_subst'
38956AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
38957DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
38958OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
38959enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
38960macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
38961macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
38962enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
38963pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
38964enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
38965host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
38966host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
38967host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
38968build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
38969build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
38970build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
38971SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
38972Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
38973GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
38974EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
38975FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
38976LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
38977NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
38978LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
38979max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
38980ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
38981exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
38982lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
38983lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
38984lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
38985reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
38986reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
38987deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
38988file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
38989AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
38990AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
38991STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
38992RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
38993old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
38994old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
38995old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
38996CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
38997CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
38998compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
38999GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
39000lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
39001lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
39002lt_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"`'
39003lt_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"`'
39004objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
39005SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
39006ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
39007MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
39008lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
39009lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
39010lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
39011lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
39012lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
39013need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
39014DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
39015NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
39016LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
39017OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
39018OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
39019libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
39020shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39021extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39022archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
39023enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
39024export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
39025whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
39026compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
39027old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39028old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39029archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39030archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39031module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39032module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39033with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
39034allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
39035no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
39036hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
39037hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
39038hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
39039hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
39040hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
39041hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
39042hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
39043hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
39044inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
39045link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
39046fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
39047always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
39048export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39049exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
39050include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
39051prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39052file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
39053variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
39054need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
39055need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
39056version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
39057runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
39058shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
39059shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
39060libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
39061library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
39062soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
39063postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39064postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39065finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
39066finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
39067hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
39068sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
39069sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
39070hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
39071enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
39072enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
39073enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
39074old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
39075striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
39076compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
39077predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
39078postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
39079predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
39080postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
39081compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
39082LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39083old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39084compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39085GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39086lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39087lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39088lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39089lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39090lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39091archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39092enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39093export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39094whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39095compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39096old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39097old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39098archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39099archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39100module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39101module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39102with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39103allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39104no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39105hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39106hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39107hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39108hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39109hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39110hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39111hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39112hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39113inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39114link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39115fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39116always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39117export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39118exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39119include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39120prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39121file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39122hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39123compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39124predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39125postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39126predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39127postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39128compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
39129
39130LTCC='$LTCC'
39131LTCFLAGS='$LTCFLAGS'
39132compiler='$compiler_DEFAULT'
39133
39134# Quote evaled strings.
39135for var in SED \
39136GREP \
39137EGREP \
39138FGREP \
39139LD \
39140NM \
39141LN_S \
39142lt_SP2NL \
39143lt_NL2SP \
39144reload_flag \
39145deplibs_check_method \
39146file_magic_cmd \
39147AR \
39148AR_FLAGS \
39149STRIP \
39150RANLIB \
39151CC \
39152CFLAGS \
39153compiler \
39154lt_cv_sys_global_symbol_pipe \
39155lt_cv_sys_global_symbol_to_cdecl \
39156lt_cv_sys_global_symbol_to_c_name_address \
39157lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
39158SHELL \
39159ECHO \
39160lt_prog_compiler_no_builtin_flag \
39161lt_prog_compiler_wl \
39162lt_prog_compiler_pic \
39163lt_prog_compiler_static \
39164lt_cv_prog_compiler_c_o \
39165need_locks \
39166DSYMUTIL \
39167NMEDIT \
39168LIPO \
39169OTOOL \
39170OTOOL64 \
39171shrext_cmds \
39172export_dynamic_flag_spec \
39173whole_archive_flag_spec \
39174compiler_needs_object \
39175with_gnu_ld \
39176allow_undefined_flag \
39177no_undefined_flag \
39178hardcode_libdir_flag_spec \
39179hardcode_libdir_flag_spec_ld \
39180hardcode_libdir_separator \
39181fix_srcfile_path \
39182exclude_expsyms \
39183include_expsyms \
39184file_list_spec \
39185variables_saved_for_relink \
39186libname_spec \
39187library_names_spec \
39188soname_spec \
39189finish_eval \
39190old_striplib \
39191striplib \
39192compiler_lib_search_dirs \
39193predep_objects \
39194postdep_objects \
39195predeps \
39196postdeps \
39197compiler_lib_search_path \
39198LD_CXX \
39199compiler_CXX \
39200lt_prog_compiler_no_builtin_flag_CXX \
39201lt_prog_compiler_wl_CXX \
39202lt_prog_compiler_pic_CXX \
39203lt_prog_compiler_static_CXX \
39204lt_cv_prog_compiler_c_o_CXX \
39205export_dynamic_flag_spec_CXX \
39206whole_archive_flag_spec_CXX \
39207compiler_needs_object_CXX \
39208with_gnu_ld_CXX \
39209allow_undefined_flag_CXX \
39210no_undefined_flag_CXX \
39211hardcode_libdir_flag_spec_CXX \
39212hardcode_libdir_flag_spec_ld_CXX \
39213hardcode_libdir_separator_CXX \
39214fix_srcfile_path_CXX \
39215exclude_expsyms_CXX \
39216include_expsyms_CXX \
39217file_list_spec_CXX \
39218compiler_lib_search_dirs_CXX \
39219predep_objects_CXX \
39220postdep_objects_CXX \
39221predeps_CXX \
39222postdeps_CXX \
39223compiler_lib_search_path_CXX; do
39224    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
39225    *[\\\\\\\`\\"\\\$]*)
39226      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
39227      ;;
39228    *)
39229      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
39230      ;;
39231    esac
39232done
39233
39234# Double-quote double-evaled strings.
39235for var in reload_cmds \
39236old_postinstall_cmds \
39237old_postuninstall_cmds \
39238old_archive_cmds \
39239extract_expsyms_cmds \
39240old_archive_from_new_cmds \
39241old_archive_from_expsyms_cmds \
39242archive_cmds \
39243archive_expsym_cmds \
39244module_cmds \
39245module_expsym_cmds \
39246export_symbols_cmds \
39247prelink_cmds \
39248postinstall_cmds \
39249postuninstall_cmds \
39250finish_cmds \
39251sys_lib_search_path_spec \
39252sys_lib_dlsearch_path_spec \
39253old_archive_cmds_CXX \
39254old_archive_from_new_cmds_CXX \
39255old_archive_from_expsyms_cmds_CXX \
39256archive_cmds_CXX \
39257archive_expsym_cmds_CXX \
39258module_cmds_CXX \
39259module_expsym_cmds_CXX \
39260export_symbols_cmds_CXX \
39261prelink_cmds_CXX; do
39262    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
39263    *[\\\\\\\`\\"\\\$]*)
39264      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
39265      ;;
39266    *)
39267      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
39268      ;;
39269    esac
39270done
39271
39272# Fix-up fallback echo if it was mangled by the above quoting rules.
39273case \$lt_ECHO in
39274*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
39275  ;;
39276esac
39277
39278ac_aux_dir='$ac_aux_dir'
39279xsi_shell='$xsi_shell'
39280lt_shell_append='$lt_shell_append'
39281
39282# See if we are running on zsh, and set the options which allow our
39283# commands through without removal of \ escapes INIT.
39284if test -n "\${ZSH_VERSION+set}" ; then
39285   setopt NO_GLOB_SUBST
39286fi
39287
39288
39289    PACKAGE='$PACKAGE'
39290    VERSION='$VERSION'
39291    TIMESTAMP='$TIMESTAMP'
39292    RM='$RM'
39293    ofile='$ofile'
39294
39295
39296
39297
39298
39299
39300
39301_ACEOF
39302
39303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39304
39305# Handling of arguments.
39306for ac_config_target in $ac_config_targets
39307do
39308  case $ac_config_target in
39309    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
39310    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39311    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
39312    "libpreludedb-config") CONFIG_FILES="$CONFIG_FILES libpreludedb-config" ;;
39313    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39314    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
39315    "libmissing/Makefile") CONFIG_FILES="$CONFIG_FILES libmissing/Makefile" ;;
39316    "libmissing/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libmissing/tests/Makefile" ;;
39317    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39318    "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
39319    "src/include/preludedb-version.h") CONFIG_FILES="$CONFIG_FILES src/include/preludedb-version.h" ;;
39320    "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
39321    "plugins/sql/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sql/Makefile" ;;
39322    "plugins/sql/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sql/mysql/Makefile" ;;
39323    "plugins/sql/pgsql/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sql/pgsql/Makefile" ;;
39324    "plugins/sql/sqlite3/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sql/sqlite3/Makefile" ;;
39325    "plugins/format/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/format/Makefile" ;;
39326    "plugins/format/classic/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/format/classic/Makefile" ;;
39327    "plugins/format/classic/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/format/classic/include/Makefile" ;;
39328    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
39329    "docs/api/Makefile") CONFIG_FILES="$CONFIG_FILES docs/api/Makefile" ;;
39330    "docs/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES docs/manpages/Makefile" ;;
39331    "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
39332    "bindings/c++/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/c++/Makefile" ;;
39333    "bindings/c++/include/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/c++/include/Makefile" ;;
39334    "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;;
39335    "bindings/python/setup.py") CONFIG_FILES="$CONFIG_FILES bindings/python/setup.py" ;;
39336    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39337
39338  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39339$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39340   { (exit 1); exit 1; }; };;
39341  esac
39342done
39343
39344
39345# If the user did not use the arguments to specify the items to instantiate,
39346# then the envvar interface is used.  Set only those that are not.
39347# We use the long form for the default assignment because of an extremely
39348# bizarre bug on SunOS 4.1.3.
39349if $ac_need_defaults; then
39350  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39351  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39352  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39353fi
39354
39355# Have a temporary directory for convenience.  Make it in the build tree
39356# simply because there is no reason against having it here, and in addition,
39357# creating and moving files from /tmp can sometimes cause problems.
39358# Hook for its removal unless debugging.
39359# Note that there is a small window in which the directory will not be cleaned:
39360# after its creation but before its name has been assigned to `$tmp'.
39361$debug ||
39362{
39363  tmp=
39364  trap 'exit_status=$?
39365  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39366' 0
39367  trap '{ (exit 1); exit 1; }' 1 2 13 15
39368}
39369# Create a (secure) tmp directory for tmp files.
39370
39371{
39372  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39373  test -n "$tmp" && test -d "$tmp"
39374}  ||
39375{
39376  tmp=./conf$$-$RANDOM
39377  (umask 077 && mkdir "$tmp")
39378} ||
39379{
39380   $as_echo "$as_me: cannot create a temporary directory in ." >&2
39381   { (exit 1); exit 1; }
39382}
39383
39384# Set up the scripts for CONFIG_FILES section.
39385# No need to generate them if there are no CONFIG_FILES.
39386# This happens for instance with `./config.status config.h'.
39387if test -n "$CONFIG_FILES"; then
39388
39389
39390ac_cr='
39391'
39392ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
39393if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
39394  ac_cs_awk_cr='\\r'
39395else
39396  ac_cs_awk_cr=$ac_cr
39397fi
39398
39399echo 'BEGIN {' >"$tmp/subs1.awk" &&
39400_ACEOF
39401
39402
39403{
39404  echo "cat >conf$$subs.awk <<_ACEOF" &&
39405  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
39406  echo "_ACEOF"
39407} >conf$$subs.sh ||
39408  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39409$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39410   { (exit 1); exit 1; }; }
39411ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
39412ac_delim='%!_!# '
39413for ac_last_try in false false false false false :; do
39414  . ./conf$$subs.sh ||
39415    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39416$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39417   { (exit 1); exit 1; }; }
39418
39419  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
39420  if test $ac_delim_n = $ac_delim_num; then
39421    break
39422  elif $ac_last_try; then
39423    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39424$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39425   { (exit 1); exit 1; }; }
39426  else
39427    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39428  fi
39429done
39430rm -f conf$$subs.sh
39431
39432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39433cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
39434_ACEOF
39435sed -n '
39436h
39437s/^/S["/; s/!.*/"]=/
39438p
39439g
39440s/^[^!]*!//
39441:repl
39442t repl
39443s/'"$ac_delim"'$//
39444t delim
39445:nl
39446h
39447s/\(.\{148\}\).*/\1/
39448t more1
39449s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
39450p
39451n
39452b repl
39453:more1
39454s/["\\]/\\&/g; s/^/"/; s/$/"\\/
39455p
39456g
39457s/.\{148\}//
39458t nl
39459:delim
39460h
39461s/\(.\{148\}\).*/\1/
39462t more2
39463s/["\\]/\\&/g; s/^/"/; s/$/"/
39464p
39465b
39466:more2
39467s/["\\]/\\&/g; s/^/"/; s/$/"\\/
39468p
39469g
39470s/.\{148\}//
39471t delim
39472' <conf$$subs.awk | sed '
39473/^[^""]/{
39474  N
39475  s/\n//
39476}
39477' >>$CONFIG_STATUS || ac_write_fail=1
39478rm -f conf$$subs.awk
39479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39480_ACAWK
39481cat >>"\$tmp/subs1.awk" <<_ACAWK &&
39482  for (key in S) S_is_set[key] = 1
39483  FS = ""
39484
39485}
39486{
39487  line = $ 0
39488  nfields = split(line, field, "@")
39489  substed = 0
39490  len = length(field[1])
39491  for (i = 2; i < nfields; i++) {
39492    key = field[i]
39493    keylen = length(key)
39494    if (S_is_set[key]) {
39495      value = S[key]
39496      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
39497      len += length(value) + length(field[++i])
39498      substed = 1
39499    } else
39500      len += 1 + keylen
39501  }
39502
39503  print line
39504}
39505
39506_ACAWK
39507_ACEOF
39508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39509if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
39510  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
39511else
39512  cat
39513fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
39514  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
39515$as_echo "$as_me: error: could not setup config files machinery" >&2;}
39516   { (exit 1); exit 1; }; }
39517_ACEOF
39518
39519# VPATH may cause trouble with some makes, so we remove $(srcdir),
39520# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39521# trailing colons and then remove the whole line if VPATH becomes empty
39522# (actually we leave an empty line to preserve line numbers).
39523if test "x$srcdir" = x.; then
39524  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
39525s/:*\$(srcdir):*/:/
39526s/:*\${srcdir}:*/:/
39527s/:*@srcdir@:*/:/
39528s/^\([^=]*=[	 ]*\):*/\1/
39529s/:*$//
39530s/^[^=]*=[	 ]*$//
39531}'
39532fi
39533
39534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39535fi # test -n "$CONFIG_FILES"
39536
39537# Set up the scripts for CONFIG_HEADERS section.
39538# No need to generate them if there are no CONFIG_HEADERS.
39539# This happens for instance with `./config.status Makefile'.
39540if test -n "$CONFIG_HEADERS"; then
39541cat >"$tmp/defines.awk" <<\_ACAWK ||
39542BEGIN {
39543_ACEOF
39544
39545# Transform confdefs.h into an awk script `defines.awk', embedded as
39546# here-document in config.status, that substitutes the proper values into
39547# config.h.in to produce config.h.
39548
39549# Create a delimiter string that does not exist in confdefs.h, to ease
39550# handling of long lines.
39551ac_delim='%!_!# '
39552for ac_last_try in false false :; do
39553  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
39554  if test -z "$ac_t"; then
39555    break
39556  elif $ac_last_try; then
39557    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
39558$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
39559   { (exit 1); exit 1; }; }
39560  else
39561    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39562  fi
39563done
39564
39565# For the awk script, D is an array of macro values keyed by name,
39566# likewise P contains macro parameters if any.  Preserve backslash
39567# newline sequences.
39568
39569ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39570sed -n '
39571s/.\{148\}/&'"$ac_delim"'/g
39572t rset
39573:rset
39574s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
39575t def
39576d
39577:def
39578s/\\$//
39579t bsnl
39580s/["\\]/\\&/g
39581s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
39582D["\1"]=" \3"/p
39583s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
39584d
39585:bsnl
39586s/["\\]/\\&/g
39587s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
39588D["\1"]=" \3\\\\\\n"\\/p
39589t cont
39590s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
39591t cont
39592d
39593:cont
39594n
39595s/.\{148\}/&'"$ac_delim"'/g
39596t clear
39597:clear
39598s/\\$//
39599t bsnlc
39600s/["\\]/\\&/g; s/^/"/; s/$/"/p
39601d
39602:bsnlc
39603s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
39604b cont
39605' <confdefs.h | sed '
39606s/'"$ac_delim"'/"\\\
39607"/g' >>$CONFIG_STATUS || ac_write_fail=1
39608
39609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39610  for (key in D) D_is_set[key] = 1
39611  FS = ""
39612}
39613/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
39614  line = \$ 0
39615  split(line, arg, " ")
39616  if (arg[1] == "#") {
39617    defundef = arg[2]
39618    mac1 = arg[3]
39619  } else {
39620    defundef = substr(arg[1], 2)
39621    mac1 = arg[2]
39622  }
39623  split(mac1, mac2, "(") #)
39624  macro = mac2[1]
39625  prefix = substr(line, 1, index(line, defundef) - 1)
39626  if (D_is_set[macro]) {
39627    # Preserve the white space surrounding the "#".
39628    print prefix "define", macro P[macro] D[macro]
39629    next
39630  } else {
39631    # Replace #undef with comments.  This is necessary, for example,
39632    # in the case of _POSIX_SOURCE, which is predefined and required
39633    # on some systems where configure will not decide to define it.
39634    if (defundef == "undef") {
39635      print "/*", prefix defundef, macro, "*/"
39636      next
39637    }
39638  }
39639}
39640{ print }
39641_ACAWK
39642_ACEOF
39643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39644  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
39645$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
39646   { (exit 1); exit 1; }; }
39647fi # test -n "$CONFIG_HEADERS"
39648
39649
39650eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
39651shift
39652for ac_tag
39653do
39654  case $ac_tag in
39655  :[FHLC]) ac_mode=$ac_tag; continue;;
39656  esac
39657  case $ac_mode$ac_tag in
39658  :[FHL]*:*);;
39659  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
39660$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
39661   { (exit 1); exit 1; }; };;
39662  :[FH]-) ac_tag=-:-;;
39663  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39664  esac
39665  ac_save_IFS=$IFS
39666  IFS=:
39667  set x $ac_tag
39668  IFS=$ac_save_IFS
39669  shift
39670  ac_file=$1
39671  shift
39672
39673  case $ac_mode in
39674  :L) ac_source=$1;;
39675  :[FH])
39676    ac_file_inputs=
39677    for ac_f
39678    do
39679      case $ac_f in
39680      -) ac_f="$tmp/stdin";;
39681      *) # Look for the file first in the build tree, then in the source tree
39682	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
39683	 # because $ac_f cannot contain `:'.
39684	 test -f "$ac_f" ||
39685	   case $ac_f in
39686	   [\\/$]*) false;;
39687	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39688	   esac ||
39689	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39690$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39691   { (exit 1); exit 1; }; };;
39692      esac
39693      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
39694      ac_file_inputs="$ac_file_inputs '$ac_f'"
39695    done
39696
39697    # Let's still pretend it is `configure' which instantiates (i.e., don't
39698    # use $as_me), people would be surprised to read:
39699    #    /* config.h.  Generated by config.status.  */
39700    configure_input='Generated from '`
39701	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39702	`' by configure.'
39703    if test x"$ac_file" != x-; then
39704      configure_input="$ac_file.  $configure_input"
39705      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
39706$as_echo "$as_me: creating $ac_file" >&6;}
39707    fi
39708    # Neutralize special characters interpreted by sed in replacement strings.
39709    case $configure_input in #(
39710    *\&* | *\|* | *\\* )
39711       ac_sed_conf_input=`$as_echo "$configure_input" |
39712       sed 's/[\\\\&|]/\\\\&/g'`;; #(
39713    *) ac_sed_conf_input=$configure_input;;
39714    esac
39715
39716    case $ac_tag in
39717    *:-:* | *:-) cat >"$tmp/stdin" \
39718      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
39719$as_echo "$as_me: error: could not create $ac_file" >&2;}
39720   { (exit 1); exit 1; }; } ;;
39721    esac
39722    ;;
39723  esac
39724
39725  ac_dir=`$as_dirname -- "$ac_file" ||
39726$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39727	 X"$ac_file" : 'X\(//\)[^/]' \| \
39728	 X"$ac_file" : 'X\(//\)$' \| \
39729	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39730$as_echo X"$ac_file" |
39731    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39732	    s//\1/
39733	    q
39734	  }
39735	  /^X\(\/\/\)[^/].*/{
39736	    s//\1/
39737	    q
39738	  }
39739	  /^X\(\/\/\)$/{
39740	    s//\1/
39741	    q
39742	  }
39743	  /^X\(\/\).*/{
39744	    s//\1/
39745	    q
39746	  }
39747	  s/.*/./; q'`
39748  { as_dir="$ac_dir"
39749  case $as_dir in #(
39750  -*) as_dir=./$as_dir;;
39751  esac
39752  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39753    as_dirs=
39754    while :; do
39755      case $as_dir in #(
39756      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
39757      *) as_qdir=$as_dir;;
39758      esac
39759      as_dirs="'$as_qdir' $as_dirs"
39760      as_dir=`$as_dirname -- "$as_dir" ||
39761$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39762	 X"$as_dir" : 'X\(//\)[^/]' \| \
39763	 X"$as_dir" : 'X\(//\)$' \| \
39764	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39765$as_echo X"$as_dir" |
39766    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39767	    s//\1/
39768	    q
39769	  }
39770	  /^X\(\/\/\)[^/].*/{
39771	    s//\1/
39772	    q
39773	  }
39774	  /^X\(\/\/\)$/{
39775	    s//\1/
39776	    q
39777	  }
39778	  /^X\(\/\).*/{
39779	    s//\1/
39780	    q
39781	  }
39782	  s/.*/./; q'`
39783      test -d "$as_dir" && break
39784    done
39785    test -z "$as_dirs" || eval "mkdir $as_dirs"
39786  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39787$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
39788   { (exit 1); exit 1; }; }; }
39789  ac_builddir=.
39790
39791case "$ac_dir" in
39792.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39793*)
39794  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39795  # A ".." for each directory in $ac_dir_suffix.
39796  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39797  case $ac_top_builddir_sub in
39798  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39799  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39800  esac ;;
39801esac
39802ac_abs_top_builddir=$ac_pwd
39803ac_abs_builddir=$ac_pwd$ac_dir_suffix
39804# for backward compatibility:
39805ac_top_builddir=$ac_top_build_prefix
39806
39807case $srcdir in
39808  .)  # We are building in place.
39809    ac_srcdir=.
39810    ac_top_srcdir=$ac_top_builddir_sub
39811    ac_abs_top_srcdir=$ac_pwd ;;
39812  [\\/]* | ?:[\\/]* )  # Absolute name.
39813    ac_srcdir=$srcdir$ac_dir_suffix;
39814    ac_top_srcdir=$srcdir
39815    ac_abs_top_srcdir=$srcdir ;;
39816  *) # Relative name.
39817    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39818    ac_top_srcdir=$ac_top_build_prefix$srcdir
39819    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39820esac
39821ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39822
39823
39824  case $ac_mode in
39825  :F)
39826  #
39827  # CONFIG_FILE
39828  #
39829
39830  case $INSTALL in
39831  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39832  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39833  esac
39834  ac_MKDIR_P=$MKDIR_P
39835  case $MKDIR_P in
39836  [\\/$]* | ?:[\\/]* ) ;;
39837  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
39838  esac
39839_ACEOF
39840
39841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39842# If the template does not know about datarootdir, expand it.
39843# FIXME: This hack should be removed a few years after 2.60.
39844ac_datarootdir_hack=; ac_datarootdir_seen=
39845
39846ac_sed_dataroot='
39847/datarootdir/ {
39848  p
39849  q
39850}
39851/@datadir@/p
39852/@docdir@/p
39853/@infodir@/p
39854/@localedir@/p
39855/@mandir@/p
39856'
39857case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39858*datarootdir*) ac_datarootdir_seen=yes;;
39859*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39860  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39861$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39862_ACEOF
39863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39864  ac_datarootdir_hack='
39865  s&@datadir@&$datadir&g
39866  s&@docdir@&$docdir&g
39867  s&@infodir@&$infodir&g
39868  s&@localedir@&$localedir&g
39869  s&@mandir@&$mandir&g
39870    s&\\\${datarootdir}&$datarootdir&g' ;;
39871esac
39872_ACEOF
39873
39874# Neutralize VPATH when `$srcdir' = `.'.
39875# Shell code in configure.ac might set extrasub.
39876# FIXME: do we really want to maintain this feature?
39877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39878ac_sed_extra="$ac_vpsub
39879$extrasub
39880_ACEOF
39881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39882:t
39883/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39884s|@configure_input@|$ac_sed_conf_input|;t t
39885s&@top_builddir@&$ac_top_builddir_sub&;t t
39886s&@top_build_prefix@&$ac_top_build_prefix&;t t
39887s&@srcdir@&$ac_srcdir&;t t
39888s&@abs_srcdir@&$ac_abs_srcdir&;t t
39889s&@top_srcdir@&$ac_top_srcdir&;t t
39890s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39891s&@builddir@&$ac_builddir&;t t
39892s&@abs_builddir@&$ac_abs_builddir&;t t
39893s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39894s&@INSTALL@&$ac_INSTALL&;t t
39895s&@MKDIR_P@&$ac_MKDIR_P&;t t
39896$ac_datarootdir_hack
39897"
39898eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
39899  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
39900$as_echo "$as_me: error: could not create $ac_file" >&2;}
39901   { (exit 1); exit 1; }; }
39902
39903test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39904  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39905  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39906  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39907which seems to be undefined.  Please make sure it is defined." >&5
39908$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39909which seems to be undefined.  Please make sure it is defined." >&2;}
39910
39911  rm -f "$tmp/stdin"
39912  case $ac_file in
39913  -) cat "$tmp/out" && rm -f "$tmp/out";;
39914  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
39915  esac \
39916  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
39917$as_echo "$as_me: error: could not create $ac_file" >&2;}
39918   { (exit 1); exit 1; }; }
39919 ;;
39920  :H)
39921  #
39922  # CONFIG_HEADER
39923  #
39924  if test x"$ac_file" != x-; then
39925    {
39926      $as_echo "/* $configure_input  */" \
39927      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
39928    } >"$tmp/config.h" \
39929      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
39930$as_echo "$as_me: error: could not create $ac_file" >&2;}
39931   { (exit 1); exit 1; }; }
39932    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
39933      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39934$as_echo "$as_me: $ac_file is unchanged" >&6;}
39935    else
39936      rm -f "$ac_file"
39937      mv "$tmp/config.h" "$ac_file" \
39938	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
39939$as_echo "$as_me: error: could not create $ac_file" >&2;}
39940   { (exit 1); exit 1; }; }
39941    fi
39942  else
39943    $as_echo "/* $configure_input  */" \
39944      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
39945      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
39946$as_echo "$as_me: error: could not create -" >&2;}
39947   { (exit 1); exit 1; }; }
39948  fi
39949# Compute "$ac_file"'s index in $config_headers.
39950_am_arg="$ac_file"
39951_am_stamp_count=1
39952for _am_header in $config_headers :; do
39953  case $_am_header in
39954    $_am_arg | $_am_arg:* )
39955      break ;;
39956    * )
39957      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39958  esac
39959done
39960echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39961$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39962	 X"$_am_arg" : 'X\(//\)[^/]' \| \
39963	 X"$_am_arg" : 'X\(//\)$' \| \
39964	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39965$as_echo X"$_am_arg" |
39966    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39967	    s//\1/
39968	    q
39969	  }
39970	  /^X\(\/\/\)[^/].*/{
39971	    s//\1/
39972	    q
39973	  }
39974	  /^X\(\/\/\)$/{
39975	    s//\1/
39976	    q
39977	  }
39978	  /^X\(\/\).*/{
39979	    s//\1/
39980	    q
39981	  }
39982	  s/.*/./; q'`/stamp-h$_am_stamp_count
39983 ;;
39984
39985  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
39986$as_echo "$as_me: executing $ac_file commands" >&6;}
39987 ;;
39988  esac
39989
39990
39991  case $ac_file$ac_mode in
39992    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
39993  # Autoconf 2.62 quotes --file arguments for eval, but not when files
39994  # are listed without --file.  Let's play safe and only enable the eval
39995  # if we detect the quoting.
39996  case $CONFIG_FILES in
39997  *\'*) eval set x "$CONFIG_FILES" ;;
39998  *)   set x $CONFIG_FILES ;;
39999  esac
40000  shift
40001  for mf
40002  do
40003    # Strip MF so we end up with the name of the file.
40004    mf=`echo "$mf" | sed -e 's/:.*$//'`
40005    # Check whether this is an Automake generated Makefile or not.
40006    # We used to match only the files named `Makefile.in', but
40007    # some people rename them; so instead we look at the file content.
40008    # Grep'ing the first line is not enough: some people post-process
40009    # each Makefile.in and add a new line on top of each file to say so.
40010    # Grep'ing the whole file is not good either: AIX grep has a line
40011    # limit of 2048, but all sed's we know have understand at least 4000.
40012    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
40013      dirpart=`$as_dirname -- "$mf" ||
40014$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40015	 X"$mf" : 'X\(//\)[^/]' \| \
40016	 X"$mf" : 'X\(//\)$' \| \
40017	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40018$as_echo X"$mf" |
40019    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40020	    s//\1/
40021	    q
40022	  }
40023	  /^X\(\/\/\)[^/].*/{
40024	    s//\1/
40025	    q
40026	  }
40027	  /^X\(\/\/\)$/{
40028	    s//\1/
40029	    q
40030	  }
40031	  /^X\(\/\).*/{
40032	    s//\1/
40033	    q
40034	  }
40035	  s/.*/./; q'`
40036    else
40037      continue
40038    fi
40039    # Extract the definition of DEPDIR, am__include, and am__quote
40040    # from the Makefile without running `make'.
40041    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40042    test -z "$DEPDIR" && continue
40043    am__include=`sed -n 's/^am__include = //p' < "$mf"`
40044    test -z "am__include" && continue
40045    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40046    # When using ansi2knr, U may be empty or an underscore; expand it
40047    U=`sed -n 's/^U = //p' < "$mf"`
40048    # Find all dependency output files, they are included files with
40049    # $(DEPDIR) in their names.  We invoke sed twice because it is the
40050    # simplest approach to changing $(DEPDIR) to its actual value in the
40051    # expansion.
40052    for file in `sed -n "
40053      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40054	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40055      # Make sure the directory exists.
40056      test -f "$dirpart/$file" && continue
40057      fdir=`$as_dirname -- "$file" ||
40058$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40059	 X"$file" : 'X\(//\)[^/]' \| \
40060	 X"$file" : 'X\(//\)$' \| \
40061	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40062$as_echo X"$file" |
40063    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40064	    s//\1/
40065	    q
40066	  }
40067	  /^X\(\/\/\)[^/].*/{
40068	    s//\1/
40069	    q
40070	  }
40071	  /^X\(\/\/\)$/{
40072	    s//\1/
40073	    q
40074	  }
40075	  /^X\(\/\).*/{
40076	    s//\1/
40077	    q
40078	  }
40079	  s/.*/./; q'`
40080      { as_dir=$dirpart/$fdir
40081  case $as_dir in #(
40082  -*) as_dir=./$as_dir;;
40083  esac
40084  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40085    as_dirs=
40086    while :; do
40087      case $as_dir in #(
40088      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
40089      *) as_qdir=$as_dir;;
40090      esac
40091      as_dirs="'$as_qdir' $as_dirs"
40092      as_dir=`$as_dirname -- "$as_dir" ||
40093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40094	 X"$as_dir" : 'X\(//\)[^/]' \| \
40095	 X"$as_dir" : 'X\(//\)$' \| \
40096	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40097$as_echo X"$as_dir" |
40098    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40099	    s//\1/
40100	    q
40101	  }
40102	  /^X\(\/\/\)[^/].*/{
40103	    s//\1/
40104	    q
40105	  }
40106	  /^X\(\/\/\)$/{
40107	    s//\1/
40108	    q
40109	  }
40110	  /^X\(\/\).*/{
40111	    s//\1/
40112	    q
40113	  }
40114	  s/.*/./; q'`
40115      test -d "$as_dir" && break
40116    done
40117    test -z "$as_dirs" || eval "mkdir $as_dirs"
40118  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40119$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
40120   { (exit 1); exit 1; }; }; }
40121      # echo "creating $dirpart/$file"
40122      echo '# dummy' > "$dirpart/$file"
40123    done
40124  done
40125}
40126 ;;
40127    "libtool":C)
40128
40129    # See if we are running on zsh, and set the options which allow our
40130    # commands through without removal of \ escapes.
40131    if test -n "${ZSH_VERSION+set}" ; then
40132      setopt NO_GLOB_SUBST
40133    fi
40134
40135    cfgfile="${ofile}T"
40136    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
40137    $RM "$cfgfile"
40138
40139    cat <<_LT_EOF >> "$cfgfile"
40140#! $SHELL
40141
40142# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
40143# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
40144# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
40145# NOTE: Changes made to this file will be lost: look at ltmain.sh.
40146#
40147#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
40148#                 2006, 2007, 2008 Free Software Foundation, Inc.
40149#   Written by Gordon Matzigkeit, 1996
40150#
40151#   This file is part of GNU Libtool.
40152#
40153# GNU Libtool is free software; you can redistribute it and/or
40154# modify it under the terms of the GNU General Public License as
40155# published by the Free Software Foundation; either version 2 of
40156# the License, or (at your option) any later version.
40157#
40158# As a special exception to the GNU General Public License,
40159# if you distribute this file as part of a program or library that
40160# is built using GNU Libtool, you may include this file under the
40161# same distribution terms that you use for the rest of that program.
40162#
40163# GNU Libtool is distributed in the hope that it will be useful,
40164# but WITHOUT ANY WARRANTY; without even the implied warranty of
40165# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
40166# GNU General Public License for more details.
40167#
40168# You should have received a copy of the GNU General Public License
40169# along with GNU Libtool; see the file COPYING.  If not, a copy
40170# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
40171# obtained by writing to the Free Software Foundation, Inc.,
40172# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
40173
40174
40175# The names of the tagged configurations supported by this script.
40176available_tags="CXX "
40177
40178# ### BEGIN LIBTOOL CONFIG
40179
40180# Assembler program.
40181AS=$AS
40182
40183# DLL creation program.
40184DLLTOOL=$DLLTOOL
40185
40186# Object dumper program.
40187OBJDUMP=$OBJDUMP
40188
40189# Whether or not to build static libraries.
40190build_old_libs=$enable_static
40191
40192# Which release of libtool.m4 was used?
40193macro_version=$macro_version
40194macro_revision=$macro_revision
40195
40196# Whether or not to build shared libraries.
40197build_libtool_libs=$enable_shared
40198
40199# What type of objects to build.
40200pic_mode=$pic_mode
40201
40202# Whether or not to optimize for fast installation.
40203fast_install=$enable_fast_install
40204
40205# The host system.
40206host_alias=$host_alias
40207host=$host
40208host_os=$host_os
40209
40210# The build system.
40211build_alias=$build_alias
40212build=$build
40213build_os=$build_os
40214
40215# A sed program that does not truncate output.
40216SED=$lt_SED
40217
40218# Sed that helps us avoid accidentally triggering echo(1) options like -n.
40219Xsed="\$SED -e 1s/^X//"
40220
40221# A grep program that handles long lines.
40222GREP=$lt_GREP
40223
40224# An ERE matcher.
40225EGREP=$lt_EGREP
40226
40227# A literal string matcher.
40228FGREP=$lt_FGREP
40229
40230# A BSD- or MS-compatible name lister.
40231NM=$lt_NM
40232
40233# Whether we need soft or hard links.
40234LN_S=$lt_LN_S
40235
40236# What is the maximum length of a command?
40237max_cmd_len=$max_cmd_len
40238
40239# Object file suffix (normally "o").
40240objext=$ac_objext
40241
40242# Executable file suffix (normally "").
40243exeext=$exeext
40244
40245# whether the shell understands "unset".
40246lt_unset=$lt_unset
40247
40248# turn spaces into newlines.
40249SP2NL=$lt_lt_SP2NL
40250
40251# turn newlines into spaces.
40252NL2SP=$lt_lt_NL2SP
40253
40254# How to create reloadable object files.
40255reload_flag=$lt_reload_flag
40256reload_cmds=$lt_reload_cmds
40257
40258# Method to check whether dependent libraries are shared objects.
40259deplibs_check_method=$lt_deplibs_check_method
40260
40261# Command to use when deplibs_check_method == "file_magic".
40262file_magic_cmd=$lt_file_magic_cmd
40263
40264# The archiver.
40265AR=$lt_AR
40266AR_FLAGS=$lt_AR_FLAGS
40267
40268# A symbol stripping program.
40269STRIP=$lt_STRIP
40270
40271# Commands used to install an old-style archive.
40272RANLIB=$lt_RANLIB
40273old_postinstall_cmds=$lt_old_postinstall_cmds
40274old_postuninstall_cmds=$lt_old_postuninstall_cmds
40275
40276# A C compiler.
40277LTCC=$lt_CC
40278
40279# LTCC compiler flags.
40280LTCFLAGS=$lt_CFLAGS
40281
40282# Take the output of nm and produce a listing of raw symbols and C names.
40283global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
40284
40285# Transform the output of nm in a proper C declaration.
40286global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
40287
40288# Transform the output of nm in a C name address pair.
40289global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
40290
40291# Transform the output of nm in a C name address pair when lib prefix is needed.
40292global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
40293
40294# The name of the directory that contains temporary libtool files.
40295objdir=$objdir
40296
40297# Shell to use when invoking shell scripts.
40298SHELL=$lt_SHELL
40299
40300# An echo program that does not interpret backslashes.
40301ECHO=$lt_ECHO
40302
40303# Used to examine libraries when file_magic_cmd begins with "file".
40304MAGIC_CMD=$MAGIC_CMD
40305
40306# Must we lock files when doing compilation?
40307need_locks=$lt_need_locks
40308
40309# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
40310DSYMUTIL=$lt_DSYMUTIL
40311
40312# Tool to change global to local symbols on Mac OS X.
40313NMEDIT=$lt_NMEDIT
40314
40315# Tool to manipulate fat objects and archives on Mac OS X.
40316LIPO=$lt_LIPO
40317
40318# ldd/readelf like tool for Mach-O binaries on Mac OS X.
40319OTOOL=$lt_OTOOL
40320
40321# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
40322OTOOL64=$lt_OTOOL64
40323
40324# Old archive suffix (normally "a").
40325libext=$libext
40326
40327# Shared library suffix (normally ".so").
40328shrext_cmds=$lt_shrext_cmds
40329
40330# The commands to extract the exported symbol list from a shared archive.
40331extract_expsyms_cmds=$lt_extract_expsyms_cmds
40332
40333# Variables whose values should be saved in libtool wrapper scripts and
40334# restored at link time.
40335variables_saved_for_relink=$lt_variables_saved_for_relink
40336
40337# Do we need the "lib" prefix for modules?
40338need_lib_prefix=$need_lib_prefix
40339
40340# Do we need a version for libraries?
40341need_version=$need_version
40342
40343# Library versioning type.
40344version_type=$version_type
40345
40346# Shared library runtime path variable.
40347runpath_var=$runpath_var
40348
40349# Shared library path variable.
40350shlibpath_var=$shlibpath_var
40351
40352# Is shlibpath searched before the hard-coded library search path?
40353shlibpath_overrides_runpath=$shlibpath_overrides_runpath
40354
40355# Format of library name prefix.
40356libname_spec=$lt_libname_spec
40357
40358# List of archive names.  First name is the real one, the rest are links.
40359# The last name is the one that the linker finds with -lNAME
40360library_names_spec=$lt_library_names_spec
40361
40362# The coded name of the library, if different from the real name.
40363soname_spec=$lt_soname_spec
40364
40365# Command to use after installation of a shared archive.
40366postinstall_cmds=$lt_postinstall_cmds
40367
40368# Command to use after uninstallation of a shared archive.
40369postuninstall_cmds=$lt_postuninstall_cmds
40370
40371# Commands used to finish a libtool library installation in a directory.
40372finish_cmds=$lt_finish_cmds
40373
40374# As "finish_cmds", except a single script fragment to be evaled but
40375# not shown.
40376finish_eval=$lt_finish_eval
40377
40378# Whether we should hardcode library paths into libraries.
40379hardcode_into_libs=$hardcode_into_libs
40380
40381# Compile-time system search path for libraries.
40382sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
40383
40384# Run-time system search path for libraries.
40385sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
40386
40387# Whether dlopen is supported.
40388dlopen_support=$enable_dlopen
40389
40390# Whether dlopen of programs is supported.
40391dlopen_self=$enable_dlopen_self
40392
40393# Whether dlopen of statically linked programs is supported.
40394dlopen_self_static=$enable_dlopen_self_static
40395
40396# Commands to strip libraries.
40397old_striplib=$lt_old_striplib
40398striplib=$lt_striplib
40399
40400
40401# The linker used to build libraries.
40402LD=$lt_LD
40403
40404# Commands used to build an old-style archive.
40405old_archive_cmds=$lt_old_archive_cmds
40406
40407# A language specific compiler.
40408CC=$lt_compiler
40409
40410# Is the compiler the GNU compiler?
40411with_gcc=$GCC
40412
40413# Compiler flag to turn off builtin functions.
40414no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
40415
40416# How to pass a linker flag through the compiler.
40417wl=$lt_lt_prog_compiler_wl
40418
40419# Additional compiler flags for building library objects.
40420pic_flag=$lt_lt_prog_compiler_pic
40421
40422# Compiler flag to prevent dynamic linking.
40423link_static_flag=$lt_lt_prog_compiler_static
40424
40425# Does compiler simultaneously support -c and -o options?
40426compiler_c_o=$lt_lt_cv_prog_compiler_c_o
40427
40428# Whether or not to add -lc for building shared libraries.
40429build_libtool_need_lc=$archive_cmds_need_lc
40430
40431# Whether or not to disallow shared libs when runtime libs are static.
40432allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
40433
40434# Compiler flag to allow reflexive dlopens.
40435export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
40436
40437# Compiler flag to generate shared objects directly from archives.
40438whole_archive_flag_spec=$lt_whole_archive_flag_spec
40439
40440# Whether the compiler copes with passing no objects directly.
40441compiler_needs_object=$lt_compiler_needs_object
40442
40443# Create an old-style archive from a shared archive.
40444old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
40445
40446# Create a temporary old-style archive to link instead of a shared archive.
40447old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
40448
40449# Commands used to build a shared archive.
40450archive_cmds=$lt_archive_cmds
40451archive_expsym_cmds=$lt_archive_expsym_cmds
40452
40453# Commands used to build a loadable module if different from building
40454# a shared archive.
40455module_cmds=$lt_module_cmds
40456module_expsym_cmds=$lt_module_expsym_cmds
40457
40458# Whether we are building with GNU ld or not.
40459with_gnu_ld=$lt_with_gnu_ld
40460
40461# Flag that allows shared libraries with undefined symbols to be built.
40462allow_undefined_flag=$lt_allow_undefined_flag
40463
40464# Flag that enforces no undefined symbols.
40465no_undefined_flag=$lt_no_undefined_flag
40466
40467# Flag to hardcode \$libdir into a binary during linking.
40468# This must work even if \$libdir does not exist
40469hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
40470
40471# If ld is used when linking, flag to hardcode \$libdir into a binary
40472# during linking.  This must work even if \$libdir does not exist.
40473hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
40474
40475# Whether we need a single "-rpath" flag with a separated argument.
40476hardcode_libdir_separator=$lt_hardcode_libdir_separator
40477
40478# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
40479# DIR into the resulting binary.
40480hardcode_direct=$hardcode_direct
40481
40482# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
40483# DIR into the resulting binary and the resulting library dependency is
40484# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
40485# library is relocated.
40486hardcode_direct_absolute=$hardcode_direct_absolute
40487
40488# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
40489# into the resulting binary.
40490hardcode_minus_L=$hardcode_minus_L
40491
40492# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
40493# into the resulting binary.
40494hardcode_shlibpath_var=$hardcode_shlibpath_var
40495
40496# Set to "yes" if building a shared library automatically hardcodes DIR
40497# into the library and all subsequent libraries and executables linked
40498# against it.
40499hardcode_automatic=$hardcode_automatic
40500
40501# Set to yes if linker adds runtime paths of dependent libraries
40502# to runtime path list.
40503inherit_rpath=$inherit_rpath
40504
40505# Whether libtool must link a program against all its dependency libraries.
40506link_all_deplibs=$link_all_deplibs
40507
40508# Fix the shell variable \$srcfile for the compiler.
40509fix_srcfile_path=$lt_fix_srcfile_path
40510
40511# Set to "yes" if exported symbols are required.
40512always_export_symbols=$always_export_symbols
40513
40514# The commands to list exported symbols.
40515export_symbols_cmds=$lt_export_symbols_cmds
40516
40517# Symbols that should not be listed in the preloaded symbols.
40518exclude_expsyms=$lt_exclude_expsyms
40519
40520# Symbols that must always be exported.
40521include_expsyms=$lt_include_expsyms
40522
40523# Commands necessary for linking programs (against libraries) with templates.
40524prelink_cmds=$lt_prelink_cmds
40525
40526# Specify filename containing input files.
40527file_list_spec=$lt_file_list_spec
40528
40529# How to hardcode a shared library path into an executable.
40530hardcode_action=$hardcode_action
40531
40532# The directories searched by this compiler when creating a shared library.
40533compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
40534
40535# Dependencies to place before and after the objects being linked to
40536# create a shared library.
40537predep_objects=$lt_predep_objects
40538postdep_objects=$lt_postdep_objects
40539predeps=$lt_predeps
40540postdeps=$lt_postdeps
40541
40542# The library search path used internally by the compiler when linking
40543# a shared library.
40544compiler_lib_search_path=$lt_compiler_lib_search_path
40545
40546# ### END LIBTOOL CONFIG
40547
40548_LT_EOF
40549
40550  case $host_os in
40551  aix3*)
40552    cat <<\_LT_EOF >> "$cfgfile"
40553# AIX sometimes has problems with the GCC collect2 program.  For some
40554# reason, if we set the COLLECT_NAMES environment variable, the problems
40555# vanish in a puff of smoke.
40556if test "X${COLLECT_NAMES+set}" != Xset; then
40557  COLLECT_NAMES=
40558  export COLLECT_NAMES
40559fi
40560_LT_EOF
40561    ;;
40562  esac
40563
40564
40565ltmain="$ac_aux_dir/ltmain.sh"
40566
40567
40568  # We use sed instead of cat because bash on DJGPP gets confused if
40569  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
40570  # text mode, it properly converts lines to CR/LF.  This bash problem
40571  # is reportedly fixed, but why not run on old versions too?
40572  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
40573    || (rm -f "$cfgfile"; exit 1)
40574
40575  case $xsi_shell in
40576  yes)
40577    cat << \_LT_EOF >> "$cfgfile"
40578
40579# func_dirname file append nondir_replacement
40580# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
40581# otherwise set result to NONDIR_REPLACEMENT.
40582func_dirname ()
40583{
40584  case ${1} in
40585    */*) func_dirname_result="${1%/*}${2}" ;;
40586    *  ) func_dirname_result="${3}" ;;
40587  esac
40588}
40589
40590# func_basename file
40591func_basename ()
40592{
40593  func_basename_result="${1##*/}"
40594}
40595
40596# func_dirname_and_basename file append nondir_replacement
40597# perform func_basename and func_dirname in a single function
40598# call:
40599#   dirname:  Compute the dirname of FILE.  If nonempty,
40600#             add APPEND to the result, otherwise set result
40601#             to NONDIR_REPLACEMENT.
40602#             value returned in "$func_dirname_result"
40603#   basename: Compute filename of FILE.
40604#             value retuned in "$func_basename_result"
40605# Implementation must be kept synchronized with func_dirname
40606# and func_basename. For efficiency, we do not delegate to
40607# those functions but instead duplicate the functionality here.
40608func_dirname_and_basename ()
40609{
40610  case ${1} in
40611    */*) func_dirname_result="${1%/*}${2}" ;;
40612    *  ) func_dirname_result="${3}" ;;
40613  esac
40614  func_basename_result="${1##*/}"
40615}
40616
40617# func_stripname prefix suffix name
40618# strip PREFIX and SUFFIX off of NAME.
40619# PREFIX and SUFFIX must not contain globbing or regex special
40620# characters, hashes, percent signs, but SUFFIX may contain a leading
40621# dot (in which case that matches only a dot).
40622func_stripname ()
40623{
40624  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
40625  # positional parameters, so assign one to ordinary parameter first.
40626  func_stripname_result=${3}
40627  func_stripname_result=${func_stripname_result#"${1}"}
40628  func_stripname_result=${func_stripname_result%"${2}"}
40629}
40630
40631# func_opt_split
40632func_opt_split ()
40633{
40634  func_opt_split_opt=${1%%=*}
40635  func_opt_split_arg=${1#*=}
40636}
40637
40638# func_lo2o object
40639func_lo2o ()
40640{
40641  case ${1} in
40642    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
40643    *)    func_lo2o_result=${1} ;;
40644  esac
40645}
40646
40647# func_xform libobj-or-source
40648func_xform ()
40649{
40650  func_xform_result=${1%.*}.lo
40651}
40652
40653# func_arith arithmetic-term...
40654func_arith ()
40655{
40656  func_arith_result=$(( $* ))
40657}
40658
40659# func_len string
40660# STRING may not start with a hyphen.
40661func_len ()
40662{
40663  func_len_result=${#1}
40664}
40665
40666_LT_EOF
40667    ;;
40668  *) # Bourne compatible functions.
40669    cat << \_LT_EOF >> "$cfgfile"
40670
40671# func_dirname file append nondir_replacement
40672# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
40673# otherwise set result to NONDIR_REPLACEMENT.
40674func_dirname ()
40675{
40676  # Extract subdirectory from the argument.
40677  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
40678  if test "X$func_dirname_result" = "X${1}"; then
40679    func_dirname_result="${3}"
40680  else
40681    func_dirname_result="$func_dirname_result${2}"
40682  fi
40683}
40684
40685# func_basename file
40686func_basename ()
40687{
40688  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
40689}
40690
40691
40692# func_stripname prefix suffix name
40693# strip PREFIX and SUFFIX off of NAME.
40694# PREFIX and SUFFIX must not contain globbing or regex special
40695# characters, hashes, percent signs, but SUFFIX may contain a leading
40696# dot (in which case that matches only a dot).
40697# func_strip_suffix prefix name
40698func_stripname ()
40699{
40700  case ${2} in
40701    .*) func_stripname_result=`$ECHO "X${3}" \
40702           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
40703    *)  func_stripname_result=`$ECHO "X${3}" \
40704           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
40705  esac
40706}
40707
40708# sed scripts:
40709my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
40710my_sed_long_arg='1s/^-[^=]*=//'
40711
40712# func_opt_split
40713func_opt_split ()
40714{
40715  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
40716  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
40717}
40718
40719# func_lo2o object
40720func_lo2o ()
40721{
40722  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
40723}
40724
40725# func_xform libobj-or-source
40726func_xform ()
40727{
40728  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
40729}
40730
40731# func_arith arithmetic-term...
40732func_arith ()
40733{
40734  func_arith_result=`expr "$@"`
40735}
40736
40737# func_len string
40738# STRING may not start with a hyphen.
40739func_len ()
40740{
40741  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
40742}
40743
40744_LT_EOF
40745esac
40746
40747case $lt_shell_append in
40748  yes)
40749    cat << \_LT_EOF >> "$cfgfile"
40750
40751# func_append var value
40752# Append VALUE to the end of shell variable VAR.
40753func_append ()
40754{
40755  eval "$1+=\$2"
40756}
40757_LT_EOF
40758    ;;
40759  *)
40760    cat << \_LT_EOF >> "$cfgfile"
40761
40762# func_append var value
40763# Append VALUE to the end of shell variable VAR.
40764func_append ()
40765{
40766  eval "$1=\$$1\$2"
40767}
40768
40769_LT_EOF
40770    ;;
40771  esac
40772
40773
40774  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
40775    || (rm -f "$cfgfile"; exit 1)
40776
40777  mv -f "$cfgfile" "$ofile" ||
40778    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
40779  chmod +x "$ofile"
40780
40781
40782    cat <<_LT_EOF >> "$ofile"
40783
40784# ### BEGIN LIBTOOL TAG CONFIG: CXX
40785
40786# The linker used to build libraries.
40787LD=$lt_LD_CXX
40788
40789# Commands used to build an old-style archive.
40790old_archive_cmds=$lt_old_archive_cmds_CXX
40791
40792# A language specific compiler.
40793CC=$lt_compiler_CXX
40794
40795# Is the compiler the GNU compiler?
40796with_gcc=$GCC_CXX
40797
40798# Compiler flag to turn off builtin functions.
40799no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
40800
40801# How to pass a linker flag through the compiler.
40802wl=$lt_lt_prog_compiler_wl_CXX
40803
40804# Additional compiler flags for building library objects.
40805pic_flag=$lt_lt_prog_compiler_pic_CXX
40806
40807# Compiler flag to prevent dynamic linking.
40808link_static_flag=$lt_lt_prog_compiler_static_CXX
40809
40810# Does compiler simultaneously support -c and -o options?
40811compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
40812
40813# Whether or not to add -lc for building shared libraries.
40814build_libtool_need_lc=$archive_cmds_need_lc_CXX
40815
40816# Whether or not to disallow shared libs when runtime libs are static.
40817allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
40818
40819# Compiler flag to allow reflexive dlopens.
40820export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
40821
40822# Compiler flag to generate shared objects directly from archives.
40823whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
40824
40825# Whether the compiler copes with passing no objects directly.
40826compiler_needs_object=$lt_compiler_needs_object_CXX
40827
40828# Create an old-style archive from a shared archive.
40829old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
40830
40831# Create a temporary old-style archive to link instead of a shared archive.
40832old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
40833
40834# Commands used to build a shared archive.
40835archive_cmds=$lt_archive_cmds_CXX
40836archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
40837
40838# Commands used to build a loadable module if different from building
40839# a shared archive.
40840module_cmds=$lt_module_cmds_CXX
40841module_expsym_cmds=$lt_module_expsym_cmds_CXX
40842
40843# Whether we are building with GNU ld or not.
40844with_gnu_ld=$lt_with_gnu_ld_CXX
40845
40846# Flag that allows shared libraries with undefined symbols to be built.
40847allow_undefined_flag=$lt_allow_undefined_flag_CXX
40848
40849# Flag that enforces no undefined symbols.
40850no_undefined_flag=$lt_no_undefined_flag_CXX
40851
40852# Flag to hardcode \$libdir into a binary during linking.
40853# This must work even if \$libdir does not exist
40854hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
40855
40856# If ld is used when linking, flag to hardcode \$libdir into a binary
40857# during linking.  This must work even if \$libdir does not exist.
40858hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
40859
40860# Whether we need a single "-rpath" flag with a separated argument.
40861hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
40862
40863# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
40864# DIR into the resulting binary.
40865hardcode_direct=$hardcode_direct_CXX
40866
40867# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
40868# DIR into the resulting binary and the resulting library dependency is
40869# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
40870# library is relocated.
40871hardcode_direct_absolute=$hardcode_direct_absolute_CXX
40872
40873# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
40874# into the resulting binary.
40875hardcode_minus_L=$hardcode_minus_L_CXX
40876
40877# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
40878# into the resulting binary.
40879hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
40880
40881# Set to "yes" if building a shared library automatically hardcodes DIR
40882# into the library and all subsequent libraries and executables linked
40883# against it.
40884hardcode_automatic=$hardcode_automatic_CXX
40885
40886# Set to yes if linker adds runtime paths of dependent libraries
40887# to runtime path list.
40888inherit_rpath=$inherit_rpath_CXX
40889
40890# Whether libtool must link a program against all its dependency libraries.
40891link_all_deplibs=$link_all_deplibs_CXX
40892
40893# Fix the shell variable \$srcfile for the compiler.
40894fix_srcfile_path=$lt_fix_srcfile_path_CXX
40895
40896# Set to "yes" if exported symbols are required.
40897always_export_symbols=$always_export_symbols_CXX
40898
40899# The commands to list exported symbols.
40900export_symbols_cmds=$lt_export_symbols_cmds_CXX
40901
40902# Symbols that should not be listed in the preloaded symbols.
40903exclude_expsyms=$lt_exclude_expsyms_CXX
40904
40905# Symbols that must always be exported.
40906include_expsyms=$lt_include_expsyms_CXX
40907
40908# Commands necessary for linking programs (against libraries) with templates.
40909prelink_cmds=$lt_prelink_cmds_CXX
40910
40911# Specify filename containing input files.
40912file_list_spec=$lt_file_list_spec_CXX
40913
40914# How to hardcode a shared library path into an executable.
40915hardcode_action=$hardcode_action_CXX
40916
40917# The directories searched by this compiler when creating a shared library.
40918compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
40919
40920# Dependencies to place before and after the objects being linked to
40921# create a shared library.
40922predep_objects=$lt_predep_objects_CXX
40923postdep_objects=$lt_postdep_objects_CXX
40924predeps=$lt_predeps_CXX
40925postdeps=$lt_postdeps_CXX
40926
40927# The library search path used internally by the compiler when linking
40928# a shared library.
40929compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
40930
40931# ### END LIBTOOL TAG CONFIG: CXX
40932_LT_EOF
40933
40934 ;;
40935    "default":C)  chmod +x libpreludedb-config  ;;
40936
40937  esac
40938done # for ac_tag
40939
40940
40941{ (exit 0); exit 0; }
40942_ACEOF
40943chmod +x $CONFIG_STATUS
40944ac_clean_files=$ac_clean_files_save
40945
40946test $ac_write_fail = 0 ||
40947  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
40948$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
40949   { (exit 1); exit 1; }; }
40950
40951
40952# configure is writing to config.log, and then calls config.status.
40953# config.status does its own redirection, appending to config.log.
40954# Unfortunately, on DOS this fails, as config.log is still kept open
40955# by configure, so config.status won't be able to write to it; its
40956# output is simply discarded.  So we exec the FD to /dev/null,
40957# effectively closing config.log, so it can be properly (re)opened and
40958# appended to by config.status.  When coming back to configure, we
40959# need to make the FD available again.
40960if test "$no_create" != yes; then
40961  ac_cs_success=:
40962  ac_config_status_args=
40963  test "$silent" = yes &&
40964    ac_config_status_args="$ac_config_status_args --quiet"
40965  exec 5>/dev/null
40966  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40967  exec 5>>config.log
40968  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40969  # would make configure fail if this is the last instruction.
40970  $ac_cs_success || { (exit 1); exit 1; }
40971fi
40972if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40973  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40974$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
40975fi
40976
40977
40978
40979echo
40980echo "*** Dumping configuration ***"
40981echo "    - Generate documentation      : $enable_gtk_doc"
40982echo "    - Enable MySQL plugin         : $with_mysql"
40983echo "    - Enable PostgreSQL plugin    : $with_pgsql"
40984echo "    - Enable SQLite3 plugin       : $with_sqlite3"
40985echo "    - Python2.x binding           : $with_python2";
40986echo "    - Python3.x binding           : $with_python3";
40987echo "    - Easy bindings               : $enable_easy_bindings"
40988