boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git] / src / mm / boehm-gc / libatomic_ops-1.2 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libatomic_ops 1.2.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='libatomic_ops'
574 PACKAGE_TARNAME='libatomic_ops'
575 PACKAGE_VERSION='1.2'
576 PACKAGE_STRING='libatomic_ops 1.2'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/atomic_ops.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 target
662 target_cpu
663 target_vendor
664 target_os
665 INSTALL_PROGRAM
666 INSTALL_SCRIPT
667 INSTALL_DATA
668 CYGPATH_W
669 PACKAGE
670 VERSION
671 ACLOCAL
672 AUTOCONF
673 AUTOMAKE
674 AUTOHEADER
675 MAKEINFO
676 install_sh
677 STRIP
678 INSTALL_STRIP_PROGRAM
679 mkdir_p
680 AWK
681 SET_MAKE
682 am__leading_dot
683 AMTAR
684 am__tar
685 am__untar
686 RANLIB
687 CC
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 DEPDIR
695 am__include
696 am__quote
697 AMDEP_TRUE
698 AMDEP_FALSE
699 AMDEPBACKSLASH
700 CCDEPMODE
701 am__fastdepCC_TRUE
702 am__fastdepCC_FALSE
703 CCAS
704 CCASFLAGS
705 CPP
706 GREP
707 EGREP
708 PICFLAG
709 NEED_ASM_TRUE
710 NEED_ASM_FALSE
711 LIBOBJS
712 LTLIBOBJS'
713 ac_subst_files=''
714       ac_precious_vars='build_alias
715 host_alias
716 target_alias
717 CC
718 CFLAGS
719 LDFLAGS
720 LIBS
721 CPPFLAGS
722 CCAS
723 CCASFLAGS
724 CPP'
725
726
727 # Initialize some variables set by options.
728 ac_init_help=
729 ac_init_version=false
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
732 cache_file=/dev/null
733 exec_prefix=NONE
734 no_create=
735 no_recursion=
736 prefix=NONE
737 program_prefix=NONE
738 program_suffix=NONE
739 program_transform_name=s,x,x,
740 silent=
741 site=
742 srcdir=
743 verbose=
744 x_includes=NONE
745 x_libraries=NONE
746
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
764 infodir='${datarootdir}/info'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
772
773 ac_prev=
774 ac_dashdash=
775 for ac_option
776 do
777   # If the previous option needs an argument, assign it.
778   if test -n "$ac_prev"; then
779     eval $ac_prev=\$ac_option
780     ac_prev=
781     continue
782   fi
783
784   case $ac_option in
785   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786   *)    ac_optarg=yes ;;
787   esac
788
789   # Accept the important Cygnus configure options, so we can diagnose typos.
790
791   case $ac_dashdash$ac_option in
792   --)
793     ac_dashdash=yes ;;
794
795   -bindir | --bindir | --bindi | --bind | --bin | --bi)
796     ac_prev=bindir ;;
797   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798     bindir=$ac_optarg ;;
799
800   -build | --build | --buil | --bui | --bu)
801     ac_prev=build_alias ;;
802   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803     build_alias=$ac_optarg ;;
804
805   -cache-file | --cache-file | --cache-fil | --cache-fi \
806   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807     ac_prev=cache_file ;;
808   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810     cache_file=$ac_optarg ;;
811
812   --config-cache | -C)
813     cache_file=config.cache ;;
814
815   -datadir | --datadir | --datadi | --datad)
816     ac_prev=datadir ;;
817   -datadir=* | --datadir=* | --datadi=* | --datad=*)
818     datadir=$ac_optarg ;;
819
820   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821   | --dataroo | --dataro | --datar)
822     ac_prev=datarootdir ;;
823   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825     datarootdir=$ac_optarg ;;
826
827   -disable-* | --disable-*)
828     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829     # Reject names that are not valid shell variable names.
830     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
831       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
832    { (exit 1); exit 1; }; }
833     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
834     eval enable_$ac_feature=no ;;
835
836   -docdir | --docdir | --docdi | --doc | --do)
837     ac_prev=docdir ;;
838   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839     docdir=$ac_optarg ;;
840
841   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842     ac_prev=dvidir ;;
843   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844     dvidir=$ac_optarg ;;
845
846   -enable-* | --enable-*)
847     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848     # Reject names that are not valid shell variable names.
849     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
850       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
851    { (exit 1); exit 1; }; }
852     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
853     eval enable_$ac_feature=\$ac_optarg ;;
854
855   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
856   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
857   | --exec | --exe | --ex)
858     ac_prev=exec_prefix ;;
859   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
860   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
861   | --exec=* | --exe=* | --ex=*)
862     exec_prefix=$ac_optarg ;;
863
864   -gas | --gas | --ga | --g)
865     # Obsolete; use --with-gas.
866     with_gas=yes ;;
867
868   -help | --help | --hel | --he | -h)
869     ac_init_help=long ;;
870   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
871     ac_init_help=recursive ;;
872   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
873     ac_init_help=short ;;
874
875   -host | --host | --hos | --ho)
876     ac_prev=host_alias ;;
877   -host=* | --host=* | --hos=* | --ho=*)
878     host_alias=$ac_optarg ;;
879
880   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
881     ac_prev=htmldir ;;
882   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
883   | --ht=*)
884     htmldir=$ac_optarg ;;
885
886   -includedir | --includedir | --includedi | --included | --include \
887   | --includ | --inclu | --incl | --inc)
888     ac_prev=includedir ;;
889   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
890   | --includ=* | --inclu=* | --incl=* | --inc=*)
891     includedir=$ac_optarg ;;
892
893   -infodir | --infodir | --infodi | --infod | --info | --inf)
894     ac_prev=infodir ;;
895   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
896     infodir=$ac_optarg ;;
897
898   -libdir | --libdir | --libdi | --libd)
899     ac_prev=libdir ;;
900   -libdir=* | --libdir=* | --libdi=* | --libd=*)
901     libdir=$ac_optarg ;;
902
903   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
904   | --libexe | --libex | --libe)
905     ac_prev=libexecdir ;;
906   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
907   | --libexe=* | --libex=* | --libe=*)
908     libexecdir=$ac_optarg ;;
909
910   -localedir | --localedir | --localedi | --localed | --locale)
911     ac_prev=localedir ;;
912   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
913     localedir=$ac_optarg ;;
914
915   -localstatedir | --localstatedir | --localstatedi | --localstated \
916   | --localstate | --localstat | --localsta | --localst | --locals)
917     ac_prev=localstatedir ;;
918   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
919   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
920     localstatedir=$ac_optarg ;;
921
922   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
923     ac_prev=mandir ;;
924   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925     mandir=$ac_optarg ;;
926
927   -nfp | --nfp | --nf)
928     # Obsolete; use --without-fp.
929     with_fp=no ;;
930
931   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
932   | --no-cr | --no-c | -n)
933     no_create=yes ;;
934
935   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
937     no_recursion=yes ;;
938
939   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
940   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
941   | --oldin | --oldi | --old | --ol | --o)
942     ac_prev=oldincludedir ;;
943   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
944   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
945   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
946     oldincludedir=$ac_optarg ;;
947
948   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
949     ac_prev=prefix ;;
950   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
951     prefix=$ac_optarg ;;
952
953   -program-prefix | --program-prefix | --program-prefi | --program-pref \
954   | --program-pre | --program-pr | --program-p)
955     ac_prev=program_prefix ;;
956   -program-prefix=* | --program-prefix=* | --program-prefi=* \
957   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
958     program_prefix=$ac_optarg ;;
959
960   -program-suffix | --program-suffix | --program-suffi | --program-suff \
961   | --program-suf | --program-su | --program-s)
962     ac_prev=program_suffix ;;
963   -program-suffix=* | --program-suffix=* | --program-suffi=* \
964   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
965     program_suffix=$ac_optarg ;;
966
967   -program-transform-name | --program-transform-name \
968   | --program-transform-nam | --program-transform-na \
969   | --program-transform-n | --program-transform- \
970   | --program-transform | --program-transfor \
971   | --program-transfo | --program-transf \
972   | --program-trans | --program-tran \
973   | --progr-tra | --program-tr | --program-t)
974     ac_prev=program_transform_name ;;
975   -program-transform-name=* | --program-transform-name=* \
976   | --program-transform-nam=* | --program-transform-na=* \
977   | --program-transform-n=* | --program-transform-=* \
978   | --program-transform=* | --program-transfor=* \
979   | --program-transfo=* | --program-transf=* \
980   | --program-trans=* | --program-tran=* \
981   | --progr-tra=* | --program-tr=* | --program-t=*)
982     program_transform_name=$ac_optarg ;;
983
984   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
985     ac_prev=pdfdir ;;
986   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
987     pdfdir=$ac_optarg ;;
988
989   -psdir | --psdir | --psdi | --psd | --ps)
990     ac_prev=psdir ;;
991   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
992     psdir=$ac_optarg ;;
993
994   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
995   | -silent | --silent | --silen | --sile | --sil)
996     silent=yes ;;
997
998   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999     ac_prev=sbindir ;;
1000   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001   | --sbi=* | --sb=*)
1002     sbindir=$ac_optarg ;;
1003
1004   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006   | --sharedst | --shareds | --shared | --share | --shar \
1007   | --sha | --sh)
1008     ac_prev=sharedstatedir ;;
1009   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012   | --sha=* | --sh=*)
1013     sharedstatedir=$ac_optarg ;;
1014
1015   -site | --site | --sit)
1016     ac_prev=site ;;
1017   -site=* | --site=* | --sit=*)
1018     site=$ac_optarg ;;
1019
1020   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021     ac_prev=srcdir ;;
1022   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023     srcdir=$ac_optarg ;;
1024
1025   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026   | --syscon | --sysco | --sysc | --sys | --sy)
1027     ac_prev=sysconfdir ;;
1028   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030     sysconfdir=$ac_optarg ;;
1031
1032   -target | --target | --targe | --targ | --tar | --ta | --t)
1033     ac_prev=target_alias ;;
1034   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035     target_alias=$ac_optarg ;;
1036
1037   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1038     verbose=yes ;;
1039
1040   -version | --version | --versio | --versi | --vers | -V)
1041     ac_init_version=: ;;
1042
1043   -with-* | --with-*)
1044     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047       { echo "$as_me: error: invalid package name: $ac_package" >&2
1048    { (exit 1); exit 1; }; }
1049     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1050     eval with_$ac_package=\$ac_optarg ;;
1051
1052   -without-* | --without-*)
1053     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056       { echo "$as_me: error: invalid package name: $ac_package" >&2
1057    { (exit 1); exit 1; }; }
1058     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1059     eval with_$ac_package=no ;;
1060
1061   --x)
1062     # Obsolete; use --with-x.
1063     with_x=yes ;;
1064
1065   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1066   | --x-incl | --x-inc | --x-in | --x-i)
1067     ac_prev=x_includes ;;
1068   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1069   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1070     x_includes=$ac_optarg ;;
1071
1072   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1073   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1074     ac_prev=x_libraries ;;
1075   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1076   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1077     x_libraries=$ac_optarg ;;
1078
1079   -*) { echo "$as_me: error: unrecognized option: $ac_option
1080 Try \`$0 --help' for more information." >&2
1081    { (exit 1); exit 1; }; }
1082     ;;
1083
1084   *=*)
1085     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1088       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1089    { (exit 1); exit 1; }; }
1090     eval $ac_envvar=\$ac_optarg
1091     export $ac_envvar ;;
1092
1093   *)
1094     # FIXME: should be removed in autoconf 3.0.
1095     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1096     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1098     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1099     ;;
1100
1101   esac
1102 done
1103
1104 if test -n "$ac_prev"; then
1105   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1106   { echo "$as_me: error: missing argument to $ac_option" >&2
1107    { (exit 1); exit 1; }; }
1108 fi
1109
1110 # Be sure to have absolute directory names.
1111 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1112                 datadir sysconfdir sharedstatedir localstatedir includedir \
1113                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1114                 libdir localedir mandir
1115 do
1116   eval ac_val=\$$ac_var
1117   case $ac_val in
1118     [\\/$]* | ?:[\\/]* )  continue;;
1119     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120   esac
1121   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1122    { (exit 1); exit 1; }; }
1123 done
1124
1125 # There might be people who depend on the old broken behavior: `$host'
1126 # used to hold the argument of --host etc.
1127 # FIXME: To remove some day.
1128 build=$build_alias
1129 host=$host_alias
1130 target=$target_alias
1131
1132 # FIXME: To remove some day.
1133 if test "x$host_alias" != x; then
1134   if test "x$build_alias" = x; then
1135     cross_compiling=maybe
1136     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1137     If a cross compiler is detected then cross compile mode will be used." >&2
1138   elif test "x$build_alias" != "x$host_alias"; then
1139     cross_compiling=yes
1140   fi
1141 fi
1142
1143 ac_tool_prefix=
1144 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145
1146 test "$silent" = yes && exec 6>/dev/null
1147
1148
1149 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1150 ac_ls_di=`ls -di .` &&
1151 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1152   { echo "$as_me: error: Working directory cannot be determined" >&2
1153    { (exit 1); exit 1; }; }
1154 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155   { echo "$as_me: error: pwd does not report name of working directory" >&2
1156    { (exit 1); exit 1; }; }
1157
1158
1159 # Find the source files, if location was not specified.
1160 if test -z "$srcdir"; then
1161   ac_srcdir_defaulted=yes
1162   # Try the directory containing this script, then the parent directory.
1163   ac_confdir=`$as_dirname -- "$0" ||
1164 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165          X"$0" : 'X\(//\)[^/]' \| \
1166          X"$0" : 'X\(//\)$' \| \
1167          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1168 echo X"$0" |
1169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170             s//\1/
1171             q
1172           }
1173           /^X\(\/\/\)[^/].*/{
1174             s//\1/
1175             q
1176           }
1177           /^X\(\/\/\)$/{
1178             s//\1/
1179             q
1180           }
1181           /^X\(\/\).*/{
1182             s//\1/
1183             q
1184           }
1185           s/.*/./; q'`
1186   srcdir=$ac_confdir
1187   if test ! -r "$srcdir/$ac_unique_file"; then
1188     srcdir=..
1189   fi
1190 else
1191   ac_srcdir_defaulted=no
1192 fi
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1194   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1196    { (exit 1); exit 1; }; }
1197 fi
1198 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1199 ac_abs_confdir=`(
1200         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1201    { (exit 1); exit 1; }; }
1202         pwd)`
1203 # When building in place, set srcdir=.
1204 if test "$ac_abs_confdir" = "$ac_pwd"; then
1205   srcdir=.
1206 fi
1207 # Remove unnecessary trailing slashes from srcdir.
1208 # Double slashes in file names in object file debugging info
1209 # mess up M-x gdb in Emacs.
1210 case $srcdir in
1211 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212 esac
1213 for ac_var in $ac_precious_vars; do
1214   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215   eval ac_env_${ac_var}_value=\$${ac_var}
1216   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1218 done
1219
1220 #
1221 # Report the --help message.
1222 #
1223 if test "$ac_init_help" = "long"; then
1224   # Omit some internal or obsolete options to make the list less imposing.
1225   # This message is too long to be a string in the A/UX 3.1 sh.
1226   cat <<_ACEOF
1227 \`configure' configures libatomic_ops 1.2 to adapt to many kinds of systems.
1228
1229 Usage: $0 [OPTION]... [VAR=VALUE]...
1230
1231 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232 VAR=VALUE.  See below for descriptions of some of the useful variables.
1233
1234 Defaults for the options are specified in brackets.
1235
1236 Configuration:
1237   -h, --help              display this help and exit
1238       --help=short        display options specific to this package
1239       --help=recursive    display the short help of all the included packages
1240   -V, --version           display version information and exit
1241   -q, --quiet, --silent   do not print \`checking...' messages
1242       --cache-file=FILE   cache test results in FILE [disabled]
1243   -C, --config-cache      alias for \`--cache-file=config.cache'
1244   -n, --no-create         do not create output files
1245       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1246
1247 Installation directories:
1248   --prefix=PREFIX         install architecture-independent files in PREFIX
1249                           [$ac_default_prefix]
1250   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1251                           [PREFIX]
1252
1253 By default, \`make install' will install all the files in
1254 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1255 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256 for instance \`--prefix=\$HOME'.
1257
1258 For better control, use the options below.
1259
1260 Fine tuning of the installation directories:
1261   --bindir=DIR           user executables [EPREFIX/bin]
1262   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1263   --libexecdir=DIR       program executables [EPREFIX/libexec]
1264   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1265   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1266   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1267   --libdir=DIR           object code libraries [EPREFIX/lib]
1268   --includedir=DIR       C header files [PREFIX/include]
1269   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1270   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1271   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1272   --infodir=DIR          info documentation [DATAROOTDIR/info]
1273   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1274   --mandir=DIR           man documentation [DATAROOTDIR/man]
1275   --docdir=DIR           documentation root [DATAROOTDIR/doc/libatomic_ops]
1276   --htmldir=DIR          html documentation [DOCDIR]
1277   --dvidir=DIR           dvi documentation [DOCDIR]
1278   --pdfdir=DIR           pdf documentation [DOCDIR]
1279   --psdir=DIR            ps documentation [DOCDIR]
1280 _ACEOF
1281
1282   cat <<\_ACEOF
1283
1284 Program names:
1285   --program-prefix=PREFIX            prepend PREFIX to installed program names
1286   --program-suffix=SUFFIX            append SUFFIX to installed program names
1287   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1288
1289 System types:
1290   --build=BUILD     configure for building on BUILD [guessed]
1291   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1292   --target=TARGET   configure for building compilers for TARGET [HOST]
1293 _ACEOF
1294 fi
1295
1296 if test -n "$ac_init_help"; then
1297   case $ac_init_help in
1298      short | recursive ) echo "Configuration of libatomic_ops 1.2:";;
1299    esac
1300   cat <<\_ACEOF
1301
1302 Optional Features:
1303   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1304   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1305   --disable-dependency-tracking  speeds up one-time build
1306   --enable-dependency-tracking   do not reject slow dependency extractors
1307
1308 Some influential environment variables:
1309   CC          C compiler command
1310   CFLAGS      C compiler flags
1311   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1312               nonstandard directory <lib dir>
1313   LIBS        libraries to pass to the linker, e.g. -l<library>
1314   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1315               you have headers in a nonstandard directory <include dir>
1316   CCAS        assembler compiler command (defaults to CC)
1317   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1318   CPP         C preprocessor
1319
1320 Use these variables to override the choices made by `configure' or to help
1321 it to find libraries and programs with nonstandard names/locations.
1322
1323 _ACEOF
1324 ac_status=$?
1325 fi
1326
1327 if test "$ac_init_help" = "recursive"; then
1328   # If there are subdirs, report their specific --help.
1329   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1330     test -d "$ac_dir" || continue
1331     ac_builddir=.
1332
1333 case "$ac_dir" in
1334 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335 *)
1336   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1337   # A ".." for each directory in $ac_dir_suffix.
1338   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1339   case $ac_top_builddir_sub in
1340   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1341   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1342   esac ;;
1343 esac
1344 ac_abs_top_builddir=$ac_pwd
1345 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1346 # for backward compatibility:
1347 ac_top_builddir=$ac_top_build_prefix
1348
1349 case $srcdir in
1350   .)  # We are building in place.
1351     ac_srcdir=.
1352     ac_top_srcdir=$ac_top_builddir_sub
1353     ac_abs_top_srcdir=$ac_pwd ;;
1354   [\\/]* | ?:[\\/]* )  # Absolute name.
1355     ac_srcdir=$srcdir$ac_dir_suffix;
1356     ac_top_srcdir=$srcdir
1357     ac_abs_top_srcdir=$srcdir ;;
1358   *) # Relative name.
1359     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1360     ac_top_srcdir=$ac_top_build_prefix$srcdir
1361     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1362 esac
1363 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1364
1365     cd "$ac_dir" || { ac_status=$?; continue; }
1366     # Check for guested configure.
1367     if test -f "$ac_srcdir/configure.gnu"; then
1368       echo &&
1369       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1370     elif test -f "$ac_srcdir/configure"; then
1371       echo &&
1372       $SHELL "$ac_srcdir/configure" --help=recursive
1373     else
1374       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1375     fi || ac_status=$?
1376     cd "$ac_pwd" || { ac_status=$?; break; }
1377   done
1378 fi
1379
1380 test -n "$ac_init_help" && exit $ac_status
1381 if $ac_init_version; then
1382   cat <<\_ACEOF
1383 libatomic_ops configure 1.2
1384 generated by GNU Autoconf 2.61
1385
1386 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1387 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1388 This configure script is free software; the Free Software Foundation
1389 gives unlimited permission to copy, distribute and modify it.
1390 _ACEOF
1391   exit
1392 fi
1393 cat >config.log <<_ACEOF
1394 This file contains any messages produced by compilers while
1395 running configure, to aid debugging if configure makes a mistake.
1396
1397 It was created by libatomic_ops $as_me 1.2, which was
1398 generated by GNU Autoconf 2.61.  Invocation command line was
1399
1400   $ $0 $@
1401
1402 _ACEOF
1403 exec 5>>config.log
1404 {
1405 cat <<_ASUNAME
1406 ## --------- ##
1407 ## Platform. ##
1408 ## --------- ##
1409
1410 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1411 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1412 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1413 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1414 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1415
1416 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1417 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1418
1419 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1420 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1421 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1422 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1423 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1424 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1425 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1426
1427 _ASUNAME
1428
1429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 for as_dir in $PATH
1431 do
1432   IFS=$as_save_IFS
1433   test -z "$as_dir" && as_dir=.
1434   echo "PATH: $as_dir"
1435 done
1436 IFS=$as_save_IFS
1437
1438 } >&5
1439
1440 cat >&5 <<_ACEOF
1441
1442
1443 ## ----------- ##
1444 ## Core tests. ##
1445 ## ----------- ##
1446
1447 _ACEOF
1448
1449
1450 # Keep a trace of the command line.
1451 # Strip out --no-create and --no-recursion so they do not pile up.
1452 # Strip out --silent because we don't want to record it for future runs.
1453 # Also quote any args containing shell meta-characters.
1454 # Make two passes to allow for proper duplicate-argument suppression.
1455 ac_configure_args=
1456 ac_configure_args0=
1457 ac_configure_args1=
1458 ac_must_keep_next=false
1459 for ac_pass in 1 2
1460 do
1461   for ac_arg
1462   do
1463     case $ac_arg in
1464     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1465     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1466     | -silent | --silent | --silen | --sile | --sil)
1467       continue ;;
1468     *\'*)
1469       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1470     esac
1471     case $ac_pass in
1472     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1473     2)
1474       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1475       if test $ac_must_keep_next = true; then
1476         ac_must_keep_next=false # Got value, back to normal.
1477       else
1478         case $ac_arg in
1479           *=* | --config-cache | -C | -disable-* | --disable-* \
1480           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1481           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1482           | -with-* | --with-* | -without-* | --without-* | --x)
1483             case "$ac_configure_args0 " in
1484               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1485             esac
1486             ;;
1487           -* ) ac_must_keep_next=true ;;
1488         esac
1489       fi
1490       ac_configure_args="$ac_configure_args '$ac_arg'"
1491       ;;
1492     esac
1493   done
1494 done
1495 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1496 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1497
1498 # When interrupted or exit'd, cleanup temporary files, and complete
1499 # config.log.  We remove comments because anyway the quotes in there
1500 # would cause problems or look ugly.
1501 # WARNING: Use '\'' to represent an apostrophe within the trap.
1502 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1503 trap 'exit_status=$?
1504   # Save into config.log some information that might help in debugging.
1505   {
1506     echo
1507
1508     cat <<\_ASBOX
1509 ## ---------------- ##
1510 ## Cache variables. ##
1511 ## ---------------- ##
1512 _ASBOX
1513     echo
1514     # The following way of writing the cache mishandles newlines in values,
1515 (
1516   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1517     eval ac_val=\$$ac_var
1518     case $ac_val in #(
1519     *${as_nl}*)
1520       case $ac_var in #(
1521       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1522 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1523       esac
1524       case $ac_var in #(
1525       _ | IFS | as_nl) ;; #(
1526       *) $as_unset $ac_var ;;
1527       esac ;;
1528     esac
1529   done
1530   (set) 2>&1 |
1531     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1532     *${as_nl}ac_space=\ *)
1533       sed -n \
1534         "s/'\''/'\''\\\\'\'''\''/g;
1535           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1536       ;; #(
1537     *)
1538       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1539       ;;
1540     esac |
1541     sort
1542 )
1543     echo
1544
1545     cat <<\_ASBOX
1546 ## ----------------- ##
1547 ## Output variables. ##
1548 ## ----------------- ##
1549 _ASBOX
1550     echo
1551     for ac_var in $ac_subst_vars
1552     do
1553       eval ac_val=\$$ac_var
1554       case $ac_val in
1555       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1556       esac
1557       echo "$ac_var='\''$ac_val'\''"
1558     done | sort
1559     echo
1560
1561     if test -n "$ac_subst_files"; then
1562       cat <<\_ASBOX
1563 ## ------------------- ##
1564 ## File substitutions. ##
1565 ## ------------------- ##
1566 _ASBOX
1567       echo
1568       for ac_var in $ac_subst_files
1569       do
1570         eval ac_val=\$$ac_var
1571         case $ac_val in
1572         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1573         esac
1574         echo "$ac_var='\''$ac_val'\''"
1575       done | sort
1576       echo
1577     fi
1578
1579     if test -s confdefs.h; then
1580       cat <<\_ASBOX
1581 ## ----------- ##
1582 ## confdefs.h. ##
1583 ## ----------- ##
1584 _ASBOX
1585       echo
1586       cat confdefs.h
1587       echo
1588     fi
1589     test "$ac_signal" != 0 &&
1590       echo "$as_me: caught signal $ac_signal"
1591     echo "$as_me: exit $exit_status"
1592   } >&5
1593   rm -f core *.core core.conftest.* &&
1594     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1595     exit $exit_status
1596 ' 0
1597 for ac_signal in 1 2 13 15; do
1598   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1599 done
1600 ac_signal=0
1601
1602 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1603 rm -f -r conftest* confdefs.h
1604
1605 # Predefined preprocessor variables.
1606
1607 cat >>confdefs.h <<_ACEOF
1608 #define PACKAGE_NAME "$PACKAGE_NAME"
1609 _ACEOF
1610
1611
1612 cat >>confdefs.h <<_ACEOF
1613 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1614 _ACEOF
1615
1616
1617 cat >>confdefs.h <<_ACEOF
1618 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1619 _ACEOF
1620
1621
1622 cat >>confdefs.h <<_ACEOF
1623 #define PACKAGE_STRING "$PACKAGE_STRING"
1624 _ACEOF
1625
1626
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1629 _ACEOF
1630
1631
1632 # Let the site file select an alternate cache file if it wants to.
1633 # Prefer explicitly selected file to automatically selected ones.
1634 if test -n "$CONFIG_SITE"; then
1635   set x "$CONFIG_SITE"
1636 elif test "x$prefix" != xNONE; then
1637   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1638 else
1639   set x "$ac_default_prefix/share/config.site" \
1640         "$ac_default_prefix/etc/config.site"
1641 fi
1642 shift
1643 for ac_site_file
1644 do
1645   if test -r "$ac_site_file"; then
1646     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1647 echo "$as_me: loading site script $ac_site_file" >&6;}
1648     sed 's/^/| /' "$ac_site_file" >&5
1649     . "$ac_site_file"
1650   fi
1651 done
1652
1653 if test -r "$cache_file"; then
1654   # Some versions of bash will fail to source /dev/null (special
1655   # files actually), so we avoid doing that.
1656   if test -f "$cache_file"; then
1657     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1658 echo "$as_me: loading cache $cache_file" >&6;}
1659     case $cache_file in
1660       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1661       *)                      . "./$cache_file";;
1662     esac
1663   fi
1664 else
1665   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1666 echo "$as_me: creating cache $cache_file" >&6;}
1667   >$cache_file
1668 fi
1669
1670 # Check that the precious variables saved in the cache have kept the same
1671 # value.
1672 ac_cache_corrupted=false
1673 for ac_var in $ac_precious_vars; do
1674   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1675   eval ac_new_set=\$ac_env_${ac_var}_set
1676   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1677   eval ac_new_val=\$ac_env_${ac_var}_value
1678   case $ac_old_set,$ac_new_set in
1679     set,)
1680       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1681 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1682       ac_cache_corrupted=: ;;
1683     ,set)
1684       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1685 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1686       ac_cache_corrupted=: ;;
1687     ,);;
1688     *)
1689       if test "x$ac_old_val" != "x$ac_new_val"; then
1690         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1691 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1692         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1693 echo "$as_me:   former value:  $ac_old_val" >&2;}
1694         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1695 echo "$as_me:   current value: $ac_new_val" >&2;}
1696         ac_cache_corrupted=:
1697       fi;;
1698   esac
1699   # Pass precious variables to config.status.
1700   if test "$ac_new_set" = set; then
1701     case $ac_new_val in
1702     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1703     *) ac_arg=$ac_var=$ac_new_val ;;
1704     esac
1705     case " $ac_configure_args " in
1706       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1707       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1708     esac
1709   fi
1710 done
1711 if $ac_cache_corrupted; then
1712   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1713 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1714   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1715 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1716    { (exit 1); exit 1; }; }
1717 fi
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743 ac_ext=c
1744 ac_cpp='$CPP $CPPFLAGS'
1745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1748
1749
1750 ac_aux_dir=
1751 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1752   if test -f "$ac_dir/install-sh"; then
1753     ac_aux_dir=$ac_dir
1754     ac_install_sh="$ac_aux_dir/install-sh -c"
1755     break
1756   elif test -f "$ac_dir/install.sh"; then
1757     ac_aux_dir=$ac_dir
1758     ac_install_sh="$ac_aux_dir/install.sh -c"
1759     break
1760   elif test -f "$ac_dir/shtool"; then
1761     ac_aux_dir=$ac_dir
1762     ac_install_sh="$ac_aux_dir/shtool install -c"
1763     break
1764   fi
1765 done
1766 if test -z "$ac_aux_dir"; then
1767   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1768 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1769    { (exit 1); exit 1; }; }
1770 fi
1771
1772 # These three variables are undocumented and unsupported,
1773 # and are intended to be withdrawn in a future Autoconf release.
1774 # They can cause serious problems if a builder's source tree is in a directory
1775 # whose full name contains unusual characters.
1776 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1777 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1778 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1779
1780
1781 # Make sure we can run config.sub.
1782 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1783   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1784 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1785    { (exit 1); exit 1; }; }
1786
1787 { echo "$as_me:$LINENO: checking build system type" >&5
1788 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1789 if test "${ac_cv_build+set}" = set; then
1790   echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792   ac_build_alias=$build_alias
1793 test "x$ac_build_alias" = x &&
1794   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1795 test "x$ac_build_alias" = x &&
1796   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1797 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1798    { (exit 1); exit 1; }; }
1799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1800   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1801 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1802    { (exit 1); exit 1; }; }
1803
1804 fi
1805 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1806 echo "${ECHO_T}$ac_cv_build" >&6; }
1807 case $ac_cv_build in
1808 *-*-*) ;;
1809 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1810 echo "$as_me: error: invalid value of canonical build" >&2;}
1811    { (exit 1); exit 1; }; };;
1812 esac
1813 build=$ac_cv_build
1814 ac_save_IFS=$IFS; IFS='-'
1815 set x $ac_cv_build
1816 shift
1817 build_cpu=$1
1818 build_vendor=$2
1819 shift; shift
1820 # Remember, the first character of IFS is used to create $*,
1821 # except with old shells:
1822 build_os=$*
1823 IFS=$ac_save_IFS
1824 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1825
1826
1827 { echo "$as_me:$LINENO: checking host system type" >&5
1828 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1829 if test "${ac_cv_host+set}" = set; then
1830   echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832   if test "x$host_alias" = x; then
1833   ac_cv_host=$ac_cv_build
1834 else
1835   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1836     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1837 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1838    { (exit 1); exit 1; }; }
1839 fi
1840
1841 fi
1842 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1843 echo "${ECHO_T}$ac_cv_host" >&6; }
1844 case $ac_cv_host in
1845 *-*-*) ;;
1846 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1847 echo "$as_me: error: invalid value of canonical host" >&2;}
1848    { (exit 1); exit 1; }; };;
1849 esac
1850 host=$ac_cv_host
1851 ac_save_IFS=$IFS; IFS='-'
1852 set x $ac_cv_host
1853 shift
1854 host_cpu=$1
1855 host_vendor=$2
1856 shift; shift
1857 # Remember, the first character of IFS is used to create $*,
1858 # except with old shells:
1859 host_os=$*
1860 IFS=$ac_save_IFS
1861 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1862
1863
1864 { echo "$as_me:$LINENO: checking target system type" >&5
1865 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1866 if test "${ac_cv_target+set}" = set; then
1867   echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869   if test "x$target_alias" = x; then
1870   ac_cv_target=$ac_cv_host
1871 else
1872   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1873     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1874 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1875    { (exit 1); exit 1; }; }
1876 fi
1877
1878 fi
1879 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1880 echo "${ECHO_T}$ac_cv_target" >&6; }
1881 case $ac_cv_target in
1882 *-*-*) ;;
1883 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1884 echo "$as_me: error: invalid value of canonical target" >&2;}
1885    { (exit 1); exit 1; }; };;
1886 esac
1887 target=$ac_cv_target
1888 ac_save_IFS=$IFS; IFS='-'
1889 set x $ac_cv_target
1890 shift
1891 target_cpu=$1
1892 target_vendor=$2
1893 shift; shift
1894 # Remember, the first character of IFS is used to create $*,
1895 # except with old shells:
1896 target_os=$*
1897 IFS=$ac_save_IFS
1898 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1899
1900
1901 # The aliases save the names the user supplied, while $host etc.
1902 # will get canonicalized.
1903 test -n "$target_alias" &&
1904   test "$program_prefix$program_suffix$program_transform_name" = \
1905     NONENONEs,x,x, &&
1906   program_prefix=${target_alias}-
1907
1908 am__api_version="1.9"
1909 # Find a good install program.  We prefer a C program (faster),
1910 # so one script is as good as another.  But avoid the broken or
1911 # incompatible versions:
1912 # SysV /etc/install, /usr/sbin/install
1913 # SunOS /usr/etc/install
1914 # IRIX /sbin/install
1915 # AIX /bin/install
1916 # AmigaOS /C/install, which installs bootblocks on floppy discs
1917 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1920 # OS/2's system install, which has a completely different semantic
1921 # ./install, which can be erroneously created by make from ./install.sh.
1922 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1923 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1924 if test -z "$INSTALL"; then
1925 if test "${ac_cv_path_install+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 for as_dir in $PATH
1930 do
1931   IFS=$as_save_IFS
1932   test -z "$as_dir" && as_dir=.
1933   # Account for people who put trailing slashes in PATH elements.
1934 case $as_dir/ in
1935   ./ | .// | /cC/* | \
1936   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1937   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1938   /usr/ucb/* ) ;;
1939   *)
1940     # OSF1 and SCO ODT 3.0 have their own names for install.
1941     # Don't use installbsd from OSF since it installs stuff as root
1942     # by default.
1943     for ac_prog in ginstall scoinst install; do
1944       for ac_exec_ext in '' $ac_executable_extensions; do
1945         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1946           if test $ac_prog = install &&
1947             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1948             # AIX install.  It has an incompatible calling convention.
1949             :
1950           elif test $ac_prog = install &&
1951             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1952             # program-specific install script used by HP pwplus--don't use.
1953             :
1954           else
1955             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1956             break 3
1957           fi
1958         fi
1959       done
1960     done
1961     ;;
1962 esac
1963 done
1964 IFS=$as_save_IFS
1965
1966
1967 fi
1968   if test "${ac_cv_path_install+set}" = set; then
1969     INSTALL=$ac_cv_path_install
1970   else
1971     # As a last resort, use the slow shell script.  Don't cache a
1972     # value for INSTALL within a source directory, because that will
1973     # break other packages using the cache if that directory is
1974     # removed, or if the value is a relative name.
1975     INSTALL=$ac_install_sh
1976   fi
1977 fi
1978 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1979 echo "${ECHO_T}$INSTALL" >&6; }
1980
1981 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1982 # It thinks the first close brace ends the variable substitution.
1983 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1984
1985 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1986
1987 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1988
1989 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1990 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1991 # Just in case
1992 sleep 1
1993 echo timestamp > conftest.file
1994 # Do `set' in a subshell so we don't clobber the current shell's
1995 # arguments.  Must try -L first in case configure is actually a
1996 # symlink; some systems play weird games with the mod time of symlinks
1997 # (eg FreeBSD returns the mod time of the symlink's containing
1998 # directory).
1999 if (
2000    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2001    if test "$*" = "X"; then
2002       # -L didn't work.
2003       set X `ls -t $srcdir/configure conftest.file`
2004    fi
2005    rm -f conftest.file
2006    if test "$*" != "X $srcdir/configure conftest.file" \
2007       && test "$*" != "X conftest.file $srcdir/configure"; then
2008
2009       # If neither matched, then we have a broken ls.  This can happen
2010       # if, for instance, CONFIG_SHELL is bash and it inherits a
2011       # broken ls alias from the environment.  This has actually
2012       # happened.  Such a system could not be considered "sane".
2013       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2014 alias in your environment" >&5
2015 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2016 alias in your environment" >&2;}
2017    { (exit 1); exit 1; }; }
2018    fi
2019
2020    test "$2" = conftest.file
2021    )
2022 then
2023    # Ok.
2024    :
2025 else
2026    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2027 Check your system clock" >&5
2028 echo "$as_me: error: newly created file is older than distributed files!
2029 Check your system clock" >&2;}
2030    { (exit 1); exit 1; }; }
2031 fi
2032 { echo "$as_me:$LINENO: result: yes" >&5
2033 echo "${ECHO_T}yes" >&6; }
2034 test "$program_prefix" != NONE &&
2035   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2036 # Use a double $ so make ignores it.
2037 test "$program_suffix" != NONE &&
2038   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2039 # Double any \ or $.  echo might interpret backslashes.
2040 # By default was `s,x,x', remove it if useless.
2041 cat <<\_ACEOF >conftest.sed
2042 s/[\\$]/&&/g;s/;s,x,x,$//
2043 _ACEOF
2044 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2045 rm -f conftest.sed
2046
2047 # expand $ac_aux_dir to an absolute path
2048 am_aux_dir=`cd $ac_aux_dir && pwd`
2049
2050 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2051 # Use eval to expand $SHELL
2052 if eval "$MISSING --run true"; then
2053   am_missing_run="$MISSING --run "
2054 else
2055   am_missing_run=
2056   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2057 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2058 fi
2059
2060 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2061   # We used to keeping the `.' as first argument, in order to
2062   # allow $(mkdir_p) to be used without argument.  As in
2063   #   $(mkdir_p) $(somedir)
2064   # where $(somedir) is conditionally defined.  However this is wrong
2065   # for two reasons:
2066   #  1. if the package is installed by a user who cannot write `.'
2067   #     make install will fail,
2068   #  2. the above comment should most certainly read
2069   #     $(mkdir_p) $(DESTDIR)$(somedir)
2070   #     so it does not work when $(somedir) is undefined and
2071   #     $(DESTDIR) is not.
2072   #  To support the latter case, we have to write
2073   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2074   #  so the `.' trick is pointless.
2075   mkdir_p='mkdir -p --'
2076 else
2077   # On NextStep and OpenStep, the `mkdir' command does not
2078   # recognize any option.  It will interpret all options as
2079   # directories to create, and then abort because `.' already
2080   # exists.
2081   for d in ./-p ./--version;
2082   do
2083     test -d $d && rmdir $d
2084   done
2085   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2086   if test -f "$ac_aux_dir/mkinstalldirs"; then
2087     mkdir_p='$(mkinstalldirs)'
2088   else
2089     mkdir_p='$(install_sh) -d'
2090   fi
2091 fi
2092
2093 for ac_prog in gawk mawk nawk awk
2094 do
2095   # Extract the first word of "$ac_prog", so it can be a program name with args.
2096 set dummy $ac_prog; ac_word=$2
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099 if test "${ac_cv_prog_AWK+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   if test -n "$AWK"; then
2103   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   for ac_exec_ext in '' $ac_executable_extensions; do
2111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2112     ac_cv_prog_AWK="$ac_prog"
2113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114     break 2
2115   fi
2116 done
2117 done
2118 IFS=$as_save_IFS
2119
2120 fi
2121 fi
2122 AWK=$ac_cv_prog_AWK
2123 if test -n "$AWK"; then
2124   { echo "$as_me:$LINENO: result: $AWK" >&5
2125 echo "${ECHO_T}$AWK" >&6; }
2126 else
2127   { echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6; }
2129 fi
2130
2131
2132   test -n "$AWK" && break
2133 done
2134
2135 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2136 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2137 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2138 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   cat >conftest.make <<\_ACEOF
2142 SHELL = /bin/sh
2143 all:
2144         @echo '@@@%%%=$(MAKE)=@@@%%%'
2145 _ACEOF
2146 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2147 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2148   *@@@%%%=?*=@@@%%%*)
2149     eval ac_cv_prog_make_${ac_make}_set=yes;;
2150   *)
2151     eval ac_cv_prog_make_${ac_make}_set=no;;
2152 esac
2153 rm -f conftest.make
2154 fi
2155 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2156   { echo "$as_me:$LINENO: result: yes" >&5
2157 echo "${ECHO_T}yes" >&6; }
2158   SET_MAKE=
2159 else
2160   { echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6; }
2162   SET_MAKE="MAKE=${MAKE-make}"
2163 fi
2164
2165 rm -rf .tst 2>/dev/null
2166 mkdir .tst 2>/dev/null
2167 if test -d .tst; then
2168   am__leading_dot=.
2169 else
2170   am__leading_dot=_
2171 fi
2172 rmdir .tst 2>/dev/null
2173
2174 # test to see if srcdir already configured
2175 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2176    test -f $srcdir/config.status; then
2177   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2178 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2179    { (exit 1); exit 1; }; }
2180 fi
2181
2182 # test whether we have cygpath
2183 if test -z "$CYGPATH_W"; then
2184   if (cygpath --version) >/dev/null 2>/dev/null; then
2185     CYGPATH_W='cygpath -w'
2186   else
2187     CYGPATH_W=echo
2188   fi
2189 fi
2190
2191
2192 # Define the identity of the package.
2193  PACKAGE='libatomic_ops'
2194  VERSION='1.2'
2195
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE "$PACKAGE"
2199 _ACEOF
2200
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define VERSION "$VERSION"
2204 _ACEOF
2205
2206 # Some tools Automake needs.
2207
2208 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2209
2210
2211 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2212
2213
2214 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2215
2216
2217 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2218
2219
2220 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2221
2222 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2223
2224 # Installed binaries are usually stripped using `strip' when the user
2225 # run `make install-strip'.  However `strip' might not be the right
2226 # tool to use in cross-compilation environments, therefore Automake
2227 # will honor the `STRIP' environment variable to overrule this program.
2228 if test "$cross_compiling" != no; then
2229   if test -n "$ac_tool_prefix"; then
2230   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2231 set dummy ${ac_tool_prefix}strip; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_STRIP+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   if test -n "$STRIP"; then
2238   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2253 IFS=$as_save_IFS
2254
2255 fi
2256 fi
2257 STRIP=$ac_cv_prog_STRIP
2258 if test -n "$STRIP"; then
2259   { echo "$as_me:$LINENO: result: $STRIP" >&5
2260 echo "${ECHO_T}$STRIP" >&6; }
2261 else
2262   { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2264 fi
2265
2266
2267 fi
2268 if test -z "$ac_cv_prog_STRIP"; then
2269   ac_ct_STRIP=$STRIP
2270   # Extract the first word of "strip", so it can be a program name with args.
2271 set dummy strip; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   if test -n "$ac_ct_STRIP"; then
2278   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283   IFS=$as_save_IFS
2284   test -z "$as_dir" && as_dir=.
2285   for ac_exec_ext in '' $ac_executable_extensions; do
2286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287     ac_cv_prog_ac_ct_STRIP="strip"
2288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289     break 2
2290   fi
2291 done
2292 done
2293 IFS=$as_save_IFS
2294
2295 fi
2296 fi
2297 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2298 if test -n "$ac_ct_STRIP"; then
2299   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2300 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2301 else
2302   { echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6; }
2304 fi
2305
2306   if test "x$ac_ct_STRIP" = x; then
2307     STRIP=":"
2308   else
2309     case $cross_compiling:$ac_tool_warned in
2310 yes:)
2311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2312 whose name does not start with the host triplet.  If you think this
2313 configuration is useful to you, please write to autoconf@gnu.org." >&5
2314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet.  If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2317 ac_tool_warned=yes ;;
2318 esac
2319     STRIP=$ac_ct_STRIP
2320   fi
2321 else
2322   STRIP="$ac_cv_prog_STRIP"
2323 fi
2324
2325 fi
2326 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2327
2328 # We need awk for the "check" target.  The system "awk" is bad on
2329 # some platforms.
2330 # Always define AMTAR for backward compatibility.
2331
2332 AMTAR=${AMTAR-"${am_missing_run}tar"}
2333
2334 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2335
2336
2337
2338
2339
2340 if test -n "$ac_tool_prefix"; then
2341   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_RANLIB+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   if test -n "$RANLIB"; then
2349   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354   IFS=$as_save_IFS
2355   test -z "$as_dir" && as_dir=.
2356   for ac_exec_ext in '' $ac_executable_extensions; do
2357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360     break 2
2361   fi
2362 done
2363 done
2364 IFS=$as_save_IFS
2365
2366 fi
2367 fi
2368 RANLIB=$ac_cv_prog_RANLIB
2369 if test -n "$RANLIB"; then
2370   { echo "$as_me:$LINENO: result: $RANLIB" >&5
2371 echo "${ECHO_T}$RANLIB" >&6; }
2372 else
2373   { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2375 fi
2376
2377
2378 fi
2379 if test -z "$ac_cv_prog_RANLIB"; then
2380   ac_ct_RANLIB=$RANLIB
2381   # Extract the first word of "ranlib", so it can be a program name with args.
2382 set dummy ranlib; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   if test -n "$ac_ct_RANLIB"; then
2389   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396   for ac_exec_ext in '' $ac_executable_extensions; do
2397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398     ac_cv_prog_ac_ct_RANLIB="ranlib"
2399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400     break 2
2401   fi
2402 done
2403 done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2409 if test -n "$ac_ct_RANLIB"; then
2410   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2411 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2412 else
2413   { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2415 fi
2416
2417   if test "x$ac_ct_RANLIB" = x; then
2418     RANLIB=":"
2419   else
2420     case $cross_compiling:$ac_tool_warned in
2421 yes:)
2422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet.  If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&5
2425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet.  If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2428 ac_tool_warned=yes ;;
2429 esac
2430     RANLIB=$ac_ct_RANLIB
2431   fi
2432 else
2433   RANLIB="$ac_cv_prog_RANLIB"
2434 fi
2435
2436
2437 ac_config_headers="$ac_config_headers src/config.h"
2438
2439
2440 # Checks for programs.
2441 ac_ext=c
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446 if test -n "$ac_tool_prefix"; then
2447   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2448 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2451 if test "${ac_cv_prog_CC+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   if test -n "$CC"; then
2455   ac_cv_prog_CC="$CC" # Let the user override the test.
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460   IFS=$as_save_IFS
2461   test -z "$as_dir" && as_dir=.
2462   for ac_exec_ext in '' $ac_executable_extensions; do
2463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466     break 2
2467   fi
2468 done
2469 done
2470 IFS=$as_save_IFS
2471
2472 fi
2473 fi
2474 CC=$ac_cv_prog_CC
2475 if test -n "$CC"; then
2476   { echo "$as_me:$LINENO: result: $CC" >&5
2477 echo "${ECHO_T}$CC" >&6; }
2478 else
2479   { echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6; }
2481 fi
2482
2483
2484 fi
2485 if test -z "$ac_cv_prog_CC"; then
2486   ac_ct_CC=$CC
2487   # Extract the first word of "gcc", so it can be a program name with args.
2488 set dummy gcc; ac_word=$2
2489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2491 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2492   echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494   if test -n "$ac_ct_CC"; then
2495   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500   IFS=$as_save_IFS
2501   test -z "$as_dir" && as_dir=.
2502   for ac_exec_ext in '' $ac_executable_extensions; do
2503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504     ac_cv_prog_ac_ct_CC="gcc"
2505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506     break 2
2507   fi
2508 done
2509 done
2510 IFS=$as_save_IFS
2511
2512 fi
2513 fi
2514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2515 if test -n "$ac_ct_CC"; then
2516   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2517 echo "${ECHO_T}$ac_ct_CC" >&6; }
2518 else
2519   { echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6; }
2521 fi
2522
2523   if test "x$ac_ct_CC" = x; then
2524     CC=""
2525   else
2526     case $cross_compiling:$ac_tool_warned in
2527 yes:)
2528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2529 whose name does not start with the host triplet.  If you think this
2530 configuration is useful to you, please write to autoconf@gnu.org." >&5
2531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2532 whose name does not start with the host triplet.  If you think this
2533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2534 ac_tool_warned=yes ;;
2535 esac
2536     CC=$ac_ct_CC
2537   fi
2538 else
2539   CC="$ac_cv_prog_CC"
2540 fi
2541
2542 if test -z "$CC"; then
2543           if test -n "$ac_tool_prefix"; then
2544     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}cc; ac_word=$2
2546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2548 if test "${ac_cv_prog_CC+set}" = set; then
2549   echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551   if test -n "$CC"; then
2552   ac_cv_prog_CC="$CC" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557   IFS=$as_save_IFS
2558   test -z "$as_dir" && as_dir=.
2559   for ac_exec_ext in '' $ac_executable_extensions; do
2560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561     ac_cv_prog_CC="${ac_tool_prefix}cc"
2562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563     break 2
2564   fi
2565 done
2566 done
2567 IFS=$as_save_IFS
2568
2569 fi
2570 fi
2571 CC=$ac_cv_prog_CC
2572 if test -n "$CC"; then
2573   { echo "$as_me:$LINENO: result: $CC" >&5
2574 echo "${ECHO_T}$CC" >&6; }
2575 else
2576   { echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6; }
2578 fi
2579
2580
2581   fi
2582 fi
2583 if test -z "$CC"; then
2584   # Extract the first word of "cc", so it can be a program name with args.
2585 set dummy cc; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_CC+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   if test -n "$CC"; then
2592   ac_cv_prog_CC="$CC" # Let the user override the test.
2593 else
2594   ac_prog_rejected=no
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600   for ac_exec_ext in '' $ac_executable_extensions; do
2601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2603        ac_prog_rejected=yes
2604        continue
2605      fi
2606     ac_cv_prog_CC="cc"
2607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611 done
2612 IFS=$as_save_IFS
2613
2614 if test $ac_prog_rejected = yes; then
2615   # We found a bogon in the path, so make sure we never use it.
2616   set dummy $ac_cv_prog_CC
2617   shift
2618   if test $# != 0; then
2619     # We chose a different compiler from the bogus one.
2620     # However, it has the same basename, so the bogon will be chosen
2621     # first if we set CC to just the basename; use the full file name.
2622     shift
2623     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2624   fi
2625 fi
2626 fi
2627 fi
2628 CC=$ac_cv_prog_CC
2629 if test -n "$CC"; then
2630   { echo "$as_me:$LINENO: result: $CC" >&5
2631 echo "${ECHO_T}$CC" >&6; }
2632 else
2633   { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2635 fi
2636
2637
2638 fi
2639 if test -z "$CC"; then
2640   if test -n "$ac_tool_prefix"; then
2641   for ac_prog in cl.exe
2642   do
2643     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_CC+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   if test -n "$CC"; then
2651   ac_cv_prog_CC="$CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658   for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 CC=$ac_cv_prog_CC
2671 if test -n "$CC"; then
2672   { echo "$as_me:$LINENO: result: $CC" >&5
2673 echo "${ECHO_T}$CC" >&6; }
2674 else
2675   { echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6; }
2677 fi
2678
2679
2680     test -n "$CC" && break
2681   done
2682 fi
2683 if test -z "$CC"; then
2684   ac_ct_CC=$CC
2685   for ac_prog in cl.exe
2686 do
2687   # Extract the first word of "$ac_prog", so it can be a program name with args.
2688 set dummy $ac_prog; ac_word=$2
2689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2691 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2692   echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694   if test -n "$ac_ct_CC"; then
2695   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702   for ac_exec_ext in '' $ac_executable_extensions; do
2703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704     ac_cv_prog_ac_ct_CC="$ac_prog"
2705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706     break 2
2707   fi
2708 done
2709 done
2710 IFS=$as_save_IFS
2711
2712 fi
2713 fi
2714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2715 if test -n "$ac_ct_CC"; then
2716   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2717 echo "${ECHO_T}$ac_ct_CC" >&6; }
2718 else
2719   { echo "$as_me:$LINENO: result: no" >&5
2720 echo "${ECHO_T}no" >&6; }
2721 fi
2722
2723
2724   test -n "$ac_ct_CC" && break
2725 done
2726
2727   if test "x$ac_ct_CC" = x; then
2728     CC=""
2729   else
2730     case $cross_compiling:$ac_tool_warned in
2731 yes:)
2732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2733 whose name does not start with the host triplet.  If you think this
2734 configuration is useful to you, please write to autoconf@gnu.org." >&5
2735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2736 whose name does not start with the host triplet.  If you think this
2737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2738 ac_tool_warned=yes ;;
2739 esac
2740     CC=$ac_ct_CC
2741   fi
2742 fi
2743
2744 fi
2745
2746
2747 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2748 See \`config.log' for more details." >&5
2749 echo "$as_me: error: no acceptable C compiler found in \$PATH
2750 See \`config.log' for more details." >&2;}
2751    { (exit 1); exit 1; }; }
2752
2753 # Provide some information about the compiler.
2754 echo "$as_me:$LINENO: checking for C compiler version" >&5
2755 ac_compiler=`set X $ac_compile; echo $2`
2756 { (ac_try="$ac_compiler --version >&5"
2757 case "(($ac_try" in
2758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759   *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762   (eval "$ac_compiler --version >&5") 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }
2766 { (ac_try="$ac_compiler -v >&5"
2767 case "(($ac_try" in
2768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769   *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772   (eval "$ac_compiler -v >&5") 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }
2776 { (ac_try="$ac_compiler -V >&5"
2777 case "(($ac_try" in
2778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779   *) ac_try_echo=$ac_try;;
2780 esac
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782   (eval "$ac_compiler -V >&5") 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }
2786
2787 cat >conftest.$ac_ext <<_ACEOF
2788 /* confdefs.h.  */
2789 _ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h.  */
2793
2794 int
2795 main ()
2796 {
2797
2798   ;
2799   return 0;
2800 }
2801 _ACEOF
2802 ac_clean_files_save=$ac_clean_files
2803 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2804 # Try to create an executable without -o first, disregard a.out.
2805 # It will help us diagnose broken compilers, and finding out an intuition
2806 # of exeext.
2807 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2808 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2809 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2810 #
2811 # List of possible output files, starting from the most likely.
2812 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2813 # only as a last resort.  b.out is created by i960 compilers.
2814 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2815 #
2816 # The IRIX 6 linker writes into existing files which may not be
2817 # executable, retaining their permissions.  Remove them first so a
2818 # subsequent execution test works.
2819 ac_rmfiles=
2820 for ac_file in $ac_files
2821 do
2822   case $ac_file in
2823     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2824     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2825   esac
2826 done
2827 rm -f $ac_rmfiles
2828
2829 if { (ac_try="$ac_link_default"
2830 case "(($ac_try" in
2831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832   *) ac_try_echo=$ac_try;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835   (eval "$ac_link_default") 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; then
2839   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2840 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2841 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2842 # so that the user can short-circuit this test for compilers unknown to
2843 # Autoconf.
2844 for ac_file in $ac_files ''
2845 do
2846   test -f "$ac_file" || continue
2847   case $ac_file in
2848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2849         ;;
2850     [ab].out )
2851         # We found the default executable, but exeext='' is most
2852         # certainly right.
2853         break;;
2854     *.* )
2855         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2856         then :; else
2857            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2858         fi
2859         # We set ac_cv_exeext here because the later test for it is not
2860         # safe: cross compilers may not add the suffix if given an `-o'
2861         # argument, so we may need to know it at that point already.
2862         # Even if this section looks crufty: it has the advantage of
2863         # actually working.
2864         break;;
2865     * )
2866         break;;
2867   esac
2868 done
2869 test "$ac_cv_exeext" = no && ac_cv_exeext=
2870
2871 else
2872   ac_file=''
2873 fi
2874
2875 { echo "$as_me:$LINENO: result: $ac_file" >&5
2876 echo "${ECHO_T}$ac_file" >&6; }
2877 if test -z "$ac_file"; then
2878   echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2880
2881 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2882 See \`config.log' for more details." >&5
2883 echo "$as_me: error: C compiler cannot create executables
2884 See \`config.log' for more details." >&2;}
2885    { (exit 77); exit 77; }; }
2886 fi
2887
2888 ac_exeext=$ac_cv_exeext
2889
2890 # Check that the compiler produces executables we can run.  If not, either
2891 # the compiler is broken, or we cross compile.
2892 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2893 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2894 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2895 # If not cross compiling, check that we can run a simple program.
2896 if test "$cross_compiling" != yes; then
2897   if { ac_try='./$ac_file'
2898   { (case "(($ac_try" in
2899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900   *) ac_try_echo=$ac_try;;
2901 esac
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903   (eval "$ac_try") 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }; }; then
2907     cross_compiling=no
2908   else
2909     if test "$cross_compiling" = maybe; then
2910         cross_compiling=yes
2911     else
2912         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2913 If you meant to cross compile, use \`--host'.
2914 See \`config.log' for more details." >&5
2915 echo "$as_me: error: cannot run C compiled programs.
2916 If you meant to cross compile, use \`--host'.
2917 See \`config.log' for more details." >&2;}
2918    { (exit 1); exit 1; }; }
2919     fi
2920   fi
2921 fi
2922 { echo "$as_me:$LINENO: result: yes" >&5
2923 echo "${ECHO_T}yes" >&6; }
2924
2925 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2926 ac_clean_files=$ac_clean_files_save
2927 # Check that the compiler produces executables we can run.  If not, either
2928 # the compiler is broken, or we cross compile.
2929 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2930 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2931 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2932 echo "${ECHO_T}$cross_compiling" >&6; }
2933
2934 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2935 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2936 if { (ac_try="$ac_link"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_link") 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; then
2946   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2947 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2948 # work properly (i.e., refer to `conftest.exe'), while it won't with
2949 # `rm'.
2950 for ac_file in conftest.exe conftest conftest.*; do
2951   test -f "$ac_file" || continue
2952   case $ac_file in
2953     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2954     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2955           break;;
2956     * ) break;;
2957   esac
2958 done
2959 else
2960   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2961 See \`config.log' for more details." >&5
2962 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2963 See \`config.log' for more details." >&2;}
2964    { (exit 1); exit 1; }; }
2965 fi
2966
2967 rm -f conftest$ac_cv_exeext
2968 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2969 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2970
2971 rm -f conftest.$ac_ext
2972 EXEEXT=$ac_cv_exeext
2973 ac_exeext=$EXEEXT
2974 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2975 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2976 if test "${ac_cv_objext+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985
2986 int
2987 main ()
2988 {
2989
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.o conftest.obj
2995 if { (ac_try="$ac_compile"
2996 case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_compile") 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }; then
3005   for ac_file in conftest.o conftest.obj conftest.*; do
3006   test -f "$ac_file" || continue;
3007   case $ac_file in
3008     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3009     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3010        break;;
3011   esac
3012 done
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3018 See \`config.log' for more details." >&5
3019 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3020 See \`config.log' for more details." >&2;}
3021    { (exit 1); exit 1; }; }
3022 fi
3023
3024 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3025 fi
3026 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3027 echo "${ECHO_T}$ac_cv_objext" >&6; }
3028 OBJEXT=$ac_cv_objext
3029 ac_objext=$OBJEXT
3030 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3031 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3032 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3033   echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035   cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h.  */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h.  */
3041
3042 int
3043 main ()
3044 {
3045 #ifndef __GNUC__
3046        choke me
3047 #endif
3048
3049   ;
3050   return 0;
3051 }
3052 _ACEOF
3053 rm -f conftest.$ac_objext
3054 if { (ac_try="$ac_compile"
3055 case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060   (eval "$ac_compile") 2>conftest.er1
3061   ac_status=$?
3062   grep -v '^ *+' conftest.er1 >conftest.err
3063   rm -f conftest.er1
3064   cat conftest.err >&5
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); } && {
3067          test -z "$ac_c_werror_flag" ||
3068          test ! -s conftest.err
3069        } && test -s conftest.$ac_objext; then
3070   ac_compiler_gnu=yes
3071 else
3072   echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075         ac_compiler_gnu=no
3076 fi
3077
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3080
3081 fi
3082 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3083 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3084 GCC=`test $ac_compiler_gnu = yes && echo yes`
3085 ac_test_CFLAGS=${CFLAGS+set}
3086 ac_save_CFLAGS=$CFLAGS
3087 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3088 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3089 if test "${ac_cv_prog_cc_g+set}" = set; then
3090   echo $ECHO_N "(cached) $ECHO_C" >&6
3091 else
3092   ac_save_c_werror_flag=$ac_c_werror_flag
3093    ac_c_werror_flag=yes
3094    ac_cv_prog_cc_g=no
3095    CFLAGS="-g"
3096    cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h.  */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h.  */
3102
3103 int
3104 main ()
3105 {
3106
3107   ;
3108   return 0;
3109 }
3110 _ACEOF
3111 rm -f conftest.$ac_objext
3112 if { (ac_try="$ac_compile"
3113 case "(($ac_try" in
3114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115   *) ac_try_echo=$ac_try;;
3116 esac
3117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3118   (eval "$ac_compile") 2>conftest.er1
3119   ac_status=$?
3120   grep -v '^ *+' conftest.er1 >conftest.err
3121   rm -f conftest.er1
3122   cat conftest.err >&5
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); } && {
3125          test -z "$ac_c_werror_flag" ||
3126          test ! -s conftest.err
3127        } && test -s conftest.$ac_objext; then
3128   ac_cv_prog_cc_g=yes
3129 else
3130   echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133         CFLAGS=""
3134       cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h.  */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h.  */
3140
3141 int
3142 main ()
3143 {
3144
3145   ;
3146   return 0;
3147 }
3148 _ACEOF
3149 rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_compile") 2>conftest.er1
3157   ac_status=$?
3158   grep -v '^ *+' conftest.er1 >conftest.err
3159   rm -f conftest.er1
3160   cat conftest.err >&5
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } && {
3163          test -z "$ac_c_werror_flag" ||
3164          test ! -s conftest.err
3165        } && test -s conftest.$ac_objext; then
3166   :
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171         ac_c_werror_flag=$ac_save_c_werror_flag
3172          CFLAGS="-g"
3173          cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179
3180 int
3181 main ()
3182 {
3183
3184   ;
3185   return 0;
3186 }
3187 _ACEOF
3188 rm -f conftest.$ac_objext
3189 if { (ac_try="$ac_compile"
3190 case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_compile") 2>conftest.er1
3196   ac_status=$?
3197   grep -v '^ *+' conftest.er1 >conftest.err
3198   rm -f conftest.er1
3199   cat conftest.err >&5
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); } && {
3202          test -z "$ac_c_werror_flag" ||
3203          test ! -s conftest.err
3204        } && test -s conftest.$ac_objext; then
3205   ac_cv_prog_cc_g=yes
3206 else
3207   echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210
3211 fi
3212
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 fi
3215
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 fi
3218
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220    ac_c_werror_flag=$ac_save_c_werror_flag
3221 fi
3222 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3223 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3224 if test "$ac_test_CFLAGS" = set; then
3225   CFLAGS=$ac_save_CFLAGS
3226 elif test $ac_cv_prog_cc_g = yes; then
3227   if test "$GCC" = yes; then
3228     CFLAGS="-g -O2"
3229   else
3230     CFLAGS="-g"
3231   fi
3232 else
3233   if test "$GCC" = yes; then
3234     CFLAGS="-O2"
3235   else
3236     CFLAGS=
3237   fi
3238 fi
3239 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3240 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3241 if test "${ac_cv_prog_cc_c89+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244   ac_cv_prog_cc_c89=no
3245 ac_save_CC=$CC
3246 cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h.  */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h.  */
3252 #include <stdarg.h>
3253 #include <stdio.h>
3254 #include <sys/types.h>
3255 #include <sys/stat.h>
3256 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3257 struct buf { int x; };
3258 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3259 static char *e (p, i)
3260      char **p;
3261      int i;
3262 {
3263   return p[i];
3264 }
3265 static char *f (char * (*g) (char **, int), char **p, ...)
3266 {
3267   char *s;
3268   va_list v;
3269   va_start (v,p);
3270   s = g (p, va_arg (v,int));
3271   va_end (v);
3272   return s;
3273 }
3274
3275 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3276    function prototypes and stuff, but not '\xHH' hex character constants.
3277    These don't provoke an error unfortunately, instead are silently treated
3278    as 'x'.  The following induces an error, until -std is added to get
3279    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3280    array size at least.  It's necessary to write '\x00'==0 to get something
3281    that's true only with -std.  */
3282 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3283
3284 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3285    inside strings and character constants.  */
3286 #define FOO(x) 'x'
3287 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3288
3289 int test (int i, double x);
3290 struct s1 {int (*f) (int a);};
3291 struct s2 {int (*f) (double a);};
3292 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3293 int argc;
3294 char **argv;
3295 int
3296 main ()
3297 {
3298 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3299   ;
3300   return 0;
3301 }
3302 _ACEOF
3303 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3304         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3305 do
3306   CC="$ac_save_CC $ac_arg"
3307   rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3309 case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314   (eval "$ac_compile") 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } && {
3321          test -z "$ac_c_werror_flag" ||
3322          test ! -s conftest.err
3323        } && test -s conftest.$ac_objext; then
3324   ac_cv_prog_cc_c89=$ac_arg
3325 else
3326   echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext
3333   test "x$ac_cv_prog_cc_c89" != "xno" && break
3334 done
3335 rm -f conftest.$ac_ext
3336 CC=$ac_save_CC
3337
3338 fi
3339 # AC_CACHE_VAL
3340 case "x$ac_cv_prog_cc_c89" in
3341   x)
3342     { echo "$as_me:$LINENO: result: none needed" >&5
3343 echo "${ECHO_T}none needed" >&6; } ;;
3344   xno)
3345     { echo "$as_me:$LINENO: result: unsupported" >&5
3346 echo "${ECHO_T}unsupported" >&6; } ;;
3347   *)
3348     CC="$CC $ac_cv_prog_cc_c89"
3349     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3350 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3351 esac
3352
3353
3354 ac_ext=c
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359 DEPDIR="${am__leading_dot}deps"
3360
3361 ac_config_commands="$ac_config_commands depfiles"
3362
3363
3364 am_make=${MAKE-make}
3365 cat > confinc << 'END'
3366 am__doit:
3367         @echo done
3368 .PHONY: am__doit
3369 END
3370 # If we don't find an include directive, just comment out the code.
3371 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3372 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3373 am__include="#"
3374 am__quote=
3375 _am_result=none
3376 # First try GNU make style include.
3377 echo "include confinc" > confmf
3378 # We grep out `Entering directory' and `Leaving directory'
3379 # messages which can occur if `w' ends up in MAKEFLAGS.
3380 # In particular we don't look at `^make:' because GNU make might
3381 # be invoked under some other name (usually "gmake"), in which
3382 # case it prints its new name instead of `make'.
3383 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3384    am__include=include
3385    am__quote=
3386    _am_result=GNU
3387 fi
3388 # Now try BSD make style include.
3389 if test "$am__include" = "#"; then
3390    echo '.include "confinc"' > confmf
3391    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3392       am__include=.include
3393       am__quote="\""
3394       _am_result=BSD
3395    fi
3396 fi
3397
3398
3399 { echo "$as_me:$LINENO: result: $_am_result" >&5
3400 echo "${ECHO_T}$_am_result" >&6; }
3401 rm -f confinc confmf
3402
3403 # Check whether --enable-dependency-tracking was given.
3404 if test "${enable_dependency_tracking+set}" = set; then
3405   enableval=$enable_dependency_tracking;
3406 fi
3407
3408 if test "x$enable_dependency_tracking" != xno; then
3409   am_depcomp="$ac_aux_dir/depcomp"
3410   AMDEPBACKSLASH='\'
3411 fi
3412
3413
3414 if test "x$enable_dependency_tracking" != xno; then
3415   AMDEP_TRUE=
3416   AMDEP_FALSE='#'
3417 else
3418   AMDEP_TRUE='#'
3419   AMDEP_FALSE=
3420 fi
3421
3422
3423
3424
3425 depcc="$CC"   am_compiler_list=
3426
3427 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3428 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3429 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3433   # We make a subdir and do the tests there.  Otherwise we can end up
3434   # making bogus files that we don't know about and never remove.  For
3435   # instance it was reported that on HP-UX the gcc test will end up
3436   # making a dummy file named `D' -- because `-MD' means `put the output
3437   # in D'.
3438   mkdir conftest.dir
3439   # Copy depcomp to subdir because otherwise we won't find it if we're
3440   # using a relative directory.
3441   cp "$am_depcomp" conftest.dir
3442   cd conftest.dir
3443   # We will build objects and dependencies in a subdirectory because
3444   # it helps to detect inapplicable dependency modes.  For instance
3445   # both Tru64's cc and ICC support -MD to output dependencies as a
3446   # side effect of compilation, but ICC will put the dependencies in
3447   # the current directory while Tru64 will put them in the object
3448   # directory.
3449   mkdir sub
3450
3451   am_cv_CC_dependencies_compiler_type=none
3452   if test "$am_compiler_list" = ""; then
3453      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3454   fi
3455   for depmode in $am_compiler_list; do
3456     # Setup a source with many dependencies, because some compilers
3457     # like to wrap large dependency lists on column 80 (with \), and
3458     # we should not choose a depcomp mode which is confused by this.
3459     #
3460     # We need to recreate these files for each test, as the compiler may
3461     # overwrite some of them when testing with obscure command lines.
3462     # This happens at least with the AIX C compiler.
3463     : > sub/conftest.c
3464     for i in 1 2 3 4 5 6; do
3465       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3466       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3467       # Solaris 8's {/usr,}/bin/sh.
3468       touch sub/conftst$i.h
3469     done
3470     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3471
3472     case $depmode in
3473     nosideeffect)
3474       # after this tag, mechanisms are not by side-effect, so they'll
3475       # only be used when explicitly requested
3476       if test "x$enable_dependency_tracking" = xyes; then
3477         continue
3478       else
3479         break
3480       fi
3481       ;;
3482     none) break ;;
3483     esac
3484     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3485     # mode.  It turns out that the SunPro C++ compiler does not properly
3486     # handle `-M -o', and we need to detect this.
3487     if depmode=$depmode \
3488        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3489        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3490        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3491          >/dev/null 2>conftest.err &&
3492        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3493        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3494        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3495       # icc doesn't choke on unknown options, it will just issue warnings
3496       # or remarks (even with -Werror).  So we grep stderr for any message
3497       # that says an option was ignored or not supported.
3498       # When given -MP, icc 7.0 and 7.1 complain thusly:
3499       #   icc: Command line warning: ignoring option '-M'; no argument required
3500       # The diagnosis changed in icc 8.0:
3501       #   icc: Command line remark: option '-MP' not supported
3502       if (grep 'ignoring option' conftest.err ||
3503           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3504         am_cv_CC_dependencies_compiler_type=$depmode
3505         break
3506       fi
3507     fi
3508   done
3509
3510   cd ..
3511   rm -rf conftest.dir
3512 else
3513   am_cv_CC_dependencies_compiler_type=none
3514 fi
3515
3516 fi
3517 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3518 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3519 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3520
3521
3522
3523 if
3524   test "x$enable_dependency_tracking" != xno \
3525   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3526   am__fastdepCC_TRUE=
3527   am__fastdepCC_FALSE='#'
3528 else
3529   am__fastdepCC_TRUE='#'
3530   am__fastdepCC_FALSE=
3531 fi
3532
3533
3534 # By default we simply use the C compiler to build assembly code.
3535
3536 test "${CCAS+set}" = set || CCAS=$CC
3537 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3538
3539
3540
3541
3542 # Checks for functions.
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3550 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3551 # On Suns, sometimes $CPP names a directory.
3552 if test -n "$CPP" && test -d "$CPP"; then
3553   CPP=
3554 fi
3555 if test -z "$CPP"; then
3556   if test "${ac_cv_prog_CPP+set}" = set; then
3557   echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559       # Double quotes because CPP needs to be expanded
3560     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3561     do
3562       ac_preproc_ok=false
3563 for ac_c_preproc_warn_flag in '' yes
3564 do
3565   # Use a header file that comes with gcc, so configuring glibc
3566   # with a fresh cross-compiler works.
3567   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568   # <limits.h> exists even on freestanding compilers.
3569   # On the NeXT, cc -E runs the code through the compiler's parser,
3570   # not just through cpp. "Syntax error" is here to catch this case.
3571   cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h.  */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h.  */
3577 #ifdef __STDC__
3578 # include <limits.h>
3579 #else
3580 # include <assert.h>
3581 #endif
3582                      Syntax error
3583 _ACEOF
3584 if { (ac_try="$ac_cpp conftest.$ac_ext"
3585 case "(($ac_try" in
3586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587   *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3591   ac_status=$?
3592   grep -v '^ *+' conftest.er1 >conftest.err
3593   rm -f conftest.er1
3594   cat conftest.err >&5
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); } >/dev/null && {
3597          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3598          test ! -s conftest.err
3599        }; then
3600   :
3601 else
3602   echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605   # Broken: fails on valid input.
3606 continue
3607 fi
3608
3609 rm -f conftest.err conftest.$ac_ext
3610
3611   # OK, works on sane cases.  Now check whether nonexistent headers
3612   # can be detected and how.
3613   cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h.  */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h.  */
3619 #include <ac_nonexistent.h>
3620 _ACEOF
3621 if { (ac_try="$ac_cpp conftest.$ac_ext"
3622 case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3628   ac_status=$?
3629   grep -v '^ *+' conftest.er1 >conftest.err
3630   rm -f conftest.er1
3631   cat conftest.err >&5
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); } >/dev/null && {
3634          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3635          test ! -s conftest.err
3636        }; then
3637   # Broken: success on invalid input.
3638 continue
3639 else
3640   echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643   # Passes both tests.
3644 ac_preproc_ok=:
3645 break
3646 fi
3647
3648 rm -f conftest.err conftest.$ac_ext
3649
3650 done
3651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652 rm -f conftest.err conftest.$ac_ext
3653 if $ac_preproc_ok; then
3654   break
3655 fi
3656
3657     done
3658     ac_cv_prog_CPP=$CPP
3659
3660 fi
3661   CPP=$ac_cv_prog_CPP
3662 else
3663   ac_cv_prog_CPP=$CPP
3664 fi
3665 { echo "$as_me:$LINENO: result: $CPP" >&5
3666 echo "${ECHO_T}$CPP" >&6; }
3667 ac_preproc_ok=false
3668 for ac_c_preproc_warn_flag in '' yes
3669 do
3670   # Use a header file that comes with gcc, so configuring glibc
3671   # with a fresh cross-compiler works.
3672   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3673   # <limits.h> exists even on freestanding compilers.
3674   # On the NeXT, cc -E runs the code through the compiler's parser,
3675   # not just through cpp. "Syntax error" is here to catch this case.
3676   cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h.  */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h.  */
3682 #ifdef __STDC__
3683 # include <limits.h>
3684 #else
3685 # include <assert.h>
3686 #endif
3687                      Syntax error
3688 _ACEOF
3689 if { (ac_try="$ac_cpp conftest.$ac_ext"
3690 case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3696   ac_status=$?
3697   grep -v '^ *+' conftest.er1 >conftest.err
3698   rm -f conftest.er1
3699   cat conftest.err >&5
3700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701   (exit $ac_status); } >/dev/null && {
3702          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3703          test ! -s conftest.err
3704        }; then
3705   :
3706 else
3707   echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710   # Broken: fails on valid input.
3711 continue
3712 fi
3713
3714 rm -f conftest.err conftest.$ac_ext
3715
3716   # OK, works on sane cases.  Now check whether nonexistent headers
3717   # can be detected and how.
3718   cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h.  */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h.  */
3724 #include <ac_nonexistent.h>
3725 _ACEOF
3726 if { (ac_try="$ac_cpp conftest.$ac_ext"
3727 case "(($ac_try" in
3728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729   *) ac_try_echo=$ac_try;;
3730 esac
3731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3733   ac_status=$?
3734   grep -v '^ *+' conftest.er1 >conftest.err
3735   rm -f conftest.er1
3736   cat conftest.err >&5
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); } >/dev/null && {
3739          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3740          test ! -s conftest.err
3741        }; then
3742   # Broken: success on invalid input.
3743 continue
3744 else
3745   echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748   # Passes both tests.
3749 ac_preproc_ok=:
3750 break
3751 fi
3752
3753 rm -f conftest.err conftest.$ac_ext
3754
3755 done
3756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3757 rm -f conftest.err conftest.$ac_ext
3758 if $ac_preproc_ok; then
3759   :
3760 else
3761   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3762 See \`config.log' for more details." >&5
3763 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3764 See \`config.log' for more details." >&2;}
3765    { (exit 1); exit 1; }; }
3766 fi
3767
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773
3774
3775 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3776 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3777 if test "${ac_cv_path_GREP+set}" = set; then
3778   echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780   # Extract the first word of "grep ggrep" to use in msg output
3781 if test -z "$GREP"; then
3782 set dummy grep ggrep; ac_prog_name=$2
3783 if test "${ac_cv_path_GREP+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   ac_path_GREP_found=false
3787 # Loop through the user's path and test for each of PROGNAME-LIST
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793   for ac_prog in grep ggrep; do
3794   for ac_exec_ext in '' $ac_executable_extensions; do
3795     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3796     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3797     # Check for GNU ac_path_GREP and select it if it is found.
3798   # Check for GNU $ac_path_GREP
3799 case `"$ac_path_GREP" --version 2>&1` in
3800 *GNU*)
3801   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3802 *)
3803   ac_count=0
3804   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3805   while :
3806   do
3807     cat "conftest.in" "conftest.in" >"conftest.tmp"
3808     mv "conftest.tmp" "conftest.in"
3809     cp "conftest.in" "conftest.nl"
3810     echo 'GREP' >> "conftest.nl"
3811     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3812     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3813     ac_count=`expr $ac_count + 1`
3814     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3815       # Best one so far, save it but keep looking for a better one
3816       ac_cv_path_GREP="$ac_path_GREP"
3817       ac_path_GREP_max=$ac_count
3818     fi
3819     # 10*(2^10) chars as input seems more than enough
3820     test $ac_count -gt 10 && break
3821   done
3822   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3823 esac
3824
3825
3826     $ac_path_GREP_found && break 3
3827   done
3828 done
3829
3830 done
3831 IFS=$as_save_IFS
3832
3833
3834 fi
3835
3836 GREP="$ac_cv_path_GREP"
3837 if test -z "$GREP"; then
3838   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3839 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3840    { (exit 1); exit 1; }; }
3841 fi
3842
3843 else
3844   ac_cv_path_GREP=$GREP
3845 fi
3846
3847
3848 fi
3849 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3850 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3851  GREP="$ac_cv_path_GREP"
3852
3853
3854 { echo "$as_me:$LINENO: checking for egrep" >&5
3855 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_EGREP+set}" = set; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3860    then ac_cv_path_EGREP="$GREP -E"
3861    else
3862      # Extract the first word of "egrep" to use in msg output
3863 if test -z "$EGREP"; then
3864 set dummy egrep; ac_prog_name=$2
3865 if test "${ac_cv_path_EGREP+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   ac_path_EGREP_found=false
3869 # Loop through the user's path and test for each of PROGNAME-LIST
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875   for ac_prog in egrep; do
3876   for ac_exec_ext in '' $ac_executable_extensions; do
3877     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3879     # Check for GNU ac_path_EGREP and select it if it is found.
3880   # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3882 *GNU*)
3883   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884 *)
3885   ac_count=0
3886   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3887   while :
3888   do
3889     cat "conftest.in" "conftest.in" >"conftest.tmp"
3890     mv "conftest.tmp" "conftest.in"
3891     cp "conftest.in" "conftest.nl"
3892     echo 'EGREP' >> "conftest.nl"
3893     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895     ac_count=`expr $ac_count + 1`
3896     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897       # Best one so far, save it but keep looking for a better one
3898       ac_cv_path_EGREP="$ac_path_EGREP"
3899       ac_path_EGREP_max=$ac_count
3900     fi
3901     # 10*(2^10) chars as input seems more than enough
3902     test $ac_count -gt 10 && break
3903   done
3904   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905 esac
3906
3907
3908     $ac_path_EGREP_found && break 3
3909   done
3910 done
3911
3912 done
3913 IFS=$as_save_IFS
3914
3915
3916 fi
3917
3918 EGREP="$ac_cv_path_EGREP"
3919 if test -z "$EGREP"; then
3920   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3921 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3922    { (exit 1); exit 1; }; }
3923 fi
3924
3925 else
3926   ac_cv_path_EGREP=$EGREP
3927 fi
3928
3929
3930    fi
3931 fi
3932 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3933 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3934  EGREP="$ac_cv_path_EGREP"
3935
3936
3937 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3938 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3939 if test "${ac_cv_header_stdc+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948 #include <stdlib.h>
3949 #include <stdarg.h>
3950 #include <string.h>
3951 #include <float.h>
3952
3953 int
3954 main ()
3955 {
3956
3957   ;
3958   return 0;
3959 }
3960 _ACEOF
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968   (eval "$ac_compile") 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } && {
3975          test -z "$ac_c_werror_flag" ||
3976          test ! -s conftest.err
3977        } && test -s conftest.$ac_objext; then
3978   ac_cv_header_stdc=yes
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983         ac_cv_header_stdc=no
3984 fi
3985
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987
3988 if test $ac_cv_header_stdc = yes; then
3989   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3990   cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h.  */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h.  */
3996 #include <string.h>
3997
3998 _ACEOF
3999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4000   $EGREP "memchr" >/dev/null 2>&1; then
4001   :
4002 else
4003   ac_cv_header_stdc=no
4004 fi
4005 rm -f conftest*
4006
4007 fi
4008
4009 if test $ac_cv_header_stdc = yes; then
4010   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4011   cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h.  */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h.  */
4017 #include <stdlib.h>
4018
4019 _ACEOF
4020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4021   $EGREP "free" >/dev/null 2>&1; then
4022   :
4023 else
4024   ac_cv_header_stdc=no
4025 fi
4026 rm -f conftest*
4027
4028 fi
4029
4030 if test $ac_cv_header_stdc = yes; then
4031   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4032   if test "$cross_compiling" = yes; then
4033   :
4034 else
4035   cat >conftest.$ac_ext <<_ACEOF
4036 /* confdefs.h.  */
4037 _ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h.  */
4041 #include <ctype.h>
4042 #include <stdlib.h>
4043 #if ((' ' & 0x0FF) == 0x020)
4044 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4045 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4046 #else
4047 # define ISLOWER(c) \
4048                    (('a' <= (c) && (c) <= 'i') \
4049                      || ('j' <= (c) && (c) <= 'r') \
4050                      || ('s' <= (c) && (c) <= 'z'))
4051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4052 #endif
4053
4054 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4055 int
4056 main ()
4057 {
4058   int i;
4059   for (i = 0; i < 256; i++)
4060     if (XOR (islower (i), ISLOWER (i))
4061         || toupper (i) != TOUPPER (i))
4062       return 2;
4063   return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest$ac_exeext
4067 if { (ac_try="$ac_link"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073   (eval "$ac_link") 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4077   { (case "(($ac_try" in
4078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079   *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082   (eval "$ac_try") 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; }; then
4086   :
4087 else
4088   echo "$as_me: program exited with status $ac_status" >&5
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 ( exit $ac_status )
4093 ac_cv_header_stdc=no
4094 fi
4095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4096 fi
4097
4098
4099 fi
4100 fi
4101 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4102 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4103 if test $ac_cv_header_stdc = yes; then
4104
4105 cat >>confdefs.h <<\_ACEOF
4106 #define STDC_HEADERS 1
4107 _ACEOF
4108
4109 fi
4110
4111 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4122                   inttypes.h stdint.h unistd.h
4123 do
4124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 $ac_includes_default
4137
4138 #include <$ac_header>
4139 _ACEOF
4140 rm -f conftest.$ac_objext
4141 if { (ac_try="$ac_compile"
4142 case "(($ac_try" in
4143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144   *) ac_try_echo=$ac_try;;
4145 esac
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147   (eval "$ac_compile") 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } && {
4154          test -z "$ac_c_werror_flag" ||
4155          test ! -s conftest.err
4156        } && test -s conftest.$ac_objext; then
4157   eval "$as_ac_Header=yes"
4158 else
4159   echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162         eval "$as_ac_Header=no"
4163 fi
4164
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 fi
4167 ac_res=`eval echo '${'$as_ac_Header'}'`
4168                { echo "$as_me:$LINENO: result: $ac_res" >&5
4169 echo "${ECHO_T}$ac_res" >&6; }
4170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4171   cat >>confdefs.h <<_ACEOF
4172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4173 _ACEOF
4174
4175 fi
4176
4177 done
4178
4179
4180
4181
4182 for ac_header in stdlib.h unistd.h
4183 do
4184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4186   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 fi
4191 ac_res=`eval echo '${'$as_ac_Header'}'`
4192                { echo "$as_me:$LINENO: result: $ac_res" >&5
4193 echo "${ECHO_T}$ac_res" >&6; }
4194 else
4195   # Is the header compilable?
4196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h.  */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h.  */
4204 $ac_includes_default
4205 #include <$ac_header>
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4209 case "(($ac_try" in
4210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211   *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214   (eval "$ac_compile") 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } && {
4221          test -z "$ac_c_werror_flag" ||
4222          test ! -s conftest.err
4223        } && test -s conftest.$ac_objext; then
4224   ac_header_compiler=yes
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229         ac_header_compiler=no
4230 fi
4231
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4234 echo "${ECHO_T}$ac_header_compiler" >&6; }
4235
4236 # Is the header present?
4237 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245 #include <$ac_header>
4246 _ACEOF
4247 if { (ac_try="$ac_cpp conftest.$ac_ext"
4248 case "(($ac_try" in
4249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250   *) ac_try_echo=$ac_try;;
4251 esac
4252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4253   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4254   ac_status=$?
4255   grep -v '^ *+' conftest.er1 >conftest.err
4256   rm -f conftest.er1
4257   cat conftest.err >&5
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); } >/dev/null && {
4260          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4261          test ! -s conftest.err
4262        }; then
4263   ac_header_preproc=yes
4264 else
4265   echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268   ac_header_preproc=no
4269 fi
4270
4271 rm -f conftest.err conftest.$ac_ext
4272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4273 echo "${ECHO_T}$ac_header_preproc" >&6; }
4274
4275 # So?  What about this header?
4276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4277   yes:no: )
4278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4282     ac_header_preproc=yes
4283     ;;
4284   no:yes:* )
4285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4287     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4288 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4289     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4291     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4292 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4295     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4297
4298     ;;
4299 esac
4300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4303   echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305   eval "$as_ac_Header=\$ac_header_preproc"
4306 fi
4307 ac_res=`eval echo '${'$as_ac_Header'}'`
4308                { echo "$as_me:$LINENO: result: $ac_res" >&5
4309 echo "${ECHO_T}$ac_res" >&6; }
4310
4311 fi
4312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4313   cat >>confdefs.h <<_ACEOF
4314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4315 _ACEOF
4316
4317 fi
4318
4319 done
4320
4321
4322 for ac_func in getpagesize
4323 do
4324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4338 #define $ac_func innocuous_$ac_func
4339
4340 /* System header to define __stub macros and hopefully few prototypes,
4341     which can conflict with char $ac_func (); below.
4342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4343     <limits.h> exists even on freestanding compilers.  */
4344
4345 #ifdef __STDC__
4346 # include <limits.h>
4347 #else
4348 # include <assert.h>
4349 #endif
4350
4351 #undef $ac_func
4352
4353 /* Override any GCC internal prototype to avoid an error.
4354    Use char because int might match the return type of a GCC
4355    builtin and then its argument prototype would still apply.  */
4356 #ifdef __cplusplus
4357 extern "C"
4358 #endif
4359 char $ac_func ();
4360 /* The GNU C library defines this for functions which it implements
4361     to always fail with ENOSYS.  Some functions are actually named
4362     something starting with __ and the normal name is an alias.  */
4363 #if defined __stub_$ac_func || defined __stub___$ac_func
4364 choke me
4365 #endif
4366
4367 int
4368 main ()
4369 {
4370 return $ac_func ();
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext conftest$ac_exeext
4376 if { (ac_try="$ac_link"
4377 case "(($ac_try" in
4378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379   *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382   (eval "$ac_link") 2>conftest.er1
4383   ac_status=$?
4384   grep -v '^ *+' conftest.er1 >conftest.err
4385   rm -f conftest.er1
4386   cat conftest.err >&5
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); } && {
4389          test -z "$ac_c_werror_flag" ||
4390          test ! -s conftest.err
4391        } && test -s conftest$ac_exeext &&
4392        $as_test_x conftest$ac_exeext; then
4393   eval "$as_ac_var=yes"
4394 else
4395   echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398         eval "$as_ac_var=no"
4399 fi
4400
4401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4402       conftest$ac_exeext conftest.$ac_ext
4403 fi
4404 ac_res=`eval echo '${'$as_ac_var'}'`
4405                { echo "$as_me:$LINENO: result: $ac_res" >&5
4406 echo "${ECHO_T}$ac_res" >&6; }
4407 if test `eval echo '${'$as_ac_var'}'` = yes; then
4408   cat >>confdefs.h <<_ACEOF
4409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4410 _ACEOF
4411
4412 fi
4413 done
4414
4415 { echo "$as_me:$LINENO: checking for working mmap" >&5
4416 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
4417 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   if test "$cross_compiling" = yes; then
4421   ac_cv_func_mmap_fixed_mapped=no
4422 else
4423   cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h.  */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h.  */
4429 $ac_includes_default
4430 /* malloc might have been renamed as rpl_malloc. */
4431 #undef malloc
4432
4433 /* Thanks to Mike Haertel and Jim Avera for this test.
4434    Here is a matrix of mmap possibilities:
4435         mmap private not fixed
4436         mmap private fixed at somewhere currently unmapped
4437         mmap private fixed at somewhere already mapped
4438         mmap shared not fixed
4439         mmap shared fixed at somewhere currently unmapped
4440         mmap shared fixed at somewhere already mapped
4441    For private mappings, we should verify that changes cannot be read()
4442    back from the file, nor mmap's back from the file at a different
4443    address.  (There have been systems where private was not correctly
4444    implemented like the infamous i386 svr4.0, and systems where the
4445    VM page cache was not coherent with the file system buffer cache
4446    like early versions of FreeBSD and possibly contemporary NetBSD.)
4447    For shared mappings, we should conversely verify that changes get
4448    propagated back to all the places they're supposed to be.
4449
4450    Grep wants private fixed already mapped.
4451    The main things grep needs to know about mmap are:
4452    * does it exist and is it safe to write into the mmap'd area
4453    * how to use it (BSD variants)  */
4454
4455 #include <fcntl.h>
4456 #include <sys/mman.h>
4457
4458 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4459 char *malloc ();
4460 #endif
4461
4462 /* This mess was copied from the GNU getpagesize.h.  */
4463 #ifndef HAVE_GETPAGESIZE
4464 /* Assume that all systems that can run configure have sys/param.h.  */
4465 # ifndef HAVE_SYS_PARAM_H
4466 #  define HAVE_SYS_PARAM_H 1
4467 # endif
4468
4469 # ifdef _SC_PAGESIZE
4470 #  define getpagesize() sysconf(_SC_PAGESIZE)
4471 # else /* no _SC_PAGESIZE */
4472 #  ifdef HAVE_SYS_PARAM_H
4473 #   include <sys/param.h>
4474 #   ifdef EXEC_PAGESIZE
4475 #    define getpagesize() EXEC_PAGESIZE
4476 #   else /* no EXEC_PAGESIZE */
4477 #    ifdef NBPG
4478 #     define getpagesize() NBPG * CLSIZE
4479 #     ifndef CLSIZE
4480 #      define CLSIZE 1
4481 #     endif /* no CLSIZE */
4482 #    else /* no NBPG */
4483 #     ifdef NBPC
4484 #      define getpagesize() NBPC
4485 #     else /* no NBPC */
4486 #      ifdef PAGESIZE
4487 #       define getpagesize() PAGESIZE
4488 #      endif /* PAGESIZE */
4489 #     endif /* no NBPC */
4490 #    endif /* no NBPG */
4491 #   endif /* no EXEC_PAGESIZE */
4492 #  else /* no HAVE_SYS_PARAM_H */
4493 #   define getpagesize() 8192   /* punt totally */
4494 #  endif /* no HAVE_SYS_PARAM_H */
4495 # endif /* no _SC_PAGESIZE */
4496
4497 #endif /* no HAVE_GETPAGESIZE */
4498
4499 int
4500 main ()
4501 {
4502   char *data, *data2, *data3;
4503   int i, pagesize;
4504   int fd;
4505
4506   pagesize = getpagesize ();
4507
4508   /* First, make a file with some known garbage in it. */
4509   data = (char *) malloc (pagesize);
4510   if (!data)
4511     return 1;
4512   for (i = 0; i < pagesize; ++i)
4513     *(data + i) = rand ();
4514   umask (0);
4515   fd = creat ("conftest.mmap", 0600);
4516   if (fd < 0)
4517     return 1;
4518   if (write (fd, data, pagesize) != pagesize)
4519     return 1;
4520   close (fd);
4521
4522   /* Next, try to mmap the file at a fixed address which already has
4523      something else allocated at it.  If we can, also make sure that
4524      we see the same garbage.  */
4525   fd = open ("conftest.mmap", O_RDWR);
4526   if (fd < 0)
4527     return 1;
4528   data2 = (char *) malloc (2 * pagesize);
4529   if (!data2)
4530     return 1;
4531   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
4532   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4533                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4534     return 1;
4535   for (i = 0; i < pagesize; ++i)
4536     if (*(data + i) != *(data2 + i))
4537       return 1;
4538
4539   /* Finally, make sure that changes to the mapped area do not
4540      percolate back to the file as seen by read().  (This is a bug on
4541      some variants of i386 svr4.0.)  */
4542   for (i = 0; i < pagesize; ++i)
4543     *(data2 + i) = *(data2 + i) + 1;
4544   data3 = (char *) malloc (pagesize);
4545   if (!data3)
4546     return 1;
4547   if (read (fd, data3, pagesize) != pagesize)
4548     return 1;
4549   for (i = 0; i < pagesize; ++i)
4550     if (*(data + i) != *(data3 + i))
4551       return 1;
4552   close (fd);
4553   return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest$ac_exeext
4557 if { (ac_try="$ac_link"
4558 case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563   (eval "$ac_link") 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4567   { (case "(($ac_try" in
4568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569   *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572   (eval "$ac_try") 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; }; then
4576   ac_cv_func_mmap_fixed_mapped=yes
4577 else
4578   echo "$as_me: program exited with status $ac_status" >&5
4579 echo "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4581
4582 ( exit $ac_status )
4583 ac_cv_func_mmap_fixed_mapped=no
4584 fi
4585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4586 fi
4587
4588
4589 fi
4590 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4591 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
4592 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4593
4594 cat >>confdefs.h <<\_ACEOF
4595 #define HAVE_MMAP 1
4596 _ACEOF
4597
4598 fi
4599 rm -f conftest.mmap
4600
4601
4602 # Checks for header files.
4603 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4604 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4605 if test "${ac_cv_header_stdc+set}" = set; then
4606   echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608   cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h.  */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h.  */
4614 #include <stdlib.h>
4615 #include <stdarg.h>
4616 #include <string.h>
4617 #include <float.h>
4618
4619 int
4620 main ()
4621 {
4622
4623   ;
4624   return 0;
4625 }
4626 _ACEOF
4627 rm -f conftest.$ac_objext
4628 if { (ac_try="$ac_compile"
4629 case "(($ac_try" in
4630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631   *) ac_try_echo=$ac_try;;
4632 esac
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634   (eval "$ac_compile") 2>conftest.er1
4635   ac_status=$?
4636   grep -v '^ *+' conftest.er1 >conftest.err
4637   rm -f conftest.er1
4638   cat conftest.err >&5
4639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640   (exit $ac_status); } && {
4641          test -z "$ac_c_werror_flag" ||
4642          test ! -s conftest.err
4643        } && test -s conftest.$ac_objext; then
4644   ac_cv_header_stdc=yes
4645 else
4646   echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649         ac_cv_header_stdc=no
4650 fi
4651
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653
4654 if test $ac_cv_header_stdc = yes; then
4655   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4656   cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h.  */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h.  */
4662 #include <string.h>
4663
4664 _ACEOF
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666   $EGREP "memchr" >/dev/null 2>&1; then
4667   :
4668 else
4669   ac_cv_header_stdc=no
4670 fi
4671 rm -f conftest*
4672
4673 fi
4674
4675 if test $ac_cv_header_stdc = yes; then
4676   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4677   cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h.  */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h.  */
4683 #include <stdlib.h>
4684
4685 _ACEOF
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687   $EGREP "free" >/dev/null 2>&1; then
4688   :
4689 else
4690   ac_cv_header_stdc=no
4691 fi
4692 rm -f conftest*
4693
4694 fi
4695
4696 if test $ac_cv_header_stdc = yes; then
4697   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4698   if test "$cross_compiling" = yes; then
4699   :
4700 else
4701   cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707 #include <ctype.h>
4708 #include <stdlib.h>
4709 #if ((' ' & 0x0FF) == 0x020)
4710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4712 #else
4713 # define ISLOWER(c) \
4714                    (('a' <= (c) && (c) <= 'i') \
4715                      || ('j' <= (c) && (c) <= 'r') \
4716                      || ('s' <= (c) && (c) <= 'z'))
4717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4718 #endif
4719
4720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4721 int
4722 main ()
4723 {
4724   int i;
4725   for (i = 0; i < 256; i++)
4726     if (XOR (islower (i), ISLOWER (i))
4727         || toupper (i) != TOUPPER (i))
4728       return 2;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest$ac_exeext
4733 if { (ac_try="$ac_link"
4734 case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739   (eval "$ac_link") 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4743   { (case "(($ac_try" in
4744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745   *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748   (eval "$ac_try") 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; }; then
4752   :
4753 else
4754   echo "$as_me: program exited with status $ac_status" >&5
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 ( exit $ac_status )
4759 ac_cv_header_stdc=no
4760 fi
4761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4762 fi
4763
4764
4765 fi
4766 fi
4767 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4768 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4769 if test $ac_cv_header_stdc = yes; then
4770
4771 cat >>confdefs.h <<\_ACEOF
4772 #define STDC_HEADERS 1
4773 _ACEOF
4774
4775 fi
4776
4777 # AC_CHECK_HEADERS([ ])
4778
4779 # Determine PIC flag, adjust default CFLAGS
4780 need_asm=false
4781 PICFLAG=
4782 { echo "$as_me:$LINENO: checking Determining PIC compiler flag" >&5
4783 echo $ECHO_N "checking Determining PIC compiler flag... $ECHO_C" >&6; }
4784 if test "$GCC" = yes; then
4785   { echo "$as_me:$LINENO: result: -fPIC" >&5
4786 echo "${ECHO_T}-fPIC" >&6; }
4787   PICFLAG=-fPIC
4788 else
4789   case "$host" in
4790     *-*-hpux*)
4791       { echo "$as_me:$LINENO: result: \"+Z\"" >&5
4792 echo "${ECHO_T}\"+Z\"" >&6; }
4793       PICFLAG="+Z"
4794       if test "$GCC" != yes; then
4795         CFLAGS="$CFLAGS +O2 -mt"
4796       fi
4797       ;;
4798     *-*-solaris*)
4799       { echo "$as_me:$LINENO: result: -Kpic" >&5
4800 echo "${ECHO_T}-Kpic" >&6; }
4801       PICFLAG=-Kpic
4802       if test "$GCC" != yes; then
4803         CFLAGS="$CFLAGS -O"
4804         need_asm=true
4805       fi
4806       ;;
4807     *-*-linux*)
4808       { echo "$as_me:$LINENO: result: -fPIC" >&5
4809 echo "${ECHO_T}-fPIC" >&6; }
4810       PICFLAG=-fPIC
4811       # Any Linux compiler had better be gcc compatible.
4812       ;;
4813     *)
4814       { echo "$as_me:$LINENO: result: \"<none>\"" >&5
4815 echo "${ECHO_T}\"<none>\"" >&6; }
4816       ;;
4817   esac
4818 fi
4819 CFLAGS="$CFLAGS -DNDEBUG"
4820
4821
4822
4823
4824
4825
4826 if test x$need_asm = xtrue; then
4827   NEED_ASM_TRUE=
4828   NEED_ASM_FALSE='#'
4829 else
4830   NEED_ASM_TRUE='#'
4831   NEED_ASM_FALSE=
4832 fi
4833
4834
4835 ac_config_files="$ac_config_files Makefile src/Makefile src/atomic_ops/Makefile src/atomic_ops/sysdeps/Makefile doc/Makefile tests/Makefile"
4836
4837 ac_config_commands="$ac_config_commands default"
4838
4839 cat >confcache <<\_ACEOF
4840 # This file is a shell script that caches the results of configure
4841 # tests run on this system so they can be shared between configure
4842 # scripts and configure runs, see configure's option --config-cache.
4843 # It is not useful on other systems.  If it contains results you don't
4844 # want to keep, you may remove or edit it.
4845 #
4846 # config.status only pays attention to the cache file if you give it
4847 # the --recheck option to rerun configure.
4848 #
4849 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4850 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4851 # following values.
4852
4853 _ACEOF
4854
4855 # The following way of writing the cache mishandles newlines in values,
4856 # but we know of no workaround that is simple, portable, and efficient.
4857 # So, we kill variables containing newlines.
4858 # Ultrix sh set writes to stderr and can't be redirected directly,
4859 # and sets the high bit in the cache file unless we assign to the vars.
4860 (
4861   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4862     eval ac_val=\$$ac_var
4863     case $ac_val in #(
4864     *${as_nl}*)
4865       case $ac_var in #(
4866       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4867 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4868       esac
4869       case $ac_var in #(
4870       _ | IFS | as_nl) ;; #(
4871       *) $as_unset $ac_var ;;
4872       esac ;;
4873     esac
4874   done
4875
4876   (set) 2>&1 |
4877     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4878     *${as_nl}ac_space=\ *)
4879       # `set' does not quote correctly, so add quotes (double-quote
4880       # substitution turns \\\\ into \\, and sed turns \\ into \).
4881       sed -n \
4882         "s/'/'\\\\''/g;
4883           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4884       ;; #(
4885     *)
4886       # `set' quotes correctly as required by POSIX, so do not add quotes.
4887       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4888       ;;
4889     esac |
4890     sort
4891 ) |
4892   sed '
4893      /^ac_cv_env_/b end
4894      t clear
4895      :clear
4896      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4897      t end
4898      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4899      :end' >>confcache
4900 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4901   if test -w "$cache_file"; then
4902     test "x$cache_file" != "x/dev/null" &&
4903       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4904 echo "$as_me: updating cache $cache_file" >&6;}
4905     cat confcache >$cache_file
4906   else
4907     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4908 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4909   fi
4910 fi
4911 rm -f confcache
4912
4913 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4914 # Let make expand exec_prefix.
4915 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4916
4917 DEFS=-DHAVE_CONFIG_H
4918
4919 ac_libobjs=
4920 ac_ltlibobjs=
4921 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4922   # 1. Remove the extension, and $U if already installed.
4923   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4924   ac_i=`echo "$ac_i" | sed "$ac_script"`
4925   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4926   #    will be set to the directory where LIBOBJS objects are built.
4927   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4928   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4929 done
4930 LIBOBJS=$ac_libobjs
4931
4932 LTLIBOBJS=$ac_ltlibobjs
4933
4934
4935 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4936   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4937 Usually this means the macro was only invoked conditionally." >&5
4938 echo "$as_me: error: conditional \"AMDEP\" was never defined.
4939 Usually this means the macro was only invoked conditionally." >&2;}
4940    { (exit 1); exit 1; }; }
4941 fi
4942 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4943   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4944 Usually this means the macro was only invoked conditionally." >&5
4945 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4946 Usually this means the macro was only invoked conditionally." >&2;}
4947    { (exit 1); exit 1; }; }
4948 fi
4949 if test -z "${NEED_ASM_TRUE}" && test -z "${NEED_ASM_FALSE}"; then
4950   { { echo "$as_me:$LINENO: error: conditional \"NEED_ASM\" was never defined.
4951 Usually this means the macro was only invoked conditionally." >&5
4952 echo "$as_me: error: conditional \"NEED_ASM\" was never defined.
4953 Usually this means the macro was only invoked conditionally." >&2;}
4954    { (exit 1); exit 1; }; }
4955 fi
4956
4957 : ${CONFIG_STATUS=./config.status}
4958 ac_clean_files_save=$ac_clean_files
4959 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4960 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4961 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4962 cat >$CONFIG_STATUS <<_ACEOF
4963 #! $SHELL
4964 # Generated by $as_me.
4965 # Run this file to recreate the current configuration.
4966 # Compiler output produced by configure, useful for debugging
4967 # configure, is in config.log if it exists.
4968
4969 debug=false
4970 ac_cs_recheck=false
4971 ac_cs_silent=false
4972 SHELL=\${CONFIG_SHELL-$SHELL}
4973 _ACEOF
4974
4975 cat >>$CONFIG_STATUS <<\_ACEOF
4976 ## --------------------- ##
4977 ## M4sh Initialization.  ##
4978 ## --------------------- ##
4979
4980 # Be more Bourne compatible
4981 DUALCASE=1; export DUALCASE # for MKS sh
4982 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4983   emulate sh
4984   NULLCMD=:
4985   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4986   # is contrary to our usage.  Disable this feature.
4987   alias -g '${1+"$@"}'='"$@"'
4988   setopt NO_GLOB_SUBST
4989 else
4990   case `(set -o) 2>/dev/null` in
4991   *posix*) set -o posix ;;
4992 esac
4993
4994 fi
4995
4996
4997
4998
4999 # PATH needs CR
5000 # Avoid depending upon Character Ranges.
5001 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5002 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5003 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5004 as_cr_digits='0123456789'
5005 as_cr_alnum=$as_cr_Letters$as_cr_digits
5006
5007 # The user is always right.
5008 if test "${PATH_SEPARATOR+set}" != set; then
5009   echo "#! /bin/sh" >conf$$.sh
5010   echo  "exit 0"   >>conf$$.sh
5011   chmod +x conf$$.sh
5012   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5013     PATH_SEPARATOR=';'
5014   else
5015     PATH_SEPARATOR=:
5016   fi
5017   rm -f conf$$.sh
5018 fi
5019
5020 # Support unset when possible.
5021 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5022   as_unset=unset
5023 else
5024   as_unset=false
5025 fi
5026
5027
5028 # IFS
5029 # We need space, tab and new line, in precisely that order.  Quoting is
5030 # there to prevent editors from complaining about space-tab.
5031 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5032 # splitting by setting IFS to empty value.)
5033 as_nl='
5034 '
5035 IFS=" ""        $as_nl"
5036
5037 # Find who we are.  Look in the path if we contain no directory separator.
5038 case $0 in
5039   *[\\/]* ) as_myself=$0 ;;
5040   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5046 done
5047 IFS=$as_save_IFS
5048
5049      ;;
5050 esac
5051 # We did not find ourselves, most probably we were run as `sh COMMAND'
5052 # in which case we are not to be found in the path.
5053 if test "x$as_myself" = x; then
5054   as_myself=$0
5055 fi
5056 if test ! -f "$as_myself"; then
5057   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5058   { (exit 1); exit 1; }
5059 fi
5060
5061 # Work around bugs in pre-3.0 UWIN ksh.
5062 for as_var in ENV MAIL MAILPATH
5063 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5064 done
5065 PS1='$ '
5066 PS2='> '
5067 PS4='+ '
5068
5069 # NLS nuisances.
5070 for as_var in \
5071   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5072   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5073   LC_TELEPHONE LC_TIME
5074 do
5075   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5076     eval $as_var=C; export $as_var
5077   else
5078     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5079   fi
5080 done
5081
5082 # Required to use basename.
5083 if expr a : '\(a\)' >/dev/null 2>&1 &&
5084    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5085   as_expr=expr
5086 else
5087   as_expr=false
5088 fi
5089
5090 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5091   as_basename=basename
5092 else
5093   as_basename=false
5094 fi
5095
5096
5097 # Name of the executable.
5098 as_me=`$as_basename -- "$0" ||
5099 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5100          X"$0" : 'X\(//\)$' \| \
5101          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5102 echo X/"$0" |
5103     sed '/^.*\/\([^/][^/]*\)\/*$/{
5104             s//\1/
5105             q
5106           }
5107           /^X\/\(\/\/\)$/{
5108             s//\1/
5109             q
5110           }
5111           /^X\/\(\/\).*/{
5112             s//\1/
5113             q
5114           }
5115           s/.*/./; q'`
5116
5117 # CDPATH.
5118 $as_unset CDPATH
5119
5120
5121
5122   as_lineno_1=$LINENO
5123   as_lineno_2=$LINENO
5124   test "x$as_lineno_1" != "x$as_lineno_2" &&
5125   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5126
5127   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5128   # uniformly replaced by the line number.  The first 'sed' inserts a
5129   # line-number line after each line using $LINENO; the second 'sed'
5130   # does the real work.  The second script uses 'N' to pair each
5131   # line-number line with the line containing $LINENO, and appends
5132   # trailing '-' during substitution so that $LINENO is not a special
5133   # case at line end.
5134   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5135   # scripts with optimization help from Paolo Bonzini.  Blame Lee
5136   # E. McMahon (1931-1989) for sed's syntax.  :-)
5137   sed -n '
5138     p
5139     /[$]LINENO/=
5140   ' <$as_myself |
5141     sed '
5142       s/[$]LINENO.*/&-/
5143       t lineno
5144       b
5145       :lineno
5146       N
5147       :loop
5148       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5149       t loop
5150       s/-\n.*//
5151     ' >$as_me.lineno &&
5152   chmod +x "$as_me.lineno" ||
5153     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5154    { (exit 1); exit 1; }; }
5155
5156   # Don't try to exec as it changes $[0], causing all sort of problems
5157   # (the dirname of $[0] is not the place where we might find the
5158   # original and so on.  Autoconf is especially sensitive to this).
5159   . "./$as_me.lineno"
5160   # Exit status is that of the last command.
5161   exit
5162 }
5163
5164
5165 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5166   as_dirname=dirname
5167 else
5168   as_dirname=false
5169 fi
5170
5171 ECHO_C= ECHO_N= ECHO_T=
5172 case `echo -n x` in
5173 -n*)
5174   case `echo 'x\c'` in
5175   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5176   *)   ECHO_C='\c';;
5177   esac;;
5178 *)
5179   ECHO_N='-n';;
5180 esac
5181
5182 if expr a : '\(a\)' >/dev/null 2>&1 &&
5183    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5184   as_expr=expr
5185 else
5186   as_expr=false
5187 fi
5188
5189 rm -f conf$$ conf$$.exe conf$$.file
5190 if test -d conf$$.dir; then
5191   rm -f conf$$.dir/conf$$.file
5192 else
5193   rm -f conf$$.dir
5194   mkdir conf$$.dir
5195 fi
5196 echo >conf$$.file
5197 if ln -s conf$$.file conf$$ 2>/dev/null; then
5198   as_ln_s='ln -s'
5199   # ... but there are two gotchas:
5200   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5201   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5202   # In both cases, we have to default to `cp -p'.
5203   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5204     as_ln_s='cp -p'
5205 elif ln conf$$.file conf$$ 2>/dev/null; then
5206   as_ln_s=ln
5207 else
5208   as_ln_s='cp -p'
5209 fi
5210 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5211 rmdir conf$$.dir 2>/dev/null
5212
5213 if mkdir -p . 2>/dev/null; then
5214   as_mkdir_p=:
5215 else
5216   test -d ./-p && rmdir ./-p
5217   as_mkdir_p=false
5218 fi
5219
5220 if test -x / >/dev/null 2>&1; then
5221   as_test_x='test -x'
5222 else
5223   if ls -dL / >/dev/null 2>&1; then
5224     as_ls_L_option=L
5225   else
5226     as_ls_L_option=
5227   fi
5228   as_test_x='
5229     eval sh -c '\''
5230       if test -d "$1"; then
5231         test -d "$1/.";
5232       else
5233         case $1 in
5234         -*)set "./$1";;
5235         esac;
5236         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5237         ???[sx]*):;;*)false;;esac;fi
5238     '\'' sh
5239   '
5240 fi
5241 as_executable_p=$as_test_x
5242
5243 # Sed expression to map a string onto a valid CPP name.
5244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5245
5246 # Sed expression to map a string onto a valid variable name.
5247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5248
5249
5250 exec 6>&1
5251
5252 # Save the log message, to keep $[0] and so on meaningful, and to
5253 # report actual input values of CONFIG_FILES etc. instead of their
5254 # values after options handling.
5255 ac_log="
5256 This file was extended by libatomic_ops $as_me 1.2, which was
5257 generated by GNU Autoconf 2.61.  Invocation command line was
5258
5259   CONFIG_FILES    = $CONFIG_FILES
5260   CONFIG_HEADERS  = $CONFIG_HEADERS
5261   CONFIG_LINKS    = $CONFIG_LINKS
5262   CONFIG_COMMANDS = $CONFIG_COMMANDS
5263   $ $0 $@
5264
5265 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5266 "
5267
5268 _ACEOF
5269
5270 cat >>$CONFIG_STATUS <<_ACEOF
5271 # Files that config.status was made for.
5272 config_files="$ac_config_files"
5273 config_headers="$ac_config_headers"
5274 config_commands="$ac_config_commands"
5275
5276 _ACEOF
5277
5278 cat >>$CONFIG_STATUS <<\_ACEOF
5279 ac_cs_usage="\
5280 \`$as_me' instantiates files from templates according to the
5281 current configuration.
5282
5283 Usage: $0 [OPTIONS] [FILE]...
5284
5285   -h, --help       print this help, then exit
5286   -V, --version    print version number and configuration settings, then exit
5287   -q, --quiet      do not print progress messages
5288   -d, --debug      don't remove temporary files
5289       --recheck    update $as_me by reconfiguring in the same conditions
5290   --file=FILE[:TEMPLATE]
5291                    instantiate the configuration file FILE
5292   --header=FILE[:TEMPLATE]
5293                    instantiate the configuration header FILE
5294
5295 Configuration files:
5296 $config_files
5297
5298 Configuration headers:
5299 $config_headers
5300
5301 Configuration commands:
5302 $config_commands
5303
5304 Report bugs to <bug-autoconf@gnu.org>."
5305
5306 _ACEOF
5307 cat >>$CONFIG_STATUS <<_ACEOF
5308 ac_cs_version="\\
5309 libatomic_ops config.status 1.2
5310 configured by $0, generated by GNU Autoconf 2.61,
5311   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5312
5313 Copyright (C) 2006 Free Software Foundation, Inc.
5314 This config.status script is free software; the Free Software Foundation
5315 gives unlimited permission to copy, distribute and modify it."
5316
5317 ac_pwd='$ac_pwd'
5318 srcdir='$srcdir'
5319 INSTALL='$INSTALL'
5320 _ACEOF
5321
5322 cat >>$CONFIG_STATUS <<\_ACEOF
5323 # If no file are specified by the user, then we need to provide default
5324 # value.  By we need to know if files were specified by the user.
5325 ac_need_defaults=:
5326 while test $# != 0
5327 do
5328   case $1 in
5329   --*=*)
5330     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5331     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5332     ac_shift=:
5333     ;;
5334   *)
5335     ac_option=$1
5336     ac_optarg=$2
5337     ac_shift=shift
5338     ;;
5339   esac
5340
5341   case $ac_option in
5342   # Handling of the options.
5343   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5344     ac_cs_recheck=: ;;
5345   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5346     echo "$ac_cs_version"; exit ;;
5347   --debug | --debu | --deb | --de | --d | -d )
5348     debug=: ;;
5349   --file | --fil | --fi | --f )
5350     $ac_shift
5351     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5352     ac_need_defaults=false;;
5353   --header | --heade | --head | --hea )
5354     $ac_shift
5355     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5356     ac_need_defaults=false;;
5357   --he | --h)
5358     # Conflict between --help and --header
5359     { echo "$as_me: error: ambiguous option: $1
5360 Try \`$0 --help' for more information." >&2
5361    { (exit 1); exit 1; }; };;
5362   --help | --hel | -h )
5363     echo "$ac_cs_usage"; exit ;;
5364   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5365   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5366     ac_cs_silent=: ;;
5367
5368   # This is an error.
5369   -*) { echo "$as_me: error: unrecognized option: $1
5370 Try \`$0 --help' for more information." >&2
5371    { (exit 1); exit 1; }; } ;;
5372
5373   *) ac_config_targets="$ac_config_targets $1"
5374      ac_need_defaults=false ;;
5375
5376   esac
5377   shift
5378 done
5379
5380 ac_configure_extra_args=
5381
5382 if $ac_cs_silent; then
5383   exec 6>/dev/null
5384   ac_configure_extra_args="$ac_configure_extra_args --silent"
5385 fi
5386
5387 _ACEOF
5388 cat >>$CONFIG_STATUS <<_ACEOF
5389 if \$ac_cs_recheck; then
5390   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5391   CONFIG_SHELL=$SHELL
5392   export CONFIG_SHELL
5393   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5394 fi
5395
5396 _ACEOF
5397 cat >>$CONFIG_STATUS <<\_ACEOF
5398 exec 5>>config.log
5399 {
5400   echo
5401   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5402 ## Running $as_me. ##
5403 _ASBOX
5404   echo "$ac_log"
5405 } >&5
5406
5407 _ACEOF
5408 cat >>$CONFIG_STATUS <<_ACEOF
5409 #
5410 # INIT-COMMANDS
5411 #
5412 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5413 PICFLAG=${PICFLAG}
5414 CC=${CC}
5415 DEFS=${DEFS}
5416
5417 _ACEOF
5418
5419 cat >>$CONFIG_STATUS <<\_ACEOF
5420
5421 # Handling of arguments.
5422 for ac_config_target in $ac_config_targets
5423 do
5424   case $ac_config_target in
5425     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
5426     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5427     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5428     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5429     "src/atomic_ops/Makefile") CONFIG_FILES="$CONFIG_FILES src/atomic_ops/Makefile" ;;
5430     "src/atomic_ops/sysdeps/Makefile") CONFIG_FILES="$CONFIG_FILES src/atomic_ops/sysdeps/Makefile" ;;
5431     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5432     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5433     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5434
5435   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5436 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5437    { (exit 1); exit 1; }; };;
5438   esac
5439 done
5440
5441
5442 # If the user did not use the arguments to specify the items to instantiate,
5443 # then the envvar interface is used.  Set only those that are not.
5444 # We use the long form for the default assignment because of an extremely
5445 # bizarre bug on SunOS 4.1.3.
5446 if $ac_need_defaults; then
5447   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5448   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5449   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5450 fi
5451
5452 # Have a temporary directory for convenience.  Make it in the build tree
5453 # simply because there is no reason against having it here, and in addition,
5454 # creating and moving files from /tmp can sometimes cause problems.
5455 # Hook for its removal unless debugging.
5456 # Note that there is a small window in which the directory will not be cleaned:
5457 # after its creation but before its name has been assigned to `$tmp'.
5458 $debug ||
5459 {
5460   tmp=
5461   trap 'exit_status=$?
5462   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5463 ' 0
5464   trap '{ (exit 1); exit 1; }' 1 2 13 15
5465 }
5466 # Create a (secure) tmp directory for tmp files.
5467
5468 {
5469   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5470   test -n "$tmp" && test -d "$tmp"
5471 }  ||
5472 {
5473   tmp=./conf$$-$RANDOM
5474   (umask 077 && mkdir "$tmp")
5475 } ||
5476 {
5477    echo "$me: cannot create a temporary directory in ." >&2
5478    { (exit 1); exit 1; }
5479 }
5480
5481 #
5482 # Set up the sed scripts for CONFIG_FILES section.
5483 #
5484
5485 # No need to generate the scripts if there are no CONFIG_FILES.
5486 # This happens for instance when ./config.status config.h
5487 if test -n "$CONFIG_FILES"; then
5488
5489 _ACEOF
5490
5491
5492
5493 ac_delim='%!_!# '
5494 for ac_last_try in false false false false false :; do
5495   cat >conf$$subs.sed <<_ACEOF
5496 SHELL!$SHELL$ac_delim
5497 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5498 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5499 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5500 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5501 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5502 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5503 exec_prefix!$exec_prefix$ac_delim
5504 prefix!$prefix$ac_delim
5505 program_transform_name!$program_transform_name$ac_delim
5506 bindir!$bindir$ac_delim
5507 sbindir!$sbindir$ac_delim
5508 libexecdir!$libexecdir$ac_delim
5509 datarootdir!$datarootdir$ac_delim
5510 datadir!$datadir$ac_delim
5511 sysconfdir!$sysconfdir$ac_delim
5512 sharedstatedir!$sharedstatedir$ac_delim
5513 localstatedir!$localstatedir$ac_delim
5514 includedir!$includedir$ac_delim
5515 oldincludedir!$oldincludedir$ac_delim
5516 docdir!$docdir$ac_delim
5517 infodir!$infodir$ac_delim
5518 htmldir!$htmldir$ac_delim
5519 dvidir!$dvidir$ac_delim
5520 pdfdir!$pdfdir$ac_delim
5521 psdir!$psdir$ac_delim
5522 libdir!$libdir$ac_delim
5523 localedir!$localedir$ac_delim
5524 mandir!$mandir$ac_delim
5525 DEFS!$DEFS$ac_delim
5526 ECHO_C!$ECHO_C$ac_delim
5527 ECHO_N!$ECHO_N$ac_delim
5528 ECHO_T!$ECHO_T$ac_delim
5529 LIBS!$LIBS$ac_delim
5530 build_alias!$build_alias$ac_delim
5531 host_alias!$host_alias$ac_delim
5532 target_alias!$target_alias$ac_delim
5533 build!$build$ac_delim
5534 build_cpu!$build_cpu$ac_delim
5535 build_vendor!$build_vendor$ac_delim
5536 build_os!$build_os$ac_delim
5537 host!$host$ac_delim
5538 host_cpu!$host_cpu$ac_delim
5539 host_vendor!$host_vendor$ac_delim
5540 host_os!$host_os$ac_delim
5541 target!$target$ac_delim
5542 target_cpu!$target_cpu$ac_delim
5543 target_vendor!$target_vendor$ac_delim
5544 target_os!$target_os$ac_delim
5545 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5546 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5547 INSTALL_DATA!$INSTALL_DATA$ac_delim
5548 CYGPATH_W!$CYGPATH_W$ac_delim
5549 PACKAGE!$PACKAGE$ac_delim
5550 VERSION!$VERSION$ac_delim
5551 ACLOCAL!$ACLOCAL$ac_delim
5552 AUTOCONF!$AUTOCONF$ac_delim
5553 AUTOMAKE!$AUTOMAKE$ac_delim
5554 AUTOHEADER!$AUTOHEADER$ac_delim
5555 MAKEINFO!$MAKEINFO$ac_delim
5556 install_sh!$install_sh$ac_delim
5557 STRIP!$STRIP$ac_delim
5558 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
5559 mkdir_p!$mkdir_p$ac_delim
5560 AWK!$AWK$ac_delim
5561 SET_MAKE!$SET_MAKE$ac_delim
5562 am__leading_dot!$am__leading_dot$ac_delim
5563 AMTAR!$AMTAR$ac_delim
5564 am__tar!$am__tar$ac_delim
5565 am__untar!$am__untar$ac_delim
5566 RANLIB!$RANLIB$ac_delim
5567 CC!$CC$ac_delim
5568 CFLAGS!$CFLAGS$ac_delim
5569 LDFLAGS!$LDFLAGS$ac_delim
5570 CPPFLAGS!$CPPFLAGS$ac_delim
5571 ac_ct_CC!$ac_ct_CC$ac_delim
5572 EXEEXT!$EXEEXT$ac_delim
5573 OBJEXT!$OBJEXT$ac_delim
5574 DEPDIR!$DEPDIR$ac_delim
5575 am__include!$am__include$ac_delim
5576 am__quote!$am__quote$ac_delim
5577 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
5578 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
5579 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
5580 CCDEPMODE!$CCDEPMODE$ac_delim
5581 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
5582 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
5583 CCAS!$CCAS$ac_delim
5584 CCASFLAGS!$CCASFLAGS$ac_delim
5585 CPP!$CPP$ac_delim
5586 GREP!$GREP$ac_delim
5587 EGREP!$EGREP$ac_delim
5588 PICFLAG!$PICFLAG$ac_delim
5589 NEED_ASM_TRUE!$NEED_ASM_TRUE$ac_delim
5590 NEED_ASM_FALSE!$NEED_ASM_FALSE$ac_delim
5591 LIBOBJS!$LIBOBJS$ac_delim
5592 LTLIBOBJS!$LTLIBOBJS$ac_delim
5593 _ACEOF
5594
5595   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
5596     break
5597   elif $ac_last_try; then
5598     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5599 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5600    { (exit 1); exit 1; }; }
5601   else
5602     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5603   fi
5604 done
5605
5606 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5607 if test -n "$ac_eof"; then
5608   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5609   ac_eof=`expr $ac_eof + 1`
5610 fi
5611
5612 cat >>$CONFIG_STATUS <<_ACEOF
5613 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5615 _ACEOF
5616 sed '
5617 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5618 s/^/s,@/; s/!/@,|#_!!_#|/
5619 :n
5620 t n
5621 s/'"$ac_delim"'$/,g/; t
5622 s/$/\\/; p
5623 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5624 ' >>$CONFIG_STATUS <conf$$subs.sed
5625 rm -f conf$$subs.sed
5626 cat >>$CONFIG_STATUS <<_ACEOF
5627 CEOF$ac_eof
5628 _ACEOF
5629
5630
5631 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5633 # trailing colons and then remove the whole line if VPATH becomes empty
5634 # (actually we leave an empty line to preserve line numbers).
5635 if test "x$srcdir" = x.; then
5636   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5637 s/:*\$(srcdir):*/:/
5638 s/:*\${srcdir}:*/:/
5639 s/:*@srcdir@:*/:/
5640 s/^\([^=]*=[     ]*\):*/\1/
5641 s/:*$//
5642 s/^[^=]*=[       ]*$//
5643 }'
5644 fi
5645
5646 cat >>$CONFIG_STATUS <<\_ACEOF
5647 fi # test -n "$CONFIG_FILES"
5648
5649
5650 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
5651 do
5652   case $ac_tag in
5653   :[FHLC]) ac_mode=$ac_tag; continue;;
5654   esac
5655   case $ac_mode$ac_tag in
5656   :[FHL]*:*);;
5657   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5658 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5659    { (exit 1); exit 1; }; };;
5660   :[FH]-) ac_tag=-:-;;
5661   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5662   esac
5663   ac_save_IFS=$IFS
5664   IFS=:
5665   set x $ac_tag
5666   IFS=$ac_save_IFS
5667   shift
5668   ac_file=$1
5669   shift
5670
5671   case $ac_mode in
5672   :L) ac_source=$1;;
5673   :[FH])
5674     ac_file_inputs=
5675     for ac_f
5676     do
5677       case $ac_f in
5678       -) ac_f="$tmp/stdin";;
5679       *) # Look for the file first in the build tree, then in the source tree
5680          # (if the path is not absolute).  The absolute path cannot be DOS-style,
5681          # because $ac_f cannot contain `:'.
5682          test -f "$ac_f" ||
5683            case $ac_f in
5684            [\\/$]*) false;;
5685            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5686            esac ||
5687            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5688 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5689    { (exit 1); exit 1; }; };;
5690       esac
5691       ac_file_inputs="$ac_file_inputs $ac_f"
5692     done
5693
5694     # Let's still pretend it is `configure' which instantiates (i.e., don't
5695     # use $as_me), people would be surprised to read:
5696     #    /* config.h.  Generated by config.status.  */
5697     configure_input="Generated from "`IFS=:
5698           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5699     if test x"$ac_file" != x-; then
5700       configure_input="$ac_file.  $configure_input"
5701       { echo "$as_me:$LINENO: creating $ac_file" >&5
5702 echo "$as_me: creating $ac_file" >&6;}
5703     fi
5704
5705     case $ac_tag in
5706     *:-:* | *:-) cat >"$tmp/stdin";;
5707     esac
5708     ;;
5709   esac
5710
5711   ac_dir=`$as_dirname -- "$ac_file" ||
5712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5713          X"$ac_file" : 'X\(//\)[^/]' \| \
5714          X"$ac_file" : 'X\(//\)$' \| \
5715          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5716 echo X"$ac_file" |
5717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5718             s//\1/
5719             q
5720           }
5721           /^X\(\/\/\)[^/].*/{
5722             s//\1/
5723             q
5724           }
5725           /^X\(\/\/\)$/{
5726             s//\1/
5727             q
5728           }
5729           /^X\(\/\).*/{
5730             s//\1/
5731             q
5732           }
5733           s/.*/./; q'`
5734   { as_dir="$ac_dir"
5735   case $as_dir in #(
5736   -*) as_dir=./$as_dir;;
5737   esac
5738   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5739     as_dirs=
5740     while :; do
5741       case $as_dir in #(
5742       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5743       *) as_qdir=$as_dir;;
5744       esac
5745       as_dirs="'$as_qdir' $as_dirs"
5746       as_dir=`$as_dirname -- "$as_dir" ||
5747 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5748          X"$as_dir" : 'X\(//\)[^/]' \| \
5749          X"$as_dir" : 'X\(//\)$' \| \
5750          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5751 echo X"$as_dir" |
5752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5753             s//\1/
5754             q
5755           }
5756           /^X\(\/\/\)[^/].*/{
5757             s//\1/
5758             q
5759           }
5760           /^X\(\/\/\)$/{
5761             s//\1/
5762             q
5763           }
5764           /^X\(\/\).*/{
5765             s//\1/
5766             q
5767           }
5768           s/.*/./; q'`
5769       test -d "$as_dir" && break
5770     done
5771     test -z "$as_dirs" || eval "mkdir $as_dirs"
5772   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5773 echo "$as_me: error: cannot create directory $as_dir" >&2;}
5774    { (exit 1); exit 1; }; }; }
5775   ac_builddir=.
5776
5777 case "$ac_dir" in
5778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5779 *)
5780   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5781   # A ".." for each directory in $ac_dir_suffix.
5782   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5783   case $ac_top_builddir_sub in
5784   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5785   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5786   esac ;;
5787 esac
5788 ac_abs_top_builddir=$ac_pwd
5789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5790 # for backward compatibility:
5791 ac_top_builddir=$ac_top_build_prefix
5792
5793 case $srcdir in
5794   .)  # We are building in place.
5795     ac_srcdir=.
5796     ac_top_srcdir=$ac_top_builddir_sub
5797     ac_abs_top_srcdir=$ac_pwd ;;
5798   [\\/]* | ?:[\\/]* )  # Absolute name.
5799     ac_srcdir=$srcdir$ac_dir_suffix;
5800     ac_top_srcdir=$srcdir
5801     ac_abs_top_srcdir=$srcdir ;;
5802   *) # Relative name.
5803     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5804     ac_top_srcdir=$ac_top_build_prefix$srcdir
5805     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5806 esac
5807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5808
5809
5810   case $ac_mode in
5811   :F)
5812   #
5813   # CONFIG_FILE
5814   #
5815
5816   case $INSTALL in
5817   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5818   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5819   esac
5820 _ACEOF
5821
5822 cat >>$CONFIG_STATUS <<\_ACEOF
5823 # If the template does not know about datarootdir, expand it.
5824 # FIXME: This hack should be removed a few years after 2.60.
5825 ac_datarootdir_hack=; ac_datarootdir_seen=
5826
5827 case `sed -n '/datarootdir/ {
5828   p
5829   q
5830 }
5831 /@datadir@/p
5832 /@docdir@/p
5833 /@infodir@/p
5834 /@localedir@/p
5835 /@mandir@/p
5836 ' $ac_file_inputs` in
5837 *datarootdir*) ac_datarootdir_seen=yes;;
5838 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5839   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5840 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5841 _ACEOF
5842 cat >>$CONFIG_STATUS <<_ACEOF
5843   ac_datarootdir_hack='
5844   s&@datadir@&$datadir&g
5845   s&@docdir@&$docdir&g
5846   s&@infodir@&$infodir&g
5847   s&@localedir@&$localedir&g
5848   s&@mandir@&$mandir&g
5849     s&\\\${datarootdir}&$datarootdir&g' ;;
5850 esac
5851 _ACEOF
5852
5853 # Neutralize VPATH when `$srcdir' = `.'.
5854 # Shell code in configure.ac might set extrasub.
5855 # FIXME: do we really want to maintain this feature?
5856 cat >>$CONFIG_STATUS <<_ACEOF
5857   sed "$ac_vpsub
5858 $extrasub
5859 _ACEOF
5860 cat >>$CONFIG_STATUS <<\_ACEOF
5861 :t
5862 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5863 s&@configure_input@&$configure_input&;t t
5864 s&@top_builddir@&$ac_top_builddir_sub&;t t
5865 s&@srcdir@&$ac_srcdir&;t t
5866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5867 s&@top_srcdir@&$ac_top_srcdir&;t t
5868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5869 s&@builddir@&$ac_builddir&;t t
5870 s&@abs_builddir@&$ac_abs_builddir&;t t
5871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5872 s&@INSTALL@&$ac_INSTALL&;t t
5873 $ac_datarootdir_hack
5874 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
5875
5876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5877   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5878   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5879   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5880 which seems to be undefined.  Please make sure it is defined." >&5
5881 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5882 which seems to be undefined.  Please make sure it is defined." >&2;}
5883
5884   rm -f "$tmp/stdin"
5885   case $ac_file in
5886   -) cat "$tmp/out"; rm -f "$tmp/out";;
5887   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5888   esac
5889  ;;
5890   :H)
5891   #
5892   # CONFIG_HEADER
5893   #
5894 _ACEOF
5895
5896 # Transform confdefs.h into a sed script `conftest.defines', that
5897 # substitutes the proper values into config.h.in to produce config.h.
5898 rm -f conftest.defines conftest.tail
5899 # First, append a space to every undef/define line, to ease matching.
5900 echo 's/$/ /' >conftest.defines
5901 # Then, protect against being on the right side of a sed subst, or in
5902 # an unquoted here document, in config.status.  If some macros were
5903 # called several times there might be several #defines for the same
5904 # symbol, which is useless.  But do not sort them, since the last
5905 # AC_DEFINE must be honored.
5906 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5907 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
5908 # NAME is the cpp macro being defined, VALUE is the value it is being given.
5909 # PARAMS is the parameter list in the macro definition--in most cases, it's
5910 # just an empty string.
5911 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
5912 ac_dB='\\)[      (].*,\\1define\\2'
5913 ac_dC=' '
5914 ac_dD=' ,'
5915
5916 uniq confdefs.h |
5917   sed -n '
5918         t rset
5919         :rset
5920         s/^[     ]*#[    ]*define[       ][      ]*//
5921         t ok
5922         d
5923         :ok
5924         s/[\\&,]/\\&/g
5925         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
5926         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
5927   ' >>conftest.defines
5928
5929 # Remove the space that was appended to ease matching.
5930 # Then replace #undef with comments.  This is necessary, for
5931 # example, in the case of _POSIX_SOURCE, which is predefined and required
5932 # on some systems where configure will not decide to define it.
5933 # (The regexp can be short, since the line contains either #define or #undef.)
5934 echo 's/ $//
5935 s,^[     #]*u.*,/* & */,' >>conftest.defines
5936
5937 # Break up conftest.defines:
5938 ac_max_sed_lines=50
5939
5940 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
5941 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
5942 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
5943 # et cetera.
5944 ac_in='$ac_file_inputs'
5945 ac_out='"$tmp/out1"'
5946 ac_nxt='"$tmp/out2"'
5947
5948 while :
5949 do
5950   # Write a here document:
5951     cat >>$CONFIG_STATUS <<_ACEOF
5952     # First, check the format of the line:
5953     cat >"\$tmp/defines.sed" <<\\CEOF
5954 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
5955 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
5956 b
5957 :def
5958 _ACEOF
5959   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
5960   echo 'CEOF
5961     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
5962   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
5963   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
5964   grep . conftest.tail >/dev/null || break
5965   rm -f conftest.defines
5966   mv conftest.tail conftest.defines
5967 done
5968 rm -f conftest.defines conftest.tail
5969
5970 echo "ac_result=$ac_in" >>$CONFIG_STATUS
5971 cat >>$CONFIG_STATUS <<\_ACEOF
5972   if test x"$ac_file" != x-; then
5973     echo "/* $configure_input  */" >"$tmp/config.h"
5974     cat "$ac_result" >>"$tmp/config.h"
5975     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
5976       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5977 echo "$as_me: $ac_file is unchanged" >&6;}
5978     else
5979       rm -f $ac_file
5980       mv "$tmp/config.h" $ac_file
5981     fi
5982   else
5983     echo "/* $configure_input  */"
5984     cat "$ac_result"
5985   fi
5986   rm -f "$tmp/out12"
5987 # Compute $ac_file's index in $config_headers.
5988 _am_stamp_count=1
5989 for _am_header in $config_headers :; do
5990   case $_am_header in
5991     $ac_file | $ac_file:* )
5992       break ;;
5993     * )
5994       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5995   esac
5996 done
5997 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
5998 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5999          X$ac_file : 'X\(//\)[^/]' \| \
6000          X$ac_file : 'X\(//\)$' \| \
6001          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
6002 echo X$ac_file |
6003     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6004             s//\1/
6005             q
6006           }
6007           /^X\(\/\/\)[^/].*/{
6008             s//\1/
6009             q
6010           }
6011           /^X\(\/\/\)$/{
6012             s//\1/
6013             q
6014           }
6015           /^X\(\/\).*/{
6016             s//\1/
6017             q
6018           }
6019           s/.*/./; q'`/stamp-h$_am_stamp_count
6020  ;;
6021
6022   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
6023 echo "$as_me: executing $ac_file commands" >&6;}
6024  ;;
6025   esac
6026
6027
6028   case $ac_file$ac_mode in
6029     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6030   # Strip MF so we end up with the name of the file.
6031   mf=`echo "$mf" | sed -e 's/:.*$//'`
6032   # Check whether this is an Automake generated Makefile or not.
6033   # We used to match only the files named `Makefile.in', but
6034   # some people rename them; so instead we look at the file content.
6035   # Grep'ing the first line is not enough: some people post-process
6036   # each Makefile.in and add a new line on top of each file to say so.
6037   # So let's grep whole file.
6038   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6039     dirpart=`$as_dirname -- "$mf" ||
6040 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6041          X"$mf" : 'X\(//\)[^/]' \| \
6042          X"$mf" : 'X\(//\)$' \| \
6043          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6044 echo X"$mf" |
6045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6046             s//\1/
6047             q
6048           }
6049           /^X\(\/\/\)[^/].*/{
6050             s//\1/
6051             q
6052           }
6053           /^X\(\/\/\)$/{
6054             s//\1/
6055             q
6056           }
6057           /^X\(\/\).*/{
6058             s//\1/
6059             q
6060           }
6061           s/.*/./; q'`
6062   else
6063     continue
6064   fi
6065   # Extract the definition of DEPDIR, am__include, and am__quote
6066   # from the Makefile without running `make'.
6067   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6068   test -z "$DEPDIR" && continue
6069   am__include=`sed -n 's/^am__include = //p' < "$mf"`
6070   test -z "am__include" && continue
6071   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6072   # When using ansi2knr, U may be empty or an underscore; expand it
6073   U=`sed -n 's/^U = //p' < "$mf"`
6074   # Find all dependency output files, they are included files with
6075   # $(DEPDIR) in their names.  We invoke sed twice because it is the
6076   # simplest approach to changing $(DEPDIR) to its actual value in the
6077   # expansion.
6078   for file in `sed -n "
6079     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6080        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6081     # Make sure the directory exists.
6082     test -f "$dirpart/$file" && continue
6083     fdir=`$as_dirname -- "$file" ||
6084 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6085          X"$file" : 'X\(//\)[^/]' \| \
6086          X"$file" : 'X\(//\)$' \| \
6087          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6088 echo X"$file" |
6089     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6090             s//\1/
6091             q
6092           }
6093           /^X\(\/\/\)[^/].*/{
6094             s//\1/
6095             q
6096           }
6097           /^X\(\/\/\)$/{
6098             s//\1/
6099             q
6100           }
6101           /^X\(\/\).*/{
6102             s//\1/
6103             q
6104           }
6105           s/.*/./; q'`
6106     { as_dir=$dirpart/$fdir
6107   case $as_dir in #(
6108   -*) as_dir=./$as_dir;;
6109   esac
6110   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6111     as_dirs=
6112     while :; do
6113       case $as_dir in #(
6114       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6115       *) as_qdir=$as_dir;;
6116       esac
6117       as_dirs="'$as_qdir' $as_dirs"
6118       as_dir=`$as_dirname -- "$as_dir" ||
6119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6120          X"$as_dir" : 'X\(//\)[^/]' \| \
6121          X"$as_dir" : 'X\(//\)$' \| \
6122          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6123 echo X"$as_dir" |
6124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6125             s//\1/
6126             q
6127           }
6128           /^X\(\/\/\)[^/].*/{
6129             s//\1/
6130             q
6131           }
6132           /^X\(\/\/\)$/{
6133             s//\1/
6134             q
6135           }
6136           /^X\(\/\).*/{
6137             s//\1/
6138             q
6139           }
6140           s/.*/./; q'`
6141       test -d "$as_dir" && break
6142     done
6143     test -z "$as_dirs" || eval "mkdir $as_dirs"
6144   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6145 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6146    { (exit 1); exit 1; }; }; }
6147     # echo "creating $dirpart/$file"
6148     echo '# dummy' > "$dirpart/$file"
6149   done
6150 done
6151  ;;
6152     "default":C)  ;;
6153
6154   esac
6155 done # for ac_tag
6156
6157
6158 { (exit 0); exit 0; }
6159 _ACEOF
6160 chmod +x $CONFIG_STATUS
6161 ac_clean_files=$ac_clean_files_save
6162
6163
6164 # configure is writing to config.log, and then calls config.status.
6165 # config.status does its own redirection, appending to config.log.
6166 # Unfortunately, on DOS this fails, as config.log is still kept open
6167 # by configure, so config.status won't be able to write to it; its
6168 # output is simply discarded.  So we exec the FD to /dev/null,
6169 # effectively closing config.log, so it can be properly (re)opened and
6170 # appended to by config.status.  When coming back to configure, we
6171 # need to make the FD available again.
6172 if test "$no_create" != yes; then
6173   ac_cs_success=:
6174   ac_config_status_args=
6175   test "$silent" = yes &&
6176     ac_config_status_args="$ac_config_status_args --quiet"
6177   exec 5>/dev/null
6178   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6179   exec 5>>config.log
6180   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6181   # would make configure fail if this is the last instruction.
6182   $ac_cs_success || { (exit 1); exit 1; }
6183 fi
6184