OSDN Git Service

2007-01-31 Daniel Franke <franke.daniel@gmail.com>
[pf3gnuchains/gcc-fork.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='GNU OpenMP Runtime Library'
269 PACKAGE_TARNAME='libgomp'
270 PACKAGE_VERSION='1.0'
271 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
272 PACKAGE_BUGREPORT=''
273
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LN_S LIBTOOL enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION CPP CPPFLAGS EGREP SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r "$srcdir/$ac_unique_file"; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r "$srcdir/$ac_unique_file"; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_FC_set=${FC+set}
753 ac_env_FC_value=$FC
754 ac_cv_env_FC_set=${FC+set}
755 ac_cv_env_FC_value=$FC
756 ac_env_FCFLAGS_set=${FCFLAGS+set}
757 ac_env_FCFLAGS_value=$FCFLAGS
758 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759 ac_cv_env_FCFLAGS_value=$FCFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPP_set=${CPP+set}
765 ac_env_CPP_value=$CPP
766 ac_cv_env_CPP_set=${CPP+set}
767 ac_cv_env_CPP_value=$CPP
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841   --target=TARGET   configure for building compilers for TARGET [HOST]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846   case $ac_init_help in
847      short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
848    esac
849   cat <<\_ACEOF
850
851 Optional Features:
852   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854   --enable-version-specific-runtime-libs
855                           Specify that runtime libraries should be installed
856                           in a compiler-specific directory [default=no]
857   --enable-linux-futex    Use the Linux futex system call
858                           [default=default]
859   --enable-generated-files-in-srcdir
860                           put copies of generated files in source dir intended
861                           for creating source tarballs for users without
862                           texinfo bison or flex. [default=no]
863   --enable-multilib       build many library versions (default)
864   --disable-dependency-tracking  speeds up one-time build
865   --enable-dependency-tracking   do not reject slow dependency extractors
866   --enable-shared=PKGS  build shared libraries default=yes
867   --enable-static=PKGS  build static libraries default=yes
868   --enable-fast-install=PKGS  optimize for fast installation default=yes
869   --disable-libtool-lock  avoid locking (might break parallel builds)
870   --enable-maintainer-mode  enable make rules and dependencies not useful
871                           (and sometimes confusing) to the casual installer
872   --enable-tls            Use thread-local storage [default=yes]
873   --enable-symvers=STYLE  enables symbol versioning of the shared library
874                           [default=yes]
875
876 Optional Packages:
877   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879   --with-gnu-ld           assume the C compiler uses GNU ld default=no
880   --with-pic              try to use only PIC/non-PIC objects default=use both
881
882 Some influential environment variables:
883   CC          C compiler command
884   CFLAGS      C compiler flags
885   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
886               nonstandard directory <lib dir>
887   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
888               headers in a nonstandard directory <include dir>
889   FC          Fortran compiler command
890   FCFLAGS     Fortran compiler flags
891   CPP         C preprocessor
892
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
895
896 _ACEOF
897 fi
898
899 if test "$ac_init_help" = "recursive"; then
900   # If there are subdirs, report their specific --help.
901   ac_popdir=`pwd`
902   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903     test -d $ac_dir || continue
904     ac_builddir=.
905
906 if test "$ac_dir" != .; then
907   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908   # A "../" for each directory in $ac_dir_suffix.
909   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911   ac_dir_suffix= ac_top_builddir=
912 fi
913
914 case $srcdir in
915   .)  # No --srcdir option.  We are building in place.
916     ac_srcdir=.
917     if test -z "$ac_top_builddir"; then
918        ac_top_srcdir=.
919     else
920        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921     fi ;;
922   [\\/]* | ?:[\\/]* )  # Absolute path.
923     ac_srcdir=$srcdir$ac_dir_suffix;
924     ac_top_srcdir=$srcdir ;;
925   *) # Relative path.
926     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927     ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
932 case `pwd` in
933 .) ac_abs_builddir="$ac_dir";;
934 *)
935   case "$ac_dir" in
936   .) ac_abs_builddir=`pwd`;;
937   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938   *) ac_abs_builddir=`pwd`/"$ac_dir";;
939   esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *)
944   case ${ac_top_builddir}. in
945   .) ac_abs_top_builddir=$ac_abs_builddir;;
946   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948   esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
952 *)
953   case $ac_srcdir in
954   .) ac_abs_srcdir=$ac_abs_builddir;;
955   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957   esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *)
962   case $ac_top_srcdir in
963   .) ac_abs_top_srcdir=$ac_abs_builddir;;
964   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966   esac;;
967 esac
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991 GNU OpenMP Runtime Library configure 1.0
992 generated by GNU Autoconf 2.59
993
994 Copyright (C) 2003 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997 _ACEOF
998   exit 0
999 fi
1000 exec 5>config.log
1001 cat >&5 <<_ACEOF
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1004
1005 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1006 generated by GNU Autoconf 2.59.  Invocation command line was
1007
1008   $ $0 $@
1009
1010 _ACEOF
1011 {
1012 cat <<_ASUNAME
1013 ## --------- ##
1014 ## Platform. ##
1015 ## --------- ##
1016
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
1026 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
1034 _ASUNAME
1035
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 for as_dir in $PATH
1038 do
1039   IFS=$as_save_IFS
1040   test -z "$as_dir" && as_dir=.
1041   echo "PATH: $as_dir"
1042 done
1043
1044 } >&5
1045
1046 cat >&5 <<_ACEOF
1047
1048
1049 ## ----------- ##
1050 ## Core tests. ##
1051 ## ----------- ##
1052
1053 _ACEOF
1054
1055
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_configure_args=
1062 ac_configure_args0=
1063 ac_configure_args1=
1064 ac_sep=
1065 ac_must_keep_next=false
1066 for ac_pass in 1 2
1067 do
1068   for ac_arg
1069   do
1070     case $ac_arg in
1071     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073     | -silent | --silent | --silen | --sile | --sil)
1074       continue ;;
1075     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077     esac
1078     case $ac_pass in
1079     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080     2)
1081       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082       if test $ac_must_keep_next = true; then
1083         ac_must_keep_next=false # Got value, back to normal.
1084       else
1085         case $ac_arg in
1086           *=* | --config-cache | -C | -disable-* | --disable-* \
1087           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089           | -with-* | --with-* | -without-* | --without-* | --x)
1090             case "$ac_configure_args0 " in
1091               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092             esac
1093             ;;
1094           -* ) ac_must_keep_next=true ;;
1095         esac
1096       fi
1097       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098       # Get rid of the leading space.
1099       ac_sep=" "
1100       ;;
1101     esac
1102   done
1103 done
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log.  We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113   # Save into config.log some information that might help in debugging.
1114   {
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1121 _ASBOX
1122     echo
1123     # The following way of writing the cache mishandles newlines in values,
1124 {
1125   (set) 2>&1 |
1126     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127     *ac_space=\ *)
1128       sed -n \
1129         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131       ;;
1132     *)
1133       sed -n \
1134         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135       ;;
1136     esac;
1137 }
1138     echo
1139
1140     cat <<\_ASBOX
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1144 _ASBOX
1145     echo
1146     for ac_var in $ac_subst_vars
1147     do
1148       eval ac_val=$`echo $ac_var`
1149       echo "$ac_var='"'"'$ac_val'"'"'"
1150     done | sort
1151     echo
1152
1153     if test -n "$ac_subst_files"; then
1154       cat <<\_ASBOX
1155 ## ------------- ##
1156 ## Output files. ##
1157 ## ------------- ##
1158 _ASBOX
1159       echo
1160       for ac_var in $ac_subst_files
1161       do
1162         eval ac_val=$`echo $ac_var`
1163         echo "$ac_var='"'"'$ac_val'"'"'"
1164       done | sort
1165       echo
1166     fi
1167
1168     if test -s confdefs.h; then
1169       cat <<\_ASBOX
1170 ## ----------- ##
1171 ## confdefs.h. ##
1172 ## ----------- ##
1173 _ASBOX
1174       echo
1175       sed "/^$/d" confdefs.h | sort
1176       echo
1177     fi
1178     test "$ac_signal" != 0 &&
1179       echo "$as_me: caught signal $ac_signal"
1180     echo "$as_me: exit $exit_status"
1181   } >&5
1182   rm -f core *.core &&
1183   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184     exit $exit_status
1185      ' 0
1186 for ac_signal in 1 2 13 15; do
1187   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 done
1189 ac_signal=0
1190
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 echo >confdefs.h
1195
1196 # Predefined preprocessor variables.
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 _ACEOF
1221
1222
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226   if test "x$prefix" != xNONE; then
1227     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228   else
1229     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230   fi
1231 fi
1232 for ac_site_file in $CONFIG_SITE; do
1233   if test -r "$ac_site_file"; then
1234     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236     sed 's/^/| /' "$ac_site_file" >&5
1237     . "$ac_site_file"
1238   fi
1239 done
1240
1241 if test -r "$cache_file"; then
1242   # Some versions of bash will fail to source /dev/null (special
1243   # files actually), so we avoid doing that.
1244   if test -f "$cache_file"; then
1245     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1247     case $cache_file in
1248       [\\/]* | ?:[\\/]* ) . $cache_file;;
1249       *)                      . ./$cache_file;;
1250     esac
1251   fi
1252 else
1253   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1255   >$cache_file
1256 fi
1257
1258 # Check that the precious variables saved in the cache have kept the same
1259 # value.
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264   eval ac_new_set=\$ac_env_${ac_var}_set
1265   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266   eval ac_new_val="\$ac_env_${ac_var}_value"
1267   case $ac_old_set,$ac_new_set in
1268     set,)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,set)
1273       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275       ac_cache_corrupted=: ;;
1276     ,);;
1277     *)
1278       if test "x$ac_old_val" != "x$ac_new_val"; then
1279         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1282 echo "$as_me:   former value:  $ac_old_val" >&2;}
1283         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1284 echo "$as_me:   current value: $ac_new_val" >&2;}
1285         ac_cache_corrupted=:
1286       fi;;
1287   esac
1288   # Pass precious variables to config.status.
1289   if test "$ac_new_set" = set; then
1290     case $ac_new_val in
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     *) ac_arg=$ac_var=$ac_new_val ;;
1294     esac
1295     case " $ac_configure_args " in
1296       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1297       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298     esac
1299   fi
1300 done
1301 if $ac_cache_corrupted; then
1302   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306    { (exit 1); exit 1; }; }
1307 fi
1308
1309 ac_ext=c
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341           ac_config_headers="$ac_config_headers config.h"
1342
1343
1344 # -------
1345 # Options
1346 # -------
1347
1348 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1349 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1350  # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1351 if test "${enable_version_specific_runtime_libs+set}" = set; then
1352   enableval="$enable_version_specific_runtime_libs"
1353
1354       case "$enableval" in
1355        yes|no) ;;
1356        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1357 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1358    { (exit 1); exit 1; }; } ;;
1359                           esac
1360
1361 else
1362   enable_version_specific_runtime_libs=no
1363 fi;
1364
1365 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1366 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1367
1368 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1369 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1370  # Check whether --enable-linux-futex or --disable-linux-futex was given.
1371 if test "${enable_linux_futex+set}" = set; then
1372   enableval="$enable_linux_futex"
1373
1374       case "$enableval" in
1375        yes|no|default) ;;
1376        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1377 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
1378    { (exit 1); exit 1; }; } ;;
1379                           esac
1380
1381 else
1382   enable_linux_futex=default
1383 fi;
1384
1385 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1386 echo "${ECHO_T}$enable_linux_futex" >&6
1387
1388 # We would like our source tree to be readonly. However when releases or
1389 # pre-releases are generated, the flex/bison generated files as well as the
1390 # various formats of manuals need to be included along with the rest of the
1391 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1392 # just that.
1393 echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5
1394 echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6
1395  # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1396 if test "${enable_generated_files_in_srcdir+set}" = set; then
1397   enableval="$enable_generated_files_in_srcdir"
1398
1399       case "$enableval" in
1400        yes|no) ;;
1401        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5
1402 echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;}
1403    { (exit 1); exit 1; }; } ;;
1404                           esac
1405
1406 else
1407   enable_generated_files_in_srcdir=no
1408 fi;
1409
1410 echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5
1411 echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6
1412
1413
1414 if test "$enable_generated_files_in_srcdir" = yes; then
1415   GENINSRC_TRUE=
1416   GENINSRC_FALSE='#'
1417 else
1418   GENINSRC_TRUE='#'
1419   GENINSRC_FALSE=
1420 fi
1421
1422
1423
1424 # -------
1425 # -------
1426
1427 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1428 #
1429 # You will slowly go insane if you do not grok the following fact:  when
1430 # building this library, the top-level /target/ becomes the library's /host/.
1431 #
1432 # configure then causes --target to default to --host, exactly like any
1433 # other package using autoconf.  Therefore, 'target' and 'host' will
1434 # always be the same.  This makes sense both for native and cross compilers
1435 # just think about it for a little while.  :-)
1436 #
1437 # Also, if this library is being configured as part of a cross compiler, the
1438 # top-level configure script will pass the "real" host as $with_cross_host.
1439 #
1440 # Do not delete or change the following two lines.  For why, see
1441 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1442 ac_aux_dir=
1443 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1444   if test -f $ac_dir/install-sh; then
1445     ac_aux_dir=$ac_dir
1446     ac_install_sh="$ac_aux_dir/install-sh -c"
1447     break
1448   elif test -f $ac_dir/install.sh; then
1449     ac_aux_dir=$ac_dir
1450     ac_install_sh="$ac_aux_dir/install.sh -c"
1451     break
1452   elif test -f $ac_dir/shtool; then
1453     ac_aux_dir=$ac_dir
1454     ac_install_sh="$ac_aux_dir/shtool install -c"
1455     break
1456   fi
1457 done
1458 if test -z "$ac_aux_dir"; then
1459   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1460 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1461    { (exit 1); exit 1; }; }
1462 fi
1463 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1464 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1465 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1466
1467 # Make sure we can run config.sub.
1468 $ac_config_sub sun4 >/dev/null 2>&1 ||
1469   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1470 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1471    { (exit 1); exit 1; }; }
1472
1473 echo "$as_me:$LINENO: checking build system type" >&5
1474 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1475 if test "${ac_cv_build+set}" = set; then
1476   echo $ECHO_N "(cached) $ECHO_C" >&6
1477 else
1478   ac_cv_build_alias=$build_alias
1479 test -z "$ac_cv_build_alias" &&
1480   ac_cv_build_alias=`$ac_config_guess`
1481 test -z "$ac_cv_build_alias" &&
1482   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1483 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1484    { (exit 1); exit 1; }; }
1485 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1486   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1487 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1488    { (exit 1); exit 1; }; }
1489
1490 fi
1491 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1492 echo "${ECHO_T}$ac_cv_build" >&6
1493 build=$ac_cv_build
1494 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1495 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1496 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1497
1498
1499 echo "$as_me:$LINENO: checking host system type" >&5
1500 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1501 if test "${ac_cv_host+set}" = set; then
1502   echo $ECHO_N "(cached) $ECHO_C" >&6
1503 else
1504   ac_cv_host_alias=$host_alias
1505 test -z "$ac_cv_host_alias" &&
1506   ac_cv_host_alias=$ac_cv_build_alias
1507 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1508   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1509 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1510    { (exit 1); exit 1; }; }
1511
1512 fi
1513 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1514 echo "${ECHO_T}$ac_cv_host" >&6
1515 host=$ac_cv_host
1516 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1517 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1518 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1519
1520
1521 echo "$as_me:$LINENO: checking target system type" >&5
1522 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1523 if test "${ac_cv_target+set}" = set; then
1524   echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526   ac_cv_target_alias=$target_alias
1527 test "x$ac_cv_target_alias" = "x" &&
1528   ac_cv_target_alias=$ac_cv_host_alias
1529 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1530   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1531 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1532    { (exit 1); exit 1; }; }
1533
1534 fi
1535 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1536 echo "${ECHO_T}$ac_cv_target" >&6
1537 target=$ac_cv_target
1538 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
1542
1543 # The aliases save the names the user supplied, while $host etc.
1544 # will get canonicalized.
1545 test -n "$target_alias" &&
1546   test "$program_prefix$program_suffix$program_transform_name" = \
1547     NONENONEs,x,x, &&
1548   program_prefix=${target_alias}-
1549 target_alias=${target_alias-$host_alias}
1550
1551 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1552 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1553 #  1.9.0:  minimum required version
1554 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1555 #              of other PACKAGE_* variables will, however, and there's nothing
1556 #              we can do about that; they come from AC_INIT).
1557 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1558 #            file in the top srcdir, etc, etc), so stop complaining.
1559 #  -Wall:  turns on all automake warnings...
1560 #  -Wno-portability:  ...except this one, since GNU make is required.
1561 #  -Wno-override: ... and this one, since we do want this in testsuite.
1562 am__api_version="1.9"
1563 # Find a good install program.  We prefer a C program (faster),
1564 # so one script is as good as another.  But avoid the broken or
1565 # incompatible versions:
1566 # SysV /etc/install, /usr/sbin/install
1567 # SunOS /usr/etc/install
1568 # IRIX /sbin/install
1569 # AIX /bin/install
1570 # AmigaOS /C/install, which installs bootblocks on floppy discs
1571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1574 # OS/2's system install, which has a completely different semantic
1575 # ./install, which can be erroneously created by make from ./install.sh.
1576 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1577 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1578 if test -z "$INSTALL"; then
1579 if test "${ac_cv_path_install+set}" = set; then
1580   echo $ECHO_N "(cached) $ECHO_C" >&6
1581 else
1582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   # Account for people who put trailing slashes in PATH elements.
1588 case $as_dir/ in
1589   ./ | .// | /cC/* | \
1590   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1591   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1592   /usr/ucb/* ) ;;
1593   *)
1594     # OSF1 and SCO ODT 3.0 have their own names for install.
1595     # Don't use installbsd from OSF since it installs stuff as root
1596     # by default.
1597     for ac_prog in ginstall scoinst install; do
1598       for ac_exec_ext in '' $ac_executable_extensions; do
1599         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1600           if test $ac_prog = install &&
1601             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1602             # AIX install.  It has an incompatible calling convention.
1603             :
1604           elif test $ac_prog = install &&
1605             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606             # program-specific install script used by HP pwplus--don't use.
1607             :
1608           else
1609             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1610             break 3
1611           fi
1612         fi
1613       done
1614     done
1615     ;;
1616 esac
1617 done
1618
1619
1620 fi
1621   if test "${ac_cv_path_install+set}" = set; then
1622     INSTALL=$ac_cv_path_install
1623   else
1624     # As a last resort, use the slow shell script.  We don't cache a
1625     # path for INSTALL within a source directory, because that will
1626     # break other packages using the cache if that directory is
1627     # removed, or if the path is relative.
1628     INSTALL=$ac_install_sh
1629   fi
1630 fi
1631 echo "$as_me:$LINENO: result: $INSTALL" >&5
1632 echo "${ECHO_T}$INSTALL" >&6
1633
1634 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1635 # It thinks the first close brace ends the variable substitution.
1636 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1637
1638 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1639
1640 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1641
1642 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1643 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1644 # Just in case
1645 sleep 1
1646 echo timestamp > conftest.file
1647 # Do `set' in a subshell so we don't clobber the current shell's
1648 # arguments.  Must try -L first in case configure is actually a
1649 # symlink; some systems play weird games with the mod time of symlinks
1650 # (eg FreeBSD returns the mod time of the symlink's containing
1651 # directory).
1652 if (
1653    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1654    if test "$*" = "X"; then
1655       # -L didn't work.
1656       set X `ls -t $srcdir/configure conftest.file`
1657    fi
1658    rm -f conftest.file
1659    if test "$*" != "X $srcdir/configure conftest.file" \
1660       && test "$*" != "X conftest.file $srcdir/configure"; then
1661
1662       # If neither matched, then we have a broken ls.  This can happen
1663       # if, for instance, CONFIG_SHELL is bash and it inherits a
1664       # broken ls alias from the environment.  This has actually
1665       # happened.  Such a system could not be considered "sane".
1666       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1667 alias in your environment" >&5
1668 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1669 alias in your environment" >&2;}
1670    { (exit 1); exit 1; }; }
1671    fi
1672
1673    test "$2" = conftest.file
1674    )
1675 then
1676    # Ok.
1677    :
1678 else
1679    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1680 Check your system clock" >&5
1681 echo "$as_me: error: newly created file is older than distributed files!
1682 Check your system clock" >&2;}
1683    { (exit 1); exit 1; }; }
1684 fi
1685 echo "$as_me:$LINENO: result: yes" >&5
1686 echo "${ECHO_T}yes" >&6
1687 test "$program_prefix" != NONE &&
1688   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1689 # Use a double $ so make ignores it.
1690 test "$program_suffix" != NONE &&
1691   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1692 # Double any \ or $.  echo might interpret backslashes.
1693 # By default was `s,x,x', remove it if useless.
1694 cat <<\_ACEOF >conftest.sed
1695 s/[\\$]/&&/g;s/;s,x,x,$//
1696 _ACEOF
1697 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1698 rm conftest.sed
1699
1700 # expand $ac_aux_dir to an absolute path
1701 am_aux_dir=`cd $ac_aux_dir && pwd`
1702
1703 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1704 # Use eval to expand $SHELL
1705 if eval "$MISSING --run true"; then
1706   am_missing_run="$MISSING --run "
1707 else
1708   am_missing_run=
1709   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1710 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1711 fi
1712
1713 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1714   # We used to keeping the `.' as first argument, in order to
1715   # allow $(mkdir_p) to be used without argument.  As in
1716   #   $(mkdir_p) $(somedir)
1717   # where $(somedir) is conditionally defined.  However this is wrong
1718   # for two reasons:
1719   #  1. if the package is installed by a user who cannot write `.'
1720   #     make install will fail,
1721   #  2. the above comment should most certainly read
1722   #     $(mkdir_p) $(DESTDIR)$(somedir)
1723   #     so it does not work when $(somedir) is undefined and
1724   #     $(DESTDIR) is not.
1725   #  To support the latter case, we have to write
1726   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1727   #  so the `.' trick is pointless.
1728   mkdir_p='mkdir -p --'
1729 else
1730   # On NextStep and OpenStep, the `mkdir' command does not
1731   # recognize any option.  It will interpret all options as
1732   # directories to create, and then abort because `.' already
1733   # exists.
1734   for d in ./-p ./--version;
1735   do
1736     test -d $d && rmdir $d
1737   done
1738   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1739   if test -f "$ac_aux_dir/mkinstalldirs"; then
1740     mkdir_p='$(mkinstalldirs)'
1741   else
1742     mkdir_p='$(install_sh) -d'
1743   fi
1744 fi
1745
1746 for ac_prog in gawk mawk nawk awk
1747 do
1748   # Extract the first word of "$ac_prog", so it can be a program name with args.
1749 set dummy $ac_prog; ac_word=$2
1750 echo "$as_me:$LINENO: checking for $ac_word" >&5
1751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752 if test "${ac_cv_prog_AWK+set}" = set; then
1753   echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755   if test -n "$AWK"; then
1756   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1757 else
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1760 do
1761   IFS=$as_save_IFS
1762   test -z "$as_dir" && as_dir=.
1763   for ac_exec_ext in '' $ac_executable_extensions; do
1764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765     ac_cv_prog_AWK="$ac_prog"
1766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767     break 2
1768   fi
1769 done
1770 done
1771
1772 fi
1773 fi
1774 AWK=$ac_cv_prog_AWK
1775 if test -n "$AWK"; then
1776   echo "$as_me:$LINENO: result: $AWK" >&5
1777 echo "${ECHO_T}$AWK" >&6
1778 else
1779   echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6
1781 fi
1782
1783   test -n "$AWK" && break
1784 done
1785
1786 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1787 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1788 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1789 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1790   echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792   cat >conftest.make <<\_ACEOF
1793 all:
1794         @echo 'ac_maketemp="$(MAKE)"'
1795 _ACEOF
1796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1797 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1798 if test -n "$ac_maketemp"; then
1799   eval ac_cv_prog_make_${ac_make}_set=yes
1800 else
1801   eval ac_cv_prog_make_${ac_make}_set=no
1802 fi
1803 rm -f conftest.make
1804 fi
1805 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1806   echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1808   SET_MAKE=
1809 else
1810   echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1812   SET_MAKE="MAKE=${MAKE-make}"
1813 fi
1814
1815 rm -rf .tst 2>/dev/null
1816 mkdir .tst 2>/dev/null
1817 if test -d .tst; then
1818   am__leading_dot=.
1819 else
1820   am__leading_dot=_
1821 fi
1822 rmdir .tst 2>/dev/null
1823
1824 # test to see if srcdir already configured
1825 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1826    test -f $srcdir/config.status; then
1827   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1828 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1829    { (exit 1); exit 1; }; }
1830 fi
1831
1832 # test whether we have cygpath
1833 if test -z "$CYGPATH_W"; then
1834   if (cygpath --version) >/dev/null 2>/dev/null; then
1835     CYGPATH_W='cygpath -w'
1836   else
1837     CYGPATH_W=echo
1838   fi
1839 fi
1840
1841
1842 # Define the identity of the package.
1843  PACKAGE='libgomp'
1844  VERSION='1.0'
1845
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE "$PACKAGE"
1849 _ACEOF
1850
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define VERSION "$VERSION"
1854 _ACEOF
1855
1856 # Some tools Automake needs.
1857
1858 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1859
1860
1861 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1862
1863
1864 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1865
1866
1867 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1868
1869
1870 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1871
1872 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1873
1874 # Installed binaries are usually stripped using `strip' when the user
1875 # run `make install-strip'.  However `strip' might not be the right
1876 # tool to use in cross-compilation environments, therefore Automake
1877 # will honor the `STRIP' environment variable to overrule this program.
1878 if test "$cross_compiling" != no; then
1879   if test -n "$ac_tool_prefix"; then
1880   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1881 set dummy ${ac_tool_prefix}strip; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_STRIP+set}" = set; then
1885   echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887   if test -n "$STRIP"; then
1888   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1892 do
1893   IFS=$as_save_IFS
1894   test -z "$as_dir" && as_dir=.
1895   for ac_exec_ext in '' $ac_executable_extensions; do
1896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899     break 2
1900   fi
1901 done
1902 done
1903
1904 fi
1905 fi
1906 STRIP=$ac_cv_prog_STRIP
1907 if test -n "$STRIP"; then
1908   echo "$as_me:$LINENO: result: $STRIP" >&5
1909 echo "${ECHO_T}$STRIP" >&6
1910 else
1911   echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1913 fi
1914
1915 fi
1916 if test -z "$ac_cv_prog_STRIP"; then
1917   ac_ct_STRIP=$STRIP
1918   # Extract the first word of "strip", so it can be a program name with args.
1919 set dummy strip; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1923   echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925   if test -n "$ac_ct_STRIP"; then
1926   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
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   for ac_exec_ext in '' $ac_executable_extensions; do
1934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935     ac_cv_prog_ac_ct_STRIP="strip"
1936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937     break 2
1938   fi
1939 done
1940 done
1941
1942   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1943 fi
1944 fi
1945 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1946 if test -n "$ac_ct_STRIP"; then
1947   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1948 echo "${ECHO_T}$ac_ct_STRIP" >&6
1949 else
1950   echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952 fi
1953
1954   STRIP=$ac_ct_STRIP
1955 else
1956   STRIP="$ac_cv_prog_STRIP"
1957 fi
1958
1959 fi
1960 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1961
1962 # We need awk for the "check" target.  The system "awk" is bad on
1963 # some platforms.
1964 # Always define AMTAR for backward compatibility.
1965
1966 AMTAR=${AMTAR-"${am_missing_run}tar"}
1967
1968 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1969
1970
1971
1972
1973
1974 # Default to --enable-multilib
1975 # Check whether --enable-multilib or --disable-multilib was given.
1976 if test "${enable_multilib+set}" = set; then
1977   enableval="$enable_multilib"
1978   case "$enableval" in
1979   yes) multilib=yes ;;
1980   no)  multilib=no ;;
1981   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1982 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1983    { (exit 1); exit 1; }; } ;;
1984  esac
1985 else
1986   multilib=yes
1987 fi;
1988
1989 # We may get other options which we leave undocumented:
1990 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1991 # See config-ml.in if you want the gory details.
1992
1993 if test "$srcdir" = "."; then
1994   if test "$with_target_subdir" != "."; then
1995     multi_basedir="$srcdir/$with_multisrctop../.."
1996   else
1997     multi_basedir="$srcdir/$with_multisrctop.."
1998   fi
1999 else
2000   multi_basedir="$srcdir/.."
2001 fi
2002
2003
2004 # Even if the default multilib is not a cross compilation,
2005 # it may be that some of the other multilibs are.
2006 if test $cross_compiling = no && test $multilib = yes \
2007    && test "x${with_multisubdir}" != x ; then
2008    cross_compiling=maybe
2009 fi
2010
2011           ac_config_commands="$ac_config_commands default-1"
2012
2013
2014 # Calculate toolexeclibdir
2015 # Also toolexecdir, though it's only used in toolexeclibdir
2016 case ${enable_version_specific_runtime_libs} in
2017   yes)
2018     # Need the gcc compiler version to know where to install libraries
2019     # and header files if --enable-version-specific-runtime-libs option
2020     # is selected.
2021     toolexecdir='$(libdir)/gcc/$(target_alias)'
2022     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2023     ;;
2024   no)
2025     if test -n "$with_cross_host" &&
2026        test x"$with_cross_host" != x"no"; then
2027       # Install a library built with a cross compiler in tooldir, not libdir.
2028       toolexecdir='$(exec_prefix)/$(target_alias)'
2029       toolexeclibdir='$(toolexecdir)/lib'
2030     else
2031       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2032       toolexeclibdir='$(libdir)'
2033     fi
2034     multi_os_directory=`$CC -print-multi-os-directory`
2035     case $multi_os_directory in
2036       .) ;; # Avoid trailing /.
2037       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2038     esac
2039     ;;
2040 esac
2041
2042
2043
2044 # Check the compiler.
2045 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2046 # We must force CC to /not/ be precious variables; otherwise
2047 # the wrong, non-multilib-adjusted value will be used in multilibs.
2048 # As a side effect, we have to subst CFLAGS ourselves.
2049
2050
2051
2052 ac_ext=c
2053 ac_cpp='$CPP $CPPFLAGS'
2054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057 if test -n "$ac_tool_prefix"; then
2058   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2059 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2060 echo "$as_me:$LINENO: checking for $ac_word" >&5
2061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062 if test "${ac_cv_prog_CC+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   if test -n "$CC"; then
2066   ac_cv_prog_CC="$CC" # Let the user override the test.
2067 else
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2070 do
2071   IFS=$as_save_IFS
2072   test -z "$as_dir" && as_dir=.
2073   for ac_exec_ext in '' $ac_executable_extensions; do
2074   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077     break 2
2078   fi
2079 done
2080 done
2081
2082 fi
2083 fi
2084 CC=$ac_cv_prog_CC
2085 if test -n "$CC"; then
2086   echo "$as_me:$LINENO: result: $CC" >&5
2087 echo "${ECHO_T}$CC" >&6
2088 else
2089   echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2091 fi
2092
2093 fi
2094 if test -z "$ac_cv_prog_CC"; then
2095   ac_ct_CC=$CC
2096   # Extract the first word of "gcc", so it can be a program name with args.
2097 set dummy gcc; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test -n "$ac_ct_CC"; then
2104   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109   IFS=$as_save_IFS
2110   test -z "$as_dir" && as_dir=.
2111   for ac_exec_ext in '' $ac_executable_extensions; do
2112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113     ac_cv_prog_ac_ct_CC="gcc"
2114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115     break 2
2116   fi
2117 done
2118 done
2119
2120 fi
2121 fi
2122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123 if test -n "$ac_ct_CC"; then
2124   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125 echo "${ECHO_T}$ac_ct_CC" >&6
2126 else
2127   echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2129 fi
2130
2131   CC=$ac_ct_CC
2132 else
2133   CC="$ac_cv_prog_CC"
2134 fi
2135
2136 if test -z "$CC"; then
2137   if test -n "$ac_tool_prefix"; then
2138   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}cc; ac_word=$2
2140 echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143   echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145   if test -n "$CC"; then
2146   ac_cv_prog_CC="$CC" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151   IFS=$as_save_IFS
2152   test -z "$as_dir" && as_dir=.
2153   for ac_exec_ext in '' $ac_executable_extensions; do
2154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155     ac_cv_prog_CC="${ac_tool_prefix}cc"
2156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157     break 2
2158   fi
2159 done
2160 done
2161
2162 fi
2163 fi
2164 CC=$ac_cv_prog_CC
2165 if test -n "$CC"; then
2166   echo "$as_me:$LINENO: result: $CC" >&5
2167 echo "${ECHO_T}$CC" >&6
2168 else
2169   echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2171 fi
2172
2173 fi
2174 if test -z "$ac_cv_prog_CC"; then
2175   ac_ct_CC=$CC
2176   # Extract the first word of "cc", so it can be a program name with args.
2177 set dummy cc; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   if test -n "$ac_ct_CC"; then
2184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191   for ac_exec_ext in '' $ac_executable_extensions; do
2192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193     ac_cv_prog_ac_ct_CC="cc"
2194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195     break 2
2196   fi
2197 done
2198 done
2199
2200 fi
2201 fi
2202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203 if test -n "$ac_ct_CC"; then
2204   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205 echo "${ECHO_T}$ac_ct_CC" >&6
2206 else
2207   echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2209 fi
2210
2211   CC=$ac_ct_CC
2212 else
2213   CC="$ac_cv_prog_CC"
2214 fi
2215
2216 fi
2217 if test -z "$CC"; then
2218   # Extract the first word of "cc", so it can be a program name with args.
2219 set dummy cc; ac_word=$2
2220 echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   if test -n "$CC"; then
2226   ac_cv_prog_CC="$CC" # Let the user override the test.
2227 else
2228   ac_prog_rejected=no
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232   IFS=$as_save_IFS
2233   test -z "$as_dir" && as_dir=.
2234   for ac_exec_ext in '' $ac_executable_extensions; do
2235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2237        ac_prog_rejected=yes
2238        continue
2239      fi
2240     ac_cv_prog_CC="cc"
2241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242     break 2
2243   fi
2244 done
2245 done
2246
2247 if test $ac_prog_rejected = yes; then
2248   # We found a bogon in the path, so make sure we never use it.
2249   set dummy $ac_cv_prog_CC
2250   shift
2251   if test $# != 0; then
2252     # We chose a different compiler from the bogus one.
2253     # However, it has the same basename, so the bogon will be chosen
2254     # first if we set CC to just the basename; use the full file name.
2255     shift
2256     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2257   fi
2258 fi
2259 fi
2260 fi
2261 CC=$ac_cv_prog_CC
2262 if test -n "$CC"; then
2263   echo "$as_me:$LINENO: result: $CC" >&5
2264 echo "${ECHO_T}$CC" >&6
2265 else
2266   echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6
2268 fi
2269
2270 fi
2271 if test -z "$CC"; then
2272   if test -n "$ac_tool_prefix"; then
2273   for ac_prog in cl
2274   do
2275     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2277 echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280   echo $ECHO_N "(cached) $ECHO_C" >&6
2281 else
2282   if test -n "$CC"; then
2283   ac_cv_prog_CC="$CC" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290   for ac_exec_ext in '' $ac_executable_extensions; do
2291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294     break 2
2295   fi
2296 done
2297 done
2298
2299 fi
2300 fi
2301 CC=$ac_cv_prog_CC
2302 if test -n "$CC"; then
2303   echo "$as_me:$LINENO: result: $CC" >&5
2304 echo "${ECHO_T}$CC" >&6
2305 else
2306   echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6
2308 fi
2309
2310     test -n "$CC" && break
2311   done
2312 fi
2313 if test -z "$CC"; then
2314   ac_ct_CC=$CC
2315   for ac_prog in cl
2316 do
2317   # Extract the first word of "$ac_prog", so it can be a program name with args.
2318 set dummy $ac_prog; ac_word=$2
2319 echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2322   echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324   if test -n "$ac_ct_CC"; then
2325   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330   IFS=$as_save_IFS
2331   test -z "$as_dir" && as_dir=.
2332   for ac_exec_ext in '' $ac_executable_extensions; do
2333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334     ac_cv_prog_ac_ct_CC="$ac_prog"
2335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336     break 2
2337   fi
2338 done
2339 done
2340
2341 fi
2342 fi
2343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2344 if test -n "$ac_ct_CC"; then
2345   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2346 echo "${ECHO_T}$ac_ct_CC" >&6
2347 else
2348   echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2350 fi
2351
2352   test -n "$ac_ct_CC" && break
2353 done
2354
2355   CC=$ac_ct_CC
2356 fi
2357
2358 fi
2359
2360
2361 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: no acceptable C compiler found in \$PATH
2364 See \`config.log' for more details." >&2;}
2365    { (exit 1); exit 1; }; }
2366
2367 # Provide some information about the compiler.
2368 echo "$as_me:$LINENO:" \
2369      "checking for C compiler version" >&5
2370 ac_compiler=`set X $ac_compile; echo $2`
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372   (eval $ac_compiler --version </dev/null >&5) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377   (eval $ac_compiler -v </dev/null >&5) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382   (eval $ac_compiler -V </dev/null >&5) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }
2386
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 ac_clean_files_save=$ac_clean_files
2403 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404 # Try to create an executable without -o first, disregard a.out.
2405 # It will help us diagnose broken compilers, and finding out an intuition
2406 # of exeext.
2407 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411   (eval $ac_link_default) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; then
2415   # Find the output, starting from the most likely.  This scheme is
2416 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2417 # resort.
2418
2419 # Be careful to initialize this variable, since it used to be cached.
2420 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2421 ac_cv_exeext=
2422 # b.out is created by i960 compilers.
2423 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2424 do
2425   test -f "$ac_file" || continue
2426   case $ac_file in
2427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2428         ;;
2429     conftest.$ac_ext )
2430         # This is the source file.
2431         ;;
2432     [ab].out )
2433         # We found the default executable, but exeext='' is most
2434         # certainly right.
2435         break;;
2436     *.* )
2437         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438         # FIXME: I believe we export ac_cv_exeext for Libtool,
2439         # but it would be cool to find out if it's true.  Does anybody
2440         # maintain Libtool? --akim.
2441         export ac_cv_exeext
2442         break;;
2443     * )
2444         break;;
2445   esac
2446 done
2447 else
2448   echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2450
2451 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: C compiler cannot create executables
2454 See \`config.log' for more details." >&2;}
2455    { (exit 77); exit 77; }; }
2456 fi
2457
2458 ac_exeext=$ac_cv_exeext
2459 echo "$as_me:$LINENO: result: $ac_file" >&5
2460 echo "${ECHO_T}$ac_file" >&6
2461
2462 # Check the compiler produces executables we can run.  If not, either
2463 # the compiler is broken, or we cross compile.
2464 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2465 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2466 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2467 # If not cross compiling, check that we can run a simple program.
2468 if test "$cross_compiling" != yes; then
2469   if { ac_try='./$ac_file'
2470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471   (eval $ac_try) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; }; then
2475     cross_compiling=no
2476   else
2477     if test "$cross_compiling" = maybe; then
2478         cross_compiling=yes
2479     else
2480         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2481 If you meant to cross compile, use \`--host'.
2482 See \`config.log' for more details." >&5
2483 echo "$as_me: error: cannot run C compiled programs.
2484 If you meant to cross compile, use \`--host'.
2485 See \`config.log' for more details." >&2;}
2486    { (exit 1); exit 1; }; }
2487     fi
2488   fi
2489 fi
2490 echo "$as_me:$LINENO: result: yes" >&5
2491 echo "${ECHO_T}yes" >&6
2492
2493 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2494 ac_clean_files=$ac_clean_files_save
2495 # Check the compiler produces executables we can run.  If not, either
2496 # the compiler is broken, or we cross compile.
2497 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2499 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500 echo "${ECHO_T}$cross_compiling" >&6
2501
2502 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2505   (eval $ac_link) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; then
2509   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2510 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2511 # work properly (i.e., refer to `conftest.exe'), while it won't with
2512 # `rm'.
2513 for ac_file in conftest.exe conftest conftest.*; do
2514   test -f "$ac_file" || continue
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2517     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2518           export ac_cv_exeext
2519           break;;
2520     * ) break;;
2521   esac
2522 done
2523 else
2524   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527 See \`config.log' for more details." >&2;}
2528    { (exit 1); exit 1; }; }
2529 fi
2530
2531 rm -f conftest$ac_cv_exeext
2532 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533 echo "${ECHO_T}$ac_cv_exeext" >&6
2534
2535 rm -f conftest.$ac_ext
2536 EXEEXT=$ac_cv_exeext
2537 ac_exeext=$EXEEXT
2538 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2540 if test "${ac_cv_objext+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 rm -f conftest.o conftest.obj
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560   (eval $ac_compile) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; then
2564   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2565   case $ac_file in
2566     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2567     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2568        break;;
2569   esac
2570 done
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2578 See \`config.log' for more details." >&2;}
2579    { (exit 1); exit 1; }; }
2580 fi
2581
2582 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2583 fi
2584 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2585 echo "${ECHO_T}$ac_cv_objext" >&6
2586 OBJEXT=$ac_cv_objext
2587 ac_objext=$OBJEXT
2588 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591   echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593   cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h.  */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h.  */
2599
2600 int
2601 main ()
2602 {
2603 #ifndef __GNUC__
2604        choke me
2605 #endif
2606
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613   (eval $ac_compile) 2>conftest.er1
2614   ac_status=$?
2615   grep -v '^ *+' conftest.er1 >conftest.err
2616   rm -f conftest.er1
2617   cat conftest.err >&5
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); } &&
2620          { ac_try='test -z "$ac_c_werror_flag"
2621                          || test ! -s conftest.err'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; } &&
2627          { ac_try='test -s conftest.$ac_objext'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; }; then
2633   ac_compiler_gnu=yes
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 ac_compiler_gnu=no
2639 fi
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2642
2643 fi
2644 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646 GCC=`test $ac_compiler_gnu = yes && echo yes`
2647 ac_test_CFLAGS=${CFLAGS+set}
2648 ac_save_CFLAGS=$CFLAGS
2649 CFLAGS="-g"
2650 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652 if test "${ac_cv_prog_cc_g+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h.  */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h.  */
2661
2662 int
2663 main ()
2664 {
2665
2666   ;
2667   return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672   (eval $ac_compile) 2>conftest.er1
2673   ac_status=$?
2674   grep -v '^ *+' conftest.er1 >conftest.err
2675   rm -f conftest.er1
2676   cat conftest.err >&5
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -z "$ac_c_werror_flag"
2680                          || test ! -s conftest.err'
2681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682   (eval $ac_try) 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; } &&
2686          { ac_try='test -s conftest.$ac_objext'
2687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688   (eval $ac_try) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }; }; then
2692   ac_cv_prog_cc_g=yes
2693 else
2694   echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2696
2697 ac_cv_prog_cc_g=no
2698 fi
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2700 fi
2701 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703 if test "$ac_test_CFLAGS" = set; then
2704   CFLAGS=$ac_save_CFLAGS
2705 elif test $ac_cv_prog_cc_g = yes; then
2706   if test "$GCC" = yes; then
2707     CFLAGS="-g -O2"
2708   else
2709     CFLAGS="-g"
2710   fi
2711 else
2712   if test "$GCC" = yes; then
2713     CFLAGS="-O2"
2714   else
2715     CFLAGS=
2716   fi
2717 fi
2718 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   ac_cv_prog_cc_stdc=no
2724 ac_save_CC=$CC
2725 cat >conftest.$ac_ext <<_ACEOF
2726 /* confdefs.h.  */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h.  */
2731 #include <stdarg.h>
2732 #include <stdio.h>
2733 #include <sys/types.h>
2734 #include <sys/stat.h>
2735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2736 struct buf { int x; };
2737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738 static char *e (p, i)
2739      char **p;
2740      int i;
2741 {
2742   return p[i];
2743 }
2744 static char *f (char * (*g) (char **, int), char **p, ...)
2745 {
2746   char *s;
2747   va_list v;
2748   va_start (v,p);
2749   s = g (p, va_arg (v,int));
2750   va_end (v);
2751   return s;
2752 }
2753
2754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2755    function prototypes and stuff, but not '\xHH' hex character constants.
2756    These don't provoke an error unfortunately, instead are silently treated
2757    as 'x'.  The following induces an error, until -std1 is added to get
2758    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2759    array size at least.  It's necessary to write '\x00'==0 to get something
2760    that's true only with -std1.  */
2761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2762
2763 int test (int i, double x);
2764 struct s1 {int (*f) (int a);};
2765 struct s2 {int (*f) (double a);};
2766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2767 int argc;
2768 char **argv;
2769 int
2770 main ()
2771 {
2772 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 # Don't try gcc -ansi; that turns off useful extensions and
2778 # breaks some systems' header files.
2779 # AIX                   -qlanglvl=ansi
2780 # Ultrix and OSF/1      -std1
2781 # HP-UX 10.20 and later -Ae
2782 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2783 # SVR4                  -Xc -D__EXTENSIONS__
2784 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2785 do
2786   CC="$ac_save_CC $ac_arg"
2787   rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -z "$ac_c_werror_flag"
2797                          || test ! -s conftest.err'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; }; then
2809   ac_cv_prog_cc_stdc=$ac_arg
2810 break
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 fi
2816 rm -f conftest.err conftest.$ac_objext
2817 done
2818 rm -f conftest.$ac_ext conftest.$ac_objext
2819 CC=$ac_save_CC
2820
2821 fi
2822
2823 case "x$ac_cv_prog_cc_stdc" in
2824   x|xno)
2825     echo "$as_me:$LINENO: result: none needed" >&5
2826 echo "${ECHO_T}none needed" >&6 ;;
2827   *)
2828     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830     CC="$CC $ac_cv_prog_cc_stdc" ;;
2831 esac
2832
2833 # Some people use a C++ compiler to compile C.  Since we use `exit',
2834 # in C++ we need to declare it.  In case someone uses the same compiler
2835 # for both compiling C and C++ we need to have the C++ compiler decide
2836 # the declaration of exit, since it's the most demanding environment.
2837 cat >conftest.$ac_ext <<_ACEOF
2838 #ifndef __cplusplus
2839   choke me
2840 #endif
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844   (eval $ac_compile) 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851          { ac_try='test -z "$ac_c_werror_flag"
2852                          || test ! -s conftest.err'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; }; then
2864   for ac_declaration in \
2865    '' \
2866    'extern "C" void std::exit (int) throw (); using std::exit;' \
2867    'extern "C" void std::exit (int); using std::exit;' \
2868    'extern "C" void exit (int) throw ();' \
2869    'extern "C" void exit (int);' \
2870    'void exit (int);'
2871 do
2872   cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h.  */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h.  */
2878 $ac_declaration
2879 #include <stdlib.h>
2880 int
2881 main ()
2882 {
2883 exit (42);
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890   (eval $ac_compile) 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } &&
2897          { ac_try='test -z "$ac_c_werror_flag"
2898                          || test ! -s conftest.err'
2899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900   (eval $ac_try) 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }; } &&
2904          { ac_try='test -s conftest.$ac_objext'
2905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; }; then
2910   :
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 continue
2916 fi
2917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924 $ac_declaration
2925 int
2926 main ()
2927 {
2928 exit (42);
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935   (eval $ac_compile) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } &&
2942          { ac_try='test -z "$ac_c_werror_flag"
2943                          || test ! -s conftest.err'
2944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; } &&
2949          { ac_try='test -s conftest.$ac_objext'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955   break
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 fi
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 done
2963 rm -f conftest*
2964 if test -n "$ac_declaration"; then
2965   echo '#ifdef __cplusplus' >>confdefs.h
2966   echo $ac_declaration      >>confdefs.h
2967   echo '#endif'             >>confdefs.h
2968 fi
2969
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974 fi
2975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 DEPDIR="${am__leading_dot}deps"
2982
2983           ac_config_commands="$ac_config_commands depfiles"
2984
2985
2986 am_make=${MAKE-make}
2987 cat > confinc << 'END'
2988 am__doit:
2989         @echo done
2990 .PHONY: am__doit
2991 END
2992 # If we don't find an include directive, just comment out the code.
2993 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2994 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2995 am__include="#"
2996 am__quote=
2997 _am_result=none
2998 # First try GNU make style include.
2999 echo "include confinc" > confmf
3000 # We grep out `Entering directory' and `Leaving directory'
3001 # messages which can occur if `w' ends up in MAKEFLAGS.
3002 # In particular we don't look at `^make:' because GNU make might
3003 # be invoked under some other name (usually "gmake"), in which
3004 # case it prints its new name instead of `make'.
3005 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3006    am__include=include
3007    am__quote=
3008    _am_result=GNU
3009 fi
3010 # Now try BSD make style include.
3011 if test "$am__include" = "#"; then
3012    echo '.include "confinc"' > confmf
3013    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3014       am__include=.include
3015       am__quote="\""
3016       _am_result=BSD
3017    fi
3018 fi
3019
3020
3021 echo "$as_me:$LINENO: result: $_am_result" >&5
3022 echo "${ECHO_T}$_am_result" >&6
3023 rm -f confinc confmf
3024
3025 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3026 if test "${enable_dependency_tracking+set}" = set; then
3027   enableval="$enable_dependency_tracking"
3028
3029 fi;
3030 if test "x$enable_dependency_tracking" != xno; then
3031   am_depcomp="$ac_aux_dir/depcomp"
3032   AMDEPBACKSLASH='\'
3033 fi
3034
3035
3036 if test "x$enable_dependency_tracking" != xno; then
3037   AMDEP_TRUE=
3038   AMDEP_FALSE='#'
3039 else
3040   AMDEP_TRUE='#'
3041   AMDEP_FALSE=
3042 fi
3043
3044
3045
3046
3047 depcc="$CC"   am_compiler_list=
3048
3049 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3050 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3051 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3052   echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3055   # We make a subdir and do the tests there.  Otherwise we can end up
3056   # making bogus files that we don't know about and never remove.  For
3057   # instance it was reported that on HP-UX the gcc test will end up
3058   # making a dummy file named `D' -- because `-MD' means `put the output
3059   # in D'.
3060   mkdir conftest.dir
3061   # Copy depcomp to subdir because otherwise we won't find it if we're
3062   # using a relative directory.
3063   cp "$am_depcomp" conftest.dir
3064   cd conftest.dir
3065   # We will build objects and dependencies in a subdirectory because
3066   # it helps to detect inapplicable dependency modes.  For instance
3067   # both Tru64's cc and ICC support -MD to output dependencies as a
3068   # side effect of compilation, but ICC will put the dependencies in
3069   # the current directory while Tru64 will put them in the object
3070   # directory.
3071   mkdir sub
3072
3073   am_cv_CC_dependencies_compiler_type=none
3074   if test "$am_compiler_list" = ""; then
3075      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3076   fi
3077   for depmode in $am_compiler_list; do
3078     # Setup a source with many dependencies, because some compilers
3079     # like to wrap large dependency lists on column 80 (with \), and
3080     # we should not choose a depcomp mode which is confused by this.
3081     #
3082     # We need to recreate these files for each test, as the compiler may
3083     # overwrite some of them when testing with obscure command lines.
3084     # This happens at least with the AIX C compiler.
3085     : > sub/conftest.c
3086     for i in 1 2 3 4 5 6; do
3087       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3088       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3089       # Solaris 8's {/usr,}/bin/sh.
3090       touch sub/conftst$i.h
3091     done
3092     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3093
3094     case $depmode in
3095     nosideeffect)
3096       # after this tag, mechanisms are not by side-effect, so they'll
3097       # only be used when explicitly requested
3098       if test "x$enable_dependency_tracking" = xyes; then
3099         continue
3100       else
3101         break
3102       fi
3103       ;;
3104     none) break ;;
3105     esac
3106     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3107     # mode.  It turns out that the SunPro C++ compiler does not properly
3108     # handle `-M -o', and we need to detect this.
3109     if depmode=$depmode \
3110        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3111        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3112        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3113          >/dev/null 2>conftest.err &&
3114        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3115        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3116        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3117       # icc doesn't choke on unknown options, it will just issue warnings
3118       # or remarks (even with -Werror).  So we grep stderr for any message
3119       # that says an option was ignored or not supported.
3120       # When given -MP, icc 7.0 and 7.1 complain thusly:
3121       #   icc: Command line warning: ignoring option '-M'; no argument required
3122       # The diagnosis changed in icc 8.0:
3123       #   icc: Command line remark: option '-MP' not supported
3124       if (grep 'ignoring option' conftest.err ||
3125           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3126         am_cv_CC_dependencies_compiler_type=$depmode
3127         break
3128       fi
3129     fi
3130   done
3131
3132   cd ..
3133   rm -rf conftest.dir
3134 else
3135   am_cv_CC_dependencies_compiler_type=none
3136 fi
3137
3138 fi
3139 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3140 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3141 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3142
3143
3144
3145 if
3146   test "x$enable_dependency_tracking" != xno \
3147   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3148   am__fastdepCC_TRUE=
3149   am__fastdepCC_FALSE='#'
3150 else
3151   am__fastdepCC_TRUE='#'
3152   am__fastdepCC_FALSE=
3153 fi
3154
3155
3156
3157
3158
3159
3160 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3161 # in XCFLAGS.  But we need them in CFLAGS during configury.  So put them
3162 # in both places for now and restore CFLAGS at the end of config.
3163 save_CFLAGS="$CFLAGS"
3164
3165 # Add -Wall -Werror if we are using GCC.
3166 if test "x$GCC" = "xyes"; then
3167   XCFLAGS="$XCFLAGS -Wall -Werror"
3168 fi
3169
3170 # Find other programs we need.
3171 if test -n "$ac_tool_prefix"; then
3172   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}ar; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_AR+set}" = set; then
3177   echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179   if test -n "$AR"; then
3180   ac_cv_prog_AR="$AR" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185   IFS=$as_save_IFS
3186   test -z "$as_dir" && as_dir=.
3187   for ac_exec_ext in '' $ac_executable_extensions; do
3188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189     ac_cv_prog_AR="${ac_tool_prefix}ar"
3190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191     break 2
3192   fi
3193 done
3194 done
3195
3196 fi
3197 fi
3198 AR=$ac_cv_prog_AR
3199 if test -n "$AR"; then
3200   echo "$as_me:$LINENO: result: $AR" >&5
3201 echo "${ECHO_T}$AR" >&6
3202 else
3203   echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 fi
3206
3207 fi
3208 if test -z "$ac_cv_prog_AR"; then
3209   ac_ct_AR=$AR
3210   # Extract the first word of "ar", so it can be a program name with args.
3211 set dummy ar; ac_word=$2
3212 echo "$as_me:$LINENO: checking for $ac_word" >&5
3213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3214 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3215   echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217   if test -n "$ac_ct_AR"; then
3218   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223   IFS=$as_save_IFS
3224   test -z "$as_dir" && as_dir=.
3225   for ac_exec_ext in '' $ac_executable_extensions; do
3226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227     ac_cv_prog_ac_ct_AR="ar"
3228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3229     break 2
3230   fi
3231 done
3232 done
3233
3234 fi
3235 fi
3236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3237 if test -n "$ac_ct_AR"; then
3238   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3239 echo "${ECHO_T}$ac_ct_AR" >&6
3240 else
3241   echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6
3243 fi
3244
3245   AR=$ac_ct_AR
3246 else
3247   AR="$ac_cv_prog_AR"
3248 fi
3249
3250 if test -n "$ac_tool_prefix"; then
3251   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_prog_RANLIB+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   if test -n "$RANLIB"; then
3259   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266   for ac_exec_ext in '' $ac_executable_extensions; do
3267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270     break 2
3271   fi
3272 done
3273 done
3274
3275 fi
3276 fi
3277 RANLIB=$ac_cv_prog_RANLIB
3278 if test -n "$RANLIB"; then
3279   echo "$as_me:$LINENO: result: $RANLIB" >&5
3280 echo "${ECHO_T}$RANLIB" >&6
3281 else
3282   echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3284 fi
3285
3286 fi
3287 if test -z "$ac_cv_prog_RANLIB"; then
3288   ac_ct_RANLIB=$RANLIB
3289   # Extract the first word of "ranlib", so it can be a program name with args.
3290 set dummy ranlib; ac_word=$2
3291 echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3294   echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296   if test -n "$ac_ct_RANLIB"; then
3297   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302   IFS=$as_save_IFS
3303   test -z "$as_dir" && as_dir=.
3304   for ac_exec_ext in '' $ac_executable_extensions; do
3305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306     ac_cv_prog_ac_ct_RANLIB="ranlib"
3307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308     break 2
3309   fi
3310 done
3311 done
3312
3313   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3314 fi
3315 fi
3316 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3317 if test -n "$ac_ct_RANLIB"; then
3318   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3319 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3320 else
3321   echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3323 fi
3324
3325   RANLIB=$ac_ct_RANLIB
3326 else
3327   RANLIB="$ac_cv_prog_RANLIB"
3328 fi
3329
3330 # Extract the first word of "perl", so it can be a program name with args.
3331 set dummy perl; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_path_PERL+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   case $PERL in
3338   [\\/]* | ?:[\\/]*)
3339   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3340   ;;
3341   *)
3342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347   for ac_exec_ext in '' $ac_executable_extensions; do
3348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351     break 2
3352   fi
3353 done
3354 done
3355
3356   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3357   ;;
3358 esac
3359 fi
3360 PERL=$ac_cv_path_PERL
3361
3362 if test -n "$PERL"; then
3363   echo "$as_me:$LINENO: result: $PERL" >&5
3364 echo "${ECHO_T}$PERL" >&6
3365 else
3366   echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3368 fi
3369
3370 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3371 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3372 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3373 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   cat >conftest.make <<\_ACEOF
3377 all:
3378         @echo 'ac_maketemp="$(MAKE)"'
3379 _ACEOF
3380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3381 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3382 if test -n "$ac_maketemp"; then
3383   eval ac_cv_prog_make_${ac_make}_set=yes
3384 else
3385   eval ac_cv_prog_make_${ac_make}_set=no
3386 fi
3387 rm -f conftest.make
3388 fi
3389 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3390   echo "$as_me:$LINENO: result: yes" >&5
3391 echo "${ECHO_T}yes" >&6
3392   SET_MAKE=
3393 else
3394   echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3396   SET_MAKE="MAKE=${MAKE-make}"
3397 fi
3398
3399 # Find a good install program.  We prefer a C program (faster),
3400 # so one script is as good as another.  But avoid the broken or
3401 # incompatible versions:
3402 # SysV /etc/install, /usr/sbin/install
3403 # SunOS /usr/etc/install
3404 # IRIX /sbin/install
3405 # AIX /bin/install
3406 # AmigaOS /C/install, which installs bootblocks on floppy discs
3407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3410 # OS/2's system install, which has a completely different semantic
3411 # ./install, which can be erroneously created by make from ./install.sh.
3412 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3413 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3414 if test -z "$INSTALL"; then
3415 if test "${ac_cv_path_install+set}" = set; then
3416   echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423   # Account for people who put trailing slashes in PATH elements.
3424 case $as_dir/ in
3425   ./ | .// | /cC/* | \
3426   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3427   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3428   /usr/ucb/* ) ;;
3429   *)
3430     # OSF1 and SCO ODT 3.0 have their own names for install.
3431     # Don't use installbsd from OSF since it installs stuff as root
3432     # by default.
3433     for ac_prog in ginstall scoinst install; do
3434       for ac_exec_ext in '' $ac_executable_extensions; do
3435         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3436           if test $ac_prog = install &&
3437             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3438             # AIX install.  It has an incompatible calling convention.
3439             :
3440           elif test $ac_prog = install &&
3441             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3442             # program-specific install script used by HP pwplus--don't use.
3443             :
3444           else
3445             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3446             break 3
3447           fi
3448         fi
3449       done
3450     done
3451     ;;
3452 esac
3453 done
3454
3455
3456 fi
3457   if test "${ac_cv_path_install+set}" = set; then
3458     INSTALL=$ac_cv_path_install
3459   else
3460     # As a last resort, use the slow shell script.  We don't cache a
3461     # path for INSTALL within a source directory, because that will
3462     # break other packages using the cache if that directory is
3463     # removed, or if the path is relative.
3464     INSTALL=$ac_install_sh
3465   fi
3466 fi
3467 echo "$as_me:$LINENO: result: $INSTALL" >&5
3468 echo "${ECHO_T}$INSTALL" >&6
3469
3470 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3471 # It thinks the first close brace ends the variable substitution.
3472 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3473
3474 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3475
3476 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3477
3478
3479 # See if makeinfo has been installed and is modern enough
3480 # that we can use it.
3481
3482   # Extract the first word of "makeinfo", so it can be a program name with args.
3483 set dummy makeinfo; ac_word=$2
3484 echo "$as_me:$LINENO: checking for $ac_word" >&5
3485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3486 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3487   echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489   if test -n "$MAKEINFO"; then
3490   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495   IFS=$as_save_IFS
3496   test -z "$as_dir" && as_dir=.
3497   for ac_exec_ext in '' $ac_executable_extensions; do
3498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499     ac_cv_prog_MAKEINFO="makeinfo"
3500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501     break 2
3502   fi
3503 done
3504 done
3505
3506 fi
3507 fi
3508 MAKEINFO=$ac_cv_prog_MAKEINFO
3509 if test -n "$MAKEINFO"; then
3510   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3511 echo "${ECHO_T}$MAKEINFO" >&6
3512 else
3513   echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6
3515 fi
3516
3517   if test -n "$MAKEINFO"; then
3518     # Found it, now check the version.
3519     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
3520 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
3521 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3525                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3526
3527                     case $ac_prog_version in
3528                       '')  gcc_cv_prog_makeinfo_modern=no;;
3529                       4.[4-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
3530                       *)   gcc_cv_prog_makeinfo_modern=no;;
3531                     esac
3532
3533 fi
3534 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
3535 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
3536   else
3537     gcc_cv_prog_makeinfo_modern=no
3538   fi
3539
3540
3541
3542 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3543   BUILD_INFO_TRUE=
3544   BUILD_INFO_FALSE='#'
3545 else
3546   BUILD_INFO_TRUE='#'
3547   BUILD_INFO_FALSE=
3548 fi
3549
3550
3551
3552 # Configure libtool
3553 # Check whether --enable-shared or --disable-shared was given.
3554 if test "${enable_shared+set}" = set; then
3555   enableval="$enable_shared"
3556   p=${PACKAGE-default}
3557 case $enableval in
3558 yes) enable_shared=yes ;;
3559 no) enable_shared=no ;;
3560 *)
3561   enable_shared=no
3562   # Look at the argument we got.  We use all the common list separators.
3563   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3564   for pkg in $enableval; do
3565     if test "X$pkg" = "X$p"; then
3566       enable_shared=yes
3567     fi
3568   done
3569   IFS="$ac_save_ifs"
3570   ;;
3571 esac
3572 else
3573   enable_shared=yes
3574 fi;
3575 # Check whether --enable-static or --disable-static was given.
3576 if test "${enable_static+set}" = set; then
3577   enableval="$enable_static"
3578   p=${PACKAGE-default}
3579 case $enableval in
3580 yes) enable_static=yes ;;
3581 no) enable_static=no ;;
3582 *)
3583   enable_static=no
3584   # Look at the argument we got.  We use all the common list separators.
3585   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3586   for pkg in $enableval; do
3587     if test "X$pkg" = "X$p"; then
3588       enable_static=yes
3589     fi
3590   done
3591   IFS="$ac_save_ifs"
3592   ;;
3593 esac
3594 else
3595   enable_static=yes
3596 fi;
3597 # Check whether --enable-fast-install or --disable-fast-install was given.
3598 if test "${enable_fast_install+set}" = set; then
3599   enableval="$enable_fast_install"
3600   p=${PACKAGE-default}
3601 case $enableval in
3602 yes) enable_fast_install=yes ;;
3603 no) enable_fast_install=no ;;
3604 *)
3605   enable_fast_install=no
3606   # Look at the argument we got.  We use all the common list separators.
3607   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3608   for pkg in $enableval; do
3609     if test "X$pkg" = "X$p"; then
3610       enable_fast_install=yes
3611     fi
3612   done
3613   IFS="$ac_save_ifs"
3614   ;;
3615 esac
3616 else
3617   enable_fast_install=yes
3618 fi;
3619
3620 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3621 if test "${with_gnu_ld+set}" = set; then
3622   withval="$with_gnu_ld"
3623   test "$withval" = no || with_gnu_ld=yes
3624 else
3625   with_gnu_ld=no
3626 fi;
3627 ac_prog=ld
3628 if test "$GCC" = yes; then
3629   # Check if gcc -print-prog-name=ld gives a path.
3630   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3631 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3632   case $host in
3633   *-*-mingw*)
3634     # gcc leaves a trailing carriage return which upsets mingw
3635     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3636   *)
3637     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3638   esac
3639   case $ac_prog in
3640     # Accept absolute paths.
3641     [\\/]* | [A-Za-z]:[\\/]*)
3642       re_direlt='/[^/][^/]*/\.\./'
3643       # Canonicalize the path of ld
3644       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3645       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3646         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3647       done
3648       test -z "$LD" && LD="$ac_prog"
3649       ;;
3650   "")
3651     # If it fails, then pretend we aren't using GCC.
3652     ac_prog=ld
3653     ;;
3654   *)
3655     # If it is relative, then search for the first ld in PATH.
3656     with_gnu_ld=unknown
3657     ;;
3658   esac
3659 elif test "$with_gnu_ld" = yes; then
3660   echo "$as_me:$LINENO: checking for GNU ld" >&5
3661 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3662 else
3663   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3664 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3665 fi
3666 if test "${lt_cv_path_LD+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   if test -z "$LD"; then
3670   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3671   for ac_dir in $PATH; do
3672     test -z "$ac_dir" && ac_dir=.
3673     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3674       lt_cv_path_LD="$ac_dir/$ac_prog"
3675       # Check to see if the program is GNU ld.  I'd rather use --version,
3676       # but apparently some GNU ld's only accept -v.
3677       # Break only if it was the GNU/non-GNU ld that we prefer.
3678       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3679         test "$with_gnu_ld" != no && break
3680       else
3681         test "$with_gnu_ld" != yes && break
3682       fi
3683     fi
3684   done
3685   IFS="$ac_save_ifs"
3686 else
3687   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3688 fi
3689 fi
3690
3691 LD="$lt_cv_path_LD"
3692 if test -n "$LD"; then
3693   echo "$as_me:$LINENO: result: $LD" >&5
3694 echo "${ECHO_T}$LD" >&6
3695 else
3696   echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3698 fi
3699 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3700 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3701    { (exit 1); exit 1; }; }
3702 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3703 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3704 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3708 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3709   lt_cv_prog_gnu_ld=yes
3710 else
3711   lt_cv_prog_gnu_ld=no
3712 fi
3713 fi
3714 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3715 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3716 with_gnu_ld=$lt_cv_prog_gnu_ld
3717
3718
3719 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3720 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3721 if test "${lt_cv_ld_reload_flag+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   lt_cv_ld_reload_flag='-r'
3725 fi
3726 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3727 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3728 reload_flag=$lt_cv_ld_reload_flag
3729 test -n "$reload_flag" && reload_flag=" $reload_flag"
3730
3731 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3732 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3733 if test "${lt_cv_path_NM+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   if test -n "$NM"; then
3737   # Let the user override the test.
3738   lt_cv_path_NM="$NM"
3739 else
3740   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3741   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3742     test -z "$ac_dir" && ac_dir=.
3743     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3744     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3745       # Check to see if the nm accepts a BSD-compat flag.
3746       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3747       #   nm: unknown option "B" ignored
3748       # Tru64's nm complains that /dev/null is an invalid object file
3749       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3750         lt_cv_path_NM="$tmp_nm -B"
3751         break
3752       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3753         lt_cv_path_NM="$tmp_nm -p"
3754         break
3755       else
3756         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3757         continue # so that we can try to find one that supports BSD flags
3758       fi
3759     fi
3760   done
3761   IFS="$ac_save_ifs"
3762   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3763 fi
3764 fi
3765
3766 NM="$lt_cv_path_NM"
3767 echo "$as_me:$LINENO: result: $NM" >&5
3768 echo "${ECHO_T}$NM" >&6
3769
3770 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3771 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3772 LN_S=$as_ln_s
3773 if test "$LN_S" = "ln -s"; then
3774   echo "$as_me:$LINENO: result: yes" >&5
3775 echo "${ECHO_T}yes" >&6
3776 else
3777   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3778 echo "${ECHO_T}no, using $LN_S" >&6
3779 fi
3780
3781 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3782 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3783 if test "${lt_cv_deplibs_check_method+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   lt_cv_file_magic_cmd='$MAGIC_CMD'
3787 lt_cv_file_magic_test_file=
3788 lt_cv_deplibs_check_method='unknown'
3789 # Need to set the preceding variable on all platforms that support
3790 # interlibrary dependencies.
3791 # 'none' -- dependencies not supported.
3792 # `unknown' -- same as none, but documents that we really don't know.
3793 # 'pass_all' -- all dependencies passed with no checks.
3794 # 'test_compile' -- check by making test program.
3795 # 'file_magic [regex]' -- check by looking for files in library path
3796 # which responds to the $file_magic_cmd with a given egrep regex.
3797 # If you have `file' or equivalent on your system and you're not sure
3798 # whether `pass_all' will *always* work, you probably want this one.
3799
3800 case $host_os in
3801 aix*)
3802   lt_cv_deplibs_check_method=pass_all
3803   ;;
3804
3805 beos*)
3806   lt_cv_deplibs_check_method=pass_all
3807   ;;
3808
3809 bsdi4*)
3810   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3811   lt_cv_file_magic_cmd='/usr/bin/file -L'
3812   lt_cv_file_magic_test_file=/shlib/libc.so
3813   ;;
3814
3815 cygwin* | mingw* |pw32*)
3816   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3817   lt_cv_file_magic_cmd='$OBJDUMP -f'
3818   ;;
3819
3820 darwin* | rhapsody*)
3821   # this will be overwritten by pass_all, but leave it in just in case
3822   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3823   lt_cv_file_magic_cmd='/usr/bin/file -L'
3824   case "$host_os" in
3825   rhapsody* | darwin1.012)
3826     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3827     ;;
3828   *) # Darwin 1.3 on
3829     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3830     ;;
3831   esac
3832   lt_cv_deplibs_check_method=pass_all
3833   ;;
3834
3835 freebsd* | kfreebsd*-gnu)
3836   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3837     case $host_cpu in
3838     i*86 )
3839       # Not sure whether the presence of OpenBSD here was a mistake.
3840       # Let's accept both of them until this is cleared up.
3841       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3842       lt_cv_file_magic_cmd=/usr/bin/file
3843       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3844       ;;
3845     esac
3846   else
3847     lt_cv_deplibs_check_method=pass_all
3848   fi
3849   ;;
3850
3851 gnu*)
3852   lt_cv_deplibs_check_method=pass_all
3853   ;;
3854
3855 hpux10.20*|hpux11*)
3856   case $host_cpu in
3857   hppa*)
3858     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3859     lt_cv_file_magic_cmd=/usr/bin/file
3860     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3861     ;;
3862   ia64*)
3863     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3864     lt_cv_file_magic_cmd=/usr/bin/file
3865     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3866     ;;
3867   esac
3868   ;;
3869
3870 irix5* | irix6*)
3871   case $host_os in
3872   irix5*)
3873     # this will be overridden with pass_all, but let us keep it just in case
3874     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3875     ;;
3876   *)
3877     case $LD in
3878     *-32|*"-32 ") libmagic=32-bit;;
3879     *-n32|*"-n32 ") libmagic=N32;;
3880     *-64|*"-64 ") libmagic=64-bit;;
3881     *) libmagic=never-match;;
3882     esac
3883     # this will be overridden with pass_all, but let us keep it just in case
3884     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3885     ;;
3886   esac
3887   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3888   lt_cv_deplibs_check_method=pass_all
3889   ;;
3890
3891 # This must be Linux ELF.
3892 linux-gnu*)
3893   lt_cv_deplibs_check_method=pass_all
3894   ;;
3895
3896 netbsd* | knetbsd*-gnu)
3897   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3898     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3899   else
3900     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3901   fi
3902   ;;
3903
3904 newsos6)
3905   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3906   lt_cv_file_magic_cmd=/usr/bin/file
3907   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3908   ;;
3909
3910 osf3* | osf4* | osf5*)
3911   # this will be overridden with pass_all, but let us keep it just in case
3912   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3913   lt_cv_file_magic_test_file=/shlib/libc.so
3914   lt_cv_deplibs_check_method=pass_all
3915   ;;
3916
3917 sco3.2v5*)
3918   lt_cv_deplibs_check_method=pass_all
3919   ;;
3920
3921 solaris*)
3922   lt_cv_deplibs_check_method=pass_all
3923   lt_cv_file_magic_test_file=/lib/libc.so
3924   ;;
3925
3926 sysv5uw[78]* | sysv4*uw2*)
3927   lt_cv_deplibs_check_method=pass_all
3928   ;;
3929
3930 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3931   case $host_vendor in
3932   ncr)
3933     lt_cv_deplibs_check_method=pass_all
3934     ;;
3935   motorola)
3936     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3937     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3938     ;;
3939   esac
3940   ;;
3941 esac
3942
3943 fi
3944 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3945 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3946 file_magic_cmd=$lt_cv_file_magic_cmd
3947 deplibs_check_method=$lt_cv_deplibs_check_method
3948
3949
3950
3951
3952
3953 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3954
3955 # find the maximum length of command line arguments
3956 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3957 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3958 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961     i=0
3962   teststring="ABCD"
3963
3964   case $build_os in
3965   msdosdjgpp*)
3966     # On DJGPP, this test can blow up pretty badly due to problems in libc
3967     # (any single argument exceeding 2000 bytes causes a buffer overrun
3968     # during glob expansion).  Even if it were fixed, the result of this
3969     # check would be larger than it should be.
3970     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3971     ;;
3972
3973   cygwin* | mingw*)
3974     # On Win9x/ME, this test blows up -- it succeeds, but takes
3975     # about 5 minutes as the teststring grows exponentially.
3976     # Worse, since 9x/ME are not pre-emptively multitasking,
3977     # you end up with a "frozen" computer, even though with patience
3978     # the test eventually succeeds (with a max line length of 256k).
3979     # Instead, let's just punt: use the minimum linelength reported by
3980     # all of the supported platforms: 8192 (on NT/2K/XP).
3981     lt_cv_sys_max_cmd_len=8192;
3982     ;;
3983
3984   amigaos*)
3985     # On AmigaOS with pdksh, this test takes hours, literally.
3986     # So we just punt and use a minimum line length of 8192.
3987     lt_cv_sys_max_cmd_len=8192;
3988     ;;
3989
3990   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3991     # This has been around since 386BSD, at least.  Likely further.
3992     if test -x /sbin/sysctl; then
3993       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3994     elif test -x /usr/sbin/sysctl; then
3995       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3996     else
3997       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3998     fi
3999     # And add a safety zone
4000     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4001     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4002     ;;
4003   esac
4004
4005 fi
4006
4007 if test -n "$lt_cv_sys_max_cmd_len" ; then
4008   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4009 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4010 else
4011   echo "$as_me:$LINENO: result: none" >&5
4012 echo "${ECHO_T}none" >&6
4013 fi
4014
4015
4016 # Only perform the check for file, if the check method requires it
4017 case $deplibs_check_method in
4018 file_magic*)
4019   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4020     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4021 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4022 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   case $MAGIC_CMD in
4026   /*)
4027   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4028   ;;
4029   ?:/*)
4030   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4031   ;;
4032   *)
4033   ac_save_MAGIC_CMD="$MAGIC_CMD"
4034   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4035   ac_dummy="/usr/bin:$PATH"
4036   for ac_dir in $ac_dummy; do
4037     test -z "$ac_dir" && ac_dir=.
4038     if test -f $ac_dir/${ac_tool_prefix}file; then
4039       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4040       if test -n "$file_magic_test_file"; then
4041         case $deplibs_check_method in
4042         "file_magic "*)
4043           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4044           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4045           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4046             egrep "$file_magic_regex" > /dev/null; then
4047             :
4048           else
4049             cat <<EOF 1>&2
4050
4051 *** Warning: the command libtool uses to detect shared libraries,
4052 *** $file_magic_cmd, produces output that libtool cannot recognize.
4053 *** The result is that libtool may fail to recognize shared libraries
4054 *** as such.  This will affect the creation of libtool libraries that
4055 *** depend on shared libraries, but programs linked with such libtool
4056 *** libraries will work regardless of this problem.  Nevertheless, you
4057 *** may want to report the problem to your system manager and/or to
4058 *** bug-libtool@gnu.org
4059
4060 EOF
4061           fi ;;
4062         esac
4063       fi
4064       break
4065     fi
4066   done
4067   IFS="$ac_save_ifs"
4068   MAGIC_CMD="$ac_save_MAGIC_CMD"
4069   ;;
4070 esac
4071 fi
4072
4073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4074 if test -n "$MAGIC_CMD"; then
4075   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4076 echo "${ECHO_T}$MAGIC_CMD" >&6
4077 else
4078   echo "$as_me:$LINENO: result: no" >&5
4079 echo "${ECHO_T}no" >&6
4080 fi
4081
4082 if test -z "$lt_cv_path_MAGIC_CMD"; then
4083   if test -n "$ac_tool_prefix"; then
4084     echo "$as_me:$LINENO: checking for file" >&5
4085 echo $ECHO_N "checking for file... $ECHO_C" >&6
4086 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   case $MAGIC_CMD in
4090   /*)
4091   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4092   ;;
4093   ?:/*)
4094   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4095   ;;
4096   *)
4097   ac_save_MAGIC_CMD="$MAGIC_CMD"
4098   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4099   ac_dummy="/usr/bin:$PATH"
4100   for ac_dir in $ac_dummy; do
4101     test -z "$ac_dir" && ac_dir=.
4102     if test -f $ac_dir/file; then
4103       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4104       if test -n "$file_magic_test_file"; then
4105         case $deplibs_check_method in
4106         "file_magic "*)
4107           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4108           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4109           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4110             egrep "$file_magic_regex" > /dev/null; then
4111             :
4112           else
4113             cat <<EOF 1>&2
4114
4115 *** Warning: the command libtool uses to detect shared libraries,
4116 *** $file_magic_cmd, produces output that libtool cannot recognize.
4117 *** The result is that libtool may fail to recognize shared libraries
4118 *** as such.  This will affect the creation of libtool libraries that
4119 *** depend on shared libraries, but programs linked with such libtool
4120 *** libraries will work regardless of this problem.  Nevertheless, you
4121 *** may want to report the problem to your system manager and/or to
4122 *** bug-libtool@gnu.org
4123
4124 EOF
4125           fi ;;
4126         esac
4127       fi
4128       break
4129     fi
4130   done
4131   IFS="$ac_save_ifs"
4132   MAGIC_CMD="$ac_save_MAGIC_CMD"
4133   ;;
4134 esac
4135 fi
4136
4137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4138 if test -n "$MAGIC_CMD"; then
4139   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4140 echo "${ECHO_T}$MAGIC_CMD" >&6
4141 else
4142   echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6
4144 fi
4145
4146   else
4147     MAGIC_CMD=:
4148   fi
4149 fi
4150
4151   fi
4152   ;;
4153 esac
4154
4155 if test -n "$ac_tool_prefix"; then
4156   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4157 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_RANLIB+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   if test -n "$RANLIB"; then
4164   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171   for ac_exec_ext in '' $ac_executable_extensions; do
4172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178 done
4179
4180 fi
4181 fi
4182 RANLIB=$ac_cv_prog_RANLIB
4183 if test -n "$RANLIB"; then
4184   echo "$as_me:$LINENO: result: $RANLIB" >&5
4185 echo "${ECHO_T}$RANLIB" >&6
4186 else
4187   echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4189 fi
4190
4191 fi
4192 if test -z "$ac_cv_prog_RANLIB"; then
4193   ac_ct_RANLIB=$RANLIB
4194   # Extract the first word of "ranlib", so it can be a program name with args.
4195 set dummy ranlib; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   if test -n "$ac_ct_RANLIB"; then
4202   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207   IFS=$as_save_IFS
4208   test -z "$as_dir" && as_dir=.
4209   for ac_exec_ext in '' $ac_executable_extensions; do
4210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211     ac_cv_prog_ac_ct_RANLIB="ranlib"
4212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213     break 2
4214   fi
4215 done
4216 done
4217
4218   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4219 fi
4220 fi
4221 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4222 if test -n "$ac_ct_RANLIB"; then
4223   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4224 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4225 else
4226   echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4228 fi
4229
4230   RANLIB=$ac_ct_RANLIB
4231 else
4232   RANLIB="$ac_cv_prog_RANLIB"
4233 fi
4234
4235 if test -n "$ac_tool_prefix"; then
4236   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4237 set dummy ${ac_tool_prefix}strip; ac_word=$2
4238 echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240 if test "${ac_cv_prog_STRIP+set}" = set; then
4241   echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243   if test -n "$STRIP"; then
4244   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4245 else
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   for ac_exec_ext in '' $ac_executable_extensions; do
4252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258 done
4259
4260 fi
4261 fi
4262 STRIP=$ac_cv_prog_STRIP
4263 if test -n "$STRIP"; then
4264   echo "$as_me:$LINENO: result: $STRIP" >&5
4265 echo "${ECHO_T}$STRIP" >&6
4266 else
4267   echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4269 fi
4270
4271 fi
4272 if test -z "$ac_cv_prog_STRIP"; then
4273   ac_ct_STRIP=$STRIP
4274   # Extract the first word of "strip", so it can be a program name with args.
4275 set dummy strip; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   if test -n "$ac_ct_STRIP"; then
4282   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289   for ac_exec_ext in '' $ac_executable_extensions; do
4290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291     ac_cv_prog_ac_ct_STRIP="strip"
4292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293     break 2
4294   fi
4295 done
4296 done
4297
4298   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4299 fi
4300 fi
4301 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4302 if test -n "$ac_ct_STRIP"; then
4303   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4304 echo "${ECHO_T}$ac_ct_STRIP" >&6
4305 else
4306   echo "$as_me:$LINENO: result: no" >&5
4307 echo "${ECHO_T}no" >&6
4308 fi
4309
4310   STRIP=$ac_ct_STRIP
4311 else
4312   STRIP="$ac_cv_prog_STRIP"
4313 fi
4314
4315
4316 # Check for any special flags to pass to ltconfig.
4317 libtool_flags="--cache-file=$cache_file"
4318 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4319 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4320 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4321 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4322 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4323
4324
4325 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4326 if test "${enable_libtool_lock+set}" = set; then
4327   enableval="$enable_libtool_lock"
4328
4329 fi;
4330 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4331 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4332
4333
4334 # Check whether --with-pic or --without-pic was given.
4335 if test "${with_pic+set}" = set; then
4336   withval="$with_pic"
4337   pic_mode="$withval"
4338 else
4339   pic_mode=default
4340 fi;
4341 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4342 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4343
4344 # Some flags need to be propagated to the compiler or linker for good
4345 # libtool support.
4346 case $host in
4347 *-*-irix6*)
4348   # Find out which ABI we are using.
4349   echo '#line 4349 "configure"' > conftest.$ac_ext
4350   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351   (eval $ac_compile) 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); }; then
4355    if test "$lt_cv_prog_gnu_ld" = yes; then
4356     case `/usr/bin/file conftest.$ac_objext` in
4357     *32-bit*)
4358       LD="${LD-ld} -melf32bsmip"
4359       ;;
4360     *N32*)
4361       LD="${LD-ld} -melf32bmipn32"
4362       ;;
4363     *64-bit*)
4364       LD="${LD-ld} -melf64bmip"
4365       ;;
4366     esac
4367    else
4368     case `/usr/bin/file conftest.$ac_objext` in
4369     *32-bit*)
4370       LD="${LD-ld} -32"
4371       ;;
4372     *N32*)
4373       LD="${LD-ld} -n32"
4374       ;;
4375     *64-bit*)
4376       LD="${LD-ld} -64"
4377       ;;
4378     esac
4379    fi
4380   fi
4381   rm -rf conftest*
4382   ;;
4383
4384 ia64-*-hpux*)
4385   # Find out which ABI we are using.
4386   echo 'int i;' > conftest.$ac_ext
4387   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388   (eval $ac_compile) 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); }; then
4392     case "`/usr/bin/file conftest.o`" in
4393     *ELF-32*)
4394       HPUX_IA64_MODE="32"
4395       ;;
4396     *ELF-64*)
4397       HPUX_IA64_MODE="64"
4398       ;;
4399     esac
4400   fi
4401   rm -rf conftest*
4402   ;;
4403
4404 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4405   # Find out which ABI we are using.
4406   echo 'int i;' > conftest.$ac_ext
4407   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408   (eval $ac_compile) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; then
4412     case "`/usr/bin/file conftest.o`" in
4413     *32-bit*)
4414       case $host in
4415         x86_64-*linux*)
4416           LD="${LD-ld} -m elf_i386"
4417           ;;
4418         ppc64-*linux*|powerpc64-*linux*)
4419           LD="${LD-ld} -m elf32ppclinux"
4420           ;;
4421         s390x-*linux*)
4422           LD="${LD-ld} -m elf_s390"
4423           ;;
4424         sparc64-*linux*)
4425           LD="${LD-ld} -m elf32_sparc"
4426           ;;
4427       esac
4428       ;;
4429     *64-bit*)
4430       case $host in
4431         x86_64-*linux*)
4432           LD="${LD-ld} -m elf_x86_64"
4433           ;;
4434         ppc*-*linux*|powerpc*-*linux*)
4435           LD="${LD-ld} -m elf64ppc"
4436           ;;
4437         s390*-*linux*)
4438           LD="${LD-ld} -m elf64_s390"
4439           ;;
4440         sparc*-*linux*)
4441           LD="${LD-ld} -m elf64_sparc"
4442           ;;
4443       esac
4444       ;;
4445     esac
4446   fi
4447   rm -rf conftest*
4448   ;;
4449
4450 *-*-sco3.2v5*)
4451   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4452   SAVE_CFLAGS="$CFLAGS"
4453   CFLAGS="$CFLAGS -belf"
4454   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4455 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4456 if test "${lt_cv_cc_needs_belf+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459
4460
4461      ac_ext=c
4462 ac_cpp='$CPP $CPPFLAGS'
4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466
4467      cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h.  */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h.  */
4473
4474 int
4475 main ()
4476 {
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 rm -f conftest.$ac_objext conftest$ac_exeext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4484   (eval $ac_link) 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } &&
4491          { ac_try='test -z "$ac_c_werror_flag"
4492                          || test ! -s conftest.err'
4493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494   (eval $ac_try) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; } &&
4498          { ac_try='test -s conftest$ac_exeext'
4499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500   (eval $ac_try) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; }; then
4504   lt_cv_cc_needs_belf=yes
4505 else
4506   echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509 lt_cv_cc_needs_belf=no
4510 fi
4511 rm -f conftest.err conftest.$ac_objext \
4512       conftest$ac_exeext conftest.$ac_ext
4513      ac_ext=c
4514 ac_cpp='$CPP $CPPFLAGS'
4515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518
4519 fi
4520 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4521 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4522   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4523     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4524     CFLAGS="$SAVE_CFLAGS"
4525   fi
4526   ;;
4527
4528
4529 esac
4530
4531
4532 # Save cache, so that ltconfig can load it
4533 cat >confcache <<\_ACEOF
4534 # This file is a shell script that caches the results of configure
4535 # tests run on this system so they can be shared between configure
4536 # scripts and configure runs, see configure's option --config-cache.
4537 # It is not useful on other systems.  If it contains results you don't
4538 # want to keep, you may remove or edit it.
4539 #
4540 # config.status only pays attention to the cache file if you give it
4541 # the --recheck option to rerun configure.
4542 #
4543 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4544 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4545 # following values.
4546
4547 _ACEOF
4548
4549 # The following way of writing the cache mishandles newlines in values,
4550 # but we know of no workaround that is simple, portable, and efficient.
4551 # So, don't put newlines in cache variables' values.
4552 # Ultrix sh set writes to stderr and can't be redirected directly,
4553 # and sets the high bit in the cache file unless we assign to the vars.
4554 {
4555   (set) 2>&1 |
4556     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4557     *ac_space=\ *)
4558       # `set' does not quote correctly, so add quotes (double-quote
4559       # substitution turns \\\\ into \\, and sed turns \\ into \).
4560       sed -n \
4561         "s/'/'\\\\''/g;
4562           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4563       ;;
4564     *)
4565       # `set' quotes correctly as required by POSIX, so do not add quotes.
4566       sed -n \
4567         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4568       ;;
4569     esac;
4570 } |
4571   sed '
4572      t clear
4573      : clear
4574      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4575      t end
4576      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4577      : end' >>confcache
4578 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4579   if test -w $cache_file; then
4580     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4581     cat confcache >$cache_file
4582   else
4583     echo "not updating unwritable cache $cache_file"
4584   fi
4585 fi
4586 rm -f confcache
4587
4588 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4589 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4590 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4591 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4592 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4593 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4594 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4595 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4596 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4597 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4598 echo "$as_me: error: libtool configure failed" >&2;}
4599    { (exit 1); exit 1; }; }
4600
4601 # Reload cache, that may have been modified by ltconfig
4602 if test -r "$cache_file"; then
4603   # Some versions of bash will fail to source /dev/null (special
4604   # files actually), so we avoid doing that.
4605   if test -f "$cache_file"; then
4606     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4607 echo "$as_me: loading cache $cache_file" >&6;}
4608     case $cache_file in
4609       [\\/]* | ?:[\\/]* ) . $cache_file;;
4610       *)                      . ./$cache_file;;
4611     esac
4612   fi
4613 else
4614   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4615 echo "$as_me: creating cache $cache_file" >&6;}
4616   >$cache_file
4617 fi
4618
4619
4620 # This can be used to rebuild libtool when needed
4621 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4622
4623 # Always use our own libtool.
4624 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4625
4626 # Redirect the config.log output again, so that the ltconfig log is not
4627 # clobbered by the next message.
4628 exec 5>>./config.log
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4639 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4640     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4641 if test "${enable_maintainer_mode+set}" = set; then
4642   enableval="$enable_maintainer_mode"
4643   USE_MAINTAINER_MODE=$enableval
4644 else
4645   USE_MAINTAINER_MODE=no
4646 fi;
4647   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4648 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4649
4650
4651 if test $USE_MAINTAINER_MODE = yes; then
4652   MAINTAINER_MODE_TRUE=
4653   MAINTAINER_MODE_FALSE='#'
4654 else
4655   MAINTAINER_MODE_TRUE='#'
4656   MAINTAINER_MODE_FALSE=
4657 fi
4658
4659   MAINT=$MAINTAINER_MODE_TRUE
4660
4661
4662
4663 # We need gfortran to compile parts of the library
4664 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4665 #AC_PROG_FC(gfortran)
4666 FC="$GFORTRAN"
4667 ac_ext=${FC_SRCEXT-f}
4668 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4669 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4670 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4671 if test -n "$ac_tool_prefix"; then
4672   for ac_prog in gfortran
4673   do
4674     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4676 echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678 if test "${ac_cv_prog_FC+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   if test -n "$FC"; then
4682   ac_cv_prog_FC="$FC" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687   IFS=$as_save_IFS
4688   test -z "$as_dir" && as_dir=.
4689   for ac_exec_ext in '' $ac_executable_extensions; do
4690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691     ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693     break 2
4694   fi
4695 done
4696 done
4697
4698 fi
4699 fi
4700 FC=$ac_cv_prog_FC
4701 if test -n "$FC"; then
4702   echo "$as_me:$LINENO: result: $FC" >&5
4703 echo "${ECHO_T}$FC" >&6
4704 else
4705   echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6
4707 fi
4708
4709     test -n "$FC" && break
4710   done
4711 fi
4712 if test -z "$FC"; then
4713   ac_ct_FC=$FC
4714   for ac_prog in gfortran
4715 do
4716   # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   if test -n "$ac_ct_FC"; then
4724   ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733     ac_cv_prog_ac_ct_FC="$ac_prog"
4734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738 done
4739
4740 fi
4741 fi
4742 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4743 if test -n "$ac_ct_FC"; then
4744   echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4745 echo "${ECHO_T}$ac_ct_FC" >&6
4746 else
4747   echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751   test -n "$ac_ct_FC" && break
4752 done
4753
4754   FC=$ac_ct_FC
4755 fi
4756
4757
4758 # Provide some information about the compiler.
4759 echo "$as_me:4759:" \
4760      "checking for Fortran compiler version" >&5
4761 ac_compiler=`set X $ac_compile; echo $2`
4762 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4763   (eval $ac_compiler --version </dev/null >&5) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }
4767 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4768   (eval $ac_compiler -v </dev/null >&5) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }
4772 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4773   (eval $ac_compiler -V </dev/null >&5) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }
4777 rm -f a.out
4778
4779 # If we don't use `.F' as extension, the preprocessor is not run on the
4780 # input file.  (Note that this only needs to work for GNU compilers.)
4781 ac_save_ext=$ac_ext
4782 ac_ext=F
4783 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4784 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4785 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   cat >conftest.$ac_ext <<_ACEOF
4789       program main
4790 #ifndef __GNUC__
4791        choke me
4792 #endif
4793
4794       end
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798   (eval $ac_compile) 2>conftest.er1
4799   ac_status=$?
4800   grep -v '^ *+' conftest.er1 >conftest.err
4801   rm -f conftest.er1
4802   cat conftest.err >&5
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); } &&
4805          { ac_try='test -z "$ac_fc_werror_flag"
4806                          || test ! -s conftest.err'
4807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808   (eval $ac_try) 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); }; } &&
4812          { ac_try='test -s conftest.$ac_objext'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; }; then
4818   ac_compiler_gnu=yes
4819 else
4820   echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 ac_compiler_gnu=no
4824 fi
4825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4827
4828 fi
4829 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4830 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4831 ac_ext=$ac_save_ext
4832 ac_test_FFLAGS=${FCFLAGS+set}
4833 ac_save_FFLAGS=$FCFLAGS
4834 FCFLAGS=
4835 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4836 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4837 if test "${ac_cv_prog_fc_g+set}" = set; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   FCFLAGS=-g
4841 cat >conftest.$ac_ext <<_ACEOF
4842       program main
4843
4844       end
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848   (eval $ac_compile) 2>conftest.er1
4849   ac_status=$?
4850   grep -v '^ *+' conftest.er1 >conftest.err
4851   rm -f conftest.er1
4852   cat conftest.err >&5
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); } &&
4855          { ac_try='test -z "$ac_fc_werror_flag"
4856                          || test ! -s conftest.err'
4857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858   (eval $ac_try) 2>&5
4859   ac_status=$?
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); }; } &&
4862          { ac_try='test -s conftest.$ac_objext'
4863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864   (eval $ac_try) 2>&5
4865   ac_status=$?
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); }; }; then
4868   ac_cv_prog_fc_g=yes
4869 else
4870   echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873 ac_cv_prog_fc_g=no
4874 fi
4875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4876
4877 fi
4878 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4879 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4880 if test "$ac_test_FFLAGS" = set; then
4881   FCFLAGS=$ac_save_FFLAGS
4882 elif test $ac_cv_prog_fc_g = yes; then
4883   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4884     FCFLAGS="-g -O2"
4885   else
4886     FCFLAGS="-g"
4887   fi
4888 else
4889   if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4890     FCFLAGS="-O2"
4891   else
4892     FCFLAGS=
4893   fi
4894 fi
4895
4896 ac_ext=c
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901
4902 FCFLAGS="$FCFLAGS -Wall"
4903
4904 # For libtool versioning info, format is CURRENT:REVISION:AGE
4905 libtool_VERSION=1:0:0
4906
4907
4908 # Check header files.
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4916 # On Suns, sometimes $CPP names a directory.
4917 if test -n "$CPP" && test -d "$CPP"; then
4918   CPP=
4919 fi
4920 if test -z "$CPP"; then
4921   if test "${ac_cv_prog_CPP+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924       # Double quotes because CPP needs to be expanded
4925     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4926     do
4927       ac_preproc_ok=false
4928 for ac_c_preproc_warn_flag in '' yes
4929 do
4930   # Use a header file that comes with gcc, so configuring glibc
4931   # with a fresh cross-compiler works.
4932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933   # <limits.h> exists even on freestanding compilers.
4934   # On the NeXT, cc -E runs the code through the compiler's parser,
4935   # not just through cpp. "Syntax error" is here to catch this case.
4936   cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h.  */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h.  */
4942 #ifdef __STDC__
4943 # include <limits.h>
4944 #else
4945 # include <assert.h>
4946 #endif
4947                      Syntax error
4948 _ACEOF
4949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951   ac_status=$?
4952   grep -v '^ *+' conftest.er1 >conftest.err
4953   rm -f conftest.er1
4954   cat conftest.err >&5
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); } >/dev/null; then
4957   if test -s conftest.err; then
4958     ac_cpp_err=$ac_c_preproc_warn_flag
4959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4960   else
4961     ac_cpp_err=
4962   fi
4963 else
4964   ac_cpp_err=yes
4965 fi
4966 if test -z "$ac_cpp_err"; then
4967   :
4968 else
4969   echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4971
4972   # Broken: fails on valid input.
4973 continue
4974 fi
4975 rm -f conftest.err conftest.$ac_ext
4976
4977   # OK, works on sane cases.  Now check whether non-existent headers
4978   # can be detected and how.
4979   cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h.  */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h.  */
4985 #include <ac_nonexistent.h>
4986 _ACEOF
4987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989   ac_status=$?
4990   grep -v '^ *+' conftest.er1 >conftest.err
4991   rm -f conftest.er1
4992   cat conftest.err >&5
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); } >/dev/null; then
4995   if test -s conftest.err; then
4996     ac_cpp_err=$ac_c_preproc_warn_flag
4997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4998   else
4999     ac_cpp_err=
5000   fi
5001 else
5002   ac_cpp_err=yes
5003 fi
5004 if test -z "$ac_cpp_err"; then
5005   # Broken: success on invalid input.
5006 continue
5007 else
5008   echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5010
5011   # Passes both tests.
5012 ac_preproc_ok=:
5013 break
5014 fi
5015 rm -f conftest.err conftest.$ac_ext
5016
5017 done
5018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019 rm -f conftest.err conftest.$ac_ext
5020 if $ac_preproc_ok; then
5021   break
5022 fi
5023
5024     done
5025     ac_cv_prog_CPP=$CPP
5026
5027 fi
5028   CPP=$ac_cv_prog_CPP
5029 else
5030   ac_cv_prog_CPP=$CPP
5031 fi
5032 echo "$as_me:$LINENO: result: $CPP" >&5
5033 echo "${ECHO_T}$CPP" >&6
5034 ac_preproc_ok=false
5035 for ac_c_preproc_warn_flag in '' yes
5036 do
5037   # Use a header file that comes with gcc, so configuring glibc
5038   # with a fresh cross-compiler works.
5039   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040   # <limits.h> exists even on freestanding compilers.
5041   # On the NeXT, cc -E runs the code through the compiler's parser,
5042   # not just through cpp. "Syntax error" is here to catch this case.
5043   cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 #ifdef __STDC__
5050 # include <limits.h>
5051 #else
5052 # include <assert.h>
5053 #endif
5054                      Syntax error
5055 _ACEOF
5056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5058   ac_status=$?
5059   grep -v '^ *+' conftest.er1 >conftest.err
5060   rm -f conftest.er1
5061   cat conftest.err >&5
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); } >/dev/null; then
5064   if test -s conftest.err; then
5065     ac_cpp_err=$ac_c_preproc_warn_flag
5066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5067   else
5068     ac_cpp_err=
5069   fi
5070 else
5071   ac_cpp_err=yes
5072 fi
5073 if test -z "$ac_cpp_err"; then
5074   :
5075 else
5076   echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5078
5079   # Broken: fails on valid input.
5080 continue
5081 fi
5082 rm -f conftest.err conftest.$ac_ext
5083
5084   # OK, works on sane cases.  Now check whether non-existent headers
5085   # can be detected and how.
5086   cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h.  */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h.  */
5092 #include <ac_nonexistent.h>
5093 _ACEOF
5094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096   ac_status=$?
5097   grep -v '^ *+' conftest.er1 >conftest.err
5098   rm -f conftest.er1
5099   cat conftest.err >&5
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } >/dev/null; then
5102   if test -s conftest.err; then
5103     ac_cpp_err=$ac_c_preproc_warn_flag
5104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5105   else
5106     ac_cpp_err=
5107   fi
5108 else
5109   ac_cpp_err=yes
5110 fi
5111 if test -z "$ac_cpp_err"; then
5112   # Broken: success on invalid input.
5113 continue
5114 else
5115   echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5117
5118   # Passes both tests.
5119 ac_preproc_ok=:
5120 break
5121 fi
5122 rm -f conftest.err conftest.$ac_ext
5123
5124 done
5125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5126 rm -f conftest.err conftest.$ac_ext
5127 if $ac_preproc_ok; then
5128   :
5129 else
5130   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5131 See \`config.log' for more details." >&5
5132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5133 See \`config.log' for more details." >&2;}
5134    { (exit 1); exit 1; }; }
5135 fi
5136
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143
5144 echo "$as_me:$LINENO: checking for egrep" >&5
5145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5146 if test "${ac_cv_prog_egrep+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5150     then ac_cv_prog_egrep='grep -E'
5151     else ac_cv_prog_egrep='egrep'
5152     fi
5153 fi
5154 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5155 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5156  EGREP=$ac_cv_prog_egrep
5157
5158
5159 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5160 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5161 if test "${ac_cv_header_stdc+set}" = set; then
5162   echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164   cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h.  */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h.  */
5170 #include <stdlib.h>
5171 #include <stdarg.h>
5172 #include <string.h>
5173 #include <float.h>
5174
5175 int
5176 main ()
5177 {
5178
5179   ;
5180   return 0;
5181 }
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185   (eval $ac_compile) 2>conftest.er1
5186   ac_status=$?
5187   grep -v '^ *+' conftest.er1 >conftest.err
5188   rm -f conftest.er1
5189   cat conftest.err >&5
5190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191   (exit $ac_status); } &&
5192          { ac_try='test -z "$ac_c_werror_flag"
5193                          || test ! -s conftest.err'
5194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195   (eval $ac_try) 2>&5
5196   ac_status=$?
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); }; } &&
5199          { ac_try='test -s conftest.$ac_objext'
5200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201   (eval $ac_try) 2>&5
5202   ac_status=$?
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); }; }; then
5205   ac_cv_header_stdc=yes
5206 else
5207   echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ac_cv_header_stdc=no
5211 fi
5212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213
5214 if test $ac_cv_header_stdc = yes; then
5215   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5216   cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h.  */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h.  */
5222 #include <string.h>
5223
5224 _ACEOF
5225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226   $EGREP "memchr" >/dev/null 2>&1; then
5227   :
5228 else
5229   ac_cv_header_stdc=no
5230 fi
5231 rm -f conftest*
5232
5233 fi
5234
5235 if test $ac_cv_header_stdc = yes; then
5236   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5237   cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h.  */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h.  */
5243 #include <stdlib.h>
5244
5245 _ACEOF
5246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5247   $EGREP "free" >/dev/null 2>&1; then
5248   :
5249 else
5250   ac_cv_header_stdc=no
5251 fi
5252 rm -f conftest*
5253
5254 fi
5255
5256 if test $ac_cv_header_stdc = yes; then
5257   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5258   if test "$cross_compiling" = yes; then
5259   :
5260 else
5261   cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h.  */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h.  */
5267 #include <ctype.h>
5268 #if ((' ' & 0x0FF) == 0x020)
5269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5271 #else
5272 # define ISLOWER(c) \
5273                    (('a' <= (c) && (c) <= 'i') \
5274                      || ('j' <= (c) && (c) <= 'r') \
5275                      || ('s' <= (c) && (c) <= 'z'))
5276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5277 #endif
5278
5279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5280 int
5281 main ()
5282 {
5283   int i;
5284   for (i = 0; i < 256; i++)
5285     if (XOR (islower (i), ISLOWER (i))
5286         || toupper (i) != TOUPPER (i))
5287       exit(2);
5288   exit (0);
5289 }
5290 _ACEOF
5291 rm -f conftest$ac_exeext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293   (eval $ac_link) 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298   (eval $ac_try) 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }; }; then
5302   :
5303 else
5304   echo "$as_me: program exited with status $ac_status" >&5
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 ( exit $ac_status )
5309 ac_cv_header_stdc=no
5310 fi
5311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5312 fi
5313 fi
5314 fi
5315 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5316 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5317 if test $ac_cv_header_stdc = yes; then
5318
5319 cat >>confdefs.h <<\_ACEOF
5320 #define STDC_HEADERS 1
5321 _ACEOF
5322
5323 fi
5324
5325 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5326 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5327 if test "${ac_cv_header_time+set}" = set; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h.  */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h.  */
5336 #include <sys/types.h>
5337 #include <sys/time.h>
5338 #include <time.h>
5339
5340 int
5341 main ()
5342 {
5343 if ((struct tm *) 0)
5344 return 0;
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 rm -f conftest.$ac_objext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351   (eval $ac_compile) 2>conftest.er1
5352   ac_status=$?
5353   grep -v '^ *+' conftest.er1 >conftest.err
5354   rm -f conftest.er1
5355   cat conftest.err >&5
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); } &&
5358          { ac_try='test -z "$ac_c_werror_flag"
5359                          || test ! -s conftest.err'
5360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361   (eval $ac_try) 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); }; } &&
5365          { ac_try='test -s conftest.$ac_objext'
5366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367   (eval $ac_try) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; }; then
5371   ac_cv_header_time=yes
5372 else
5373   echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ac_cv_header_time=no
5377 fi
5378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5379 fi
5380 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5381 echo "${ECHO_T}$ac_cv_header_time" >&6
5382 if test $ac_cv_header_time = yes; then
5383
5384 cat >>confdefs.h <<\_ACEOF
5385 #define TIME_WITH_SYS_TIME 1
5386 _ACEOF
5387
5388 fi
5389
5390 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5401                   inttypes.h stdint.h unistd.h
5402 do
5403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5404 echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409   cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415 $ac_includes_default
5416
5417 #include <$ac_header>
5418 _ACEOF
5419 rm -f conftest.$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421   (eval $ac_compile) 2>conftest.er1
5422   ac_status=$?
5423   grep -v '^ *+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } &&
5428          { ac_try='test -z "$ac_c_werror_flag"
5429                          || test ! -s conftest.err'
5430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431   (eval $ac_try) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; } &&
5435          { ac_try='test -s conftest.$ac_objext'
5436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437   (eval $ac_try) 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; }; then
5441   eval "$as_ac_Header=yes"
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 eval "$as_ac_Header=no"
5447 fi
5448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5449 fi
5450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5453   cat >>confdefs.h <<_ACEOF
5454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5455 _ACEOF
5456
5457 fi
5458
5459 done
5460
5461
5462
5463
5464
5465
5466 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5467 do
5468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5470   echo "$as_me:$LINENO: checking for $ac_header" >&5
5471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 fi
5475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5477 else
5478   # Is the header compilable?
5479 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h.  */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h.  */
5487 $ac_includes_default
5488 #include <$ac_header>
5489 _ACEOF
5490 rm -f conftest.$ac_objext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492   (eval $ac_compile) 2>conftest.er1
5493   ac_status=$?
5494   grep -v '^ *+' conftest.er1 >conftest.err
5495   rm -f conftest.er1
5496   cat conftest.err >&5
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } &&
5499          { ac_try='test -z "$ac_c_werror_flag"
5500                          || test ! -s conftest.err'
5501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502   (eval $ac_try) 2>&5
5503   ac_status=$?
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); }; } &&
5506          { ac_try='test -s conftest.$ac_objext'
5507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; }; then
5512   ac_header_compiler=yes
5513 else
5514   echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 ac_header_compiler=no
5518 fi
5519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5521 echo "${ECHO_T}$ac_header_compiler" >&6
5522
5523 # Is the header present?
5524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5526 cat >conftest.$ac_ext <<_ACEOF
5527 /* confdefs.h.  */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h.  */
5532 #include <$ac_header>
5533 _ACEOF
5534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5536   ac_status=$?
5537   grep -v '^ *+' conftest.er1 >conftest.err
5538   rm -f conftest.er1
5539   cat conftest.err >&5
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); } >/dev/null; then
5542   if test -s conftest.err; then
5543     ac_cpp_err=$ac_c_preproc_warn_flag
5544     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5545   else
5546     ac_cpp_err=
5547   fi
5548 else
5549   ac_cpp_err=yes
5550 fi
5551 if test -z "$ac_cpp_err"; then
5552   ac_header_preproc=yes
5553 else
5554   echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557   ac_header_preproc=no
5558 fi
5559 rm -f conftest.err conftest.$ac_ext
5560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5561 echo "${ECHO_T}$ac_header_preproc" >&6
5562
5563 # So?  What about this header?
5564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5565   yes:no: )
5566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5570     ac_header_preproc=yes
5571     ;;
5572   no:yes:* )
5573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5575     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5576 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5577     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5579     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5580 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5583     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5585     (
5586       cat <<\_ASBOX
5587 ## ----------------------------------------------------- ##
5588 ## Report this to the GNU OpenMP Runtime Library lists.  ##
5589 ## ----------------------------------------------------- ##
5590 _ASBOX
5591     ) |
5592       sed "s/^/$as_me: WARNING:     /" >&2
5593     ;;
5594 esac
5595 echo "$as_me:$LINENO: checking for $ac_header" >&5
5596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600   eval "$as_ac_Header=\$ac_header_preproc"
5601 fi
5602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5604
5605 fi
5606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5607   cat >>confdefs.h <<_ACEOF
5608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5609 _ACEOF
5610
5611 fi
5612
5613 done
5614
5615
5616
5617
5618 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
5619
5620 acx_cv_header_stdint=stddef.h
5621 acx_cv_header_stdint_kind="(already complete)"
5622 for i in stdint.h $inttype_headers; do
5623   unset ac_cv_type_uintptr_t
5624   unset ac_cv_type_uintmax_t
5625   unset ac_cv_type_int_least32_t
5626   unset ac_cv_type_int_fast32_t
5627   unset ac_cv_type_uint64_t
5628   echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5629   echo "$as_me:$LINENO: checking for uintmax_t" >&5
5630 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5631 if test "${ac_cv_type_uintmax_t+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h.  */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h.  */
5640 #include <sys/types.h>
5641 #include <$i>
5642
5643 int
5644 main ()
5645 {
5646 if ((uintmax_t *) 0)
5647   return 0;
5648 if (sizeof (uintmax_t))
5649   return 0;
5650   ;
5651   return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5656   (eval $ac_compile) 2>conftest.er1
5657   ac_status=$?
5658   grep -v '^ *+' conftest.er1 >conftest.err
5659   rm -f conftest.er1
5660   cat conftest.err >&5
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); } &&
5663          { ac_try='test -z "$ac_c_werror_flag"
5664                          || test ! -s conftest.err'
5665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666   (eval $ac_try) 2>&5
5667   ac_status=$?
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); }; } &&
5670          { ac_try='test -s conftest.$ac_objext'
5671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672   (eval $ac_try) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; }; then
5676   ac_cv_type_uintmax_t=yes
5677 else
5678   echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681 ac_cv_type_uintmax_t=no
5682 fi
5683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5684 fi
5685 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5686 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5687 if test $ac_cv_type_uintmax_t = yes; then
5688   acx_cv_header_stdint=$i
5689 else
5690   continue
5691 fi
5692
5693   echo "$as_me:$LINENO: checking for uintptr_t" >&5
5694 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5695 if test "${ac_cv_type_uintptr_t+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h.  */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h.  */
5704 #include <sys/types.h>
5705 #include <$i>
5706
5707 int
5708 main ()
5709 {
5710 if ((uintptr_t *) 0)
5711   return 0;
5712 if (sizeof (uintptr_t))
5713   return 0;
5714   ;
5715   return 0;
5716 }
5717 _ACEOF
5718 rm -f conftest.$ac_objext
5719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720   (eval $ac_compile) 2>conftest.er1
5721   ac_status=$?
5722   grep -v '^ *+' conftest.er1 >conftest.err
5723   rm -f conftest.er1
5724   cat conftest.err >&5
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); } &&
5727          { ac_try='test -z "$ac_c_werror_flag"
5728                          || test ! -s conftest.err'
5729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730   (eval $ac_try) 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; } &&
5734          { ac_try='test -s conftest.$ac_objext'
5735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736   (eval $ac_try) 2>&5
5737   ac_status=$?
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); }; }; then
5740   ac_cv_type_uintptr_t=yes
5741 else
5742   echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745 ac_cv_type_uintptr_t=no
5746 fi
5747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5748 fi
5749 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5750 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5751 if test $ac_cv_type_uintptr_t = yes; then
5752   :
5753 else
5754   acx_cv_header_stdint_kind="(mostly complete)"
5755 fi
5756
5757   echo "$as_me:$LINENO: checking for int_least32_t" >&5
5758 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5759 if test "${ac_cv_type_int_least32_t+set}" = set; then
5760   echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762   cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h.  */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h.  */
5768 #include <sys/types.h>
5769 #include <$i>
5770
5771 int
5772 main ()
5773 {
5774 if ((int_least32_t *) 0)
5775   return 0;
5776 if (sizeof (int_least32_t))
5777   return 0;
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784   (eval $ac_compile) 2>conftest.er1
5785   ac_status=$?
5786   grep -v '^ *+' conftest.er1 >conftest.err
5787   rm -f conftest.er1
5788   cat conftest.err >&5
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); } &&
5791          { ac_try='test -z "$ac_c_werror_flag"
5792                          || test ! -s conftest.err'
5793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794   (eval $ac_try) 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }; } &&
5798          { ac_try='test -s conftest.$ac_objext'
5799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800   (eval $ac_try) 2>&5
5801   ac_status=$?
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); }; }; then
5804   ac_cv_type_int_least32_t=yes
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809 ac_cv_type_int_least32_t=no
5810 fi
5811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812 fi
5813 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5814 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5815 if test $ac_cv_type_int_least32_t = yes; then
5816   :
5817 else
5818   acx_cv_header_stdint_kind="(mostly complete)"
5819 fi
5820
5821   echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5822 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5823 if test "${ac_cv_type_int_fast32_t+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h.  */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h.  */
5832 #include <sys/types.h>
5833 #include <$i>
5834
5835 int
5836 main ()
5837 {
5838 if ((int_fast32_t *) 0)
5839   return 0;
5840 if (sizeof (int_fast32_t))
5841   return 0;
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848   (eval $ac_compile) 2>conftest.er1
5849   ac_status=$?
5850   grep -v '^ *+' conftest.er1 >conftest.err
5851   rm -f conftest.er1
5852   cat conftest.err >&5
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); } &&
5855          { ac_try='test -z "$ac_c_werror_flag"
5856                          || test ! -s conftest.err'
5857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858   (eval $ac_try) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; } &&
5862          { ac_try='test -s conftest.$ac_objext'
5863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864   (eval $ac_try) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); }; }; then
5868   ac_cv_type_int_fast32_t=yes
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 ac_cv_type_int_fast32_t=no
5874 fi
5875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5876 fi
5877 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5878 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5879 if test $ac_cv_type_int_fast32_t = yes; then
5880   :
5881 else
5882   acx_cv_header_stdint_kind="(mostly complete)"
5883 fi
5884
5885   echo "$as_me:$LINENO: checking for uint64_t" >&5
5886 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5887 if test "${ac_cv_type_uint64_t+set}" = set; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   cat >conftest.$ac_ext <<_ACEOF
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896 #include <sys/types.h>
5897 #include <$i>
5898
5899 int
5900 main ()
5901 {
5902 if ((uint64_t *) 0)
5903   return 0;
5904 if (sizeof (uint64_t))
5905   return 0;
5906   ;
5907   return 0;
5908 }
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912   (eval $ac_compile) 2>conftest.er1
5913   ac_status=$?
5914   grep -v '^ *+' conftest.er1 >conftest.err
5915   rm -f conftest.er1
5916   cat conftest.err >&5
5917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918   (exit $ac_status); } &&
5919          { ac_try='test -z "$ac_c_werror_flag"
5920                          || test ! -s conftest.err'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; } &&
5926          { ac_try='test -s conftest.$ac_objext'
5927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928   (eval $ac_try) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_cv_type_uint64_t=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_cv_type_uint64_t=no
5938 fi
5939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940 fi
5941 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5942 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5943 if test $ac_cv_type_uint64_t = yes; then
5944   :
5945 else
5946   acx_cv_header_stdint_kind="(lacks uint64_t)"
5947 fi
5948
5949   break
5950 done
5951 if test "$acx_cv_header_stdint" = stddef.h; then
5952   acx_cv_header_stdint_kind="(lacks uintmax_t)"
5953   for i in stdint.h $inttype_headers; do
5954     unset ac_cv_type_uintptr_t
5955     unset ac_cv_type_uint32_t
5956     unset ac_cv_type_uint64_t
5957     echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5958     echo "$as_me:$LINENO: checking for uint32_t" >&5
5959 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5960 if test "${ac_cv_type_uint32_t+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h.  */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h.  */
5969 #include <sys/types.h>
5970 #include <$i>
5971
5972 int
5973 main ()
5974 {
5975 if ((uint32_t *) 0)
5976   return 0;
5977 if (sizeof (uint32_t))
5978   return 0;
5979   ;
5980   return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985   (eval $ac_compile) 2>conftest.er1
5986   ac_status=$?
5987   grep -v '^ *+' conftest.er1 >conftest.err
5988   rm -f conftest.er1
5989   cat conftest.err >&5
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } &&
5992          { ac_try='test -z "$ac_c_werror_flag"
5993                          || test ! -s conftest.err'
5994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995   (eval $ac_try) 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest.$ac_objext'
6000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001   (eval $ac_try) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; }; then
6005   ac_cv_type_uint32_t=yes
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_cv_type_uint32_t=no
6011 fi
6012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013 fi
6014 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6015 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6016 if test $ac_cv_type_uint32_t = yes; then
6017   acx_cv_header_stdint=$i
6018 else
6019   continue
6020 fi
6021
6022     echo "$as_me:$LINENO: checking for uint64_t" >&5
6023 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6024 if test "${ac_cv_type_uint64_t+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027   cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h.  */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h.  */
6033 #include <sys/types.h>
6034 #include <$i>
6035
6036 int
6037 main ()
6038 {
6039 if ((uint64_t *) 0)
6040   return 0;
6041 if (sizeof (uint64_t))
6042   return 0;
6043   ;
6044   return 0;
6045 }
6046 _ACEOF
6047 rm -f conftest.$ac_objext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049   (eval $ac_compile) 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } &&
6056          { ac_try='test -z "$ac_c_werror_flag"
6057                          || test ! -s conftest.err'
6058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059   (eval $ac_try) 2>&5
6060   ac_status=$?
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); }; } &&
6063          { ac_try='test -s conftest.$ac_objext'
6064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065   (eval $ac_try) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; }; then
6069   ac_cv_type_uint64_t=yes
6070 else
6071   echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 ac_cv_type_uint64_t=no
6075 fi
6076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077 fi
6078 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6079 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6080
6081     echo "$as_me:$LINENO: checking for uintptr_t" >&5
6082 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6083 if test "${ac_cv_type_uintptr_t+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092 #include <sys/types.h>
6093 #include <$i>
6094
6095 int
6096 main ()
6097 {
6098 if ((uintptr_t *) 0)
6099   return 0;
6100 if (sizeof (uintptr_t))
6101   return 0;
6102   ;
6103   return 0;
6104 }
6105 _ACEOF
6106 rm -f conftest.$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108   (eval $ac_compile) 2>conftest.er1
6109   ac_status=$?
6110   grep -v '^ *+' conftest.er1 >conftest.err
6111   rm -f conftest.er1
6112   cat conftest.err >&5
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); } &&
6115          { ac_try='test -z "$ac_c_werror_flag"
6116                          || test ! -s conftest.err'
6117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118   (eval $ac_try) 2>&5
6119   ac_status=$?
6120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121   (exit $ac_status); }; } &&
6122          { ac_try='test -s conftest.$ac_objext'
6123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124   (eval $ac_try) 2>&5
6125   ac_status=$?
6126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127   (exit $ac_status); }; }; then
6128   ac_cv_type_uintptr_t=yes
6129 else
6130   echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_cv_type_uintptr_t=no
6134 fi
6135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6136 fi
6137 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6138 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
6139
6140     break
6141   done
6142 fi
6143 if test "$acx_cv_header_stdint" = stddef.h; then
6144   acx_cv_header_stdint_kind="(u_intXX_t style)"
6145   for i in sys/types.h $inttype_headers; do
6146     unset ac_cv_type_u_int32_t
6147     unset ac_cv_type_u_int64_t
6148     echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
6149     echo "$as_me:$LINENO: checking for u_int32_t" >&5
6150 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6151 if test "${ac_cv_type_u_int32_t+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h.  */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h.  */
6160 #include <sys/types.h>
6161 #include <$i>
6162
6163 int
6164 main ()
6165 {
6166 if ((u_int32_t *) 0)
6167   return 0;
6168 if (sizeof (u_int32_t))
6169   return 0;
6170   ;
6171   return 0;
6172 }
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176   (eval $ac_compile) 2>conftest.er1
6177   ac_status=$?
6178   grep -v '^ *+' conftest.er1 >conftest.err
6179   rm -f conftest.er1
6180   cat conftest.err >&5
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); } &&
6183          { ac_try='test -z "$ac_c_werror_flag"
6184                          || test ! -s conftest.err'
6185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186   (eval $ac_try) 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); }; } &&
6190          { ac_try='test -s conftest.$ac_objext'
6191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192   (eval $ac_try) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; }; then
6196   ac_cv_type_u_int32_t=yes
6197 else
6198   echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201 ac_cv_type_u_int32_t=no
6202 fi
6203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6204 fi
6205 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6206 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6207 if test $ac_cv_type_u_int32_t = yes; then
6208   acx_cv_header_stdint=$i
6209 else
6210   continue
6211 fi
6212
6213     echo "$as_me:$LINENO: checking for u_int64_t" >&5
6214 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6215 if test "${ac_cv_type_u_int64_t+set}" = set; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h.  */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h.  */
6224 #include <sys/types.h>
6225 #include <$i>
6226
6227 int
6228 main ()
6229 {
6230 if ((u_int64_t *) 0)
6231   return 0;
6232 if (sizeof (u_int64_t))
6233   return 0;
6234   ;
6235   return 0;
6236 }
6237 _ACEOF
6238 rm -f conftest.$ac_objext
6239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6240   (eval $ac_compile) 2>conftest.er1
6241   ac_status=$?
6242   grep -v '^ *+' conftest.er1 >conftest.err
6243   rm -f conftest.er1
6244   cat conftest.err >&5
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } &&
6247          { ac_try='test -z "$ac_c_werror_flag"
6248                          || test ! -s conftest.err'
6249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250   (eval $ac_try) 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); }; } &&
6254          { ac_try='test -s conftest.$ac_objext'
6255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256   (eval $ac_try) 2>&5
6257   ac_status=$?
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); }; }; then
6260   ac_cv_type_u_int64_t=yes
6261 else
6262   echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265 ac_cv_type_u_int64_t=no
6266 fi
6267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6268 fi
6269 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6270 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6271
6272     break
6273   done
6274 fi
6275 if test "$acx_cv_header_stdint" = stddef.h; then
6276   acx_cv_header_stdint_kind="(using manual detection)"
6277 fi
6278
6279 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6280 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6281 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6282 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6283 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6284
6285 # ----------------- Summarize what we found so far
6286
6287 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6288 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6289
6290 case `$as_basename gstdint.h ||
6291 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6292          Xgstdint.h : 'X\(//\)$' \| \
6293          Xgstdint.h : 'X\(/\)$' \| \
6294          .     : '\(.\)' 2>/dev/null ||
6295 echo X/gstdint.h |
6296     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6297           /^X\/\(\/\/\)$/{ s//\1/; q; }
6298           /^X\/\(\/\).*/{ s//\1/; q; }
6299           s/.*/./; q'` in
6300   stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6301 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6302   inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6303 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6304   *) ;;
6305 esac
6306
6307 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6308 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6309
6310 # ----------------- done included file, check C basic types --------
6311
6312 # Lacking an uintptr_t?  Test size of void *
6313 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6314   stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6315 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6316 if test "${ac_cv_type_void_p+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325 $ac_includes_default
6326 int
6327 main ()
6328 {
6329 if ((void * *) 0)
6330   return 0;
6331 if (sizeof (void *))
6332   return 0;
6333   ;
6334   return 0;
6335 }
6336 _ACEOF
6337 rm -f conftest.$ac_objext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6339   (eval $ac_compile) 2>conftest.er1
6340   ac_status=$?
6341   grep -v '^ *+' conftest.er1 >conftest.err
6342   rm -f conftest.er1
6343   cat conftest.err >&5
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); } &&
6346          { ac_try='test -z "$ac_c_werror_flag"
6347                          || test ! -s conftest.err'
6348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349   (eval $ac_try) 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }; } &&
6353          { ac_try='test -s conftest.$ac_objext'
6354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355   (eval $ac_try) 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }; }; then
6359   ac_cv_type_void_p=yes
6360 else
6361   echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 ac_cv_type_void_p=no
6365 fi
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 fi
6368 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6369 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6370
6371 echo "$as_me:$LINENO: checking size of void *" >&5
6372 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6373 if test "${ac_cv_sizeof_void_p+set}" = set; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   if test "$ac_cv_type_void_p" = yes; then
6377   # The cast to unsigned long works around a bug in the HP C Compiler
6378   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6379   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6380   # This bug is HP SR number 8606223364.
6381   if test "$cross_compiling" = yes; then
6382   # Depending upon the size, compute the lo and hi bounds.
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h.  */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h.  */
6389 $ac_includes_default
6390 int
6391 main ()
6392 {
6393 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6394 test_array [0] = 0
6395
6396   ;
6397   return 0;
6398 }
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402   (eval $ac_compile) 2>conftest.er1
6403   ac_status=$?
6404   grep -v '^ *+' conftest.er1 >conftest.err
6405   rm -f conftest.er1
6406   cat conftest.err >&5
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } &&
6409          { ac_try='test -z "$ac_c_werror_flag"
6410                          || test ! -s conftest.err'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; } &&
6416          { ac_try='test -s conftest.$ac_objext'
6417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418   (eval $ac_try) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); }; }; then
6422   ac_lo=0 ac_mid=0
6423   while :; do
6424     cat >conftest.$ac_ext <<_ACEOF
6425 /* confdefs.h.  */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h.  */
6430 $ac_includes_default
6431 int
6432 main ()
6433 {
6434 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6435 test_array [0] = 0
6436
6437   ;
6438   return 0;
6439 }
6440 _ACEOF
6441 rm -f conftest.$ac_objext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443   (eval $ac_compile) 2>conftest.er1
6444   ac_status=$?
6445   grep -v '^ *+' conftest.er1 >conftest.err
6446   rm -f conftest.er1
6447   cat conftest.err >&5
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); } &&
6450          { ac_try='test -z "$ac_c_werror_flag"
6451                          || test ! -s conftest.err'
6452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453   (eval $ac_try) 2>&5
6454   ac_status=$?
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); }; } &&
6457          { ac_try='test -s conftest.$ac_objext'
6458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459   (eval $ac_try) 2>&5
6460   ac_status=$?
6461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462   (exit $ac_status); }; }; then
6463   ac_hi=$ac_mid; break
6464 else
6465   echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 ac_lo=`expr $ac_mid + 1`
6469                     if test $ac_lo -le $ac_mid; then
6470                       ac_lo= ac_hi=
6471                       break
6472                     fi
6473                     ac_mid=`expr 2 '*' $ac_mid + 1`
6474 fi
6475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6476   done
6477 else
6478   echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6480
6481 cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h.  */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h.  */
6487 $ac_includes_default
6488 int
6489 main ()
6490 {
6491 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6492 test_array [0] = 0
6493
6494   ;
6495   return 0;
6496 }
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500   (eval $ac_compile) 2>conftest.er1
6501   ac_status=$?
6502   grep -v '^ *+' conftest.er1 >conftest.err
6503   rm -f conftest.er1
6504   cat conftest.err >&5
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); } &&
6507          { ac_try='test -z "$ac_c_werror_flag"
6508                          || test ! -s conftest.err'
6509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510   (eval $ac_try) 2>&5
6511   ac_status=$?
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); }; } &&
6514          { ac_try='test -s conftest.$ac_objext'
6515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516   (eval $ac_try) 2>&5
6517   ac_status=$?
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); }; }; then
6520   ac_hi=-1 ac_mid=-1
6521   while :; do
6522     cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h.  */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h.  */
6528 $ac_includes_default
6529 int
6530 main ()
6531 {
6532 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6533 test_array [0] = 0
6534
6535   ;
6536   return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541   (eval $ac_compile) 2>conftest.er1
6542   ac_status=$?
6543   grep -v '^ *+' conftest.er1 >conftest.err
6544   rm -f conftest.er1
6545   cat conftest.err >&5
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); } &&
6548          { ac_try='test -z "$ac_c_werror_flag"
6549                          || test ! -s conftest.err'
6550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551   (eval $ac_try) 2>&5
6552   ac_status=$?
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); }; } &&
6555          { ac_try='test -s conftest.$ac_objext'
6556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557   (eval $ac_try) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); }; }; then
6561   ac_lo=$ac_mid; break
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 ac_hi=`expr '(' $ac_mid ')' - 1`
6567                        if test $ac_mid -le $ac_hi; then
6568                          ac_lo= ac_hi=
6569                          break
6570                        fi
6571                        ac_mid=`expr 2 '*' $ac_mid`
6572 fi
6573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6574   done
6575 else
6576   echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6578
6579 ac_lo= ac_hi=
6580 fi
6581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6582 fi
6583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584 # Binary search between lo and hi bounds.
6585 while test "x$ac_lo" != "x$ac_hi"; do
6586   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6587   cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h.  */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h.  */
6593 $ac_includes_default
6594 int
6595 main ()
6596 {
6597 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6598 test_array [0] = 0
6599
6600   ;
6601   return 0;
6602 }
6603 _ACEOF
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606   (eval $ac_compile) 2>conftest.er1
6607   ac_status=$?
6608   grep -v '^ *+' conftest.er1 >conftest.err
6609   rm -f conftest.er1
6610   cat conftest.err >&5
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } &&
6613          { ac_try='test -z "$ac_c_werror_flag"
6614                          || test ! -s conftest.err'
6615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616   (eval $ac_try) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; } &&
6620          { ac_try='test -s conftest.$ac_objext'
6621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622   (eval $ac_try) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; }; then
6626   ac_hi=$ac_mid
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_lo=`expr '(' $ac_mid ')' + 1`
6632 fi
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634 done
6635 case $ac_lo in
6636 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6637 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6638 See \`config.log' for more details." >&5
6639 echo "$as_me: error: cannot compute sizeof (void *), 77
6640 See \`config.log' for more details." >&2;}
6641    { (exit 1); exit 1; }; } ;;
6642 esac
6643 else
6644   if test "$cross_compiling" = yes; then
6645   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6646 See \`config.log' for more details." >&5
6647 echo "$as_me: error: cannot run test program while cross compiling
6648 See \`config.log' for more details." >&2;}
6649    { (exit 1); exit 1; }; }
6650 else
6651   cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h.  */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h.  */
6657 $ac_includes_default
6658 long longval () { return (long) (sizeof (void *)); }
6659 unsigned long ulongval () { return (long) (sizeof (void *)); }
6660 #include <stdio.h>
6661 #include <stdlib.h>
6662 int
6663 main ()
6664 {
6665
6666   FILE *f = fopen ("conftest.val", "w");
6667   if (! f)
6668     exit (1);
6669   if (((long) (sizeof (void *))) < 0)
6670     {
6671       long i = longval ();
6672       if (i != ((long) (sizeof (void *))))
6673         exit (1);
6674       fprintf (f, "%ld\n", i);
6675     }
6676   else
6677     {
6678       unsigned long i = ulongval ();
6679       if (i != ((long) (sizeof (void *))))
6680         exit (1);
6681       fprintf (f, "%lu\n", i);
6682     }
6683   exit (ferror (f) || fclose (f) != 0);
6684
6685   ;
6686   return 0;
6687 }
6688 _ACEOF
6689 rm -f conftest$ac_exeext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691   (eval $ac_link) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696   (eval $ac_try) 2>&5
6697   ac_status=$?
6698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699   (exit $ac_status); }; }; then
6700   ac_cv_sizeof_void_p=`cat conftest.val`
6701 else
6702   echo "$as_me: program exited with status $ac_status" >&5
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 ( exit $ac_status )
6707 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6708 See \`config.log' for more details." >&5
6709 echo "$as_me: error: cannot compute sizeof (void *), 77
6710 See \`config.log' for more details." >&2;}
6711    { (exit 1); exit 1; }; }
6712 fi
6713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6714 fi
6715 fi
6716 rm -f conftest.val
6717 else
6718   ac_cv_sizeof_void_p=0
6719 fi
6720 fi
6721 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6722 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6723 cat >>confdefs.h <<_ACEOF
6724 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6725 _ACEOF
6726
6727  ;;
6728 esac
6729
6730 # Lacking an uint64_t?  Test size of long
6731 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6732   stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6733 echo $ECHO_N "checking for long... $ECHO_C" >&6
6734 if test "${ac_cv_type_long+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h.  */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h.  */
6743 $ac_includes_default
6744 int
6745 main ()
6746 {
6747 if ((long *) 0)
6748   return 0;
6749 if (sizeof (long))
6750   return 0;
6751   ;
6752   return 0;
6753 }
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757   (eval $ac_compile) 2>conftest.er1
6758   ac_status=$?
6759   grep -v '^ *+' conftest.er1 >conftest.err
6760   rm -f conftest.er1
6761   cat conftest.err >&5
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); } &&
6764          { ac_try='test -z "$ac_c_werror_flag"
6765                          || test ! -s conftest.err'
6766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767   (eval $ac_try) 2>&5
6768   ac_status=$?
6769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770   (exit $ac_status); }; } &&
6771          { ac_try='test -s conftest.$ac_objext'
6772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773   (eval $ac_try) 2>&5
6774   ac_status=$?
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); }; }; then
6777   ac_cv_type_long=yes
6778 else
6779   echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782 ac_cv_type_long=no
6783 fi
6784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6785 fi
6786 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6787 echo "${ECHO_T}$ac_cv_type_long" >&6
6788
6789 echo "$as_me:$LINENO: checking size of long" >&5
6790 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6791 if test "${ac_cv_sizeof_long+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   if test "$ac_cv_type_long" = yes; then
6795   # The cast to unsigned long works around a bug in the HP C Compiler
6796   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6797   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6798   # This bug is HP SR number 8606223364.
6799   if test "$cross_compiling" = yes; then
6800   # Depending upon the size, compute the lo and hi bounds.
6801 cat >conftest.$ac_ext <<_ACEOF
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807 $ac_includes_default
6808 int
6809 main ()
6810 {
6811 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6812 test_array [0] = 0
6813
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820   (eval $ac_compile) 2>conftest.er1
6821   ac_status=$?
6822   grep -v '^ *+' conftest.er1 >conftest.err
6823   rm -f conftest.er1
6824   cat conftest.err >&5
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); } &&
6827          { ac_try='test -z "$ac_c_werror_flag"
6828                          || test ! -s conftest.err'
6829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830   (eval $ac_try) 2>&5
6831   ac_status=$?
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); }; } &&
6834          { ac_try='test -s conftest.$ac_objext'
6835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836   (eval $ac_try) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); }; }; then
6840   ac_lo=0 ac_mid=0
6841   while :; do
6842     cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h.  */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h.  */
6848 $ac_includes_default
6849 int
6850 main ()
6851 {
6852 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6853 test_array [0] = 0
6854
6855   ;
6856   return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861   (eval $ac_compile) 2>conftest.er1
6862   ac_status=$?
6863   grep -v '^ *+' conftest.er1 >conftest.err
6864   rm -f conftest.er1
6865   cat conftest.err >&5
6866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867   (exit $ac_status); } &&
6868          { ac_try='test -z "$ac_c_werror_flag"
6869                          || test ! -s conftest.err'
6870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871   (eval $ac_try) 2>&5
6872   ac_status=$?
6873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874   (exit $ac_status); }; } &&
6875          { ac_try='test -s conftest.$ac_objext'
6876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877   (eval $ac_try) 2>&5
6878   ac_status=$?
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); }; }; then
6881   ac_hi=$ac_mid; break
6882 else
6883   echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6885
6886 ac_lo=`expr $ac_mid + 1`
6887                     if test $ac_lo -le $ac_mid; then
6888                       ac_lo= ac_hi=
6889                       break
6890                     fi
6891                     ac_mid=`expr 2 '*' $ac_mid + 1`
6892 fi
6893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6894   done
6895 else
6896   echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6898
6899 cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h.  */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h.  */
6905 $ac_includes_default
6906 int
6907 main ()
6908 {
6909 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6910 test_array [0] = 0
6911
6912   ;
6913   return 0;
6914 }
6915 _ACEOF
6916 rm -f conftest.$ac_objext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918   (eval $ac_compile) 2>conftest.er1
6919   ac_status=$?
6920   grep -v '^ *+' conftest.er1 >conftest.err
6921   rm -f conftest.er1
6922   cat conftest.err >&5
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); } &&
6925          { ac_try='test -z "$ac_c_werror_flag"
6926                          || test ! -s conftest.err'
6927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928   (eval $ac_try) 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); }; } &&
6932          { ac_try='test -s conftest.$ac_objext'
6933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934   (eval $ac_try) 2>&5
6935   ac_status=$?
6936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937   (exit $ac_status); }; }; then
6938   ac_hi=-1 ac_mid=-1
6939   while :; do
6940     cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946 $ac_includes_default
6947 int
6948 main ()
6949 {
6950 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6951 test_array [0] = 0
6952
6953   ;
6954   return 0;
6955 }
6956 _ACEOF
6957 rm -f conftest.$ac_objext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959   (eval $ac_compile) 2>conftest.er1
6960   ac_status=$?
6961   grep -v '^ *+' conftest.er1 >conftest.err
6962   rm -f conftest.er1
6963   cat conftest.err >&5
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); } &&
6966          { ac_try='test -z "$ac_c_werror_flag"
6967                          || test ! -s conftest.err'
6968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969   (eval $ac_try) 2>&5
6970   ac_status=$?
6971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972   (exit $ac_status); }; } &&
6973          { ac_try='test -s conftest.$ac_objext'
6974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975   (eval $ac_try) 2>&5
6976   ac_status=$?
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); }; }; then
6979   ac_lo=$ac_mid; break
6980 else
6981   echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6983
6984 ac_hi=`expr '(' $ac_mid ')' - 1`
6985                        if test $ac_mid -le $ac_hi; then
6986                          ac_lo= ac_hi=
6987                          break
6988                        fi
6989                        ac_mid=`expr 2 '*' $ac_mid`
6990 fi
6991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6992   done
6993 else
6994   echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6996
6997 ac_lo= ac_hi=
6998 fi
6999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7000 fi
7001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7002 # Binary search between lo and hi bounds.
7003 while test "x$ac_lo" != "x$ac_hi"; do
7004   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7005   cat >conftest.$ac_ext <<_ACEOF
7006 /* confdefs.h.  */
7007 _ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h.  */
7011 $ac_includes_default
7012 int
7013 main ()
7014 {
7015 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7016 test_array [0] = 0
7017
7018   ;
7019   return 0;
7020 }
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024   (eval $ac_compile) 2>conftest.er1
7025   ac_status=$?
7026   grep -v '^ *+' conftest.er1 >conftest.err
7027   rm -f conftest.er1
7028   cat conftest.err >&5
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); } &&
7031          { ac_try='test -z "$ac_c_werror_flag"
7032                          || test ! -s conftest.err'
7033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034   (eval $ac_try) 2>&5
7035   ac_status=$?
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); }; } &&
7038          { ac_try='test -s conftest.$ac_objext'
7039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040   (eval $ac_try) 2>&5
7041   ac_status=$?
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); }; }; then
7044   ac_hi=$ac_mid
7045 else
7046   echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049 ac_lo=`expr '(' $ac_mid ')' + 1`
7050 fi
7051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052 done
7053 case $ac_lo in
7054 ?*) ac_cv_sizeof_long=$ac_lo;;
7055 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7056 See \`config.log' for more details." >&5
7057 echo "$as_me: error: cannot compute sizeof (long), 77
7058 See \`config.log' for more details." >&2;}
7059    { (exit 1); exit 1; }; } ;;
7060 esac
7061 else
7062   if test "$cross_compiling" = yes; then
7063   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7064 See \`config.log' for more details." >&5
7065 echo "$as_me: error: cannot run test program while cross compiling
7066 See \`config.log' for more details." >&2;}
7067    { (exit 1); exit 1; }; }
7068 else
7069   cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h.  */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h.  */
7075 $ac_includes_default
7076 long longval () { return (long) (sizeof (long)); }
7077 unsigned long ulongval () { return (long) (sizeof (long)); }
7078 #include <stdio.h>
7079 #include <stdlib.h>
7080 int
7081 main ()
7082 {
7083
7084   FILE *f = fopen ("conftest.val", "w");
7085   if (! f)
7086     exit (1);
7087   if (((long) (sizeof (long))) < 0)
7088     {
7089       long i = longval ();
7090       if (i != ((long) (sizeof (long))))
7091         exit (1);
7092       fprintf (f, "%ld\n", i);
7093     }
7094   else
7095     {
7096       unsigned long i = ulongval ();
7097       if (i != ((long) (sizeof (long))))
7098         exit (1);
7099       fprintf (f, "%lu\n", i);
7100     }
7101   exit (ferror (f) || fclose (f) != 0);
7102
7103   ;
7104   return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109   (eval $ac_link) 2>&5
7110   ac_status=$?
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114   (eval $ac_try) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); }; }; then
7118   ac_cv_sizeof_long=`cat conftest.val`
7119 else
7120   echo "$as_me: program exited with status $ac_status" >&5
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7123
7124 ( exit $ac_status )
7125 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7126 See \`config.log' for more details." >&5
7127 echo "$as_me: error: cannot compute sizeof (long), 77
7128 See \`config.log' for more details." >&2;}
7129    { (exit 1); exit 1; }; }
7130 fi
7131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7132 fi
7133 fi
7134 rm -f conftest.val
7135 else
7136   ac_cv_sizeof_long=0
7137 fi
7138 fi
7139 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7140 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7141 cat >>confdefs.h <<_ACEOF
7142 #define SIZEOF_LONG $ac_cv_sizeof_long
7143 _ACEOF
7144
7145  ;;
7146 esac
7147
7148 if test $acx_cv_header_stdint = stddef.h; then
7149   # Lacking a good header?  Test size of everything and deduce all types.
7150   echo "$as_me:$LINENO: checking for int" >&5
7151 echo $ECHO_N "checking for int... $ECHO_C" >&6
7152 if test "${ac_cv_type_int+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161 $ac_includes_default
7162 int
7163 main ()
7164 {
7165 if ((int *) 0)
7166   return 0;
7167 if (sizeof (int))
7168   return 0;
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest.$ac_objext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7175   (eval $ac_compile) 2>conftest.er1
7176   ac_status=$?
7177   grep -v '^ *+' conftest.er1 >conftest.err
7178   rm -f conftest.er1
7179   cat conftest.err >&5
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); } &&
7182          { ac_try='test -z "$ac_c_werror_flag"
7183                          || test ! -s conftest.err'
7184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185   (eval $ac_try) 2>&5
7186   ac_status=$?
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); }; } &&
7189          { ac_try='test -s conftest.$ac_objext'
7190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191   (eval $ac_try) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); }; }; then
7195   ac_cv_type_int=yes
7196 else
7197   echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7199
7200 ac_cv_type_int=no
7201 fi
7202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7203 fi
7204 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7205 echo "${ECHO_T}$ac_cv_type_int" >&6
7206
7207 echo "$as_me:$LINENO: checking size of int" >&5
7208 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7209 if test "${ac_cv_sizeof_int+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212   if test "$ac_cv_type_int" = yes; then
7213   # The cast to unsigned long works around a bug in the HP C Compiler
7214   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7215   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7216   # This bug is HP SR number 8606223364.
7217   if test "$cross_compiling" = yes; then
7218   # Depending upon the size, compute the lo and hi bounds.
7219 cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225 $ac_includes_default
7226 int
7227 main ()
7228 {
7229 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7230 test_array [0] = 0
7231
7232   ;
7233   return 0;
7234 }
7235 _ACEOF
7236 rm -f conftest.$ac_objext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238   (eval $ac_compile) 2>conftest.er1
7239   ac_status=$?
7240   grep -v '^ *+' conftest.er1 >conftest.err
7241   rm -f conftest.er1
7242   cat conftest.err >&5
7243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); } &&
7245          { ac_try='test -z "$ac_c_werror_flag"
7246                          || test ! -s conftest.err'
7247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); }; } &&
7252          { ac_try='test -s conftest.$ac_objext'
7253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254   (eval $ac_try) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); }; }; then
7258   ac_lo=0 ac_mid=0
7259   while :; do
7260     cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h.  */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h.  */
7266 $ac_includes_default
7267 int
7268 main ()
7269 {
7270 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7271 test_array [0] = 0
7272
7273   ;
7274   return 0;
7275 }
7276 _ACEOF
7277 rm -f conftest.$ac_objext
7278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7279   (eval $ac_compile) 2>conftest.er1
7280   ac_status=$?
7281   grep -v '^ *+' conftest.er1 >conftest.err
7282   rm -f conftest.er1
7283   cat conftest.err >&5
7284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285   (exit $ac_status); } &&
7286          { ac_try='test -z "$ac_c_werror_flag"
7287                          || test ! -s conftest.err'
7288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289   (eval $ac_try) 2>&5
7290   ac_status=$?
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); }; } &&
7293          { ac_try='test -s conftest.$ac_objext'
7294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295   (eval $ac_try) 2>&5
7296   ac_status=$?
7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); }; }; then
7299   ac_hi=$ac_mid; break
7300 else
7301   echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7303
7304 ac_lo=`expr $ac_mid + 1`
7305                     if test $ac_lo -le $ac_mid; then
7306                       ac_lo= ac_hi=
7307                       break
7308                     fi
7309                     ac_mid=`expr 2 '*' $ac_mid + 1`
7310 fi
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312   done
7313 else
7314   echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7316
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h.  */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h.  */
7323 $ac_includes_default
7324 int
7325 main ()
7326 {
7327 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7328 test_array [0] = 0
7329
7330   ;
7331   return 0;
7332 }
7333 _ACEOF
7334 rm -f conftest.$ac_objext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7336   (eval $ac_compile) 2>conftest.er1
7337   ac_status=$?
7338   grep -v '^ *+' conftest.er1 >conftest.err
7339   rm -f conftest.er1
7340   cat conftest.err >&5
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); } &&
7343          { ac_try='test -z "$ac_c_werror_flag"
7344                          || test ! -s conftest.err'
7345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346   (eval $ac_try) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); }; } &&
7350          { ac_try='test -s conftest.$ac_objext'
7351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352   (eval $ac_try) 2>&5
7353   ac_status=$?
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); }; }; then
7356   ac_hi=-1 ac_mid=-1
7357   while :; do
7358     cat >conftest.$ac_ext <<_ACEOF
7359 /* confdefs.h.  */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h.  */
7364 $ac_includes_default
7365 int
7366 main ()
7367 {
7368 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7369 test_array [0] = 0
7370
7371   ;
7372   return 0;
7373 }
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377   (eval $ac_compile) 2>conftest.er1
7378   ac_status=$?
7379   grep -v '^ *+' conftest.er1 >conftest.err
7380   rm -f conftest.er1
7381   cat conftest.err >&5
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); } &&
7384          { ac_try='test -z "$ac_c_werror_flag"
7385                          || test ! -s conftest.err'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; } &&
7391          { ac_try='test -s conftest.$ac_objext'
7392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393   (eval $ac_try) 2>&5
7394   ac_status=$?
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); }; }; then
7397   ac_lo=$ac_mid; break
7398 else
7399   echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 ac_hi=`expr '(' $ac_mid ')' - 1`
7403                        if test $ac_mid -le $ac_hi; then
7404                          ac_lo= ac_hi=
7405                          break
7406                        fi
7407                        ac_mid=`expr 2 '*' $ac_mid`
7408 fi
7409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7410   done
7411 else
7412   echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7414
7415 ac_lo= ac_hi=
7416 fi
7417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7418 fi
7419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7420 # Binary search between lo and hi bounds.
7421 while test "x$ac_lo" != "x$ac_hi"; do
7422   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7423   cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429 $ac_includes_default
7430 int
7431 main ()
7432 {
7433 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7434 test_array [0] = 0
7435
7436   ;
7437   return 0;
7438 }
7439 _ACEOF
7440 rm -f conftest.$ac_objext
7441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7442   (eval $ac_compile) 2>conftest.er1
7443   ac_status=$?
7444   grep -v '^ *+' conftest.er1 >conftest.err
7445   rm -f conftest.er1
7446   cat conftest.err >&5
7447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); } &&
7449          { ac_try='test -z "$ac_c_werror_flag"
7450                          || test ! -s conftest.err'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; } &&
7456          { ac_try='test -s conftest.$ac_objext'
7457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458   (eval $ac_try) 2>&5
7459   ac_status=$?
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); }; }; then
7462   ac_hi=$ac_mid
7463 else
7464   echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467 ac_lo=`expr '(' $ac_mid ')' + 1`
7468 fi
7469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7470 done
7471 case $ac_lo in
7472 ?*) ac_cv_sizeof_int=$ac_lo;;
7473 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7474 See \`config.log' for more details." >&5
7475 echo "$as_me: error: cannot compute sizeof (int), 77
7476 See \`config.log' for more details." >&2;}
7477    { (exit 1); exit 1; }; } ;;
7478 esac
7479 else
7480   if test "$cross_compiling" = yes; then
7481   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7482 See \`config.log' for more details." >&5
7483 echo "$as_me: error: cannot run test program while cross compiling
7484 See \`config.log' for more details." >&2;}
7485    { (exit 1); exit 1; }; }
7486 else
7487   cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h.  */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h.  */
7493 $ac_includes_default
7494 long longval () { return (long) (sizeof (int)); }
7495 unsigned long ulongval () { return (long) (sizeof (int)); }
7496 #include <stdio.h>
7497 #include <stdlib.h>
7498 int
7499 main ()
7500 {
7501
7502   FILE *f = fopen ("conftest.val", "w");
7503   if (! f)
7504     exit (1);
7505   if (((long) (sizeof (int))) < 0)
7506     {
7507       long i = longval ();
7508       if (i != ((long) (sizeof (int))))
7509         exit (1);
7510       fprintf (f, "%ld\n", i);
7511     }
7512   else
7513     {
7514       unsigned long i = ulongval ();
7515       if (i != ((long) (sizeof (int))))
7516         exit (1);
7517       fprintf (f, "%lu\n", i);
7518     }
7519   exit (ferror (f) || fclose (f) != 0);
7520
7521   ;
7522   return 0;
7523 }
7524 _ACEOF
7525 rm -f conftest$ac_exeext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7527   (eval $ac_link) 2>&5
7528   ac_status=$?
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532   (eval $ac_try) 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); }; }; then
7536   ac_cv_sizeof_int=`cat conftest.val`
7537 else
7538   echo "$as_me: program exited with status $ac_status" >&5
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542 ( exit $ac_status )
7543 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7544 See \`config.log' for more details." >&5
7545 echo "$as_me: error: cannot compute sizeof (int), 77
7546 See \`config.log' for more details." >&2;}
7547    { (exit 1); exit 1; }; }
7548 fi
7549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7550 fi
7551 fi
7552 rm -f conftest.val
7553 else
7554   ac_cv_sizeof_int=0
7555 fi
7556 fi
7557 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7558 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7559 cat >>confdefs.h <<_ACEOF
7560 #define SIZEOF_INT $ac_cv_sizeof_int
7561 _ACEOF
7562
7563
7564   echo "$as_me:$LINENO: checking for short" >&5
7565 echo $ECHO_N "checking for short... $ECHO_C" >&6
7566 if test "${ac_cv_type_short+set}" = set; then
7567   echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569   cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h.  */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h.  */
7575 $ac_includes_default
7576 int
7577 main ()
7578 {
7579 if ((short *) 0)
7580   return 0;
7581 if (sizeof (short))
7582   return 0;
7583   ;
7584   return 0;
7585 }
7586 _ACEOF
7587 rm -f conftest.$ac_objext
7588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7589   (eval $ac_compile) 2>conftest.er1
7590   ac_status=$?
7591   grep -v '^ *+' conftest.er1 >conftest.err
7592   rm -f conftest.er1
7593   cat conftest.err >&5
7594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595   (exit $ac_status); } &&
7596          { ac_try='test -z "$ac_c_werror_flag"
7597                          || test ! -s conftest.err'
7598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599   (eval $ac_try) 2>&5
7600   ac_status=$?
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); }; } &&
7603          { ac_try='test -s conftest.$ac_objext'
7604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605   (eval $ac_try) 2>&5
7606   ac_status=$?
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); }; }; then
7609   ac_cv_type_short=yes
7610 else
7611   echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7613
7614 ac_cv_type_short=no
7615 fi
7616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7617 fi
7618 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7619 echo "${ECHO_T}$ac_cv_type_short" >&6
7620
7621 echo "$as_me:$LINENO: checking size of short" >&5
7622 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7623 if test "${ac_cv_sizeof_short+set}" = set; then
7624   echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626   if test "$ac_cv_type_short" = yes; then
7627   # The cast to unsigned long works around a bug in the HP C Compiler
7628   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7629   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7630   # This bug is HP SR number 8606223364.
7631   if test "$cross_compiling" = yes; then
7632   # Depending upon the size, compute the lo and hi bounds.
7633 cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h.  */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h.  */
7639 $ac_includes_default
7640 int
7641 main ()
7642 {
7643 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7644 test_array [0] = 0
7645
7646   ;
7647   return 0;
7648 }
7649 _ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652   (eval $ac_compile) 2>conftest.er1
7653   ac_status=$?
7654   grep -v '^ *+' conftest.er1 >conftest.err
7655   rm -f conftest.er1
7656   cat conftest.err >&5
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); } &&
7659          { ac_try='test -z "$ac_c_werror_flag"
7660                          || test ! -s conftest.err'
7661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662   (eval $ac_try) 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); }; } &&
7666          { ac_try='test -s conftest.$ac_objext'
7667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668   (eval $ac_try) 2>&5
7669   ac_status=$?
7670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671   (exit $ac_status); }; }; then
7672   ac_lo=0 ac_mid=0
7673   while :; do
7674     cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h.  */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h.  */
7680 $ac_includes_default
7681 int
7682 main ()
7683 {
7684 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7685 test_array [0] = 0
7686
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693   (eval $ac_compile) 2>conftest.er1
7694   ac_status=$?
7695   grep -v '^ *+' conftest.er1 >conftest.err
7696   rm -f conftest.er1
7697   cat conftest.err >&5
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); } &&
7700          { ac_try='test -z "$ac_c_werror_flag"
7701                          || test ! -s conftest.err'
7702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703   (eval $ac_try) 2>&5
7704   ac_status=$?
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); }; } &&
7707          { ac_try='test -s conftest.$ac_objext'
7708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709   (eval $ac_try) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; }; then
7713   ac_hi=$ac_mid; break
7714 else
7715   echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 ac_lo=`expr $ac_mid + 1`
7719                     if test $ac_lo -le $ac_mid; then
7720                       ac_lo= ac_hi=
7721                       break
7722                     fi
7723                     ac_mid=`expr 2 '*' $ac_mid + 1`
7724 fi
7725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7726   done
7727 else
7728   echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7730
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h.  */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h.  */
7737 $ac_includes_default
7738 int
7739 main ()
7740 {
7741 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7742 test_array [0] = 0
7743
7744   ;
7745   return 0;
7746 }
7747 _ACEOF
7748 rm -f conftest.$ac_objext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750   (eval $ac_compile) 2>conftest.er1
7751   ac_status=$?
7752   grep -v '^ *+' conftest.er1 >conftest.err
7753   rm -f conftest.er1
7754   cat conftest.err >&5
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); } &&
7757          { ac_try='test -z "$ac_c_werror_flag"
7758                          || test ! -s conftest.err'
7759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760   (eval $ac_try) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); }; } &&
7764          { ac_try='test -s conftest.$ac_objext'
7765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766   (eval $ac_try) 2>&5
7767   ac_status=$?
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); }; }; then
7770   ac_hi=-1 ac_mid=-1
7771   while :; do
7772     cat >conftest.$ac_ext <<_ACEOF
7773 /* confdefs.h.  */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h.  */
7778 $ac_includes_default
7779 int
7780 main ()
7781 {
7782 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7783 test_array [0] = 0
7784
7785   ;
7786   return 0;
7787 }
7788 _ACEOF
7789 rm -f conftest.$ac_objext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7791   (eval $ac_compile) 2>conftest.er1
7792   ac_status=$?
7793   grep -v '^ *+' conftest.er1 >conftest.err
7794   rm -f conftest.er1
7795   cat conftest.err >&5
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); } &&
7798          { ac_try='test -z "$ac_c_werror_flag"
7799                          || test ! -s conftest.err'
7800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801   (eval $ac_try) 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; } &&
7805          { ac_try='test -s conftest.$ac_objext'
7806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807   (eval $ac_try) 2>&5
7808   ac_status=$?
7809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810   (exit $ac_status); }; }; then
7811   ac_lo=$ac_mid; break
7812 else
7813   echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7815
7816 ac_hi=`expr '(' $ac_mid ')' - 1`
7817                        if test $ac_mid -le $ac_hi; then
7818                          ac_lo= ac_hi=
7819                          break
7820                        fi
7821                        ac_mid=`expr 2 '*' $ac_mid`
7822 fi
7823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7824   done
7825 else
7826   echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7828
7829 ac_lo= ac_hi=
7830 fi
7831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7832 fi
7833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7834 # Binary search between lo and hi bounds.
7835 while test "x$ac_lo" != "x$ac_hi"; do
7836   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7837   cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843 $ac_includes_default
7844 int
7845 main ()
7846 {
7847 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7848 test_array [0] = 0
7849
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856   (eval $ac_compile) 2>conftest.er1
7857   ac_status=$?
7858   grep -v '^ *+' conftest.er1 >conftest.err
7859   rm -f conftest.er1
7860   cat conftest.err >&5
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); } &&
7863          { ac_try='test -z "$ac_c_werror_flag"
7864                          || test ! -s conftest.err'
7865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866   (eval $ac_try) 2>&5
7867   ac_status=$?
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); }; } &&
7870          { ac_try='test -s conftest.$ac_objext'
7871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872   (eval $ac_try) 2>&5
7873   ac_status=$?
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); }; }; then
7876   ac_hi=$ac_mid
7877 else
7878   echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881 ac_lo=`expr '(' $ac_mid ')' + 1`
7882 fi
7883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7884 done
7885 case $ac_lo in
7886 ?*) ac_cv_sizeof_short=$ac_lo;;
7887 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7888 See \`config.log' for more details." >&5
7889 echo "$as_me: error: cannot compute sizeof (short), 77
7890 See \`config.log' for more details." >&2;}
7891    { (exit 1); exit 1; }; } ;;
7892 esac
7893 else
7894   if test "$cross_compiling" = yes; then
7895   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7896 See \`config.log' for more details." >&5
7897 echo "$as_me: error: cannot run test program while cross compiling
7898 See \`config.log' for more details." >&2;}
7899    { (exit 1); exit 1; }; }
7900 else
7901   cat >conftest.$ac_ext <<_ACEOF
7902 /* confdefs.h.  */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h.  */
7907 $ac_includes_default
7908 long longval () { return (long) (sizeof (short)); }
7909 unsigned long ulongval () { return (long) (sizeof (short)); }
7910 #include <stdio.h>
7911 #include <stdlib.h>
7912 int
7913 main ()
7914 {
7915
7916   FILE *f = fopen ("conftest.val", "w");
7917   if (! f)
7918     exit (1);
7919   if (((long) (sizeof (short))) < 0)
7920     {
7921       long i = longval ();
7922       if (i != ((long) (sizeof (short))))
7923         exit (1);
7924       fprintf (f, "%ld\n", i);
7925     }
7926   else
7927     {
7928       unsigned long i = ulongval ();
7929       if (i != ((long) (sizeof (short))))
7930         exit (1);
7931       fprintf (f, "%lu\n", i);
7932     }
7933   exit (ferror (f) || fclose (f) != 0);
7934
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest$ac_exeext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7941   (eval $ac_link) 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946   (eval $ac_try) 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); }; }; then
7950   ac_cv_sizeof_short=`cat conftest.val`
7951 else
7952   echo "$as_me: program exited with status $ac_status" >&5
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 ( exit $ac_status )
7957 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7958 See \`config.log' for more details." >&5
7959 echo "$as_me: error: cannot compute sizeof (short), 77
7960 See \`config.log' for more details." >&2;}
7961    { (exit 1); exit 1; }; }
7962 fi
7963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7964 fi
7965 fi
7966 rm -f conftest.val
7967 else
7968   ac_cv_sizeof_short=0
7969 fi
7970 fi
7971 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7972 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7973 cat >>confdefs.h <<_ACEOF
7974 #define SIZEOF_SHORT $ac_cv_sizeof_short
7975 _ACEOF
7976
7977
7978   echo "$as_me:$LINENO: checking for char" >&5
7979 echo $ECHO_N "checking for char... $ECHO_C" >&6
7980 if test "${ac_cv_type_char+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989 $ac_includes_default
7990 int
7991 main ()
7992 {
7993 if ((char *) 0)
7994   return 0;
7995 if (sizeof (char))
7996   return 0;
7997   ;
7998   return 0;
7999 }
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003   (eval $ac_compile) 2>conftest.er1
8004   ac_status=$?
8005   grep -v '^ *+' conftest.er1 >conftest.err
8006   rm -f conftest.er1
8007   cat conftest.err >&5
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } &&
8010          { ac_try='test -z "$ac_c_werror_flag"
8011                          || test ! -s conftest.err'
8012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013   (eval $ac_try) 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); }; } &&
8017          { ac_try='test -s conftest.$ac_objext'
8018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019   (eval $ac_try) 2>&5
8020   ac_status=$?
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); }; }; then
8023   ac_cv_type_char=yes
8024 else
8025   echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8027
8028 ac_cv_type_char=no
8029 fi
8030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8031 fi
8032 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
8033 echo "${ECHO_T}$ac_cv_type_char" >&6
8034
8035 echo "$as_me:$LINENO: checking size of char" >&5
8036 echo $ECHO_N "checking size of char... $ECHO_C" >&6
8037 if test "${ac_cv_sizeof_char+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   if test "$ac_cv_type_char" = yes; then
8041   # The cast to unsigned long works around a bug in the HP C Compiler
8042   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8043   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8044   # This bug is HP SR number 8606223364.
8045   if test "$cross_compiling" = yes; then
8046   # Depending upon the size, compute the lo and hi bounds.
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053 $ac_includes_default
8054 int
8055 main ()
8056 {
8057 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
8058 test_array [0] = 0
8059
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8066   (eval $ac_compile) 2>conftest.er1
8067   ac_status=$?
8068   grep -v '^ *+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } &&
8073          { ac_try='test -z "$ac_c_werror_flag"
8074                          || test ! -s conftest.err'
8075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076   (eval $ac_try) 2>&5
8077   ac_status=$?
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); }; } &&
8080          { ac_try='test -s conftest.$ac_objext'
8081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082   (eval $ac_try) 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }; }; then
8086   ac_lo=0 ac_mid=0
8087   while :; do
8088     cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 $ac_includes_default
8095 int
8096 main ()
8097 {
8098 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8099 test_array [0] = 0
8100
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8107   (eval $ac_compile) 2>conftest.er1
8108   ac_status=$?
8109   grep -v '^ *+' conftest.er1 >conftest.err
8110   rm -f conftest.er1
8111   cat conftest.err >&5
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -z "$ac_c_werror_flag"
8115                          || test ! -s conftest.err'
8116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117   (eval $ac_try) 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; } &&
8121          { ac_try='test -s conftest.$ac_objext'
8122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123   (eval $ac_try) 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   ac_hi=$ac_mid; break
8128 else
8129   echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132 ac_lo=`expr $ac_mid + 1`
8133                     if test $ac_lo -le $ac_mid; then
8134                       ac_lo= ac_hi=
8135                       break
8136                     fi
8137                     ac_mid=`expr 2 '*' $ac_mid + 1`
8138 fi
8139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8140   done
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h.  */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h.  */
8151 $ac_includes_default
8152 int
8153 main ()
8154 {
8155 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8156 test_array [0] = 0
8157
8158   ;
8159   return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8164   (eval $ac_compile) 2>conftest.er1
8165   ac_status=$?
8166   grep -v '^ *+' conftest.er1 >conftest.err
8167   rm -f conftest.er1
8168   cat conftest.err >&5
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } &&
8171          { ac_try='test -z "$ac_c_werror_flag"
8172                          || test ! -s conftest.err'
8173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174   (eval $ac_try) 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); }; } &&
8178          { ac_try='test -s conftest.$ac_objext'
8179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180   (eval $ac_try) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; }; then
8184   ac_hi=-1 ac_mid=-1
8185   while :; do
8186     cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h.  */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h.  */
8192 $ac_includes_default
8193 int
8194 main ()
8195 {
8196 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8197 test_array [0] = 0
8198
8199   ;
8200   return 0;
8201 }
8202 _ACEOF
8203 rm -f conftest.$ac_objext
8204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8205   (eval $ac_compile) 2>conftest.er1
8206   ac_status=$?
8207   grep -v '^ *+' conftest.er1 >conftest.err
8208   rm -f conftest.er1
8209   cat conftest.err >&5
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); } &&
8212          { ac_try='test -z "$ac_c_werror_flag"
8213                          || test ! -s conftest.err'
8214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215   (eval $ac_try) 2>&5
8216   ac_status=$?
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); }; } &&
8219          { ac_try='test -s conftest.$ac_objext'
8220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221   (eval $ac_try) 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); }; }; then
8225   ac_lo=$ac_mid; break
8226 else
8227   echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8229
8230 ac_hi=`expr '(' $ac_mid ')' - 1`
8231                        if test $ac_mid -le $ac_hi; then
8232                          ac_lo= ac_hi=
8233                          break
8234                        fi
8235                        ac_mid=`expr 2 '*' $ac_mid`
8236 fi
8237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8238   done
8239 else
8240   echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8242
8243 ac_lo= ac_hi=
8244 fi
8245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8246 fi
8247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8248 # Binary search between lo and hi bounds.
8249 while test "x$ac_lo" != "x$ac_hi"; do
8250   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8251   cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257 $ac_includes_default
8258 int
8259 main ()
8260 {
8261 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8262 test_array [0] = 0
8263
8264   ;
8265   return 0;
8266 }
8267 _ACEOF
8268 rm -f conftest.$ac_objext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270   (eval $ac_compile) 2>conftest.er1
8271   ac_status=$?
8272   grep -v '^ *+' conftest.er1 >conftest.err
8273   rm -f conftest.er1
8274   cat conftest.err >&5
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); } &&
8277          { ac_try='test -z "$ac_c_werror_flag"
8278                          || test ! -s conftest.err'
8279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280   (eval $ac_try) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; } &&
8284          { ac_try='test -s conftest.$ac_objext'
8285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286   (eval $ac_try) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; }; then
8290   ac_hi=$ac_mid
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 ac_lo=`expr '(' $ac_mid ')' + 1`
8296 fi
8297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8298 done
8299 case $ac_lo in
8300 ?*) ac_cv_sizeof_char=$ac_lo;;
8301 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8302 See \`config.log' for more details." >&5
8303 echo "$as_me: error: cannot compute sizeof (char), 77
8304 See \`config.log' for more details." >&2;}
8305    { (exit 1); exit 1; }; } ;;
8306 esac
8307 else
8308   if test "$cross_compiling" = yes; then
8309   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8310 See \`config.log' for more details." >&5
8311 echo "$as_me: error: cannot run test program while cross compiling
8312 See \`config.log' for more details." >&2;}
8313    { (exit 1); exit 1; }; }
8314 else
8315   cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h.  */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h.  */
8321 $ac_includes_default
8322 long longval () { return (long) (sizeof (char)); }
8323 unsigned long ulongval () { return (long) (sizeof (char)); }
8324 #include <stdio.h>
8325 #include <stdlib.h>
8326 int
8327 main ()
8328 {
8329
8330   FILE *f = fopen ("conftest.val", "w");
8331   if (! f)
8332     exit (1);
8333   if (((long) (sizeof (char))) < 0)
8334     {
8335       long i = longval ();
8336       if (i != ((long) (sizeof (char))))
8337         exit (1);
8338       fprintf (f, "%ld\n", i);
8339     }
8340   else
8341     {
8342       unsigned long i = ulongval ();
8343       if (i != ((long) (sizeof (char))))
8344         exit (1);
8345       fprintf (f, "%lu\n", i);
8346     }
8347   exit (ferror (f) || fclose (f) != 0);
8348
8349   ;
8350   return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest$ac_exeext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355   (eval $ac_link) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360   (eval $ac_try) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; }; then
8364   ac_cv_sizeof_char=`cat conftest.val`
8365 else
8366   echo "$as_me: program exited with status $ac_status" >&5
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 ( exit $ac_status )
8371 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8372 See \`config.log' for more details." >&5
8373 echo "$as_me: error: cannot compute sizeof (char), 77
8374 See \`config.log' for more details." >&2;}
8375    { (exit 1); exit 1; }; }
8376 fi
8377 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8378 fi
8379 fi
8380 rm -f conftest.val
8381 else
8382   ac_cv_sizeof_char=0
8383 fi
8384 fi
8385 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8386 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8387 cat >>confdefs.h <<_ACEOF
8388 #define SIZEOF_CHAR $ac_cv_sizeof_char
8389 _ACEOF
8390
8391
8392
8393   echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8394 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8395   case "$ac_cv_sizeof_char" in
8396     1) acx_cv_type_int8_t=char ;;
8397     *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8398 echo "$as_me: error: no 8-bit type" >&2;}
8399    { (exit please report a bug); exit please report a bug; }; }
8400   esac
8401   echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8402 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8403
8404   echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8405 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8406   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8407     2:*) acx_cv_type_int16_t=int ;;
8408     *:2) acx_cv_type_int16_t=short ;;
8409     *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8410 echo "$as_me: error: no 16-bit type" >&2;}
8411    { (exit please report a bug); exit please report a bug; }; }
8412   esac
8413   echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8414 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8415
8416   echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8417 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8418   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8419     4:*) acx_cv_type_int32_t=int ;;
8420     *:4) acx_cv_type_int32_t=long ;;
8421     *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8422 echo "$as_me: error: no 32-bit type" >&2;}
8423    { (exit please report a bug); exit please report a bug; }; }
8424   esac
8425   echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8426 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8427 fi
8428
8429 # These tests are here to make the output prettier
8430
8431 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8432   case "$ac_cv_sizeof_long" in
8433     8) acx_cv_type_int64_t=long ;;
8434   esac
8435   echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8436 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8437   echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8438 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8439 fi
8440
8441 # Now we can use the above types
8442
8443 if test "$ac_cv_type_uintptr_t" != yes; then
8444   echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8445 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8446   case $ac_cv_sizeof_void_p in
8447     2) acx_cv_type_intptr_t=int16_t ;;
8448     4) acx_cv_type_intptr_t=int32_t ;;
8449     8) acx_cv_type_intptr_t=int64_t ;;
8450     *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8451 echo "$as_me: error: no equivalent for intptr_t" >&2;}
8452    { (exit please report a bug); exit please report a bug; }; }
8453   esac
8454   echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8455 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8456 fi
8457
8458 # ----------------- done all checks, emit header -------------
8459           ac_config_commands="$ac_config_commands gstdint.h"
8460
8461
8462
8463
8464 # Check to see if -pthread or -lpthread is needed.  Prefer the former.
8465 # In case the pthread.h system header is not found, this test will fail.
8466 XPCFLAGS=""
8467
8468 # Darwin doesn't need the -pthread option since threads are in libSystem
8469 cat >conftest.$ac_ext <<_ACEOF
8470 /* confdefs.h.  */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h.  */
8475 #include <pthread.h>
8476    void *g(void *d) { return NULL; }
8477 int
8478 main ()
8479 {
8480 pthread_t t; pthread_create(&t,NULL,g,NULL);
8481   ;
8482   return 0;
8483 }
8484 _ACEOF
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487   (eval $ac_link) 2>conftest.er1
8488   ac_status=$?
8489   grep -v '^ *+' conftest.er1 >conftest.err
8490   rm -f conftest.er1
8491   cat conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -z "$ac_c_werror_flag"
8495                          || test ! -s conftest.err'
8496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497   (eval $ac_try) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; } &&
8501          { ac_try='test -s conftest$ac_exeext'
8502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503   (eval $ac_try) 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); }; }; then
8507   case $host in
8508    *-darwin*)
8509      ;;
8510    default)
8511      XPCFLAGS=" -Wc,-pthread"
8512      ;;
8513      esac
8514 else
8515   echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8519   cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h.  */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h.  */
8525 #include <pthread.h>
8526      void *g(void *d) { return NULL; }
8527 int
8528 main ()
8529 {
8530 pthread_t t; pthread_create(&t,NULL,g,NULL);
8531   ;
8532   return 0;
8533 }
8534 _ACEOF
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8537   (eval $ac_link) 2>conftest.er1
8538   ac_status=$?
8539   grep -v '^ *+' conftest.er1 >conftest.err
8540   rm -f conftest.er1
8541   cat conftest.err >&5
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); } &&
8544          { ac_try='test -z "$ac_c_werror_flag"
8545                          || test ! -s conftest.err'
8546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; } &&
8551          { ac_try='test -s conftest$ac_exeext'
8552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553   (eval $ac_try) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }; }; then
8557   :
8558 else
8559   echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8563 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8564    { (exit 1); exit 1; }; }
8565 fi
8566 rm -f conftest.err conftest.$ac_objext \
8567       conftest$ac_exeext conftest.$ac_ext
8568 fi
8569 rm -f conftest.err conftest.$ac_objext \
8570       conftest$ac_exeext conftest.$ac_ext
8571
8572 # Check for functions needed.
8573
8574
8575 for ac_func in getloadavg clock_gettime
8576 do
8577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8578 echo "$as_me:$LINENO: checking for $ac_func" >&5
8579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8580 if eval "test \"\${$as_ac_var+set}\" = set"; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583   cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h.  */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h.  */
8589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8591 #define $ac_func innocuous_$ac_func
8592
8593 /* System header to define __stub macros and hopefully few prototypes,
8594     which can conflict with char $ac_func (); below.
8595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8596     <limits.h> exists even on freestanding compilers.  */
8597
8598 #ifdef __STDC__
8599 # include <limits.h>
8600 #else
8601 # include <assert.h>
8602 #endif
8603
8604 #undef $ac_func
8605
8606 /* Override any gcc2 internal prototype to avoid an error.  */
8607 #ifdef __cplusplus
8608 extern "C"
8609 {
8610 #endif
8611 /* We use char because int might match the return type of a gcc2
8612    builtin and then its argument prototype would still apply.  */
8613 char $ac_func ();
8614 /* The GNU C library defines this for functions which it implements
8615     to always fail with ENOSYS.  Some functions are actually named
8616     something starting with __ and the normal name is an alias.  */
8617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8618 choke me
8619 #else
8620 char (*f) () = $ac_func;
8621 #endif
8622 #ifdef __cplusplus
8623 }
8624 #endif
8625
8626 int
8627 main ()
8628 {
8629 return f != $ac_func;
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636   (eval $ac_link) 2>conftest.er1
8637   ac_status=$?
8638   grep -v '^ *+' conftest.er1 >conftest.err
8639   rm -f conftest.er1
8640   cat conftest.err >&5
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); } &&
8643          { ac_try='test -z "$ac_c_werror_flag"
8644                          || test ! -s conftest.err'
8645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646   (eval $ac_try) 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; } &&
8650          { ac_try='test -s conftest$ac_exeext'
8651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652   (eval $ac_try) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; }; then
8656   eval "$as_ac_var=yes"
8657 else
8658   echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661 eval "$as_ac_var=no"
8662 fi
8663 rm -f conftest.err conftest.$ac_objext \
8664       conftest$ac_exeext conftest.$ac_ext
8665 fi
8666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8668 if test `eval echo '${'$as_ac_var'}'` = yes; then
8669   cat >>confdefs.h <<_ACEOF
8670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8671 _ACEOF
8672
8673 fi
8674 done
8675
8676
8677 # Check for broken semaphore implementation on darwin.
8678 # sem_init returns: sem_init error: Function not implemented.
8679 case "$host" in
8680   *-darwin*)
8681
8682 cat >>confdefs.h <<\_ACEOF
8683 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
8684 _ACEOF
8685
8686     ;;
8687   *-linux*)
8688     case "$enable_linux_futex" in
8689       default)
8690         # If headers don't have gettid/futex syscalls definition, then
8691         # default to no, otherwise there will be compile time failures.
8692         # Otherwise, default to yes.  If we don't detect we are
8693         # compiled/linked against NPTL and not cross-compiling, check
8694         # if programs are run by default against NPTL and if not, issue
8695         # a warning.
8696         enable_linux_futex=no
8697         cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h.  */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h.  */
8703 #include <sys/syscall.h>
8704            int lk;
8705 int
8706 main ()
8707 {
8708 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8709   ;
8710   return 0;
8711 }
8712 _ACEOF
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715   (eval $ac_link) 2>conftest.er1
8716   ac_status=$?
8717   grep -v '^ *+' conftest.er1 >conftest.err
8718   rm -f conftest.er1
8719   cat conftest.err >&5
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); } &&
8722          { ac_try='test -z "$ac_c_werror_flag"
8723                          || test ! -s conftest.err'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; } &&
8729          { ac_try='test -s conftest$ac_exeext'
8730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731   (eval $ac_try) 2>&5
8732   ac_status=$?
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); }; }; then
8735   cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741 #ifndef _GNU_SOURCE
8742              #define _GNU_SOURCE 1
8743              #endif
8744              #include <pthread.h>
8745              pthread_t th; void *status;
8746 int
8747 main ()
8748 {
8749 pthread_tryjoin_np (th, &status);
8750   ;
8751   return 0;
8752 }
8753 _ACEOF
8754 rm -f conftest.$ac_objext conftest$ac_exeext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756   (eval $ac_link) 2>conftest.er1
8757   ac_status=$?
8758   grep -v '^ *+' conftest.er1 >conftest.err
8759   rm -f conftest.er1
8760   cat conftest.err >&5
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } &&
8763          { ac_try='test -z "$ac_c_werror_flag"
8764                          || test ! -s conftest.err'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; } &&
8770          { ac_try='test -s conftest$ac_exeext'
8771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772   (eval $ac_try) 2>&5
8773   ac_status=$?
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); }; }; then
8776   enable_linux_futex=yes
8777 else
8778   echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8780
8781 if test x$cross_compiling = xno; then
8782                if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
8783                   | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
8784                  { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
8785 If so, please configure with --disable-linux-futex" >&5
8786 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
8787 If so, please configure with --disable-linux-futex" >&2;}
8788                fi
8789              fi
8790              enable_linux_futex=yes
8791 fi
8792 rm -f conftest.err conftest.$ac_objext \
8793       conftest$ac_exeext conftest.$ac_ext
8794 else
8795   echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8797
8798 fi
8799 rm -f conftest.err conftest.$ac_objext \
8800       conftest$ac_exeext conftest.$ac_ext
8801         ;;
8802       yes)
8803         cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h.  */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h.  */
8809 #include <sys/syscall.h>
8810            int lk;
8811 int
8812 main ()
8813 {
8814 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8815   ;
8816   return 0;
8817 }
8818 _ACEOF
8819 rm -f conftest.$ac_objext conftest$ac_exeext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8821   (eval $ac_link) 2>conftest.er1
8822   ac_status=$?
8823   grep -v '^ *+' conftest.er1 >conftest.err
8824   rm -f conftest.er1
8825   cat conftest.err >&5
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); } &&
8828          { ac_try='test -z "$ac_c_werror_flag"
8829                          || test ! -s conftest.err'
8830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); }; } &&
8835          { ac_try='test -s conftest$ac_exeext'
8836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837   (eval $ac_try) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; }; then
8841   :
8842 else
8843   echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
8847 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
8848    { (exit 1); exit 1; }; }
8849 fi
8850 rm -f conftest.err conftest.$ac_objext \
8851       conftest$ac_exeext conftest.$ac_ext
8852         ;;
8853     esac
8854     ;;
8855 esac
8856
8857 # At least for glibc, clock_gettime is in librt.  But don't pull that
8858 # in if it still doesn't give us the function we want.
8859 if test $ac_cv_func_clock_gettime = no; then
8860   echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8861 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8862 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8863   echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865   ac_check_lib_save_LIBS=$LIBS
8866 LIBS="-lrt  $LIBS"
8867 cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873
8874 /* Override any gcc2 internal prototype to avoid an error.  */
8875 #ifdef __cplusplus
8876 extern "C"
8877 #endif
8878 /* We use char because int might match the return type of a gcc2
8879    builtin and then its argument prototype would still apply.  */
8880 char clock_gettime ();
8881 int
8882 main ()
8883 {
8884 clock_gettime ();
8885   ;
8886   return 0;
8887 }
8888 _ACEOF
8889 rm -f conftest.$ac_objext conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891   (eval $ac_link) 2>conftest.er1
8892   ac_status=$?
8893   grep -v '^ *+' conftest.er1 >conftest.err
8894   rm -f conftest.er1
8895   cat conftest.err >&5
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } &&
8898          { ac_try='test -z "$ac_c_werror_flag"
8899                          || test ! -s conftest.err'
8900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901   (eval $ac_try) 2>&5
8902   ac_status=$?
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); }; } &&
8905          { ac_try='test -s conftest$ac_exeext'
8906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907   (eval $ac_try) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; }; then
8911   ac_cv_lib_rt_clock_gettime=yes
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 ac_cv_lib_rt_clock_gettime=no
8917 fi
8918 rm -f conftest.err conftest.$ac_objext \
8919       conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8921 fi
8922 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8923 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8924 if test $ac_cv_lib_rt_clock_gettime = yes; then
8925   LIBS="-lrt $LIBS"
8926
8927 cat >>confdefs.h <<\_ACEOF
8928 #define HAVE_CLOCK_GETTIME 1
8929 _ACEOF
8930
8931 fi
8932
8933 fi
8934
8935 # See if we support thread-local storage.
8936
8937    # Check whether --enable-tls or --disable-tls was given.
8938 if test "${enable_tls+set}" = set; then
8939   enableval="$enable_tls"
8940
8941       case "$enableval" in
8942        yes|no) ;;
8943        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8944 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8945    { (exit 1); exit 1; }; } ;;
8946       esac
8947
8948 else
8949   enable_tls=yes
8950 fi;
8951
8952   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8953 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8954 if test "${have_tls+set}" = set; then
8955   echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957
8958     if test "$cross_compiling" = yes; then
8959   cat >conftest.$ac_ext <<_ACEOF
8960 __thread int a; int b; int main() { return a = b; }
8961 _ACEOF
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964   (eval $ac_link) 2>conftest.er1
8965   ac_status=$?
8966   grep -v '^ *+' conftest.er1 >conftest.err
8967   rm -f conftest.er1
8968   cat conftest.err >&5
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); } &&
8971          { ac_try='test -z "$ac_c_werror_flag"
8972                          || test ! -s conftest.err'
8973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974   (eval $ac_try) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); }; } &&
8978          { ac_try='test -s conftest$ac_exeext'
8979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980   (eval $ac_try) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; }; then
8984   have_tls=yes
8985 else
8986   echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8988
8989 have_tls=no
8990 fi
8991 rm -f conftest.err conftest.$ac_objext \
8992       conftest$ac_exeext conftest.$ac_ext
8993
8994 else
8995   cat >conftest.$ac_ext <<_ACEOF
8996 __thread int a; int b; int main() { return a = b; }
8997 _ACEOF
8998 rm -f conftest$ac_exeext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000   (eval $ac_link) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005   (eval $ac_try) 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }; }; then
9009                       save_LDFLAGS="$LDFLAGS"
9010       LDFLAGS="-static $LDFLAGS"
9011       cat >conftest.$ac_ext <<_ACEOF
9012 int main() { return 0; }
9013 _ACEOF
9014 rm -f conftest.$ac_objext conftest$ac_exeext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9016   (eval $ac_link) 2>conftest.er1
9017   ac_status=$?
9018   grep -v '^ *+' conftest.er1 >conftest.err
9019   rm -f conftest.er1
9020   cat conftest.err >&5
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); } &&
9023          { ac_try='test -z "$ac_c_werror_flag"
9024                          || test ! -s conftest.err'
9025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026   (eval $ac_try) 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); }; } &&
9030          { ac_try='test -s conftest$ac_exeext'
9031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032   (eval $ac_try) 2>&5
9033   ac_status=$?
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); }; }; then
9036   if test "$cross_compiling" = yes; then
9037   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9038 See \`config.log' for more details." >&5
9039 echo "$as_me: error: cannot run test program while cross compiling
9040 See \`config.log' for more details." >&2;}
9041    { (exit 1); exit 1; }; }
9042 else
9043   cat >conftest.$ac_ext <<_ACEOF
9044 __thread int a; int b; int main() { return a = b; }
9045 _ACEOF
9046 rm -f conftest$ac_exeext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048   (eval $ac_link) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053   (eval $ac_try) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); }; }; then
9057   have_tls=yes
9058 else
9059   echo "$as_me: program exited with status $ac_status" >&5
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 ( exit $ac_status )
9064 have_tls=no
9065 fi
9066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9067 fi
9068 else
9069   echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9071
9072 have_tls=yes
9073 fi
9074 rm -f conftest.err conftest.$ac_objext \
9075       conftest$ac_exeext conftest.$ac_ext
9076       LDFLAGS="$save_LDFLAGS"
9077 else
9078   echo "$as_me: program exited with status $ac_status" >&5
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 ( exit $ac_status )
9083 have_tls=no
9084 fi
9085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9086 fi
9087 fi
9088 echo "$as_me:$LINENO: result: $have_tls" >&5
9089 echo "${ECHO_T}$have_tls" >&6
9090   if test "$enable_tls $have_tls" = "yes yes"; then
9091
9092 cat >>confdefs.h <<\_ACEOF
9093 #define HAVE_TLS 1
9094 _ACEOF
9095
9096   fi
9097
9098 # See what sort of export controls are availible.
9099
9100   echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
9101 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
9102 if test "${have_attribute_visibility+set}" = set; then
9103   echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105
9106   save_CFLAGS="$CFLAGS"
9107   CFLAGS="$CFLAGS -Werror"
9108   cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114 void __attribute__((visibility("hidden"))) foo(void) { }
9115 int
9116 main ()
9117 {
9118
9119   ;
9120   return 0;
9121 }
9122 _ACEOF
9123 rm -f conftest.$ac_objext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125   (eval $ac_compile) 2>conftest.er1
9126   ac_status=$?
9127   grep -v '^ *+' conftest.er1 >conftest.err
9128   rm -f conftest.er1
9129   cat conftest.err >&5
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); } &&
9132          { ac_try='test -z "$ac_c_werror_flag"
9133                          || test ! -s conftest.err'
9134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135   (eval $ac_try) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; } &&
9139          { ac_try='test -s conftest.$ac_objext'
9140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141   (eval $ac_try) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; }; then
9145   have_attribute_visibility=yes
9146 else
9147   echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 have_attribute_visibility=no
9151 fi
9152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9153   CFLAGS="$save_CFLAGS"
9154 fi
9155 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
9156 echo "${ECHO_T}$have_attribute_visibility" >&6
9157   if test $have_attribute_visibility = yes; then
9158
9159 cat >>confdefs.h <<\_ACEOF
9160 #define HAVE_ATTRIBUTE_VISIBILITY 1
9161 _ACEOF
9162
9163   fi
9164
9165   echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
9166 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
9167 if test "${have_attribute_dllexport+set}" = set; then
9168   echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170
9171   save_CFLAGS="$CFLAGS"
9172   CFLAGS="$CFLAGS -Werror"
9173   cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h.  */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h.  */
9179 void __attribute__((dllexport)) foo(void) { }
9180 int
9181 main ()
9182 {
9183
9184   ;
9185   return 0;
9186 }
9187 _ACEOF
9188 rm -f conftest.$ac_objext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190   (eval $ac_compile) 2>conftest.er1
9191   ac_status=$?
9192   grep -v '^ *+' conftest.er1 >conftest.err
9193   rm -f conftest.er1
9194   cat conftest.err >&5
9195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); } &&
9197          { ac_try='test -z "$ac_c_werror_flag"
9198                          || test ! -s conftest.err'
9199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200   (eval $ac_try) 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); }; } &&
9204          { ac_try='test -s conftest.$ac_objext'
9205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206   (eval $ac_try) 2>&5
9207   ac_status=$?
9208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209   (exit $ac_status); }; }; then
9210   have_attribute_dllexport=yes
9211 else
9212   echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215 have_attribute_dllexport=no
9216 fi
9217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9218   CFLAGS="$save_CFLAGS"
9219 fi
9220 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
9221 echo "${ECHO_T}$have_attribute_dllexport" >&6
9222   if test $have_attribute_dllexport = yes; then
9223
9224 cat >>confdefs.h <<\_ACEOF
9225 #define HAVE_ATTRIBUTE_DLLEXPORT 1
9226 _ACEOF
9227
9228   fi
9229
9230   echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
9231 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
9232 if test "${have_attribute_alias+set}" = set; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235
9236   cat >conftest.$ac_ext <<_ACEOF
9237 /* confdefs.h.  */
9238 _ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h.  */
9242
9243 void foo(void) { }
9244 extern void bar(void) __attribute__((alias("foo")));
9245 int
9246 main ()
9247 {
9248 bar();
9249   ;
9250   return 0;
9251 }
9252 _ACEOF
9253 rm -f conftest.$ac_objext conftest$ac_exeext
9254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255   (eval $ac_link) 2>conftest.er1
9256   ac_status=$?
9257   grep -v '^ *+' conftest.er1 >conftest.err
9258   rm -f conftest.er1
9259   cat conftest.err >&5
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); } &&
9262          { ac_try='test -z "$ac_c_werror_flag"
9263                          || test ! -s conftest.err'
9264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265   (eval $ac_try) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; } &&
9269          { ac_try='test -s conftest$ac_exeext'
9270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271   (eval $ac_try) 2>&5
9272   ac_status=$?
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); }; }; then
9275   have_attribute_alias=yes
9276 else
9277   echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 have_attribute_alias=no
9281 fi
9282 rm -f conftest.err conftest.$ac_objext \
9283       conftest$ac_exeext conftest.$ac_ext
9284 fi
9285 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
9286 echo "${ECHO_T}$have_attribute_alias" >&6
9287   if test $have_attribute_alias = yes; then
9288
9289 cat >>confdefs.h <<\_ACEOF
9290 #define HAVE_ATTRIBUTE_ALIAS 1
9291 _ACEOF
9292
9293   fi
9294
9295   # If we're not using GNU ld, then there's no point in even trying these
9296   # tests.  Check for that first.  We should have already tested for gld
9297   # by now (in libtool), but require it now just to be safe...
9298   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9299   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9300
9301
9302
9303   # The name set by libtool depends on the version of libtool.  Shame on us
9304   # for depending on an impl detail, but c'est la vie.  Older versions used
9305   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9306   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9307   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
9308   # set (hence we're using an older libtool), then set it.
9309   if test x${with_gnu_ld+set} != xset; then
9310     if test x${ac_cv_prog_gnu_ld+set} != xset; then
9311       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
9312       with_gnu_ld=no
9313     else
9314       with_gnu_ld=$ac_cv_prog_gnu_ld
9315     fi
9316   fi
9317
9318   # Start by getting the version number.  I think the libtool test already
9319   # does some of this, but throws away the result.
9320
9321   ldver=`$LD --version 2>/dev/null | head -1 | \
9322          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9323
9324   libgomp_gnu_ld_version=`echo $ldver | \
9325          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9326
9327   # Set --gc-sections.
9328   if test "$with_gnu_ld" = "notbroken"; then
9329     # GNU ld it is!  Joy and bunny rabbits!
9330
9331     # All these tests are for C++; save the language and the compiler flags.
9332     # Need to do this so that g++ won't try to link in libstdc++
9333     ac_test_CFLAGS="${CFLAGS+set}"
9334     ac_save_CFLAGS="$CFLAGS"
9335     CFLAGS='-x c++  -Wl,--gc-sections'
9336
9337     # Check for -Wl,--gc-sections
9338     # XXX This test is broken at the moment, as symbols required for linking
9339     # are now in libsupc++ (not built yet).  In addition, this test has
9340     # cored on solaris in the past.  In addition, --gc-sections doesn't
9341     # really work at the moment (keeps on discarding used sections, first
9342     # .eh_frame and now some of the glibc sections for iconv).
9343     # Bzzzzt.  Thanks for playing, maybe next time.
9344     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9345 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9346     if test "$cross_compiling" = yes; then
9347   ac_sectionLDflags=yes
9348 else
9349   cat >conftest.$ac_ext <<_ACEOF
9350 /* confdefs.h.  */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h.  */
9355
9356      int main(void)
9357      {
9358        try { throw 1; }
9359        catch (...) { };
9360        return 0;
9361      }
9362
9363 _ACEOF
9364 rm -f conftest$ac_exeext
9365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9366   (eval $ac_link) 2>&5
9367   ac_status=$?
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371   (eval $ac_try) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); }; }; then
9375   ac_sectionLDflags=yes
9376 else
9377   echo "$as_me: program exited with status $ac_status" >&5
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381 ( exit $ac_status )
9382 ac_sectionLDflags=no
9383 fi
9384 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9385 fi
9386     if test "$ac_test_CFLAGS" = set; then
9387       CFLAGS="$ac_save_CFLAGS"
9388     else
9389       # this is the suspicious part
9390       CFLAGS=''
9391     fi
9392     if test "$ac_sectionLDflags" = "yes"; then
9393       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9394     fi
9395     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9396 echo "${ECHO_T}$ac_sectionLDflags" >&6
9397   fi
9398
9399   # Set linker optimization flags.
9400   if test x"$with_gnu_ld" = x"yes"; then
9401     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9402   fi
9403
9404
9405
9406
9407
9408
9409  # Check whether --enable-symvers or --disable-symvers was given.
9410 if test "${enable_symvers+set}" = set; then
9411   enableval="$enable_symvers"
9412
9413       case "$enableval" in
9414        yes|no|gnu) ;;
9415        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
9416 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
9417    { (exit 1); exit 1; }; } ;;
9418                           esac
9419
9420 else
9421   enable_symvers=yes
9422 fi;
9423
9424
9425 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9426 # don't know enough about $LD to do tricks...
9427
9428 # FIXME  The following test is too strict, in theory.
9429 if test $enable_shared = no ||
9430         test "x$LD" = x ||
9431         test x$libgomp_gnu_ld_version = x; then
9432   enable_symvers=no
9433 fi
9434
9435 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9436 if test $enable_symvers != no; then
9437   echo "$as_me:$LINENO: checking for shared libgcc" >&5
9438 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9439   ac_save_CFLAGS="$CFLAGS"
9440   CFLAGS=' -lgcc_s'
9441   cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h.  */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h.  */
9447
9448 int
9449 main ()
9450 {
9451 return 0;
9452   ;
9453   return 0;
9454 }
9455 _ACEOF
9456 rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458   (eval $ac_link) 2>conftest.er1
9459   ac_status=$?
9460   grep -v '^ *+' conftest.er1 >conftest.err
9461   rm -f conftest.er1
9462   cat conftest.err >&5
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); } &&
9465          { ac_try='test -z "$ac_c_werror_flag"
9466                          || test ! -s conftest.err'
9467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468   (eval $ac_try) 2>&5
9469   ac_status=$?
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); }; } &&
9472          { ac_try='test -s conftest$ac_exeext'
9473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474   (eval $ac_try) 2>&5
9475   ac_status=$?
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); }; }; then
9478   libgomp_shared_libgcc=yes
9479 else
9480   echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483 libgomp_shared_libgcc=no
9484 fi
9485 rm -f conftest.err conftest.$ac_objext \
9486       conftest$ac_exeext conftest.$ac_ext
9487   CFLAGS="$ac_save_CFLAGS"
9488   if test $libgomp_shared_libgcc = no; then
9489     cat > conftest.c <<EOF
9490 int main (void) { return 0; }
9491 EOF
9492     libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9493                              -shared -shared-libgcc -o conftest.so \
9494                              conftest.c -v 2>&1 >/dev/null \
9495                              | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9496     rm -f conftest.c conftest.so
9497     if test x${libgomp_libgcc_s_suffix+set} = xset; then
9498       CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9499       cat >conftest.$ac_ext <<_ACEOF
9500 /* confdefs.h.  */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h.  */
9505
9506 int
9507 main ()
9508 {
9509 return 0;
9510   ;
9511   return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9516   (eval $ac_link) 2>conftest.er1
9517   ac_status=$?
9518   grep -v '^ *+' conftest.er1 >conftest.err
9519   rm -f conftest.er1
9520   cat conftest.err >&5
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } &&
9523          { ac_try='test -z "$ac_c_werror_flag"
9524                          || test ! -s conftest.err'
9525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526   (eval $ac_try) 2>&5
9527   ac_status=$?
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); }; } &&
9530          { ac_try='test -s conftest$ac_exeext'
9531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532   (eval $ac_try) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); }; }; then
9536   libgomp_shared_libgcc=yes
9537 else
9538   echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9540
9541 fi
9542 rm -f conftest.err conftest.$ac_objext \
9543       conftest$ac_exeext conftest.$ac_ext
9544       CFLAGS="$ac_save_CFLAGS"
9545     fi
9546   fi
9547   echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9548 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9549 fi
9550
9551 # For GNU ld, we need at least this version.  The format is described in
9552 # LIBGOMP_CHECK_LINKER_FEATURES above.
9553 libgomp_min_gnu_ld_version=21400
9554 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
9555
9556 # Check to see if unspecified "yes" value can win, given results above.
9557 # Change "yes" into either "no" or a style name.
9558 if test $enable_symvers = yes; then
9559   if test $with_gnu_ld = yes &&
9560      test $libgomp_shared_libgcc = yes;
9561   then
9562     if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9563       enable_symvers=gnu
9564     else
9565       # The right tools, the right setup, but too old.  Fallbacks?
9566       { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9567 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9568       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9569 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9570       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9571 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9572       { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9573 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9574       if test $libgomp_gnu_ld_version -ge 21200 ; then
9575         # Globbing fix is present, proper block support is not.
9576                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9577 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9578         enable_symvers=no
9579       else
9580         # 2.11 or older.
9581         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9582 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9583         enable_symvers=no
9584       fi
9585     fi
9586   else
9587     # just fail for now
9588     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9589 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9590     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9591 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9592     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9593 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9594     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9595 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9596     enable_symvers=no
9597   fi
9598 fi
9599
9600
9601
9602 if test $enable_symvers != no; then
9603   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9604   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9605 else
9606   LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9607   LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9608 fi
9609
9610 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9611 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9612
9613
9614 # Get target configury.
9615 . ${srcdir}/configure.tgt
9616 CFLAGS="$save_CFLAGS $XCFLAGS"
9617
9618 # Check for __sync_val_compare_and_swap, but only after the target has
9619 # had a chance to set XCFLAGS.
9620
9621   echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9622 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9623 if test "${have_sync_builtins+set}" = set; then
9624   echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626
9627   cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h.  */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h.  */
9633
9634 int
9635 main ()
9636 {
9637 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644   (eval $ac_link) 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } &&
9651          { ac_try='test -z "$ac_c_werror_flag"
9652                          || test ! -s conftest.err'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; } &&
9658          { ac_try='test -s conftest$ac_exeext'
9659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660   (eval $ac_try) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; }; then
9664   have_sync_builtins=yes
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 have_sync_builtins=no
9670 fi
9671 rm -f conftest.err conftest.$ac_objext \
9672       conftest$ac_exeext conftest.$ac_ext
9673 fi
9674 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9675 echo "${ECHO_T}$have_sync_builtins" >&6
9676   if test $have_sync_builtins = yes; then
9677
9678 cat >>confdefs.h <<\_ACEOF
9679 #define HAVE_SYNC_BUILTINS 1
9680 _ACEOF
9681
9682   fi
9683
9684 XCFLAGS="$XCFLAGS$XPCFLAGS"
9685
9686
9687
9688
9689
9690 # Cleanup and exit.
9691 CFLAGS="$save_CFLAGS"
9692 cat >confcache <<\_ACEOF
9693 # This file is a shell script that caches the results of configure
9694 # tests run on this system so they can be shared between configure
9695 # scripts and configure runs, see configure's option --config-cache.
9696 # It is not useful on other systems.  If it contains results you don't
9697 # want to keep, you may remove or edit it.
9698 #
9699 # config.status only pays attention to the cache file if you give it
9700 # the --recheck option to rerun configure.
9701 #
9702 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9703 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9704 # following values.
9705
9706 _ACEOF
9707
9708 # The following way of writing the cache mishandles newlines in values,
9709 # but we know of no workaround that is simple, portable, and efficient.
9710 # So, don't put newlines in cache variables' values.
9711 # Ultrix sh set writes to stderr and can't be redirected directly,
9712 # and sets the high bit in the cache file unless we assign to the vars.
9713 {
9714   (set) 2>&1 |
9715     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9716     *ac_space=\ *)
9717       # `set' does not quote correctly, so add quotes (double-quote
9718       # substitution turns \\\\ into \\, and sed turns \\ into \).
9719       sed -n \
9720         "s/'/'\\\\''/g;
9721           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9722       ;;
9723     *)
9724       # `set' quotes correctly as required by POSIX, so do not add quotes.
9725       sed -n \
9726         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9727       ;;
9728     esac;
9729 } |
9730   sed '
9731      t clear
9732      : clear
9733      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9734      t end
9735      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9736      : end' >>confcache
9737 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9738   if test -w $cache_file; then
9739     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9740     cat confcache >$cache_file
9741   else
9742     echo "not updating unwritable cache $cache_file"
9743   fi
9744 fi
9745 rm -f confcache
9746
9747 if test ${multilib} = yes; then
9748   multilib_arg="--enable-multilib"
9749 else
9750   multilib_arg=
9751 fi
9752
9753 # Set up the set of libraries that we need to link against for libgomp.
9754 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
9755 # which will force linkage against -lpthread (or equivalent for the system).
9756 # That's not 100% ideal, but about the best we can do easily.
9757 if test $enable_shared = yes; then
9758   link_gomp="-lgomp %{static: $LIBS}"
9759 else
9760   link_gomp="-lgomp $LIBS"
9761 fi
9762
9763
9764
9765
9766 if test "$ac_cv_fc_compiler_gnu" = yes; then
9767   USE_FORTRAN_TRUE=
9768   USE_FORTRAN_FALSE='#'
9769 else
9770   USE_FORTRAN_TRUE='#'
9771   USE_FORTRAN_FALSE=
9772 fi
9773
9774
9775 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9776 # and export AC_COMPUTE_INT.  If that happens, then we'll need to remove
9777 # the underscore here and update the PREREQ.  If it doesn't, then we'll
9778 # need to copy this macro to our acinclude.m4.
9779 save_CFLAGS="$CFLAGS"
9780 for i in $config_path; do
9781   if test -f $srcdir/config/$i/omp-lock.h; then
9782     CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9783     break
9784   fi
9785 done
9786
9787 if test "$cross_compiling" = yes; then
9788   # Depending upon the size, compute the lo and hi bounds.
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h.  */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h.  */
9795
9796 int
9797 main ()
9798 {
9799 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9800 test_array [0] = 0
9801
9802   ;
9803   return 0;
9804 }
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808   (eval $ac_compile) 2>conftest.er1
9809   ac_status=$?
9810   grep -v '^ *+' conftest.er1 >conftest.err
9811   rm -f conftest.er1
9812   cat conftest.err >&5
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); } &&
9815          { ac_try='test -z "$ac_c_werror_flag"
9816                          || test ! -s conftest.err'
9817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818   (eval $ac_try) 2>&5
9819   ac_status=$?
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); }; } &&
9822          { ac_try='test -s conftest.$ac_objext'
9823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824   (eval $ac_try) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; }; then
9828   ac_lo=0 ac_mid=0
9829   while :; do
9830     cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h.  */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h.  */
9836
9837 int
9838 main ()
9839 {
9840 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9841 test_array [0] = 0
9842
9843   ;
9844   return 0;
9845 }
9846 _ACEOF
9847 rm -f conftest.$ac_objext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9849   (eval $ac_compile) 2>conftest.er1
9850   ac_status=$?
9851   grep -v '^ *+' conftest.er1 >conftest.err
9852   rm -f conftest.er1
9853   cat conftest.err >&5
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -z "$ac_c_werror_flag"
9857                          || test ! -s conftest.err'
9858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859   (eval $ac_try) 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); }; } &&
9863          { ac_try='test -s conftest.$ac_objext'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; }; then
9869   ac_hi=$ac_mid; break
9870 else
9871   echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 ac_lo=`expr $ac_mid + 1`
9875                     if test $ac_lo -le $ac_mid; then
9876                       ac_lo= ac_hi=
9877                       break
9878                     fi
9879                     ac_mid=`expr 2 '*' $ac_mid + 1`
9880 fi
9881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9882   done
9883 else
9884   echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887 cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h.  */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h.  */
9893
9894 int
9895 main ()
9896 {
9897 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9898 test_array [0] = 0
9899
9900   ;
9901   return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906   (eval $ac_compile) 2>conftest.er1
9907   ac_status=$?
9908   grep -v '^ *+' conftest.er1 >conftest.err
9909   rm -f conftest.er1
9910   cat conftest.err >&5
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); } &&
9913          { ac_try='test -z "$ac_c_werror_flag"
9914                          || test ! -s conftest.err'
9915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916   (eval $ac_try) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; } &&
9920          { ac_try='test -s conftest.$ac_objext'
9921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922   (eval $ac_try) 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926   ac_hi=-1 ac_mid=-1
9927   while :; do
9928     cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h.  */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h.  */
9934
9935 int
9936 main ()
9937 {
9938 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
9939 test_array [0] = 0
9940
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9947   (eval $ac_compile) 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } &&
9954          { ac_try='test -z "$ac_c_werror_flag"
9955                          || test ! -s conftest.err'
9956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957   (eval $ac_try) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; } &&
9961          { ac_try='test -s conftest.$ac_objext'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; }; then
9967   ac_lo=$ac_mid; break
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 ac_hi=`expr '(' $ac_mid ')' - 1`
9973                        if test $ac_mid -le $ac_hi; then
9974                          ac_lo= ac_hi=
9975                          break
9976                        fi
9977                        ac_mid=`expr 2 '*' $ac_mid`
9978 fi
9979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9980   done
9981 else
9982   echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_lo= ac_hi=
9986 fi
9987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9988 fi
9989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9990 # Binary search between lo and hi bounds.
9991 while test "x$ac_lo" != "x$ac_hi"; do
9992   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9993   cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h.  */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h.  */
9999
10000 int
10001 main ()
10002 {
10003 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
10004 test_array [0] = 0
10005
10006   ;
10007   return 0;
10008 }
10009 _ACEOF
10010 rm -f conftest.$ac_objext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10012   (eval $ac_compile) 2>conftest.er1
10013   ac_status=$?
10014   grep -v '^ *+' conftest.er1 >conftest.err
10015   rm -f conftest.er1
10016   cat conftest.err >&5
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); } &&
10019          { ac_try='test -z "$ac_c_werror_flag"
10020                          || test ! -s conftest.err'
10021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022   (eval $ac_try) 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); }; } &&
10026          { ac_try='test -s conftest.$ac_objext'
10027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028   (eval $ac_try) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); }; }; then
10032   ac_hi=$ac_mid
10033 else
10034   echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 ac_lo=`expr '(' $ac_mid ')' + 1`
10038 fi
10039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10040 done
10041 case $ac_lo in
10042 ?*) OMP_LOCK_SIZE=$ac_lo;;
10043 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10044 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10045    { (exit 1); exit 1; }; } ;;
10046 esac
10047 else
10048   if test "$cross_compiling" = yes; then
10049   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10050 See \`config.log' for more details." >&5
10051 echo "$as_me: error: cannot run test program while cross compiling
10052 See \`config.log' for more details." >&2;}
10053    { (exit 1); exit 1; }; }
10054 else
10055   cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h.  */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h.  */
10061
10062 long longval () { return sizeof (omp_lock_t); }
10063 unsigned long ulongval () { return sizeof (omp_lock_t); }
10064 #include <stdio.h>
10065 #include <stdlib.h>
10066 int
10067 main ()
10068 {
10069
10070   FILE *f = fopen ("conftest.val", "w");
10071   if (! f)
10072     exit (1);
10073   if ((sizeof (omp_lock_t)) < 0)
10074     {
10075       long i = longval ();
10076       if (i != (sizeof (omp_lock_t)))
10077         exit (1);
10078       fprintf (f, "%ld\n", i);
10079     }
10080   else
10081     {
10082       unsigned long i = ulongval ();
10083       if (i != (sizeof (omp_lock_t)))
10084         exit (1);
10085       fprintf (f, "%lu\n", i);
10086     }
10087   exit (ferror (f) || fclose (f) != 0);
10088
10089   ;
10090   return 0;
10091 }
10092 _ACEOF
10093 rm -f conftest$ac_exeext
10094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095   (eval $ac_link) 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100   (eval $ac_try) 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); }; }; then
10104   OMP_LOCK_SIZE=`cat conftest.val`
10105 else
10106   echo "$as_me: program exited with status $ac_status" >&5
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10109
10110 ( exit $ac_status )
10111 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
10112 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
10113    { (exit 1); exit 1; }; }
10114 fi
10115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10116 fi
10117 fi
10118 rm -f conftest.val
10119 if test "$cross_compiling" = yes; then
10120   # Depending upon the size, compute the lo and hi bounds.
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h.  */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h.  */
10127
10128 int
10129 main ()
10130 {
10131 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
10132 test_array [0] = 0
10133
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140   (eval $ac_compile) 2>conftest.er1
10141   ac_status=$?
10142   grep -v '^ *+' conftest.er1 >conftest.err
10143   rm -f conftest.er1
10144   cat conftest.err >&5
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); } &&
10147          { ac_try='test -z "$ac_c_werror_flag"
10148                          || test ! -s conftest.err'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; } &&
10154          { ac_try='test -s conftest.$ac_objext'
10155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156   (eval $ac_try) 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); }; }; then
10160   ac_lo=0 ac_mid=0
10161   while :; do
10162     cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h.  */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h.  */
10168
10169 int
10170 main ()
10171 {
10172 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10173 test_array [0] = 0
10174
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181   (eval $ac_compile) 2>conftest.er1
10182   ac_status=$?
10183   grep -v '^ *+' conftest.er1 >conftest.err
10184   rm -f conftest.er1
10185   cat conftest.err >&5
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } &&
10188          { ac_try='test -z "$ac_c_werror_flag"
10189                          || test ! -s conftest.err'
10190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191   (eval $ac_try) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; } &&
10195          { ac_try='test -s conftest.$ac_objext'
10196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197   (eval $ac_try) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; }; then
10201   ac_hi=$ac_mid; break
10202 else
10203   echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10205
10206 ac_lo=`expr $ac_mid + 1`
10207                     if test $ac_lo -le $ac_mid; then
10208                       ac_lo= ac_hi=
10209                       break
10210                     fi
10211                     ac_mid=`expr 2 '*' $ac_mid + 1`
10212 fi
10213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10214   done
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h.  */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h.  */
10225
10226 int
10227 main ()
10228 {
10229 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
10230 test_array [0] = 0
10231
10232   ;
10233   return 0;
10234 }
10235 _ACEOF
10236 rm -f conftest.$ac_objext
10237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10238   (eval $ac_compile) 2>conftest.er1
10239   ac_status=$?
10240   grep -v '^ *+' conftest.er1 >conftest.err
10241   rm -f conftest.er1
10242   cat conftest.err >&5
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); } &&
10245          { ac_try='test -z "$ac_c_werror_flag"
10246                          || test ! -s conftest.err'
10247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248   (eval $ac_try) 2>&5
10249   ac_status=$?
10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); }; } &&
10252          { ac_try='test -s conftest.$ac_objext'
10253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254   (eval $ac_try) 2>&5
10255   ac_status=$?
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); }; }; then
10258   ac_hi=-1 ac_mid=-1
10259   while :; do
10260     cat >conftest.$ac_ext <<_ACEOF
10261 /* confdefs.h.  */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h.  */
10266
10267 int
10268 main ()
10269 {
10270 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
10271 test_array [0] = 0
10272
10273   ;
10274   return 0;
10275 }
10276 _ACEOF
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279   (eval $ac_compile) 2>conftest.er1
10280   ac_status=$?
10281   grep -v '^ *+' conftest.er1 >conftest.err
10282   rm -f conftest.er1
10283   cat conftest.err >&5
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } &&
10286          { ac_try='test -z "$ac_c_werror_flag"
10287                          || test ! -s conftest.err'
10288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289   (eval $ac_try) 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); }; } &&
10293          { ac_try='test -s conftest.$ac_objext'
10294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295   (eval $ac_try) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; }; then
10299   ac_lo=$ac_mid; break
10300 else
10301   echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304 ac_hi=`expr '(' $ac_mid ')' - 1`
10305                        if test $ac_mid -le $ac_hi; then
10306                          ac_lo= ac_hi=
10307                          break
10308                        fi
10309                        ac_mid=`expr 2 '*' $ac_mid`
10310 fi
10311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10312   done
10313 else
10314   echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10316
10317 ac_lo= ac_hi=
10318 fi
10319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10320 fi
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10322 # Binary search between lo and hi bounds.
10323 while test "x$ac_lo" != "x$ac_hi"; do
10324   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10325   cat >conftest.$ac_ext <<_ACEOF
10326 /* confdefs.h.  */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h.  */
10331
10332 int
10333 main ()
10334 {
10335 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10336 test_array [0] = 0
10337
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344   (eval $ac_compile) 2>conftest.er1
10345   ac_status=$?
10346   grep -v '^ *+' conftest.er1 >conftest.err
10347   rm -f conftest.er1
10348   cat conftest.err >&5
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); } &&
10351          { ac_try='test -z "$ac_c_werror_flag"
10352                          || test ! -s conftest.err'
10353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354   (eval $ac_try) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; } &&
10358          { ac_try='test -s conftest.$ac_objext'
10359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360   (eval $ac_try) 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; }; then
10364   ac_hi=$ac_mid
10365 else
10366   echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369 ac_lo=`expr '(' $ac_mid ')' + 1`
10370 fi
10371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10372 done
10373 case $ac_lo in
10374 ?*) OMP_LOCK_ALIGN=$ac_lo;;
10375 '')  ;;
10376 esac
10377 else
10378   if test "$cross_compiling" = yes; then
10379   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10380 See \`config.log' for more details." >&5
10381 echo "$as_me: error: cannot run test program while cross compiling
10382 See \`config.log' for more details." >&2;}
10383    { (exit 1); exit 1; }; }
10384 else
10385   cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h.  */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h.  */
10391
10392 long longval () { return __alignof (omp_lock_t); }
10393 unsigned long ulongval () { return __alignof (omp_lock_t); }
10394 #include <stdio.h>
10395 #include <stdlib.h>
10396 int
10397 main ()
10398 {
10399
10400   FILE *f = fopen ("conftest.val", "w");
10401   if (! f)
10402     exit (1);
10403   if ((__alignof (omp_lock_t)) < 0)
10404     {
10405       long i = longval ();
10406       if (i != (__alignof (omp_lock_t)))
10407         exit (1);
10408       fprintf (f, "%ld\n", i);
10409     }
10410   else
10411     {
10412       unsigned long i = ulongval ();
10413       if (i != (__alignof (omp_lock_t)))
10414         exit (1);
10415       fprintf (f, "%lu\n", i);
10416     }
10417   exit (ferror (f) || fclose (f) != 0);
10418
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425   (eval $ac_link) 2>&5
10426   ac_status=$?
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430   (eval $ac_try) 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   OMP_LOCK_ALIGN=`cat conftest.val`
10435 else
10436   echo "$as_me: program exited with status $ac_status" >&5
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440 fi
10441 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10442 fi
10443 fi
10444 rm -f conftest.val
10445 if test "$cross_compiling" = yes; then
10446   # Depending upon the size, compute the lo and hi bounds.
10447 cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h.  */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h.  */
10453
10454 int
10455 main ()
10456 {
10457 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10458 test_array [0] = 0
10459
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest.$ac_objext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10466   (eval $ac_compile) 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } &&
10473          { ac_try='test -z "$ac_c_werror_flag"
10474                          || test ! -s conftest.err'
10475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; } &&
10480          { ac_try='test -s conftest.$ac_objext'
10481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482   (eval $ac_try) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; }; then
10486   ac_lo=0 ac_mid=0
10487   while :; do
10488     cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494
10495 int
10496 main ()
10497 {
10498 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10499 test_array [0] = 0
10500
10501   ;
10502   return 0;
10503 }
10504 _ACEOF
10505 rm -f conftest.$ac_objext
10506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10507   (eval $ac_compile) 2>conftest.er1
10508   ac_status=$?
10509   grep -v '^ *+' conftest.er1 >conftest.err
10510   rm -f conftest.er1
10511   cat conftest.err >&5
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); } &&
10514          { ac_try='test -z "$ac_c_werror_flag"
10515                          || test ! -s conftest.err'
10516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517   (eval $ac_try) 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; } &&
10521          { ac_try='test -s conftest.$ac_objext'
10522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523   (eval $ac_try) 2>&5
10524   ac_status=$?
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); }; }; then
10527   ac_hi=$ac_mid; break
10528 else
10529   echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10531
10532 ac_lo=`expr $ac_mid + 1`
10533                     if test $ac_lo -le $ac_mid; then
10534                       ac_lo= ac_hi=
10535                       break
10536                     fi
10537                     ac_mid=`expr 2 '*' $ac_mid + 1`
10538 fi
10539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10540   done
10541 else
10542   echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10544
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h.  */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h.  */
10551
10552 int
10553 main ()
10554 {
10555 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10556 test_array [0] = 0
10557
10558   ;
10559   return 0;
10560 }
10561 _ACEOF
10562 rm -f conftest.$ac_objext
10563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10564   (eval $ac_compile) 2>conftest.er1
10565   ac_status=$?
10566   grep -v '^ *+' conftest.er1 >conftest.err
10567   rm -f conftest.er1
10568   cat conftest.err >&5
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); } &&
10571          { ac_try='test -z "$ac_c_werror_flag"
10572                          || test ! -s conftest.err'
10573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574   (eval $ac_try) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); }; } &&
10578          { ac_try='test -s conftest.$ac_objext'
10579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580   (eval $ac_try) 2>&5
10581   ac_status=$?
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); }; }; then
10584   ac_hi=-1 ac_mid=-1
10585   while :; do
10586     cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h.  */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h.  */
10592
10593 int
10594 main ()
10595 {
10596 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10597 test_array [0] = 0
10598
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 rm -f conftest.$ac_objext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10605   (eval $ac_compile) 2>conftest.er1
10606   ac_status=$?
10607   grep -v '^ *+' conftest.er1 >conftest.err
10608   rm -f conftest.er1
10609   cat conftest.err >&5
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } &&
10612          { ac_try='test -z "$ac_c_werror_flag"
10613                          || test ! -s conftest.err'
10614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615   (eval $ac_try) 2>&5
10616   ac_status=$?
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); }; } &&
10619          { ac_try='test -s conftest.$ac_objext'
10620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621   (eval $ac_try) 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); }; }; then
10625   ac_lo=$ac_mid; break
10626 else
10627   echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10629
10630 ac_hi=`expr '(' $ac_mid ')' - 1`
10631                        if test $ac_mid -le $ac_hi; then
10632                          ac_lo= ac_hi=
10633                          break
10634                        fi
10635                        ac_mid=`expr 2 '*' $ac_mid`
10636 fi
10637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10638   done
10639 else
10640   echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10642
10643 ac_lo= ac_hi=
10644 fi
10645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10646 fi
10647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10648 # Binary search between lo and hi bounds.
10649 while test "x$ac_lo" != "x$ac_hi"; do
10650   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10651   cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h.  */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h.  */
10657
10658 int
10659 main ()
10660 {
10661 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10662 test_array [0] = 0
10663
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 rm -f conftest.$ac_objext
10669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10670   (eval $ac_compile) 2>conftest.er1
10671   ac_status=$?
10672   grep -v '^ *+' conftest.er1 >conftest.err
10673   rm -f conftest.er1
10674   cat conftest.err >&5
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); } &&
10677          { ac_try='test -z "$ac_c_werror_flag"
10678                          || test ! -s conftest.err'
10679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680   (eval $ac_try) 2>&5
10681   ac_status=$?
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); }; } &&
10684          { ac_try='test -s conftest.$ac_objext'
10685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686   (eval $ac_try) 2>&5
10687   ac_status=$?
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); }; }; then
10690   ac_hi=$ac_mid
10691 else
10692   echo "$as_me: failed program was:" >&5
10693 sed 's/^/| /' conftest.$ac_ext >&5
10694
10695 ac_lo=`expr '(' $ac_mid ')' + 1`
10696 fi
10697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10698 done
10699 case $ac_lo in
10700 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10701 '')  ;;
10702 esac
10703 else
10704   if test "$cross_compiling" = yes; then
10705   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10706 See \`config.log' for more details." >&5
10707 echo "$as_me: error: cannot run test program while cross compiling
10708 See \`config.log' for more details." >&2;}
10709    { (exit 1); exit 1; }; }
10710 else
10711   cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h.  */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h.  */
10717
10718 long longval () { return sizeof (omp_nest_lock_t); }
10719 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10720 #include <stdio.h>
10721 #include <stdlib.h>
10722 int
10723 main ()
10724 {
10725
10726   FILE *f = fopen ("conftest.val", "w");
10727   if (! f)
10728     exit (1);
10729   if ((sizeof (omp_nest_lock_t)) < 0)
10730     {
10731       long i = longval ();
10732       if (i != (sizeof (omp_nest_lock_t)))
10733         exit (1);
10734       fprintf (f, "%ld\n", i);
10735     }
10736   else
10737     {
10738       unsigned long i = ulongval ();
10739       if (i != (sizeof (omp_nest_lock_t)))
10740         exit (1);
10741       fprintf (f, "%lu\n", i);
10742     }
10743   exit (ferror (f) || fclose (f) != 0);
10744
10745   ;
10746   return 0;
10747 }
10748 _ACEOF
10749 rm -f conftest$ac_exeext
10750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10751   (eval $ac_link) 2>&5
10752   ac_status=$?
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756   (eval $ac_try) 2>&5
10757   ac_status=$?
10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); }; }; then
10760   OMP_NEST_LOCK_SIZE=`cat conftest.val`
10761 else
10762   echo "$as_me: program exited with status $ac_status" >&5
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10765
10766 fi
10767 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10768 fi
10769 fi
10770 rm -f conftest.val
10771 if test "$cross_compiling" = yes; then
10772   # Depending upon the size, compute the lo and hi bounds.
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779
10780 int
10781 main ()
10782 {
10783 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10784 test_array [0] = 0
10785
10786   ;
10787   return 0;
10788 }
10789 _ACEOF
10790 rm -f conftest.$ac_objext
10791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10792   (eval $ac_compile) 2>conftest.er1
10793   ac_status=$?
10794   grep -v '^ *+' conftest.er1 >conftest.err
10795   rm -f conftest.er1
10796   cat conftest.err >&5
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); } &&
10799          { ac_try='test -z "$ac_c_werror_flag"
10800                          || test ! -s conftest.err'
10801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802   (eval $ac_try) 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); }; } &&
10806          { ac_try='test -s conftest.$ac_objext'
10807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808   (eval $ac_try) 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); }; }; then
10812   ac_lo=0 ac_mid=0
10813   while :; do
10814     cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h.  */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h.  */
10820
10821 int
10822 main ()
10823 {
10824 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10825 test_array [0] = 0
10826
10827   ;
10828   return 0;
10829 }
10830 _ACEOF
10831 rm -f conftest.$ac_objext
10832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10833   (eval $ac_compile) 2>conftest.er1
10834   ac_status=$?
10835   grep -v '^ *+' conftest.er1 >conftest.err
10836   rm -f conftest.er1
10837   cat conftest.err >&5
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } &&
10840          { ac_try='test -z "$ac_c_werror_flag"
10841                          || test ! -s conftest.err'
10842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843   (eval $ac_try) 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; } &&
10847          { ac_try='test -s conftest.$ac_objext'
10848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849   (eval $ac_try) 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); }; }; then
10853   ac_hi=$ac_mid; break
10854 else
10855   echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10857
10858 ac_lo=`expr $ac_mid + 1`
10859                     if test $ac_lo -le $ac_mid; then
10860                       ac_lo= ac_hi=
10861                       break
10862                     fi
10863                     ac_mid=`expr 2 '*' $ac_mid + 1`
10864 fi
10865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10866   done
10867 else
10868   echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10870
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h.  */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h.  */
10877
10878 int
10879 main ()
10880 {
10881 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
10882 test_array [0] = 0
10883
10884   ;
10885   return 0;
10886 }
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890   (eval $ac_compile) 2>conftest.er1
10891   ac_status=$?
10892   grep -v '^ *+' conftest.er1 >conftest.err
10893   rm -f conftest.er1
10894   cat conftest.err >&5
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); } &&
10897          { ac_try='test -z "$ac_c_werror_flag"
10898                          || test ! -s conftest.err'
10899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900   (eval $ac_try) 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); }; } &&
10904          { ac_try='test -s conftest.$ac_objext'
10905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906   (eval $ac_try) 2>&5
10907   ac_status=$?
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); }; }; then
10910   ac_hi=-1 ac_mid=-1
10911   while :; do
10912     cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h.  */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h.  */
10918
10919 int
10920 main ()
10921 {
10922 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
10923 test_array [0] = 0
10924
10925   ;
10926   return 0;
10927 }
10928 _ACEOF
10929 rm -f conftest.$ac_objext
10930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10931   (eval $ac_compile) 2>conftest.er1
10932   ac_status=$?
10933   grep -v '^ *+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } &&
10938          { ac_try='test -z "$ac_c_werror_flag"
10939                          || test ! -s conftest.err'
10940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941   (eval $ac_try) 2>&5
10942   ac_status=$?
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); }; } &&
10945          { ac_try='test -s conftest.$ac_objext'
10946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947   (eval $ac_try) 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); }; }; then
10951   ac_lo=$ac_mid; break
10952 else
10953   echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10955
10956 ac_hi=`expr '(' $ac_mid ')' - 1`
10957                        if test $ac_mid -le $ac_hi; then
10958                          ac_lo= ac_hi=
10959                          break
10960                        fi
10961                        ac_mid=`expr 2 '*' $ac_mid`
10962 fi
10963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10964   done
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 ac_lo= ac_hi=
10970 fi
10971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10972 fi
10973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10974 # Binary search between lo and hi bounds.
10975 while test "x$ac_lo" != "x$ac_hi"; do
10976   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10977   cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983
10984 int
10985 main ()
10986 {
10987 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10988 test_array [0] = 0
10989
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext
10995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10996   (eval $ac_compile) 2>conftest.er1
10997   ac_status=$?
10998   grep -v '^ *+' conftest.er1 >conftest.err
10999   rm -f conftest.er1
11000   cat conftest.err >&5
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } &&
11003          { ac_try='test -z "$ac_c_werror_flag"
11004                          || test ! -s conftest.err'
11005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006   (eval $ac_try) 2>&5
11007   ac_status=$?
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); }; } &&
11010          { ac_try='test -s conftest.$ac_objext'
11011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012   (eval $ac_try) 2>&5
11013   ac_status=$?
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); }; }; then
11016   ac_hi=$ac_mid
11017 else
11018   echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11020
11021 ac_lo=`expr '(' $ac_mid ')' + 1`
11022 fi
11023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11024 done
11025 case $ac_lo in
11026 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
11027 '')  ;;
11028 esac
11029 else
11030   if test "$cross_compiling" = yes; then
11031   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11032 See \`config.log' for more details." >&5
11033 echo "$as_me: error: cannot run test program while cross compiling
11034 See \`config.log' for more details." >&2;}
11035    { (exit 1); exit 1; }; }
11036 else
11037   cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h.  */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h.  */
11043
11044 long longval () { return __alignof (omp_nest_lock_t); }
11045 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
11046 #include <stdio.h>
11047 #include <stdlib.h>
11048 int
11049 main ()
11050 {
11051
11052   FILE *f = fopen ("conftest.val", "w");
11053   if (! f)
11054     exit (1);
11055   if ((__alignof (omp_nest_lock_t)) < 0)
11056     {
11057       long i = longval ();
11058       if (i != (__alignof (omp_nest_lock_t)))
11059         exit (1);
11060       fprintf (f, "%ld\n", i);
11061     }
11062   else
11063     {
11064       unsigned long i = ulongval ();
11065       if (i != (__alignof (omp_nest_lock_t)))
11066         exit (1);
11067       fprintf (f, "%lu\n", i);
11068     }
11069   exit (ferror (f) || fclose (f) != 0);
11070
11071   ;
11072   return 0;
11073 }
11074 _ACEOF
11075 rm -f conftest$ac_exeext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11077   (eval $ac_link) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082   (eval $ac_try) 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); }; }; then
11086   OMP_NEST_LOCK_ALIGN=`cat conftest.val`
11087 else
11088   echo "$as_me: program exited with status $ac_status" >&5
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11091
11092 fi
11093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11094 fi
11095 fi
11096 rm -f conftest.val
11097
11098 # If the lock fits in an integer, then arrange for Fortran to use that
11099 # integer.  If it doesn't, then arrange for Fortran to use a pointer.
11100 # Except that we don't have a way at present to multi-lib the installed
11101 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
11102 # actual target.
11103 OMP_LOCK_KIND=$OMP_LOCK_SIZE
11104 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
11105 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
11106   OMP_LOCK_KIND=8
11107 fi
11108 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
11109   OMP_NEST_LOCK_KIND=8
11110 fi
11111
11112
11113
11114
11115
11116
11117
11118 CFLAGS="$save_CFLAGS"
11119
11120                                         ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
11121
11122                               ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
11123
11124 cat >confcache <<\_ACEOF
11125 # This file is a shell script that caches the results of configure
11126 # tests run on this system so they can be shared between configure
11127 # scripts and configure runs, see configure's option --config-cache.
11128 # It is not useful on other systems.  If it contains results you don't
11129 # want to keep, you may remove or edit it.
11130 #
11131 # config.status only pays attention to the cache file if you give it
11132 # the --recheck option to rerun configure.
11133 #
11134 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11135 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11136 # following values.
11137
11138 _ACEOF
11139
11140 # The following way of writing the cache mishandles newlines in values,
11141 # but we know of no workaround that is simple, portable, and efficient.
11142 # So, don't put newlines in cache variables' values.
11143 # Ultrix sh set writes to stderr and can't be redirected directly,
11144 # and sets the high bit in the cache file unless we assign to the vars.
11145 {
11146   (set) 2>&1 |
11147     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11148     *ac_space=\ *)
11149       # `set' does not quote correctly, so add quotes (double-quote
11150       # substitution turns \\\\ into \\, and sed turns \\ into \).
11151       sed -n \
11152         "s/'/'\\\\''/g;
11153           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11154       ;;
11155     *)
11156       # `set' quotes correctly as required by POSIX, so do not add quotes.
11157       sed -n \
11158         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11159       ;;
11160     esac;
11161 } |
11162   sed '
11163      t clear
11164      : clear
11165      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11166      t end
11167      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11168      : end' >>confcache
11169 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11170   if test -w $cache_file; then
11171     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11172     cat confcache >$cache_file
11173   else
11174     echo "not updating unwritable cache $cache_file"
11175   fi
11176 fi
11177 rm -f confcache
11178
11179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11180 # Let make expand exec_prefix.
11181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11182
11183 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11184 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11185 # trailing colons and then remove the whole line if VPATH becomes empty
11186 # (actually we leave an empty line to preserve line numbers).
11187 if test "x$srcdir" = x.; then
11188   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11189 s/:*\$(srcdir):*/:/;
11190 s/:*\${srcdir}:*/:/;
11191 s/:*@srcdir@:*/:/;
11192 s/^\([^=]*=[     ]*\):*/\1/;
11193 s/:*$//;
11194 s/^[^=]*=[       ]*$//;
11195 }'
11196 fi
11197
11198 DEFS=-DHAVE_CONFIG_H
11199
11200 ac_libobjs=
11201 ac_ltlibobjs=
11202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11203   # 1. Remove the extension, and $U if already installed.
11204   ac_i=`echo "$ac_i" |
11205          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11206   # 2. Add them.
11207   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11208   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11209 done
11210 LIBOBJS=$ac_libobjs
11211
11212 LTLIBOBJS=$ac_ltlibobjs
11213
11214
11215 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
11216   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
11217 Usually this means the macro was only invoked conditionally." >&5
11218 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
11219 Usually this means the macro was only invoked conditionally." >&2;}
11220    { (exit 1); exit 1; }; }
11221 fi
11222 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11223   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11224 Usually this means the macro was only invoked conditionally." >&5
11225 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11226 Usually this means the macro was only invoked conditionally." >&2;}
11227    { (exit 1); exit 1; }; }
11228 fi
11229 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11230   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11231 Usually this means the macro was only invoked conditionally." >&5
11232 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11233 Usually this means the macro was only invoked conditionally." >&2;}
11234    { (exit 1); exit 1; }; }
11235 fi
11236 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
11237   { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined.
11238 Usually this means the macro was only invoked conditionally." >&5
11239 echo "$as_me: error: conditional \"BUILD_INFO\" was never defined.
11240 Usually this means the macro was only invoked conditionally." >&2;}
11241    { (exit 1); exit 1; }; }
11242 fi
11243 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11244   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11245 Usually this means the macro was only invoked conditionally." >&5
11246 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11247 Usually this means the macro was only invoked conditionally." >&2;}
11248    { (exit 1); exit 1; }; }
11249 fi
11250 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
11251   { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11252 Usually this means the macro was only invoked conditionally." >&5
11253 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11254 Usually this means the macro was only invoked conditionally." >&2;}
11255    { (exit 1); exit 1; }; }
11256 fi
11257 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
11258   { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
11259 Usually this means the macro was only invoked conditionally." >&5
11260 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
11261 Usually this means the macro was only invoked conditionally." >&2;}
11262    { (exit 1); exit 1; }; }
11263 fi
11264
11265 : ${CONFIG_STATUS=./config.status}
11266 ac_clean_files_save=$ac_clean_files
11267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11268 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11269 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11270 cat >$CONFIG_STATUS <<_ACEOF
11271 #! $SHELL
11272 # Generated by $as_me.
11273 # Run this file to recreate the current configuration.
11274 # Compiler output produced by configure, useful for debugging
11275 # configure, is in config.log if it exists.
11276
11277 debug=false
11278 ac_cs_recheck=false
11279 ac_cs_silent=false
11280 SHELL=\${CONFIG_SHELL-$SHELL}
11281 _ACEOF
11282
11283 cat >>$CONFIG_STATUS <<\_ACEOF
11284 ## --------------------- ##
11285 ## M4sh Initialization.  ##
11286 ## --------------------- ##
11287
11288 # Be Bourne compatible
11289 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11290   emulate sh
11291   NULLCMD=:
11292   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11293   # is contrary to our usage.  Disable this feature.
11294   alias -g '${1+"$@"}'='"$@"'
11295 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11296   set -o posix
11297 fi
11298 DUALCASE=1; export DUALCASE # for MKS sh
11299
11300 # Support unset when possible.
11301 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11302   as_unset=unset
11303 else
11304   as_unset=false
11305 fi
11306
11307
11308 # Work around bugs in pre-3.0 UWIN ksh.
11309 $as_unset ENV MAIL MAILPATH
11310 PS1='$ '
11311 PS2='> '
11312 PS4='+ '
11313
11314 # NLS nuisances.
11315 for as_var in \
11316   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11317   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11318   LC_TELEPHONE LC_TIME
11319 do
11320   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11321     eval $as_var=C; export $as_var
11322   else
11323     $as_unset $as_var
11324   fi
11325 done
11326
11327 # Required to use basename.
11328 if expr a : '\(a\)' >/dev/null 2>&1; then
11329   as_expr=expr
11330 else
11331   as_expr=false
11332 fi
11333
11334 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11335   as_basename=basename
11336 else
11337   as_basename=false
11338 fi
11339
11340
11341 # Name of the executable.
11342 as_me=`$as_basename "$0" ||
11343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11344          X"$0" : 'X\(//\)$' \| \
11345          X"$0" : 'X\(/\)$' \| \
11346          .     : '\(.\)' 2>/dev/null ||
11347 echo X/"$0" |
11348     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11349           /^X\/\(\/\/\)$/{ s//\1/; q; }
11350           /^X\/\(\/\).*/{ s//\1/; q; }
11351           s/.*/./; q'`
11352
11353
11354 # PATH needs CR, and LINENO needs CR and PATH.
11355 # Avoid depending upon Character Ranges.
11356 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11357 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11358 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11359 as_cr_digits='0123456789'
11360 as_cr_alnum=$as_cr_Letters$as_cr_digits
11361
11362 # The user is always right.
11363 if test "${PATH_SEPARATOR+set}" != set; then
11364   echo "#! /bin/sh" >conf$$.sh
11365   echo  "exit 0"   >>conf$$.sh
11366   chmod +x conf$$.sh
11367   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11368     PATH_SEPARATOR=';'
11369   else
11370     PATH_SEPARATOR=:
11371   fi
11372   rm -f conf$$.sh
11373 fi
11374
11375
11376   as_lineno_1=$LINENO
11377   as_lineno_2=$LINENO
11378   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11379   test "x$as_lineno_1" != "x$as_lineno_2" &&
11380   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11381   # Find who we are.  Look in the path if we contain no path at all
11382   # relative or not.
11383   case $0 in
11384     *[\\/]* ) as_myself=$0 ;;
11385     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11387 do
11388   IFS=$as_save_IFS
11389   test -z "$as_dir" && as_dir=.
11390   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11391 done
11392
11393        ;;
11394   esac
11395   # We did not find ourselves, most probably we were run as `sh COMMAND'
11396   # in which case we are not to be found in the path.
11397   if test "x$as_myself" = x; then
11398     as_myself=$0
11399   fi
11400   if test ! -f "$as_myself"; then
11401     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11402 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11403    { (exit 1); exit 1; }; }
11404   fi
11405   case $CONFIG_SHELL in
11406   '')
11407     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11409 do
11410   IFS=$as_save_IFS
11411   test -z "$as_dir" && as_dir=.
11412   for as_base in sh bash ksh sh5; do
11413          case $as_dir in
11414          /*)
11415            if ("$as_dir/$as_base" -c '
11416   as_lineno_1=$LINENO
11417   as_lineno_2=$LINENO
11418   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11419   test "x$as_lineno_1" != "x$as_lineno_2" &&
11420   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11421              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11422              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11423              CONFIG_SHELL=$as_dir/$as_base
11424              export CONFIG_SHELL
11425              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11426            fi;;
11427          esac
11428        done
11429 done
11430 ;;
11431   esac
11432
11433   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11434   # uniformly replaced by the line number.  The first 'sed' inserts a
11435   # line-number line before each line; the second 'sed' does the real
11436   # work.  The second script uses 'N' to pair each line-number line
11437   # with the numbered line, and appends trailing '-' during
11438   # substitution so that $LINENO is not a special case at line end.
11439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11440   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11441   sed '=' <$as_myself |
11442     sed '
11443       N
11444       s,$,-,
11445       : loop
11446       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11447       t loop
11448       s,-$,,
11449       s,^['$as_cr_digits']*\n,,
11450     ' >$as_me.lineno &&
11451   chmod +x $as_me.lineno ||
11452     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11453 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11454    { (exit 1); exit 1; }; }
11455
11456   # Don't try to exec as it changes $[0], causing all sort of problems
11457   # (the dirname of $[0] is not the place where we might find the
11458   # original and so on.  Autoconf is especially sensible to this).
11459   . ./$as_me.lineno
11460   # Exit status is that of the last command.
11461   exit
11462 }
11463
11464
11465 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11466   *c*,-n*) ECHO_N= ECHO_C='
11467 ' ECHO_T='      ' ;;
11468   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11469   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11470 esac
11471
11472 if expr a : '\(a\)' >/dev/null 2>&1; then
11473   as_expr=expr
11474 else
11475   as_expr=false
11476 fi
11477
11478 rm -f conf$$ conf$$.exe conf$$.file
11479 echo >conf$$.file
11480 if ln -s conf$$.file conf$$ 2>/dev/null; then
11481   # We could just check for DJGPP; but this test a) works b) is more generic
11482   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11483   if test -f conf$$.exe; then
11484     # Don't use ln at all; we don't have any links
11485     as_ln_s='cp -p'
11486   else
11487     as_ln_s='ln -s'
11488   fi
11489 elif ln conf$$.file conf$$ 2>/dev/null; then
11490   as_ln_s=ln
11491 else
11492   as_ln_s='cp -p'
11493 fi
11494 rm -f conf$$ conf$$.exe conf$$.file
11495
11496 if mkdir -p . 2>/dev/null; then
11497   as_mkdir_p=:
11498 else
11499   test -d ./-p && rmdir ./-p
11500   as_mkdir_p=false
11501 fi
11502
11503 as_executable_p="test -f"
11504
11505 # Sed expression to map a string onto a valid CPP name.
11506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11507
11508 # Sed expression to map a string onto a valid variable name.
11509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11510
11511
11512 # IFS
11513 # We need space, tab and new line, in precisely that order.
11514 as_nl='
11515 '
11516 IFS="   $as_nl"
11517
11518 # CDPATH.
11519 $as_unset CDPATH
11520
11521 exec 6>&1
11522
11523 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11524 # report actual input values of CONFIG_FILES etc. instead of their
11525 # values after options handling.  Logging --version etc. is OK.
11526 exec 5>>config.log
11527 {
11528   echo
11529   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11530 ## Running $as_me. ##
11531 _ASBOX
11532 } >&5
11533 cat >&5 <<_CSEOF
11534
11535 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11536 generated by GNU Autoconf 2.59.  Invocation command line was
11537
11538   CONFIG_FILES    = $CONFIG_FILES
11539   CONFIG_HEADERS  = $CONFIG_HEADERS
11540   CONFIG_LINKS    = $CONFIG_LINKS
11541   CONFIG_COMMANDS = $CONFIG_COMMANDS
11542   $ $0 $@
11543
11544 _CSEOF
11545 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11546 echo >&5
11547 _ACEOF
11548
11549 # Files that config.status was made for.
11550 if test -n "$ac_config_files"; then
11551   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11552 fi
11553
11554 if test -n "$ac_config_headers"; then
11555   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11556 fi
11557
11558 if test -n "$ac_config_links"; then
11559   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11560 fi
11561
11562 if test -n "$ac_config_commands"; then
11563   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11564 fi
11565
11566 cat >>$CONFIG_STATUS <<\_ACEOF
11567
11568 ac_cs_usage="\
11569 \`$as_me' instantiates files from templates according to the
11570 current configuration.
11571
11572 Usage: $0 [OPTIONS] [FILE]...
11573
11574   -h, --help       print this help, then exit
11575   -V, --version    print version number, then exit
11576   -q, --quiet      do not print progress messages
11577   -d, --debug      don't remove temporary files
11578       --recheck    update $as_me by reconfiguring in the same conditions
11579   --file=FILE[:TEMPLATE]
11580                    instantiate the configuration file FILE
11581   --header=FILE[:TEMPLATE]
11582                    instantiate the configuration header FILE
11583
11584 Configuration files:
11585 $config_files
11586
11587 Configuration headers:
11588 $config_headers
11589
11590 Configuration commands:
11591 $config_commands
11592
11593 Report bugs to <bug-autoconf@gnu.org>."
11594 _ACEOF
11595
11596 cat >>$CONFIG_STATUS <<_ACEOF
11597 ac_cs_version="\\
11598 GNU OpenMP Runtime Library config.status 1.0
11599 configured by $0, generated by GNU Autoconf 2.59,
11600   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11601
11602 Copyright (C) 2003 Free Software Foundation, Inc.
11603 This config.status script is free software; the Free Software Foundation
11604 gives unlimited permission to copy, distribute and modify it."
11605 srcdir=$srcdir
11606 INSTALL="$INSTALL"
11607 _ACEOF
11608
11609 cat >>$CONFIG_STATUS <<\_ACEOF
11610 # If no file are specified by the user, then we need to provide default
11611 # value.  By we need to know if files were specified by the user.
11612 ac_need_defaults=:
11613 while test $# != 0
11614 do
11615   case $1 in
11616   --*=*)
11617     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11618     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11619     ac_shift=:
11620     ;;
11621   -*)
11622     ac_option=$1
11623     ac_optarg=$2
11624     ac_shift=shift
11625     ;;
11626   *) # This is not an option, so the user has probably given explicit
11627      # arguments.
11628      ac_option=$1
11629      ac_need_defaults=false;;
11630   esac
11631
11632   case $ac_option in
11633   # Handling of the options.
11634 _ACEOF
11635 cat >>$CONFIG_STATUS <<\_ACEOF
11636   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11637     ac_cs_recheck=: ;;
11638   --version | --vers* | -V )
11639     echo "$ac_cs_version"; exit 0 ;;
11640   --he | --h)
11641     # Conflict between --help and --header
11642     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11643 Try \`$0 --help' for more information." >&5
11644 echo "$as_me: error: ambiguous option: $1
11645 Try \`$0 --help' for more information." >&2;}
11646    { (exit 1); exit 1; }; };;
11647   --help | --hel | -h )
11648     echo "$ac_cs_usage"; exit 0 ;;
11649   --debug | --d* | -d )
11650     debug=: ;;
11651   --file | --fil | --fi | --f )
11652     $ac_shift
11653     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11654     ac_need_defaults=false;;
11655   --header | --heade | --head | --hea )
11656     $ac_shift
11657     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11658     ac_need_defaults=false;;
11659   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11660   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11661     ac_cs_silent=: ;;
11662
11663   # This is an error.
11664   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11665 Try \`$0 --help' for more information." >&5
11666 echo "$as_me: error: unrecognized option: $1
11667 Try \`$0 --help' for more information." >&2;}
11668    { (exit 1); exit 1; }; } ;;
11669
11670   *) ac_config_targets="$ac_config_targets $1" ;;
11671
11672   esac
11673   shift
11674 done
11675
11676 ac_configure_extra_args=
11677
11678 if $ac_cs_silent; then
11679   exec 6>/dev/null
11680   ac_configure_extra_args="$ac_configure_extra_args --silent"
11681 fi
11682
11683 _ACEOF
11684 cat >>$CONFIG_STATUS <<_ACEOF
11685 if \$ac_cs_recheck; then
11686   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11687   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11688 fi
11689
11690 _ACEOF
11691
11692 cat >>$CONFIG_STATUS <<_ACEOF
11693 #
11694 # INIT-COMMANDS section.
11695 #
11696
11697
11698 srcdir="$srcdir"
11699 host="$host"
11700 target="$target"
11701 with_multisubdir="$with_multisubdir"
11702 with_multisrctop="$with_multisrctop"
11703 with_target_subdir="$with_target_subdir"
11704 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11705 multi_basedir="$multi_basedir"
11706 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11707 CC="$CC"
11708 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11709
11710 GCC="$GCC"
11711 CC="$CC"
11712 acx_cv_header_stdint="$acx_cv_header_stdint"
11713 acx_cv_type_int8_t="$acx_cv_type_int8_t"
11714 acx_cv_type_int16_t="$acx_cv_type_int16_t"
11715 acx_cv_type_int32_t="$acx_cv_type_int32_t"
11716 acx_cv_type_int64_t="$acx_cv_type_int64_t"
11717 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11718 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11719 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11720 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11721 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11722 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11723 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11724 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11725 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11726
11727
11728 _ACEOF
11729
11730
11731
11732 cat >>$CONFIG_STATUS <<\_ACEOF
11733 for ac_config_target in $ac_config_targets
11734 do
11735   case "$ac_config_target" in
11736   # Handling of arguments.
11737   "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11738   "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11739   "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11740   "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
11741   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11742   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11743   "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11744   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11745   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11746   "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
11747   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11748   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11749 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11750    { (exit 1); exit 1; }; };;
11751   esac
11752 done
11753
11754 # If the user did not use the arguments to specify the items to instantiate,
11755 # then the envvar interface is used.  Set only those that are not.
11756 # We use the long form for the default assignment because of an extremely
11757 # bizarre bug on SunOS 4.1.3.
11758 if $ac_need_defaults; then
11759   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11760   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11761   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11762 fi
11763
11764 # Have a temporary directory for convenience.  Make it in the build tree
11765 # simply because there is no reason to put it here, and in addition,
11766 # creating and moving files from /tmp can sometimes cause problems.
11767 # Create a temporary directory, and hook for its removal unless debugging.
11768 $debug ||
11769 {
11770   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11771   trap '{ (exit 1); exit 1; }' 1 2 13 15
11772 }
11773
11774 # Create a (secure) tmp directory for tmp files.
11775
11776 {
11777   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11778   test -n "$tmp" && test -d "$tmp"
11779 }  ||
11780 {
11781   tmp=./confstat$$-$RANDOM
11782   (umask 077 && mkdir $tmp)
11783 } ||
11784 {
11785    echo "$me: cannot create a temporary directory in ." >&2
11786    { (exit 1); exit 1; }
11787 }
11788
11789 _ACEOF
11790
11791 cat >>$CONFIG_STATUS <<_ACEOF
11792
11793 #
11794 # CONFIG_FILES section.
11795 #
11796
11797 # No need to generate the scripts if there are no CONFIG_FILES.
11798 # This happens for instance when ./config.status config.h
11799 if test -n "\$CONFIG_FILES"; then
11800   # Protect against being on the right side of a sed subst in config.status.
11801   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11802    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11803 s,@SHELL@,$SHELL,;t t
11804 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11805 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11806 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11807 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11808 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11809 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11810 s,@exec_prefix@,$exec_prefix,;t t
11811 s,@prefix@,$prefix,;t t
11812 s,@program_transform_name@,$program_transform_name,;t t
11813 s,@bindir@,$bindir,;t t
11814 s,@sbindir@,$sbindir,;t t
11815 s,@libexecdir@,$libexecdir,;t t
11816 s,@datadir@,$datadir,;t t
11817 s,@sysconfdir@,$sysconfdir,;t t
11818 s,@sharedstatedir@,$sharedstatedir,;t t
11819 s,@localstatedir@,$localstatedir,;t t
11820 s,@libdir@,$libdir,;t t
11821 s,@includedir@,$includedir,;t t
11822 s,@oldincludedir@,$oldincludedir,;t t
11823 s,@infodir@,$infodir,;t t
11824 s,@mandir@,$mandir,;t t
11825 s,@build_alias@,$build_alias,;t t
11826 s,@host_alias@,$host_alias,;t t
11827 s,@target_alias@,$target_alias,;t t
11828 s,@DEFS@,$DEFS,;t t
11829 s,@ECHO_C@,$ECHO_C,;t t
11830 s,@ECHO_N@,$ECHO_N,;t t
11831 s,@ECHO_T@,$ECHO_T,;t t
11832 s,@LIBS@,$LIBS,;t t
11833 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
11834 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
11835 s,@build@,$build,;t t
11836 s,@build_cpu@,$build_cpu,;t t
11837 s,@build_vendor@,$build_vendor,;t t
11838 s,@build_os@,$build_os,;t t
11839 s,@host@,$host,;t t
11840 s,@host_cpu@,$host_cpu,;t t
11841 s,@host_vendor@,$host_vendor,;t t
11842 s,@host_os@,$host_os,;t t
11843 s,@target@,$target,;t t
11844 s,@target_cpu@,$target_cpu,;t t
11845 s,@target_vendor@,$target_vendor,;t t
11846 s,@target_os@,$target_os,;t t
11847 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11848 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11849 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11850 s,@CYGPATH_W@,$CYGPATH_W,;t t
11851 s,@PACKAGE@,$PACKAGE,;t t
11852 s,@VERSION@,$VERSION,;t t
11853 s,@ACLOCAL@,$ACLOCAL,;t t
11854 s,@AUTOCONF@,$AUTOCONF,;t t
11855 s,@AUTOMAKE@,$AUTOMAKE,;t t
11856 s,@AUTOHEADER@,$AUTOHEADER,;t t
11857 s,@MAKEINFO@,$MAKEINFO,;t t
11858 s,@install_sh@,$install_sh,;t t
11859 s,@STRIP@,$STRIP,;t t
11860 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11861 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11862 s,@mkdir_p@,$mkdir_p,;t t
11863 s,@AWK@,$AWK,;t t
11864 s,@SET_MAKE@,$SET_MAKE,;t t
11865 s,@am__leading_dot@,$am__leading_dot,;t t
11866 s,@AMTAR@,$AMTAR,;t t
11867 s,@am__tar@,$am__tar,;t t
11868 s,@am__untar@,$am__untar,;t t
11869 s,@multi_basedir@,$multi_basedir,;t t
11870 s,@toolexecdir@,$toolexecdir,;t t
11871 s,@toolexeclibdir@,$toolexeclibdir,;t t
11872 s,@CC@,$CC,;t t
11873 s,@ac_ct_CC@,$ac_ct_CC,;t t
11874 s,@EXEEXT@,$EXEEXT,;t t
11875 s,@OBJEXT@,$OBJEXT,;t t
11876 s,@DEPDIR@,$DEPDIR,;t t
11877 s,@am__include@,$am__include,;t t
11878 s,@am__quote@,$am__quote,;t t
11879 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11880 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11881 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11882 s,@CCDEPMODE@,$CCDEPMODE,;t t
11883 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11884 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11885 s,@CFLAGS@,$CFLAGS,;t t
11886 s,@AR@,$AR,;t t
11887 s,@ac_ct_AR@,$ac_ct_AR,;t t
11888 s,@RANLIB@,$RANLIB,;t t
11889 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11890 s,@PERL@,$PERL,;t t
11891 s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t
11892 s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t
11893 s,@LN_S@,$LN_S,;t t
11894 s,@LIBTOOL@,$LIBTOOL,;t t
11895 s,@enable_shared@,$enable_shared,;t t
11896 s,@enable_static@,$enable_static,;t t
11897 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11898 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11899 s,@MAINT@,$MAINT,;t t
11900 s,@FC@,$FC,;t t
11901 s,@FCFLAGS@,$FCFLAGS,;t t
11902 s,@LDFLAGS@,$LDFLAGS,;t t
11903 s,@ac_ct_FC@,$ac_ct_FC,;t t
11904 s,@libtool_VERSION@,$libtool_VERSION,;t t
11905 s,@CPP@,$CPP,;t t
11906 s,@CPPFLAGS@,$CPPFLAGS,;t t
11907 s,@EGREP@,$EGREP,;t t
11908 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11909 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11910 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11911 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11912 s,@config_path@,$config_path,;t t
11913 s,@XCFLAGS@,$XCFLAGS,;t t
11914 s,@XLDFLAGS@,$XLDFLAGS,;t t
11915 s,@link_gomp@,$link_gomp,;t t
11916 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11917 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
11918 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11919 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11920 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11921 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11922 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11923 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
11924 s,@LIBOBJS@,$LIBOBJS,;t t
11925 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11926 CEOF
11927
11928 _ACEOF
11929
11930   cat >>$CONFIG_STATUS <<\_ACEOF
11931   # Split the substitutions into bite-sized pieces for seds with
11932   # small command number limits, like on Digital OSF/1 and HP-UX.
11933   ac_max_sed_lines=48
11934   ac_sed_frag=1 # Number of current file.
11935   ac_beg=1 # First line for current file.
11936   ac_end=$ac_max_sed_lines # Line after last line for current file.
11937   ac_more_lines=:
11938   ac_sed_cmds=
11939   while $ac_more_lines; do
11940     if test $ac_beg -gt 1; then
11941       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11942     else
11943       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11944     fi
11945     if test ! -s $tmp/subs.frag; then
11946       ac_more_lines=false
11947     else
11948       # The purpose of the label and of the branching condition is to
11949       # speed up the sed processing (if there are no `@' at all, there
11950       # is no need to browse any of the substitutions).
11951       # These are the two extra sed commands mentioned above.
11952       (echo ':t
11953   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11954       if test -z "$ac_sed_cmds"; then
11955         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11956       else
11957         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11958       fi
11959       ac_sed_frag=`expr $ac_sed_frag + 1`
11960       ac_beg=$ac_end
11961       ac_end=`expr $ac_end + $ac_max_sed_lines`
11962     fi
11963   done
11964   if test -z "$ac_sed_cmds"; then
11965     ac_sed_cmds=cat
11966   fi
11967 fi # test -n "$CONFIG_FILES"
11968
11969 _ACEOF
11970 cat >>$CONFIG_STATUS <<\_ACEOF
11971 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11972   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11973   case $ac_file in
11974   - | *:- | *:-:* ) # input from stdin
11975         cat >$tmp/stdin
11976         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11977         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11978   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11979         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11980   * )   ac_file_in=$ac_file.in ;;
11981   esac
11982
11983   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11984   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11986          X"$ac_file" : 'X\(//\)[^/]' \| \
11987          X"$ac_file" : 'X\(//\)$' \| \
11988          X"$ac_file" : 'X\(/\)' \| \
11989          .     : '\(.\)' 2>/dev/null ||
11990 echo X"$ac_file" |
11991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11992           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11993           /^X\(\/\/\)$/{ s//\1/; q; }
11994           /^X\(\/\).*/{ s//\1/; q; }
11995           s/.*/./; q'`
11996   { if $as_mkdir_p; then
11997     mkdir -p "$ac_dir"
11998   else
11999     as_dir="$ac_dir"
12000     as_dirs=
12001     while test ! -d "$as_dir"; do
12002       as_dirs="$as_dir $as_dirs"
12003       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12005          X"$as_dir" : 'X\(//\)[^/]' \| \
12006          X"$as_dir" : 'X\(//\)$' \| \
12007          X"$as_dir" : 'X\(/\)' \| \
12008          .     : '\(.\)' 2>/dev/null ||
12009 echo X"$as_dir" |
12010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12011           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12012           /^X\(\/\/\)$/{ s//\1/; q; }
12013           /^X\(\/\).*/{ s//\1/; q; }
12014           s/.*/./; q'`
12015     done
12016     test ! -n "$as_dirs" || mkdir $as_dirs
12017   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12018 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12019    { (exit 1); exit 1; }; }; }
12020
12021   ac_builddir=.
12022
12023 if test "$ac_dir" != .; then
12024   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12025   # A "../" for each directory in $ac_dir_suffix.
12026   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12027 else
12028   ac_dir_suffix= ac_top_builddir=
12029 fi
12030
12031 case $srcdir in
12032   .)  # No --srcdir option.  We are building in place.
12033     ac_srcdir=.
12034     if test -z "$ac_top_builddir"; then
12035        ac_top_srcdir=.
12036     else
12037        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12038     fi ;;
12039   [\\/]* | ?:[\\/]* )  # Absolute path.
12040     ac_srcdir=$srcdir$ac_dir_suffix;
12041     ac_top_srcdir=$srcdir ;;
12042   *) # Relative path.
12043     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12044     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12045 esac
12046
12047 # Do not use `cd foo && pwd` to compute absolute paths, because
12048 # the directories may not exist.
12049 case `pwd` in
12050 .) ac_abs_builddir="$ac_dir";;
12051 *)
12052   case "$ac_dir" in
12053   .) ac_abs_builddir=`pwd`;;
12054   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12055   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12056   esac;;
12057 esac
12058 case $ac_abs_builddir in
12059 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12060 *)
12061   case ${ac_top_builddir}. in
12062   .) ac_abs_top_builddir=$ac_abs_builddir;;
12063   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12064   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12065   esac;;
12066 esac
12067 case $ac_abs_builddir in
12068 .) ac_abs_srcdir=$ac_srcdir;;
12069 *)
12070   case $ac_srcdir in
12071   .) ac_abs_srcdir=$ac_abs_builddir;;
12072   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12073   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12074   esac;;
12075 esac
12076 case $ac_abs_builddir in
12077 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12078 *)
12079   case $ac_top_srcdir in
12080   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12081   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12082   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12083   esac;;
12084 esac
12085
12086
12087   case $INSTALL in
12088   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12089   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12090   esac
12091
12092   if test x"$ac_file" != x-; then
12093     { echo "$as_me:$LINENO: creating $ac_file" >&5
12094 echo "$as_me: creating $ac_file" >&6;}
12095     rm -f "$ac_file"
12096   fi
12097   # Let's still pretend it is `configure' which instantiates (i.e., don't
12098   # use $as_me), people would be surprised to read:
12099   #    /* config.h.  Generated by config.status.  */
12100   if test x"$ac_file" = x-; then
12101     configure_input=
12102   else
12103     configure_input="$ac_file.  "
12104   fi
12105   configure_input=$configure_input"Generated from `echo $ac_file_in |
12106                                      sed 's,.*/,,'` by configure."
12107
12108   # First look for the input files in the build tree, otherwise in the
12109   # src tree.
12110   ac_file_inputs=`IFS=:
12111     for f in $ac_file_in; do
12112       case $f in
12113       -) echo $tmp/stdin ;;
12114       [\\/$]*)
12115          # Absolute (can't be DOS-style, as IFS=:)
12116          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12117 echo "$as_me: error: cannot find input file: $f" >&2;}
12118    { (exit 1); exit 1; }; }
12119          echo "$f";;
12120       *) # Relative
12121          if test -f "$f"; then
12122            # Build tree
12123            echo "$f"
12124          elif test -f "$srcdir/$f"; then
12125            # Source tree
12126            echo "$srcdir/$f"
12127          else
12128            # /dev/null tree
12129            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12130 echo "$as_me: error: cannot find input file: $f" >&2;}
12131    { (exit 1); exit 1; }; }
12132          fi;;
12133       esac
12134     done` || { (exit 1); exit 1; }
12135 _ACEOF
12136 cat >>$CONFIG_STATUS <<_ACEOF
12137   sed "$ac_vpsub
12138 $extrasub
12139 _ACEOF
12140 cat >>$CONFIG_STATUS <<\_ACEOF
12141 :t
12142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12143 s,@configure_input@,$configure_input,;t t
12144 s,@srcdir@,$ac_srcdir,;t t
12145 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12146 s,@top_srcdir@,$ac_top_srcdir,;t t
12147 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12148 s,@builddir@,$ac_builddir,;t t
12149 s,@abs_builddir@,$ac_abs_builddir,;t t
12150 s,@top_builddir@,$ac_top_builddir,;t t
12151 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12152 s,@INSTALL@,$ac_INSTALL,;t t
12153 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12154   rm -f $tmp/stdin
12155   if test x"$ac_file" != x-; then
12156     mv $tmp/out $ac_file
12157   else
12158     cat $tmp/out
12159     rm -f $tmp/out
12160   fi
12161
12162 done
12163 _ACEOF
12164 cat >>$CONFIG_STATUS <<\_ACEOF
12165
12166 #
12167 # CONFIG_HEADER section.
12168 #
12169
12170 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12171 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12172 #
12173 # ac_d sets the value in "#define NAME VALUE" lines.
12174 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12175 ac_dB='[         ].*$,\1#\2'
12176 ac_dC=' '
12177 ac_dD=',;t'
12178 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12179 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12180 ac_uB='$,\1#\2define\3'
12181 ac_uC=' '
12182 ac_uD=',;t'
12183
12184 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12185   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12186   case $ac_file in
12187   - | *:- | *:-:* ) # input from stdin
12188         cat >$tmp/stdin
12189         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12190         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12191   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12192         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12193   * )   ac_file_in=$ac_file.in ;;
12194   esac
12195
12196   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12197 echo "$as_me: creating $ac_file" >&6;}
12198
12199   # First look for the input files in the build tree, otherwise in the
12200   # src tree.
12201   ac_file_inputs=`IFS=:
12202     for f in $ac_file_in; do
12203       case $f in
12204       -) echo $tmp/stdin ;;
12205       [\\/$]*)
12206          # Absolute (can't be DOS-style, as IFS=:)
12207          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12208 echo "$as_me: error: cannot find input file: $f" >&2;}
12209    { (exit 1); exit 1; }; }
12210          # Do quote $f, to prevent DOS paths from being IFS'd.
12211          echo "$f";;
12212       *) # Relative
12213          if test -f "$f"; then
12214            # Build tree
12215            echo "$f"
12216          elif test -f "$srcdir/$f"; then
12217            # Source tree
12218            echo "$srcdir/$f"
12219          else
12220            # /dev/null tree
12221            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12222 echo "$as_me: error: cannot find input file: $f" >&2;}
12223    { (exit 1); exit 1; }; }
12224          fi;;
12225       esac
12226     done` || { (exit 1); exit 1; }
12227   # Remove the trailing spaces.
12228   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12229
12230 _ACEOF
12231
12232 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12233 # `conftest.undefs', that substitutes the proper values into
12234 # config.h.in to produce config.h.  The first handles `#define'
12235 # templates, and the second `#undef' templates.
12236 # And first: Protect against being on the right side of a sed subst in
12237 # config.status.  Protect against being in an unquoted here document
12238 # in config.status.
12239 rm -f conftest.defines conftest.undefs
12240 # Using a here document instead of a string reduces the quoting nightmare.
12241 # Putting comments in sed scripts is not portable.
12242 #
12243 # `end' is used to avoid that the second main sed command (meant for
12244 # 0-ary CPP macros) applies to n-ary macro definitions.
12245 # See the Autoconf documentation for `clear'.
12246 cat >confdef2sed.sed <<\_ACEOF
12247 s/[\\&,]/\\&/g
12248 s,[\\$`],\\&,g
12249 t clear
12250 : clear
12251 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12252 t end
12253 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12254 : end
12255 _ACEOF
12256 # If some macros were called several times there might be several times
12257 # the same #defines, which is useless.  Nevertheless, we may not want to
12258 # sort them, since we want the *last* AC-DEFINE to be honored.
12259 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12260 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12261 rm -f confdef2sed.sed
12262
12263 # This sed command replaces #undef with comments.  This is necessary, for
12264 # example, in the case of _POSIX_SOURCE, which is predefined and required
12265 # on some systems where configure will not decide to define it.
12266 cat >>conftest.undefs <<\_ACEOF
12267 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12268 _ACEOF
12269
12270 # Break up conftest.defines because some shells have a limit on the size
12271 # of here documents, and old seds have small limits too (100 cmds).
12272 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12273 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12274 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12275 echo '  :' >>$CONFIG_STATUS
12276 rm -f conftest.tail
12277 while grep . conftest.defines >/dev/null
12278 do
12279   # Write a limited-size here document to $tmp/defines.sed.
12280   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12281   # Speed up: don't consider the non `#define' lines.
12282   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12283   # Work around the forget-to-reset-the-flag bug.
12284   echo 't clr' >>$CONFIG_STATUS
12285   echo ': clr' >>$CONFIG_STATUS
12286   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12287   echo 'CEOF
12288   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12289   rm -f $tmp/in
12290   mv $tmp/out $tmp/in
12291 ' >>$CONFIG_STATUS
12292   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12293   rm -f conftest.defines
12294   mv conftest.tail conftest.defines
12295 done
12296 rm -f conftest.defines
12297 echo '  fi # grep' >>$CONFIG_STATUS
12298 echo >>$CONFIG_STATUS
12299
12300 # Break up conftest.undefs because some shells have a limit on the size
12301 # of here documents, and old seds have small limits too (100 cmds).
12302 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12303 rm -f conftest.tail
12304 while grep . conftest.undefs >/dev/null
12305 do
12306   # Write a limited-size here document to $tmp/undefs.sed.
12307   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12308   # Speed up: don't consider the non `#undef'
12309   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12310   # Work around the forget-to-reset-the-flag bug.
12311   echo 't clr' >>$CONFIG_STATUS
12312   echo ': clr' >>$CONFIG_STATUS
12313   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12314   echo 'CEOF
12315   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12316   rm -f $tmp/in
12317   mv $tmp/out $tmp/in
12318 ' >>$CONFIG_STATUS
12319   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12320   rm -f conftest.undefs
12321   mv conftest.tail conftest.undefs
12322 done
12323 rm -f conftest.undefs
12324
12325 cat >>$CONFIG_STATUS <<\_ACEOF
12326   # Let's still pretend it is `configure' which instantiates (i.e., don't
12327   # use $as_me), people would be surprised to read:
12328   #    /* config.h.  Generated by config.status.  */
12329   if test x"$ac_file" = x-; then
12330     echo "/* Generated by configure.  */" >$tmp/config.h
12331   else
12332     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12333   fi
12334   cat $tmp/in >>$tmp/config.h
12335   rm -f $tmp/in
12336   if test x"$ac_file" != x-; then
12337     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12338       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12339 echo "$as_me: $ac_file is unchanged" >&6;}
12340     else
12341       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12343          X"$ac_file" : 'X\(//\)[^/]' \| \
12344          X"$ac_file" : 'X\(//\)$' \| \
12345          X"$ac_file" : 'X\(/\)' \| \
12346          .     : '\(.\)' 2>/dev/null ||
12347 echo X"$ac_file" |
12348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12349           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12350           /^X\(\/\/\)$/{ s//\1/; q; }
12351           /^X\(\/\).*/{ s//\1/; q; }
12352           s/.*/./; q'`
12353       { if $as_mkdir_p; then
12354     mkdir -p "$ac_dir"
12355   else
12356     as_dir="$ac_dir"
12357     as_dirs=
12358     while test ! -d "$as_dir"; do
12359       as_dirs="$as_dir $as_dirs"
12360       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12362          X"$as_dir" : 'X\(//\)[^/]' \| \
12363          X"$as_dir" : 'X\(//\)$' \| \
12364          X"$as_dir" : 'X\(/\)' \| \
12365          .     : '\(.\)' 2>/dev/null ||
12366 echo X"$as_dir" |
12367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12368           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12369           /^X\(\/\/\)$/{ s//\1/; q; }
12370           /^X\(\/\).*/{ s//\1/; q; }
12371           s/.*/./; q'`
12372     done
12373     test ! -n "$as_dirs" || mkdir $as_dirs
12374   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12375 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12376    { (exit 1); exit 1; }; }; }
12377
12378       rm -f $ac_file
12379       mv $tmp/config.h $ac_file
12380     fi
12381   else
12382     cat $tmp/config.h
12383     rm -f $tmp/config.h
12384   fi
12385 # Compute $ac_file's index in $config_headers.
12386 _am_stamp_count=1
12387 for _am_header in $config_headers :; do
12388   case $_am_header in
12389     $ac_file | $ac_file:* )
12390       break ;;
12391     * )
12392       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12393   esac
12394 done
12395 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12396 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12397          X$ac_file : 'X\(//\)[^/]' \| \
12398          X$ac_file : 'X\(//\)$' \| \
12399          X$ac_file : 'X\(/\)' \| \
12400          .     : '\(.\)' 2>/dev/null ||
12401 echo X$ac_file |
12402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12403           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12404           /^X\(\/\/\)$/{ s//\1/; q; }
12405           /^X\(\/\).*/{ s//\1/; q; }
12406           s/.*/./; q'`/stamp-h$_am_stamp_count
12407 done
12408 _ACEOF
12409 cat >>$CONFIG_STATUS <<\_ACEOF
12410
12411 #
12412 # CONFIG_COMMANDS section.
12413 #
12414 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12415   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12416   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12417   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12418 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12419          X"$ac_dest" : 'X\(//\)[^/]' \| \
12420          X"$ac_dest" : 'X\(//\)$' \| \
12421          X"$ac_dest" : 'X\(/\)' \| \
12422          .     : '\(.\)' 2>/dev/null ||
12423 echo X"$ac_dest" |
12424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12425           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12426           /^X\(\/\/\)$/{ s//\1/; q; }
12427           /^X\(\/\).*/{ s//\1/; q; }
12428           s/.*/./; q'`
12429   { if $as_mkdir_p; then
12430     mkdir -p "$ac_dir"
12431   else
12432     as_dir="$ac_dir"
12433     as_dirs=
12434     while test ! -d "$as_dir"; do
12435       as_dirs="$as_dir $as_dirs"
12436       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12438          X"$as_dir" : 'X\(//\)[^/]' \| \
12439          X"$as_dir" : 'X\(//\)$' \| \
12440          X"$as_dir" : 'X\(/\)' \| \
12441          .     : '\(.\)' 2>/dev/null ||
12442 echo X"$as_dir" |
12443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12444           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12445           /^X\(\/\/\)$/{ s//\1/; q; }
12446           /^X\(\/\).*/{ s//\1/; q; }
12447           s/.*/./; q'`
12448     done
12449     test ! -n "$as_dirs" || mkdir $as_dirs
12450   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12451 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12452    { (exit 1); exit 1; }; }; }
12453
12454   ac_builddir=.
12455
12456 if test "$ac_dir" != .; then
12457   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12458   # A "../" for each directory in $ac_dir_suffix.
12459   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12460 else
12461   ac_dir_suffix= ac_top_builddir=
12462 fi
12463
12464 case $srcdir in
12465   .)  # No --srcdir option.  We are building in place.
12466     ac_srcdir=.
12467     if test -z "$ac_top_builddir"; then
12468        ac_top_srcdir=.
12469     else
12470        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12471     fi ;;
12472   [\\/]* | ?:[\\/]* )  # Absolute path.
12473     ac_srcdir=$srcdir$ac_dir_suffix;
12474     ac_top_srcdir=$srcdir ;;
12475   *) # Relative path.
12476     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12477     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12478 esac
12479
12480 # Do not use `cd foo && pwd` to compute absolute paths, because
12481 # the directories may not exist.
12482 case `pwd` in
12483 .) ac_abs_builddir="$ac_dir";;
12484 *)
12485   case "$ac_dir" in
12486   .) ac_abs_builddir=`pwd`;;
12487   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12488   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12489   esac;;
12490 esac
12491 case $ac_abs_builddir in
12492 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12493 *)
12494   case ${ac_top_builddir}. in
12495   .) ac_abs_top_builddir=$ac_abs_builddir;;
12496   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12497   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12498   esac;;
12499 esac
12500 case $ac_abs_builddir in
12501 .) ac_abs_srcdir=$ac_srcdir;;
12502 *)
12503   case $ac_srcdir in
12504   .) ac_abs_srcdir=$ac_abs_builddir;;
12505   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12506   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12507   esac;;
12508 esac
12509 case $ac_abs_builddir in
12510 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12511 *)
12512   case $ac_top_srcdir in
12513   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12514   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12515   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12516   esac;;
12517 esac
12518
12519
12520   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12521 echo "$as_me: executing $ac_dest commands" >&6;}
12522   case $ac_dest in
12523     default-1 )
12524 # Only add multilib support code if we just rebuilt the top-level
12525 # Makefile.
12526 case " $CONFIG_FILES " in
12527  *" Makefile "*)
12528    ac_file=Makefile . ${multi_basedir}/config-ml.in
12529    ;;
12530 esac ;;
12531     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12532   # Strip MF so we end up with the name of the file.
12533   mf=`echo "$mf" | sed -e 's/:.*$//'`
12534   # Check whether this is an Automake generated Makefile or not.
12535   # We used to match only the files named `Makefile.in', but
12536   # some people rename them; so instead we look at the file content.
12537   # Grep'ing the first line is not enough: some people post-process
12538   # each Makefile.in and add a new line on top of each file to say so.
12539   # So let's grep whole file.
12540   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12541     dirpart=`(dirname "$mf") 2>/dev/null ||
12542 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12543          X"$mf" : 'X\(//\)[^/]' \| \
12544          X"$mf" : 'X\(//\)$' \| \
12545          X"$mf" : 'X\(/\)' \| \
12546          .     : '\(.\)' 2>/dev/null ||
12547 echo X"$mf" |
12548     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12549           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12550           /^X\(\/\/\)$/{ s//\1/; q; }
12551           /^X\(\/\).*/{ s//\1/; q; }
12552           s/.*/./; q'`
12553   else
12554     continue
12555   fi
12556   # Extract the definition of DEPDIR, am__include, and am__quote
12557   # from the Makefile without running `make'.
12558   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12559   test -z "$DEPDIR" && continue
12560   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12561   test -z "am__include" && continue
12562   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12563   # When using ansi2knr, U may be empty or an underscore; expand it
12564   U=`sed -n 's/^U = //p' < "$mf"`
12565   # Find all dependency output files, they are included files with
12566   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12567   # simplest approach to changing $(DEPDIR) to its actual value in the
12568   # expansion.
12569   for file in `sed -n "
12570     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12571        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12572     # Make sure the directory exists.
12573     test -f "$dirpart/$file" && continue
12574     fdir=`(dirname "$file") 2>/dev/null ||
12575 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12576          X"$file" : 'X\(//\)[^/]' \| \
12577          X"$file" : 'X\(//\)$' \| \
12578          X"$file" : 'X\(/\)' \| \
12579          .     : '\(.\)' 2>/dev/null ||
12580 echo X"$file" |
12581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12582           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12583           /^X\(\/\/\)$/{ s//\1/; q; }
12584           /^X\(\/\).*/{ s//\1/; q; }
12585           s/.*/./; q'`
12586     { if $as_mkdir_p; then
12587     mkdir -p $dirpart/$fdir
12588   else
12589     as_dir=$dirpart/$fdir
12590     as_dirs=
12591     while test ! -d "$as_dir"; do
12592       as_dirs="$as_dir $as_dirs"
12593       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12595          X"$as_dir" : 'X\(//\)[^/]' \| \
12596          X"$as_dir" : 'X\(//\)$' \| \
12597          X"$as_dir" : 'X\(/\)' \| \
12598          .     : '\(.\)' 2>/dev/null ||
12599 echo X"$as_dir" |
12600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12601           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12602           /^X\(\/\/\)$/{ s//\1/; q; }
12603           /^X\(\/\).*/{ s//\1/; q; }
12604           s/.*/./; q'`
12605     done
12606     test ! -n "$as_dirs" || mkdir $as_dirs
12607   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12608 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12609    { (exit 1); exit 1; }; }; }
12610
12611     # echo "creating $dirpart/$file"
12612     echo '# dummy' > "$dirpart/$file"
12613   done
12614 done
12615  ;;
12616     gstdint.h )
12617 if test "$GCC" = yes; then
12618   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12619 else
12620   echo "/* generated for $CC */" > tmp-stdint.h
12621 fi
12622
12623 sed 's/^ *//' >> tmp-stdint.h <<EOF
12624
12625   #ifndef GCC_GENERATED_STDINT_H
12626   #define GCC_GENERATED_STDINT_H 1
12627
12628   #include <sys/types.h>
12629 EOF
12630
12631 if test "$acx_cv_header_stdint" != stdint.h; then
12632   echo "#include <stddef.h>" >> tmp-stdint.h
12633 fi
12634 if test "$acx_cv_header_stdint" != stddef.h; then
12635   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12636 fi
12637
12638 sed 's/^ *//' >> tmp-stdint.h <<EOF
12639   /* glibc uses these symbols as guards to prevent redefinitions.  */
12640   #ifdef __int8_t_defined
12641   #define _INT8_T
12642   #define _INT16_T
12643   #define _INT32_T
12644   #endif
12645   #ifdef __uint32_t_defined
12646   #define _UINT32_T
12647   #endif
12648
12649 EOF
12650
12651 # ----------------- done header, emit basic int types -------------
12652 if test "$acx_cv_header_stdint" = stddef.h; then
12653   sed 's/^ *//' >> tmp-stdint.h <<EOF
12654
12655     #ifndef _UINT8_T
12656     #define _UINT8_T
12657     typedef unsigned $acx_cv_type_int8_t uint8_t;
12658     #endif
12659
12660     #ifndef _UINT16_T
12661     #define _UINT16_T
12662     typedef unsigned $acx_cv_type_int16_t uint16_t;
12663     #endif
12664
12665     #ifndef _UINT32_T
12666     #define _UINT32_T
12667     typedef unsigned $acx_cv_type_int32_t uint32_t;
12668     #endif
12669
12670     #ifndef _INT8_T
12671     #define _INT8_T
12672     typedef $acx_cv_type_int8_t int8_t;
12673     #endif
12674
12675     #ifndef _INT16_T
12676     #define _INT16_T
12677     typedef $acx_cv_type_int16_t int16_t;
12678     #endif
12679
12680     #ifndef _INT32_T
12681     #define _INT32_T
12682     typedef $acx_cv_type_int32_t int32_t;
12683     #endif
12684 EOF
12685 elif test "$ac_cv_type_u_int32_t" = yes; then
12686   sed 's/^ *//' >> tmp-stdint.h <<EOF
12687
12688     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12689     #ifndef _INT8_T
12690     #define _INT8_T
12691     #endif
12692     #ifndef _INT16_T
12693     #define _INT16_T
12694     #endif
12695     #ifndef _INT32_T
12696     #define _INT32_T
12697     #endif
12698
12699     #ifndef _UINT8_T
12700     #define _UINT8_T
12701     typedef u_int8_t uint8_t;
12702     #endif
12703
12704     #ifndef _UINT16_T
12705     #define _UINT16_T
12706     typedef u_int16_t uint16_t;
12707     #endif
12708
12709     #ifndef _UINT32_T
12710     #define _UINT32_T
12711     typedef u_int32_t uint32_t;
12712     #endif
12713 EOF
12714 else
12715   sed 's/^ *//' >> tmp-stdint.h <<EOF
12716
12717     /* Some systems have guard macros to prevent redefinitions, define them.  */
12718     #ifndef _INT8_T
12719     #define _INT8_T
12720     #endif
12721     #ifndef _INT16_T
12722     #define _INT16_T
12723     #endif
12724     #ifndef _INT32_T
12725     #define _INT32_T
12726     #endif
12727     #ifndef _UINT8_T
12728     #define _UINT8_T
12729     #endif
12730     #ifndef _UINT16_T
12731     #define _UINT16_T
12732     #endif
12733     #ifndef _UINT32_T
12734     #define _UINT32_T
12735     #endif
12736 EOF
12737 fi
12738
12739 # ------------- done basic int types, emit int64_t types ------------
12740 if test "$ac_cv_type_uint64_t" = yes; then
12741   sed 's/^ *//' >> tmp-stdint.h <<EOF
12742
12743     /* system headers have good uint64_t and int64_t */
12744     #ifndef _INT64_T
12745     #define _INT64_T
12746     #endif
12747     #ifndef _UINT64_T
12748     #define _UINT64_T
12749     #endif
12750 EOF
12751 elif test "$ac_cv_type_u_int64_t" = yes; then
12752   sed 's/^ *//' >> tmp-stdint.h <<EOF
12753
12754     /* system headers have an u_int64_t (and int64_t) */
12755     #ifndef _INT64_T
12756     #define _INT64_T
12757     #endif
12758     #ifndef _UINT64_T
12759     #define _UINT64_T
12760     typedef u_int64_t uint64_t;
12761     #endif
12762 EOF
12763 elif test -n "$acx_cv_type_int64_t"; then
12764   sed 's/^ *//' >> tmp-stdint.h <<EOF
12765
12766     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12767     #ifndef _INT64_T
12768     #define _INT64_T
12769     typedef $acx_cv_type_int64_t int64_t;
12770     #endif
12771     #ifndef _UINT64_T
12772     #define _UINT64_T
12773     typedef unsigned $acx_cv_type_int64_t uint64_t;
12774     #endif
12775 EOF
12776 else
12777   sed 's/^ *//' >> tmp-stdint.h <<EOF
12778
12779     /* some common heuristics for int64_t, using compiler-specific tests */
12780     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12781     #ifndef _INT64_T
12782     #define _INT64_T
12783     typedef long long int64_t;
12784     #endif
12785     #ifndef _UINT64_T
12786     #define _UINT64_T
12787     typedef unsigned long long uint64_t;
12788     #endif
12789
12790     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12791     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12792        does not implement __extension__.  But that compiler doesn't define
12793        __GNUC_MINOR__.  */
12794     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12795     # define __extension__
12796     # endif
12797
12798     # ifndef _INT64_T
12799     # define _INT64_T
12800     __extension__ typedef long long int64_t;
12801     # endif
12802     # ifndef _UINT64_T
12803     # define _UINT64_T
12804     __extension__ typedef unsigned long long uint64_t;
12805     # endif
12806
12807     #elif !defined __STRICT_ANSI__
12808     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12809
12810     #  ifndef _INT64_T
12811     #  define _INT64_T
12812     typedef __int64 int64_t;
12813     #  endif
12814     #  ifndef _UINT64_T
12815     #  define _UINT64_T
12816     typedef unsigned __int64 uint64_t;
12817     #  endif
12818     # endif /* compiler */
12819
12820     #endif /* ANSI version */
12821 EOF
12822 fi
12823
12824 # ------------- done int64_t types, emit intptr types ------------
12825 if test "$ac_cv_type_uintptr_t" != yes; then
12826   sed 's/^ *//' >> tmp-stdint.h <<EOF
12827
12828     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12829     typedef u$acx_cv_type_intptr_t uintptr_t;
12830     typedef $acx_cv_type_intptr_t  intptr_t;
12831 EOF
12832 fi
12833
12834 # ------------- done intptr types, emit int_least types ------------
12835 if test "$ac_cv_type_int_least32_t" != yes; then
12836   sed 's/^ *//' >> tmp-stdint.h <<EOF
12837
12838     /* Define int_least types */
12839     typedef int8_t     int_least8_t;
12840     typedef int16_t    int_least16_t;
12841     typedef int32_t    int_least32_t;
12842     #ifdef _INT64_T
12843     typedef int64_t    int_least64_t;
12844     #endif
12845
12846     typedef uint8_t    uint_least8_t;
12847     typedef uint16_t   uint_least16_t;
12848     typedef uint32_t   uint_least32_t;
12849     #ifdef _UINT64_T
12850     typedef uint64_t   uint_least64_t;
12851     #endif
12852 EOF
12853 fi
12854
12855 # ------------- done intptr types, emit int_fast types ------------
12856 if test "$ac_cv_type_int_fast32_t" != yes; then
12857       sed 's/^ *//' >> tmp-stdint.h <<EOF
12858
12859     /* Define int_fast types.  short is often slow */
12860     typedef int8_t       int_fast8_t;
12861     typedef int          int_fast16_t;
12862     typedef int32_t      int_fast32_t;
12863     #ifdef _INT64_T
12864     typedef int64_t      int_fast64_t;
12865     #endif
12866
12867     typedef uint8_t      uint_fast8_t;
12868     typedef unsigned int uint_fast16_t;
12869     typedef uint32_t     uint_fast32_t;
12870     #ifdef _UINT64_T
12871     typedef uint64_t     uint_fast64_t;
12872     #endif
12873 EOF
12874 fi
12875
12876 if test "$ac_cv_type_uintmax_t" != yes; then
12877   sed 's/^ *//' >> tmp-stdint.h <<EOF
12878
12879     /* Define intmax based on what we found */
12880     #ifdef _INT64_T
12881     typedef int64_t       intmax_t;
12882     #else
12883     typedef long          intmax_t;
12884     #endif
12885     #ifdef _UINT64_T
12886     typedef uint64_t      uintmax_t;
12887     #else
12888     typedef unsigned long uintmax_t;
12889     #endif
12890 EOF
12891 fi
12892
12893 sed 's/^ *//' >> tmp-stdint.h <<EOF
12894
12895   #endif /* GCC_GENERATED_STDINT_H */
12896 EOF
12897
12898 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12899   rm -f tmp-stdint.h
12900 else
12901   mv -f tmp-stdint.h gstdint.h
12902 fi
12903
12904  ;;
12905   esac
12906 done
12907 _ACEOF
12908
12909 cat >>$CONFIG_STATUS <<\_ACEOF
12910
12911 { (exit 0); exit 0; }
12912 _ACEOF
12913 chmod +x $CONFIG_STATUS
12914 ac_clean_files=$ac_clean_files_save
12915
12916
12917 # configure is writing to config.log, and then calls config.status.
12918 # config.status does its own redirection, appending to config.log.
12919 # Unfortunately, on DOS this fails, as config.log is still kept open
12920 # by configure, so config.status won't be able to write to it; its
12921 # output is simply discarded.  So we exec the FD to /dev/null,
12922 # effectively closing config.log, so it can be properly (re)opened and
12923 # appended to by config.status.  When coming back to configure, we
12924 # need to make the FD available again.
12925 if test "$no_create" != yes; then
12926   ac_cs_success=:
12927   ac_config_status_args=
12928   test "$silent" = yes &&
12929     ac_config_status_args="$ac_config_status_args --quiet"
12930   exec 5>/dev/null
12931   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12932   exec 5>>config.log
12933   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12934   # would make configure fail if this is the last instruction.
12935   $ac_cs_success || { (exit 1); exit 1; }
12936 fi
12937