PR c/29380
[official-gcc.git] / libgomp / configure
blob075df3ef6eba6c2a54d02ae53acee4abcd8a80cb
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.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
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`
249 exec 6>&1
252 # Initializations.
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}
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}
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=''
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"
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 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 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=''
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
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'
352 ac_prev=
353 for ac_option
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
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
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 ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
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 ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
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 ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
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 ;;
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 ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
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 ;;
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 ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
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 ;;
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 ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
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 ;;
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 ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
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'" ;;
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" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
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 ;;
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 ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
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 ;;
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}
648 esac
649 done
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; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
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
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
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
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
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
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
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=..
724 else
725 ac_srcdir_defaulted=no
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; }; }
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
774 # Report the --help message.
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.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
787 Defaults for the options are specified in brackets.
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 \`..']
800 _ACEOF
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]
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'.
814 For better control, use the options below.
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
831 cat <<\_ACEOF
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
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
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
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-multilib build many library versions (default)
860 --disable-dependency-tracking speeds up one-time build
861 --enable-dependency-tracking do not reject slow dependency extractors
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
866 --enable-maintainer-mode enable make rules and dependencies not useful
867 (and sometimes confusing) to the casual installer
868 --enable-tls Use thread-local storage [default=yes]
869 --enable-symvers=STYLE enables symbol versioning of the shared library
870 [default=yes]
872 Optional Packages:
873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
875 --with-gnu-ld assume the C compiler uses GNU ld default=no
876 --with-pic try to use only PIC/non-PIC objects default=use both
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 FC Fortran compiler command
886 FCFLAGS Fortran compiler flags
887 CPP C preprocessor
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
892 _ACEOF
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
902 if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 else
907 ac_dir_suffix= ac_top_builddir=
910 case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 esac
926 # Do not use `cd foo && pwd` to compute absolute paths, because
927 # the directories may not exist.
928 case `pwd` in
929 .) ac_abs_builddir="$ac_dir";;
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936 esac
937 case $ac_abs_builddir in
938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945 esac
946 case $ac_abs_builddir in
947 .) ac_abs_srcdir=$ac_srcdir;;
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963 esac
965 cd $ac_dir
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
968 echo
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
971 echo
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
975 echo
976 $ac_configure --help
977 else
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 cd $ac_popdir
981 done
984 test -n "$ac_init_help" && exit 0
985 if $ac_init_version; then
986 cat <<\_ACEOF
987 GNU OpenMP Runtime Library configure 1.0
988 generated by GNU Autoconf 2.59
990 Copyright (C) 2003 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994 exit 0
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1002 generated by GNU Autoconf 2.59. Invocation command line was
1004 $ $0 $@
1006 _ACEOF
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030 _ASUNAME
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1035 IFS=$as_save_IFS
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1038 done
1040 } >&5
1042 cat >&5 <<_ACEOF
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1049 _ACEOF
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1064 for ac_arg
1066 case $ac_arg in
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 continue ;;
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073 esac
1074 case $ac_pass in
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
1079 ac_must_keep_next=false # Got value, back to normal.
1080 else
1081 case $ac_arg in
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088 esac
1090 -* ) ac_must_keep_next=true ;;
1091 esac
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1095 ac_sep=" "
1097 esac
1098 done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log. We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
1111 echo
1113 cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118 echo
1119 # The following way of writing the cache mishandles newlines in values,
1121 (set) 2>&1 |
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123 *ac_space=\ *)
1124 sed -n \
1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 sed -n \
1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 esac;
1134 echo
1136 cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141 echo
1142 for ac_var in $ac_subst_vars
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1149 if test -n "$ac_subst_files"; then
1150 cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155 echo
1156 for ac_var in $ac_subst_files
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1160 done | sort
1161 echo
1164 if test -s confdefs.h; then
1165 cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170 echo
1171 sed "/^$/d" confdefs.h | sort
1172 echo
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1177 } >&5
1178 rm -f core *.core &&
1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180 exit $exit_status
1182 for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1192 # Predefined preprocessor variables.
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 else
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232 sed 's/^/| /' "$ac_site_file" >&5
1233 . "$ac_site_file"
1235 done
1237 if test -r "$cache_file"; then
1238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243 case $cache_file in
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1246 esac
1248 else
1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251 >$cache_file
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1264 set,)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,set)
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,);;
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1278 echo "$as_me: former value: $ac_old_val" >&2;}
1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1280 echo "$as_me: current value: $ac_new_val" >&2;}
1281 ac_cache_corrupted=:
1282 fi;;
1283 esac
1284 # Pass precious variables to config.status.
1285 if test "$ac_new_set" = set; then
1286 case $ac_new_val in
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1290 esac
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294 esac
1296 done
1297 if $ac_cache_corrupted; then
1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1337 ac_config_headers="$ac_config_headers config.h"
1340 # -------
1341 # Options
1342 # -------
1344 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1345 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1346 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1347 if test "${enable_version_specific_runtime_libs+set}" = set; then
1348 enableval="$enable_version_specific_runtime_libs"
1350 case "$enableval" in
1351 yes|no) ;;
1352 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1353 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1354 { (exit 1); exit 1; }; } ;;
1355 esac
1357 else
1358 enable_version_specific_runtime_libs=no
1361 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1362 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1364 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1365 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1366 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1367 if test "${enable_linux_futex+set}" = set; then
1368 enableval="$enable_linux_futex"
1370 case "$enableval" in
1371 yes|no|default) ;;
1372 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5
1373 echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;}
1374 { (exit 1); exit 1; }; } ;;
1375 esac
1377 else
1378 enable_linux_futex=default
1381 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1382 echo "${ECHO_T}$enable_linux_futex" >&6
1384 # -------
1385 # -------
1387 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1389 # You will slowly go insane if you do not grok the following fact: when
1390 # building this library, the top-level /target/ becomes the library's /host/.
1392 # configure then causes --target to default to --host, exactly like any
1393 # other package using autoconf. Therefore, 'target' and 'host' will
1394 # always be the same. This makes sense both for native and cross compilers
1395 # just think about it for a little while. :-)
1397 # Also, if this library is being configured as part of a cross compiler, the
1398 # top-level configure script will pass the "real" host as $with_cross_host.
1400 # Do not delete or change the following two lines. For why, see
1401 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1402 ac_aux_dir=
1403 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1404 if test -f $ac_dir/install-sh; then
1405 ac_aux_dir=$ac_dir
1406 ac_install_sh="$ac_aux_dir/install-sh -c"
1407 break
1408 elif test -f $ac_dir/install.sh; then
1409 ac_aux_dir=$ac_dir
1410 ac_install_sh="$ac_aux_dir/install.sh -c"
1411 break
1412 elif test -f $ac_dir/shtool; then
1413 ac_aux_dir=$ac_dir
1414 ac_install_sh="$ac_aux_dir/shtool install -c"
1415 break
1417 done
1418 if test -z "$ac_aux_dir"; then
1419 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1420 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1421 { (exit 1); exit 1; }; }
1423 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1424 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1425 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427 # Make sure we can run config.sub.
1428 $ac_config_sub sun4 >/dev/null 2>&1 ||
1429 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1430 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1431 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: checking build system type" >&5
1434 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1435 if test "${ac_cv_build+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 ac_cv_build_alias=$build_alias
1439 test -z "$ac_cv_build_alias" &&
1440 ac_cv_build_alias=`$ac_config_guess`
1441 test -z "$ac_cv_build_alias" &&
1442 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1444 { (exit 1); exit 1; }; }
1445 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1448 { (exit 1); exit 1; }; }
1451 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1452 echo "${ECHO_T}$ac_cv_build" >&6
1453 build=$ac_cv_build
1454 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459 echo "$as_me:$LINENO: checking host system type" >&5
1460 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1461 if test "${ac_cv_host+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464 ac_cv_host_alias=$host_alias
1465 test -z "$ac_cv_host_alias" &&
1466 ac_cv_host_alias=$ac_cv_build_alias
1467 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1470 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1474 echo "${ECHO_T}$ac_cv_host" >&6
1475 host=$ac_cv_host
1476 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481 echo "$as_me:$LINENO: checking target system type" >&5
1482 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1483 if test "${ac_cv_target+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486 ac_cv_target_alias=$target_alias
1487 test "x$ac_cv_target_alias" = "x" &&
1488 ac_cv_target_alias=$ac_cv_host_alias
1489 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1492 { (exit 1); exit 1; }; }
1495 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1496 echo "${ECHO_T}$ac_cv_target" >&6
1497 target=$ac_cv_target
1498 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1503 # The aliases save the names the user supplied, while $host etc.
1504 # will get canonicalized.
1505 test -n "$target_alias" &&
1506 test "$program_prefix$program_suffix$program_transform_name" = \
1507 NONENONEs,x,x, &&
1508 program_prefix=${target_alias}-
1509 target_alias=${target_alias-$host_alias}
1511 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1512 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1513 # 1.9.0: minimum required version
1514 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1515 # of other PACKAGE_* variables will, however, and there's nothing
1516 # we can do about that; they come from AC_INIT).
1517 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1518 # file in the top srcdir, etc, etc), so stop complaining.
1519 # no-dependencies: turns off auto dependency generation (just for now)
1520 # -Wall: turns on all automake warnings...
1521 # -Wno-portability: ...except this one, since GNU make is required.
1522 # -Wno-override: ... and this one, since we do want this in testsuite.
1523 am__api_version="1.9"
1524 # Find a good install program. We prefer a C program (faster),
1525 # so one script is as good as another. But avoid the broken or
1526 # incompatible versions:
1527 # SysV /etc/install, /usr/sbin/install
1528 # SunOS /usr/etc/install
1529 # IRIX /sbin/install
1530 # AIX /bin/install
1531 # AmigaOS /C/install, which installs bootblocks on floppy discs
1532 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1533 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1534 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1535 # OS/2's system install, which has a completely different semantic
1536 # ./install, which can be erroneously created by make from ./install.sh.
1537 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1538 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1539 if test -z "$INSTALL"; then
1540 if test "${ac_cv_path_install+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 # Account for people who put trailing slashes in PATH elements.
1549 case $as_dir/ in
1550 ./ | .// | /cC/* | \
1551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1552 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1553 /usr/ucb/* ) ;;
1555 # OSF1 and SCO ODT 3.0 have their own names for install.
1556 # Don't use installbsd from OSF since it installs stuff as root
1557 # by default.
1558 for ac_prog in ginstall scoinst install; do
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1561 if test $ac_prog = install &&
1562 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1563 # AIX install. It has an incompatible calling convention.
1565 elif test $ac_prog = install &&
1566 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1567 # program-specific install script used by HP pwplus--don't use.
1569 else
1570 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1571 break 3
1574 done
1575 done
1577 esac
1578 done
1582 if test "${ac_cv_path_install+set}" = set; then
1583 INSTALL=$ac_cv_path_install
1584 else
1585 # As a last resort, use the slow shell script. We don't cache a
1586 # path for INSTALL within a source directory, because that will
1587 # break other packages using the cache if that directory is
1588 # removed, or if the path is relative.
1589 INSTALL=$ac_install_sh
1592 echo "$as_me:$LINENO: result: $INSTALL" >&5
1593 echo "${ECHO_T}$INSTALL" >&6
1595 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1596 # It thinks the first close brace ends the variable substitution.
1597 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1599 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1601 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1603 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1604 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1605 # Just in case
1606 sleep 1
1607 echo timestamp > conftest.file
1608 # Do `set' in a subshell so we don't clobber the current shell's
1609 # arguments. Must try -L first in case configure is actually a
1610 # symlink; some systems play weird games with the mod time of symlinks
1611 # (eg FreeBSD returns the mod time of the symlink's containing
1612 # directory).
1613 if (
1614 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1615 if test "$*" = "X"; then
1616 # -L didn't work.
1617 set X `ls -t $srcdir/configure conftest.file`
1619 rm -f conftest.file
1620 if test "$*" != "X $srcdir/configure conftest.file" \
1621 && test "$*" != "X conftest.file $srcdir/configure"; then
1623 # If neither matched, then we have a broken ls. This can happen
1624 # if, for instance, CONFIG_SHELL is bash and it inherits a
1625 # broken ls alias from the environment. This has actually
1626 # happened. Such a system could not be considered "sane".
1627 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1628 alias in your environment" >&5
1629 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1630 alias in your environment" >&2;}
1631 { (exit 1); exit 1; }; }
1634 test "$2" = conftest.file
1636 then
1637 # Ok.
1639 else
1640 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1641 Check your system clock" >&5
1642 echo "$as_me: error: newly created file is older than distributed files!
1643 Check your system clock" >&2;}
1644 { (exit 1); exit 1; }; }
1646 echo "$as_me:$LINENO: result: yes" >&5
1647 echo "${ECHO_T}yes" >&6
1648 test "$program_prefix" != NONE &&
1649 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1650 # Use a double $ so make ignores it.
1651 test "$program_suffix" != NONE &&
1652 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1653 # Double any \ or $. echo might interpret backslashes.
1654 # By default was `s,x,x', remove it if useless.
1655 cat <<\_ACEOF >conftest.sed
1656 s/[\\$]/&&/g;s/;s,x,x,$//
1657 _ACEOF
1658 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1659 rm conftest.sed
1661 # expand $ac_aux_dir to an absolute path
1662 am_aux_dir=`cd $ac_aux_dir && pwd`
1664 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1665 # Use eval to expand $SHELL
1666 if eval "$MISSING --run true"; then
1667 am_missing_run="$MISSING --run "
1668 else
1669 am_missing_run=
1670 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1671 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1674 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1675 # We used to keeping the `.' as first argument, in order to
1676 # allow $(mkdir_p) to be used without argument. As in
1677 # $(mkdir_p) $(somedir)
1678 # where $(somedir) is conditionally defined. However this is wrong
1679 # for two reasons:
1680 # 1. if the package is installed by a user who cannot write `.'
1681 # make install will fail,
1682 # 2. the above comment should most certainly read
1683 # $(mkdir_p) $(DESTDIR)$(somedir)
1684 # so it does not work when $(somedir) is undefined and
1685 # $(DESTDIR) is not.
1686 # To support the latter case, we have to write
1687 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1688 # so the `.' trick is pointless.
1689 mkdir_p='mkdir -p --'
1690 else
1691 # On NextStep and OpenStep, the `mkdir' command does not
1692 # recognize any option. It will interpret all options as
1693 # directories to create, and then abort because `.' already
1694 # exists.
1695 for d in ./-p ./--version;
1697 test -d $d && rmdir $d
1698 done
1699 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1700 if test -f "$ac_aux_dir/mkinstalldirs"; then
1701 mkdir_p='$(mkinstalldirs)'
1702 else
1703 mkdir_p='$(install_sh) -d'
1707 for ac_prog in gawk mawk nawk awk
1709 # Extract the first word of "$ac_prog", so it can be a program name with args.
1710 set dummy $ac_prog; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_AWK+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716 if test -n "$AWK"; then
1717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1718 else
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_AWK="$ac_prog"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 break 2
1730 done
1731 done
1735 AWK=$ac_cv_prog_AWK
1736 if test -n "$AWK"; then
1737 echo "$as_me:$LINENO: result: $AWK" >&5
1738 echo "${ECHO_T}$AWK" >&6
1739 else
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1744 test -n "$AWK" && break
1745 done
1747 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1748 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1750 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 cat >conftest.make <<\_ACEOF
1754 all:
1755 @echo 'ac_maketemp="$(MAKE)"'
1756 _ACEOF
1757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1758 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1759 if test -n "$ac_maketemp"; then
1760 eval ac_cv_prog_make_${ac_make}_set=yes
1761 else
1762 eval ac_cv_prog_make_${ac_make}_set=no
1764 rm -f conftest.make
1766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1767 echo "$as_me:$LINENO: result: yes" >&5
1768 echo "${ECHO_T}yes" >&6
1769 SET_MAKE=
1770 else
1771 echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1773 SET_MAKE="MAKE=${MAKE-make}"
1776 rm -rf .tst 2>/dev/null
1777 mkdir .tst 2>/dev/null
1778 if test -d .tst; then
1779 am__leading_dot=.
1780 else
1781 am__leading_dot=_
1783 rmdir .tst 2>/dev/null
1785 # test to see if srcdir already configured
1786 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1787 test -f $srcdir/config.status; then
1788 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1789 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1790 { (exit 1); exit 1; }; }
1793 # test whether we have cygpath
1794 if test -z "$CYGPATH_W"; then
1795 if (cygpath --version) >/dev/null 2>/dev/null; then
1796 CYGPATH_W='cygpath -w'
1797 else
1798 CYGPATH_W=echo
1803 # Define the identity of the package.
1804 PACKAGE='libgomp'
1805 VERSION='1.0'
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE "$PACKAGE"
1810 _ACEOF
1813 cat >>confdefs.h <<_ACEOF
1814 #define VERSION "$VERSION"
1815 _ACEOF
1817 # Some tools Automake needs.
1819 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1822 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1825 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1828 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1831 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1833 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1835 # Installed binaries are usually stripped using `strip' when the user
1836 # run `make install-strip'. However `strip' might not be the right
1837 # tool to use in cross-compilation environments, therefore Automake
1838 # will honor the `STRIP' environment variable to overrule this program.
1839 if test "$cross_compiling" != no; then
1840 if test -n "$ac_tool_prefix"; then
1841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1842 set dummy ${ac_tool_prefix}strip; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_STRIP+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 if test -n "$STRIP"; then
1849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 break 2
1862 done
1863 done
1867 STRIP=$ac_cv_prog_STRIP
1868 if test -n "$STRIP"; then
1869 echo "$as_me:$LINENO: result: $STRIP" >&5
1870 echo "${ECHO_T}$STRIP" >&6
1871 else
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1877 if test -z "$ac_cv_prog_STRIP"; then
1878 ac_ct_STRIP=$STRIP
1879 # Extract the first word of "strip", so it can be a program name with args.
1880 set dummy strip; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886 if test -n "$ac_ct_STRIP"; then
1887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1892 IFS=$as_save_IFS
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_ac_ct_STRIP="strip"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 break 2
1900 done
1901 done
1903 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1907 if test -n "$ac_ct_STRIP"; then
1908 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1909 echo "${ECHO_T}$ac_ct_STRIP" >&6
1910 else
1911 echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1915 STRIP=$ac_ct_STRIP
1916 else
1917 STRIP="$ac_cv_prog_STRIP"
1921 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1923 # We need awk for the "check" target. The system "awk" is bad on
1924 # some platforms.
1925 # Always define AMTAR for backward compatibility.
1927 AMTAR=${AMTAR-"${am_missing_run}tar"}
1929 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1935 # Default to --enable-multilib
1936 # Check whether --enable-multilib or --disable-multilib was given.
1937 if test "${enable_multilib+set}" = set; then
1938 enableval="$enable_multilib"
1939 case "$enableval" in
1940 yes) multilib=yes ;;
1941 no) multilib=no ;;
1942 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1943 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1944 { (exit 1); exit 1; }; } ;;
1945 esac
1946 else
1947 multilib=yes
1950 # We may get other options which we leave undocumented:
1951 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1952 # See config-ml.in if you want the gory details.
1954 if test "$srcdir" = "."; then
1955 if test "$with_target_subdir" != "."; then
1956 multi_basedir="$srcdir/$with_multisrctop../.."
1957 else
1958 multi_basedir="$srcdir/$with_multisrctop.."
1960 else
1961 multi_basedir="$srcdir/.."
1965 ac_config_commands="$ac_config_commands default-1"
1968 # Calculate toolexeclibdir
1969 # Also toolexecdir, though it's only used in toolexeclibdir
1970 case ${enable_version_specific_runtime_libs} in
1971 yes)
1972 # Need the gcc compiler version to know where to install libraries
1973 # and header files if --enable-version-specific-runtime-libs option
1974 # is selected.
1975 toolexecdir='$(libdir)/gcc/$(target_alias)'
1976 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1979 if test -n "$with_cross_host" &&
1980 test x"$with_cross_host" != x"no"; then
1981 # Install a library built with a cross compiler in tooldir, not libdir.
1982 toolexecdir='$(exec_prefix)/$(target_alias)'
1983 toolexeclibdir='$(toolexecdir)/lib'
1984 else
1985 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1986 toolexeclibdir='$(libdir)'
1988 multi_os_directory=`$CC -print-multi-os-directory`
1989 case $multi_os_directory in
1990 .) ;; # Avoid trailing /.
1991 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1992 esac
1994 esac
1998 # Check the compiler.
1999 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2000 # We must force CC to /not/ be precious variables; otherwise
2001 # the wrong, non-multilib-adjusted value will be used in multilibs.
2002 # As a side effect, we have to subst CFLAGS ourselves.
2006 ac_ext=c
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011 if test -n "$ac_tool_prefix"; then
2012 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2013 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2014 echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019 if test -n "$CC"; then
2020 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2029 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2033 done
2034 done
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040 echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6
2042 else
2043 echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6
2048 if test -z "$ac_cv_prog_CC"; then
2049 ac_ct_CC=$CC
2050 # Extract the first word of "gcc", so it can be a program name with args.
2051 set dummy gcc; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057 if test -n "$ac_ct_CC"; then
2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2063 IFS=$as_save_IFS
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067 ac_cv_prog_ac_ct_CC="gcc"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 break 2
2071 done
2072 done
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6
2080 else
2081 echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2085 CC=$ac_ct_CC
2086 else
2087 CC="$ac_cv_prog_CC"
2090 if test -z "$CC"; then
2091 if test -n "$ac_tool_prefix"; then
2092 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2093 set dummy ${ac_tool_prefix}cc; ac_word=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 if test -n "$CC"; then
2100 ac_cv_prog_CC="$CC" # Let the user override the test.
2101 else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109 ac_cv_prog_CC="${ac_tool_prefix}cc"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 break 2
2113 done
2114 done
2118 CC=$ac_cv_prog_CC
2119 if test -n "$CC"; then
2120 echo "$as_me:$LINENO: result: $CC" >&5
2121 echo "${ECHO_T}$CC" >&6
2122 else
2123 echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2128 if test -z "$ac_cv_prog_CC"; then
2129 ac_ct_CC=$CC
2130 # Extract the first word of "cc", so it can be a program name with args.
2131 set dummy cc; ac_word=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 if test -n "$ac_ct_CC"; then
2138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147 ac_cv_prog_ac_ct_CC="cc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2151 done
2152 done
2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157 if test -n "$ac_ct_CC"; then
2158 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159 echo "${ECHO_T}$ac_ct_CC" >&6
2160 else
2161 echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2165 CC=$ac_ct_CC
2166 else
2167 CC="$ac_cv_prog_CC"
2171 if test -z "$CC"; then
2172 # Extract the first word of "cc", so it can be a program name with args.
2173 set dummy cc; ac_word=$2
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 else
2182 ac_prog_rejected=no
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2191 ac_prog_rejected=yes
2192 continue
2194 ac_cv_prog_CC="cc"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2198 done
2199 done
2201 if test $ac_prog_rejected = yes; then
2202 # We found a bogon in the path, so make sure we never use it.
2203 set dummy $ac_cv_prog_CC
2204 shift
2205 if test $# != 0; then
2206 # We chose a different compiler from the bogus one.
2207 # However, it has the same basename, so the bogon will be chosen
2208 # first if we set CC to just the basename; use the full file name.
2209 shift
2210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2215 CC=$ac_cv_prog_CC
2216 if test -n "$CC"; then
2217 echo "$as_me:$LINENO: result: $CC" >&5
2218 echo "${ECHO_T}$CC" >&6
2219 else
2220 echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6
2225 if test -z "$CC"; then
2226 if test -n "$ac_tool_prefix"; then
2227 for ac_prog in cl
2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2231 echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2250 done
2251 done
2255 CC=$ac_cv_prog_CC
2256 if test -n "$CC"; then
2257 echo "$as_me:$LINENO: result: $CC" >&5
2258 echo "${ECHO_T}$CC" >&6
2259 else
2260 echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6
2264 test -n "$CC" && break
2265 done
2267 if test -z "$CC"; then
2268 ac_ct_CC=$CC
2269 for ac_prog in cl
2271 # Extract the first word of "$ac_prog", so it can be a program name with args.
2272 set dummy $ac_prog; ac_word=$2
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 if test -n "$ac_ct_CC"; then
2279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 for ac_exec_ext in '' $ac_executable_extensions; do
2287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288 ac_cv_prog_ac_ct_CC="$ac_prog"
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290 break 2
2292 done
2293 done
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298 if test -n "$ac_ct_CC"; then
2299 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300 echo "${ECHO_T}$ac_ct_CC" >&6
2301 else
2302 echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2306 test -n "$ac_ct_CC" && break
2307 done
2309 CC=$ac_ct_CC
2315 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2316 See \`config.log' for more details." >&5
2317 echo "$as_me: error: no acceptable C compiler found in \$PATH
2318 See \`config.log' for more details." >&2;}
2319 { (exit 1); exit 1; }; }
2321 # Provide some information about the compiler.
2322 echo "$as_me:$LINENO:" \
2323 "checking for C compiler version" >&5
2324 ac_compiler=`set X $ac_compile; echo $2`
2325 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2326 (eval $ac_compiler --version </dev/null >&5) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }
2330 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2331 (eval $ac_compiler -v </dev/null >&5) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }
2335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2336 (eval $ac_compiler -V </dev/null >&5) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }
2341 cat >conftest.$ac_ext <<_ACEOF
2342 /* confdefs.h. */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2349 main ()
2353 return 0;
2355 _ACEOF
2356 ac_clean_files_save=$ac_clean_files
2357 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2358 # Try to create an executable without -o first, disregard a.out.
2359 # It will help us diagnose broken compilers, and finding out an intuition
2360 # of exeext.
2361 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2362 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2363 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2364 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2365 (eval $ac_link_default) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 # Find the output, starting from the most likely. This scheme is
2370 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2371 # resort.
2373 # Be careful to initialize this variable, since it used to be cached.
2374 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2375 ac_cv_exeext=
2376 # b.out is created by i960 compilers.
2377 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2379 test -f "$ac_file" || continue
2380 case $ac_file in
2381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2383 conftest.$ac_ext )
2384 # This is the source file.
2386 [ab].out )
2387 # We found the default executable, but exeext='' is most
2388 # certainly right.
2389 break;;
2390 *.* )
2391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2392 # FIXME: I believe we export ac_cv_exeext for Libtool,
2393 # but it would be cool to find out if it's true. Does anybody
2394 # maintain Libtool? --akim.
2395 export ac_cv_exeext
2396 break;;
2398 break;;
2399 esac
2400 done
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: C compiler cannot create executables
2408 See \`config.log' for more details." >&2;}
2409 { (exit 77); exit 77; }; }
2412 ac_exeext=$ac_cv_exeext
2413 echo "$as_me:$LINENO: result: $ac_file" >&5
2414 echo "${ECHO_T}$ac_file" >&6
2416 # Check the compiler produces executables we can run. If not, either
2417 # the compiler is broken, or we cross compile.
2418 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2419 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2420 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2421 # If not cross compiling, check that we can run a simple program.
2422 if test "$cross_compiling" != yes; then
2423 if { ac_try='./$ac_file'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2429 cross_compiling=no
2430 else
2431 if test "$cross_compiling" = maybe; then
2432 cross_compiling=yes
2433 else
2434 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot run C compiled programs.
2438 If you meant to cross compile, use \`--host'.
2439 See \`config.log' for more details." >&2;}
2440 { (exit 1); exit 1; }; }
2444 echo "$as_me:$LINENO: result: yes" >&5
2445 echo "${ECHO_T}yes" >&6
2447 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2448 ac_clean_files=$ac_clean_files_save
2449 # Check the compiler produces executables we can run. If not, either
2450 # the compiler is broken, or we cross compile.
2451 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2452 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2453 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2454 echo "${ECHO_T}$cross_compiling" >&6
2456 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2457 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2459 (eval $ac_link) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; then
2463 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2464 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2465 # work properly (i.e., refer to `conftest.exe'), while it won't with
2466 # `rm'.
2467 for ac_file in conftest.exe conftest conftest.*; do
2468 test -f "$ac_file" || continue
2469 case $ac_file in
2470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2471 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2472 export ac_cv_exeext
2473 break;;
2474 * ) break;;
2475 esac
2476 done
2477 else
2478 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2479 See \`config.log' for more details." >&5
2480 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2481 See \`config.log' for more details." >&2;}
2482 { (exit 1); exit 1; }; }
2485 rm -f conftest$ac_cv_exeext
2486 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2487 echo "${ECHO_T}$ac_cv_exeext" >&6
2489 rm -f conftest.$ac_ext
2490 EXEEXT=$ac_cv_exeext
2491 ac_exeext=$EXEEXT
2492 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2493 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2494 if test "${ac_cv_objext+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497 cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h. */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2505 main ()
2509 return 0;
2511 _ACEOF
2512 rm -f conftest.o conftest.obj
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514 (eval $ac_compile) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; then
2518 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2519 case $ac_file in
2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2522 break;;
2523 esac
2524 done
2525 else
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2530 See \`config.log' for more details." >&5
2531 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2532 See \`config.log' for more details." >&2;}
2533 { (exit 1); exit 1; }; }
2536 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2538 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2539 echo "${ECHO_T}$ac_cv_objext" >&6
2540 OBJEXT=$ac_cv_objext
2541 ac_objext=$OBJEXT
2542 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2543 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2544 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547 cat >conftest.$ac_ext <<_ACEOF
2548 /* confdefs.h. */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2555 main ()
2557 #ifndef __GNUC__
2558 choke me
2559 #endif
2562 return 0;
2564 _ACEOF
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>conftest.er1
2568 ac_status=$?
2569 grep -v '^ *+' conftest.er1 >conftest.err
2570 rm -f conftest.er1
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag"
2575 || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 (eval $ac_try) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_compiler_gnu=yes
2588 else
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2592 ac_compiler_gnu=no
2594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2598 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2599 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2600 GCC=`test $ac_compiler_gnu = yes && echo yes`
2601 ac_test_CFLAGS=${CFLAGS+set}
2602 ac_save_CFLAGS=$CFLAGS
2603 CFLAGS="-g"
2604 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2605 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2606 if test "${ac_cv_prog_cc_g+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609 cat >conftest.$ac_ext <<_ACEOF
2610 /* confdefs.h. */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2617 main ()
2621 return 0;
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>conftest.er1
2627 ac_status=$?
2628 grep -v '^ *+' conftest.er1 >conftest.err
2629 rm -f conftest.er1
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -z "$ac_c_werror_flag"
2634 || test ! -s conftest.err'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try='test -s conftest.$ac_objext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 (eval $ac_try) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2646 ac_cv_prog_cc_g=yes
2647 else
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2651 ac_cv_prog_cc_g=no
2653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2655 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2656 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2657 if test "$ac_test_CFLAGS" = set; then
2658 CFLAGS=$ac_save_CFLAGS
2659 elif test $ac_cv_prog_cc_g = yes; then
2660 if test "$GCC" = yes; then
2661 CFLAGS="-g -O2"
2662 else
2663 CFLAGS="-g"
2665 else
2666 if test "$GCC" = yes; then
2667 CFLAGS="-O2"
2668 else
2669 CFLAGS=
2672 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2673 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2674 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677 ac_cv_prog_cc_stdc=no
2678 ac_save_CC=$CC
2679 cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2685 #include <stdarg.h>
2686 #include <stdio.h>
2687 #include <sys/types.h>
2688 #include <sys/stat.h>
2689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2690 struct buf { int x; };
2691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2692 static char *e (p, i)
2693 char **p;
2694 int i;
2696 return p[i];
2698 static char *f (char * (*g) (char **, int), char **p, ...)
2700 char *s;
2701 va_list v;
2702 va_start (v,p);
2703 s = g (p, va_arg (v,int));
2704 va_end (v);
2705 return s;
2708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2709 function prototypes and stuff, but not '\xHH' hex character constants.
2710 These don't provoke an error unfortunately, instead are silently treated
2711 as 'x'. The following induces an error, until -std1 is added to get
2712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2713 array size at least. It's necessary to write '\x00'==0 to get something
2714 that's true only with -std1. */
2715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2717 int test (int i, double x);
2718 struct s1 {int (*f) (int a);};
2719 struct s2 {int (*f) (double a);};
2720 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2721 int argc;
2722 char **argv;
2724 main ()
2726 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2728 return 0;
2730 _ACEOF
2731 # Don't try gcc -ansi; that turns off useful extensions and
2732 # breaks some systems' header files.
2733 # AIX -qlanglvl=ansi
2734 # Ultrix and OSF/1 -std1
2735 # HP-UX 10.20 and later -Ae
2736 # HP-UX older versions -Aa -D_HPUX_SOURCE
2737 # SVR4 -Xc -D__EXTENSIONS__
2738 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2740 CC="$ac_save_CC $ac_arg"
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>conftest.er1
2744 ac_status=$?
2745 grep -v '^ *+' conftest.er1 >conftest.err
2746 rm -f conftest.er1
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } &&
2750 { ac_try='test -z "$ac_c_werror_flag"
2751 || test ! -s conftest.err'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 (eval $ac_try) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 ac_cv_prog_cc_stdc=$ac_arg
2764 break
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f conftest.err conftest.$ac_objext
2771 done
2772 rm -f conftest.$ac_ext conftest.$ac_objext
2773 CC=$ac_save_CC
2777 case "x$ac_cv_prog_cc_stdc" in
2778 x|xno)
2779 echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6 ;;
2782 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2783 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2784 CC="$CC $ac_cv_prog_cc_stdc" ;;
2785 esac
2787 # Some people use a C++ compiler to compile C. Since we use `exit',
2788 # in C++ we need to declare it. In case someone uses the same compiler
2789 # for both compiling C and C++ we need to have the C++ compiler decide
2790 # the declaration of exit, since it's the most demanding environment.
2791 cat >conftest.$ac_ext <<_ACEOF
2792 #ifndef __cplusplus
2793 choke me
2794 #endif
2795 _ACEOF
2796 rm -f conftest.$ac_objext
2797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>conftest.er1
2799 ac_status=$?
2800 grep -v '^ *+' conftest.er1 >conftest.err
2801 rm -f conftest.er1
2802 cat conftest.err >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try='test -z "$ac_c_werror_flag"
2806 || test ! -s conftest.err'
2807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 (eval $ac_try) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; } &&
2812 { ac_try='test -s conftest.$ac_objext'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 (eval $ac_try) 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; }; then
2818 for ac_declaration in \
2819 '' \
2820 'extern "C" void std::exit (int) throw (); using std::exit;' \
2821 'extern "C" void std::exit (int); using std::exit;' \
2822 'extern "C" void exit (int) throw ();' \
2823 'extern "C" void exit (int);' \
2824 'void exit (int);'
2826 cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h. */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2832 $ac_declaration
2833 #include <stdlib.h>
2835 main ()
2837 exit (42);
2839 return 0;
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
2865 else
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 continue
2871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2880 main ()
2882 exit (42);
2884 return 0;
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>conftest.er1
2890 ac_status=$?
2891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
2896 { ac_try='test -z "$ac_c_werror_flag"
2897 || test ! -s conftest.err'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 (eval $ac_try) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 break
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2916 done
2917 rm -f conftest*
2918 if test -n "$ac_declaration"; then
2919 echo '#ifdef __cplusplus' >>confdefs.h
2920 echo $ac_declaration >>confdefs.h
2921 echo '#endif' >>confdefs.h
2924 else
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2930 ac_ext=c
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 DEPDIR="${am__leading_dot}deps"
2937 ac_config_commands="$ac_config_commands depfiles"
2940 am_make=${MAKE-make}
2941 cat > confinc << 'END'
2942 am__doit:
2943 @echo done
2944 .PHONY: am__doit
2946 # If we don't find an include directive, just comment out the code.
2947 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2948 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2949 am__include="#"
2950 am__quote=
2951 _am_result=none
2952 # First try GNU make style include.
2953 echo "include confinc" > confmf
2954 # We grep out `Entering directory' and `Leaving directory'
2955 # messages which can occur if `w' ends up in MAKEFLAGS.
2956 # In particular we don't look at `^make:' because GNU make might
2957 # be invoked under some other name (usually "gmake"), in which
2958 # case it prints its new name instead of `make'.
2959 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2960 am__include=include
2961 am__quote=
2962 _am_result=GNU
2964 # Now try BSD make style include.
2965 if test "$am__include" = "#"; then
2966 echo '.include "confinc"' > confmf
2967 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2968 am__include=.include
2969 am__quote="\""
2970 _am_result=BSD
2975 echo "$as_me:$LINENO: result: $_am_result" >&5
2976 echo "${ECHO_T}$_am_result" >&6
2977 rm -f confinc confmf
2979 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2980 if test "${enable_dependency_tracking+set}" = set; then
2981 enableval="$enable_dependency_tracking"
2984 if test "x$enable_dependency_tracking" != xno; then
2985 am_depcomp="$ac_aux_dir/depcomp"
2986 AMDEPBACKSLASH='\'
2990 if test "x$enable_dependency_tracking" != xno; then
2991 AMDEP_TRUE=
2992 AMDEP_FALSE='#'
2993 else
2994 AMDEP_TRUE='#'
2995 AMDEP_FALSE=
3001 depcc="$CC" am_compiler_list=
3003 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3004 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3005 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3009 # We make a subdir and do the tests there. Otherwise we can end up
3010 # making bogus files that we don't know about and never remove. For
3011 # instance it was reported that on HP-UX the gcc test will end up
3012 # making a dummy file named `D' -- because `-MD' means `put the output
3013 # in D'.
3014 mkdir conftest.dir
3015 # Copy depcomp to subdir because otherwise we won't find it if we're
3016 # using a relative directory.
3017 cp "$am_depcomp" conftest.dir
3018 cd conftest.dir
3019 # We will build objects and dependencies in a subdirectory because
3020 # it helps to detect inapplicable dependency modes. For instance
3021 # both Tru64's cc and ICC support -MD to output dependencies as a
3022 # side effect of compilation, but ICC will put the dependencies in
3023 # the current directory while Tru64 will put them in the object
3024 # directory.
3025 mkdir sub
3027 am_cv_CC_dependencies_compiler_type=none
3028 if test "$am_compiler_list" = ""; then
3029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3031 for depmode in $am_compiler_list; do
3032 # Setup a source with many dependencies, because some compilers
3033 # like to wrap large dependency lists on column 80 (with \), and
3034 # we should not choose a depcomp mode which is confused by this.
3036 # We need to recreate these files for each test, as the compiler may
3037 # overwrite some of them when testing with obscure command lines.
3038 # This happens at least with the AIX C compiler.
3039 : > sub/conftest.c
3040 for i in 1 2 3 4 5 6; do
3041 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3042 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3043 # Solaris 8's {/usr,}/bin/sh.
3044 touch sub/conftst$i.h
3045 done
3046 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3048 case $depmode in
3049 nosideeffect)
3050 # after this tag, mechanisms are not by side-effect, so they'll
3051 # only be used when explicitly requested
3052 if test "x$enable_dependency_tracking" = xyes; then
3053 continue
3054 else
3055 break
3058 none) break ;;
3059 esac
3060 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3061 # mode. It turns out that the SunPro C++ compiler does not properly
3062 # handle `-M -o', and we need to detect this.
3063 if depmode=$depmode \
3064 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3065 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3066 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3067 >/dev/null 2>conftest.err &&
3068 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3069 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3070 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3071 # icc doesn't choke on unknown options, it will just issue warnings
3072 # or remarks (even with -Werror). So we grep stderr for any message
3073 # that says an option was ignored or not supported.
3074 # When given -MP, icc 7.0 and 7.1 complain thusly:
3075 # icc: Command line warning: ignoring option '-M'; no argument required
3076 # The diagnosis changed in icc 8.0:
3077 # icc: Command line remark: option '-MP' not supported
3078 if (grep 'ignoring option' conftest.err ||
3079 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3080 am_cv_CC_dependencies_compiler_type=$depmode
3081 break
3084 done
3086 cd ..
3087 rm -rf conftest.dir
3088 else
3089 am_cv_CC_dependencies_compiler_type=none
3093 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3094 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3095 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3100 test "x$enable_dependency_tracking" != xno \
3101 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3102 am__fastdepCC_TRUE=
3103 am__fastdepCC_FALSE='#'
3104 else
3105 am__fastdepCC_TRUE='#'
3106 am__fastdepCC_FALSE=
3114 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3115 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3116 # in both places for now and restore CFLAGS at the end of config.
3117 save_CFLAGS="$CFLAGS"
3119 # Add -Wall -Werror if we are using GCC.
3120 if test "x$GCC" = "xyes"; then
3121 XCFLAGS="$XCFLAGS -Wall -Werror"
3124 # Find other programs we need.
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}ar; ac_word=$2
3128 echo "$as_me:$LINENO: checking for $ac_word" >&5
3129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3130 if test "${ac_cv_prog_AR+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133 if test -n "$AR"; then
3134 ac_cv_prog_AR="$AR" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_AR="${ac_tool_prefix}ar"
3144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3147 done
3148 done
3152 AR=$ac_cv_prog_AR
3153 if test -n "$AR"; then
3154 echo "$as_me:$LINENO: result: $AR" >&5
3155 echo "${ECHO_T}$AR" >&6
3156 else
3157 echo "$as_me:$LINENO: result: no" >&5
3158 echo "${ECHO_T}no" >&6
3162 if test -z "$ac_cv_prog_AR"; then
3163 ac_ct_AR=$AR
3164 # Extract the first word of "ar", so it can be a program name with args.
3165 set dummy ar; ac_word=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171 if test -n "$ac_ct_AR"; then
3172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_ac_ct_AR="ar"
3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3185 done
3186 done
3190 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3191 if test -n "$ac_ct_AR"; then
3192 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3193 echo "${ECHO_T}$ac_ct_AR" >&6
3194 else
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3199 AR=$ac_ct_AR
3200 else
3201 AR="$ac_cv_prog_AR"
3204 if test -n "$ac_tool_prefix"; then
3205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3207 echo "$as_me:$LINENO: checking for $ac_word" >&5
3208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3209 if test "${ac_cv_prog_RANLIB+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 if test -n "$RANLIB"; then
3213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3226 done
3227 done
3231 RANLIB=$ac_cv_prog_RANLIB
3232 if test -n "$RANLIB"; then
3233 echo "$as_me:$LINENO: result: $RANLIB" >&5
3234 echo "${ECHO_T}$RANLIB" >&6
3235 else
3236 echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3241 if test -z "$ac_cv_prog_RANLIB"; then
3242 ac_ct_RANLIB=$RANLIB
3243 # Extract the first word of "ranlib", so it can be a program name with args.
3244 set dummy ranlib; ac_word=$2
3245 echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 if test -n "$ac_ct_RANLIB"; then
3251 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_ac_ct_RANLIB="ranlib"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3264 done
3265 done
3267 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3270 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3271 if test -n "$ac_ct_RANLIB"; then
3272 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3273 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3274 else
3275 echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3279 RANLIB=$ac_ct_RANLIB
3280 else
3281 RANLIB="$ac_cv_prog_RANLIB"
3284 # Extract the first word of "perl", so it can be a program name with args.
3285 set dummy perl; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_path_PERL+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 case $PERL in
3292 [\\/]* | ?:[\\/]*)
3293 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3307 done
3308 done
3310 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3312 esac
3314 PERL=$ac_cv_path_PERL
3316 if test -n "$PERL"; then
3317 echo "$as_me:$LINENO: result: $PERL" >&5
3318 echo "${ECHO_T}$PERL" >&6
3319 else
3320 echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6
3324 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3325 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3326 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3327 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330 cat >conftest.make <<\_ACEOF
3331 all:
3332 @echo 'ac_maketemp="$(MAKE)"'
3333 _ACEOF
3334 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3335 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3336 if test -n "$ac_maketemp"; then
3337 eval ac_cv_prog_make_${ac_make}_set=yes
3338 else
3339 eval ac_cv_prog_make_${ac_make}_set=no
3341 rm -f conftest.make
3343 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3344 echo "$as_me:$LINENO: result: yes" >&5
3345 echo "${ECHO_T}yes" >&6
3346 SET_MAKE=
3347 else
3348 echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3350 SET_MAKE="MAKE=${MAKE-make}"
3353 # Find a good install program. We prefer a C program (faster),
3354 # so one script is as good as another. But avoid the broken or
3355 # incompatible versions:
3356 # SysV /etc/install, /usr/sbin/install
3357 # SunOS /usr/etc/install
3358 # IRIX /sbin/install
3359 # AIX /bin/install
3360 # AmigaOS /C/install, which installs bootblocks on floppy discs
3361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3364 # OS/2's system install, which has a completely different semantic
3365 # ./install, which can be erroneously created by make from ./install.sh.
3366 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3367 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3368 if test -z "$INSTALL"; then
3369 if test "${ac_cv_path_install+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 # Account for people who put trailing slashes in PATH elements.
3378 case $as_dir/ in
3379 ./ | .// | /cC/* | \
3380 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3381 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3382 /usr/ucb/* ) ;;
3384 # OSF1 and SCO ODT 3.0 have their own names for install.
3385 # Don't use installbsd from OSF since it installs stuff as root
3386 # by default.
3387 for ac_prog in ginstall scoinst install; do
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3390 if test $ac_prog = install &&
3391 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3392 # AIX install. It has an incompatible calling convention.
3394 elif test $ac_prog = install &&
3395 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3396 # program-specific install script used by HP pwplus--don't use.
3398 else
3399 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3400 break 3
3403 done
3404 done
3406 esac
3407 done
3411 if test "${ac_cv_path_install+set}" = set; then
3412 INSTALL=$ac_cv_path_install
3413 else
3414 # As a last resort, use the slow shell script. We don't cache a
3415 # path for INSTALL within a source directory, because that will
3416 # break other packages using the cache if that directory is
3417 # removed, or if the path is relative.
3418 INSTALL=$ac_install_sh
3421 echo "$as_me:$LINENO: result: $INSTALL" >&5
3422 echo "${ECHO_T}$INSTALL" >&6
3424 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3425 # It thinks the first close brace ends the variable substitution.
3426 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3428 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3430 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3433 # Configure libtool
3434 # Check whether --enable-shared or --disable-shared was given.
3435 if test "${enable_shared+set}" = set; then
3436 enableval="$enable_shared"
3437 p=${PACKAGE-default}
3438 case $enableval in
3439 yes) enable_shared=yes ;;
3440 no) enable_shared=no ;;
3442 enable_shared=no
3443 # Look at the argument we got. We use all the common list separators.
3444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3445 for pkg in $enableval; do
3446 if test "X$pkg" = "X$p"; then
3447 enable_shared=yes
3449 done
3450 IFS="$ac_save_ifs"
3452 esac
3453 else
3454 enable_shared=yes
3456 # Check whether --enable-static or --disable-static was given.
3457 if test "${enable_static+set}" = set; then
3458 enableval="$enable_static"
3459 p=${PACKAGE-default}
3460 case $enableval in
3461 yes) enable_static=yes ;;
3462 no) enable_static=no ;;
3464 enable_static=no
3465 # Look at the argument we got. We use all the common list separators.
3466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3467 for pkg in $enableval; do
3468 if test "X$pkg" = "X$p"; then
3469 enable_static=yes
3471 done
3472 IFS="$ac_save_ifs"
3474 esac
3475 else
3476 enable_static=yes
3478 # Check whether --enable-fast-install or --disable-fast-install was given.
3479 if test "${enable_fast_install+set}" = set; then
3480 enableval="$enable_fast_install"
3481 p=${PACKAGE-default}
3482 case $enableval in
3483 yes) enable_fast_install=yes ;;
3484 no) enable_fast_install=no ;;
3486 enable_fast_install=no
3487 # Look at the argument we got. We use all the common list separators.
3488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3489 for pkg in $enableval; do
3490 if test "X$pkg" = "X$p"; then
3491 enable_fast_install=yes
3493 done
3494 IFS="$ac_save_ifs"
3496 esac
3497 else
3498 enable_fast_install=yes
3501 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3502 if test "${with_gnu_ld+set}" = set; then
3503 withval="$with_gnu_ld"
3504 test "$withval" = no || with_gnu_ld=yes
3505 else
3506 with_gnu_ld=no
3508 ac_prog=ld
3509 if test "$GCC" = yes; then
3510 # Check if gcc -print-prog-name=ld gives a path.
3511 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3512 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3513 case $host in
3514 *-*-mingw*)
3515 # gcc leaves a trailing carriage return which upsets mingw
3516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3519 esac
3520 case $ac_prog in
3521 # Accept absolute paths.
3522 [\\/]* | [A-Za-z]:[\\/]*)
3523 re_direlt='/[^/][^/]*/\.\./'
3524 # Canonicalize the path of ld
3525 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3526 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3527 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3528 done
3529 test -z "$LD" && LD="$ac_prog"
3532 # If it fails, then pretend we aren't using GCC.
3533 ac_prog=ld
3536 # If it is relative, then search for the first ld in PATH.
3537 with_gnu_ld=unknown
3539 esac
3540 elif test "$with_gnu_ld" = yes; then
3541 echo "$as_me:$LINENO: checking for GNU ld" >&5
3542 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3543 else
3544 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3545 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3547 if test "${lt_cv_path_LD+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550 if test -z "$LD"; then
3551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3552 for ac_dir in $PATH; do
3553 test -z "$ac_dir" && ac_dir=.
3554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3555 lt_cv_path_LD="$ac_dir/$ac_prog"
3556 # Check to see if the program is GNU ld. I'd rather use --version,
3557 # but apparently some GNU ld's only accept -v.
3558 # Break only if it was the GNU/non-GNU ld that we prefer.
3559 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3560 test "$with_gnu_ld" != no && break
3561 else
3562 test "$with_gnu_ld" != yes && break
3565 done
3566 IFS="$ac_save_ifs"
3567 else
3568 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3572 LD="$lt_cv_path_LD"
3573 if test -n "$LD"; then
3574 echo "$as_me:$LINENO: result: $LD" >&5
3575 echo "${ECHO_T}$LD" >&6
3576 else
3577 echo "$as_me:$LINENO: result: no" >&5
3578 echo "${ECHO_T}no" >&6
3580 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3581 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3582 { (exit 1); exit 1; }; }
3583 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3584 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3585 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 else
3588 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3589 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3590 lt_cv_prog_gnu_ld=yes
3591 else
3592 lt_cv_prog_gnu_ld=no
3595 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3596 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3597 with_gnu_ld=$lt_cv_prog_gnu_ld
3600 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3601 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3602 if test "${lt_cv_ld_reload_flag+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605 lt_cv_ld_reload_flag='-r'
3607 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3608 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3609 reload_flag=$lt_cv_ld_reload_flag
3610 test -n "$reload_flag" && reload_flag=" $reload_flag"
3612 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3613 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3614 if test "${lt_cv_path_NM+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 if test -n "$NM"; then
3618 # Let the user override the test.
3619 lt_cv_path_NM="$NM"
3620 else
3621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3622 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3623 test -z "$ac_dir" && ac_dir=.
3624 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3625 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3626 # Check to see if the nm accepts a BSD-compat flag.
3627 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3628 # nm: unknown option "B" ignored
3629 # Tru64's nm complains that /dev/null is an invalid object file
3630 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3631 lt_cv_path_NM="$tmp_nm -B"
3632 break
3633 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3634 lt_cv_path_NM="$tmp_nm -p"
3635 break
3636 else
3637 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3638 continue # so that we can try to find one that supports BSD flags
3641 done
3642 IFS="$ac_save_ifs"
3643 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3647 NM="$lt_cv_path_NM"
3648 echo "$as_me:$LINENO: result: $NM" >&5
3649 echo "${ECHO_T}$NM" >&6
3651 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3652 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3653 LN_S=$as_ln_s
3654 if test "$LN_S" = "ln -s"; then
3655 echo "$as_me:$LINENO: result: yes" >&5
3656 echo "${ECHO_T}yes" >&6
3657 else
3658 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3659 echo "${ECHO_T}no, using $LN_S" >&6
3662 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3663 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3664 if test "${lt_cv_deplibs_check_method+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667 lt_cv_file_magic_cmd='$MAGIC_CMD'
3668 lt_cv_file_magic_test_file=
3669 lt_cv_deplibs_check_method='unknown'
3670 # Need to set the preceding variable on all platforms that support
3671 # interlibrary dependencies.
3672 # 'none' -- dependencies not supported.
3673 # `unknown' -- same as none, but documents that we really don't know.
3674 # 'pass_all' -- all dependencies passed with no checks.
3675 # 'test_compile' -- check by making test program.
3676 # 'file_magic [regex]' -- check by looking for files in library path
3677 # which responds to the $file_magic_cmd with a given egrep regex.
3678 # If you have `file' or equivalent on your system and you're not sure
3679 # whether `pass_all' will *always* work, you probably want this one.
3681 case $host_os in
3682 aix*)
3683 lt_cv_deplibs_check_method=pass_all
3686 beos*)
3687 lt_cv_deplibs_check_method=pass_all
3690 bsdi4*)
3691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3692 lt_cv_file_magic_cmd='/usr/bin/file -L'
3693 lt_cv_file_magic_test_file=/shlib/libc.so
3696 cygwin* | mingw* |pw32*)
3697 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3698 lt_cv_file_magic_cmd='$OBJDUMP -f'
3701 darwin* | rhapsody*)
3702 # this will be overwritten by pass_all, but leave it in just in case
3703 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3704 lt_cv_file_magic_cmd='/usr/bin/file -L'
3705 case "$host_os" in
3706 rhapsody* | darwin1.012)
3707 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3709 *) # Darwin 1.3 on
3710 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3712 esac
3713 lt_cv_deplibs_check_method=pass_all
3716 freebsd* | kfreebsd*-gnu)
3717 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3718 case $host_cpu in
3719 i*86 )
3720 # Not sure whether the presence of OpenBSD here was a mistake.
3721 # Let's accept both of them until this is cleared up.
3722 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3723 lt_cv_file_magic_cmd=/usr/bin/file
3724 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3726 esac
3727 else
3728 lt_cv_deplibs_check_method=pass_all
3732 gnu*)
3733 lt_cv_deplibs_check_method=pass_all
3736 hpux10.20*|hpux11*)
3737 case $host_cpu in
3738 hppa*)
3739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3740 lt_cv_file_magic_cmd=/usr/bin/file
3741 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3743 ia64*)
3744 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3745 lt_cv_file_magic_cmd=/usr/bin/file
3746 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3748 esac
3751 irix5* | irix6*)
3752 case $host_os in
3753 irix5*)
3754 # this will be overridden with pass_all, but let us keep it just in case
3755 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3758 case $LD in
3759 *-32|*"-32 ") libmagic=32-bit;;
3760 *-n32|*"-n32 ") libmagic=N32;;
3761 *-64|*"-64 ") libmagic=64-bit;;
3762 *) libmagic=never-match;;
3763 esac
3764 # this will be overridden with pass_all, but let us keep it just in case
3765 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3767 esac
3768 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3769 lt_cv_deplibs_check_method=pass_all
3772 # This must be Linux ELF.
3773 linux-gnu*)
3774 lt_cv_deplibs_check_method=pass_all
3777 netbsd* | knetbsd*-gnu)
3778 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3779 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3780 else
3781 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3785 newsos6)
3786 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3787 lt_cv_file_magic_cmd=/usr/bin/file
3788 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3791 osf3* | osf4* | osf5*)
3792 # this will be overridden with pass_all, but let us keep it just in case
3793 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3794 lt_cv_file_magic_test_file=/shlib/libc.so
3795 lt_cv_deplibs_check_method=pass_all
3798 sco3.2v5*)
3799 lt_cv_deplibs_check_method=pass_all
3802 solaris*)
3803 lt_cv_deplibs_check_method=pass_all
3804 lt_cv_file_magic_test_file=/lib/libc.so
3807 sysv5uw[78]* | sysv4*uw2*)
3808 lt_cv_deplibs_check_method=pass_all
3811 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3812 case $host_vendor in
3813 ncr)
3814 lt_cv_deplibs_check_method=pass_all
3816 motorola)
3817 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]'
3818 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3820 esac
3822 esac
3825 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3826 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3827 file_magic_cmd=$lt_cv_file_magic_cmd
3828 deplibs_check_method=$lt_cv_deplibs_check_method
3834 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3836 # find the maximum length of command line arguments
3837 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3838 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3839 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3843 teststring="ABCD"
3845 case $build_os in
3846 msdosdjgpp*)
3847 # On DJGPP, this test can blow up pretty badly due to problems in libc
3848 # (any single argument exceeding 2000 bytes causes a buffer overrun
3849 # during glob expansion). Even if it were fixed, the result of this
3850 # check would be larger than it should be.
3851 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3854 cygwin* | mingw*)
3855 # On Win9x/ME, this test blows up -- it succeeds, but takes
3856 # about 5 minutes as the teststring grows exponentially.
3857 # Worse, since 9x/ME are not pre-emptively multitasking,
3858 # you end up with a "frozen" computer, even though with patience
3859 # the test eventually succeeds (with a max line length of 256k).
3860 # Instead, let's just punt: use the minimum linelength reported by
3861 # all of the supported platforms: 8192 (on NT/2K/XP).
3862 lt_cv_sys_max_cmd_len=8192;
3865 amigaos*)
3866 # On AmigaOS with pdksh, this test takes hours, literally.
3867 # So we just punt and use a minimum line length of 8192.
3868 lt_cv_sys_max_cmd_len=8192;
3871 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3872 # This has been around since 386BSD, at least. Likely further.
3873 if test -x /sbin/sysctl; then
3874 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3875 elif test -x /usr/sbin/sysctl; then
3876 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3877 else
3878 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3880 # And add a safety zone
3881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3884 esac
3888 if test -n "$lt_cv_sys_max_cmd_len" ; then
3889 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3890 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3891 else
3892 echo "$as_me:$LINENO: result: none" >&5
3893 echo "${ECHO_T}none" >&6
3897 # Only perform the check for file, if the check method requires it
3898 case $deplibs_check_method in
3899 file_magic*)
3900 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3901 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3902 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3903 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 case $MAGIC_CMD in
3908 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3910 ?:/*)
3911 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3914 ac_save_MAGIC_CMD="$MAGIC_CMD"
3915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3916 ac_dummy="/usr/bin:$PATH"
3917 for ac_dir in $ac_dummy; do
3918 test -z "$ac_dir" && ac_dir=.
3919 if test -f $ac_dir/${ac_tool_prefix}file; then
3920 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3921 if test -n "$file_magic_test_file"; then
3922 case $deplibs_check_method in
3923 "file_magic "*)
3924 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3927 egrep "$file_magic_regex" > /dev/null; then
3929 else
3930 cat <<EOF 1>&2
3932 *** Warning: the command libtool uses to detect shared libraries,
3933 *** $file_magic_cmd, produces output that libtool cannot recognize.
3934 *** The result is that libtool may fail to recognize shared libraries
3935 *** as such. This will affect the creation of libtool libraries that
3936 *** depend on shared libraries, but programs linked with such libtool
3937 *** libraries will work regardless of this problem. Nevertheless, you
3938 *** may want to report the problem to your system manager and/or to
3939 *** bug-libtool@gnu.org
3942 fi ;;
3943 esac
3945 break
3947 done
3948 IFS="$ac_save_ifs"
3949 MAGIC_CMD="$ac_save_MAGIC_CMD"
3951 esac
3954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3955 if test -n "$MAGIC_CMD"; then
3956 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3957 echo "${ECHO_T}$MAGIC_CMD" >&6
3958 else
3959 echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3963 if test -z "$lt_cv_path_MAGIC_CMD"; then
3964 if test -n "$ac_tool_prefix"; then
3965 echo "$as_me:$LINENO: checking for file" >&5
3966 echo $ECHO_N "checking for file... $ECHO_C" >&6
3967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970 case $MAGIC_CMD in
3972 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3974 ?:/*)
3975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3978 ac_save_MAGIC_CMD="$MAGIC_CMD"
3979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3980 ac_dummy="/usr/bin:$PATH"
3981 for ac_dir in $ac_dummy; do
3982 test -z "$ac_dir" && ac_dir=.
3983 if test -f $ac_dir/file; then
3984 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3985 if test -n "$file_magic_test_file"; then
3986 case $deplibs_check_method in
3987 "file_magic "*)
3988 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3991 egrep "$file_magic_regex" > /dev/null; then
3993 else
3994 cat <<EOF 1>&2
3996 *** Warning: the command libtool uses to detect shared libraries,
3997 *** $file_magic_cmd, produces output that libtool cannot recognize.
3998 *** The result is that libtool may fail to recognize shared libraries
3999 *** as such. This will affect the creation of libtool libraries that
4000 *** depend on shared libraries, but programs linked with such libtool
4001 *** libraries will work regardless of this problem. Nevertheless, you
4002 *** may want to report the problem to your system manager and/or to
4003 *** bug-libtool@gnu.org
4006 fi ;;
4007 esac
4009 break
4011 done
4012 IFS="$ac_save_ifs"
4013 MAGIC_CMD="$ac_save_MAGIC_CMD"
4015 esac
4018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4019 if test -n "$MAGIC_CMD"; then
4020 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4021 echo "${ECHO_T}$MAGIC_CMD" >&6
4022 else
4023 echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4027 else
4028 MAGIC_CMD=:
4034 esac
4036 if test -n "$ac_tool_prefix"; then
4037 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4039 echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_prog_RANLIB+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044 if test -n "$RANLIB"; then
4045 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4058 done
4059 done
4063 RANLIB=$ac_cv_prog_RANLIB
4064 if test -n "$RANLIB"; then
4065 echo "$as_me:$LINENO: result: $RANLIB" >&5
4066 echo "${ECHO_T}$RANLIB" >&6
4067 else
4068 echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4073 if test -z "$ac_cv_prog_RANLIB"; then
4074 ac_ct_RANLIB=$RANLIB
4075 # Extract the first word of "ranlib", so it can be a program name with args.
4076 set dummy ranlib; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 if test -n "$ac_ct_RANLIB"; then
4083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_ac_ct_RANLIB="ranlib"
4093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 break 2
4096 done
4097 done
4099 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4103 if test -n "$ac_ct_RANLIB"; then
4104 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4105 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4106 else
4107 echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4111 RANLIB=$ac_ct_RANLIB
4112 else
4113 RANLIB="$ac_cv_prog_RANLIB"
4116 if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}strip; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_STRIP+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 if test -n "$STRIP"; then
4125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4138 done
4139 done
4143 STRIP=$ac_cv_prog_STRIP
4144 if test -n "$STRIP"; then
4145 echo "$as_me:$LINENO: result: $STRIP" >&5
4146 echo "${ECHO_T}$STRIP" >&6
4147 else
4148 echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4153 if test -z "$ac_cv_prog_STRIP"; then
4154 ac_ct_STRIP=$STRIP
4155 # Extract the first word of "strip", so it can be a program name with args.
4156 set dummy strip; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 if test -n "$ac_ct_STRIP"; then
4163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_ac_ct_STRIP="strip"
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4176 done
4177 done
4179 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4183 if test -n "$ac_ct_STRIP"; then
4184 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4185 echo "${ECHO_T}$ac_ct_STRIP" >&6
4186 else
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4191 STRIP=$ac_ct_STRIP
4192 else
4193 STRIP="$ac_cv_prog_STRIP"
4197 # Check for any special flags to pass to ltconfig.
4198 libtool_flags="--cache-file=$cache_file"
4199 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4200 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4201 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4202 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4203 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4206 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4207 if test "${enable_libtool_lock+set}" = set; then
4208 enableval="$enable_libtool_lock"
4211 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4212 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4215 # Check whether --with-pic or --without-pic was given.
4216 if test "${with_pic+set}" = set; then
4217 withval="$with_pic"
4218 pic_mode="$withval"
4219 else
4220 pic_mode=default
4222 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4223 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4225 # Some flags need to be propagated to the compiler or linker for good
4226 # libtool support.
4227 case $host in
4228 *-*-irix6*)
4229 # Find out which ABI we are using.
4230 echo '#line 4230 "configure"' > conftest.$ac_ext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4232 (eval $ac_compile) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; then
4236 if test "$lt_cv_prog_gnu_ld" = yes; then
4237 case `/usr/bin/file conftest.$ac_objext` in
4238 *32-bit*)
4239 LD="${LD-ld} -melf32bsmip"
4241 *N32*)
4242 LD="${LD-ld} -melf32bmipn32"
4244 *64-bit*)
4245 LD="${LD-ld} -melf64bmip"
4247 esac
4248 else
4249 case `/usr/bin/file conftest.$ac_objext` in
4250 *32-bit*)
4251 LD="${LD-ld} -32"
4253 *N32*)
4254 LD="${LD-ld} -n32"
4256 *64-bit*)
4257 LD="${LD-ld} -64"
4259 esac
4262 rm -rf conftest*
4265 ia64-*-hpux*)
4266 # Find out which ABI we are using.
4267 echo 'int i;' > conftest.$ac_ext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4269 (eval $ac_compile) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; then
4273 case "`/usr/bin/file conftest.o`" in
4274 *ELF-32*)
4275 HPUX_IA64_MODE="32"
4277 *ELF-64*)
4278 HPUX_IA64_MODE="64"
4280 esac
4282 rm -rf conftest*
4285 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4286 # Find out which ABI we are using.
4287 echo 'int i;' > conftest.$ac_ext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; then
4293 case "`/usr/bin/file conftest.o`" in
4294 *32-bit*)
4295 case $host in
4296 x86_64-*linux*)
4297 LD="${LD-ld} -m elf_i386"
4299 ppc64-*linux*|powerpc64-*linux*)
4300 LD="${LD-ld} -m elf32ppclinux"
4302 s390x-*linux*)
4303 LD="${LD-ld} -m elf_s390"
4305 sparc64-*linux*)
4306 LD="${LD-ld} -m elf32_sparc"
4308 esac
4310 *64-bit*)
4311 case $host in
4312 x86_64-*linux*)
4313 LD="${LD-ld} -m elf_x86_64"
4315 ppc*-*linux*|powerpc*-*linux*)
4316 LD="${LD-ld} -m elf64ppc"
4318 s390*-*linux*)
4319 LD="${LD-ld} -m elf64_s390"
4321 sparc*-*linux*)
4322 LD="${LD-ld} -m elf64_sparc"
4324 esac
4326 esac
4328 rm -rf conftest*
4331 *-*-sco3.2v5*)
4332 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4333 SAVE_CFLAGS="$CFLAGS"
4334 CFLAGS="$CFLAGS -belf"
4335 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4336 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4337 if test "${lt_cv_cc_needs_belf+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4342 ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h. */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4356 main ()
4360 return 0;
4362 _ACEOF
4363 rm -f conftest.$ac_objext conftest$ac_exeext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest$ac_exeext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 (eval $ac_try) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 lt_cv_cc_needs_belf=yes
4386 else
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 lt_cv_cc_needs_belf=no
4392 rm -f conftest.err conftest.$ac_objext \
4393 conftest$ac_exeext conftest.$ac_ext
4394 ac_ext=c
4395 ac_cpp='$CPP $CPPFLAGS'
4396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4402 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4403 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4404 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4405 CFLAGS="$SAVE_CFLAGS"
4410 esac
4413 # Save cache, so that ltconfig can load it
4414 cat >confcache <<\_ACEOF
4415 # This file is a shell script that caches the results of configure
4416 # tests run on this system so they can be shared between configure
4417 # scripts and configure runs, see configure's option --config-cache.
4418 # It is not useful on other systems. If it contains results you don't
4419 # want to keep, you may remove or edit it.
4421 # config.status only pays attention to the cache file if you give it
4422 # the --recheck option to rerun configure.
4424 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4425 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4426 # following values.
4428 _ACEOF
4430 # The following way of writing the cache mishandles newlines in values,
4431 # but we know of no workaround that is simple, portable, and efficient.
4432 # So, don't put newlines in cache variables' values.
4433 # Ultrix sh set writes to stderr and can't be redirected directly,
4434 # and sets the high bit in the cache file unless we assign to the vars.
4436 (set) 2>&1 |
4437 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4438 *ac_space=\ *)
4439 # `set' does not quote correctly, so add quotes (double-quote
4440 # substitution turns \\\\ into \\, and sed turns \\ into \).
4441 sed -n \
4442 "s/'/'\\\\''/g;
4443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4446 # `set' quotes correctly as required by POSIX, so do not add quotes.
4447 sed -n \
4448 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4450 esac;
4452 sed '
4453 t clear
4454 : clear
4455 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4456 t end
4457 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4458 : end' >>confcache
4459 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4460 if test -w $cache_file; then
4461 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4462 cat confcache >$cache_file
4463 else
4464 echo "not updating unwritable cache $cache_file"
4467 rm -f confcache
4469 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4470 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4471 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4472 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4473 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4474 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4475 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4476 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4477 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4478 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4479 echo "$as_me: error: libtool configure failed" >&2;}
4480 { (exit 1); exit 1; }; }
4482 # Reload cache, that may have been modified by ltconfig
4483 if test -r "$cache_file"; then
4484 # Some versions of bash will fail to source /dev/null (special
4485 # files actually), so we avoid doing that.
4486 if test -f "$cache_file"; then
4487 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4488 echo "$as_me: loading cache $cache_file" >&6;}
4489 case $cache_file in
4490 [\\/]* | ?:[\\/]* ) . $cache_file;;
4491 *) . ./$cache_file;;
4492 esac
4494 else
4495 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4496 echo "$as_me: creating cache $cache_file" >&6;}
4497 >$cache_file
4501 # This can be used to rebuild libtool when needed
4502 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4504 # Always use our own libtool.
4505 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4507 # Redirect the config.log output again, so that the ltconfig log is not
4508 # clobbered by the next message.
4509 exec 5>>./config.log
4519 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4520 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4521 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4522 if test "${enable_maintainer_mode+set}" = set; then
4523 enableval="$enable_maintainer_mode"
4524 USE_MAINTAINER_MODE=$enableval
4525 else
4526 USE_MAINTAINER_MODE=no
4528 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4529 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4532 if test $USE_MAINTAINER_MODE = yes; then
4533 MAINTAINER_MODE_TRUE=
4534 MAINTAINER_MODE_FALSE='#'
4535 else
4536 MAINTAINER_MODE_TRUE='#'
4537 MAINTAINER_MODE_FALSE=
4540 MAINT=$MAINTAINER_MODE_TRUE
4544 # We need gfortran to compile parts of the library
4545 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4546 #AC_PROG_FC(gfortran)
4547 FC="$GFORTRAN"
4548 ac_ext=${FC_SRCEXT-f}
4549 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4550 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4552 if test -n "$ac_tool_prefix"; then
4553 for ac_prog in gfortran
4555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4557 echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4559 if test "${ac_cv_prog_FC+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562 if test -n "$FC"; then
4563 ac_cv_prog_FC="$FC" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4581 FC=$ac_cv_prog_FC
4582 if test -n "$FC"; then
4583 echo "$as_me:$LINENO: result: $FC" >&5
4584 echo "${ECHO_T}$FC" >&6
4585 else
4586 echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6
4590 test -n "$FC" && break
4591 done
4593 if test -z "$FC"; then
4594 ac_ct_FC=$FC
4595 for ac_prog in gfortran
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 if test -n "$ac_ct_FC"; then
4605 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_ac_ct_FC="$ac_prog"
4615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4618 done
4619 done
4623 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4624 if test -n "$ac_ct_FC"; then
4625 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4626 echo "${ECHO_T}$ac_ct_FC" >&6
4627 else
4628 echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6
4632 test -n "$ac_ct_FC" && break
4633 done
4635 FC=$ac_ct_FC
4639 # Provide some information about the compiler.
4640 echo "$as_me:4640:" \
4641 "checking for Fortran compiler version" >&5
4642 ac_compiler=`set X $ac_compile; echo $2`
4643 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4644 (eval $ac_compiler --version </dev/null >&5) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }
4648 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4649 (eval $ac_compiler -v </dev/null >&5) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }
4653 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4654 (eval $ac_compiler -V </dev/null >&5) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }
4658 rm -f a.out
4660 # If we don't use `.F' as extension, the preprocessor is not run on the
4661 # input file. (Note that this only needs to work for GNU compilers.)
4662 ac_save_ext=$ac_ext
4663 ac_ext=F
4664 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4665 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4666 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 cat >conftest.$ac_ext <<_ACEOF
4670 program main
4671 #ifndef __GNUC__
4672 choke me
4673 #endif
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>conftest.er1
4680 ac_status=$?
4681 grep -v '^ *+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -z "$ac_fc_werror_flag"
4687 || test ! -s conftest.err'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; } &&
4693 { ac_try='test -s conftest.$ac_objext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_compiler_gnu=yes
4700 else
4701 echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4704 ac_compiler_gnu=no
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4710 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4711 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4712 ac_ext=$ac_save_ext
4713 ac_test_FFLAGS=${FCFLAGS+set}
4714 ac_save_FFLAGS=$FCFLAGS
4715 FCFLAGS=
4716 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4717 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4718 if test "${ac_cv_prog_fc_g+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721 FCFLAGS=-g
4722 cat >conftest.$ac_ext <<_ACEOF
4723 program main
4726 _ACEOF
4727 rm -f conftest.$ac_objext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729 (eval $ac_compile) 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
4736 { ac_try='test -z "$ac_fc_werror_flag"
4737 || test ! -s conftest.err'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; } &&
4743 { ac_try='test -s conftest.$ac_objext'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4749 ac_cv_prog_fc_g=yes
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 ac_cv_prog_fc_g=no
4756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4760 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4761 if test "$ac_test_FFLAGS" = set; then
4762 FCFLAGS=$ac_save_FFLAGS
4763 elif test $ac_cv_prog_fc_g = yes; then
4764 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4765 FCFLAGS="-g -O2"
4766 else
4767 FCFLAGS="-g"
4769 else
4770 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4771 FCFLAGS="-O2"
4772 else
4773 FCFLAGS=
4777 ac_ext=c
4778 ac_cpp='$CPP $CPPFLAGS'
4779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4783 FCFLAGS="$FCFLAGS -Wall"
4785 # For libtool versioning info, format is CURRENT:REVISION:AGE
4786 libtool_VERSION=1:0:0
4789 # Check header files.
4790 ac_ext=c
4791 ac_cpp='$CPP $CPPFLAGS'
4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4796 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4797 # On Suns, sometimes $CPP names a directory.
4798 if test -n "$CPP" && test -d "$CPP"; then
4799 CPP=
4801 if test -z "$CPP"; then
4802 if test "${ac_cv_prog_CPP+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 # Double quotes because CPP needs to be expanded
4806 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4808 ac_preproc_ok=false
4809 for ac_c_preproc_warn_flag in '' yes
4811 # Use a header file that comes with gcc, so configuring glibc
4812 # with a fresh cross-compiler works.
4813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4814 # <limits.h> exists even on freestanding compilers.
4815 # On the NeXT, cc -E runs the code through the compiler's parser,
4816 # not just through cpp. "Syntax error" is here to catch this case.
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #ifdef __STDC__
4824 # include <limits.h>
4825 #else
4826 # include <assert.h>
4827 #endif
4828 Syntax error
4829 _ACEOF
4830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } >/dev/null; then
4838 if test -s conftest.err; then
4839 ac_cpp_err=$ac_c_preproc_warn_flag
4840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4841 else
4842 ac_cpp_err=
4844 else
4845 ac_cpp_err=yes
4847 if test -z "$ac_cpp_err"; then
4849 else
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 # Broken: fails on valid input.
4854 continue
4856 rm -f conftest.err conftest.$ac_ext
4858 # OK, works on sane cases. Now check whether non-existent headers
4859 # can be detected and how.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4867 _ACEOF
4868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } >/dev/null; then
4876 if test -s conftest.err; then
4877 ac_cpp_err=$ac_c_preproc_warn_flag
4878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4879 else
4880 ac_cpp_err=
4882 else
4883 ac_cpp_err=yes
4885 if test -z "$ac_cpp_err"; then
4886 # Broken: success on invalid input.
4887 continue
4888 else
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 # Passes both tests.
4893 ac_preproc_ok=:
4894 break
4896 rm -f conftest.err conftest.$ac_ext
4898 done
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.err conftest.$ac_ext
4901 if $ac_preproc_ok; then
4902 break
4905 done
4906 ac_cv_prog_CPP=$CPP
4909 CPP=$ac_cv_prog_CPP
4910 else
4911 ac_cv_prog_CPP=$CPP
4913 echo "$as_me:$LINENO: result: $CPP" >&5
4914 echo "${ECHO_T}$CPP" >&6
4915 ac_preproc_ok=false
4916 for ac_c_preproc_warn_flag in '' yes
4918 # Use a header file that comes with gcc, so configuring glibc
4919 # with a fresh cross-compiler works.
4920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 # <limits.h> exists even on freestanding compilers.
4922 # On the NeXT, cc -E runs the code through the compiler's parser,
4923 # not just through cpp. "Syntax error" is here to catch this case.
4924 cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h. */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 #ifdef __STDC__
4931 # include <limits.h>
4932 #else
4933 # include <assert.h>
4934 #endif
4935 Syntax error
4936 _ACEOF
4937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } >/dev/null; then
4945 if test -s conftest.err; then
4946 ac_cpp_err=$ac_c_preproc_warn_flag
4947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4948 else
4949 ac_cpp_err=
4951 else
4952 ac_cpp_err=yes
4954 if test -z "$ac_cpp_err"; then
4956 else
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4960 # Broken: fails on valid input.
4961 continue
4963 rm -f conftest.err conftest.$ac_ext
4965 # OK, works on sane cases. Now check whether non-existent headers
4966 # can be detected and how.
4967 cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h. */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #include <ac_nonexistent.h>
4974 _ACEOF
4975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } >/dev/null; then
4983 if test -s conftest.err; then
4984 ac_cpp_err=$ac_c_preproc_warn_flag
4985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4986 else
4987 ac_cpp_err=
4989 else
4990 ac_cpp_err=yes
4992 if test -z "$ac_cpp_err"; then
4993 # Broken: success on invalid input.
4994 continue
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 # Passes both tests.
5000 ac_preproc_ok=:
5001 break
5003 rm -f conftest.err conftest.$ac_ext
5005 done
5006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5007 rm -f conftest.err conftest.$ac_ext
5008 if $ac_preproc_ok; then
5010 else
5011 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5012 See \`config.log' for more details." >&5
5013 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5014 See \`config.log' for more details." >&2;}
5015 { (exit 1); exit 1; }; }
5018 ac_ext=c
5019 ac_cpp='$CPP $CPPFLAGS'
5020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5025 echo "$as_me:$LINENO: checking for egrep" >&5
5026 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5027 if test "${ac_cv_prog_egrep+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5031 then ac_cv_prog_egrep='grep -E'
5032 else ac_cv_prog_egrep='egrep'
5035 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5036 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5037 EGREP=$ac_cv_prog_egrep
5040 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5042 if test "${ac_cv_header_stdc+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h. */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 #include <stdlib.h>
5052 #include <stdarg.h>
5053 #include <string.h>
5054 #include <float.h>
5057 main ()
5061 return 0;
5063 _ACEOF
5064 rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_c_werror_flag"
5074 || test ! -s conftest.err'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest.$ac_objext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 ac_cv_header_stdc=yes
5087 else
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091 ac_cv_header_stdc=no
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 if test $ac_cv_header_stdc = yes; then
5096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h. */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #include <string.h>
5105 _ACEOF
5106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5107 $EGREP "memchr" >/dev/null 2>&1; then
5109 else
5110 ac_cv_header_stdc=no
5112 rm -f conftest*
5116 if test $ac_cv_header_stdc = yes; then
5117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5118 cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h. */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5124 #include <stdlib.h>
5126 _ACEOF
5127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5128 $EGREP "free" >/dev/null 2>&1; then
5130 else
5131 ac_cv_header_stdc=no
5133 rm -f conftest*
5137 if test $ac_cv_header_stdc = yes; then
5138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5139 if test "$cross_compiling" = yes; then
5141 else
5142 cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h. */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 #include <ctype.h>
5149 #if ((' ' & 0x0FF) == 0x020)
5150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5152 #else
5153 # define ISLOWER(c) \
5154 (('a' <= (c) && (c) <= 'i') \
5155 || ('j' <= (c) && (c) <= 'r') \
5156 || ('s' <= (c) && (c) <= 'z'))
5157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5158 #endif
5160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5162 main ()
5164 int i;
5165 for (i = 0; i < 256; i++)
5166 if (XOR (islower (i), ISLOWER (i))
5167 || toupper (i) != TOUPPER (i))
5168 exit(2);
5169 exit (0);
5171 _ACEOF
5172 rm -f conftest$ac_exeext
5173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5174 (eval $ac_link) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 (eval $ac_try) 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5184 else
5185 echo "$as_me: program exited with status $ac_status" >&5
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 ( exit $ac_status )
5190 ac_cv_header_stdc=no
5192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5196 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5197 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5198 if test $ac_cv_header_stdc = yes; then
5200 cat >>confdefs.h <<\_ACEOF
5201 #define STDC_HEADERS 1
5202 _ACEOF
5206 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5207 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5208 if test "${ac_cv_header_time+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h. */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 #include <sys/types.h>
5218 #include <sys/time.h>
5219 #include <time.h>
5222 main ()
5224 if ((struct tm *) 0)
5225 return 0;
5227 return 0;
5229 _ACEOF
5230 rm -f conftest.$ac_objext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5232 (eval $ac_compile) 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try='test -z "$ac_c_werror_flag"
5240 || test ! -s conftest.err'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 (eval $ac_try) 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; } &&
5246 { ac_try='test -s conftest.$ac_objext'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 (eval $ac_try) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; }; then
5252 ac_cv_header_time=yes
5253 else
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5257 ac_cv_header_time=no
5259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5261 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5262 echo "${ECHO_T}$ac_cv_header_time" >&6
5263 if test $ac_cv_header_time = yes; then
5265 cat >>confdefs.h <<\_ACEOF
5266 #define TIME_WITH_SYS_TIME 1
5267 _ACEOF
5271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5282 inttypes.h stdint.h unistd.h
5284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5285 echo "$as_me:$LINENO: checking for $ac_header" >&5
5286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 $ac_includes_default
5298 #include <$ac_header>
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>conftest.er1
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -z "$ac_c_werror_flag"
5310 || test ! -s conftest.err'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 (eval $ac_try) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; } &&
5316 { ac_try='test -s conftest.$ac_objext'
5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 (eval $ac_try) 2>&5
5319 ac_status=$?
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); }; }; then
5322 eval "$as_ac_Header=yes"
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 eval "$as_ac_Header=no"
5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5334 cat >>confdefs.h <<_ACEOF
5335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5336 _ACEOF
5340 done
5347 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5351 echo "$as_me:$LINENO: checking for $ac_header" >&5
5352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5358 else
5359 # Is the header compilable?
5360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5369 #include <$ac_header>
5370 _ACEOF
5371 rm -f conftest.$ac_objext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>conftest.er1
5374 ac_status=$?
5375 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -z "$ac_c_werror_flag"
5381 || test ! -s conftest.err'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; } &&
5387 { ac_try='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_header_compiler=yes
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 ac_header_compiler=no
5400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5402 echo "${ECHO_T}$ac_header_compiler" >&6
5404 # Is the header present?
5405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 #include <$ac_header>
5414 _ACEOF
5415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } >/dev/null; then
5423 if test -s conftest.err; then
5424 ac_cpp_err=$ac_c_preproc_warn_flag
5425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5426 else
5427 ac_cpp_err=
5429 else
5430 ac_cpp_err=yes
5432 if test -z "$ac_cpp_err"; then
5433 ac_header_preproc=yes
5434 else
5435 echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5438 ac_header_preproc=no
5440 rm -f conftest.err conftest.$ac_ext
5441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5442 echo "${ECHO_T}$ac_header_preproc" >&6
5444 # So? What about this header?
5445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5446 yes:no: )
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5451 ac_header_preproc=yes
5453 no:yes:* )
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5467 cat <<\_ASBOX
5468 ## ----------------------------------------------------- ##
5469 ## Report this to the GNU OpenMP Runtime Library lists. ##
5470 ## ----------------------------------------------------- ##
5471 _ASBOX
5473 sed "s/^/$as_me: WARNING: /" >&2
5475 esac
5476 echo "$as_me:$LINENO: checking for $ac_header" >&5
5477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 eval "$as_ac_Header=\$ac_header_preproc"
5483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5488 cat >>confdefs.h <<_ACEOF
5489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5490 _ACEOF
5494 done
5499 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
5501 acx_cv_header_stdint=stddef.h
5502 acx_cv_header_stdint_kind="(already complete)"
5503 for i in stdint.h $inttype_headers; do
5504 unset ac_cv_type_uintptr_t
5505 unset ac_cv_type_uintmax_t
5506 unset ac_cv_type_int_least32_t
5507 unset ac_cv_type_int_fast32_t
5508 unset ac_cv_type_uint64_t
5509 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5510 echo "$as_me:$LINENO: checking for uintmax_t" >&5
5511 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5512 if test "${ac_cv_type_uintmax_t+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 #include <sys/types.h>
5522 #include <$i>
5525 main ()
5527 if ((uintmax_t *) 0)
5528 return 0;
5529 if (sizeof (uintmax_t))
5530 return 0;
5532 return 0;
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537 (eval $ac_compile) 2>conftest.er1
5538 ac_status=$?
5539 grep -v '^ *+' conftest.er1 >conftest.err
5540 rm -f conftest.er1
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try='test -z "$ac_c_werror_flag"
5545 || test ! -s conftest.err'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; } &&
5551 { ac_try='test -s conftest.$ac_objext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 (eval $ac_try) 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_type_uintmax_t=yes
5558 else
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 ac_cv_type_uintmax_t=no
5564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5566 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5567 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5568 if test $ac_cv_type_uintmax_t = yes; then
5569 acx_cv_header_stdint=$i
5570 else
5571 continue
5574 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5575 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5576 if test "${ac_cv_type_uintptr_t+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #include <sys/types.h>
5586 #include <$i>
5589 main ()
5591 if ((uintptr_t *) 0)
5592 return 0;
5593 if (sizeof (uintptr_t))
5594 return 0;
5596 return 0;
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601 (eval $ac_compile) 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } &&
5608 { ac_try='test -z "$ac_c_werror_flag"
5609 || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_type_uintptr_t=yes
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 ac_cv_type_uintptr_t=no
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5631 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5632 if test $ac_cv_type_uintptr_t = yes; then
5634 else
5635 acx_cv_header_stdint_kind="(mostly complete)"
5638 echo "$as_me:$LINENO: checking for int_least32_t" >&5
5639 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5640 if test "${ac_cv_type_int_least32_t+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <sys/types.h>
5650 #include <$i>
5653 main ()
5655 if ((int_least32_t *) 0)
5656 return 0;
5657 if (sizeof (int_least32_t))
5658 return 0;
5660 return 0;
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 ac_cv_type_int_least32_t=yes
5686 else
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 ac_cv_type_int_least32_t=no
5692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5694 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5695 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5696 if test $ac_cv_type_int_least32_t = yes; then
5698 else
5699 acx_cv_header_stdint_kind="(mostly complete)"
5702 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5703 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5704 if test "${ac_cv_type_int_fast32_t+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5714 #include <$i>
5717 main ()
5719 if ((int_fast32_t *) 0)
5720 return 0;
5721 if (sizeof (int_fast32_t))
5722 return 0;
5724 return 0;
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 ac_cv_type_int_fast32_t=yes
5750 else
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 ac_cv_type_int_fast32_t=no
5756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5758 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5759 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5760 if test $ac_cv_type_int_fast32_t = yes; then
5762 else
5763 acx_cv_header_stdint_kind="(mostly complete)"
5766 echo "$as_me:$LINENO: checking for uint64_t" >&5
5767 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5768 if test "${ac_cv_type_uint64_t+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 #include <sys/types.h>
5778 #include <$i>
5781 main ()
5783 if ((uint64_t *) 0)
5784 return 0;
5785 if (sizeof (uint64_t))
5786 return 0;
5788 return 0;
5790 _ACEOF
5791 rm -f conftest.$ac_objext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793 (eval $ac_compile) 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -z "$ac_c_werror_flag"
5801 || test ! -s conftest.err'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 (eval $ac_try) 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 (eval $ac_try) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 ac_cv_type_uint64_t=yes
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 ac_cv_type_uint64_t=no
5820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5823 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5824 if test $ac_cv_type_uint64_t = yes; then
5826 else
5827 acx_cv_header_stdint_kind="(lacks uint64_t)"
5830 break
5831 done
5832 if test "$acx_cv_header_stdint" = stddef.h; then
5833 acx_cv_header_stdint_kind="(lacks uintmax_t)"
5834 for i in stdint.h $inttype_headers; do
5835 unset ac_cv_type_uintptr_t
5836 unset ac_cv_type_uint32_t
5837 unset ac_cv_type_uint64_t
5838 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5839 echo "$as_me:$LINENO: checking for uint32_t" >&5
5840 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5841 if test "${ac_cv_type_uint32_t+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 #include <sys/types.h>
5851 #include <$i>
5854 main ()
5856 if ((uint32_t *) 0)
5857 return 0;
5858 if (sizeof (uint32_t))
5859 return 0;
5861 return 0;
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_type_uint32_t=yes
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 ac_cv_type_uint32_t=no
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5896 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5897 if test $ac_cv_type_uint32_t = yes; then
5898 acx_cv_header_stdint=$i
5899 else
5900 continue
5903 echo "$as_me:$LINENO: checking for uint64_t" >&5
5904 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5905 if test "${ac_cv_type_uint64_t+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h. */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <sys/types.h>
5915 #include <$i>
5918 main ()
5920 if ((uint64_t *) 0)
5921 return 0;
5922 if (sizeof (uint64_t))
5923 return 0;
5925 return 0;
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_type_uint64_t=yes
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5955 ac_cv_type_uint64_t=no
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5960 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5962 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5963 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5964 if test "${ac_cv_type_uintptr_t+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <sys/types.h>
5974 #include <$i>
5977 main ()
5979 if ((uintptr_t *) 0)
5980 return 0;
5981 if (sizeof (uintptr_t))
5982 return 0;
5984 return 0;
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989 (eval $ac_compile) 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag"
5997 || test ! -s conftest.err'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_type_uintptr_t=yes
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 ac_cv_type_uintptr_t=no
6016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6019 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
6021 break
6022 done
6024 if test "$acx_cv_header_stdint" = stddef.h; then
6025 acx_cv_header_stdint_kind="(u_intXX_t style)"
6026 for i in sys/types.h $inttype_headers; do
6027 unset ac_cv_type_u_int32_t
6028 unset ac_cv_type_u_int64_t
6029 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
6030 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6031 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6032 if test "${ac_cv_type_u_int32_t+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035 cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h. */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <sys/types.h>
6042 #include <$i>
6045 main ()
6047 if ((u_int32_t *) 0)
6048 return 0;
6049 if (sizeof (u_int32_t))
6050 return 0;
6052 return 0;
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057 (eval $ac_compile) 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try='test -z "$ac_c_werror_flag"
6065 || test ! -s conftest.err'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 (eval $ac_try) 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; } &&
6071 { ac_try='test -s conftest.$ac_objext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_cv_type_u_int32_t=yes
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6082 ac_cv_type_u_int32_t=no
6084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6087 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6088 if test $ac_cv_type_u_int32_t = yes; then
6089 acx_cv_header_stdint=$i
6090 else
6091 continue
6094 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6095 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6096 if test "${ac_cv_type_u_int64_t+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <sys/types.h>
6106 #include <$i>
6109 main ()
6111 if ((u_int64_t *) 0)
6112 return 0;
6113 if (sizeof (u_int64_t))
6114 return 0;
6116 return 0;
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_type_u_int64_t=yes
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 ac_cv_type_u_int64_t=no
6148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6151 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6153 break
6154 done
6156 if test "$acx_cv_header_stdint" = stddef.h; then
6157 acx_cv_header_stdint_kind="(using manual detection)"
6160 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6161 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6162 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6163 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6164 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6166 # ----------------- Summarize what we found so far
6168 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6169 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6171 case `$as_basename gstdint.h ||
6172 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6173 Xgstdint.h : 'X\(//\)$' \| \
6174 Xgstdint.h : 'X\(/\)$' \| \
6175 . : '\(.\)' 2>/dev/null ||
6176 echo X/gstdint.h |
6177 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6178 /^X\/\(\/\/\)$/{ s//\1/; q; }
6179 /^X\/\(\/\).*/{ s//\1/; q; }
6180 s/.*/./; q'` in
6181 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6182 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6183 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6184 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6185 *) ;;
6186 esac
6188 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6189 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6191 # ----------------- done included file, check C basic types --------
6193 # Lacking an uintptr_t? Test size of void *
6194 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6195 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6196 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6197 if test "${ac_cv_type_void_p+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200 cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 $ac_includes_default
6208 main ()
6210 if ((void * *) 0)
6211 return 0;
6212 if (sizeof (void *))
6213 return 0;
6215 return 0;
6217 _ACEOF
6218 rm -f conftest.$ac_objext
6219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220 (eval $ac_compile) 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } &&
6227 { ac_try='test -z "$ac_c_werror_flag"
6228 || test ! -s conftest.err'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; } &&
6234 { ac_try='test -s conftest.$ac_objext'
6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 (eval $ac_try) 2>&5
6237 ac_status=$?
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; }; then
6240 ac_cv_type_void_p=yes
6241 else
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 ac_cv_type_void_p=no
6247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6249 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6250 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6252 echo "$as_me:$LINENO: checking size of void *" >&5
6253 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6254 if test "${ac_cv_sizeof_void_p+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257 if test "$ac_cv_type_void_p" = yes; then
6258 # The cast to unsigned long works around a bug in the HP C Compiler
6259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6261 # This bug is HP SR number 8606223364.
6262 if test "$cross_compiling" = yes; then
6263 # Depending upon the size, compute the lo and hi bounds.
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 $ac_includes_default
6272 main ()
6274 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6275 test_array [0] = 0
6278 return 0;
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_lo=0 ac_mid=0
6304 while :; do
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 $ac_includes_default
6313 main ()
6315 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6316 test_array [0] = 0
6319 return 0;
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>conftest.er1
6325 ac_status=$?
6326 grep -v '^ *+' conftest.er1 >conftest.err
6327 rm -f conftest.er1
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try='test -z "$ac_c_werror_flag"
6332 || test ! -s conftest.err'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; } &&
6338 { ac_try='test -s conftest.$ac_objext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_hi=$ac_mid; break
6345 else
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_lo=`expr $ac_mid + 1`
6350 if test $ac_lo -le $ac_mid; then
6351 ac_lo= ac_hi=
6352 break
6354 ac_mid=`expr 2 '*' $ac_mid + 1`
6356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6357 done
6358 else
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 $ac_includes_default
6370 main ()
6372 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6373 test_array [0] = 0
6376 return 0;
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6381 (eval $ac_compile) 2>conftest.er1
6382 ac_status=$?
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -z "$ac_c_werror_flag"
6389 || test ! -s conftest.err'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 (eval $ac_try) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6401 ac_hi=-1 ac_mid=-1
6402 while :; do
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h. */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h. */
6409 $ac_includes_default
6411 main ()
6413 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6414 test_array [0] = 0
6417 return 0;
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>conftest.er1
6423 ac_status=$?
6424 grep -v '^ *+' conftest.er1 >conftest.err
6425 rm -f conftest.er1
6426 cat conftest.err >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try='test -z "$ac_c_werror_flag"
6430 || test ! -s conftest.err'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; } &&
6436 { ac_try='test -s conftest.$ac_objext'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; }; then
6442 ac_lo=$ac_mid; break
6443 else
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6447 ac_hi=`expr '(' $ac_mid ')' - 1`
6448 if test $ac_mid -le $ac_hi; then
6449 ac_lo= ac_hi=
6450 break
6452 ac_mid=`expr 2 '*' $ac_mid`
6454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455 done
6456 else
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 ac_lo= ac_hi=
6462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6465 # Binary search between lo and hi bounds.
6466 while test "x$ac_lo" != "x$ac_hi"; do
6467 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6468 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6476 main ()
6478 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6479 test_array [0] = 0
6482 return 0;
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } &&
6494 { ac_try='test -z "$ac_c_werror_flag"
6495 || test ! -s conftest.err'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; } &&
6501 { ac_try='test -s conftest.$ac_objext'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 (eval $ac_try) 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
6507 ac_hi=$ac_mid
6508 else
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6512 ac_lo=`expr '(' $ac_mid ')' + 1`
6514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6515 done
6516 case $ac_lo in
6517 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6518 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6519 See \`config.log' for more details." >&5
6520 echo "$as_me: error: cannot compute sizeof (void *), 77
6521 See \`config.log' for more details." >&2;}
6522 { (exit 1); exit 1; }; } ;;
6523 esac
6524 else
6525 if test "$cross_compiling" = yes; then
6526 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6527 See \`config.log' for more details." >&5
6528 echo "$as_me: error: cannot run test program while cross compiling
6529 See \`config.log' for more details." >&2;}
6530 { (exit 1); exit 1; }; }
6531 else
6532 cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h. */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 $ac_includes_default
6539 long longval () { return (long) (sizeof (void *)); }
6540 unsigned long ulongval () { return (long) (sizeof (void *)); }
6541 #include <stdio.h>
6542 #include <stdlib.h>
6544 main ()
6547 FILE *f = fopen ("conftest.val", "w");
6548 if (! f)
6549 exit (1);
6550 if (((long) (sizeof (void *))) < 0)
6552 long i = longval ();
6553 if (i != ((long) (sizeof (void *))))
6554 exit (1);
6555 fprintf (f, "%ld\n", i);
6557 else
6559 unsigned long i = ulongval ();
6560 if (i != ((long) (sizeof (void *))))
6561 exit (1);
6562 fprintf (f, "%lu\n", i);
6564 exit (ferror (f) || fclose (f) != 0);
6567 return 0;
6569 _ACEOF
6570 rm -f conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572 (eval $ac_link) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 ac_cv_sizeof_void_p=`cat conftest.val`
6582 else
6583 echo "$as_me: program exited with status $ac_status" >&5
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6587 ( exit $ac_status )
6588 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6589 See \`config.log' for more details." >&5
6590 echo "$as_me: error: cannot compute sizeof (void *), 77
6591 See \`config.log' for more details." >&2;}
6592 { (exit 1); exit 1; }; }
6594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6597 rm -f conftest.val
6598 else
6599 ac_cv_sizeof_void_p=0
6602 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6603 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6604 cat >>confdefs.h <<_ACEOF
6605 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6606 _ACEOF
6609 esac
6611 # Lacking an uint64_t? Test size of long
6612 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6613 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6614 echo $ECHO_N "checking for long... $ECHO_C" >&6
6615 if test "${ac_cv_type_long+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h. */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 $ac_includes_default
6626 main ()
6628 if ((long *) 0)
6629 return 0;
6630 if (sizeof (long))
6631 return 0;
6633 return 0;
6635 _ACEOF
6636 rm -f conftest.$ac_objext
6637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638 (eval $ac_compile) 2>conftest.er1
6639 ac_status=$?
6640 grep -v '^ *+' conftest.er1 >conftest.err
6641 rm -f conftest.er1
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } &&
6645 { ac_try='test -z "$ac_c_werror_flag"
6646 || test ! -s conftest.err'
6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 (eval $ac_try) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; } &&
6652 { ac_try='test -s conftest.$ac_objext'
6653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 (eval $ac_try) 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 ac_cv_type_long=yes
6659 else
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6663 ac_cv_type_long=no
6665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6667 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6668 echo "${ECHO_T}$ac_cv_type_long" >&6
6670 echo "$as_me:$LINENO: checking size of long" >&5
6671 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6672 if test "${ac_cv_sizeof_long+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675 if test "$ac_cv_type_long" = yes; then
6676 # The cast to unsigned long works around a bug in the HP C Compiler
6677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6679 # This bug is HP SR number 8606223364.
6680 if test "$cross_compiling" = yes; then
6681 # Depending upon the size, compute the lo and hi bounds.
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h. */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 $ac_includes_default
6690 main ()
6692 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6693 test_array [0] = 0
6696 return 0;
6698 _ACEOF
6699 rm -f conftest.$ac_objext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701 (eval $ac_compile) 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
6708 { ac_try='test -z "$ac_c_werror_flag"
6709 || test ! -s conftest.err'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; } &&
6715 { ac_try='test -s conftest.$ac_objext'
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 (eval $ac_try) 2>&5
6718 ac_status=$?
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; }; then
6721 ac_lo=0 ac_mid=0
6722 while :; do
6723 cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h. */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 $ac_includes_default
6731 main ()
6733 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6734 test_array [0] = 0
6737 return 0;
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742 (eval $ac_compile) 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_c_werror_flag"
6750 || test ! -s conftest.err'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; } &&
6756 { ac_try='test -s conftest.$ac_objext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 (eval $ac_try) 2>&5
6759 ac_status=$?
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 ac_hi=$ac_mid; break
6763 else
6764 echo "$as_me: failed program was:" >&5
6765 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_lo=`expr $ac_mid + 1`
6768 if test $ac_lo -le $ac_mid; then
6769 ac_lo= ac_hi=
6770 break
6772 ac_mid=`expr 2 '*' $ac_mid + 1`
6774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6775 done
6776 else
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6788 main ()
6790 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6791 test_array [0] = 0
6794 return 0;
6796 _ACEOF
6797 rm -f conftest.$ac_objext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6799 (eval $ac_compile) 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_hi=-1 ac_mid=-1
6820 while :; do
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 $ac_includes_default
6829 main ()
6831 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6832 test_array [0] = 0
6835 return 0;
6837 _ACEOF
6838 rm -f conftest.$ac_objext
6839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6840 (eval $ac_compile) 2>conftest.er1
6841 ac_status=$?
6842 grep -v '^ *+' conftest.er1 >conftest.err
6843 rm -f conftest.er1
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } &&
6847 { ac_try='test -z "$ac_c_werror_flag"
6848 || test ! -s conftest.err'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; } &&
6854 { ac_try='test -s conftest.$ac_objext'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 ac_lo=$ac_mid; break
6861 else
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6865 ac_hi=`expr '(' $ac_mid ')' - 1`
6866 if test $ac_mid -le $ac_hi; then
6867 ac_lo= ac_hi=
6868 break
6870 ac_mid=`expr 2 '*' $ac_mid`
6872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6873 done
6874 else
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 ac_lo= ac_hi=
6880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6883 # Binary search between lo and hi bounds.
6884 while test "x$ac_lo" != "x$ac_hi"; do
6885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h. */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6894 main ()
6896 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6897 test_array [0] = 0
6900 return 0;
6902 _ACEOF
6903 rm -f conftest.$ac_objext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6905 (eval $ac_compile) 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } &&
6912 { ac_try='test -z "$ac_c_werror_flag"
6913 || test ! -s conftest.err'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; } &&
6919 { ac_try='test -s conftest.$ac_objext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 (eval $ac_try) 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 ac_hi=$ac_mid
6926 else
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 ac_lo=`expr '(' $ac_mid ')' + 1`
6932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6933 done
6934 case $ac_lo in
6935 ?*) ac_cv_sizeof_long=$ac_lo;;
6936 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6937 See \`config.log' for more details." >&5
6938 echo "$as_me: error: cannot compute sizeof (long), 77
6939 See \`config.log' for more details." >&2;}
6940 { (exit 1); exit 1; }; } ;;
6941 esac
6942 else
6943 if test "$cross_compiling" = yes; then
6944 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6945 See \`config.log' for more details." >&5
6946 echo "$as_me: error: cannot run test program while cross compiling
6947 See \`config.log' for more details." >&2;}
6948 { (exit 1); exit 1; }; }
6949 else
6950 cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h. */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 $ac_includes_default
6957 long longval () { return (long) (sizeof (long)); }
6958 unsigned long ulongval () { return (long) (sizeof (long)); }
6959 #include <stdio.h>
6960 #include <stdlib.h>
6962 main ()
6965 FILE *f = fopen ("conftest.val", "w");
6966 if (! f)
6967 exit (1);
6968 if (((long) (sizeof (long))) < 0)
6970 long i = longval ();
6971 if (i != ((long) (sizeof (long))))
6972 exit (1);
6973 fprintf (f, "%ld\n", i);
6975 else
6977 unsigned long i = ulongval ();
6978 if (i != ((long) (sizeof (long))))
6979 exit (1);
6980 fprintf (f, "%lu\n", i);
6982 exit (ferror (f) || fclose (f) != 0);
6985 return 0;
6987 _ACEOF
6988 rm -f conftest$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990 (eval $ac_link) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_cv_sizeof_long=`cat conftest.val`
7000 else
7001 echo "$as_me: program exited with status $ac_status" >&5
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ( exit $ac_status )
7006 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7007 See \`config.log' for more details." >&5
7008 echo "$as_me: error: cannot compute sizeof (long), 77
7009 See \`config.log' for more details." >&2;}
7010 { (exit 1); exit 1; }; }
7012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7015 rm -f conftest.val
7016 else
7017 ac_cv_sizeof_long=0
7020 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7021 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7022 cat >>confdefs.h <<_ACEOF
7023 #define SIZEOF_LONG $ac_cv_sizeof_long
7024 _ACEOF
7027 esac
7029 if test $acx_cv_header_stdint = stddef.h; then
7030 # Lacking a good header? Test size of everything and deduce all types.
7031 echo "$as_me:$LINENO: checking for int" >&5
7032 echo $ECHO_N "checking for int... $ECHO_C" >&6
7033 if test "${ac_cv_type_int+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 $ac_includes_default
7044 main ()
7046 if ((int *) 0)
7047 return 0;
7048 if (sizeof (int))
7049 return 0;
7051 return 0;
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -z "$ac_c_werror_flag"
7064 || test ! -s conftest.err'
7065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 (eval $ac_try) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); }; } &&
7070 { ac_try='test -s conftest.$ac_objext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_type_int=yes
7077 else
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7081 ac_cv_type_int=no
7083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7085 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7086 echo "${ECHO_T}$ac_cv_type_int" >&6
7088 echo "$as_me:$LINENO: checking size of int" >&5
7089 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7090 if test "${ac_cv_sizeof_int+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 if test "$ac_cv_type_int" = yes; then
7094 # The cast to unsigned long works around a bug in the HP C Compiler
7095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7097 # This bug is HP SR number 8606223364.
7098 if test "$cross_compiling" = yes; then
7099 # Depending upon the size, compute the lo and hi bounds.
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7108 main ()
7110 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7111 test_array [0] = 0
7114 return 0;
7116 _ACEOF
7117 rm -f conftest.$ac_objext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>conftest.er1
7120 ac_status=$?
7121 grep -v '^ *+' conftest.er1 >conftest.err
7122 rm -f conftest.er1
7123 cat conftest.err >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -z "$ac_c_werror_flag"
7127 || test ! -s conftest.err'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 (eval $ac_try) 2>&5
7130 ac_status=$?
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; } &&
7133 { ac_try='test -s conftest.$ac_objext'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 (eval $ac_try) 2>&5
7136 ac_status=$?
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7139 ac_lo=0 ac_mid=0
7140 while :; do
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 $ac_includes_default
7149 main ()
7151 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7152 test_array [0] = 0
7155 return 0;
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } &&
7167 { ac_try='test -z "$ac_c_werror_flag"
7168 || test ! -s conftest.err'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; } &&
7174 { ac_try='test -s conftest.$ac_objext'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 (eval $ac_try) 2>&5
7177 ac_status=$?
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; }; then
7180 ac_hi=$ac_mid; break
7181 else
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7185 ac_lo=`expr $ac_mid + 1`
7186 if test $ac_lo -le $ac_mid; then
7187 ac_lo= ac_hi=
7188 break
7190 ac_mid=`expr 2 '*' $ac_mid + 1`
7192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7193 done
7194 else
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 $ac_includes_default
7206 main ()
7208 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7209 test_array [0] = 0
7212 return 0;
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -z "$ac_c_werror_flag"
7225 || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 ac_hi=-1 ac_mid=-1
7238 while :; do
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7247 main ()
7249 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7250 test_array [0] = 0
7253 return 0;
7255 _ACEOF
7256 rm -f conftest.$ac_objext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258 (eval $ac_compile) 2>conftest.er1
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try='test -z "$ac_c_werror_flag"
7266 || test ! -s conftest.err'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 (eval $ac_try) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; } &&
7272 { ac_try='test -s conftest.$ac_objext'
7273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 (eval $ac_try) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); }; }; then
7278 ac_lo=$ac_mid; break
7279 else
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 ac_hi=`expr '(' $ac_mid ')' - 1`
7284 if test $ac_mid -le $ac_hi; then
7285 ac_lo= ac_hi=
7286 break
7288 ac_mid=`expr 2 '*' $ac_mid`
7290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7291 done
7292 else
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7296 ac_lo= ac_hi=
7298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7301 # Binary search between lo and hi bounds.
7302 while test "x$ac_lo" != "x$ac_hi"; do
7303 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 $ac_includes_default
7312 main ()
7314 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7315 test_array [0] = 0
7318 return 0;
7320 _ACEOF
7321 rm -f conftest.$ac_objext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7323 (eval $ac_compile) 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } &&
7330 { ac_try='test -z "$ac_c_werror_flag"
7331 || test ! -s conftest.err'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 (eval $ac_try) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; } &&
7337 { ac_try='test -s conftest.$ac_objext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_hi=$ac_mid
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 ac_lo=`expr '(' $ac_mid ')' + 1`
7350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7351 done
7352 case $ac_lo in
7353 ?*) ac_cv_sizeof_int=$ac_lo;;
7354 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7355 See \`config.log' for more details." >&5
7356 echo "$as_me: error: cannot compute sizeof (int), 77
7357 See \`config.log' for more details." >&2;}
7358 { (exit 1); exit 1; }; } ;;
7359 esac
7360 else
7361 if test "$cross_compiling" = yes; then
7362 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7363 See \`config.log' for more details." >&5
7364 echo "$as_me: error: cannot run test program while cross compiling
7365 See \`config.log' for more details." >&2;}
7366 { (exit 1); exit 1; }; }
7367 else
7368 cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h. */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7375 long longval () { return (long) (sizeof (int)); }
7376 unsigned long ulongval () { return (long) (sizeof (int)); }
7377 #include <stdio.h>
7378 #include <stdlib.h>
7380 main ()
7383 FILE *f = fopen ("conftest.val", "w");
7384 if (! f)
7385 exit (1);
7386 if (((long) (sizeof (int))) < 0)
7388 long i = longval ();
7389 if (i != ((long) (sizeof (int))))
7390 exit (1);
7391 fprintf (f, "%ld\n", i);
7393 else
7395 unsigned long i = ulongval ();
7396 if (i != ((long) (sizeof (int))))
7397 exit (1);
7398 fprintf (f, "%lu\n", i);
7400 exit (ferror (f) || fclose (f) != 0);
7403 return 0;
7405 _ACEOF
7406 rm -f conftest$ac_exeext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7408 (eval $ac_link) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 (eval $ac_try) 2>&5
7414 ac_status=$?
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; }; then
7417 ac_cv_sizeof_int=`cat conftest.val`
7418 else
7419 echo "$as_me: program exited with status $ac_status" >&5
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7423 ( exit $ac_status )
7424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7425 See \`config.log' for more details." >&5
7426 echo "$as_me: error: cannot compute sizeof (int), 77
7427 See \`config.log' for more details." >&2;}
7428 { (exit 1); exit 1; }; }
7430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7433 rm -f conftest.val
7434 else
7435 ac_cv_sizeof_int=0
7438 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7439 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7440 cat >>confdefs.h <<_ACEOF
7441 #define SIZEOF_INT $ac_cv_sizeof_int
7442 _ACEOF
7445 echo "$as_me:$LINENO: checking for short" >&5
7446 echo $ECHO_N "checking for short... $ECHO_C" >&6
7447 if test "${ac_cv_type_short+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7458 main ()
7460 if ((short *) 0)
7461 return 0;
7462 if (sizeof (short))
7463 return 0;
7465 return 0;
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470 (eval $ac_compile) 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -z "$ac_c_werror_flag"
7478 || test ! -s conftest.err'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; } &&
7484 { ac_try='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_type_short=yes
7491 else
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 ac_cv_type_short=no
7497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7500 echo "${ECHO_T}$ac_cv_type_short" >&6
7502 echo "$as_me:$LINENO: checking size of short" >&5
7503 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7504 if test "${ac_cv_sizeof_short+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507 if test "$ac_cv_type_short" = yes; then
7508 # The cast to unsigned long works around a bug in the HP C Compiler
7509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7511 # This bug is HP SR number 8606223364.
7512 if test "$cross_compiling" = yes; then
7513 # Depending upon the size, compute the lo and hi bounds.
7514 cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h. */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7522 main ()
7524 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7525 test_array [0] = 0
7528 return 0;
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -z "$ac_c_werror_flag"
7541 || test ! -s conftest.err'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 (eval $ac_try) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; } &&
7547 { ac_try='test -s conftest.$ac_objext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 ac_lo=0 ac_mid=0
7554 while :; do
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7563 main ()
7565 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7566 test_array [0] = 0
7569 return 0;
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7574 (eval $ac_compile) 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -z "$ac_c_werror_flag"
7582 || test ! -s conftest.err'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 (eval $ac_try) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; } &&
7588 { ac_try='test -s conftest.$ac_objext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_hi=$ac_mid; break
7595 else
7596 echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 ac_lo=`expr $ac_mid + 1`
7600 if test $ac_lo -le $ac_mid; then
7601 ac_lo= ac_hi=
7602 break
7604 ac_mid=`expr 2 '*' $ac_mid + 1`
7606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7607 done
7608 else
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h. */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618 $ac_includes_default
7620 main ()
7622 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7623 test_array [0] = 0
7626 return 0;
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631 (eval $ac_compile) 2>conftest.er1
7632 ac_status=$?
7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } &&
7638 { ac_try='test -z "$ac_c_werror_flag"
7639 || test ! -s conftest.err'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 (eval $ac_try) 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; } &&
7645 { ac_try='test -s conftest.$ac_objext'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 (eval $ac_try) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651 ac_hi=-1 ac_mid=-1
7652 while :; do
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 $ac_includes_default
7661 main ()
7663 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7664 test_array [0] = 0
7667 return 0;
7669 _ACEOF
7670 rm -f conftest.$ac_objext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7672 (eval $ac_compile) 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } &&
7679 { ac_try='test -z "$ac_c_werror_flag"
7680 || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 (eval $ac_try) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_lo=$ac_mid; break
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_hi=`expr '(' $ac_mid ')' - 1`
7698 if test $ac_mid -le $ac_hi; then
7699 ac_lo= ac_hi=
7700 break
7702 ac_mid=`expr 2 '*' $ac_mid`
7704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7705 done
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_lo= ac_hi=
7712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715 # Binary search between lo and hi bounds.
7716 while test "x$ac_lo" != "x$ac_hi"; do
7717 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7718 cat >conftest.$ac_ext <<_ACEOF
7719 /* confdefs.h. */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 $ac_includes_default
7726 main ()
7728 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7729 test_array [0] = 0
7732 return 0;
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag"
7745 || test ! -s conftest.err'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 (eval $ac_try) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try='test -s conftest.$ac_objext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 ac_hi=$ac_mid
7758 else
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 ac_lo=`expr '(' $ac_mid ')' + 1`
7764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7765 done
7766 case $ac_lo in
7767 ?*) ac_cv_sizeof_short=$ac_lo;;
7768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7769 See \`config.log' for more details." >&5
7770 echo "$as_me: error: cannot compute sizeof (short), 77
7771 See \`config.log' for more details." >&2;}
7772 { (exit 1); exit 1; }; } ;;
7773 esac
7774 else
7775 if test "$cross_compiling" = yes; then
7776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7777 See \`config.log' for more details." >&5
7778 echo "$as_me: error: cannot run test program while cross compiling
7779 See \`config.log' for more details." >&2;}
7780 { (exit 1); exit 1; }; }
7781 else
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h. */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 long longval () { return (long) (sizeof (short)); }
7790 unsigned long ulongval () { return (long) (sizeof (short)); }
7791 #include <stdio.h>
7792 #include <stdlib.h>
7794 main ()
7797 FILE *f = fopen ("conftest.val", "w");
7798 if (! f)
7799 exit (1);
7800 if (((long) (sizeof (short))) < 0)
7802 long i = longval ();
7803 if (i != ((long) (sizeof (short))))
7804 exit (1);
7805 fprintf (f, "%ld\n", i);
7807 else
7809 unsigned long i = ulongval ();
7810 if (i != ((long) (sizeof (short))))
7811 exit (1);
7812 fprintf (f, "%lu\n", i);
7814 exit (ferror (f) || fclose (f) != 0);
7817 return 0;
7819 _ACEOF
7820 rm -f conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 (eval $ac_try) 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_cv_sizeof_short=`cat conftest.val`
7832 else
7833 echo "$as_me: program exited with status $ac_status" >&5
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ( exit $ac_status )
7838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7839 See \`config.log' for more details." >&5
7840 echo "$as_me: error: cannot compute sizeof (short), 77
7841 See \`config.log' for more details." >&2;}
7842 { (exit 1); exit 1; }; }
7844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7847 rm -f conftest.val
7848 else
7849 ac_cv_sizeof_short=0
7852 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7853 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7854 cat >>confdefs.h <<_ACEOF
7855 #define SIZEOF_SHORT $ac_cv_sizeof_short
7856 _ACEOF
7859 echo "$as_me:$LINENO: checking for char" >&5
7860 echo $ECHO_N "checking for char... $ECHO_C" >&6
7861 if test "${ac_cv_type_char+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864 cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h. */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7872 main ()
7874 if ((char *) 0)
7875 return 0;
7876 if (sizeof (char))
7877 return 0;
7879 return 0;
7881 _ACEOF
7882 rm -f conftest.$ac_objext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7884 (eval $ac_compile) 2>conftest.er1
7885 ac_status=$?
7886 grep -v '^ *+' conftest.er1 >conftest.err
7887 rm -f conftest.er1
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -z "$ac_c_werror_flag"
7892 || test ! -s conftest.err'
7893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 (eval $ac_try) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); }; } &&
7898 { ac_try='test -s conftest.$ac_objext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 (eval $ac_try) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 ac_cv_type_char=yes
7905 else
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ac_cv_type_char=no
7911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7913 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7914 echo "${ECHO_T}$ac_cv_type_char" >&6
7916 echo "$as_me:$LINENO: checking size of char" >&5
7917 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7918 if test "${ac_cv_sizeof_char+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 if test "$ac_cv_type_char" = yes; then
7922 # The cast to unsigned long works around a bug in the HP C Compiler
7923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7925 # This bug is HP SR number 8606223364.
7926 if test "$cross_compiling" = yes; then
7927 # Depending upon the size, compute the lo and hi bounds.
7928 cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h. */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7936 main ()
7938 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7939 test_array [0] = 0
7942 return 0;
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947 (eval $ac_compile) 2>conftest.er1
7948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try='test -z "$ac_c_werror_flag"
7955 || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_lo=0 ac_mid=0
7968 while :; do
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h. */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7977 main ()
7979 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7980 test_array [0] = 0
7983 return 0;
7985 _ACEOF
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
7989 ac_status=$?
7990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 (eval $ac_try) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_hi=$ac_mid; break
8009 else
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8013 ac_lo=`expr $ac_mid + 1`
8014 if test $ac_lo -le $ac_mid; then
8015 ac_lo= ac_hi=
8016 break
8018 ac_mid=`expr 2 '*' $ac_mid + 1`
8020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8021 done
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h. */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 $ac_includes_default
8034 main ()
8036 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8037 test_array [0] = 0
8040 return 0;
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
8046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_hi=-1 ac_mid=-1
8066 while :; do
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8075 main ()
8077 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8078 test_array [0] = 0
8081 return 0;
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8086 (eval $ac_compile) 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag"
8094 || test ! -s conftest.err'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; } &&
8100 { ac_try='test -s conftest.$ac_objext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 ac_lo=$ac_mid; break
8107 else
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8111 ac_hi=`expr '(' $ac_mid ')' - 1`
8112 if test $ac_mid -le $ac_hi; then
8113 ac_lo= ac_hi=
8114 break
8116 ac_mid=`expr 2 '*' $ac_mid`
8118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8119 done
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8124 ac_lo= ac_hi=
8126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8129 # Binary search between lo and hi bounds.
8130 while test "x$ac_lo" != "x$ac_hi"; do
8131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8132 cat >conftest.$ac_ext <<_ACEOF
8133 /* confdefs.h. */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8138 $ac_includes_default
8140 main ()
8142 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8143 test_array [0] = 0
8146 return 0;
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8151 (eval $ac_compile) 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } &&
8158 { ac_try='test -z "$ac_c_werror_flag"
8159 || test ! -s conftest.err'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 (eval $ac_try) 2>&5
8162 ac_status=$?
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; } &&
8165 { ac_try='test -s conftest.$ac_objext'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 (eval $ac_try) 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; }; then
8171 ac_hi=$ac_mid
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_lo=`expr '(' $ac_mid ')' + 1`
8178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8179 done
8180 case $ac_lo in
8181 ?*) ac_cv_sizeof_char=$ac_lo;;
8182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8183 See \`config.log' for more details." >&5
8184 echo "$as_me: error: cannot compute sizeof (char), 77
8185 See \`config.log' for more details." >&2;}
8186 { (exit 1); exit 1; }; } ;;
8187 esac
8188 else
8189 if test "$cross_compiling" = yes; then
8190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8191 See \`config.log' for more details." >&5
8192 echo "$as_me: error: cannot run test program while cross compiling
8193 See \`config.log' for more details." >&2;}
8194 { (exit 1); exit 1; }; }
8195 else
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h. */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 $ac_includes_default
8203 long longval () { return (long) (sizeof (char)); }
8204 unsigned long ulongval () { return (long) (sizeof (char)); }
8205 #include <stdio.h>
8206 #include <stdlib.h>
8208 main ()
8211 FILE *f = fopen ("conftest.val", "w");
8212 if (! f)
8213 exit (1);
8214 if (((long) (sizeof (char))) < 0)
8216 long i = longval ();
8217 if (i != ((long) (sizeof (char))))
8218 exit (1);
8219 fprintf (f, "%ld\n", i);
8221 else
8223 unsigned long i = ulongval ();
8224 if (i != ((long) (sizeof (char))))
8225 exit (1);
8226 fprintf (f, "%lu\n", i);
8228 exit (ferror (f) || fclose (f) != 0);
8231 return 0;
8233 _ACEOF
8234 rm -f conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_cv_sizeof_char=`cat conftest.val`
8246 else
8247 echo "$as_me: program exited with status $ac_status" >&5
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 ( exit $ac_status )
8252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8253 See \`config.log' for more details." >&5
8254 echo "$as_me: error: cannot compute sizeof (char), 77
8255 See \`config.log' for more details." >&2;}
8256 { (exit 1); exit 1; }; }
8258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8261 rm -f conftest.val
8262 else
8263 ac_cv_sizeof_char=0
8266 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8267 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8268 cat >>confdefs.h <<_ACEOF
8269 #define SIZEOF_CHAR $ac_cv_sizeof_char
8270 _ACEOF
8274 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8275 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8276 case "$ac_cv_sizeof_char" in
8277 1) acx_cv_type_int8_t=char ;;
8278 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8279 echo "$as_me: error: no 8-bit type" >&2;}
8280 { (exit please report a bug); exit please report a bug; }; }
8281 esac
8282 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8283 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8285 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8286 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8287 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8288 2:*) acx_cv_type_int16_t=int ;;
8289 *:2) acx_cv_type_int16_t=short ;;
8290 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8291 echo "$as_me: error: no 16-bit type" >&2;}
8292 { (exit please report a bug); exit please report a bug; }; }
8293 esac
8294 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8295 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8297 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8298 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8299 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8300 4:*) acx_cv_type_int32_t=int ;;
8301 *:4) acx_cv_type_int32_t=long ;;
8302 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8303 echo "$as_me: error: no 32-bit type" >&2;}
8304 { (exit please report a bug); exit please report a bug; }; }
8305 esac
8306 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8307 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8310 # These tests are here to make the output prettier
8312 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8313 case "$ac_cv_sizeof_long" in
8314 8) acx_cv_type_int64_t=long ;;
8315 esac
8316 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8317 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8318 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8319 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8322 # Now we can use the above types
8324 if test "$ac_cv_type_uintptr_t" != yes; then
8325 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8326 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8327 case $ac_cv_sizeof_void_p in
8328 2) acx_cv_type_intptr_t=int16_t ;;
8329 4) acx_cv_type_intptr_t=int32_t ;;
8330 8) acx_cv_type_intptr_t=int64_t ;;
8331 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8332 echo "$as_me: error: no equivalent for intptr_t" >&2;}
8333 { (exit please report a bug); exit please report a bug; }; }
8334 esac
8335 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8336 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8339 # ----------------- done all checks, emit header -------------
8340 ac_config_commands="$ac_config_commands gstdint.h"
8345 # Check to see if -pthread or -lpthread is needed. Prefer the former.
8346 # In case the pthread.h system header is not found, this test will fail.
8347 XPCFLAGS=""
8349 # Darwin doesn't need the -pthread option since threads are in libSystem
8350 cat >conftest.$ac_ext <<_ACEOF
8351 /* confdefs.h. */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 #include <pthread.h>
8357 void *g(void *d) { return NULL; }
8359 main ()
8361 pthread_t t; pthread_create(&t,NULL,g,NULL);
8363 return 0;
8365 _ACEOF
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8375 { ac_try='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest$ac_exeext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 case $host in
8389 *-darwin*)
8391 default)
8392 XPCFLAGS=" -Wc,-pthread"
8394 esac
8395 else
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 #include <pthread.h>
8407 void *g(void *d) { return NULL; }
8409 main ()
8411 pthread_t t; pthread_create(&t,NULL,g,NULL);
8413 return 0;
8415 _ACEOF
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try='test -z "$ac_c_werror_flag"
8426 || test ! -s conftest.err'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; } &&
8432 { ac_try='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8444 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8445 { (exit 1); exit 1; }; }
8447 rm -f conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext conftest.$ac_ext
8450 rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8453 # Check for functions needed.
8456 for ac_func in getloadavg clock_gettime
8458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8459 echo "$as_me:$LINENO: checking for $ac_func" >&5
8460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8461 if eval "test \"\${$as_ac_var+set}\" = set"; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8472 #define $ac_func innocuous_$ac_func
8474 /* System header to define __stub macros and hopefully few prototypes,
8475 which can conflict with char $ac_func (); below.
8476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8477 <limits.h> exists even on freestanding compilers. */
8479 #ifdef __STDC__
8480 # include <limits.h>
8481 #else
8482 # include <assert.h>
8483 #endif
8485 #undef $ac_func
8487 /* Override any gcc2 internal prototype to avoid an error. */
8488 #ifdef __cplusplus
8489 extern "C"
8491 #endif
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8494 char $ac_func ();
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8499 choke me
8500 #else
8501 char (*f) () = $ac_func;
8502 #endif
8503 #ifdef __cplusplus
8505 #endif
8508 main ()
8510 return f != $ac_func;
8512 return 0;
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag"
8525 || test ! -s conftest.err'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; } &&
8531 { ac_try='test -s conftest$ac_exeext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 eval "$as_ac_var=yes"
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 eval "$as_ac_var=no"
8544 rm -f conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8549 if test `eval echo '${'$as_ac_var'}'` = yes; then
8550 cat >>confdefs.h <<_ACEOF
8551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8552 _ACEOF
8555 done
8558 # Check for broken semaphore implementation on darwin.
8559 # sem_init returns: sem_init error: Function not implemented.
8560 case "$host" in
8561 *-darwin*)
8563 cat >>confdefs.h <<\_ACEOF
8564 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
8565 _ACEOF
8568 *-linux*)
8569 case "$enable_linux_futex" in
8570 default)
8571 # If headers don't have gettid/futex syscalls definition, then
8572 # default to no, otherwise there will be compile time failures.
8573 # Otherwise, default to yes. If we don't detect we are
8574 # compiled/linked against NPTL and not cross-compiling, check
8575 # if programs are run by default against NPTL and if not, issue
8576 # a warning.
8577 enable_linux_futex=no
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h. */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584 #include <sys/syscall.h>
8585 int lk;
8587 main ()
8589 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8591 return 0;
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596 (eval $ac_link) 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
8603 { ac_try='test -z "$ac_c_werror_flag"
8604 || test ! -s conftest.err'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 (eval $ac_try) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; } &&
8610 { ac_try='test -s conftest$ac_exeext'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; }; then
8616 cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h. */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 #ifndef _GNU_SOURCE
8623 #define _GNU_SOURCE 1
8624 #endif
8625 #include <pthread.h>
8626 pthread_t th; void *status;
8628 main ()
8630 pthread_tryjoin_np (th, &status);
8632 return 0;
8634 _ACEOF
8635 rm -f conftest.$ac_objext conftest$ac_exeext
8636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637 (eval $ac_link) 2>conftest.er1
8638 ac_status=$?
8639 grep -v '^ *+' conftest.er1 >conftest.err
8640 rm -f conftest.er1
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try='test -z "$ac_c_werror_flag"
8645 || test ! -s conftest.err'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; } &&
8651 { ac_try='test -s conftest$ac_exeext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 (eval $ac_try) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8657 enable_linux_futex=yes
8658 else
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8662 if test x$cross_compiling = xno; then
8663 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
8664 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then
8665 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls.
8666 If so, please configure with --disable-linux-futex" >&5
8667 echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
8668 If so, please configure with --disable-linux-futex" >&2;}
8671 enable_linux_futex=yes
8673 rm -f conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 else
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8680 rm -f conftest.err conftest.$ac_objext \
8681 conftest$ac_exeext conftest.$ac_ext
8683 yes)
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 #include <sys/syscall.h>
8691 int lk;
8693 main ()
8695 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
8697 return 0;
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8723 else
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8727 { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5
8728 echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;}
8729 { (exit 1); exit 1; }; }
8731 rm -f conftest.err conftest.$ac_objext \
8732 conftest$ac_exeext conftest.$ac_ext
8734 esac
8736 esac
8738 # At least for glibc, clock_gettime is in librt. But don't pull that
8739 # in if it still doesn't give us the function we want.
8740 if test $ac_cv_func_clock_gettime = no; then
8741 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8742 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8743 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746 ac_check_lib_save_LIBS=$LIBS
8747 LIBS="-lrt $LIBS"
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8755 /* Override any gcc2 internal prototype to avoid an error. */
8756 #ifdef __cplusplus
8757 extern "C"
8758 #endif
8759 /* We use char because int might match the return type of a gcc2
8760 builtin and then its argument prototype would still apply. */
8761 char clock_gettime ();
8763 main ()
8765 clock_gettime ();
8767 return 0;
8769 _ACEOF
8770 rm -f conftest.$ac_objext conftest$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>conftest.er1
8773 ac_status=$?
8774 grep -v '^ *+' conftest.er1 >conftest.err
8775 rm -f conftest.er1
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } &&
8779 { ac_try='test -z "$ac_c_werror_flag"
8780 || test ! -s conftest.err'
8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 (eval $ac_try) 2>&5
8783 ac_status=$?
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); }; } &&
8786 { ac_try='test -s conftest$ac_exeext'
8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 (eval $ac_try) 2>&5
8789 ac_status=$?
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; }; then
8792 ac_cv_lib_rt_clock_gettime=yes
8793 else
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 ac_cv_lib_rt_clock_gettime=no
8799 rm -f conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
8801 LIBS=$ac_check_lib_save_LIBS
8803 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8804 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8805 if test $ac_cv_lib_rt_clock_gettime = yes; then
8806 LIBS="-lrt $LIBS"
8808 cat >>confdefs.h <<\_ACEOF
8809 #define HAVE_CLOCK_GETTIME 1
8810 _ACEOF
8816 # See if we support thread-local storage.
8818 # Check whether --enable-tls or --disable-tls was given.
8819 if test "${enable_tls+set}" = set; then
8820 enableval="$enable_tls"
8822 case "$enableval" in
8823 yes|no) ;;
8824 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8825 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8826 { (exit 1); exit 1; }; } ;;
8827 esac
8829 else
8830 enable_tls=yes
8833 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8834 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8835 if test "${have_tls+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8839 if test "$cross_compiling" = yes; then
8840 cat >conftest.$ac_ext <<_ACEOF
8841 __thread int foo;
8842 _ACEOF
8843 rm -f conftest.$ac_objext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8845 (eval $ac_compile) 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag"
8853 || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest.$ac_objext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 have_tls=yes
8866 else
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 have_tls=no
8872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8874 else
8875 cat >conftest.$ac_ext <<_ACEOF
8876 __thread int a; int b; int main() { return a = b; }
8877 _ACEOF
8878 rm -f conftest$ac_exeext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880 (eval $ac_link) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 save_LDFLAGS="$LDFLAGS"
8890 LDFLAGS="-static $LDFLAGS"
8891 if test "$cross_compiling" = yes; then
8892 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8893 See \`config.log' for more details." >&5
8894 echo "$as_me: error: cannot run test program while cross compiling
8895 See \`config.log' for more details." >&2;}
8896 { (exit 1); exit 1; }; }
8897 else
8898 cat >conftest.$ac_ext <<_ACEOF
8899 __thread int a; int b; int main() { return a = b; }
8900 _ACEOF
8901 rm -f conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 (eval $ac_try) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); }; }; then
8912 have_tls=yes
8913 else
8914 echo "$as_me: program exited with status $ac_status" >&5
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 ( exit $ac_status )
8919 have_tls=no
8921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8923 LDFLAGS="$save_LDFLAGS"
8924 else
8925 echo "$as_me: program exited with status $ac_status" >&5
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 ( exit $ac_status )
8930 have_tls=no
8932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8935 echo "$as_me:$LINENO: result: $have_tls" >&5
8936 echo "${ECHO_T}$have_tls" >&6
8937 if test "$enable_tls $have_tls" = "yes yes"; then
8939 cat >>confdefs.h <<\_ACEOF
8940 #define HAVE_TLS 1
8941 _ACEOF
8945 # See what sort of export controls are availible.
8947 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
8948 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
8949 if test "${have_attribute_visibility+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8953 save_CFLAGS="$CFLAGS"
8954 CFLAGS="$CFLAGS -Werror"
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 void __attribute__((visibility("hidden"))) foo(void) { }
8963 main ()
8967 return 0;
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972 (eval $ac_compile) 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag"
8980 || test ! -s conftest.err'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 (eval $ac_try) 2>&5
8983 ac_status=$?
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; } &&
8986 { ac_try='test -s conftest.$ac_objext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 (eval $ac_try) 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 have_attribute_visibility=yes
8993 else
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 have_attribute_visibility=no
8999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9000 CFLAGS="$save_CFLAGS"
9002 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
9003 echo "${ECHO_T}$have_attribute_visibility" >&6
9004 if test $have_attribute_visibility = yes; then
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_ATTRIBUTE_VISIBILITY 1
9008 _ACEOF
9012 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
9013 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
9014 if test "${have_attribute_dllexport+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9018 save_CFLAGS="$CFLAGS"
9019 CFLAGS="$CFLAGS -Werror"
9020 cat >conftest.$ac_ext <<_ACEOF
9021 /* confdefs.h. */
9022 _ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 void __attribute__((dllexport)) foo(void) { }
9028 main ()
9032 return 0;
9034 _ACEOF
9035 rm -f conftest.$ac_objext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9037 (eval $ac_compile) 2>conftest.er1
9038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } &&
9044 { ac_try='test -z "$ac_c_werror_flag"
9045 || test ! -s conftest.err'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest.$ac_objext'
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_attribute_dllexport=yes
9058 else
9059 echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9062 have_attribute_dllexport=no
9064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9065 CFLAGS="$save_CFLAGS"
9067 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
9068 echo "${ECHO_T}$have_attribute_dllexport" >&6
9069 if test $have_attribute_dllexport = yes; then
9071 cat >>confdefs.h <<\_ACEOF
9072 #define HAVE_ATTRIBUTE_DLLEXPORT 1
9073 _ACEOF
9077 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
9078 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
9079 if test "${have_attribute_alias+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9083 cat >conftest.$ac_ext <<_ACEOF
9084 /* confdefs.h. */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9090 void foo(void) { }
9091 extern void bar(void) __attribute__((alias("foo")));
9093 main ()
9095 bar();
9097 return 0;
9099 _ACEOF
9100 rm -f conftest.$ac_objext conftest$ac_exeext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102 (eval $ac_link) 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } &&
9109 { ac_try='test -z "$ac_c_werror_flag"
9110 || test ! -s conftest.err'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 (eval $ac_try) 2>&5
9113 ac_status=$?
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; } &&
9116 { ac_try='test -s conftest$ac_exeext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 have_attribute_alias=yes
9123 else
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 have_attribute_alias=no
9129 rm -f conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
9133 echo "${ECHO_T}$have_attribute_alias" >&6
9134 if test $have_attribute_alias = yes; then
9136 cat >>confdefs.h <<\_ACEOF
9137 #define HAVE_ATTRIBUTE_ALIAS 1
9138 _ACEOF
9142 # If we're not using GNU ld, then there's no point in even trying these
9143 # tests. Check for that first. We should have already tested for gld
9144 # by now (in libtool), but require it now just to be safe...
9145 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9146 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9150 # The name set by libtool depends on the version of libtool. Shame on us
9151 # for depending on an impl detail, but c'est la vie. Older versions used
9152 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9153 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9154 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9155 # set (hence we're using an older libtool), then set it.
9156 if test x${with_gnu_ld+set} != xset; then
9157 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9158 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9159 with_gnu_ld=no
9160 else
9161 with_gnu_ld=$ac_cv_prog_gnu_ld
9165 # Start by getting the version number. I think the libtool test already
9166 # does some of this, but throws away the result.
9168 ldver=`$LD --version 2>/dev/null | head -1 | \
9169 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9171 libgomp_gnu_ld_version=`echo $ldver | \
9172 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9174 # Set --gc-sections.
9175 if test "$with_gnu_ld" = "notbroken"; then
9176 # GNU ld it is! Joy and bunny rabbits!
9178 # All these tests are for C++; save the language and the compiler flags.
9179 # Need to do this so that g++ won't try to link in libstdc++
9180 ac_test_CFLAGS="${CFLAGS+set}"
9181 ac_save_CFLAGS="$CFLAGS"
9182 CFLAGS='-x c++ -Wl,--gc-sections'
9184 # Check for -Wl,--gc-sections
9185 # XXX This test is broken at the moment, as symbols required for linking
9186 # are now in libsupc++ (not built yet). In addition, this test has
9187 # cored on solaris in the past. In addition, --gc-sections doesn't
9188 # really work at the moment (keeps on discarding used sections, first
9189 # .eh_frame and now some of the glibc sections for iconv).
9190 # Bzzzzt. Thanks for playing, maybe next time.
9191 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9192 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9193 if test "$cross_compiling" = yes; then
9194 ac_sectionLDflags=yes
9195 else
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9203 int main(void)
9205 try { throw 1; }
9206 catch (...) { };
9207 return 0;
9210 _ACEOF
9211 rm -f conftest$ac_exeext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9213 (eval $ac_link) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 (eval $ac_try) 2>&5
9219 ac_status=$?
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); }; }; then
9222 ac_sectionLDflags=yes
9223 else
9224 echo "$as_me: program exited with status $ac_status" >&5
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9228 ( exit $ac_status )
9229 ac_sectionLDflags=no
9231 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9233 if test "$ac_test_CFLAGS" = set; then
9234 CFLAGS="$ac_save_CFLAGS"
9235 else
9236 # this is the suspicious part
9237 CFLAGS=''
9239 if test "$ac_sectionLDflags" = "yes"; then
9240 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9242 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9243 echo "${ECHO_T}$ac_sectionLDflags" >&6
9246 # Set linker optimization flags.
9247 if test x"$with_gnu_ld" = x"yes"; then
9248 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9256 # Check whether --enable-symvers or --disable-symvers was given.
9257 if test "${enable_symvers+set}" = set; then
9258 enableval="$enable_symvers"
9260 case "$enableval" in
9261 yes|no|gnu) ;;
9262 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
9263 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
9264 { (exit 1); exit 1; }; } ;;
9265 esac
9267 else
9268 enable_symvers=yes
9272 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9273 # don't know enough about $LD to do tricks...
9275 # FIXME The following test is too strict, in theory.
9276 if test $enable_shared = no ||
9277 test "x$LD" = x ||
9278 test x$libgomp_gnu_ld_version = x; then
9279 enable_symvers=no
9282 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9283 if test $enable_symvers != no; then
9284 echo "$as_me:$LINENO: checking for shared libgcc" >&5
9285 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9286 ac_save_CFLAGS="$CFLAGS"
9287 CFLAGS=' -lgcc_s'
9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h. */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9296 main ()
9298 return 0;
9300 return 0;
9302 _ACEOF
9303 rm -f conftest.$ac_objext conftest$ac_exeext
9304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9305 (eval $ac_link) 2>conftest.er1
9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } &&
9312 { ac_try='test -z "$ac_c_werror_flag"
9313 || test ! -s conftest.err'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; } &&
9319 { ac_try='test -s conftest$ac_exeext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 libgomp_shared_libgcc=yes
9326 else
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 libgomp_shared_libgcc=no
9332 rm -f conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
9334 CFLAGS="$ac_save_CFLAGS"
9335 if test $libgomp_shared_libgcc = no; then
9336 cat > conftest.c <<EOF
9337 int main (void) { return 0; }
9339 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9340 -shared -shared-libgcc -o conftest.so \
9341 conftest.c -v 2>&1 >/dev/null \
9342 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9343 rm -f conftest.c conftest.so
9344 if test x${libgomp_libgcc_s_suffix+set} = xset; then
9345 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9346 cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9354 main ()
9356 return 0;
9358 return 0;
9360 _ACEOF
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>conftest.er1
9364 ac_status=$?
9365 grep -v '^ *+' conftest.er1 >conftest.err
9366 rm -f conftest.er1
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -z "$ac_c_werror_flag"
9371 || test ! -s conftest.err'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; } &&
9377 { ac_try='test -s conftest$ac_exeext'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 libgomp_shared_libgcc=yes
9384 else
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9389 rm -f conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391 CFLAGS="$ac_save_CFLAGS"
9394 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9395 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9398 # For GNU ld, we need at least this version. The format is described in
9399 # LIBGOMP_CHECK_LINKER_FEATURES above.
9400 libgomp_min_gnu_ld_version=21400
9401 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
9403 # Check to see if unspecified "yes" value can win, given results above.
9404 # Change "yes" into either "no" or a style name.
9405 if test $enable_symvers = yes; then
9406 if test $with_gnu_ld = yes &&
9407 test $libgomp_shared_libgcc = yes;
9408 then
9409 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9410 enable_symvers=gnu
9411 else
9412 # The right tools, the right setup, but too old. Fallbacks?
9413 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9414 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9416 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9417 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9418 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9420 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9421 if test $libgomp_gnu_ld_version -ge 21200 ; then
9422 # Globbing fix is present, proper block support is not.
9423 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9424 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9425 enable_symvers=no
9426 else
9427 # 2.11 or older.
9428 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9429 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9430 enable_symvers=no
9433 else
9434 # just fail for now
9435 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9436 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9438 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9440 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9441 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9442 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9443 enable_symvers=no
9449 if test $enable_symvers != no; then
9450 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9451 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9452 else
9453 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9454 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9457 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9458 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9461 # Get target configury.
9462 . ${srcdir}/configure.tgt
9463 CFLAGS="$save_CFLAGS $XCFLAGS"
9465 # Check for __sync_val_compare_and_swap, but only after the target has
9466 # had a chance to set XCFLAGS.
9468 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9469 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9470 if test "${have_sync_builtins+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9474 cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h. */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9482 main ()
9484 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9486 return 0;
9488 _ACEOF
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491 (eval $ac_link) 2>conftest.er1
9492 ac_status=$?
9493 grep -v '^ *+' conftest.er1 >conftest.err
9494 rm -f conftest.er1
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -z "$ac_c_werror_flag"
9499 || test ! -s conftest.err'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; } &&
9505 { ac_try='test -s conftest$ac_exeext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 have_sync_builtins=yes
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 have_sync_builtins=no
9518 rm -f conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9521 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9522 echo "${ECHO_T}$have_sync_builtins" >&6
9523 if test $have_sync_builtins = yes; then
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_SYNC_BUILTINS 1
9527 _ACEOF
9531 XCFLAGS="$XCFLAGS$XPCFLAGS"
9537 # Cleanup and exit.
9538 CFLAGS="$save_CFLAGS"
9539 cat >confcache <<\_ACEOF
9540 # This file is a shell script that caches the results of configure
9541 # tests run on this system so they can be shared between configure
9542 # scripts and configure runs, see configure's option --config-cache.
9543 # It is not useful on other systems. If it contains results you don't
9544 # want to keep, you may remove or edit it.
9546 # config.status only pays attention to the cache file if you give it
9547 # the --recheck option to rerun configure.
9549 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9550 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9551 # following values.
9553 _ACEOF
9555 # The following way of writing the cache mishandles newlines in values,
9556 # but we know of no workaround that is simple, portable, and efficient.
9557 # So, don't put newlines in cache variables' values.
9558 # Ultrix sh set writes to stderr and can't be redirected directly,
9559 # and sets the high bit in the cache file unless we assign to the vars.
9561 (set) 2>&1 |
9562 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9563 *ac_space=\ *)
9564 # `set' does not quote correctly, so add quotes (double-quote
9565 # substitution turns \\\\ into \\, and sed turns \\ into \).
9566 sed -n \
9567 "s/'/'\\\\''/g;
9568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9571 # `set' quotes correctly as required by POSIX, so do not add quotes.
9572 sed -n \
9573 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9575 esac;
9577 sed '
9578 t clear
9579 : clear
9580 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9581 t end
9582 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9583 : end' >>confcache
9584 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9585 if test -w $cache_file; then
9586 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9587 cat confcache >$cache_file
9588 else
9589 echo "not updating unwritable cache $cache_file"
9592 rm -f confcache
9594 if test ${multilib} = yes; then
9595 multilib_arg="--enable-multilib"
9596 else
9597 multilib_arg=
9600 # Set up the set of libraries that we need to link against for libgomp.
9601 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
9602 # which will force linkage against -lpthread (or equivalent for the system).
9603 # That's not 100% ideal, but about the best we can do easily.
9604 if test $enable_shared = yes; then
9605 link_gomp="-lgomp %{static: $LIBS}"
9606 else
9607 link_gomp="-lgomp $LIBS"
9613 if test "$ac_cv_fc_compiler_gnu" = yes; then
9614 USE_FORTRAN_TRUE=
9615 USE_FORTRAN_FALSE='#'
9616 else
9617 USE_FORTRAN_TRUE='#'
9618 USE_FORTRAN_FALSE=
9622 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9623 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
9624 # the underscore here and update the PREREQ. If it doesn't, then we'll
9625 # need to copy this macro to our acinclude.m4.
9626 save_CFLAGS="$CFLAGS"
9627 for i in $config_path; do
9628 if test -f $srcdir/config/$i/omp-lock.h; then
9629 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9630 break
9632 done
9634 if test "$cross_compiling" = yes; then
9635 # Depending upon the size, compute the lo and hi bounds.
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h. */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9644 main ()
9646 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9647 test_array [0] = 0
9650 return 0;
9652 _ACEOF
9653 rm -f conftest.$ac_objext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9655 (eval $ac_compile) 2>conftest.er1
9656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -z "$ac_c_werror_flag"
9663 || test ! -s conftest.err'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 (eval $ac_try) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest.$ac_objext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_lo=0 ac_mid=0
9676 while :; do
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9685 main ()
9687 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9688 test_array [0] = 0
9691 return 0;
9693 _ACEOF
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696 (eval $ac_compile) 2>conftest.er1
9697 ac_status=$?
9698 grep -v '^ *+' conftest.er1 >conftest.err
9699 rm -f conftest.er1
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -z "$ac_c_werror_flag"
9704 || test ! -s conftest.err'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 (eval $ac_try) 2>&5
9707 ac_status=$?
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; } &&
9710 { ac_try='test -s conftest.$ac_objext'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 (eval $ac_try) 2>&5
9713 ac_status=$?
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; }; then
9716 ac_hi=$ac_mid; break
9717 else
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9721 ac_lo=`expr $ac_mid + 1`
9722 if test $ac_lo -le $ac_mid; then
9723 ac_lo= ac_hi=
9724 break
9726 ac_mid=`expr 2 '*' $ac_mid + 1`
9728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9729 done
9730 else
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9742 main ()
9744 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9745 test_array [0] = 0
9748 return 0;
9750 _ACEOF
9751 rm -f conftest.$ac_objext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9753 (eval $ac_compile) 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag"
9761 || test ! -s conftest.err'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest.$ac_objext'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 ac_hi=-1 ac_mid=-1
9774 while :; do
9775 cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h. */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9783 main ()
9785 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)];
9786 test_array [0] = 0
9789 return 0;
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9794 (eval $ac_compile) 2>conftest.er1
9795 ac_status=$?
9796 grep -v '^ *+' conftest.er1 >conftest.err
9797 rm -f conftest.er1
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -z "$ac_c_werror_flag"
9802 || test ! -s conftest.err'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 (eval $ac_try) 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; } &&
9808 { ac_try='test -s conftest.$ac_objext'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 (eval $ac_try) 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_lo=$ac_mid; break
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_hi=`expr '(' $ac_mid ')' - 1`
9820 if test $ac_mid -le $ac_hi; then
9821 ac_lo= ac_hi=
9822 break
9824 ac_mid=`expr 2 '*' $ac_mid`
9826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9827 done
9828 else
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832 ac_lo= ac_hi=
9834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9837 # Binary search between lo and hi bounds.
9838 while test "x$ac_lo" != "x$ac_hi"; do
9839 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h. */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9848 main ()
9850 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9851 test_array [0] = 0
9854 return 0;
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try='test -z "$ac_c_werror_flag"
9867 || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_hi=$ac_mid
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_lo=`expr '(' $ac_mid ')' + 1`
9886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9887 done
9888 case $ac_lo in
9889 ?*) OMP_LOCK_SIZE=$ac_lo;;
9890 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9891 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9892 { (exit 1); exit 1; }; } ;;
9893 esac
9894 else
9895 if test "$cross_compiling" = yes; then
9896 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9897 See \`config.log' for more details." >&5
9898 echo "$as_me: error: cannot run test program while cross compiling
9899 See \`config.log' for more details." >&2;}
9900 { (exit 1); exit 1; }; }
9901 else
9902 cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h. */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9909 long longval () { return sizeof (omp_lock_t); }
9910 unsigned long ulongval () { return sizeof (omp_lock_t); }
9911 #include <stdio.h>
9912 #include <stdlib.h>
9914 main ()
9917 FILE *f = fopen ("conftest.val", "w");
9918 if (! f)
9919 exit (1);
9920 if ((sizeof (omp_lock_t)) < 0)
9922 long i = longval ();
9923 if (i != (sizeof (omp_lock_t)))
9924 exit (1);
9925 fprintf (f, "%ld\n", i);
9927 else
9929 unsigned long i = ulongval ();
9930 if (i != (sizeof (omp_lock_t)))
9931 exit (1);
9932 fprintf (f, "%lu\n", i);
9934 exit (ferror (f) || fclose (f) != 0);
9937 return 0;
9939 _ACEOF
9940 rm -f conftest$ac_exeext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942 (eval $ac_link) 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 (eval $ac_try) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; }; then
9951 OMP_LOCK_SIZE=`cat conftest.val`
9952 else
9953 echo "$as_me: program exited with status $ac_status" >&5
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 ( exit $ac_status )
9958 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9959 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9960 { (exit 1); exit 1; }; }
9962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9965 rm -f conftest.val
9966 if test "$cross_compiling" = yes; then
9967 # Depending upon the size, compute the lo and hi bounds.
9968 cat >conftest.$ac_ext <<_ACEOF
9969 /* confdefs.h. */
9970 _ACEOF
9971 cat confdefs.h >>conftest.$ac_ext
9972 cat >>conftest.$ac_ext <<_ACEOF
9973 /* end confdefs.h. */
9976 main ()
9978 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
9979 test_array [0] = 0
9982 return 0;
9984 _ACEOF
9985 rm -f conftest.$ac_objext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9987 (eval $ac_compile) 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 (eval $ac_try) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest.$ac_objext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_lo=0 ac_mid=0
10008 while :; do
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h. */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10017 main ()
10019 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10020 test_array [0] = 0
10023 return 0;
10025 _ACEOF
10026 rm -f conftest.$ac_objext
10027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10028 (eval $ac_compile) 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag"
10036 || test ! -s conftest.err'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; } &&
10042 { ac_try='test -s conftest.$ac_objext'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 ac_hi=$ac_mid; break
10049 else
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10053 ac_lo=`expr $ac_mid + 1`
10054 if test $ac_lo -le $ac_mid; then
10055 ac_lo= ac_hi=
10056 break
10058 ac_mid=`expr 2 '*' $ac_mid + 1`
10060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10061 done
10062 else
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 cat >conftest.$ac_ext <<_ACEOF
10067 /* confdefs.h. */
10068 _ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h. */
10074 main ()
10076 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
10077 test_array [0] = 0
10080 return 0;
10082 _ACEOF
10083 rm -f conftest.$ac_objext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085 (eval $ac_compile) 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -z "$ac_c_werror_flag"
10093 || test ! -s conftest.err'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10096 ac_status=$?
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest.$ac_objext'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; }; then
10105 ac_hi=-1 ac_mid=-1
10106 while :; do
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h. */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10115 main ()
10117 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)];
10118 test_array [0] = 0
10121 return 0;
10123 _ACEOF
10124 rm -f conftest.$ac_objext
10125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10126 (eval $ac_compile) 2>conftest.er1
10127 ac_status=$?
10128 grep -v '^ *+' conftest.er1 >conftest.err
10129 rm -f conftest.er1
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } &&
10133 { ac_try='test -z "$ac_c_werror_flag"
10134 || test ! -s conftest.err'
10135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136 (eval $ac_try) 2>&5
10137 ac_status=$?
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; } &&
10140 { ac_try='test -s conftest.$ac_objext'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; }; then
10146 ac_lo=$ac_mid; break
10147 else
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ac_hi=`expr '(' $ac_mid ')' - 1`
10152 if test $ac_mid -le $ac_hi; then
10153 ac_lo= ac_hi=
10154 break
10156 ac_mid=`expr 2 '*' $ac_mid`
10158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10159 done
10160 else
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10164 ac_lo= ac_hi=
10166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10169 # Binary search between lo and hi bounds.
10170 while test "x$ac_lo" != "x$ac_hi"; do
10171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10180 main ()
10182 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10183 test_array [0] = 0
10186 return 0;
10188 _ACEOF
10189 rm -f conftest.$ac_objext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191 (eval $ac_compile) 2>conftest.er1
10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 { ac_try='test -z "$ac_c_werror_flag"
10199 || test ! -s conftest.err'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; } &&
10205 { ac_try='test -s conftest.$ac_objext'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_hi=$ac_mid
10212 else
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10216 ac_lo=`expr '(' $ac_mid ')' + 1`
10218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10219 done
10220 case $ac_lo in
10221 ?*) OMP_LOCK_ALIGN=$ac_lo;;
10222 '') ;;
10223 esac
10224 else
10225 if test "$cross_compiling" = yes; then
10226 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10227 See \`config.log' for more details." >&5
10228 echo "$as_me: error: cannot run test program while cross compiling
10229 See \`config.log' for more details." >&2;}
10230 { (exit 1); exit 1; }; }
10231 else
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10239 long longval () { return __alignof (omp_lock_t); }
10240 unsigned long ulongval () { return __alignof (omp_lock_t); }
10241 #include <stdio.h>
10242 #include <stdlib.h>
10244 main ()
10247 FILE *f = fopen ("conftest.val", "w");
10248 if (! f)
10249 exit (1);
10250 if ((__alignof (omp_lock_t)) < 0)
10252 long i = longval ();
10253 if (i != (__alignof (omp_lock_t)))
10254 exit (1);
10255 fprintf (f, "%ld\n", i);
10257 else
10259 unsigned long i = ulongval ();
10260 if (i != (__alignof (omp_lock_t)))
10261 exit (1);
10262 fprintf (f, "%lu\n", i);
10264 exit (ferror (f) || fclose (f) != 0);
10267 return 0;
10269 _ACEOF
10270 rm -f conftest$ac_exeext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 OMP_LOCK_ALIGN=`cat conftest.val`
10282 else
10283 echo "$as_me: program exited with status $ac_status" >&5
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10291 rm -f conftest.val
10292 if test "$cross_compiling" = yes; then
10293 # Depending upon the size, compute the lo and hi bounds.
10294 cat >conftest.$ac_ext <<_ACEOF
10295 /* confdefs.h. */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10302 main ()
10304 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10305 test_array [0] = 0
10308 return 0;
10310 _ACEOF
10311 rm -f conftest.$ac_objext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313 (eval $ac_compile) 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -z "$ac_c_werror_flag"
10321 || test ! -s conftest.err'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10324 ac_status=$?
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; } &&
10327 { ac_try='test -s conftest.$ac_objext'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 ac_lo=0 ac_mid=0
10334 while :; do
10335 cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h. */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10343 main ()
10345 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10346 test_array [0] = 0
10349 return 0;
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -z "$ac_c_werror_flag"
10362 || test ! -s conftest.err'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try='test -s conftest.$ac_objext'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 ac_hi=$ac_mid; break
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 ac_lo=`expr $ac_mid + 1`
10380 if test $ac_lo -le $ac_mid; then
10381 ac_lo= ac_hi=
10382 break
10384 ac_mid=`expr 2 '*' $ac_mid + 1`
10386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10387 done
10388 else
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h. */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10400 main ()
10402 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10403 test_array [0] = 0
10406 return 0;
10408 _ACEOF
10409 rm -f conftest.$ac_objext
10410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10411 (eval $ac_compile) 2>conftest.er1
10412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } &&
10418 { ac_try='test -z "$ac_c_werror_flag"
10419 || test ! -s conftest.err'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest.$ac_objext'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 ac_hi=-1 ac_mid=-1
10432 while :; do
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10441 main ()
10443 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)];
10444 test_array [0] = 0
10447 return 0;
10449 _ACEOF
10450 rm -f conftest.$ac_objext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } &&
10459 { ac_try='test -z "$ac_c_werror_flag"
10460 || test ! -s conftest.err'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; } &&
10466 { ac_try='test -s conftest.$ac_objext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_lo=$ac_mid; break
10473 else
10474 echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_hi=`expr '(' $ac_mid ')' - 1`
10478 if test $ac_mid -le $ac_hi; then
10479 ac_lo= ac_hi=
10480 break
10482 ac_mid=`expr 2 '*' $ac_mid`
10484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10485 done
10486 else
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_lo= ac_hi=
10492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10495 # Binary search between lo and hi bounds.
10496 while test "x$ac_lo" != "x$ac_hi"; do
10497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10498 cat >conftest.$ac_ext <<_ACEOF
10499 /* confdefs.h. */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10506 main ()
10508 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10509 test_array [0] = 0
10512 return 0;
10514 _ACEOF
10515 rm -f conftest.$ac_objext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517 (eval $ac_compile) 2>conftest.er1
10518 ac_status=$?
10519 grep -v '^ *+' conftest.er1 >conftest.err
10520 rm -f conftest.er1
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -z "$ac_c_werror_flag"
10525 || test ! -s conftest.err'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; } &&
10531 { ac_try='test -s conftest.$ac_objext'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 ac_hi=$ac_mid
10538 else
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10542 ac_lo=`expr '(' $ac_mid ')' + 1`
10544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10545 done
10546 case $ac_lo in
10547 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10548 '') ;;
10549 esac
10550 else
10551 if test "$cross_compiling" = yes; then
10552 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10553 See \`config.log' for more details." >&5
10554 echo "$as_me: error: cannot run test program while cross compiling
10555 See \`config.log' for more details." >&2;}
10556 { (exit 1); exit 1; }; }
10557 else
10558 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10565 long longval () { return sizeof (omp_nest_lock_t); }
10566 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10567 #include <stdio.h>
10568 #include <stdlib.h>
10570 main ()
10573 FILE *f = fopen ("conftest.val", "w");
10574 if (! f)
10575 exit (1);
10576 if ((sizeof (omp_nest_lock_t)) < 0)
10578 long i = longval ();
10579 if (i != (sizeof (omp_nest_lock_t)))
10580 exit (1);
10581 fprintf (f, "%ld\n", i);
10583 else
10585 unsigned long i = ulongval ();
10586 if (i != (sizeof (omp_nest_lock_t)))
10587 exit (1);
10588 fprintf (f, "%lu\n", i);
10590 exit (ferror (f) || fclose (f) != 0);
10593 return 0;
10595 _ACEOF
10596 rm -f conftest$ac_exeext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598 (eval $ac_link) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; }; then
10607 OMP_NEST_LOCK_SIZE=`cat conftest.val`
10608 else
10609 echo "$as_me: program exited with status $ac_status" >&5
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10617 rm -f conftest.val
10618 if test "$cross_compiling" = yes; then
10619 # Depending upon the size, compute the lo and hi bounds.
10620 cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h. */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10628 main ()
10630 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10631 test_array [0] = 0
10634 return 0;
10636 _ACEOF
10637 rm -f conftest.$ac_objext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10639 (eval $ac_compile) 2>conftest.er1
10640 ac_status=$?
10641 grep -v '^ *+' conftest.er1 >conftest.err
10642 rm -f conftest.er1
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try='test -z "$ac_c_werror_flag"
10647 || test ! -s conftest.err'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try='test -s conftest.$ac_objext'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 ac_lo=0 ac_mid=0
10660 while :; do
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10669 main ()
10671 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10672 test_array [0] = 0
10675 return 0;
10677 _ACEOF
10678 rm -f conftest.$ac_objext
10679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10680 (eval $ac_compile) 2>conftest.er1
10681 ac_status=$?
10682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } &&
10687 { ac_try='test -z "$ac_c_werror_flag"
10688 || test ! -s conftest.err'
10689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; } &&
10694 { ac_try='test -s conftest.$ac_objext'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10697 ac_status=$?
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; }; then
10700 ac_hi=$ac_mid; break
10701 else
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 ac_lo=`expr $ac_mid + 1`
10706 if test $ac_lo -le $ac_mid; then
10707 ac_lo= ac_hi=
10708 break
10710 ac_mid=`expr 2 '*' $ac_mid + 1`
10712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10713 done
10714 else
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 cat >conftest.$ac_ext <<_ACEOF
10719 /* confdefs.h. */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10726 main ()
10728 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
10729 test_array [0] = 0
10732 return 0;
10734 _ACEOF
10735 rm -f conftest.$ac_objext
10736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10737 (eval $ac_compile) 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -z "$ac_c_werror_flag"
10745 || test ! -s conftest.err'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; } &&
10751 { ac_try='test -s conftest.$ac_objext'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10754 ac_status=$?
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }; then
10757 ac_hi=-1 ac_mid=-1
10758 while :; do
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h. */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10767 main ()
10769 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)];
10770 test_array [0] = 0
10773 return 0;
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778 (eval $ac_compile) 2>conftest.er1
10779 ac_status=$?
10780 grep -v '^ *+' conftest.er1 >conftest.err
10781 rm -f conftest.er1
10782 cat conftest.err >&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try='test -z "$ac_c_werror_flag"
10786 || test ! -s conftest.err'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; } &&
10792 { ac_try='test -s conftest.$ac_objext'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 ac_lo=$ac_mid; break
10799 else
10800 echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_hi=`expr '(' $ac_mid ')' - 1`
10804 if test $ac_mid -le $ac_hi; then
10805 ac_lo= ac_hi=
10806 break
10808 ac_mid=`expr 2 '*' $ac_mid`
10810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10811 done
10812 else
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 ac_lo= ac_hi=
10818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10821 # Binary search between lo and hi bounds.
10822 while test "x$ac_lo" != "x$ac_hi"; do
10823 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10824 cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h. */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10832 main ()
10834 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10835 test_array [0] = 0
10838 return 0;
10840 _ACEOF
10841 rm -f conftest.$ac_objext
10842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10843 (eval $ac_compile) 2>conftest.er1
10844 ac_status=$?
10845 grep -v '^ *+' conftest.er1 >conftest.err
10846 rm -f conftest.er1
10847 cat conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } &&
10850 { ac_try='test -z "$ac_c_werror_flag"
10851 || test ! -s conftest.err'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; } &&
10857 { ac_try='test -s conftest.$ac_objext'
10858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859 (eval $ac_try) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_hi=$ac_mid
10864 else
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10868 ac_lo=`expr '(' $ac_mid ')' + 1`
10870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10871 done
10872 case $ac_lo in
10873 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
10874 '') ;;
10875 esac
10876 else
10877 if test "$cross_compiling" = yes; then
10878 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10879 See \`config.log' for more details." >&5
10880 echo "$as_me: error: cannot run test program while cross compiling
10881 See \`config.log' for more details." >&2;}
10882 { (exit 1); exit 1; }; }
10883 else
10884 cat >conftest.$ac_ext <<_ACEOF
10885 /* confdefs.h. */
10886 _ACEOF
10887 cat confdefs.h >>conftest.$ac_ext
10888 cat >>conftest.$ac_ext <<_ACEOF
10889 /* end confdefs.h. */
10891 long longval () { return __alignof (omp_nest_lock_t); }
10892 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
10893 #include <stdio.h>
10894 #include <stdlib.h>
10896 main ()
10899 FILE *f = fopen ("conftest.val", "w");
10900 if (! f)
10901 exit (1);
10902 if ((__alignof (omp_nest_lock_t)) < 0)
10904 long i = longval ();
10905 if (i != (__alignof (omp_nest_lock_t)))
10906 exit (1);
10907 fprintf (f, "%ld\n", i);
10909 else
10911 unsigned long i = ulongval ();
10912 if (i != (__alignof (omp_nest_lock_t)))
10913 exit (1);
10914 fprintf (f, "%lu\n", i);
10916 exit (ferror (f) || fclose (f) != 0);
10919 return 0;
10921 _ACEOF
10922 rm -f conftest$ac_exeext
10923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924 (eval $ac_link) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
10934 else
10935 echo "$as_me: program exited with status $ac_status" >&5
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10943 rm -f conftest.val
10945 # If the lock fits in an integer, then arrange for Fortran to use that
10946 # integer. If it doesn't, then arrange for Fortran to use a pointer.
10947 # Except that we don't have a way at present to multi-lib the installed
10948 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
10949 # actual target.
10950 OMP_LOCK_KIND=$OMP_LOCK_SIZE
10951 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
10952 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
10953 OMP_LOCK_KIND=8
10955 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
10956 OMP_NEST_LOCK_KIND=8
10965 CFLAGS="$save_CFLAGS"
10967 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
10969 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
10971 cat >confcache <<\_ACEOF
10972 # This file is a shell script that caches the results of configure
10973 # tests run on this system so they can be shared between configure
10974 # scripts and configure runs, see configure's option --config-cache.
10975 # It is not useful on other systems. If it contains results you don't
10976 # want to keep, you may remove or edit it.
10978 # config.status only pays attention to the cache file if you give it
10979 # the --recheck option to rerun configure.
10981 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10982 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10983 # following values.
10985 _ACEOF
10987 # The following way of writing the cache mishandles newlines in values,
10988 # but we know of no workaround that is simple, portable, and efficient.
10989 # So, don't put newlines in cache variables' values.
10990 # Ultrix sh set writes to stderr and can't be redirected directly,
10991 # and sets the high bit in the cache file unless we assign to the vars.
10993 (set) 2>&1 |
10994 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10995 *ac_space=\ *)
10996 # `set' does not quote correctly, so add quotes (double-quote
10997 # substitution turns \\\\ into \\, and sed turns \\ into \).
10998 sed -n \
10999 "s/'/'\\\\''/g;
11000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11003 # `set' quotes correctly as required by POSIX, so do not add quotes.
11004 sed -n \
11005 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11007 esac;
11009 sed '
11010 t clear
11011 : clear
11012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11013 t end
11014 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11015 : end' >>confcache
11016 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11017 if test -w $cache_file; then
11018 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11019 cat confcache >$cache_file
11020 else
11021 echo "not updating unwritable cache $cache_file"
11024 rm -f confcache
11026 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11027 # Let make expand exec_prefix.
11028 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11030 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11031 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11032 # trailing colons and then remove the whole line if VPATH becomes empty
11033 # (actually we leave an empty line to preserve line numbers).
11034 if test "x$srcdir" = x.; then
11035 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11036 s/:*\$(srcdir):*/:/;
11037 s/:*\${srcdir}:*/:/;
11038 s/:*@srcdir@:*/:/;
11039 s/^\([^=]*=[ ]*\):*/\1/;
11040 s/:*$//;
11041 s/^[^=]*=[ ]*$//;
11045 DEFS=-DHAVE_CONFIG_H
11047 ac_libobjs=
11048 ac_ltlibobjs=
11049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11050 # 1. Remove the extension, and $U if already installed.
11051 ac_i=`echo "$ac_i" |
11052 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11053 # 2. Add them.
11054 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11055 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11056 done
11057 LIBOBJS=$ac_libobjs
11059 LTLIBOBJS=$ac_ltlibobjs
11062 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11063 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11064 Usually this means the macro was only invoked conditionally." >&5
11065 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11066 Usually this means the macro was only invoked conditionally." >&2;}
11067 { (exit 1); exit 1; }; }
11069 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11070 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11071 Usually this means the macro was only invoked conditionally." >&5
11072 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11073 Usually this means the macro was only invoked conditionally." >&2;}
11074 { (exit 1); exit 1; }; }
11076 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11077 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11078 Usually this means the macro was only invoked conditionally." >&5
11079 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11080 Usually this means the macro was only invoked conditionally." >&2;}
11081 { (exit 1); exit 1; }; }
11083 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
11084 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11085 Usually this means the macro was only invoked conditionally." >&5
11086 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
11087 Usually this means the macro was only invoked conditionally." >&2;}
11088 { (exit 1); exit 1; }; }
11090 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
11091 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
11092 Usually this means the macro was only invoked conditionally." >&5
11093 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
11094 Usually this means the macro was only invoked conditionally." >&2;}
11095 { (exit 1); exit 1; }; }
11098 : ${CONFIG_STATUS=./config.status}
11099 ac_clean_files_save=$ac_clean_files
11100 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11101 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11102 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11103 cat >$CONFIG_STATUS <<_ACEOF
11104 #! $SHELL
11105 # Generated by $as_me.
11106 # Run this file to recreate the current configuration.
11107 # Compiler output produced by configure, useful for debugging
11108 # configure, is in config.log if it exists.
11110 debug=false
11111 ac_cs_recheck=false
11112 ac_cs_silent=false
11113 SHELL=\${CONFIG_SHELL-$SHELL}
11114 _ACEOF
11116 cat >>$CONFIG_STATUS <<\_ACEOF
11117 ## --------------------- ##
11118 ## M4sh Initialization. ##
11119 ## --------------------- ##
11121 # Be Bourne compatible
11122 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11123 emulate sh
11124 NULLCMD=:
11125 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11126 # is contrary to our usage. Disable this feature.
11127 alias -g '${1+"$@"}'='"$@"'
11128 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11129 set -o posix
11131 DUALCASE=1; export DUALCASE # for MKS sh
11133 # Support unset when possible.
11134 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11135 as_unset=unset
11136 else
11137 as_unset=false
11141 # Work around bugs in pre-3.0 UWIN ksh.
11142 $as_unset ENV MAIL MAILPATH
11143 PS1='$ '
11144 PS2='> '
11145 PS4='+ '
11147 # NLS nuisances.
11148 for as_var in \
11149 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11150 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11151 LC_TELEPHONE LC_TIME
11153 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11154 eval $as_var=C; export $as_var
11155 else
11156 $as_unset $as_var
11158 done
11160 # Required to use basename.
11161 if expr a : '\(a\)' >/dev/null 2>&1; then
11162 as_expr=expr
11163 else
11164 as_expr=false
11167 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11168 as_basename=basename
11169 else
11170 as_basename=false
11174 # Name of the executable.
11175 as_me=`$as_basename "$0" ||
11176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11177 X"$0" : 'X\(//\)$' \| \
11178 X"$0" : 'X\(/\)$' \| \
11179 . : '\(.\)' 2>/dev/null ||
11180 echo X/"$0" |
11181 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11182 /^X\/\(\/\/\)$/{ s//\1/; q; }
11183 /^X\/\(\/\).*/{ s//\1/; q; }
11184 s/.*/./; q'`
11187 # PATH needs CR, and LINENO needs CR and PATH.
11188 # Avoid depending upon Character Ranges.
11189 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11190 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11191 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11192 as_cr_digits='0123456789'
11193 as_cr_alnum=$as_cr_Letters$as_cr_digits
11195 # The user is always right.
11196 if test "${PATH_SEPARATOR+set}" != set; then
11197 echo "#! /bin/sh" >conf$$.sh
11198 echo "exit 0" >>conf$$.sh
11199 chmod +x conf$$.sh
11200 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11201 PATH_SEPARATOR=';'
11202 else
11203 PATH_SEPARATOR=:
11205 rm -f conf$$.sh
11209 as_lineno_1=$LINENO
11210 as_lineno_2=$LINENO
11211 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11212 test "x$as_lineno_1" != "x$as_lineno_2" &&
11213 test "x$as_lineno_3" = "x$as_lineno_2" || {
11214 # Find who we are. Look in the path if we contain no path at all
11215 # relative or not.
11216 case $0 in
11217 *[\\/]* ) as_myself=$0 ;;
11218 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219 for as_dir in $PATH
11221 IFS=$as_save_IFS
11222 test -z "$as_dir" && as_dir=.
11223 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11224 done
11227 esac
11228 # We did not find ourselves, most probably we were run as `sh COMMAND'
11229 # in which case we are not to be found in the path.
11230 if test "x$as_myself" = x; then
11231 as_myself=$0
11233 if test ! -f "$as_myself"; then
11234 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11235 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11236 { (exit 1); exit 1; }; }
11238 case $CONFIG_SHELL in
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
11245 for as_base in sh bash ksh sh5; do
11246 case $as_dir in
11248 if ("$as_dir/$as_base" -c '
11249 as_lineno_1=$LINENO
11250 as_lineno_2=$LINENO
11251 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11252 test "x$as_lineno_1" != "x$as_lineno_2" &&
11253 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11254 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11255 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11256 CONFIG_SHELL=$as_dir/$as_base
11257 export CONFIG_SHELL
11258 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11259 fi;;
11260 esac
11261 done
11262 done
11264 esac
11266 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11267 # uniformly replaced by the line number. The first 'sed' inserts a
11268 # line-number line before each line; the second 'sed' does the real
11269 # work. The second script uses 'N' to pair each line-number line
11270 # with the numbered line, and appends trailing '-' during
11271 # substitution so that $LINENO is not a special case at line end.
11272 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11273 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11274 sed '=' <$as_myself |
11275 sed '
11277 s,$,-,
11278 : loop
11279 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11280 t loop
11281 s,-$,,
11282 s,^['$as_cr_digits']*\n,,
11283 ' >$as_me.lineno &&
11284 chmod +x $as_me.lineno ||
11285 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11286 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11287 { (exit 1); exit 1; }; }
11289 # Don't try to exec as it changes $[0], causing all sort of problems
11290 # (the dirname of $[0] is not the place where we might find the
11291 # original and so on. Autoconf is especially sensible to this).
11292 . ./$as_me.lineno
11293 # Exit status is that of the last command.
11294 exit
11298 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11299 *c*,-n*) ECHO_N= ECHO_C='
11300 ' ECHO_T=' ' ;;
11301 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11302 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11303 esac
11305 if expr a : '\(a\)' >/dev/null 2>&1; then
11306 as_expr=expr
11307 else
11308 as_expr=false
11311 rm -f conf$$ conf$$.exe conf$$.file
11312 echo >conf$$.file
11313 if ln -s conf$$.file conf$$ 2>/dev/null; then
11314 # We could just check for DJGPP; but this test a) works b) is more generic
11315 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11316 if test -f conf$$.exe; then
11317 # Don't use ln at all; we don't have any links
11318 as_ln_s='cp -p'
11319 else
11320 as_ln_s='ln -s'
11322 elif ln conf$$.file conf$$ 2>/dev/null; then
11323 as_ln_s=ln
11324 else
11325 as_ln_s='cp -p'
11327 rm -f conf$$ conf$$.exe conf$$.file
11329 if mkdir -p . 2>/dev/null; then
11330 as_mkdir_p=:
11331 else
11332 test -d ./-p && rmdir ./-p
11333 as_mkdir_p=false
11336 as_executable_p="test -f"
11338 # Sed expression to map a string onto a valid CPP name.
11339 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11341 # Sed expression to map a string onto a valid variable name.
11342 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11345 # IFS
11346 # We need space, tab and new line, in precisely that order.
11347 as_nl='
11349 IFS=" $as_nl"
11351 # CDPATH.
11352 $as_unset CDPATH
11354 exec 6>&1
11356 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11357 # report actual input values of CONFIG_FILES etc. instead of their
11358 # values after options handling. Logging --version etc. is OK.
11359 exec 5>>config.log
11361 echo
11362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11363 ## Running $as_me. ##
11364 _ASBOX
11365 } >&5
11366 cat >&5 <<_CSEOF
11368 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11369 generated by GNU Autoconf 2.59. Invocation command line was
11371 CONFIG_FILES = $CONFIG_FILES
11372 CONFIG_HEADERS = $CONFIG_HEADERS
11373 CONFIG_LINKS = $CONFIG_LINKS
11374 CONFIG_COMMANDS = $CONFIG_COMMANDS
11375 $ $0 $@
11377 _CSEOF
11378 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11379 echo >&5
11380 _ACEOF
11382 # Files that config.status was made for.
11383 if test -n "$ac_config_files"; then
11384 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11387 if test -n "$ac_config_headers"; then
11388 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11391 if test -n "$ac_config_links"; then
11392 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11395 if test -n "$ac_config_commands"; then
11396 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11399 cat >>$CONFIG_STATUS <<\_ACEOF
11401 ac_cs_usage="\
11402 \`$as_me' instantiates files from templates according to the
11403 current configuration.
11405 Usage: $0 [OPTIONS] [FILE]...
11407 -h, --help print this help, then exit
11408 -V, --version print version number, then exit
11409 -q, --quiet do not print progress messages
11410 -d, --debug don't remove temporary files
11411 --recheck update $as_me by reconfiguring in the same conditions
11412 --file=FILE[:TEMPLATE]
11413 instantiate the configuration file FILE
11414 --header=FILE[:TEMPLATE]
11415 instantiate the configuration header FILE
11417 Configuration files:
11418 $config_files
11420 Configuration headers:
11421 $config_headers
11423 Configuration commands:
11424 $config_commands
11426 Report bugs to <bug-autoconf@gnu.org>."
11427 _ACEOF
11429 cat >>$CONFIG_STATUS <<_ACEOF
11430 ac_cs_version="\\
11431 GNU OpenMP Runtime Library config.status 1.0
11432 configured by $0, generated by GNU Autoconf 2.59,
11433 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11435 Copyright (C) 2003 Free Software Foundation, Inc.
11436 This config.status script is free software; the Free Software Foundation
11437 gives unlimited permission to copy, distribute and modify it."
11438 srcdir=$srcdir
11439 INSTALL="$INSTALL"
11440 _ACEOF
11442 cat >>$CONFIG_STATUS <<\_ACEOF
11443 # If no file are specified by the user, then we need to provide default
11444 # value. By we need to know if files were specified by the user.
11445 ac_need_defaults=:
11446 while test $# != 0
11448 case $1 in
11449 --*=*)
11450 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11451 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11452 ac_shift=:
11455 ac_option=$1
11456 ac_optarg=$2
11457 ac_shift=shift
11459 *) # This is not an option, so the user has probably given explicit
11460 # arguments.
11461 ac_option=$1
11462 ac_need_defaults=false;;
11463 esac
11465 case $ac_option in
11466 # Handling of the options.
11467 _ACEOF
11468 cat >>$CONFIG_STATUS <<\_ACEOF
11469 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11470 ac_cs_recheck=: ;;
11471 --version | --vers* | -V )
11472 echo "$ac_cs_version"; exit 0 ;;
11473 --he | --h)
11474 # Conflict between --help and --header
11475 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11476 Try \`$0 --help' for more information." >&5
11477 echo "$as_me: error: ambiguous option: $1
11478 Try \`$0 --help' for more information." >&2;}
11479 { (exit 1); exit 1; }; };;
11480 --help | --hel | -h )
11481 echo "$ac_cs_usage"; exit 0 ;;
11482 --debug | --d* | -d )
11483 debug=: ;;
11484 --file | --fil | --fi | --f )
11485 $ac_shift
11486 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11487 ac_need_defaults=false;;
11488 --header | --heade | --head | --hea )
11489 $ac_shift
11490 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11491 ac_need_defaults=false;;
11492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11493 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11494 ac_cs_silent=: ;;
11496 # This is an error.
11497 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11498 Try \`$0 --help' for more information." >&5
11499 echo "$as_me: error: unrecognized option: $1
11500 Try \`$0 --help' for more information." >&2;}
11501 { (exit 1); exit 1; }; } ;;
11503 *) ac_config_targets="$ac_config_targets $1" ;;
11505 esac
11506 shift
11507 done
11509 ac_configure_extra_args=
11511 if $ac_cs_silent; then
11512 exec 6>/dev/null
11513 ac_configure_extra_args="$ac_configure_extra_args --silent"
11516 _ACEOF
11517 cat >>$CONFIG_STATUS <<_ACEOF
11518 if \$ac_cs_recheck; then
11519 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11520 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11523 _ACEOF
11525 cat >>$CONFIG_STATUS <<_ACEOF
11527 # INIT-COMMANDS section.
11531 srcdir="$srcdir"
11532 host="$host"
11533 target="$target"
11534 with_multisubdir="$with_multisubdir"
11535 with_multisrctop="$with_multisrctop"
11536 with_target_subdir="$with_target_subdir"
11537 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11538 multi_basedir="$multi_basedir"
11539 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11540 CC="$CC"
11541 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11543 GCC="$GCC"
11544 CC="$CC"
11545 acx_cv_header_stdint="$acx_cv_header_stdint"
11546 acx_cv_type_int8_t="$acx_cv_type_int8_t"
11547 acx_cv_type_int16_t="$acx_cv_type_int16_t"
11548 acx_cv_type_int32_t="$acx_cv_type_int32_t"
11549 acx_cv_type_int64_t="$acx_cv_type_int64_t"
11550 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11551 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11552 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11553 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11554 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11555 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11556 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11557 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11558 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11561 _ACEOF
11565 cat >>$CONFIG_STATUS <<\_ACEOF
11566 for ac_config_target in $ac_config_targets
11568 case "$ac_config_target" in
11569 # Handling of arguments.
11570 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11571 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11572 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11573 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
11574 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11575 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11576 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11577 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11578 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11579 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
11580 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11581 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11582 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11583 { (exit 1); exit 1; }; };;
11584 esac
11585 done
11587 # If the user did not use the arguments to specify the items to instantiate,
11588 # then the envvar interface is used. Set only those that are not.
11589 # We use the long form for the default assignment because of an extremely
11590 # bizarre bug on SunOS 4.1.3.
11591 if $ac_need_defaults; then
11592 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11593 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11594 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11597 # Have a temporary directory for convenience. Make it in the build tree
11598 # simply because there is no reason to put it here, and in addition,
11599 # creating and moving files from /tmp can sometimes cause problems.
11600 # Create a temporary directory, and hook for its removal unless debugging.
11601 $debug ||
11603 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11604 trap '{ (exit 1); exit 1; }' 1 2 13 15
11607 # Create a (secure) tmp directory for tmp files.
11610 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11611 test -n "$tmp" && test -d "$tmp"
11612 } ||
11614 tmp=./confstat$$-$RANDOM
11615 (umask 077 && mkdir $tmp)
11616 } ||
11618 echo "$me: cannot create a temporary directory in ." >&2
11619 { (exit 1); exit 1; }
11622 _ACEOF
11624 cat >>$CONFIG_STATUS <<_ACEOF
11627 # CONFIG_FILES section.
11630 # No need to generate the scripts if there are no CONFIG_FILES.
11631 # This happens for instance when ./config.status config.h
11632 if test -n "\$CONFIG_FILES"; then
11633 # Protect against being on the right side of a sed subst in config.status.
11634 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11635 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11636 s,@SHELL@,$SHELL,;t t
11637 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11638 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11639 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11640 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11641 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11642 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11643 s,@exec_prefix@,$exec_prefix,;t t
11644 s,@prefix@,$prefix,;t t
11645 s,@program_transform_name@,$program_transform_name,;t t
11646 s,@bindir@,$bindir,;t t
11647 s,@sbindir@,$sbindir,;t t
11648 s,@libexecdir@,$libexecdir,;t t
11649 s,@datadir@,$datadir,;t t
11650 s,@sysconfdir@,$sysconfdir,;t t
11651 s,@sharedstatedir@,$sharedstatedir,;t t
11652 s,@localstatedir@,$localstatedir,;t t
11653 s,@libdir@,$libdir,;t t
11654 s,@includedir@,$includedir,;t t
11655 s,@oldincludedir@,$oldincludedir,;t t
11656 s,@infodir@,$infodir,;t t
11657 s,@mandir@,$mandir,;t t
11658 s,@build_alias@,$build_alias,;t t
11659 s,@host_alias@,$host_alias,;t t
11660 s,@target_alias@,$target_alias,;t t
11661 s,@DEFS@,$DEFS,;t t
11662 s,@ECHO_C@,$ECHO_C,;t t
11663 s,@ECHO_N@,$ECHO_N,;t t
11664 s,@ECHO_T@,$ECHO_T,;t t
11665 s,@LIBS@,$LIBS,;t t
11666 s,@build@,$build,;t t
11667 s,@build_cpu@,$build_cpu,;t t
11668 s,@build_vendor@,$build_vendor,;t t
11669 s,@build_os@,$build_os,;t t
11670 s,@host@,$host,;t t
11671 s,@host_cpu@,$host_cpu,;t t
11672 s,@host_vendor@,$host_vendor,;t t
11673 s,@host_os@,$host_os,;t t
11674 s,@target@,$target,;t t
11675 s,@target_cpu@,$target_cpu,;t t
11676 s,@target_vendor@,$target_vendor,;t t
11677 s,@target_os@,$target_os,;t t
11678 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11679 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11680 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11681 s,@CYGPATH_W@,$CYGPATH_W,;t t
11682 s,@PACKAGE@,$PACKAGE,;t t
11683 s,@VERSION@,$VERSION,;t t
11684 s,@ACLOCAL@,$ACLOCAL,;t t
11685 s,@AUTOCONF@,$AUTOCONF,;t t
11686 s,@AUTOMAKE@,$AUTOMAKE,;t t
11687 s,@AUTOHEADER@,$AUTOHEADER,;t t
11688 s,@MAKEINFO@,$MAKEINFO,;t t
11689 s,@install_sh@,$install_sh,;t t
11690 s,@STRIP@,$STRIP,;t t
11691 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11692 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11693 s,@mkdir_p@,$mkdir_p,;t t
11694 s,@AWK@,$AWK,;t t
11695 s,@SET_MAKE@,$SET_MAKE,;t t
11696 s,@am__leading_dot@,$am__leading_dot,;t t
11697 s,@AMTAR@,$AMTAR,;t t
11698 s,@am__tar@,$am__tar,;t t
11699 s,@am__untar@,$am__untar,;t t
11700 s,@multi_basedir@,$multi_basedir,;t t
11701 s,@toolexecdir@,$toolexecdir,;t t
11702 s,@toolexeclibdir@,$toolexeclibdir,;t t
11703 s,@CC@,$CC,;t t
11704 s,@ac_ct_CC@,$ac_ct_CC,;t t
11705 s,@EXEEXT@,$EXEEXT,;t t
11706 s,@OBJEXT@,$OBJEXT,;t t
11707 s,@DEPDIR@,$DEPDIR,;t t
11708 s,@am__include@,$am__include,;t t
11709 s,@am__quote@,$am__quote,;t t
11710 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11711 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11712 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11713 s,@CCDEPMODE@,$CCDEPMODE,;t t
11714 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11715 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11716 s,@CFLAGS@,$CFLAGS,;t t
11717 s,@AR@,$AR,;t t
11718 s,@ac_ct_AR@,$ac_ct_AR,;t t
11719 s,@RANLIB@,$RANLIB,;t t
11720 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11721 s,@PERL@,$PERL,;t t
11722 s,@LN_S@,$LN_S,;t t
11723 s,@LIBTOOL@,$LIBTOOL,;t t
11724 s,@enable_shared@,$enable_shared,;t t
11725 s,@enable_static@,$enable_static,;t t
11726 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11727 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11728 s,@MAINT@,$MAINT,;t t
11729 s,@FC@,$FC,;t t
11730 s,@FCFLAGS@,$FCFLAGS,;t t
11731 s,@LDFLAGS@,$LDFLAGS,;t t
11732 s,@ac_ct_FC@,$ac_ct_FC,;t t
11733 s,@libtool_VERSION@,$libtool_VERSION,;t t
11734 s,@CPP@,$CPP,;t t
11735 s,@CPPFLAGS@,$CPPFLAGS,;t t
11736 s,@EGREP@,$EGREP,;t t
11737 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11738 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11739 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11740 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11741 s,@config_path@,$config_path,;t t
11742 s,@XCFLAGS@,$XCFLAGS,;t t
11743 s,@XLDFLAGS@,$XLDFLAGS,;t t
11744 s,@link_gomp@,$link_gomp,;t t
11745 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11746 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
11747 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11748 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11749 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11750 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11751 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11752 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
11753 s,@LIBOBJS@,$LIBOBJS,;t t
11754 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11755 CEOF
11757 _ACEOF
11759 cat >>$CONFIG_STATUS <<\_ACEOF
11760 # Split the substitutions into bite-sized pieces for seds with
11761 # small command number limits, like on Digital OSF/1 and HP-UX.
11762 ac_max_sed_lines=48
11763 ac_sed_frag=1 # Number of current file.
11764 ac_beg=1 # First line for current file.
11765 ac_end=$ac_max_sed_lines # Line after last line for current file.
11766 ac_more_lines=:
11767 ac_sed_cmds=
11768 while $ac_more_lines; do
11769 if test $ac_beg -gt 1; then
11770 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11771 else
11772 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11774 if test ! -s $tmp/subs.frag; then
11775 ac_more_lines=false
11776 else
11777 # The purpose of the label and of the branching condition is to
11778 # speed up the sed processing (if there are no `@' at all, there
11779 # is no need to browse any of the substitutions).
11780 # These are the two extra sed commands mentioned above.
11781 (echo ':t
11782 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11783 if test -z "$ac_sed_cmds"; then
11784 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11785 else
11786 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11788 ac_sed_frag=`expr $ac_sed_frag + 1`
11789 ac_beg=$ac_end
11790 ac_end=`expr $ac_end + $ac_max_sed_lines`
11792 done
11793 if test -z "$ac_sed_cmds"; then
11794 ac_sed_cmds=cat
11796 fi # test -n "$CONFIG_FILES"
11798 _ACEOF
11799 cat >>$CONFIG_STATUS <<\_ACEOF
11800 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11801 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11802 case $ac_file in
11803 - | *:- | *:-:* ) # input from stdin
11804 cat >$tmp/stdin
11805 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11806 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11807 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11808 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11809 * ) ac_file_in=$ac_file.in ;;
11810 esac
11812 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11813 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11815 X"$ac_file" : 'X\(//\)[^/]' \| \
11816 X"$ac_file" : 'X\(//\)$' \| \
11817 X"$ac_file" : 'X\(/\)' \| \
11818 . : '\(.\)' 2>/dev/null ||
11819 echo X"$ac_file" |
11820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11822 /^X\(\/\/\)$/{ s//\1/; q; }
11823 /^X\(\/\).*/{ s//\1/; q; }
11824 s/.*/./; q'`
11825 { if $as_mkdir_p; then
11826 mkdir -p "$ac_dir"
11827 else
11828 as_dir="$ac_dir"
11829 as_dirs=
11830 while test ! -d "$as_dir"; do
11831 as_dirs="$as_dir $as_dirs"
11832 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11834 X"$as_dir" : 'X\(//\)[^/]' \| \
11835 X"$as_dir" : 'X\(//\)$' \| \
11836 X"$as_dir" : 'X\(/\)' \| \
11837 . : '\(.\)' 2>/dev/null ||
11838 echo X"$as_dir" |
11839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11841 /^X\(\/\/\)$/{ s//\1/; q; }
11842 /^X\(\/\).*/{ s//\1/; q; }
11843 s/.*/./; q'`
11844 done
11845 test ! -n "$as_dirs" || mkdir $as_dirs
11846 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11847 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11848 { (exit 1); exit 1; }; }; }
11850 ac_builddir=.
11852 if test "$ac_dir" != .; then
11853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11854 # A "../" for each directory in $ac_dir_suffix.
11855 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11856 else
11857 ac_dir_suffix= ac_top_builddir=
11860 case $srcdir in
11861 .) # No --srcdir option. We are building in place.
11862 ac_srcdir=.
11863 if test -z "$ac_top_builddir"; then
11864 ac_top_srcdir=.
11865 else
11866 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11867 fi ;;
11868 [\\/]* | ?:[\\/]* ) # Absolute path.
11869 ac_srcdir=$srcdir$ac_dir_suffix;
11870 ac_top_srcdir=$srcdir ;;
11871 *) # Relative path.
11872 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11873 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11874 esac
11876 # Do not use `cd foo && pwd` to compute absolute paths, because
11877 # the directories may not exist.
11878 case `pwd` in
11879 .) ac_abs_builddir="$ac_dir";;
11881 case "$ac_dir" in
11882 .) ac_abs_builddir=`pwd`;;
11883 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11884 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11885 esac;;
11886 esac
11887 case $ac_abs_builddir in
11888 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11890 case ${ac_top_builddir}. in
11891 .) ac_abs_top_builddir=$ac_abs_builddir;;
11892 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11893 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11894 esac;;
11895 esac
11896 case $ac_abs_builddir in
11897 .) ac_abs_srcdir=$ac_srcdir;;
11899 case $ac_srcdir in
11900 .) ac_abs_srcdir=$ac_abs_builddir;;
11901 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11902 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11903 esac;;
11904 esac
11905 case $ac_abs_builddir in
11906 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11908 case $ac_top_srcdir in
11909 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11910 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11911 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11912 esac;;
11913 esac
11916 case $INSTALL in
11917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11918 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11919 esac
11921 if test x"$ac_file" != x-; then
11922 { echo "$as_me:$LINENO: creating $ac_file" >&5
11923 echo "$as_me: creating $ac_file" >&6;}
11924 rm -f "$ac_file"
11926 # Let's still pretend it is `configure' which instantiates (i.e., don't
11927 # use $as_me), people would be surprised to read:
11928 # /* config.h. Generated by config.status. */
11929 if test x"$ac_file" = x-; then
11930 configure_input=
11931 else
11932 configure_input="$ac_file. "
11934 configure_input=$configure_input"Generated from `echo $ac_file_in |
11935 sed 's,.*/,,'` by configure."
11937 # First look for the input files in the build tree, otherwise in the
11938 # src tree.
11939 ac_file_inputs=`IFS=:
11940 for f in $ac_file_in; do
11941 case $f in
11942 -) echo $tmp/stdin ;;
11943 [\\/$]*)
11944 # Absolute (can't be DOS-style, as IFS=:)
11945 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11946 echo "$as_me: error: cannot find input file: $f" >&2;}
11947 { (exit 1); exit 1; }; }
11948 echo "$f";;
11949 *) # Relative
11950 if test -f "$f"; then
11951 # Build tree
11952 echo "$f"
11953 elif test -f "$srcdir/$f"; then
11954 # Source tree
11955 echo "$srcdir/$f"
11956 else
11957 # /dev/null tree
11958 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11959 echo "$as_me: error: cannot find input file: $f" >&2;}
11960 { (exit 1); exit 1; }; }
11961 fi;;
11962 esac
11963 done` || { (exit 1); exit 1; }
11964 _ACEOF
11965 cat >>$CONFIG_STATUS <<_ACEOF
11966 sed "$ac_vpsub
11967 $extrasub
11968 _ACEOF
11969 cat >>$CONFIG_STATUS <<\_ACEOF
11971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11972 s,@configure_input@,$configure_input,;t t
11973 s,@srcdir@,$ac_srcdir,;t t
11974 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11975 s,@top_srcdir@,$ac_top_srcdir,;t t
11976 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11977 s,@builddir@,$ac_builddir,;t t
11978 s,@abs_builddir@,$ac_abs_builddir,;t t
11979 s,@top_builddir@,$ac_top_builddir,;t t
11980 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11981 s,@INSTALL@,$ac_INSTALL,;t t
11982 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11983 rm -f $tmp/stdin
11984 if test x"$ac_file" != x-; then
11985 mv $tmp/out $ac_file
11986 else
11987 cat $tmp/out
11988 rm -f $tmp/out
11991 done
11992 _ACEOF
11993 cat >>$CONFIG_STATUS <<\_ACEOF
11996 # CONFIG_HEADER section.
11999 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12000 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12002 # ac_d sets the value in "#define NAME VALUE" lines.
12003 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12004 ac_dB='[ ].*$,\1#\2'
12005 ac_dC=' '
12006 ac_dD=',;t'
12007 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12008 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12009 ac_uB='$,\1#\2define\3'
12010 ac_uC=' '
12011 ac_uD=',;t'
12013 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12014 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12015 case $ac_file in
12016 - | *:- | *:-:* ) # input from stdin
12017 cat >$tmp/stdin
12018 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12019 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12020 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12021 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12022 * ) ac_file_in=$ac_file.in ;;
12023 esac
12025 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12026 echo "$as_me: creating $ac_file" >&6;}
12028 # First look for the input files in the build tree, otherwise in the
12029 # src tree.
12030 ac_file_inputs=`IFS=:
12031 for f in $ac_file_in; do
12032 case $f in
12033 -) echo $tmp/stdin ;;
12034 [\\/$]*)
12035 # Absolute (can't be DOS-style, as IFS=:)
12036 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12037 echo "$as_me: error: cannot find input file: $f" >&2;}
12038 { (exit 1); exit 1; }; }
12039 # Do quote $f, to prevent DOS paths from being IFS'd.
12040 echo "$f";;
12041 *) # Relative
12042 if test -f "$f"; then
12043 # Build tree
12044 echo "$f"
12045 elif test -f "$srcdir/$f"; then
12046 # Source tree
12047 echo "$srcdir/$f"
12048 else
12049 # /dev/null tree
12050 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12051 echo "$as_me: error: cannot find input file: $f" >&2;}
12052 { (exit 1); exit 1; }; }
12053 fi;;
12054 esac
12055 done` || { (exit 1); exit 1; }
12056 # Remove the trailing spaces.
12057 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12059 _ACEOF
12061 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12062 # `conftest.undefs', that substitutes the proper values into
12063 # config.h.in to produce config.h. The first handles `#define'
12064 # templates, and the second `#undef' templates.
12065 # And first: Protect against being on the right side of a sed subst in
12066 # config.status. Protect against being in an unquoted here document
12067 # in config.status.
12068 rm -f conftest.defines conftest.undefs
12069 # Using a here document instead of a string reduces the quoting nightmare.
12070 # Putting comments in sed scripts is not portable.
12072 # `end' is used to avoid that the second main sed command (meant for
12073 # 0-ary CPP macros) applies to n-ary macro definitions.
12074 # See the Autoconf documentation for `clear'.
12075 cat >confdef2sed.sed <<\_ACEOF
12076 s/[\\&,]/\\&/g
12077 s,[\\$`],\\&,g
12078 t clear
12079 : clear
12080 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12081 t end
12082 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12083 : end
12084 _ACEOF
12085 # If some macros were called several times there might be several times
12086 # the same #defines, which is useless. Nevertheless, we may not want to
12087 # sort them, since we want the *last* AC-DEFINE to be honored.
12088 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12089 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12090 rm -f confdef2sed.sed
12092 # This sed command replaces #undef with comments. This is necessary, for
12093 # example, in the case of _POSIX_SOURCE, which is predefined and required
12094 # on some systems where configure will not decide to define it.
12095 cat >>conftest.undefs <<\_ACEOF
12096 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12097 _ACEOF
12099 # Break up conftest.defines because some shells have a limit on the size
12100 # of here documents, and old seds have small limits too (100 cmds).
12101 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12102 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12103 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12104 echo ' :' >>$CONFIG_STATUS
12105 rm -f conftest.tail
12106 while grep . conftest.defines >/dev/null
12108 # Write a limited-size here document to $tmp/defines.sed.
12109 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12110 # Speed up: don't consider the non `#define' lines.
12111 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12112 # Work around the forget-to-reset-the-flag bug.
12113 echo 't clr' >>$CONFIG_STATUS
12114 echo ': clr' >>$CONFIG_STATUS
12115 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12116 echo 'CEOF
12117 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12118 rm -f $tmp/in
12119 mv $tmp/out $tmp/in
12120 ' >>$CONFIG_STATUS
12121 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12122 rm -f conftest.defines
12123 mv conftest.tail conftest.defines
12124 done
12125 rm -f conftest.defines
12126 echo ' fi # grep' >>$CONFIG_STATUS
12127 echo >>$CONFIG_STATUS
12129 # Break up conftest.undefs because some shells have a limit on the size
12130 # of here documents, and old seds have small limits too (100 cmds).
12131 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12132 rm -f conftest.tail
12133 while grep . conftest.undefs >/dev/null
12135 # Write a limited-size here document to $tmp/undefs.sed.
12136 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12137 # Speed up: don't consider the non `#undef'
12138 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12139 # Work around the forget-to-reset-the-flag bug.
12140 echo 't clr' >>$CONFIG_STATUS
12141 echo ': clr' >>$CONFIG_STATUS
12142 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12143 echo 'CEOF
12144 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12145 rm -f $tmp/in
12146 mv $tmp/out $tmp/in
12147 ' >>$CONFIG_STATUS
12148 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12149 rm -f conftest.undefs
12150 mv conftest.tail conftest.undefs
12151 done
12152 rm -f conftest.undefs
12154 cat >>$CONFIG_STATUS <<\_ACEOF
12155 # Let's still pretend it is `configure' which instantiates (i.e., don't
12156 # use $as_me), people would be surprised to read:
12157 # /* config.h. Generated by config.status. */
12158 if test x"$ac_file" = x-; then
12159 echo "/* Generated by configure. */" >$tmp/config.h
12160 else
12161 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12163 cat $tmp/in >>$tmp/config.h
12164 rm -f $tmp/in
12165 if test x"$ac_file" != x-; then
12166 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12167 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12168 echo "$as_me: $ac_file is unchanged" >&6;}
12169 else
12170 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12171 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12172 X"$ac_file" : 'X\(//\)[^/]' \| \
12173 X"$ac_file" : 'X\(//\)$' \| \
12174 X"$ac_file" : 'X\(/\)' \| \
12175 . : '\(.\)' 2>/dev/null ||
12176 echo X"$ac_file" |
12177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12179 /^X\(\/\/\)$/{ s//\1/; q; }
12180 /^X\(\/\).*/{ s//\1/; q; }
12181 s/.*/./; q'`
12182 { if $as_mkdir_p; then
12183 mkdir -p "$ac_dir"
12184 else
12185 as_dir="$ac_dir"
12186 as_dirs=
12187 while test ! -d "$as_dir"; do
12188 as_dirs="$as_dir $as_dirs"
12189 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12191 X"$as_dir" : 'X\(//\)[^/]' \| \
12192 X"$as_dir" : 'X\(//\)$' \| \
12193 X"$as_dir" : 'X\(/\)' \| \
12194 . : '\(.\)' 2>/dev/null ||
12195 echo X"$as_dir" |
12196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12198 /^X\(\/\/\)$/{ s//\1/; q; }
12199 /^X\(\/\).*/{ s//\1/; q; }
12200 s/.*/./; q'`
12201 done
12202 test ! -n "$as_dirs" || mkdir $as_dirs
12203 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12204 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12205 { (exit 1); exit 1; }; }; }
12207 rm -f $ac_file
12208 mv $tmp/config.h $ac_file
12210 else
12211 cat $tmp/config.h
12212 rm -f $tmp/config.h
12214 # Compute $ac_file's index in $config_headers.
12215 _am_stamp_count=1
12216 for _am_header in $config_headers :; do
12217 case $_am_header in
12218 $ac_file | $ac_file:* )
12219 break ;;
12221 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12222 esac
12223 done
12224 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12225 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12226 X$ac_file : 'X\(//\)[^/]' \| \
12227 X$ac_file : 'X\(//\)$' \| \
12228 X$ac_file : 'X\(/\)' \| \
12229 . : '\(.\)' 2>/dev/null ||
12230 echo X$ac_file |
12231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12233 /^X\(\/\/\)$/{ s//\1/; q; }
12234 /^X\(\/\).*/{ s//\1/; q; }
12235 s/.*/./; q'`/stamp-h$_am_stamp_count
12236 done
12237 _ACEOF
12238 cat >>$CONFIG_STATUS <<\_ACEOF
12241 # CONFIG_COMMANDS section.
12243 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12244 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12245 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12246 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12247 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12248 X"$ac_dest" : 'X\(//\)[^/]' \| \
12249 X"$ac_dest" : 'X\(//\)$' \| \
12250 X"$ac_dest" : 'X\(/\)' \| \
12251 . : '\(.\)' 2>/dev/null ||
12252 echo X"$ac_dest" |
12253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12254 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12255 /^X\(\/\/\)$/{ s//\1/; q; }
12256 /^X\(\/\).*/{ s//\1/; q; }
12257 s/.*/./; q'`
12258 { if $as_mkdir_p; then
12259 mkdir -p "$ac_dir"
12260 else
12261 as_dir="$ac_dir"
12262 as_dirs=
12263 while test ! -d "$as_dir"; do
12264 as_dirs="$as_dir $as_dirs"
12265 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12266 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12267 X"$as_dir" : 'X\(//\)[^/]' \| \
12268 X"$as_dir" : 'X\(//\)$' \| \
12269 X"$as_dir" : 'X\(/\)' \| \
12270 . : '\(.\)' 2>/dev/null ||
12271 echo X"$as_dir" |
12272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12273 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12274 /^X\(\/\/\)$/{ s//\1/; q; }
12275 /^X\(\/\).*/{ s//\1/; q; }
12276 s/.*/./; q'`
12277 done
12278 test ! -n "$as_dirs" || mkdir $as_dirs
12279 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12280 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12281 { (exit 1); exit 1; }; }; }
12283 ac_builddir=.
12285 if test "$ac_dir" != .; then
12286 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12287 # A "../" for each directory in $ac_dir_suffix.
12288 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12289 else
12290 ac_dir_suffix= ac_top_builddir=
12293 case $srcdir in
12294 .) # No --srcdir option. We are building in place.
12295 ac_srcdir=.
12296 if test -z "$ac_top_builddir"; then
12297 ac_top_srcdir=.
12298 else
12299 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12300 fi ;;
12301 [\\/]* | ?:[\\/]* ) # Absolute path.
12302 ac_srcdir=$srcdir$ac_dir_suffix;
12303 ac_top_srcdir=$srcdir ;;
12304 *) # Relative path.
12305 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12306 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12307 esac
12309 # Do not use `cd foo && pwd` to compute absolute paths, because
12310 # the directories may not exist.
12311 case `pwd` in
12312 .) ac_abs_builddir="$ac_dir";;
12314 case "$ac_dir" in
12315 .) ac_abs_builddir=`pwd`;;
12316 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12317 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12318 esac;;
12319 esac
12320 case $ac_abs_builddir in
12321 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12323 case ${ac_top_builddir}. in
12324 .) ac_abs_top_builddir=$ac_abs_builddir;;
12325 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12326 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12327 esac;;
12328 esac
12329 case $ac_abs_builddir in
12330 .) ac_abs_srcdir=$ac_srcdir;;
12332 case $ac_srcdir in
12333 .) ac_abs_srcdir=$ac_abs_builddir;;
12334 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12335 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12336 esac;;
12337 esac
12338 case $ac_abs_builddir in
12339 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12341 case $ac_top_srcdir in
12342 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12343 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12344 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12345 esac;;
12346 esac
12349 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12350 echo "$as_me: executing $ac_dest commands" >&6;}
12351 case $ac_dest in
12352 default-1 )
12353 # Only add multilib support code if we just rebuilt the top-level
12354 # Makefile.
12355 case " $CONFIG_FILES " in
12356 *" Makefile "*)
12357 ac_file=Makefile . ${multi_basedir}/config-ml.in
12359 esac ;;
12360 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12361 # Strip MF so we end up with the name of the file.
12362 mf=`echo "$mf" | sed -e 's/:.*$//'`
12363 # Check whether this is an Automake generated Makefile or not.
12364 # We used to match only the files named `Makefile.in', but
12365 # some people rename them; so instead we look at the file content.
12366 # Grep'ing the first line is not enough: some people post-process
12367 # each Makefile.in and add a new line on top of each file to say so.
12368 # So let's grep whole file.
12369 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12370 dirpart=`(dirname "$mf") 2>/dev/null ||
12371 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12372 X"$mf" : 'X\(//\)[^/]' \| \
12373 X"$mf" : 'X\(//\)$' \| \
12374 X"$mf" : 'X\(/\)' \| \
12375 . : '\(.\)' 2>/dev/null ||
12376 echo X"$mf" |
12377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12378 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12379 /^X\(\/\/\)$/{ s//\1/; q; }
12380 /^X\(\/\).*/{ s//\1/; q; }
12381 s/.*/./; q'`
12382 else
12383 continue
12385 # Extract the definition of DEPDIR, am__include, and am__quote
12386 # from the Makefile without running `make'.
12387 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12388 test -z "$DEPDIR" && continue
12389 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12390 test -z "am__include" && continue
12391 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12392 # When using ansi2knr, U may be empty or an underscore; expand it
12393 U=`sed -n 's/^U = //p' < "$mf"`
12394 # Find all dependency output files, they are included files with
12395 # $(DEPDIR) in their names. We invoke sed twice because it is the
12396 # simplest approach to changing $(DEPDIR) to its actual value in the
12397 # expansion.
12398 for file in `sed -n "
12399 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12400 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12401 # Make sure the directory exists.
12402 test -f "$dirpart/$file" && continue
12403 fdir=`(dirname "$file") 2>/dev/null ||
12404 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12405 X"$file" : 'X\(//\)[^/]' \| \
12406 X"$file" : 'X\(//\)$' \| \
12407 X"$file" : 'X\(/\)' \| \
12408 . : '\(.\)' 2>/dev/null ||
12409 echo X"$file" |
12410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12412 /^X\(\/\/\)$/{ s//\1/; q; }
12413 /^X\(\/\).*/{ s//\1/; q; }
12414 s/.*/./; q'`
12415 { if $as_mkdir_p; then
12416 mkdir -p $dirpart/$fdir
12417 else
12418 as_dir=$dirpart/$fdir
12419 as_dirs=
12420 while test ! -d "$as_dir"; do
12421 as_dirs="$as_dir $as_dirs"
12422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12424 X"$as_dir" : 'X\(//\)[^/]' \| \
12425 X"$as_dir" : 'X\(//\)$' \| \
12426 X"$as_dir" : 'X\(/\)' \| \
12427 . : '\(.\)' 2>/dev/null ||
12428 echo X"$as_dir" |
12429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12431 /^X\(\/\/\)$/{ s//\1/; q; }
12432 /^X\(\/\).*/{ s//\1/; q; }
12433 s/.*/./; q'`
12434 done
12435 test ! -n "$as_dirs" || mkdir $as_dirs
12436 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12437 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12438 { (exit 1); exit 1; }; }; }
12440 # echo "creating $dirpart/$file"
12441 echo '# dummy' > "$dirpart/$file"
12442 done
12443 done
12445 gstdint.h )
12446 if test "$GCC" = yes; then
12447 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12448 else
12449 echo "/* generated for $CC */" > tmp-stdint.h
12452 sed 's/^ *//' >> tmp-stdint.h <<EOF
12454 #ifndef GCC_GENERATED_STDINT_H
12455 #define GCC_GENERATED_STDINT_H 1
12457 #include <sys/types.h>
12460 if test "$acx_cv_header_stdint" != stdint.h; then
12461 echo "#include <stddef.h>" >> tmp-stdint.h
12463 if test "$acx_cv_header_stdint" != stddef.h; then
12464 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12467 sed 's/^ *//' >> tmp-stdint.h <<EOF
12468 /* glibc uses these symbols as guards to prevent redefinitions. */
12469 #ifdef __int8_t_defined
12470 #define _INT8_T
12471 #define _INT16_T
12472 #define _INT32_T
12473 #endif
12474 #ifdef __uint32_t_defined
12475 #define _UINT32_T
12476 #endif
12480 # ----------------- done header, emit basic int types -------------
12481 if test "$acx_cv_header_stdint" = stddef.h; then
12482 sed 's/^ *//' >> tmp-stdint.h <<EOF
12484 #ifndef _UINT8_T
12485 #define _UINT8_T
12486 typedef unsigned $acx_cv_type_int8_t uint8_t;
12487 #endif
12489 #ifndef _UINT16_T
12490 #define _UINT16_T
12491 typedef unsigned $acx_cv_type_int16_t uint16_t;
12492 #endif
12494 #ifndef _UINT32_T
12495 #define _UINT32_T
12496 typedef unsigned $acx_cv_type_int32_t uint32_t;
12497 #endif
12499 #ifndef _INT8_T
12500 #define _INT8_T
12501 typedef $acx_cv_type_int8_t int8_t;
12502 #endif
12504 #ifndef _INT16_T
12505 #define _INT16_T
12506 typedef $acx_cv_type_int16_t int16_t;
12507 #endif
12509 #ifndef _INT32_T
12510 #define _INT32_T
12511 typedef $acx_cv_type_int32_t int32_t;
12512 #endif
12514 elif test "$ac_cv_type_u_int32_t" = yes; then
12515 sed 's/^ *//' >> tmp-stdint.h <<EOF
12517 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12518 #ifndef _INT8_T
12519 #define _INT8_T
12520 #endif
12521 #ifndef _INT16_T
12522 #define _INT16_T
12523 #endif
12524 #ifndef _INT32_T
12525 #define _INT32_T
12526 #endif
12528 #ifndef _UINT8_T
12529 #define _UINT8_T
12530 typedef u_int8_t uint8_t;
12531 #endif
12533 #ifndef _UINT16_T
12534 #define _UINT16_T
12535 typedef u_int16_t uint16_t;
12536 #endif
12538 #ifndef _UINT32_T
12539 #define _UINT32_T
12540 typedef u_int32_t uint32_t;
12541 #endif
12543 else
12544 sed 's/^ *//' >> tmp-stdint.h <<EOF
12546 /* Some systems have guard macros to prevent redefinitions, define them. */
12547 #ifndef _INT8_T
12548 #define _INT8_T
12549 #endif
12550 #ifndef _INT16_T
12551 #define _INT16_T
12552 #endif
12553 #ifndef _INT32_T
12554 #define _INT32_T
12555 #endif
12556 #ifndef _UINT8_T
12557 #define _UINT8_T
12558 #endif
12559 #ifndef _UINT16_T
12560 #define _UINT16_T
12561 #endif
12562 #ifndef _UINT32_T
12563 #define _UINT32_T
12564 #endif
12568 # ------------- done basic int types, emit int64_t types ------------
12569 if test "$ac_cv_type_uint64_t" = yes; then
12570 sed 's/^ *//' >> tmp-stdint.h <<EOF
12572 /* system headers have good uint64_t and int64_t */
12573 #ifndef _INT64_T
12574 #define _INT64_T
12575 #endif
12576 #ifndef _UINT64_T
12577 #define _UINT64_T
12578 #endif
12580 elif test "$ac_cv_type_u_int64_t" = yes; then
12581 sed 's/^ *//' >> tmp-stdint.h <<EOF
12583 /* system headers have an u_int64_t (and int64_t) */
12584 #ifndef _INT64_T
12585 #define _INT64_T
12586 #endif
12587 #ifndef _UINT64_T
12588 #define _UINT64_T
12589 typedef u_int64_t uint64_t;
12590 #endif
12592 elif test -n "$acx_cv_type_int64_t"; then
12593 sed 's/^ *//' >> tmp-stdint.h <<EOF
12595 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12596 #ifndef _INT64_T
12597 #define _INT64_T
12598 typedef $acx_cv_type_int64_t int64_t;
12599 #endif
12600 #ifndef _UINT64_T
12601 #define _UINT64_T
12602 typedef unsigned $acx_cv_type_int64_t uint64_t;
12603 #endif
12605 else
12606 sed 's/^ *//' >> tmp-stdint.h <<EOF
12608 /* some common heuristics for int64_t, using compiler-specific tests */
12609 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12610 #ifndef _INT64_T
12611 #define _INT64_T
12612 typedef long long int64_t;
12613 #endif
12614 #ifndef _UINT64_T
12615 #define _UINT64_T
12616 typedef unsigned long long uint64_t;
12617 #endif
12619 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12620 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12621 does not implement __extension__. But that compiler doesn't define
12622 __GNUC_MINOR__. */
12623 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12624 # define __extension__
12625 # endif
12627 # ifndef _INT64_T
12628 # define _INT64_T
12629 __extension__ typedef long long int64_t;
12630 # endif
12631 # ifndef _UINT64_T
12632 # define _UINT64_T
12633 __extension__ typedef unsigned long long uint64_t;
12634 # endif
12636 #elif !defined __STRICT_ANSI__
12637 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12639 # ifndef _INT64_T
12640 # define _INT64_T
12641 typedef __int64 int64_t;
12642 # endif
12643 # ifndef _UINT64_T
12644 # define _UINT64_T
12645 typedef unsigned __int64 uint64_t;
12646 # endif
12647 # endif /* compiler */
12649 #endif /* ANSI version */
12653 # ------------- done int64_t types, emit intptr types ------------
12654 if test "$ac_cv_type_uintptr_t" != yes; then
12655 sed 's/^ *//' >> tmp-stdint.h <<EOF
12657 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12658 typedef u$acx_cv_type_intptr_t uintptr_t;
12659 typedef $acx_cv_type_intptr_t intptr_t;
12663 # ------------- done intptr types, emit int_least types ------------
12664 if test "$ac_cv_type_int_least32_t" != yes; then
12665 sed 's/^ *//' >> tmp-stdint.h <<EOF
12667 /* Define int_least types */
12668 typedef int8_t int_least8_t;
12669 typedef int16_t int_least16_t;
12670 typedef int32_t int_least32_t;
12671 #ifdef _INT64_T
12672 typedef int64_t int_least64_t;
12673 #endif
12675 typedef uint8_t uint_least8_t;
12676 typedef uint16_t uint_least16_t;
12677 typedef uint32_t uint_least32_t;
12678 #ifdef _UINT64_T
12679 typedef uint64_t uint_least64_t;
12680 #endif
12684 # ------------- done intptr types, emit int_fast types ------------
12685 if test "$ac_cv_type_int_fast32_t" != yes; then
12686 sed 's/^ *//' >> tmp-stdint.h <<EOF
12688 /* Define int_fast types. short is often slow */
12689 typedef int8_t int_fast8_t;
12690 typedef int int_fast16_t;
12691 typedef int32_t int_fast32_t;
12692 #ifdef _INT64_T
12693 typedef int64_t int_fast64_t;
12694 #endif
12696 typedef uint8_t uint_fast8_t;
12697 typedef unsigned int uint_fast16_t;
12698 typedef uint32_t uint_fast32_t;
12699 #ifdef _UINT64_T
12700 typedef uint64_t uint_fast64_t;
12701 #endif
12705 if test "$ac_cv_type_uintmax_t" != yes; then
12706 sed 's/^ *//' >> tmp-stdint.h <<EOF
12708 /* Define intmax based on what we found */
12709 #ifdef _INT64_T
12710 typedef int64_t intmax_t;
12711 #else
12712 typedef long intmax_t;
12713 #endif
12714 #ifdef _UINT64_T
12715 typedef uint64_t uintmax_t;
12716 #else
12717 typedef unsigned long uintmax_t;
12718 #endif
12722 sed 's/^ *//' >> tmp-stdint.h <<EOF
12724 #endif /* GCC_GENERATED_STDINT_H */
12727 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12728 rm -f tmp-stdint.h
12729 else
12730 mv -f tmp-stdint.h gstdint.h
12734 esac
12735 done
12736 _ACEOF
12738 cat >>$CONFIG_STATUS <<\_ACEOF
12740 { (exit 0); exit 0; }
12741 _ACEOF
12742 chmod +x $CONFIG_STATUS
12743 ac_clean_files=$ac_clean_files_save
12746 # configure is writing to config.log, and then calls config.status.
12747 # config.status does its own redirection, appending to config.log.
12748 # Unfortunately, on DOS this fails, as config.log is still kept open
12749 # by configure, so config.status won't be able to write to it; its
12750 # output is simply discarded. So we exec the FD to /dev/null,
12751 # effectively closing config.log, so it can be properly (re)opened and
12752 # appended to by config.status. When coming back to configure, we
12753 # need to make the FD available again.
12754 if test "$no_create" != yes; then
12755 ac_cs_success=:
12756 ac_config_status_args=
12757 test "$silent" = yes &&
12758 ac_config_status_args="$ac_config_status_args --quiet"
12759 exec 5>/dev/null
12760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12761 exec 5>>config.log
12762 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12763 # would make configure fail if this is the last instruction.
12764 $ac_cs_success || { (exit 1); exit 1; }