* recog.c (peephole2_optimize): Make it static.
[official-gcc.git] / libgomp / configure
bloba9438d524956778c6aa9a7458ec291337b231e1c
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 _g_switchUse the Linux futex system call
858 permit yes|no [default=yes]
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 _g_switchUse thread-local storage
869 [default=yes]
870 --enable-symvers=STYLE enables symbol versioning of the shared library
871 [default=yes]
873 Optional Packages:
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-gnu-ld assume the C compiler uses GNU ld default=no
877 --with-pic try to use only PIC/non-PIC objects default=use both
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 FC Fortran compiler command
887 FCFLAGS Fortran compiler flags
888 CPP C preprocessor
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 _ACEOF
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907 else
908 ac_dir_suffix= ac_top_builddir=
911 case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925 esac
927 # Do not use `cd foo && pwd` to compute absolute paths, because
928 # the directories may not exist.
929 case `pwd` in
930 .) ac_abs_builddir="$ac_dir";;
932 case "$ac_dir" in
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_builddir=${ac_top_builddir}.;;
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945 esac;;
946 esac
947 case $ac_abs_builddir in
948 .) ac_abs_srcdir=$ac_srcdir;;
950 case $ac_srcdir in
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 esac;;
955 esac
956 case $ac_abs_builddir in
957 .) ac_abs_top_srcdir=$ac_top_srcdir;;
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963 esac;;
964 esac
966 cd $ac_dir
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
969 echo
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
972 echo
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
976 echo
977 $ac_configure --help
978 else
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
981 cd $ac_popdir
982 done
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
987 cat <<\_ACEOF
988 GNU OpenMP Runtime Library configure 1.0
989 generated by GNU Autoconf 2.59
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994 _ACEOF
995 exit 0
997 exec 5>config.log
998 cat >&5 <<_ACEOF
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1005 $ $0 $@
1007 _ACEOF
1009 cat <<_ASUNAME
1010 ## --------- ##
1011 ## Platform. ##
1012 ## --------- ##
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1031 _ASUNAME
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 for as_dir in $PATH
1036 IFS=$as_save_IFS
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1039 done
1041 } >&5
1043 cat >&5 <<_ACEOF
1046 ## ----------- ##
1047 ## Core tests. ##
1048 ## ----------- ##
1050 _ACEOF
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1058 ac_configure_args=
1059 ac_configure_args0=
1060 ac_configure_args1=
1061 ac_sep=
1062 ac_must_keep_next=false
1063 for ac_pass in 1 2
1065 for ac_arg
1067 case $ac_arg in
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 continue ;;
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074 esac
1075 case $ac_pass in
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1081 else
1082 case $ac_arg in
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 esac
1091 -* ) ac_must_keep_next=true ;;
1092 esac
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1096 ac_sep=" "
1098 esac
1099 done
1100 done
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1112 echo
1114 cat <<\_ASBOX
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1118 _ASBOX
1119 echo
1120 # The following way of writing the cache mishandles newlines in values,
1122 (set) 2>&1 |
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 *ac_space=\ *)
1125 sed -n \
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 sed -n \
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133 esac;
1135 echo
1137 cat <<\_ASBOX
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1141 _ASBOX
1142 echo
1143 for ac_var in $ac_subst_vars
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1150 if test -n "$ac_subst_files"; then
1151 cat <<\_ASBOX
1152 ## ------------- ##
1153 ## Output files. ##
1154 ## ------------- ##
1155 _ASBOX
1156 echo
1157 for ac_var in $ac_subst_files
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1165 if test -s confdefs.h; then
1166 cat <<\_ASBOX
1167 ## ----------- ##
1168 ## confdefs.h. ##
1169 ## ----------- ##
1170 _ASBOX
1171 echo
1172 sed "/^$/d" confdefs.h | sort
1173 echo
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1178 } >&5
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181 exit $exit_status
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185 done
1186 ac_signal=0
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191 echo >confdefs.h
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1197 _ACEOF
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202 _ACEOF
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1207 _ACEOF
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1212 _ACEOF
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217 _ACEOF
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 else
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1234 . "$ac_site_file"
1236 done
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1244 case $cache_file in
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1247 esac
1249 else
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1252 >$cache_file
1255 # Check that the precious variables saved in the cache have kept the same
1256 # value.
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1265 set,)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,set)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,);;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1283 fi;;
1284 esac
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1287 case $ac_new_val in
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1291 esac
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295 esac
1297 done
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers config.h"
1341 # -------
1342 # Options
1343 # -------
1345 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1346 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1347 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1348 if test "${enable_version_specific_runtime_libs+set}" = set; then
1349 enableval="$enable_version_specific_runtime_libs"
1351 case "$enableval" in
1352 yes|no) ;;
1353 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5
1354 echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;}
1355 { (exit 1); exit 1; }; } ;;
1356 esac
1358 else
1359 enable_version_specific_runtime_libs=no
1362 echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5
1363 echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6
1365 echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5
1366 echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6
1367 # Check whether --enable-linux-futex or --disable-linux-futex was given.
1368 if test "${enable_linux_futex+set}" = set; then
1369 enableval="$enable_linux_futex"
1371 case "$enableval" in
1372 yes|no) ;;
1373 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable linux-futex must be yes or no" >&5
1374 echo "$as_me: error: Argument to enable/disable linux-futex must be yes or no" >&2;}
1375 { (exit 1); exit 1; }; } ;;
1376 esac
1378 else
1379 enable_linux_futex=yes
1382 echo "$as_me:$LINENO: result: $enable_linux_futex" >&5
1383 echo "${ECHO_T}$enable_linux_futex" >&6
1385 # -------
1386 # -------
1388 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1390 # You will slowly go insane if you do not grok the following fact: when
1391 # building this library, the top-level /target/ becomes the library's /host/.
1393 # configure then causes --target to default to --host, exactly like any
1394 # other package using autoconf. Therefore, 'target' and 'host' will
1395 # always be the same. This makes sense both for native and cross compilers
1396 # just think about it for a little while. :-)
1398 # Also, if this library is being configured as part of a cross compiler, the
1399 # top-level configure script will pass the "real" host as $with_cross_host.
1401 # Do not delete or change the following two lines. For why, see
1402 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1403 ac_aux_dir=
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1406 ac_aux_dir=$ac_dir
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1408 break
1409 elif test -f $ac_dir/install.sh; then
1410 ac_aux_dir=$ac_dir
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1412 break
1413 elif test -f $ac_dir/shtool; then
1414 ac_aux_dir=$ac_dir
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1416 break
1418 done
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439 ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1454 build=$ac_cv_build
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1476 host=$ac_cv_host
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1508 NONENONEs,x,x, &&
1509 program_prefix=${target_alias}-
1510 target_alias=${target_alias-$host_alias}
1512 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1513 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1514 # 1.9.0: minimum required version
1515 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1516 # of other PACKAGE_* variables will, however, and there's nothing
1517 # we can do about that; they come from AC_INIT).
1518 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1519 # file in the top srcdir, etc, etc), so stop complaining.
1520 # no-dependencies: turns off auto dependency generation (just for now)
1521 # -Wall: turns on all automake warnings...
1522 # -Wno-portability: ...except this one, since GNU make is required.
1523 # -Wno-override: ... and this one, since we do want this in testsuite.
1524 am__api_version="1.9"
1525 # Find a good install program. We prefer a C program (faster),
1526 # so one script is as good as another. But avoid the broken or
1527 # incompatible versions:
1528 # SysV /etc/install, /usr/sbin/install
1529 # SunOS /usr/etc/install
1530 # IRIX /sbin/install
1531 # AIX /bin/install
1532 # AmigaOS /C/install, which installs bootblocks on floppy discs
1533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1536 # OS/2's system install, which has a completely different semantic
1537 # ./install, which can be erroneously created by make from ./install.sh.
1538 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1539 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1540 if test -z "$INSTALL"; then
1541 if test "${ac_cv_path_install+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 for as_dir in $PATH
1547 IFS=$as_save_IFS
1548 test -z "$as_dir" && as_dir=.
1549 # Account for people who put trailing slashes in PATH elements.
1550 case $as_dir/ in
1551 ./ | .// | /cC/* | \
1552 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1553 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1554 /usr/ucb/* ) ;;
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1558 # by default.
1559 for ac_prog in ginstall scoinst install; do
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1562 if test $ac_prog = install &&
1563 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1564 # AIX install. It has an incompatible calling convention.
1566 elif test $ac_prog = install &&
1567 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1568 # program-specific install script used by HP pwplus--don't use.
1570 else
1571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1572 break 3
1575 done
1576 done
1578 esac
1579 done
1583 if test "${ac_cv_path_install+set}" = set; then
1584 INSTALL=$ac_cv_path_install
1585 else
1586 # As a last resort, use the slow shell script. We don't cache a
1587 # path for INSTALL within a source directory, because that will
1588 # break other packages using the cache if that directory is
1589 # removed, or if the path is relative.
1590 INSTALL=$ac_install_sh
1593 echo "$as_me:$LINENO: result: $INSTALL" >&5
1594 echo "${ECHO_T}$INSTALL" >&6
1596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1597 # It thinks the first close brace ends the variable substitution.
1598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1604 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1605 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1606 # Just in case
1607 sleep 1
1608 echo timestamp > conftest.file
1609 # Do `set' in a subshell so we don't clobber the current shell's
1610 # arguments. Must try -L first in case configure is actually a
1611 # symlink; some systems play weird games with the mod time of symlinks
1612 # (eg FreeBSD returns the mod time of the symlink's containing
1613 # directory).
1614 if (
1615 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1616 if test "$*" = "X"; then
1617 # -L didn't work.
1618 set X `ls -t $srcdir/configure conftest.file`
1620 rm -f conftest.file
1621 if test "$*" != "X $srcdir/configure conftest.file" \
1622 && test "$*" != "X conftest.file $srcdir/configure"; then
1624 # If neither matched, then we have a broken ls. This can happen
1625 # if, for instance, CONFIG_SHELL is bash and it inherits a
1626 # broken ls alias from the environment. This has actually
1627 # happened. Such a system could not be considered "sane".
1628 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1629 alias in your environment" >&5
1630 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1631 alias in your environment" >&2;}
1632 { (exit 1); exit 1; }; }
1635 test "$2" = conftest.file
1637 then
1638 # Ok.
1640 else
1641 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1642 Check your system clock" >&5
1643 echo "$as_me: error: newly created file is older than distributed files!
1644 Check your system clock" >&2;}
1645 { (exit 1); exit 1; }; }
1647 echo "$as_me:$LINENO: result: yes" >&5
1648 echo "${ECHO_T}yes" >&6
1649 test "$program_prefix" != NONE &&
1650 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1651 # Use a double $ so make ignores it.
1652 test "$program_suffix" != NONE &&
1653 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1654 # Double any \ or $. echo might interpret backslashes.
1655 # By default was `s,x,x', remove it if useless.
1656 cat <<\_ACEOF >conftest.sed
1657 s/[\\$]/&&/g;s/;s,x,x,$//
1658 _ACEOF
1659 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1660 rm conftest.sed
1662 # expand $ac_aux_dir to an absolute path
1663 am_aux_dir=`cd $ac_aux_dir && pwd`
1665 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1666 # Use eval to expand $SHELL
1667 if eval "$MISSING --run true"; then
1668 am_missing_run="$MISSING --run "
1669 else
1670 am_missing_run=
1671 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1672 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1675 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1676 # We used to keeping the `.' as first argument, in order to
1677 # allow $(mkdir_p) to be used without argument. As in
1678 # $(mkdir_p) $(somedir)
1679 # where $(somedir) is conditionally defined. However this is wrong
1680 # for two reasons:
1681 # 1. if the package is installed by a user who cannot write `.'
1682 # make install will fail,
1683 # 2. the above comment should most certainly read
1684 # $(mkdir_p) $(DESTDIR)$(somedir)
1685 # so it does not work when $(somedir) is undefined and
1686 # $(DESTDIR) is not.
1687 # To support the latter case, we have to write
1688 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1689 # so the `.' trick is pointless.
1690 mkdir_p='mkdir -p --'
1691 else
1692 # On NextStep and OpenStep, the `mkdir' command does not
1693 # recognize any option. It will interpret all options as
1694 # directories to create, and then abort because `.' already
1695 # exists.
1696 for d in ./-p ./--version;
1698 test -d $d && rmdir $d
1699 done
1700 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1701 if test -f "$ac_aux_dir/mkinstalldirs"; then
1702 mkdir_p='$(mkinstalldirs)'
1703 else
1704 mkdir_p='$(install_sh) -d'
1708 for ac_prog in gawk mawk nawk awk
1710 # Extract the first word of "$ac_prog", so it can be a program name with args.
1711 set dummy $ac_prog; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_AWK+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717 if test -n "$AWK"; then
1718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_AWK="$ac_prog"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1731 done
1732 done
1736 AWK=$ac_cv_prog_AWK
1737 if test -n "$AWK"; then
1738 echo "$as_me:$LINENO: result: $AWK" >&5
1739 echo "${ECHO_T}$AWK" >&6
1740 else
1741 echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1745 test -n "$AWK" && break
1746 done
1748 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1749 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1751 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754 cat >conftest.make <<\_ACEOF
1755 all:
1756 @echo 'ac_maketemp="$(MAKE)"'
1757 _ACEOF
1758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1759 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1760 if test -n "$ac_maketemp"; then
1761 eval ac_cv_prog_make_${ac_make}_set=yes
1762 else
1763 eval ac_cv_prog_make_${ac_make}_set=no
1765 rm -f conftest.make
1767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770 SET_MAKE=
1771 else
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 SET_MAKE="MAKE=${MAKE-make}"
1777 rm -rf .tst 2>/dev/null
1778 mkdir .tst 2>/dev/null
1779 if test -d .tst; then
1780 am__leading_dot=.
1781 else
1782 am__leading_dot=_
1784 rmdir .tst 2>/dev/null
1786 # test to see if srcdir already configured
1787 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1788 test -f $srcdir/config.status; then
1789 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1790 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1791 { (exit 1); exit 1; }; }
1794 # test whether we have cygpath
1795 if test -z "$CYGPATH_W"; then
1796 if (cygpath --version) >/dev/null 2>/dev/null; then
1797 CYGPATH_W='cygpath -w'
1798 else
1799 CYGPATH_W=echo
1804 # Define the identity of the package.
1805 PACKAGE='libgomp'
1806 VERSION='1.0'
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE "$PACKAGE"
1811 _ACEOF
1814 cat >>confdefs.h <<_ACEOF
1815 #define VERSION "$VERSION"
1816 _ACEOF
1818 # Some tools Automake needs.
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1834 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1836 # Installed binaries are usually stripped using `strip' when the user
1837 # run `make install-strip'. However `strip' might not be the right
1838 # tool to use in cross-compilation environments, therefore Automake
1839 # will honor the `STRIP' environment variable to overrule this program.
1840 if test "$cross_compiling" != no; then
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}strip; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_STRIP+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test -n "$STRIP"; then
1850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 break 2
1863 done
1864 done
1868 STRIP=$ac_cv_prog_STRIP
1869 if test -n "$STRIP"; then
1870 echo "$as_me:$LINENO: result: $STRIP" >&5
1871 echo "${ECHO_T}$STRIP" >&6
1872 else
1873 echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6
1878 if test -z "$ac_cv_prog_STRIP"; then
1879 ac_ct_STRIP=$STRIP
1880 # Extract the first word of "strip", so it can be a program name with args.
1881 set dummy strip; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1885 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887 if test -n "$ac_ct_STRIP"; then
1888 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1893 IFS=$as_save_IFS
1894 test -z "$as_dir" && as_dir=.
1895 for ac_exec_ext in '' $ac_executable_extensions; do
1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897 ac_cv_prog_ac_ct_STRIP="strip"
1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 break 2
1901 done
1902 done
1904 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1908 if test -n "$ac_ct_STRIP"; then
1909 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1910 echo "${ECHO_T}$ac_ct_STRIP" >&6
1911 else
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 STRIP=$ac_ct_STRIP
1917 else
1918 STRIP="$ac_cv_prog_STRIP"
1922 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1924 # We need awk for the "check" target. The system "awk" is bad on
1925 # some platforms.
1926 # Always define AMTAR for backward compatibility.
1928 AMTAR=${AMTAR-"${am_missing_run}tar"}
1930 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1936 # Default to --enable-multilib
1937 # Check whether --enable-multilib or --disable-multilib was given.
1938 if test "${enable_multilib+set}" = set; then
1939 enableval="$enable_multilib"
1940 case "$enableval" in
1941 yes) multilib=yes ;;
1942 no) multilib=no ;;
1943 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1944 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1945 { (exit 1); exit 1; }; } ;;
1946 esac
1947 else
1948 multilib=yes
1951 # We may get other options which we leave undocumented:
1952 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1953 # See config-ml.in if you want the gory details.
1955 if test "$srcdir" = "."; then
1956 if test "$with_target_subdir" != "."; then
1957 multi_basedir="$srcdir/$with_multisrctop../.."
1958 else
1959 multi_basedir="$srcdir/$with_multisrctop.."
1961 else
1962 multi_basedir="$srcdir/.."
1966 ac_config_commands="$ac_config_commands default-1"
1969 # Calculate toolexeclibdir
1970 # Also toolexecdir, though it's only used in toolexeclibdir
1971 case ${enable_version_specific_runtime_libs} in
1972 yes)
1973 # Need the gcc compiler version to know where to install libraries
1974 # and header files if --enable-version-specific-runtime-libs option
1975 # is selected.
1976 toolexecdir='$(libdir)/gcc/$(target_alias)'
1977 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1980 if test -n "$with_cross_host" &&
1981 test x"$with_cross_host" != x"no"; then
1982 # Install a library built with a cross compiler in tooldir, not libdir.
1983 toolexecdir='$(exec_prefix)/$(target_alias)'
1984 toolexeclibdir='$(toolexecdir)/lib'
1985 else
1986 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1987 toolexeclibdir='$(libdir)'
1989 multi_os_directory=`$CC -print-multi-os-directory`
1990 case $multi_os_directory in
1991 .) ;; # Avoid trailing /.
1992 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1993 esac
1995 esac
1999 # Check the compiler.
2000 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2001 # We must force CC to /not/ be precious variables; otherwise
2002 # the wrong, non-multilib-adjusted value will be used in multilibs.
2003 # As a side effect, we have to subst CFLAGS ourselves.
2007 ac_ext=c
2008 ac_cpp='$CPP $CPPFLAGS'
2009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012 if test -n "$ac_tool_prefix"; then
2013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2014 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2015 echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2034 done
2035 done
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2049 if test -z "$ac_cv_prog_CC"; then
2050 ac_ct_CC=$CC
2051 # Extract the first word of "gcc", so it can be a program name with args.
2052 set dummy gcc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_CC="gcc"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 break 2
2072 done
2073 done
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2081 else
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2086 CC=$ac_ct_CC
2087 else
2088 CC="$ac_cv_prog_CC"
2091 if test -z "$CC"; then
2092 if test -n "$ac_tool_prefix"; then
2093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2094 set dummy ${ac_tool_prefix}cc; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_prog_CC="${ac_tool_prefix}cc"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 break 2
2114 done
2115 done
2119 CC=$ac_cv_prog_CC
2120 if test -n "$CC"; then
2121 echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6
2123 else
2124 echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2129 if test -z "$ac_cv_prog_CC"; then
2130 ac_ct_CC=$CC
2131 # Extract the first word of "cc", so it can be a program name with args.
2132 set dummy cc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CC="cc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2152 done
2153 done
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2161 else
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2166 CC=$ac_ct_CC
2167 else
2168 CC="$ac_cv_prog_CC"
2172 if test -z "$CC"; then
2173 # Extract the first word of "cc", so it can be a program name with args.
2174 set dummy cc; ac_word=$2
2175 echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2182 else
2183 ac_prog_rejected=no
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192 ac_prog_rejected=yes
2193 continue
2195 ac_cv_prog_CC="cc"
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 break 2
2199 done
2200 done
2202 if test $ac_prog_rejected = yes; then
2203 # We found a bogon in the path, so make sure we never use it.
2204 set dummy $ac_cv_prog_CC
2205 shift
2206 if test $# != 0; then
2207 # We chose a different compiler from the bogus one.
2208 # However, it has the same basename, so the bogon will be chosen
2209 # first if we set CC to just the basename; use the full file name.
2210 shift
2211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218 echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6
2220 else
2221 echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6
2226 if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
2228 for ac_prog in cl
2230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 break 2
2251 done
2252 done
2256 CC=$ac_cv_prog_CC
2257 if test -n "$CC"; then
2258 echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6
2260 else
2261 echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2265 test -n "$CC" && break
2266 done
2268 if test -z "$CC"; then
2269 ac_ct_CC=$CC
2270 for ac_prog in cl
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289 ac_cv_prog_ac_ct_CC="$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
2293 done
2294 done
2298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2299 if test -n "$ac_ct_CC"; then
2300 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2301 echo "${ECHO_T}$ac_ct_CC" >&6
2302 else
2303 echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2307 test -n "$ac_ct_CC" && break
2308 done
2310 CC=$ac_ct_CC
2316 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: no acceptable C compiler found in \$PATH
2319 See \`config.log' for more details." >&2;}
2320 { (exit 1); exit 1; }; }
2322 # Provide some information about the compiler.
2323 echo "$as_me:$LINENO:" \
2324 "checking for C compiler version" >&5
2325 ac_compiler=`set X $ac_compile; echo $2`
2326 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2327 (eval $ac_compiler --version </dev/null >&5) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2332 (eval $ac_compiler -v </dev/null >&5) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2336 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2337 (eval $ac_compiler -V </dev/null >&5) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2342 cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h. */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2350 main ()
2354 return 0;
2356 _ACEOF
2357 ac_clean_files_save=$ac_clean_files
2358 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2359 # Try to create an executable without -o first, disregard a.out.
2360 # It will help us diagnose broken compilers, and finding out an intuition
2361 # of exeext.
2362 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2363 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2364 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2365 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2366 (eval $ac_link_default) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 # Find the output, starting from the most likely. This scheme is
2371 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2372 # resort.
2374 # Be careful to initialize this variable, since it used to be cached.
2375 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2376 ac_cv_exeext=
2377 # b.out is created by i960 compilers.
2378 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2380 test -f "$ac_file" || continue
2381 case $ac_file in
2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2384 conftest.$ac_ext )
2385 # This is the source file.
2387 [ab].out )
2388 # We found the default executable, but exeext='' is most
2389 # certainly right.
2390 break;;
2391 *.* )
2392 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2393 # FIXME: I believe we export ac_cv_exeext for Libtool,
2394 # but it would be cool to find out if it's true. Does anybody
2395 # maintain Libtool? --akim.
2396 export ac_cv_exeext
2397 break;;
2399 break;;
2400 esac
2401 done
2402 else
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2406 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2407 See \`config.log' for more details." >&5
2408 echo "$as_me: error: C compiler cannot create executables
2409 See \`config.log' for more details." >&2;}
2410 { (exit 77); exit 77; }; }
2413 ac_exeext=$ac_cv_exeext
2414 echo "$as_me:$LINENO: result: $ac_file" >&5
2415 echo "${ECHO_T}$ac_file" >&6
2417 # Check the compiler produces executables we can run. If not, either
2418 # the compiler is broken, or we cross compile.
2419 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2420 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2421 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2422 # If not cross compiling, check that we can run a simple program.
2423 if test "$cross_compiling" != yes; then
2424 if { ac_try='./$ac_file'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 cross_compiling=no
2431 else
2432 if test "$cross_compiling" = maybe; then
2433 cross_compiling=yes
2434 else
2435 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2436 If you meant to cross compile, use \`--host'.
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: cannot run C compiled programs.
2439 If you meant to cross compile, use \`--host'.
2440 See \`config.log' for more details." >&2;}
2441 { (exit 1); exit 1; }; }
2445 echo "$as_me:$LINENO: result: yes" >&5
2446 echo "${ECHO_T}yes" >&6
2448 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2449 ac_clean_files=$ac_clean_files_save
2450 # Check the compiler produces executables we can run. If not, either
2451 # the compiler is broken, or we cross compile.
2452 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2453 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2454 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2455 echo "${ECHO_T}$cross_compiling" >&6
2457 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2458 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2460 (eval $ac_link) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; then
2464 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2465 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2466 # work properly (i.e., refer to `conftest.exe'), while it won't with
2467 # `rm'.
2468 for ac_file in conftest.exe conftest conftest.*; do
2469 test -f "$ac_file" || continue
2470 case $ac_file in
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2472 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2473 export ac_cv_exeext
2474 break;;
2475 * ) break;;
2476 esac
2477 done
2478 else
2479 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2480 See \`config.log' for more details." >&5
2481 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details." >&2;}
2483 { (exit 1); exit 1; }; }
2486 rm -f conftest$ac_cv_exeext
2487 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2488 echo "${ECHO_T}$ac_cv_exeext" >&6
2490 rm -f conftest.$ac_ext
2491 EXEEXT=$ac_cv_exeext
2492 ac_exeext=$EXEEXT
2493 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2494 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2495 if test "${ac_cv_objext+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2506 main ()
2510 return 0;
2512 _ACEOF
2513 rm -f conftest.o conftest.obj
2514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515 (eval $ac_compile) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; then
2519 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2523 break;;
2524 esac
2525 done
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2537 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2539 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2540 echo "${ECHO_T}$ac_cv_objext" >&6
2541 OBJEXT=$ac_cv_objext
2542 ac_objext=$OBJEXT
2543 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2544 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2545 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547 else
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h. */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2556 main ()
2558 #ifndef __GNUC__
2559 choke me
2560 #endif
2563 return 0;
2565 _ACEOF
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>conftest.er1
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag"
2576 || test ! -s conftest.err'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 ac_compiler_gnu=yes
2589 else
2590 echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2593 ac_compiler_gnu=no
2595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2599 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2600 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2601 GCC=`test $ac_compiler_gnu = yes && echo yes`
2602 ac_test_CFLAGS=${CFLAGS+set}
2603 ac_save_CFLAGS=$CFLAGS
2604 CFLAGS="-g"
2605 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2606 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2607 if test "${ac_cv_prog_cc_g+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610 cat >conftest.$ac_ext <<_ACEOF
2611 /* confdefs.h. */
2612 _ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2618 main ()
2622 return 0;
2624 _ACEOF
2625 rm -f conftest.$ac_objext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627 (eval $ac_compile) 2>conftest.er1
2628 ac_status=$?
2629 grep -v '^ *+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest.$ac_objext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 ac_cv_prog_cc_g=yes
2648 else
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 ac_cv_prog_cc_g=no
2654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2657 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2658 if test "$ac_test_CFLAGS" = set; then
2659 CFLAGS=$ac_save_CFLAGS
2660 elif test $ac_cv_prog_cc_g = yes; then
2661 if test "$GCC" = yes; then
2662 CFLAGS="-g -O2"
2663 else
2664 CFLAGS="-g"
2666 else
2667 if test "$GCC" = yes; then
2668 CFLAGS="-O2"
2669 else
2670 CFLAGS=
2673 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2674 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2675 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 ac_cv_prog_cc_stdc=no
2679 ac_save_CC=$CC
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2686 #include <stdarg.h>
2687 #include <stdio.h>
2688 #include <sys/types.h>
2689 #include <sys/stat.h>
2690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2691 struct buf { int x; };
2692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2693 static char *e (p, i)
2694 char **p;
2695 int i;
2697 return p[i];
2699 static char *f (char * (*g) (char **, int), char **p, ...)
2701 char *s;
2702 va_list v;
2703 va_start (v,p);
2704 s = g (p, va_arg (v,int));
2705 va_end (v);
2706 return s;
2709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2710 function prototypes and stuff, but not '\xHH' hex character constants.
2711 These don't provoke an error unfortunately, instead are silently treated
2712 as 'x'. The following induces an error, until -std1 is added to get
2713 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2714 array size at least. It's necessary to write '\x00'==0 to get something
2715 that's true only with -std1. */
2716 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 int argc;
2723 char **argv;
2725 main ()
2727 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2729 return 0;
2731 _ACEOF
2732 # Don't try gcc -ansi; that turns off useful extensions and
2733 # breaks some systems' header files.
2734 # AIX -qlanglvl=ansi
2735 # Ultrix and OSF/1 -std1
2736 # HP-UX 10.20 and later -Ae
2737 # HP-UX older versions -Aa -D_HPUX_SOURCE
2738 # SVR4 -Xc -D__EXTENSIONS__
2739 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2741 CC="$ac_save_CC $ac_arg"
2742 rm -f conftest.$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 (eval $ac_compile) 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -z "$ac_c_werror_flag"
2752 || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 ac_cv_prog_cc_stdc=$ac_arg
2765 break
2766 else
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f conftest.err conftest.$ac_objext
2772 done
2773 rm -f conftest.$ac_ext conftest.$ac_objext
2774 CC=$ac_save_CC
2778 case "x$ac_cv_prog_cc_stdc" in
2779 x|xno)
2780 echo "$as_me:$LINENO: result: none needed" >&5
2781 echo "${ECHO_T}none needed" >&6 ;;
2783 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2784 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2785 CC="$CC $ac_cv_prog_cc_stdc" ;;
2786 esac
2788 # Some people use a C++ compiler to compile C. Since we use `exit',
2789 # in C++ we need to declare it. In case someone uses the same compiler
2790 # for both compiling C and C++ we need to have the C++ compiler decide
2791 # the declaration of exit, since it's the most demanding environment.
2792 cat >conftest.$ac_ext <<_ACEOF
2793 #ifndef __cplusplus
2794 choke me
2795 #endif
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
2806 { ac_try='test -z "$ac_c_werror_flag"
2807 || test ! -s conftest.err'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 for ac_declaration in \
2820 '' \
2821 'extern "C" void std::exit (int) throw (); using std::exit;' \
2822 'extern "C" void std::exit (int); using std::exit;' \
2823 'extern "C" void exit (int) throw ();' \
2824 'extern "C" void exit (int);' \
2825 'void exit (int);'
2827 cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h. */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2833 $ac_declaration
2834 #include <stdlib.h>
2836 main ()
2838 exit (42);
2840 return 0;
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>conftest.er1
2846 ac_status=$?
2847 grep -v '^ *+' conftest.er1 >conftest.err
2848 rm -f conftest.er1
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try='test -z "$ac_c_werror_flag"
2853 || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2866 else
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 continue
2872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2873 cat >conftest.$ac_ext <<_ACEOF
2874 /* confdefs.h. */
2875 _ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2879 $ac_declaration
2881 main ()
2883 exit (42);
2885 return 0;
2887 _ACEOF
2888 rm -f conftest.$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -z "$ac_c_werror_flag"
2898 || test ! -s conftest.err'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 (eval $ac_try) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; } &&
2904 { ac_try='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 (eval $ac_try) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2910 break
2911 else
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917 done
2918 rm -f conftest*
2919 if test -n "$ac_declaration"; then
2920 echo '#ifdef __cplusplus' >>confdefs.h
2921 echo $ac_declaration >>confdefs.h
2922 echo '#endif' >>confdefs.h
2925 else
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931 ac_ext=c
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936 DEPDIR="${am__leading_dot}deps"
2938 ac_config_commands="$ac_config_commands depfiles"
2941 am_make=${MAKE-make}
2942 cat > confinc << 'END'
2943 am__doit:
2944 @echo done
2945 .PHONY: am__doit
2947 # If we don't find an include directive, just comment out the code.
2948 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2949 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2950 am__include="#"
2951 am__quote=
2952 _am_result=none
2953 # First try GNU make style include.
2954 echo "include confinc" > confmf
2955 # We grep out `Entering directory' and `Leaving directory'
2956 # messages which can occur if `w' ends up in MAKEFLAGS.
2957 # In particular we don't look at `^make:' because GNU make might
2958 # be invoked under some other name (usually "gmake"), in which
2959 # case it prints its new name instead of `make'.
2960 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2961 am__include=include
2962 am__quote=
2963 _am_result=GNU
2965 # Now try BSD make style include.
2966 if test "$am__include" = "#"; then
2967 echo '.include "confinc"' > confmf
2968 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2969 am__include=.include
2970 am__quote="\""
2971 _am_result=BSD
2976 echo "$as_me:$LINENO: result: $_am_result" >&5
2977 echo "${ECHO_T}$_am_result" >&6
2978 rm -f confinc confmf
2980 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2981 if test "${enable_dependency_tracking+set}" = set; then
2982 enableval="$enable_dependency_tracking"
2985 if test "x$enable_dependency_tracking" != xno; then
2986 am_depcomp="$ac_aux_dir/depcomp"
2987 AMDEPBACKSLASH='\'
2991 if test "x$enable_dependency_tracking" != xno; then
2992 AMDEP_TRUE=
2993 AMDEP_FALSE='#'
2994 else
2995 AMDEP_TRUE='#'
2996 AMDEP_FALSE=
3002 depcc="$CC" am_compiler_list=
3004 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3005 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3006 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3010 # We make a subdir and do the tests there. Otherwise we can end up
3011 # making bogus files that we don't know about and never remove. For
3012 # instance it was reported that on HP-UX the gcc test will end up
3013 # making a dummy file named `D' -- because `-MD' means `put the output
3014 # in D'.
3015 mkdir conftest.dir
3016 # Copy depcomp to subdir because otherwise we won't find it if we're
3017 # using a relative directory.
3018 cp "$am_depcomp" conftest.dir
3019 cd conftest.dir
3020 # We will build objects and dependencies in a subdirectory because
3021 # it helps to detect inapplicable dependency modes. For instance
3022 # both Tru64's cc and ICC support -MD to output dependencies as a
3023 # side effect of compilation, but ICC will put the dependencies in
3024 # the current directory while Tru64 will put them in the object
3025 # directory.
3026 mkdir sub
3028 am_cv_CC_dependencies_compiler_type=none
3029 if test "$am_compiler_list" = ""; then
3030 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3032 for depmode in $am_compiler_list; do
3033 # Setup a source with many dependencies, because some compilers
3034 # like to wrap large dependency lists on column 80 (with \), and
3035 # we should not choose a depcomp mode which is confused by this.
3037 # We need to recreate these files for each test, as the compiler may
3038 # overwrite some of them when testing with obscure command lines.
3039 # This happens at least with the AIX C compiler.
3040 : > sub/conftest.c
3041 for i in 1 2 3 4 5 6; do
3042 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3044 # Solaris 8's {/usr,}/bin/sh.
3045 touch sub/conftst$i.h
3046 done
3047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3049 case $depmode in
3050 nosideeffect)
3051 # after this tag, mechanisms are not by side-effect, so they'll
3052 # only be used when explicitly requested
3053 if test "x$enable_dependency_tracking" = xyes; then
3054 continue
3055 else
3056 break
3059 none) break ;;
3060 esac
3061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3062 # mode. It turns out that the SunPro C++ compiler does not properly
3063 # handle `-M -o', and we need to detect this.
3064 if depmode=$depmode \
3065 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3067 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3068 >/dev/null 2>conftest.err &&
3069 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3070 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3071 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3072 # icc doesn't choke on unknown options, it will just issue warnings
3073 # or remarks (even with -Werror). So we grep stderr for any message
3074 # that says an option was ignored or not supported.
3075 # When given -MP, icc 7.0 and 7.1 complain thusly:
3076 # icc: Command line warning: ignoring option '-M'; no argument required
3077 # The diagnosis changed in icc 8.0:
3078 # icc: Command line remark: option '-MP' not supported
3079 if (grep 'ignoring option' conftest.err ||
3080 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3081 am_cv_CC_dependencies_compiler_type=$depmode
3082 break
3085 done
3087 cd ..
3088 rm -rf conftest.dir
3089 else
3090 am_cv_CC_dependencies_compiler_type=none
3094 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3095 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3096 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3101 test "x$enable_dependency_tracking" != xno \
3102 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3103 am__fastdepCC_TRUE=
3104 am__fastdepCC_FALSE='#'
3105 else
3106 am__fastdepCC_TRUE='#'
3107 am__fastdepCC_FALSE=
3115 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
3116 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
3117 # in both places for now and restore CFLAGS at the end of config.
3118 save_CFLAGS="$CFLAGS"
3120 # Add -Wall -Werror if we are using GCC.
3121 if test "x$GCC" = "xyes"; then
3122 XCFLAGS="$XCFLAGS -Wall -Werror"
3125 # Find other programs we need.
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3128 set dummy ${ac_tool_prefix}ar; ac_word=$2
3129 echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3131 if test "${ac_cv_prog_AR+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134 if test -n "$AR"; then
3135 ac_cv_prog_AR="$AR" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_AR="${ac_tool_prefix}ar"
3145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3148 done
3149 done
3153 AR=$ac_cv_prog_AR
3154 if test -n "$AR"; then
3155 echo "$as_me:$LINENO: result: $AR" >&5
3156 echo "${ECHO_T}$AR" >&6
3157 else
3158 echo "$as_me:$LINENO: result: no" >&5
3159 echo "${ECHO_T}no" >&6
3163 if test -z "$ac_cv_prog_AR"; then
3164 ac_ct_AR=$AR
3165 # Extract the first word of "ar", so it can be a program name with args.
3166 set dummy ar; ac_word=$2
3167 echo "$as_me:$LINENO: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172 if test -n "$ac_ct_AR"; then
3173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_ac_ct_AR="ar"
3183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3186 done
3187 done
3191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3192 if test -n "$ac_ct_AR"; then
3193 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3194 echo "${ECHO_T}$ac_ct_AR" >&6
3195 else
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3200 AR=$ac_ct_AR
3201 else
3202 AR="$ac_cv_prog_AR"
3205 if test -n "$ac_tool_prefix"; then
3206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3207 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3208 echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3210 if test "${ac_cv_prog_RANLIB+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 if test -n "$RANLIB"; then
3214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3227 done
3228 done
3232 RANLIB=$ac_cv_prog_RANLIB
3233 if test -n "$RANLIB"; then
3234 echo "$as_me:$LINENO: result: $RANLIB" >&5
3235 echo "${ECHO_T}$RANLIB" >&6
3236 else
3237 echo "$as_me:$LINENO: result: no" >&5
3238 echo "${ECHO_T}no" >&6
3242 if test -z "$ac_cv_prog_RANLIB"; then
3243 ac_ct_RANLIB=$RANLIB
3244 # Extract the first word of "ranlib", so it can be a program name with args.
3245 set dummy ranlib; ac_word=$2
3246 echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 if test -n "$ac_ct_RANLIB"; then
3252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_ac_ct_RANLIB="ranlib"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3265 done
3266 done
3268 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3271 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3272 if test -n "$ac_ct_RANLIB"; then
3273 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3274 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3275 else
3276 echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6
3280 RANLIB=$ac_ct_RANLIB
3281 else
3282 RANLIB="$ac_cv_prog_RANLIB"
3285 # Extract the first word of "perl", so it can be a program name with args.
3286 set dummy perl; ac_word=$2
3287 echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3289 if test "${ac_cv_path_PERL+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 case $PERL in
3293 [\\/]* | ?:[\\/]*)
3294 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3308 done
3309 done
3311 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
3313 esac
3315 PERL=$ac_cv_path_PERL
3317 if test -n "$PERL"; then
3318 echo "$as_me:$LINENO: result: $PERL" >&5
3319 echo "${ECHO_T}$PERL" >&6
3320 else
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3325 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3326 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3327 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3328 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331 cat >conftest.make <<\_ACEOF
3332 all:
3333 @echo 'ac_maketemp="$(MAKE)"'
3334 _ACEOF
3335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3336 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3337 if test -n "$ac_maketemp"; then
3338 eval ac_cv_prog_make_${ac_make}_set=yes
3339 else
3340 eval ac_cv_prog_make_${ac_make}_set=no
3342 rm -f conftest.make
3344 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3345 echo "$as_me:$LINENO: result: yes" >&5
3346 echo "${ECHO_T}yes" >&6
3347 SET_MAKE=
3348 else
3349 echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6
3351 SET_MAKE="MAKE=${MAKE-make}"
3354 # Find a good install program. We prefer a C program (faster),
3355 # so one script is as good as another. But avoid the broken or
3356 # incompatible versions:
3357 # SysV /etc/install, /usr/sbin/install
3358 # SunOS /usr/etc/install
3359 # IRIX /sbin/install
3360 # AIX /bin/install
3361 # AmigaOS /C/install, which installs bootblocks on floppy discs
3362 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3363 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3364 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3365 # OS/2's system install, which has a completely different semantic
3366 # ./install, which can be erroneously created by make from ./install.sh.
3367 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3368 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3369 if test -z "$INSTALL"; then
3370 if test "${ac_cv_path_install+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 # Account for people who put trailing slashes in PATH elements.
3379 case $as_dir/ in
3380 ./ | .// | /cC/* | \
3381 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3382 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3383 /usr/ucb/* ) ;;
3385 # OSF1 and SCO ODT 3.0 have their own names for install.
3386 # Don't use installbsd from OSF since it installs stuff as root
3387 # by default.
3388 for ac_prog in ginstall scoinst install; do
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3391 if test $ac_prog = install &&
3392 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3393 # AIX install. It has an incompatible calling convention.
3395 elif test $ac_prog = install &&
3396 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3397 # program-specific install script used by HP pwplus--don't use.
3399 else
3400 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3401 break 3
3404 done
3405 done
3407 esac
3408 done
3412 if test "${ac_cv_path_install+set}" = set; then
3413 INSTALL=$ac_cv_path_install
3414 else
3415 # As a last resort, use the slow shell script. We don't cache a
3416 # path for INSTALL within a source directory, because that will
3417 # break other packages using the cache if that directory is
3418 # removed, or if the path is relative.
3419 INSTALL=$ac_install_sh
3422 echo "$as_me:$LINENO: result: $INSTALL" >&5
3423 echo "${ECHO_T}$INSTALL" >&6
3425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3426 # It thinks the first close brace ends the variable substitution.
3427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3434 # Configure libtool
3435 # Check whether --enable-shared or --disable-shared was given.
3436 if test "${enable_shared+set}" = set; then
3437 enableval="$enable_shared"
3438 p=${PACKAGE-default}
3439 case $enableval in
3440 yes) enable_shared=yes ;;
3441 no) enable_shared=no ;;
3443 enable_shared=no
3444 # Look at the argument we got. We use all the common list separators.
3445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3446 for pkg in $enableval; do
3447 if test "X$pkg" = "X$p"; then
3448 enable_shared=yes
3450 done
3451 IFS="$ac_save_ifs"
3453 esac
3454 else
3455 enable_shared=yes
3457 # Check whether --enable-static or --disable-static was given.
3458 if test "${enable_static+set}" = set; then
3459 enableval="$enable_static"
3460 p=${PACKAGE-default}
3461 case $enableval in
3462 yes) enable_static=yes ;;
3463 no) enable_static=no ;;
3465 enable_static=no
3466 # Look at the argument we got. We use all the common list separators.
3467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3468 for pkg in $enableval; do
3469 if test "X$pkg" = "X$p"; then
3470 enable_static=yes
3472 done
3473 IFS="$ac_save_ifs"
3475 esac
3476 else
3477 enable_static=yes
3479 # Check whether --enable-fast-install or --disable-fast-install was given.
3480 if test "${enable_fast_install+set}" = set; then
3481 enableval="$enable_fast_install"
3482 p=${PACKAGE-default}
3483 case $enableval in
3484 yes) enable_fast_install=yes ;;
3485 no) enable_fast_install=no ;;
3487 enable_fast_install=no
3488 # Look at the argument we got. We use all the common list separators.
3489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3490 for pkg in $enableval; do
3491 if test "X$pkg" = "X$p"; then
3492 enable_fast_install=yes
3494 done
3495 IFS="$ac_save_ifs"
3497 esac
3498 else
3499 enable_fast_install=yes
3502 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3503 if test "${with_gnu_ld+set}" = set; then
3504 withval="$with_gnu_ld"
3505 test "$withval" = no || with_gnu_ld=yes
3506 else
3507 with_gnu_ld=no
3509 ac_prog=ld
3510 if test "$GCC" = yes; then
3511 # Check if gcc -print-prog-name=ld gives a path.
3512 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3513 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3514 case $host in
3515 *-*-mingw*)
3516 # gcc leaves a trailing carriage return which upsets mingw
3517 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3519 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3520 esac
3521 case $ac_prog in
3522 # Accept absolute paths.
3523 [\\/]* | [A-Za-z]:[\\/]*)
3524 re_direlt='/[^/][^/]*/\.\./'
3525 # Canonicalize the path of ld
3526 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3527 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3528 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3529 done
3530 test -z "$LD" && LD="$ac_prog"
3533 # If it fails, then pretend we aren't using GCC.
3534 ac_prog=ld
3537 # If it is relative, then search for the first ld in PATH.
3538 with_gnu_ld=unknown
3540 esac
3541 elif test "$with_gnu_ld" = yes; then
3542 echo "$as_me:$LINENO: checking for GNU ld" >&5
3543 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3544 else
3545 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3546 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3548 if test "${lt_cv_path_LD+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 if test -z "$LD"; then
3552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3553 for ac_dir in $PATH; do
3554 test -z "$ac_dir" && ac_dir=.
3555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3556 lt_cv_path_LD="$ac_dir/$ac_prog"
3557 # Check to see if the program is GNU ld. I'd rather use --version,
3558 # but apparently some GNU ld's only accept -v.
3559 # Break only if it was the GNU/non-GNU ld that we prefer.
3560 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3561 test "$with_gnu_ld" != no && break
3562 else
3563 test "$with_gnu_ld" != yes && break
3566 done
3567 IFS="$ac_save_ifs"
3568 else
3569 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3573 LD="$lt_cv_path_LD"
3574 if test -n "$LD"; then
3575 echo "$as_me:$LINENO: result: $LD" >&5
3576 echo "${ECHO_T}$LD" >&6
3577 else
3578 echo "$as_me:$LINENO: result: no" >&5
3579 echo "${ECHO_T}no" >&6
3581 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3582 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3583 { (exit 1); exit 1; }; }
3584 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3585 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3586 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3590 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3591 lt_cv_prog_gnu_ld=yes
3592 else
3593 lt_cv_prog_gnu_ld=no
3596 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3597 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3598 with_gnu_ld=$lt_cv_prog_gnu_ld
3601 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3602 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3603 if test "${lt_cv_ld_reload_flag+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 lt_cv_ld_reload_flag='-r'
3608 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3609 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3610 reload_flag=$lt_cv_ld_reload_flag
3611 test -n "$reload_flag" && reload_flag=" $reload_flag"
3613 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3614 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3615 if test "${lt_cv_path_NM+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618 if test -n "$NM"; then
3619 # Let the user override the test.
3620 lt_cv_path_NM="$NM"
3621 else
3622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3623 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3624 test -z "$ac_dir" && ac_dir=.
3625 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3626 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3627 # Check to see if the nm accepts a BSD-compat flag.
3628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3629 # nm: unknown option "B" ignored
3630 # Tru64's nm complains that /dev/null is an invalid object file
3631 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3632 lt_cv_path_NM="$tmp_nm -B"
3633 break
3634 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3635 lt_cv_path_NM="$tmp_nm -p"
3636 break
3637 else
3638 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3639 continue # so that we can try to find one that supports BSD flags
3642 done
3643 IFS="$ac_save_ifs"
3644 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3648 NM="$lt_cv_path_NM"
3649 echo "$as_me:$LINENO: result: $NM" >&5
3650 echo "${ECHO_T}$NM" >&6
3652 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3653 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3654 LN_S=$as_ln_s
3655 if test "$LN_S" = "ln -s"; then
3656 echo "$as_me:$LINENO: result: yes" >&5
3657 echo "${ECHO_T}yes" >&6
3658 else
3659 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3660 echo "${ECHO_T}no, using $LN_S" >&6
3663 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3664 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3665 if test "${lt_cv_deplibs_check_method+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 lt_cv_file_magic_cmd='$MAGIC_CMD'
3669 lt_cv_file_magic_test_file=
3670 lt_cv_deplibs_check_method='unknown'
3671 # Need to set the preceding variable on all platforms that support
3672 # interlibrary dependencies.
3673 # 'none' -- dependencies not supported.
3674 # `unknown' -- same as none, but documents that we really don't know.
3675 # 'pass_all' -- all dependencies passed with no checks.
3676 # 'test_compile' -- check by making test program.
3677 # 'file_magic [regex]' -- check by looking for files in library path
3678 # which responds to the $file_magic_cmd with a given egrep regex.
3679 # If you have `file' or equivalent on your system and you're not sure
3680 # whether `pass_all' will *always* work, you probably want this one.
3682 case $host_os in
3683 aix*)
3684 lt_cv_deplibs_check_method=pass_all
3687 beos*)
3688 lt_cv_deplibs_check_method=pass_all
3691 bsdi4*)
3692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3693 lt_cv_file_magic_cmd='/usr/bin/file -L'
3694 lt_cv_file_magic_test_file=/shlib/libc.so
3697 cygwin* | mingw* |pw32*)
3698 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3699 lt_cv_file_magic_cmd='$OBJDUMP -f'
3702 darwin* | rhapsody*)
3703 # this will be overwritten by pass_all, but leave it in just in case
3704 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3705 lt_cv_file_magic_cmd='/usr/bin/file -L'
3706 case "$host_os" in
3707 rhapsody* | darwin1.012)
3708 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3710 *) # Darwin 1.3 on
3711 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3713 esac
3714 lt_cv_deplibs_check_method=pass_all
3717 freebsd* | kfreebsd*-gnu)
3718 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3719 case $host_cpu in
3720 i*86 )
3721 # Not sure whether the presence of OpenBSD here was a mistake.
3722 # Let's accept both of them until this is cleared up.
3723 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3724 lt_cv_file_magic_cmd=/usr/bin/file
3725 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3727 esac
3728 else
3729 lt_cv_deplibs_check_method=pass_all
3733 gnu*)
3734 lt_cv_deplibs_check_method=pass_all
3737 hpux10.20*|hpux11*)
3738 case $host_cpu in
3739 hppa*)
3740 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3741 lt_cv_file_magic_cmd=/usr/bin/file
3742 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3744 ia64*)
3745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3746 lt_cv_file_magic_cmd=/usr/bin/file
3747 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3749 esac
3752 irix5* | irix6*)
3753 case $host_os in
3754 irix5*)
3755 # this will be overridden with pass_all, but let us keep it just in case
3756 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3759 case $LD in
3760 *-32|*"-32 ") libmagic=32-bit;;
3761 *-n32|*"-n32 ") libmagic=N32;;
3762 *-64|*"-64 ") libmagic=64-bit;;
3763 *) libmagic=never-match;;
3764 esac
3765 # this will be overridden with pass_all, but let us keep it just in case
3766 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3768 esac
3769 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3770 lt_cv_deplibs_check_method=pass_all
3773 # This must be Linux ELF.
3774 linux-gnu*)
3775 lt_cv_deplibs_check_method=pass_all
3778 netbsd* | knetbsd*-gnu)
3779 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3780 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3781 else
3782 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3786 newsos6)
3787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3788 lt_cv_file_magic_cmd=/usr/bin/file
3789 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3792 osf3* | osf4* | osf5*)
3793 # this will be overridden with pass_all, but let us keep it just in case
3794 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3795 lt_cv_file_magic_test_file=/shlib/libc.so
3796 lt_cv_deplibs_check_method=pass_all
3799 sco3.2v5*)
3800 lt_cv_deplibs_check_method=pass_all
3803 solaris*)
3804 lt_cv_deplibs_check_method=pass_all
3805 lt_cv_file_magic_test_file=/lib/libc.so
3808 sysv5uw[78]* | sysv4*uw2*)
3809 lt_cv_deplibs_check_method=pass_all
3812 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3813 case $host_vendor in
3814 ncr)
3815 lt_cv_deplibs_check_method=pass_all
3817 motorola)
3818 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]'
3819 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3821 esac
3823 esac
3826 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3827 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3828 file_magic_cmd=$lt_cv_file_magic_cmd
3829 deplibs_check_method=$lt_cv_deplibs_check_method
3835 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3837 # find the maximum length of command line arguments
3838 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3839 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3840 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3844 teststring="ABCD"
3846 case $build_os in
3847 msdosdjgpp*)
3848 # On DJGPP, this test can blow up pretty badly due to problems in libc
3849 # (any single argument exceeding 2000 bytes causes a buffer overrun
3850 # during glob expansion). Even if it were fixed, the result of this
3851 # check would be larger than it should be.
3852 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3855 cygwin* | mingw*)
3856 # On Win9x/ME, this test blows up -- it succeeds, but takes
3857 # about 5 minutes as the teststring grows exponentially.
3858 # Worse, since 9x/ME are not pre-emptively multitasking,
3859 # you end up with a "frozen" computer, even though with patience
3860 # the test eventually succeeds (with a max line length of 256k).
3861 # Instead, let's just punt: use the minimum linelength reported by
3862 # all of the supported platforms: 8192 (on NT/2K/XP).
3863 lt_cv_sys_max_cmd_len=8192;
3866 amigaos*)
3867 # On AmigaOS with pdksh, this test takes hours, literally.
3868 # So we just punt and use a minimum line length of 8192.
3869 lt_cv_sys_max_cmd_len=8192;
3872 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3873 # This has been around since 386BSD, at least. Likely further.
3874 if test -x /sbin/sysctl; then
3875 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3876 elif test -x /usr/sbin/sysctl; then
3877 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3878 else
3879 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3881 # And add a safety zone
3882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3885 esac
3889 if test -n "$lt_cv_sys_max_cmd_len" ; then
3890 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3891 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3892 else
3893 echo "$as_me:$LINENO: result: none" >&5
3894 echo "${ECHO_T}none" >&6
3898 # Only perform the check for file, if the check method requires it
3899 case $deplibs_check_method in
3900 file_magic*)
3901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3902 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3903 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3904 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 case $MAGIC_CMD in
3909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3911 ?:/*)
3912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3915 ac_save_MAGIC_CMD="$MAGIC_CMD"
3916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3917 ac_dummy="/usr/bin:$PATH"
3918 for ac_dir in $ac_dummy; do
3919 test -z "$ac_dir" && ac_dir=.
3920 if test -f $ac_dir/${ac_tool_prefix}file; then
3921 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3922 if test -n "$file_magic_test_file"; then
3923 case $deplibs_check_method in
3924 "file_magic "*)
3925 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3928 egrep "$file_magic_regex" > /dev/null; then
3930 else
3931 cat <<EOF 1>&2
3933 *** Warning: the command libtool uses to detect shared libraries,
3934 *** $file_magic_cmd, produces output that libtool cannot recognize.
3935 *** The result is that libtool may fail to recognize shared libraries
3936 *** as such. This will affect the creation of libtool libraries that
3937 *** depend on shared libraries, but programs linked with such libtool
3938 *** libraries will work regardless of this problem. Nevertheless, you
3939 *** may want to report the problem to your system manager and/or to
3940 *** bug-libtool@gnu.org
3943 fi ;;
3944 esac
3946 break
3948 done
3949 IFS="$ac_save_ifs"
3950 MAGIC_CMD="$ac_save_MAGIC_CMD"
3952 esac
3955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3956 if test -n "$MAGIC_CMD"; then
3957 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3958 echo "${ECHO_T}$MAGIC_CMD" >&6
3959 else
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3964 if test -z "$lt_cv_path_MAGIC_CMD"; then
3965 if test -n "$ac_tool_prefix"; then
3966 echo "$as_me:$LINENO: checking for file" >&5
3967 echo $ECHO_N "checking for file... $ECHO_C" >&6
3968 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971 case $MAGIC_CMD in
3973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3975 ?:/*)
3976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3979 ac_save_MAGIC_CMD="$MAGIC_CMD"
3980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3981 ac_dummy="/usr/bin:$PATH"
3982 for ac_dir in $ac_dummy; do
3983 test -z "$ac_dir" && ac_dir=.
3984 if test -f $ac_dir/file; then
3985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3986 if test -n "$file_magic_test_file"; then
3987 case $deplibs_check_method in
3988 "file_magic "*)
3989 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3992 egrep "$file_magic_regex" > /dev/null; then
3994 else
3995 cat <<EOF 1>&2
3997 *** Warning: the command libtool uses to detect shared libraries,
3998 *** $file_magic_cmd, produces output that libtool cannot recognize.
3999 *** The result is that libtool may fail to recognize shared libraries
4000 *** as such. This will affect the creation of libtool libraries that
4001 *** depend on shared libraries, but programs linked with such libtool
4002 *** libraries will work regardless of this problem. Nevertheless, you
4003 *** may want to report the problem to your system manager and/or to
4004 *** bug-libtool@gnu.org
4007 fi ;;
4008 esac
4010 break
4012 done
4013 IFS="$ac_save_ifs"
4014 MAGIC_CMD="$ac_save_MAGIC_CMD"
4016 esac
4019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4020 if test -n "$MAGIC_CMD"; then
4021 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4022 echo "${ECHO_T}$MAGIC_CMD" >&6
4023 else
4024 echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6
4028 else
4029 MAGIC_CMD=:
4035 esac
4037 if test -n "$ac_tool_prefix"; then
4038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4039 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_RANLIB+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 if test -n "$RANLIB"; then
4046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 break 2
4059 done
4060 done
4064 RANLIB=$ac_cv_prog_RANLIB
4065 if test -n "$RANLIB"; then
4066 echo "$as_me:$LINENO: result: $RANLIB" >&5
4067 echo "${ECHO_T}$RANLIB" >&6
4068 else
4069 echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4074 if test -z "$ac_cv_prog_RANLIB"; then
4075 ac_ct_RANLIB=$RANLIB
4076 # Extract the first word of "ranlib", so it can be a program name with args.
4077 set dummy ranlib; ac_word=$2
4078 echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083 if test -n "$ac_ct_RANLIB"; then
4084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093 ac_cv_prog_ac_ct_RANLIB="ranlib"
4094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4097 done
4098 done
4100 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4104 if test -n "$ac_ct_RANLIB"; then
4105 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4106 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4107 else
4108 echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4112 RANLIB=$ac_ct_RANLIB
4113 else
4114 RANLIB="$ac_cv_prog_RANLIB"
4117 if test -n "$ac_tool_prefix"; then
4118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4119 set dummy ${ac_tool_prefix}strip; ac_word=$2
4120 echo "$as_me:$LINENO: checking for $ac_word" >&5
4121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122 if test "${ac_cv_prog_STRIP+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 if test -n "$STRIP"; then
4126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4139 done
4140 done
4144 STRIP=$ac_cv_prog_STRIP
4145 if test -n "$STRIP"; then
4146 echo "$as_me:$LINENO: result: $STRIP" >&5
4147 echo "${ECHO_T}$STRIP" >&6
4148 else
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4154 if test -z "$ac_cv_prog_STRIP"; then
4155 ac_ct_STRIP=$STRIP
4156 # Extract the first word of "strip", so it can be a program name with args.
4157 set dummy strip; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 if test -n "$ac_ct_STRIP"; then
4164 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_STRIP="strip"
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4180 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4183 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4184 if test -n "$ac_ct_STRIP"; then
4185 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4186 echo "${ECHO_T}$ac_ct_STRIP" >&6
4187 else
4188 echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4192 STRIP=$ac_ct_STRIP
4193 else
4194 STRIP="$ac_cv_prog_STRIP"
4198 # Check for any special flags to pass to ltconfig.
4199 libtool_flags="--cache-file=$cache_file"
4200 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4201 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4202 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4203 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4204 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4207 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4208 if test "${enable_libtool_lock+set}" = set; then
4209 enableval="$enable_libtool_lock"
4212 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4213 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4216 # Check whether --with-pic or --without-pic was given.
4217 if test "${with_pic+set}" = set; then
4218 withval="$with_pic"
4219 pic_mode="$withval"
4220 else
4221 pic_mode=default
4223 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4224 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4226 # Some flags need to be propagated to the compiler or linker for good
4227 # libtool support.
4228 case $host in
4229 *-*-irix6*)
4230 # Find out which ABI we are using.
4231 echo '#line 4231 "configure"' > conftest.$ac_ext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233 (eval $ac_compile) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; then
4237 if test "$lt_cv_prog_gnu_ld" = yes; then
4238 case `/usr/bin/file conftest.$ac_objext` in
4239 *32-bit*)
4240 LD="${LD-ld} -melf32bsmip"
4242 *N32*)
4243 LD="${LD-ld} -melf32bmipn32"
4245 *64-bit*)
4246 LD="${LD-ld} -melf64bmip"
4248 esac
4249 else
4250 case `/usr/bin/file conftest.$ac_objext` in
4251 *32-bit*)
4252 LD="${LD-ld} -32"
4254 *N32*)
4255 LD="${LD-ld} -n32"
4257 *64-bit*)
4258 LD="${LD-ld} -64"
4260 esac
4263 rm -rf conftest*
4266 ia64-*-hpux*)
4267 # Find out which ABI we are using.
4268 echo 'int i;' > conftest.$ac_ext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; then
4274 case "`/usr/bin/file conftest.o`" in
4275 *ELF-32*)
4276 HPUX_IA64_MODE="32"
4278 *ELF-64*)
4279 HPUX_IA64_MODE="64"
4281 esac
4283 rm -rf conftest*
4286 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4287 # Find out which ABI we are using.
4288 echo 'int i;' > conftest.$ac_ext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4290 (eval $ac_compile) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; then
4294 case "`/usr/bin/file conftest.o`" in
4295 *32-bit*)
4296 case $host in
4297 x86_64-*linux*)
4298 LD="${LD-ld} -m elf_i386"
4300 ppc64-*linux*|powerpc64-*linux*)
4301 LD="${LD-ld} -m elf32ppclinux"
4303 s390x-*linux*)
4304 LD="${LD-ld} -m elf_s390"
4306 sparc64-*linux*)
4307 LD="${LD-ld} -m elf32_sparc"
4309 esac
4311 *64-bit*)
4312 case $host in
4313 x86_64-*linux*)
4314 LD="${LD-ld} -m elf_x86_64"
4316 ppc*-*linux*|powerpc*-*linux*)
4317 LD="${LD-ld} -m elf64ppc"
4319 s390*-*linux*)
4320 LD="${LD-ld} -m elf64_s390"
4322 sparc*-*linux*)
4323 LD="${LD-ld} -m elf64_sparc"
4325 esac
4327 esac
4329 rm -rf conftest*
4332 *-*-sco3.2v5*)
4333 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4334 SAVE_CFLAGS="$CFLAGS"
4335 CFLAGS="$CFLAGS -belf"
4336 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4337 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4338 if test "${lt_cv_cc_needs_belf+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h. */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4357 main ()
4361 return 0;
4363 _ACEOF
4364 rm -f conftest.$ac_objext conftest$ac_exeext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4366 (eval $ac_link) 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_c_werror_flag"
4374 || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest$ac_exeext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 lt_cv_cc_needs_belf=yes
4387 else
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4391 lt_cv_cc_needs_belf=no
4393 rm -f conftest.err conftest.$ac_objext \
4394 conftest$ac_exeext conftest.$ac_ext
4395 ac_ext=c
4396 ac_cpp='$CPP $CPPFLAGS'
4397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4403 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4404 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4405 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4406 CFLAGS="$SAVE_CFLAGS"
4411 esac
4414 # Save cache, so that ltconfig can load it
4415 cat >confcache <<\_ACEOF
4416 # This file is a shell script that caches the results of configure
4417 # tests run on this system so they can be shared between configure
4418 # scripts and configure runs, see configure's option --config-cache.
4419 # It is not useful on other systems. If it contains results you don't
4420 # want to keep, you may remove or edit it.
4422 # config.status only pays attention to the cache file if you give it
4423 # the --recheck option to rerun configure.
4425 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4427 # following values.
4429 _ACEOF
4431 # The following way of writing the cache mishandles newlines in values,
4432 # but we know of no workaround that is simple, portable, and efficient.
4433 # So, don't put newlines in cache variables' values.
4434 # Ultrix sh set writes to stderr and can't be redirected directly,
4435 # and sets the high bit in the cache file unless we assign to the vars.
4437 (set) 2>&1 |
4438 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4439 *ac_space=\ *)
4440 # `set' does not quote correctly, so add quotes (double-quote
4441 # substitution turns \\\\ into \\, and sed turns \\ into \).
4442 sed -n \
4443 "s/'/'\\\\''/g;
4444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4447 # `set' quotes correctly as required by POSIX, so do not add quotes.
4448 sed -n \
4449 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4451 esac;
4453 sed '
4454 t clear
4455 : clear
4456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4457 t end
4458 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4459 : end' >>confcache
4460 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4461 if test -w $cache_file; then
4462 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4463 cat confcache >$cache_file
4464 else
4465 echo "not updating unwritable cache $cache_file"
4468 rm -f confcache
4470 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4471 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4472 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4473 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4474 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4475 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4476 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4477 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4478 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4479 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4480 echo "$as_me: error: libtool configure failed" >&2;}
4481 { (exit 1); exit 1; }; }
4483 # Reload cache, that may have been modified by ltconfig
4484 if test -r "$cache_file"; then
4485 # Some versions of bash will fail to source /dev/null (special
4486 # files actually), so we avoid doing that.
4487 if test -f "$cache_file"; then
4488 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4489 echo "$as_me: loading cache $cache_file" >&6;}
4490 case $cache_file in
4491 [\\/]* | ?:[\\/]* ) . $cache_file;;
4492 *) . ./$cache_file;;
4493 esac
4495 else
4496 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4497 echo "$as_me: creating cache $cache_file" >&6;}
4498 >$cache_file
4502 # This can be used to rebuild libtool when needed
4503 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4505 # Always use our own libtool.
4506 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4508 # Redirect the config.log output again, so that the ltconfig log is not
4509 # clobbered by the next message.
4510 exec 5>>./config.log
4520 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4521 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4522 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4523 if test "${enable_maintainer_mode+set}" = set; then
4524 enableval="$enable_maintainer_mode"
4525 USE_MAINTAINER_MODE=$enableval
4526 else
4527 USE_MAINTAINER_MODE=no
4529 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4530 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4533 if test $USE_MAINTAINER_MODE = yes; then
4534 MAINTAINER_MODE_TRUE=
4535 MAINTAINER_MODE_FALSE='#'
4536 else
4537 MAINTAINER_MODE_TRUE='#'
4538 MAINTAINER_MODE_FALSE=
4541 MAINT=$MAINTAINER_MODE_TRUE
4545 # We need gfortran to compile parts of the library
4546 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4547 #AC_PROG_FC(gfortran)
4548 FC="$GFORTRAN"
4549 ac_ext=${FC_SRCEXT-f}
4550 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4551 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4553 if test -n "$ac_tool_prefix"; then
4554 for ac_prog in gfortran
4556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_FC+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 if test -n "$FC"; then
4564 ac_cv_prog_FC="$FC" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4582 FC=$ac_cv_prog_FC
4583 if test -n "$FC"; then
4584 echo "$as_me:$LINENO: result: $FC" >&5
4585 echo "${ECHO_T}$FC" >&6
4586 else
4587 echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4591 test -n "$FC" && break
4592 done
4594 if test -z "$FC"; then
4595 ac_ct_FC=$FC
4596 for ac_prog in gfortran
4598 # Extract the first word of "$ac_prog", so it can be a program name with args.
4599 set dummy $ac_prog; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if test -n "$ac_ct_FC"; then
4606 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_ac_ct_FC="$ac_prog"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4619 done
4620 done
4624 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4625 if test -n "$ac_ct_FC"; then
4626 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4627 echo "${ECHO_T}$ac_ct_FC" >&6
4628 else
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4633 test -n "$ac_ct_FC" && break
4634 done
4636 FC=$ac_ct_FC
4640 # Provide some information about the compiler.
4641 echo "$as_me:4641:" \
4642 "checking for Fortran compiler version" >&5
4643 ac_compiler=`set X $ac_compile; echo $2`
4644 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4645 (eval $ac_compiler --version </dev/null >&5) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }
4649 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4650 (eval $ac_compiler -v </dev/null >&5) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }
4654 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4655 (eval $ac_compiler -V </dev/null >&5) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }
4659 rm -f a.out
4661 # If we don't use `.F' as extension, the preprocessor is not run on the
4662 # input file. (Note that this only needs to work for GNU compilers.)
4663 ac_save_ext=$ac_ext
4664 ac_ext=F
4665 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4666 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4667 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670 cat >conftest.$ac_ext <<_ACEOF
4671 program main
4672 #ifndef __GNUC__
4673 choke me
4674 #endif
4677 _ACEOF
4678 rm -f conftest.$ac_objext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>conftest.er1
4681 ac_status=$?
4682 grep -v '^ *+' conftest.er1 >conftest.err
4683 rm -f conftest.er1
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } &&
4687 { ac_try='test -z "$ac_fc_werror_flag"
4688 || test ! -s conftest.err'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; } &&
4694 { ac_try='test -s conftest.$ac_objext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 ac_compiler_gnu=yes
4701 else
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 ac_compiler_gnu=no
4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4711 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4712 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4713 ac_ext=$ac_save_ext
4714 ac_test_FFLAGS=${FCFLAGS+set}
4715 ac_save_FFLAGS=$FCFLAGS
4716 FCFLAGS=
4717 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4718 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4719 if test "${ac_cv_prog_fc_g+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 FCFLAGS=-g
4723 cat >conftest.$ac_ext <<_ACEOF
4724 program main
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730 (eval $ac_compile) 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -z "$ac_fc_werror_flag"
4738 || test ! -s conftest.err'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4750 ac_cv_prog_fc_g=yes
4751 else
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 ac_cv_prog_fc_g=no
4757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4761 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4762 if test "$ac_test_FFLAGS" = set; then
4763 FCFLAGS=$ac_save_FFLAGS
4764 elif test $ac_cv_prog_fc_g = yes; then
4765 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4766 FCFLAGS="-g -O2"
4767 else
4768 FCFLAGS="-g"
4770 else
4771 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4772 FCFLAGS="-O2"
4773 else
4774 FCFLAGS=
4778 ac_ext=c
4779 ac_cpp='$CPP $CPPFLAGS'
4780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784 FCFLAGS="$FCFLAGS -Wall"
4786 # For libtool versioning info, format is CURRENT:REVISION:AGE
4787 libtool_VERSION=1:0:0
4790 # Check header files.
4791 ac_ext=c
4792 ac_cpp='$CPP $CPPFLAGS'
4793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4797 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4798 # On Suns, sometimes $CPP names a directory.
4799 if test -n "$CPP" && test -d "$CPP"; then
4800 CPP=
4802 if test -z "$CPP"; then
4803 if test "${ac_cv_prog_CPP+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 # Double quotes because CPP needs to be expanded
4807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4809 ac_preproc_ok=false
4810 for ac_c_preproc_warn_flag in '' yes
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h. */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 #ifdef __STDC__
4825 # include <limits.h>
4826 #else
4827 # include <assert.h>
4828 #endif
4829 Syntax error
4830 _ACEOF
4831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } >/dev/null; then
4839 if test -s conftest.err; then
4840 ac_cpp_err=$ac_c_preproc_warn_flag
4841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4842 else
4843 ac_cpp_err=
4845 else
4846 ac_cpp_err=yes
4848 if test -z "$ac_cpp_err"; then
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 # Broken: fails on valid input.
4855 continue
4857 rm -f conftest.err conftest.$ac_ext
4859 # OK, works on sane cases. Now check whether non-existent headers
4860 # can be detected and how.
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #include <ac_nonexistent.h>
4868 _ACEOF
4869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4871 ac_status=$?
4872 grep -v '^ *+' conftest.er1 >conftest.err
4873 rm -f conftest.er1
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } >/dev/null; then
4877 if test -s conftest.err; then
4878 ac_cpp_err=$ac_c_preproc_warn_flag
4879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4880 else
4881 ac_cpp_err=
4883 else
4884 ac_cpp_err=yes
4886 if test -z "$ac_cpp_err"; then
4887 # Broken: success on invalid input.
4888 continue
4889 else
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4893 # Passes both tests.
4894 ac_preproc_ok=:
4895 break
4897 rm -f conftest.err conftest.$ac_ext
4899 done
4900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 rm -f conftest.err conftest.$ac_ext
4902 if $ac_preproc_ok; then
4903 break
4906 done
4907 ac_cv_prog_CPP=$CPP
4910 CPP=$ac_cv_prog_CPP
4911 else
4912 ac_cv_prog_CPP=$CPP
4914 echo "$as_me:$LINENO: result: $CPP" >&5
4915 echo "${ECHO_T}$CPP" >&6
4916 ac_preproc_ok=false
4917 for ac_c_preproc_warn_flag in '' yes
4919 # Use a header file that comes with gcc, so configuring glibc
4920 # with a fresh cross-compiler works.
4921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4922 # <limits.h> exists even on freestanding compilers.
4923 # On the NeXT, cc -E runs the code through the compiler's parser,
4924 # not just through cpp. "Syntax error" is here to catch this case.
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 #ifdef __STDC__
4932 # include <limits.h>
4933 #else
4934 # include <assert.h>
4935 #endif
4936 Syntax error
4937 _ACEOF
4938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } >/dev/null; then
4946 if test -s conftest.err; then
4947 ac_cpp_err=$ac_c_preproc_warn_flag
4948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4949 else
4950 ac_cpp_err=
4952 else
4953 ac_cpp_err=yes
4955 if test -z "$ac_cpp_err"; then
4957 else
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.$ac_ext >&5
4961 # Broken: fails on valid input.
4962 continue
4964 rm -f conftest.err conftest.$ac_ext
4966 # OK, works on sane cases. Now check whether non-existent headers
4967 # can be detected and how.
4968 cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h. */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4974 #include <ac_nonexistent.h>
4975 _ACEOF
4976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } >/dev/null; then
4984 if test -s conftest.err; then
4985 ac_cpp_err=$ac_c_preproc_warn_flag
4986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4987 else
4988 ac_cpp_err=
4990 else
4991 ac_cpp_err=yes
4993 if test -z "$ac_cpp_err"; then
4994 # Broken: success on invalid input.
4995 continue
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 # Passes both tests.
5001 ac_preproc_ok=:
5002 break
5004 rm -f conftest.err conftest.$ac_ext
5006 done
5007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5008 rm -f conftest.err conftest.$ac_ext
5009 if $ac_preproc_ok; then
5011 else
5012 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5013 See \`config.log' for more details." >&5
5014 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5015 See \`config.log' for more details." >&2;}
5016 { (exit 1); exit 1; }; }
5019 ac_ext=c
5020 ac_cpp='$CPP $CPPFLAGS'
5021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026 echo "$as_me:$LINENO: checking for egrep" >&5
5027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5028 if test "${ac_cv_prog_egrep+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5032 then ac_cv_prog_egrep='grep -E'
5033 else ac_cv_prog_egrep='egrep'
5036 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5037 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5038 EGREP=$ac_cv_prog_egrep
5041 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5043 if test "${ac_cv_header_stdc+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <stdlib.h>
5053 #include <stdarg.h>
5054 #include <string.h>
5055 #include <float.h>
5058 main ()
5062 return 0;
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 ac_cv_header_stdc=yes
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 ac_cv_header_stdc=no
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 if test $ac_cv_header_stdc = yes; then
5097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5098 cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h. */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 #include <string.h>
5106 _ACEOF
5107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5108 $EGREP "memchr" >/dev/null 2>&1; then
5110 else
5111 ac_cv_header_stdc=no
5113 rm -f conftest*
5117 if test $ac_cv_header_stdc = yes; then
5118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #include <stdlib.h>
5127 _ACEOF
5128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5129 $EGREP "free" >/dev/null 2>&1; then
5131 else
5132 ac_cv_header_stdc=no
5134 rm -f conftest*
5138 if test $ac_cv_header_stdc = yes; then
5139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5140 if test "$cross_compiling" = yes; then
5142 else
5143 cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h. */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 #include <ctype.h>
5150 #if ((' ' & 0x0FF) == 0x020)
5151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5153 #else
5154 # define ISLOWER(c) \
5155 (('a' <= (c) && (c) <= 'i') \
5156 || ('j' <= (c) && (c) <= 'r') \
5157 || ('s' <= (c) && (c) <= 'z'))
5158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5159 #endif
5161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5163 main ()
5165 int i;
5166 for (i = 0; i < 256; i++)
5167 if (XOR (islower (i), ISLOWER (i))
5168 || toupper (i) != TOUPPER (i))
5169 exit(2);
5170 exit (0);
5172 _ACEOF
5173 rm -f conftest$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175 (eval $ac_link) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5185 else
5186 echo "$as_me: program exited with status $ac_status" >&5
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 ( exit $ac_status )
5191 ac_cv_header_stdc=no
5193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5199 if test $ac_cv_header_stdc = yes; then
5201 cat >>confdefs.h <<\_ACEOF
5202 #define STDC_HEADERS 1
5203 _ACEOF
5207 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5208 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5209 if test "${ac_cv_header_time+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 #include <sys/types.h>
5219 #include <sys/time.h>
5220 #include <time.h>
5223 main ()
5225 if ((struct tm *) 0)
5226 return 0;
5228 return 0;
5230 _ACEOF
5231 rm -f conftest.$ac_objext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>conftest.er1
5234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
5240 { ac_try='test -z "$ac_c_werror_flag"
5241 || test ! -s conftest.err'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; } &&
5247 { ac_try='test -s conftest.$ac_objext'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; }; then
5253 ac_cv_header_time=yes
5254 else
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5258 ac_cv_header_time=no
5260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5262 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5263 echo "${ECHO_T}$ac_cv_header_time" >&6
5264 if test $ac_cv_header_time = yes; then
5266 cat >>confdefs.h <<\_ACEOF
5267 #define TIME_WITH_SYS_TIME 1
5268 _ACEOF
5272 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5282 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5283 inttypes.h stdint.h unistd.h
5285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5286 echo "$as_me:$LINENO: checking for $ac_header" >&5
5287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5299 #include <$ac_header>
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_c_werror_flag"
5311 || test ! -s conftest.err'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 eval "$as_ac_Header=yes"
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 eval "$as_ac_Header=no"
5330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5335 cat >>confdefs.h <<_ACEOF
5336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5337 _ACEOF
5341 done
5348 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h
5350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5352 echo "$as_me:$LINENO: checking for $ac_header" >&5
5353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359 else
5360 # Is the header compilable?
5361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 $ac_includes_default
5370 #include <$ac_header>
5371 _ACEOF
5372 rm -f conftest.$ac_objext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374 (eval $ac_compile) 2>conftest.er1
5375 ac_status=$?
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -z "$ac_c_werror_flag"
5382 || test ! -s conftest.err'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 (eval $ac_try) 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; } &&
5388 { ac_try='test -s conftest.$ac_objext'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 (eval $ac_try) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 ac_header_compiler=yes
5395 else
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5399 ac_header_compiler=no
5401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5403 echo "${ECHO_T}$ac_header_compiler" >&6
5405 # Is the header present?
5406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 #include <$ac_header>
5415 _ACEOF
5416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } >/dev/null; then
5424 if test -s conftest.err; then
5425 ac_cpp_err=$ac_c_preproc_warn_flag
5426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5427 else
5428 ac_cpp_err=
5430 else
5431 ac_cpp_err=yes
5433 if test -z "$ac_cpp_err"; then
5434 ac_header_preproc=yes
5435 else
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 ac_header_preproc=no
5441 rm -f conftest.err conftest.$ac_ext
5442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5443 echo "${ECHO_T}$ac_header_preproc" >&6
5445 # So? What about this header?
5446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5447 yes:no: )
5448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5452 ac_header_preproc=yes
5454 no:yes:* )
5455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5468 cat <<\_ASBOX
5469 ## ----------------------------------------------------- ##
5470 ## Report this to the GNU OpenMP Runtime Library lists. ##
5471 ## ----------------------------------------------------- ##
5472 _ASBOX
5474 sed "s/^/$as_me: WARNING: /" >&2
5476 esac
5477 echo "$as_me:$LINENO: checking for $ac_header" >&5
5478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482 eval "$as_ac_Header=\$ac_header_preproc"
5484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5489 cat >>confdefs.h <<_ACEOF
5490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5491 _ACEOF
5495 done
5497 if test "${ac_cv_header_pthread_h+set}" = set; then
5498 echo "$as_me:$LINENO: checking for pthread.h" >&5
5499 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5500 if test "${ac_cv_header_pthread_h+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5504 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5505 else
5506 # Is the header compilable?
5507 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5508 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5509 cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h. */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515 $ac_includes_default
5516 #include <pthread.h>
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5520 (eval $ac_compile) 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -z "$ac_c_werror_flag"
5528 || test ! -s conftest.err'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; } &&
5534 { ac_try='test -s conftest.$ac_objext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 ac_header_compiler=yes
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 ac_header_compiler=no
5547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5549 echo "${ECHO_T}$ac_header_compiler" >&6
5551 # Is the header present?
5552 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5553 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h. */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560 #include <pthread.h>
5561 _ACEOF
5562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } >/dev/null; then
5570 if test -s conftest.err; then
5571 ac_cpp_err=$ac_c_preproc_warn_flag
5572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5573 else
5574 ac_cpp_err=
5576 else
5577 ac_cpp_err=yes
5579 if test -z "$ac_cpp_err"; then
5580 ac_header_preproc=yes
5581 else
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5585 ac_header_preproc=no
5587 rm -f conftest.err conftest.$ac_ext
5588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5589 echo "${ECHO_T}$ac_header_preproc" >&6
5591 # So? What about this header?
5592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5593 yes:no: )
5594 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5595 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
5597 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
5598 ac_header_preproc=yes
5600 no:yes:* )
5601 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5602 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5603 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5604 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5605 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
5606 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
5607 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
5608 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
5609 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5610 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5611 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
5612 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
5614 cat <<\_ASBOX
5615 ## ----------------------------------------------------- ##
5616 ## Report this to the GNU OpenMP Runtime Library lists. ##
5617 ## ----------------------------------------------------- ##
5618 _ASBOX
5620 sed "s/^/$as_me: WARNING: /" >&2
5622 esac
5623 echo "$as_me:$LINENO: checking for pthread.h" >&5
5624 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5625 if test "${ac_cv_header_pthread_h+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628 ac_cv_header_pthread_h=$ac_header_preproc
5630 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5631 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5634 if test $ac_cv_header_pthread_h = yes; then
5636 else
5637 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
5638 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
5639 { (exit 1); exit 1; }; }
5646 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
5648 acx_cv_header_stdint=stddef.h
5649 acx_cv_header_stdint_kind="(already complete)"
5650 for i in stdint.h $inttype_headers; do
5651 unset ac_cv_type_uintptr_t
5652 unset ac_cv_type_uintmax_t
5653 unset ac_cv_type_int_least32_t
5654 unset ac_cv_type_int_fast32_t
5655 unset ac_cv_type_uint64_t
5656 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
5657 echo "$as_me:$LINENO: checking for uintmax_t" >&5
5658 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
5659 if test "${ac_cv_type_uintmax_t+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662 cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h. */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 #include <sys/types.h>
5669 #include <$i>
5672 main ()
5674 if ((uintmax_t *) 0)
5675 return 0;
5676 if (sizeof (uintmax_t))
5677 return 0;
5679 return 0;
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5684 (eval $ac_compile) 2>conftest.er1
5685 ac_status=$?
5686 grep -v '^ *+' conftest.er1 >conftest.err
5687 rm -f conftest.er1
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } &&
5691 { ac_try='test -z "$ac_c_werror_flag"
5692 || test ! -s conftest.err'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; } &&
5698 { ac_try='test -s conftest.$ac_objext'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 (eval $ac_try) 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; }; then
5704 ac_cv_type_uintmax_t=yes
5705 else
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5709 ac_cv_type_uintmax_t=no
5711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5713 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
5714 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
5715 if test $ac_cv_type_uintmax_t = yes; then
5716 acx_cv_header_stdint=$i
5717 else
5718 continue
5721 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5722 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5723 if test "${ac_cv_type_uintptr_t+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h. */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <sys/types.h>
5733 #include <$i>
5736 main ()
5738 if ((uintptr_t *) 0)
5739 return 0;
5740 if (sizeof (uintptr_t))
5741 return 0;
5743 return 0;
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag"
5756 || test ! -s conftest.err'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 (eval $ac_try) 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; } &&
5762 { ac_try='test -s conftest.$ac_objext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764 (eval $ac_try) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 ac_cv_type_uintptr_t=yes
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 ac_cv_type_uintptr_t=no
5775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5777 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5778 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5779 if test $ac_cv_type_uintptr_t = yes; then
5781 else
5782 acx_cv_header_stdint_kind="(mostly complete)"
5785 echo "$as_me:$LINENO: checking for int_least32_t" >&5
5786 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
5787 if test "${ac_cv_type_int_least32_t+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h. */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 #include <sys/types.h>
5797 #include <$i>
5800 main ()
5802 if ((int_least32_t *) 0)
5803 return 0;
5804 if (sizeof (int_least32_t))
5805 return 0;
5807 return 0;
5809 _ACEOF
5810 rm -f conftest.$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>conftest.er1
5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try='test -z "$ac_c_werror_flag"
5820 || test ! -s conftest.err'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
5832 ac_cv_type_int_least32_t=yes
5833 else
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 ac_cv_type_int_least32_t=no
5839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5841 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
5842 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
5843 if test $ac_cv_type_int_least32_t = yes; then
5845 else
5846 acx_cv_header_stdint_kind="(mostly complete)"
5849 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
5850 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
5851 if test "${ac_cv_type_int_fast32_t+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854 cat >conftest.$ac_ext <<_ACEOF
5855 /* confdefs.h. */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 #include <sys/types.h>
5861 #include <$i>
5864 main ()
5866 if ((int_fast32_t *) 0)
5867 return 0;
5868 if (sizeof (int_fast32_t))
5869 return 0;
5871 return 0;
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try='test -z "$ac_c_werror_flag"
5884 || test ! -s conftest.err'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 (eval $ac_try) 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; } &&
5890 { ac_try='test -s conftest.$ac_objext'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5896 ac_cv_type_int_fast32_t=yes
5897 else
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5901 ac_cv_type_int_fast32_t=no
5903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5905 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
5906 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
5907 if test $ac_cv_type_int_fast32_t = yes; then
5909 else
5910 acx_cv_header_stdint_kind="(mostly complete)"
5913 echo "$as_me:$LINENO: checking for uint64_t" >&5
5914 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5915 if test "${ac_cv_type_uint64_t+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5924 #include <sys/types.h>
5925 #include <$i>
5928 main ()
5930 if ((uint64_t *) 0)
5931 return 0;
5932 if (sizeof (uint64_t))
5933 return 0;
5935 return 0;
5937 _ACEOF
5938 rm -f conftest.$ac_objext
5939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940 (eval $ac_compile) 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -z "$ac_c_werror_flag"
5948 || test ! -s conftest.err'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; } &&
5954 { ac_try='test -s conftest.$ac_objext'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 ac_cv_type_uint64_t=yes
5961 else
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5965 ac_cv_type_uint64_t=no
5967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5969 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5970 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5971 if test $ac_cv_type_uint64_t = yes; then
5973 else
5974 acx_cv_header_stdint_kind="(lacks uint64_t)"
5977 break
5978 done
5979 if test "$acx_cv_header_stdint" = stddef.h; then
5980 acx_cv_header_stdint_kind="(lacks uintptr_t)"
5981 for i in stdint.h $inttype_headers; do
5982 unset ac_cv_type_uint32_t
5983 unset ac_cv_type_uint64_t
5984 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
5985 echo "$as_me:$LINENO: checking for uint32_t" >&5
5986 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5987 if test "${ac_cv_type_uint32_t+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h. */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #include <sys/types.h>
5997 #include <$i>
6000 main ()
6002 if ((uint32_t *) 0)
6003 return 0;
6004 if (sizeof (uint32_t))
6005 return 0;
6007 return 0;
6009 _ACEOF
6010 rm -f conftest.$ac_objext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012 (eval $ac_compile) 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag"
6020 || test ! -s conftest.err'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest.$ac_objext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_type_uint32_t=yes
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 ac_cv_type_uint32_t=no
6039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6042 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6043 if test $ac_cv_type_uint32_t = yes; then
6044 acx_cv_header_stdint=$i
6045 else
6046 continue
6049 echo "$as_me:$LINENO: checking for uint64_t" >&5
6050 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6051 if test "${ac_cv_type_uint64_t+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h. */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 #include <sys/types.h>
6061 #include <$i>
6064 main ()
6066 if ((uint64_t *) 0)
6067 return 0;
6068 if (sizeof (uint64_t))
6069 return 0;
6071 return 0;
6073 _ACEOF
6074 rm -f conftest.$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag"
6084 || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_type_uint64_t=yes
6097 else
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 ac_cv_type_uint64_t=no
6103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6106 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6107 if test $ac_cv_type_uint64_t = yes; then
6109 else
6110 acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)"
6113 break
6114 done
6116 if test "$acx_cv_header_stdint" = stddef.h; then
6117 acx_cv_header_stdint_kind="(u_intXX_t style)"
6118 for i in sys/types.h $inttype_headers; do
6119 unset ac_cv_type_u_int32_t
6120 unset ac_cv_type_u_int64_t
6121 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
6122 echo "$as_me:$LINENO: checking for u_int32_t" >&5
6123 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6124 if test "${ac_cv_type_u_int32_t+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #include <sys/types.h>
6134 #include <$i>
6137 main ()
6139 if ((u_int32_t *) 0)
6140 return 0;
6141 if (sizeof (u_int32_t))
6142 return 0;
6144 return 0;
6146 _ACEOF
6147 rm -f conftest.$ac_objext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149 (eval $ac_compile) 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -z "$ac_c_werror_flag"
6157 || test ! -s conftest.err'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; } &&
6163 { ac_try='test -s conftest.$ac_objext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_type_u_int32_t=yes
6170 else
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 ac_cv_type_u_int32_t=no
6176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6178 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6179 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6180 if test $ac_cv_type_u_int32_t = yes; then
6181 acx_cv_header_stdint=$i
6182 else
6183 continue
6186 echo "$as_me:$LINENO: checking for u_int64_t" >&5
6187 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6188 if test "${ac_cv_type_u_int64_t+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include <sys/types.h>
6198 #include <$i>
6201 main ()
6203 if ((u_int64_t *) 0)
6204 return 0;
6205 if (sizeof (u_int64_t))
6206 return 0;
6208 return 0;
6210 _ACEOF
6211 rm -f conftest.$ac_objext
6212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6213 (eval $ac_compile) 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -z "$ac_c_werror_flag"
6221 || test ! -s conftest.err'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 (eval $ac_try) 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; } &&
6227 { ac_try='test -s conftest.$ac_objext'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 ac_cv_type_u_int64_t=yes
6234 else
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 ac_cv_type_u_int64_t=no
6240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6242 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6243 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6244 if test $ac_cv_type_u_int64_t = yes; then
6246 else
6247 acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)"
6250 break
6251 done
6253 if test "$acx_cv_header_stdint" = stddef.h; then
6254 acx_cv_header_stdint_kind="(using manual detection)"
6257 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
6258 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
6259 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
6260 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
6261 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
6263 # ----------------- Summarize what we found so far
6265 echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5
6266 echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6
6268 case `$as_basename gstdint.h ||
6269 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
6270 Xgstdint.h : 'X\(//\)$' \| \
6271 Xgstdint.h : 'X\(/\)$' \| \
6272 . : '\(.\)' 2>/dev/null ||
6273 echo X/gstdint.h |
6274 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6275 /^X\/\(\/\/\)$/{ s//\1/; q; }
6276 /^X\/\(\/\).*/{ s//\1/; q; }
6277 s/.*/./; q'` in
6278 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6279 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6280 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
6281 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
6282 *) ;;
6283 esac
6285 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
6286 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
6288 # ----------------- done included file, check C basic types --------
6290 # Lacking an uintptr_t? Test size of void *
6291 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
6292 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
6293 echo $ECHO_N "checking for void *... $ECHO_C" >&6
6294 if test "${ac_cv_type_void_p+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 $ac_includes_default
6305 main ()
6307 if ((void * *) 0)
6308 return 0;
6309 if (sizeof (void *))
6310 return 0;
6312 return 0;
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag"
6325 || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 ac_cv_type_void_p=yes
6338 else
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6342 ac_cv_type_void_p=no
6344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
6347 echo "${ECHO_T}$ac_cv_type_void_p" >&6
6349 echo "$as_me:$LINENO: checking size of void *" >&5
6350 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
6351 if test "${ac_cv_sizeof_void_p+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354 if test "$ac_cv_type_void_p" = yes; then
6355 # The cast to unsigned long works around a bug in the HP C Compiler
6356 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6357 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6358 # This bug is HP SR number 8606223364.
6359 if test "$cross_compiling" = yes; then
6360 # Depending upon the size, compute the lo and hi bounds.
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 $ac_includes_default
6369 main ()
6371 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
6372 test_array [0] = 0
6375 return 0;
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try='test -z "$ac_c_werror_flag"
6388 || test ! -s conftest.err'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 (eval $ac_try) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_lo=0 ac_mid=0
6401 while :; do
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 $ac_includes_default
6410 main ()
6412 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6413 test_array [0] = 0
6416 return 0;
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421 (eval $ac_compile) 2>conftest.er1
6422 ac_status=$?
6423 grep -v '^ *+' conftest.er1 >conftest.err
6424 rm -f conftest.er1
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try='test -z "$ac_c_werror_flag"
6429 || test ! -s conftest.err'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 (eval $ac_try) 2>&5
6432 ac_status=$?
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; } &&
6435 { ac_try='test -s conftest.$ac_objext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 (eval $ac_try) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6441 ac_hi=$ac_mid; break
6442 else
6443 echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6446 ac_lo=`expr $ac_mid + 1`
6447 if test $ac_lo -le $ac_mid; then
6448 ac_lo= ac_hi=
6449 break
6451 ac_mid=`expr 2 '*' $ac_mid + 1`
6453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6454 done
6455 else
6456 echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h. */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 $ac_includes_default
6467 main ()
6469 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
6470 test_array [0] = 0
6473 return 0;
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6478 (eval $ac_compile) 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -z "$ac_c_werror_flag"
6486 || test ! -s conftest.err'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; } &&
6492 { ac_try='test -s conftest.$ac_objext'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6498 ac_hi=-1 ac_mid=-1
6499 while :; do
6500 cat >conftest.$ac_ext <<_ACEOF
6501 /* confdefs.h. */
6502 _ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6506 $ac_includes_default
6508 main ()
6510 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
6511 test_array [0] = 0
6514 return 0;
6516 _ACEOF
6517 rm -f conftest.$ac_objext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6519 (eval $ac_compile) 2>conftest.er1
6520 ac_status=$?
6521 grep -v '^ *+' conftest.er1 >conftest.err
6522 rm -f conftest.er1
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -z "$ac_c_werror_flag"
6527 || test ! -s conftest.err'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 (eval $ac_try) 2>&5
6536 ac_status=$?
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_lo=$ac_mid; break
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6544 ac_hi=`expr '(' $ac_mid ')' - 1`
6545 if test $ac_mid -le $ac_hi; then
6546 ac_lo= ac_hi=
6547 break
6549 ac_mid=`expr 2 '*' $ac_mid`
6551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6552 done
6553 else
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6557 ac_lo= ac_hi=
6559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6562 # Binary search between lo and hi bounds.
6563 while test "x$ac_lo" != "x$ac_hi"; do
6564 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h. */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 $ac_includes_default
6573 main ()
6575 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
6576 test_array [0] = 0
6579 return 0;
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
6591 { ac_try='test -z "$ac_c_werror_flag"
6592 || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_hi=$ac_mid
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 ac_lo=`expr '(' $ac_mid ')' + 1`
6611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6612 done
6613 case $ac_lo in
6614 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6615 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6616 See \`config.log' for more details." >&5
6617 echo "$as_me: error: cannot compute sizeof (void *), 77
6618 See \`config.log' for more details." >&2;}
6619 { (exit 1); exit 1; }; } ;;
6620 esac
6621 else
6622 if test "$cross_compiling" = yes; then
6623 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6624 See \`config.log' for more details." >&5
6625 echo "$as_me: error: cannot run test program while cross compiling
6626 See \`config.log' for more details." >&2;}
6627 { (exit 1); exit 1; }; }
6628 else
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 $ac_includes_default
6636 long longval () { return (long) (sizeof (void *)); }
6637 unsigned long ulongval () { return (long) (sizeof (void *)); }
6638 #include <stdio.h>
6639 #include <stdlib.h>
6641 main ()
6644 FILE *f = fopen ("conftest.val", "w");
6645 if (! f)
6646 exit (1);
6647 if (((long) (sizeof (void *))) < 0)
6649 long i = longval ();
6650 if (i != ((long) (sizeof (void *))))
6651 exit (1);
6652 fprintf (f, "%ld\n", i);
6654 else
6656 unsigned long i = ulongval ();
6657 if (i != ((long) (sizeof (void *))))
6658 exit (1);
6659 fprintf (f, "%lu\n", i);
6661 exit (ferror (f) || fclose (f) != 0);
6664 return 0;
6666 _ACEOF
6667 rm -f conftest$ac_exeext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669 (eval $ac_link) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 (eval $ac_try) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; }; then
6678 ac_cv_sizeof_void_p=`cat conftest.val`
6679 else
6680 echo "$as_me: program exited with status $ac_status" >&5
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6684 ( exit $ac_status )
6685 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
6686 See \`config.log' for more details." >&5
6687 echo "$as_me: error: cannot compute sizeof (void *), 77
6688 See \`config.log' for more details." >&2;}
6689 { (exit 1); exit 1; }; }
6691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6694 rm -f conftest.val
6695 else
6696 ac_cv_sizeof_void_p=0
6699 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6700 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
6701 cat >>confdefs.h <<_ACEOF
6702 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6703 _ACEOF
6706 esac
6708 # Lacking an uint64_t? Test size of long
6709 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
6710 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
6711 echo $ECHO_N "checking for long... $ECHO_C" >&6
6712 if test "${ac_cv_type_long+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715 cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h. */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6721 $ac_includes_default
6723 main ()
6725 if ((long *) 0)
6726 return 0;
6727 if (sizeof (long))
6728 return 0;
6730 return 0;
6732 _ACEOF
6733 rm -f conftest.$ac_objext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735 (eval $ac_compile) 2>conftest.er1
6736 ac_status=$?
6737 grep -v '^ *+' conftest.er1 >conftest.err
6738 rm -f conftest.er1
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } &&
6742 { ac_try='test -z "$ac_c_werror_flag"
6743 || test ! -s conftest.err'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try='test -s conftest.$ac_objext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_cv_type_long=yes
6756 else
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6760 ac_cv_type_long=no
6762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6764 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6765 echo "${ECHO_T}$ac_cv_type_long" >&6
6767 echo "$as_me:$LINENO: checking size of long" >&5
6768 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6769 if test "${ac_cv_sizeof_long+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 if test "$ac_cv_type_long" = yes; then
6773 # The cast to unsigned long works around a bug in the HP C Compiler
6774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6776 # This bug is HP SR number 8606223364.
6777 if test "$cross_compiling" = yes; then
6778 # Depending upon the size, compute the lo and hi bounds.
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h. */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6787 main ()
6789 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6790 test_array [0] = 0
6793 return 0;
6795 _ACEOF
6796 rm -f conftest.$ac_objext
6797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798 (eval $ac_compile) 2>conftest.er1
6799 ac_status=$?
6800 grep -v '^ *+' conftest.er1 >conftest.err
6801 rm -f conftest.er1
6802 cat conftest.err >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } &&
6805 { ac_try='test -z "$ac_c_werror_flag"
6806 || test ! -s conftest.err'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; } &&
6812 { ac_try='test -s conftest.$ac_objext'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; }; then
6818 ac_lo=0 ac_mid=0
6819 while :; do
6820 cat >conftest.$ac_ext <<_ACEOF
6821 /* confdefs.h. */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6826 $ac_includes_default
6828 main ()
6830 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6831 test_array [0] = 0
6834 return 0;
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6839 (eval $ac_compile) 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } &&
6846 { ac_try='test -z "$ac_c_werror_flag"
6847 || test ! -s conftest.err'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; } &&
6853 { ac_try='test -s conftest.$ac_objext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 ac_hi=$ac_mid; break
6860 else
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6864 ac_lo=`expr $ac_mid + 1`
6865 if test $ac_lo -le $ac_mid; then
6866 ac_lo= ac_hi=
6867 break
6869 ac_mid=`expr 2 '*' $ac_mid + 1`
6871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872 done
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 $ac_includes_default
6885 main ()
6887 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6888 test_array [0] = 0
6891 return 0;
6893 _ACEOF
6894 rm -f conftest.$ac_objext
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -z "$ac_c_werror_flag"
6904 || test ! -s conftest.err'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; } &&
6910 { ac_try='test -s conftest.$ac_objext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916 ac_hi=-1 ac_mid=-1
6917 while :; do
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 $ac_includes_default
6926 main ()
6928 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6929 test_array [0] = 0
6932 return 0;
6934 _ACEOF
6935 rm -f conftest.$ac_objext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6937 (eval $ac_compile) 2>conftest.er1
6938 ac_status=$?
6939 grep -v '^ *+' conftest.er1 >conftest.err
6940 rm -f conftest.er1
6941 cat conftest.err >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try='test -z "$ac_c_werror_flag"
6945 || test ! -s conftest.err'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 (eval $ac_try) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try='test -s conftest.$ac_objext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 ac_lo=$ac_mid; break
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 ac_hi=`expr '(' $ac_mid ')' - 1`
6963 if test $ac_mid -le $ac_hi; then
6964 ac_lo= ac_hi=
6965 break
6967 ac_mid=`expr 2 '*' $ac_mid`
6969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6970 done
6971 else
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_lo= ac_hi=
6977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 # Binary search between lo and hi bounds.
6981 while test "x$ac_lo" != "x$ac_hi"; do
6982 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 $ac_includes_default
6991 main ()
6993 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6994 test_array [0] = 0
6997 return 0;
6999 _ACEOF
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_hi=$ac_mid
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_lo=`expr '(' $ac_mid ')' + 1`
7029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 done
7031 case $ac_lo in
7032 ?*) ac_cv_sizeof_long=$ac_lo;;
7033 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7034 See \`config.log' for more details." >&5
7035 echo "$as_me: error: cannot compute sizeof (long), 77
7036 See \`config.log' for more details." >&2;}
7037 { (exit 1); exit 1; }; } ;;
7038 esac
7039 else
7040 if test "$cross_compiling" = yes; then
7041 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7042 See \`config.log' for more details." >&5
7043 echo "$as_me: error: cannot run test program while cross compiling
7044 See \`config.log' for more details." >&2;}
7045 { (exit 1); exit 1; }; }
7046 else
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 $ac_includes_default
7054 long longval () { return (long) (sizeof (long)); }
7055 unsigned long ulongval () { return (long) (sizeof (long)); }
7056 #include <stdio.h>
7057 #include <stdlib.h>
7059 main ()
7062 FILE *f = fopen ("conftest.val", "w");
7063 if (! f)
7064 exit (1);
7065 if (((long) (sizeof (long))) < 0)
7067 long i = longval ();
7068 if (i != ((long) (sizeof (long))))
7069 exit (1);
7070 fprintf (f, "%ld\n", i);
7072 else
7074 unsigned long i = ulongval ();
7075 if (i != ((long) (sizeof (long))))
7076 exit (1);
7077 fprintf (f, "%lu\n", i);
7079 exit (ferror (f) || fclose (f) != 0);
7082 return 0;
7084 _ACEOF
7085 rm -f conftest$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>&5
7088 ac_status=$?
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 (eval $ac_try) 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 ac_cv_sizeof_long=`cat conftest.val`
7097 else
7098 echo "$as_me: program exited with status $ac_status" >&5
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 ( exit $ac_status )
7103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7104 See \`config.log' for more details." >&5
7105 echo "$as_me: error: cannot compute sizeof (long), 77
7106 See \`config.log' for more details." >&2;}
7107 { (exit 1); exit 1; }; }
7109 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7112 rm -f conftest.val
7113 else
7114 ac_cv_sizeof_long=0
7117 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7118 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7119 cat >>confdefs.h <<_ACEOF
7120 #define SIZEOF_LONG $ac_cv_sizeof_long
7121 _ACEOF
7124 esac
7126 if test $acx_cv_header_stdint = stddef.h; then
7127 # Lacking a good header? Test size of everything and deduce all types.
7128 echo "$as_me:$LINENO: checking for int" >&5
7129 echo $ECHO_N "checking for int... $ECHO_C" >&6
7130 if test "${ac_cv_type_int+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133 cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h. */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 $ac_includes_default
7141 main ()
7143 if ((int *) 0)
7144 return 0;
7145 if (sizeof (int))
7146 return 0;
7148 return 0;
7150 _ACEOF
7151 rm -f conftest.$ac_objext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -z "$ac_c_werror_flag"
7161 || test ! -s conftest.err'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; } &&
7167 { ac_try='test -s conftest.$ac_objext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 ac_cv_type_int=yes
7174 else
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7178 ac_cv_type_int=no
7180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7182 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7183 echo "${ECHO_T}$ac_cv_type_int" >&6
7185 echo "$as_me:$LINENO: checking size of int" >&5
7186 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7187 if test "${ac_cv_sizeof_int+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190 if test "$ac_cv_type_int" = yes; then
7191 # The cast to unsigned long works around a bug in the HP C Compiler
7192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7194 # This bug is HP SR number 8606223364.
7195 if test "$cross_compiling" = yes; then
7196 # Depending upon the size, compute the lo and hi bounds.
7197 cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h. */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 $ac_includes_default
7205 main ()
7207 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7208 test_array [0] = 0
7211 return 0;
7213 _ACEOF
7214 rm -f conftest.$ac_objext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216 (eval $ac_compile) 2>conftest.er1
7217 ac_status=$?
7218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
7223 { ac_try='test -z "$ac_c_werror_flag"
7224 || test ! -s conftest.err'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; } &&
7230 { ac_try='test -s conftest.$ac_objext'
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 (eval $ac_try) 2>&5
7233 ac_status=$?
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; }; then
7236 ac_lo=0 ac_mid=0
7237 while :; do
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7246 main ()
7248 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7249 test_array [0] = 0
7252 return 0;
7254 _ACEOF
7255 rm -f conftest.$ac_objext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257 (eval $ac_compile) 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -z "$ac_c_werror_flag"
7265 || test ! -s conftest.err'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267 (eval $ac_try) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; } &&
7271 { ac_try='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_hi=$ac_mid; break
7278 else
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7282 ac_lo=`expr $ac_mid + 1`
7283 if test $ac_lo -le $ac_mid; then
7284 ac_lo= ac_hi=
7285 break
7287 ac_mid=`expr 2 '*' $ac_mid + 1`
7289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7290 done
7291 else
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h. */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7303 main ()
7305 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7306 test_array [0] = 0
7309 return 0;
7311 _ACEOF
7312 rm -f conftest.$ac_objext
7313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7314 (eval $ac_compile) 2>conftest.er1
7315 ac_status=$?
7316 grep -v '^ *+' conftest.er1 >conftest.err
7317 rm -f conftest.er1
7318 cat conftest.err >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try='test -z "$ac_c_werror_flag"
7322 || test ! -s conftest.err'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; } &&
7328 { ac_try='test -s conftest.$ac_objext'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 ac_hi=-1 ac_mid=-1
7335 while :; do
7336 cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h. */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 $ac_includes_default
7344 main ()
7346 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7347 test_array [0] = 0
7350 return 0;
7352 _ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7355 (eval $ac_compile) 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } &&
7362 { ac_try='test -z "$ac_c_werror_flag"
7363 || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 (eval $ac_try) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 (eval $ac_try) 2>&5
7372 ac_status=$?
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_lo=$ac_mid; break
7376 else
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7380 ac_hi=`expr '(' $ac_mid ')' - 1`
7381 if test $ac_mid -le $ac_hi; then
7382 ac_lo= ac_hi=
7383 break
7385 ac_mid=`expr 2 '*' $ac_mid`
7387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7388 done
7389 else
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7393 ac_lo= ac_hi=
7395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398 # Binary search between lo and hi bounds.
7399 while test "x$ac_lo" != "x$ac_hi"; do
7400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7401 cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h. */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 $ac_includes_default
7409 main ()
7411 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7412 test_array [0] = 0
7415 return 0;
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } &&
7427 { ac_try='test -z "$ac_c_werror_flag"
7428 || test ! -s conftest.err'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 (eval $ac_try) 2>&5
7431 ac_status=$?
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; } &&
7434 { ac_try='test -s conftest.$ac_objext'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 (eval $ac_try) 2>&5
7437 ac_status=$?
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_hi=$ac_mid
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 ac_lo=`expr '(' $ac_mid ')' + 1`
7447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7448 done
7449 case $ac_lo in
7450 ?*) ac_cv_sizeof_int=$ac_lo;;
7451 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7452 See \`config.log' for more details." >&5
7453 echo "$as_me: error: cannot compute sizeof (int), 77
7454 See \`config.log' for more details." >&2;}
7455 { (exit 1); exit 1; }; } ;;
7456 esac
7457 else
7458 if test "$cross_compiling" = yes; then
7459 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7460 See \`config.log' for more details." >&5
7461 echo "$as_me: error: cannot run test program while cross compiling
7462 See \`config.log' for more details." >&2;}
7463 { (exit 1); exit 1; }; }
7464 else
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 $ac_includes_default
7472 long longval () { return (long) (sizeof (int)); }
7473 unsigned long ulongval () { return (long) (sizeof (int)); }
7474 #include <stdio.h>
7475 #include <stdlib.h>
7477 main ()
7480 FILE *f = fopen ("conftest.val", "w");
7481 if (! f)
7482 exit (1);
7483 if (((long) (sizeof (int))) < 0)
7485 long i = longval ();
7486 if (i != ((long) (sizeof (int))))
7487 exit (1);
7488 fprintf (f, "%ld\n", i);
7490 else
7492 unsigned long i = ulongval ();
7493 if (i != ((long) (sizeof (int))))
7494 exit (1);
7495 fprintf (f, "%lu\n", i);
7497 exit (ferror (f) || fclose (f) != 0);
7500 return 0;
7502 _ACEOF
7503 rm -f conftest$ac_exeext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7505 (eval $ac_link) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7514 ac_cv_sizeof_int=`cat conftest.val`
7515 else
7516 echo "$as_me: program exited with status $ac_status" >&5
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 ( exit $ac_status )
7521 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7522 See \`config.log' for more details." >&5
7523 echo "$as_me: error: cannot compute sizeof (int), 77
7524 See \`config.log' for more details." >&2;}
7525 { (exit 1); exit 1; }; }
7527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7530 rm -f conftest.val
7531 else
7532 ac_cv_sizeof_int=0
7535 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7536 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7537 cat >>confdefs.h <<_ACEOF
7538 #define SIZEOF_INT $ac_cv_sizeof_int
7539 _ACEOF
7542 echo "$as_me:$LINENO: checking for short" >&5
7543 echo $ECHO_N "checking for short... $ECHO_C" >&6
7544 if test "${ac_cv_type_short+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547 cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h. */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 $ac_includes_default
7555 main ()
7557 if ((short *) 0)
7558 return 0;
7559 if (sizeof (short))
7560 return 0;
7562 return 0;
7564 _ACEOF
7565 rm -f conftest.$ac_objext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } &&
7574 { ac_try='test -z "$ac_c_werror_flag"
7575 || test ! -s conftest.err'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; } &&
7581 { ac_try='test -s conftest.$ac_objext'
7582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 (eval $ac_try) 2>&5
7584 ac_status=$?
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); }; }; then
7587 ac_cv_type_short=yes
7588 else
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7592 ac_cv_type_short=no
7594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7596 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7597 echo "${ECHO_T}$ac_cv_type_short" >&6
7599 echo "$as_me:$LINENO: checking size of short" >&5
7600 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7601 if test "${ac_cv_sizeof_short+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604 if test "$ac_cv_type_short" = yes; then
7605 # The cast to unsigned long works around a bug in the HP C Compiler
7606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7608 # This bug is HP SR number 8606223364.
7609 if test "$cross_compiling" = yes; then
7610 # Depending upon the size, compute the lo and hi bounds.
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7619 main ()
7621 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7622 test_array [0] = 0
7625 return 0;
7627 _ACEOF
7628 rm -f conftest.$ac_objext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630 (eval $ac_compile) 2>conftest.er1
7631 ac_status=$?
7632 grep -v '^ *+' conftest.er1 >conftest.err
7633 rm -f conftest.er1
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } &&
7637 { ac_try='test -z "$ac_c_werror_flag"
7638 || test ! -s conftest.err'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 (eval $ac_try) 2>&5
7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; } &&
7644 { ac_try='test -s conftest.$ac_objext'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 (eval $ac_try) 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 ac_lo=0 ac_mid=0
7651 while :; do
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 $ac_includes_default
7660 main ()
7662 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7663 test_array [0] = 0
7666 return 0;
7668 _ACEOF
7669 rm -f conftest.$ac_objext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7671 (eval $ac_compile) 2>conftest.er1
7672 ac_status=$?
7673 grep -v '^ *+' conftest.er1 >conftest.err
7674 rm -f conftest.er1
7675 cat conftest.err >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } &&
7678 { ac_try='test -z "$ac_c_werror_flag"
7679 || test ! -s conftest.err'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 (eval $ac_try) 2>&5
7682 ac_status=$?
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; } &&
7685 { ac_try='test -s conftest.$ac_objext'
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_hi=$ac_mid; break
7692 else
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7696 ac_lo=`expr $ac_mid + 1`
7697 if test $ac_lo -le $ac_mid; then
7698 ac_lo= ac_hi=
7699 break
7701 ac_mid=`expr 2 '*' $ac_mid + 1`
7703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7704 done
7705 else
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 $ac_includes_default
7717 main ()
7719 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7720 test_array [0] = 0
7723 return 0;
7725 _ACEOF
7726 rm -f conftest.$ac_objext
7727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7728 (eval $ac_compile) 2>conftest.er1
7729 ac_status=$?
7730 grep -v '^ *+' conftest.er1 >conftest.err
7731 rm -f conftest.er1
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } &&
7735 { ac_try='test -z "$ac_c_werror_flag"
7736 || test ! -s conftest.err'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; } &&
7742 { ac_try='test -s conftest.$ac_objext'
7743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744 (eval $ac_try) 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7748 ac_hi=-1 ac_mid=-1
7749 while :; do
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 $ac_includes_default
7758 main ()
7760 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7761 test_array [0] = 0
7764 return 0;
7766 _ACEOF
7767 rm -f conftest.$ac_objext
7768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7769 (eval $ac_compile) 2>conftest.er1
7770 ac_status=$?
7771 grep -v '^ *+' conftest.er1 >conftest.err
7772 rm -f conftest.er1
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
7776 { ac_try='test -z "$ac_c_werror_flag"
7777 || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try='test -s conftest.$ac_objext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 (eval $ac_try) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_lo=$ac_mid; break
7790 else
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_hi=`expr '(' $ac_mid ')' - 1`
7795 if test $ac_mid -le $ac_hi; then
7796 ac_lo= ac_hi=
7797 break
7799 ac_mid=`expr 2 '*' $ac_mid`
7801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7802 done
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 ac_lo= ac_hi=
7809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7812 # Binary search between lo and hi bounds.
7813 while test "x$ac_lo" != "x$ac_hi"; do
7814 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 $ac_includes_default
7823 main ()
7825 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7826 test_array [0] = 0
7829 return 0;
7831 _ACEOF
7832 rm -f conftest.$ac_objext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7834 (eval $ac_compile) 2>conftest.er1
7835 ac_status=$?
7836 grep -v '^ *+' conftest.er1 >conftest.err
7837 rm -f conftest.er1
7838 cat conftest.err >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } &&
7841 { ac_try='test -z "$ac_c_werror_flag"
7842 || test ! -s conftest.err'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 (eval $ac_try) 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; } &&
7848 { ac_try='test -s conftest.$ac_objext'
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 (eval $ac_try) 2>&5
7851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; }; then
7854 ac_hi=$ac_mid
7855 else
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7859 ac_lo=`expr '(' $ac_mid ')' + 1`
7861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7862 done
7863 case $ac_lo in
7864 ?*) ac_cv_sizeof_short=$ac_lo;;
7865 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7866 See \`config.log' for more details." >&5
7867 echo "$as_me: error: cannot compute sizeof (short), 77
7868 See \`config.log' for more details." >&2;}
7869 { (exit 1); exit 1; }; } ;;
7870 esac
7871 else
7872 if test "$cross_compiling" = yes; then
7873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7874 See \`config.log' for more details." >&5
7875 echo "$as_me: error: cannot run test program while cross compiling
7876 See \`config.log' for more details." >&2;}
7877 { (exit 1); exit 1; }; }
7878 else
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 $ac_includes_default
7886 long longval () { return (long) (sizeof (short)); }
7887 unsigned long ulongval () { return (long) (sizeof (short)); }
7888 #include <stdio.h>
7889 #include <stdlib.h>
7891 main ()
7894 FILE *f = fopen ("conftest.val", "w");
7895 if (! f)
7896 exit (1);
7897 if (((long) (sizeof (short))) < 0)
7899 long i = longval ();
7900 if (i != ((long) (sizeof (short))))
7901 exit (1);
7902 fprintf (f, "%ld\n", i);
7904 else
7906 unsigned long i = ulongval ();
7907 if (i != ((long) (sizeof (short))))
7908 exit (1);
7909 fprintf (f, "%lu\n", i);
7911 exit (ferror (f) || fclose (f) != 0);
7914 return 0;
7916 _ACEOF
7917 rm -f conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 (eval $ac_try) 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 ac_cv_sizeof_short=`cat conftest.val`
7929 else
7930 echo "$as_me: program exited with status $ac_status" >&5
7931 echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7934 ( exit $ac_status )
7935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7936 See \`config.log' for more details." >&5
7937 echo "$as_me: error: cannot compute sizeof (short), 77
7938 See \`config.log' for more details." >&2;}
7939 { (exit 1); exit 1; }; }
7941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7944 rm -f conftest.val
7945 else
7946 ac_cv_sizeof_short=0
7949 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7950 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7951 cat >>confdefs.h <<_ACEOF
7952 #define SIZEOF_SHORT $ac_cv_sizeof_short
7953 _ACEOF
7956 echo "$as_me:$LINENO: checking for char" >&5
7957 echo $ECHO_N "checking for char... $ECHO_C" >&6
7958 if test "${ac_cv_type_char+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 $ac_includes_default
7969 main ()
7971 if ((char *) 0)
7972 return 0;
7973 if (sizeof (char))
7974 return 0;
7976 return 0;
7978 _ACEOF
7979 rm -f conftest.$ac_objext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981 (eval $ac_compile) 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag"
7989 || test ! -s conftest.err'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 (eval $ac_try) 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try='test -s conftest.$ac_objext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 (eval $ac_try) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
8001 ac_cv_type_char=yes
8002 else
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8006 ac_cv_type_char=no
8008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8010 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
8011 echo "${ECHO_T}$ac_cv_type_char" >&6
8013 echo "$as_me:$LINENO: checking size of char" >&5
8014 echo $ECHO_N "checking size of char... $ECHO_C" >&6
8015 if test "${ac_cv_sizeof_char+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018 if test "$ac_cv_type_char" = yes; then
8019 # The cast to unsigned long works around a bug in the HP C Compiler
8020 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8021 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8022 # This bug is HP SR number 8606223364.
8023 if test "$cross_compiling" = yes; then
8024 # Depending upon the size, compute the lo and hi bounds.
8025 cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h. */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8031 $ac_includes_default
8033 main ()
8035 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
8036 test_array [0] = 0
8039 return 0;
8041 _ACEOF
8042 rm -f conftest.$ac_objext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8044 (eval $ac_compile) 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -z "$ac_c_werror_flag"
8052 || test ! -s conftest.err'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest.$ac_objext'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
8064 ac_lo=0 ac_mid=0
8065 while :; do
8066 cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h. */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 $ac_includes_default
8074 main ()
8076 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8077 test_array [0] = 0
8080 return 0;
8082 _ACEOF
8083 rm -f conftest.$ac_objext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8085 (eval $ac_compile) 2>conftest.er1
8086 ac_status=$?
8087 grep -v '^ *+' conftest.er1 >conftest.err
8088 rm -f conftest.er1
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try='test -z "$ac_c_werror_flag"
8093 || test ! -s conftest.err'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; } &&
8099 { ac_try='test -s conftest.$ac_objext'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 ac_hi=$ac_mid; break
8106 else
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 ac_lo=`expr $ac_mid + 1`
8111 if test $ac_lo -le $ac_mid; then
8112 ac_lo= ac_hi=
8113 break
8115 ac_mid=`expr 2 '*' $ac_mid + 1`
8117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8118 done
8119 else
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h. */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129 $ac_includes_default
8131 main ()
8133 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
8134 test_array [0] = 0
8137 return 0;
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142 (eval $ac_compile) 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -z "$ac_c_werror_flag"
8150 || test ! -s conftest.err'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try='test -s conftest.$ac_objext'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_hi=-1 ac_mid=-1
8163 while :; do
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h. */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 $ac_includes_default
8172 main ()
8174 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
8175 test_array [0] = 0
8178 return 0;
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag"
8191 || test ! -s conftest.err'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; } &&
8197 { ac_try='test -s conftest.$ac_objext'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 (eval $ac_try) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8203 ac_lo=$ac_mid; break
8204 else
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8208 ac_hi=`expr '(' $ac_mid ')' - 1`
8209 if test $ac_mid -le $ac_hi; then
8210 ac_lo= ac_hi=
8211 break
8213 ac_mid=`expr 2 '*' $ac_mid`
8215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8216 done
8217 else
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8221 ac_lo= ac_hi=
8223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8226 # Binary search between lo and hi bounds.
8227 while test "x$ac_lo" != "x$ac_hi"; do
8228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 $ac_includes_default
8237 main ()
8239 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8240 test_array [0] = 0
8243 return 0;
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248 (eval $ac_compile) 2>conftest.er1
8249 ac_status=$?
8250 grep -v '^ *+' conftest.er1 >conftest.err
8251 rm -f conftest.er1
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag"
8256 || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_hi=$ac_mid
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 ac_lo=`expr '(' $ac_mid ')' + 1`
8275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8276 done
8277 case $ac_lo in
8278 ?*) ac_cv_sizeof_char=$ac_lo;;
8279 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8280 See \`config.log' for more details." >&5
8281 echo "$as_me: error: cannot compute sizeof (char), 77
8282 See \`config.log' for more details." >&2;}
8283 { (exit 1); exit 1; }; } ;;
8284 esac
8285 else
8286 if test "$cross_compiling" = yes; then
8287 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8288 See \`config.log' for more details." >&5
8289 echo "$as_me: error: cannot run test program while cross compiling
8290 See \`config.log' for more details." >&2;}
8291 { (exit 1); exit 1; }; }
8292 else
8293 cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h. */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 $ac_includes_default
8300 long longval () { return (long) (sizeof (char)); }
8301 unsigned long ulongval () { return (long) (sizeof (char)); }
8302 #include <stdio.h>
8303 #include <stdlib.h>
8305 main ()
8308 FILE *f = fopen ("conftest.val", "w");
8309 if (! f)
8310 exit (1);
8311 if (((long) (sizeof (char))) < 0)
8313 long i = longval ();
8314 if (i != ((long) (sizeof (char))))
8315 exit (1);
8316 fprintf (f, "%ld\n", i);
8318 else
8320 unsigned long i = ulongval ();
8321 if (i != ((long) (sizeof (char))))
8322 exit (1);
8323 fprintf (f, "%lu\n", i);
8325 exit (ferror (f) || fclose (f) != 0);
8328 return 0;
8330 _ACEOF
8331 rm -f conftest$ac_exeext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333 (eval $ac_link) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_cv_sizeof_char=`cat conftest.val`
8343 else
8344 echo "$as_me: program exited with status $ac_status" >&5
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8348 ( exit $ac_status )
8349 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
8350 See \`config.log' for more details." >&5
8351 echo "$as_me: error: cannot compute sizeof (char), 77
8352 See \`config.log' for more details." >&2;}
8353 { (exit 1); exit 1; }; }
8355 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8358 rm -f conftest.val
8359 else
8360 ac_cv_sizeof_char=0
8363 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8364 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8365 cat >>confdefs.h <<_ACEOF
8366 #define SIZEOF_CHAR $ac_cv_sizeof_char
8367 _ACEOF
8371 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
8372 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
8373 case "$ac_cv_sizeof_char" in
8374 1) acx_cv_type_int8_t=char ;;
8375 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
8376 echo "$as_me: error: no 8-bit type" >&2;}
8377 { (exit please report a bug); exit please report a bug; }; }
8378 esac
8379 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
8380 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
8382 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
8383 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
8384 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
8385 2:*) acx_cv_type_int16_t=int ;;
8386 *:2) acx_cv_type_int16_t=short ;;
8387 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
8388 echo "$as_me: error: no 16-bit type" >&2;}
8389 { (exit please report a bug); exit please report a bug; }; }
8390 esac
8391 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
8392 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
8394 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
8395 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
8396 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
8397 4:*) acx_cv_type_int32_t=int ;;
8398 *:4) acx_cv_type_int32_t=long ;;
8399 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
8400 echo "$as_me: error: no 32-bit type" >&2;}
8401 { (exit please report a bug); exit please report a bug; }; }
8402 esac
8403 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
8404 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
8407 # These tests are here to make the output prettier
8409 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
8410 case "$ac_cv_sizeof_long" in
8411 8) acx_cv_type_int64_t=long ;;
8412 esac
8413 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
8414 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
8415 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
8416 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
8419 # Now we can use the above types
8421 if test "$ac_cv_type_uintptr_t" != yes; then
8422 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
8423 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
8424 case $ac_cv_sizeof_void_p in
8425 2) acx_cv_type_intptr_t=int16_t ;;
8426 4) acx_cv_type_intptr_t=int32_t ;;
8427 8) acx_cv_type_intptr_t=int64_t ;;
8428 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
8429 echo "$as_me: error: no equivalent for intptr_t" >&2;}
8430 { (exit please report a bug); exit please report a bug; }; }
8431 esac
8432 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
8433 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
8436 # ----------------- done all checks, emit header -------------
8437 ac_config_commands="$ac_config_commands gstdint.h"
8442 # Check to see if -pthread or -lpthread is needed. Prefer the former.
8443 XPCFLAGS=""
8444 CFLAGS="$CFLAGS -pthread"
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h. */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 #include <pthread.h>
8452 void *g(void *d) { return NULL; }
8454 main ()
8456 pthread_t t; pthread_create(&t,NULL,g,NULL);
8458 return 0;
8460 _ACEOF
8461 rm -f conftest.$ac_objext conftest$ac_exeext
8462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8463 (eval $ac_link) 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } &&
8470 { ac_try='test -z "$ac_c_werror_flag"
8471 || test ! -s conftest.err'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest$ac_exeext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 XPCFLAGS=" -Wc,-pthread"
8484 else
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8488 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #include <pthread.h>
8496 void *g(void *d) { return NULL; }
8498 main ()
8500 pthread_t t; pthread_create(&t,NULL,g,NULL);
8502 return 0;
8504 _ACEOF
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507 (eval $ac_link) 2>conftest.er1
8508 ac_status=$?
8509 grep -v '^ *+' conftest.er1 >conftest.err
8510 rm -f conftest.er1
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
8514 { ac_try='test -z "$ac_c_werror_flag"
8515 || test ! -s conftest.err'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 (eval $ac_try) 2>&5
8518 ac_status=$?
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; } &&
8521 { ac_try='test -s conftest$ac_exeext'
8522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 (eval $ac_try) 2>&5
8524 ac_status=$?
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; }; then
8528 else
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5
8533 echo "$as_me: error: Pthreads are required to build libgomp" >&2;}
8534 { (exit 1); exit 1; }; }
8536 rm -f conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext conftest.$ac_ext
8539 rm -f conftest.err conftest.$ac_objext \
8540 conftest$ac_exeext conftest.$ac_ext
8542 # Check for functions needed.
8545 for ac_func in getloadavg clock_gettime
8547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8548 echo "$as_me:$LINENO: checking for $ac_func" >&5
8549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8550 if eval "test \"\${$as_ac_var+set}\" = set"; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8561 #define $ac_func innocuous_$ac_func
8563 /* System header to define __stub macros and hopefully few prototypes,
8564 which can conflict with char $ac_func (); below.
8565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8566 <limits.h> exists even on freestanding compilers. */
8568 #ifdef __STDC__
8569 # include <limits.h>
8570 #else
8571 # include <assert.h>
8572 #endif
8574 #undef $ac_func
8576 /* Override any gcc2 internal prototype to avoid an error. */
8577 #ifdef __cplusplus
8578 extern "C"
8580 #endif
8581 /* We use char because int might match the return type of a gcc2
8582 builtin and then its argument prototype would still apply. */
8583 char $ac_func ();
8584 /* The GNU C library defines this for functions which it implements
8585 to always fail with ENOSYS. Some functions are actually named
8586 something starting with __ and the normal name is an alias. */
8587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8588 choke me
8589 #else
8590 char (*f) () = $ac_func;
8591 #endif
8592 #ifdef __cplusplus
8594 #endif
8597 main ()
8599 return f != $ac_func;
8601 return 0;
8603 _ACEOF
8604 rm -f conftest.$ac_objext conftest$ac_exeext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606 (eval $ac_link) 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag"
8614 || test ! -s conftest.err'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; } &&
8620 { ac_try='test -s conftest$ac_exeext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 (eval $ac_try) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 eval "$as_ac_var=yes"
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 eval "$as_ac_var=no"
8633 rm -f conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext
8636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8638 if test `eval echo '${'$as_ac_var'}'` = yes; then
8639 cat >>confdefs.h <<_ACEOF
8640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8641 _ACEOF
8644 done
8647 # At least for glibc, clock_gettime is in librt. But don't pull that
8648 # in if it still doesn't give us the function we want.
8649 if test $ac_cv_func_clock_gettime = no; then
8650 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8651 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8652 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655 ac_check_lib_save_LIBS=$LIBS
8656 LIBS="-lrt $LIBS"
8657 cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h. */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8664 /* Override any gcc2 internal prototype to avoid an error. */
8665 #ifdef __cplusplus
8666 extern "C"
8667 #endif
8668 /* We use char because int might match the return type of a gcc2
8669 builtin and then its argument prototype would still apply. */
8670 char clock_gettime ();
8672 main ()
8674 clock_gettime ();
8676 return 0;
8678 _ACEOF
8679 rm -f conftest.$ac_objext conftest$ac_exeext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8681 (eval $ac_link) 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_c_werror_flag"
8689 || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest$ac_exeext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_cv_lib_rt_clock_gettime=yes
8702 else
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_cv_lib_rt_clock_gettime=no
8708 rm -f conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8710 LIBS=$ac_check_lib_save_LIBS
8712 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8713 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8714 if test $ac_cv_lib_rt_clock_gettime = yes; then
8715 LIBS="-lrt $LIBS"
8716 cat >>confdefs.h <<\_ACEOF
8717 #define HAVE_CLOCK_GETTIME Define to 1 if you have the `clock_gettime' function.
8718 _ACEOF
8724 # See if we support thread-local storage.
8726 # Check whether --enable-tls or --disable-tls was given.
8727 if test "${enable_tls+set}" = set; then
8728 enableval="$enable_tls"
8730 case "$enableval" in
8731 yes|no) ;;
8732 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
8733 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
8734 { (exit 1); exit 1; }; } ;;
8735 esac
8737 else
8738 enable_tls=yes
8741 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
8742 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
8743 if test "${have_tls+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 __thread int foo;
8755 main ()
8759 return 0;
8761 _ACEOF
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>conftest.er1
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag"
8772 || test ! -s conftest.err'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; } &&
8778 { ac_try='test -s conftest.$ac_objext'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 (eval $ac_try) 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 have_tls=$enable_tls
8785 else
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 have_tls=no
8791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8793 echo "$as_me:$LINENO: result: $have_tls" >&5
8794 echo "${ECHO_T}$have_tls" >&6
8795 if test $have_tls = yes; then
8797 cat >>confdefs.h <<\_ACEOF
8798 #define HAVE_TLS 1
8799 _ACEOF
8803 # See what sort of export controls are availible.
8805 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
8806 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
8807 if test "${have_attribute_visibility+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8811 save_CFLAGS="$CFLAGS"
8812 CFLAGS="$CFLAGS -Werror"
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h. */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 void __attribute__((visibility("hidden"))) foo(void) { }
8821 main ()
8825 return 0;
8827 _ACEOF
8828 rm -f conftest.$ac_objext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830 (eval $ac_compile) 2>conftest.er1
8831 ac_status=$?
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
8837 { ac_try='test -z "$ac_c_werror_flag"
8838 || test ! -s conftest.err'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try='test -s conftest.$ac_objext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 have_attribute_visibility=yes
8851 else
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 have_attribute_visibility=no
8857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8858 CFLAGS="$save_CFLAGS"
8860 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
8861 echo "${ECHO_T}$have_attribute_visibility" >&6
8862 if test $have_attribute_visibility = yes; then
8864 cat >>confdefs.h <<\_ACEOF
8865 #define HAVE_ATTRIBUTE_VISIBILITY 1
8866 _ACEOF
8870 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
8871 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
8872 if test "${have_attribute_dllexport+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8876 save_CFLAGS="$CFLAGS"
8877 CFLAGS="$CFLAGS -Werror"
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8884 void __attribute__((dllexport)) foo(void) { }
8886 main ()
8890 return 0;
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -z "$ac_c_werror_flag"
8903 || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 (eval $ac_try) 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest.$ac_objext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 have_attribute_dllexport=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 have_attribute_dllexport=no
8922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8923 CFLAGS="$save_CFLAGS"
8925 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
8926 echo "${ECHO_T}$have_attribute_dllexport" >&6
8927 if test $have_attribute_dllexport = yes; then
8929 cat >>confdefs.h <<\_ACEOF
8930 #define HAVE_ATTRIBUTE_DLLEXPORT 1
8931 _ACEOF
8935 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
8936 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
8937 if test "${have_attribute_alias+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8948 #define ULP STR1(__USER_LABEL_PREFIX__)
8949 #define STR1(x) STR2(x)
8950 #define STR2(x) #x
8951 void foo(void) { }
8952 extern void bar(void) __attribute__((alias(ULP "foo")));
8954 main ()
8956 bar();
8958 return 0;
8960 _ACEOF
8961 rm -f conftest.$ac_objext conftest$ac_exeext
8962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8963 (eval $ac_link) 2>conftest.er1
8964 ac_status=$?
8965 grep -v '^ *+' conftest.er1 >conftest.err
8966 rm -f conftest.er1
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } &&
8970 { ac_try='test -z "$ac_c_werror_flag"
8971 || test ! -s conftest.err'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 (eval $ac_try) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try='test -s conftest$ac_exeext'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
8983 have_attribute_alias=yes
8984 else
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8988 have_attribute_alias=no
8990 rm -f conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8993 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
8994 echo "${ECHO_T}$have_attribute_alias" >&6
8995 if test $have_attribute_alias = yes; then
8997 cat >>confdefs.h <<\_ACEOF
8998 #define HAVE_ATTRIBUTE_ALIAS 1
8999 _ACEOF
9003 # If we're not using GNU ld, then there's no point in even trying these
9004 # tests. Check for that first. We should have already tested for gld
9005 # by now (in libtool), but require it now just to be safe...
9006 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
9007 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
9011 # The name set by libtool depends on the version of libtool. Shame on us
9012 # for depending on an impl detail, but c'est la vie. Older versions used
9013 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
9014 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
9015 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
9016 # set (hence we're using an older libtool), then set it.
9017 if test x${with_gnu_ld+set} != xset; then
9018 if test x${ac_cv_prog_gnu_ld+set} != xset; then
9019 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
9020 with_gnu_ld=no
9021 else
9022 with_gnu_ld=$ac_cv_prog_gnu_ld
9026 # Start by getting the version number. I think the libtool test already
9027 # does some of this, but throws away the result.
9029 ldver=`$LD --version 2>/dev/null | head -1 | \
9030 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
9032 libgomp_gnu_ld_version=`echo $ldver | \
9033 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
9035 # Set --gc-sections.
9036 if test "$with_gnu_ld" = "notbroken"; then
9037 # GNU ld it is! Joy and bunny rabbits!
9039 # All these tests are for C++; save the language and the compiler flags.
9040 # Need to do this so that g++ won't try to link in libstdc++
9041 ac_test_CFLAGS="${CFLAGS+set}"
9042 ac_save_CFLAGS="$CFLAGS"
9043 CFLAGS='-x c++ -Wl,--gc-sections'
9045 # Check for -Wl,--gc-sections
9046 # XXX This test is broken at the moment, as symbols required for linking
9047 # are now in libsupc++ (not built yet). In addition, this test has
9048 # cored on solaris in the past. In addition, --gc-sections doesn't
9049 # really work at the moment (keeps on discarding used sections, first
9050 # .eh_frame and now some of the glibc sections for iconv).
9051 # Bzzzzt. Thanks for playing, maybe next time.
9052 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
9053 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
9054 if test "$cross_compiling" = yes; then
9055 ac_sectionLDflags=yes
9056 else
9057 cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h. */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9064 int main(void)
9066 try { throw 1; }
9067 catch (...) { };
9068 return 0;
9071 _ACEOF
9072 rm -f conftest$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 (eval $ac_try) 2>&5
9080 ac_status=$?
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9083 ac_sectionLDflags=yes
9084 else
9085 echo "$as_me: program exited with status $ac_status" >&5
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ( exit $ac_status )
9090 ac_sectionLDflags=no
9092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9094 if test "$ac_test_CFLAGS" = set; then
9095 CFLAGS="$ac_save_CFLAGS"
9096 else
9097 # this is the suspicious part
9098 CFLAGS=''
9100 if test "$ac_sectionLDflags" = "yes"; then
9101 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
9103 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
9104 echo "${ECHO_T}$ac_sectionLDflags" >&6
9107 # Set linker optimization flags.
9108 if test x"$with_gnu_ld" = x"yes"; then
9109 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
9117 # Check whether --enable-symvers or --disable-symvers was given.
9118 if test "${enable_symvers+set}" = set; then
9119 enableval="$enable_symvers"
9121 case "$enableval" in
9122 yes|no|gnu) ;;
9123 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
9124 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
9125 { (exit 1); exit 1; }; } ;;
9126 esac
9128 else
9129 enable_symvers=yes
9133 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
9134 # don't know enough about $LD to do tricks...
9136 # FIXME The following test is too strict, in theory.
9137 if test $enable_shared = no ||
9138 test "x$LD" = x ||
9139 test x$libgomp_gnu_ld_version = x; then
9140 enable_symvers=no
9143 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
9144 if test $enable_symvers != no; then
9145 echo "$as_me:$LINENO: checking for shared libgcc" >&5
9146 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
9147 ac_save_CFLAGS="$CFLAGS"
9148 CFLAGS=' -lgcc_s'
9149 cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h. */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9157 main ()
9159 return 0;
9161 return 0;
9163 _ACEOF
9164 rm -f conftest.$ac_objext conftest$ac_exeext
9165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166 (eval $ac_link) 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
9173 { ac_try='test -z "$ac_c_werror_flag"
9174 || test ! -s conftest.err'
9175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 (eval $ac_try) 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; } &&
9180 { ac_try='test -s conftest$ac_exeext'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; }; then
9186 libgomp_shared_libgcc=yes
9187 else
9188 echo "$as_me: failed program was:" >&5
9189 sed 's/^/| /' conftest.$ac_ext >&5
9191 libgomp_shared_libgcc=no
9193 rm -f conftest.err conftest.$ac_objext \
9194 conftest$ac_exeext conftest.$ac_ext
9195 CFLAGS="$ac_save_CFLAGS"
9196 if test $libgomp_shared_libgcc = no; then
9197 cat > conftest.c <<EOF
9198 int main (void) { return 0; }
9200 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
9201 -shared -shared-libgcc -o conftest.so \
9202 conftest.c -v 2>&1 >/dev/null \
9203 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
9204 rm -f conftest.c conftest.so
9205 if test x${libgomp_libgcc_s_suffix+set} = xset; then
9206 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h. */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9215 main ()
9217 return 0;
9219 return 0;
9221 _ACEOF
9222 rm -f conftest.$ac_objext conftest$ac_exeext
9223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9224 (eval $ac_link) 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -z "$ac_c_werror_flag"
9232 || test ! -s conftest.err'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 (eval $ac_try) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; } &&
9238 { ac_try='test -s conftest$ac_exeext'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 (eval $ac_try) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 libgomp_shared_libgcc=yes
9245 else
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9250 rm -f conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252 CFLAGS="$ac_save_CFLAGS"
9255 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5
9256 echo "${ECHO_T}$libgomp_shared_libgcc" >&6
9259 # For GNU ld, we need at least this version. The format is described in
9260 # LIBGOMP_CHECK_LINKER_FEATURES above.
9261 libgomp_min_gnu_ld_version=21400
9262 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
9264 # Check to see if unspecified "yes" value can win, given results above.
9265 # Change "yes" into either "no" or a style name.
9266 if test $enable_symvers = yes; then
9267 if test $with_gnu_ld = yes &&
9268 test $libgomp_shared_libgcc = yes;
9269 then
9270 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
9271 enable_symvers=gnu
9272 else
9273 # The right tools, the right setup, but too old. Fallbacks?
9274 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
9275 echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
9277 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
9278 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
9279 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
9281 echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
9282 if test $libgomp_gnu_ld_version -ge 21200 ; then
9283 # Globbing fix is present, proper block support is not.
9284 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9285 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9286 enable_symvers=no
9287 else
9288 # 2.11 or older.
9289 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9290 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9291 enable_symvers=no
9294 else
9295 # just fail for now
9296 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
9297 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
9299 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
9301 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
9302 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
9303 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
9304 enable_symvers=no
9310 if test $enable_symvers != no; then
9311 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
9312 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
9313 else
9314 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
9315 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
9318 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
9319 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
9322 # Get target configury.
9323 . ${srcdir}/configure.tgt
9324 CFLAGS="$save_CFLAGS $XCFLAGS"
9326 # Check for __sync_val_compare_and_swap, but only after the target has
9327 # had a chance to set XCFLAGS.
9329 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5
9330 echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6
9331 if test "${have_sync_builtins+set}" = set; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h. */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9343 main ()
9345 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
9347 return 0;
9349 _ACEOF
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_c_werror_flag"
9360 || test ! -s conftest.err'
9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; } &&
9366 { ac_try='test -s conftest$ac_exeext'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 (eval $ac_try) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 have_sync_builtins=yes
9373 else
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9377 have_sync_builtins=no
9379 rm -f conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9382 echo "$as_me:$LINENO: result: $have_sync_builtins" >&5
9383 echo "${ECHO_T}$have_sync_builtins" >&6
9384 if test $have_sync_builtins = yes; then
9386 cat >>confdefs.h <<\_ACEOF
9387 #define HAVE_SYNC_BUILTINS 1
9388 _ACEOF
9392 XCFLAGS="$XCFLAGS$XPCFLAGS"
9398 # Cleanup and exit.
9399 CFLAGS="$save_CFLAGS"
9400 cat >confcache <<\_ACEOF
9401 # This file is a shell script that caches the results of configure
9402 # tests run on this system so they can be shared between configure
9403 # scripts and configure runs, see configure's option --config-cache.
9404 # It is not useful on other systems. If it contains results you don't
9405 # want to keep, you may remove or edit it.
9407 # config.status only pays attention to the cache file if you give it
9408 # the --recheck option to rerun configure.
9410 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9411 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9412 # following values.
9414 _ACEOF
9416 # The following way of writing the cache mishandles newlines in values,
9417 # but we know of no workaround that is simple, portable, and efficient.
9418 # So, don't put newlines in cache variables' values.
9419 # Ultrix sh set writes to stderr and can't be redirected directly,
9420 # and sets the high bit in the cache file unless we assign to the vars.
9422 (set) 2>&1 |
9423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9424 *ac_space=\ *)
9425 # `set' does not quote correctly, so add quotes (double-quote
9426 # substitution turns \\\\ into \\, and sed turns \\ into \).
9427 sed -n \
9428 "s/'/'\\\\''/g;
9429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9432 # `set' quotes correctly as required by POSIX, so do not add quotes.
9433 sed -n \
9434 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9436 esac;
9438 sed '
9439 t clear
9440 : clear
9441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9442 t end
9443 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9444 : end' >>confcache
9445 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9446 if test -w $cache_file; then
9447 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9448 cat confcache >$cache_file
9449 else
9450 echo "not updating unwritable cache $cache_file"
9453 rm -f confcache
9455 if test ${multilib} = yes; then
9456 multilib_arg="--enable-multilib"
9457 else
9458 multilib_arg=
9461 # Set up the set of libraries that we need to link against for libgomp.
9462 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
9463 # which will force linkage against -lpthread (or equivalent for the system).
9464 # That's not 100% ideal, but about the best we can do easily.
9465 if test $enable_shared = yes; then
9466 link_gomp="-lgomp %{static: $LIBS}"
9467 else
9468 link_gomp="-lgomp $LIBS"
9474 if test "$ac_cv_fc_compiler_gnu" = yes; then
9475 USE_FORTRAN_TRUE=
9476 USE_FORTRAN_FALSE='#'
9477 else
9478 USE_FORTRAN_TRUE='#'
9479 USE_FORTRAN_FALSE=
9483 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
9484 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
9485 # the underscore here and update the PREREQ. If it doesn't, then we'll
9486 # need to copy this macro to our acinclude.m4.
9487 save_CFLAGS="$CFLAGS"
9488 for i in $config_path; do
9489 if test -f $srcdir/config/$i/omp-lock.h; then
9490 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h"
9491 break
9493 done
9495 if test "$cross_compiling" = yes; then
9496 # Depending upon the size, compute the lo and hi bounds.
9497 cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h. */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9505 main ()
9507 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)];
9508 test_array [0] = 0
9511 return 0;
9513 _ACEOF
9514 rm -f conftest.$ac_objext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516 (eval $ac_compile) 2>conftest.er1
9517 ac_status=$?
9518 grep -v '^ *+' conftest.er1 >conftest.err
9519 rm -f conftest.er1
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } &&
9523 { ac_try='test -z "$ac_c_werror_flag"
9524 || test ! -s conftest.err'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; } &&
9530 { ac_try='test -s conftest.$ac_objext'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 (eval $ac_try) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_lo=0 ac_mid=0
9537 while :; do
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9546 main ()
9548 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9549 test_array [0] = 0
9552 return 0;
9554 _ACEOF
9555 rm -f conftest.$ac_objext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9557 (eval $ac_compile) 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_hi=$ac_mid; break
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 ac_lo=`expr $ac_mid + 1`
9583 if test $ac_lo -le $ac_mid; then
9584 ac_lo= ac_hi=
9585 break
9587 ac_mid=`expr 2 '*' $ac_mid + 1`
9589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9590 done
9591 else
9592 echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9595 cat >conftest.$ac_ext <<_ACEOF
9596 /* confdefs.h. */
9597 _ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9603 main ()
9605 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)];
9606 test_array [0] = 0
9609 return 0;
9611 _ACEOF
9612 rm -f conftest.$ac_objext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9614 (eval $ac_compile) 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 (eval $ac_try) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try='test -s conftest.$ac_objext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 (eval $ac_try) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_hi=-1 ac_mid=-1
9635 while :; do
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)) >= $ac_mid)];
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=$ac_mid; break
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_hi=`expr '(' $ac_mid ')' - 1`
9681 if test $ac_mid -le $ac_hi; then
9682 ac_lo= ac_hi=
9683 break
9685 ac_mid=`expr 2 '*' $ac_mid`
9687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9688 done
9689 else
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 ac_lo= ac_hi=
9695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9698 # Binary search between lo and hi bounds.
9699 while test "x$ac_lo" != "x$ac_hi"; do
9700 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h. */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9709 main ()
9711 static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)];
9712 test_array [0] = 0
9715 return 0;
9717 _ACEOF
9718 rm -f conftest.$ac_objext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9720 (eval $ac_compile) 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -z "$ac_c_werror_flag"
9728 || test ! -s conftest.err'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; } &&
9734 { ac_try='test -s conftest.$ac_objext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 ac_hi=$ac_mid
9741 else
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 ac_lo=`expr '(' $ac_mid ')' + 1`
9747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9748 done
9749 case $ac_lo in
9750 ?*) OMP_LOCK_SIZE=$ac_lo;;
9751 '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9752 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9753 { (exit 1); exit 1; }; } ;;
9754 esac
9755 else
9756 if test "$cross_compiling" = yes; then
9757 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9758 See \`config.log' for more details." >&5
9759 echo "$as_me: error: cannot run test program while cross compiling
9760 See \`config.log' for more details." >&2;}
9761 { (exit 1); exit 1; }; }
9762 else
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9770 long longval () { return sizeof (omp_lock_t); }
9771 unsigned long ulongval () { return sizeof (omp_lock_t); }
9772 #include <stdio.h>
9773 #include <stdlib.h>
9775 main ()
9778 FILE *f = fopen ("conftest.val", "w");
9779 if (! f)
9780 exit (1);
9781 if ((sizeof (omp_lock_t)) < 0)
9783 long i = longval ();
9784 if (i != (sizeof (omp_lock_t)))
9785 exit (1);
9786 fprintf (f, "%ld\n", i);
9788 else
9790 unsigned long i = ulongval ();
9791 if (i != (sizeof (omp_lock_t)))
9792 exit (1);
9793 fprintf (f, "%lu\n", i);
9795 exit (ferror (f) || fclose (f) != 0);
9798 return 0;
9800 _ACEOF
9801 rm -f conftest$ac_exeext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 OMP_LOCK_SIZE=`cat conftest.val`
9813 else
9814 echo "$as_me: program exited with status $ac_status" >&5
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9818 ( exit $ac_status )
9819 { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5
9820 echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;}
9821 { (exit 1); exit 1; }; }
9823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9826 rm -f conftest.val
9827 if test "$cross_compiling" = yes; then
9828 # Depending upon the size, compute the lo and hi bounds.
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9837 main ()
9839 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)];
9840 test_array [0] = 0
9843 return 0;
9845 _ACEOF
9846 rm -f conftest.$ac_objext
9847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9848 (eval $ac_compile) 2>conftest.er1
9849 ac_status=$?
9850 grep -v '^ *+' conftest.er1 >conftest.err
9851 rm -f conftest.er1
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -z "$ac_c_werror_flag"
9856 || test ! -s conftest.err'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 (eval $ac_try) 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; } &&
9862 { ac_try='test -s conftest.$ac_objext'
9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 (eval $ac_try) 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; }; then
9868 ac_lo=0 ac_mid=0
9869 while :; do
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h. */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h. */
9878 main ()
9880 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
9881 test_array [0] = 0
9884 return 0;
9886 _ACEOF
9887 rm -f conftest.$ac_objext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889 (eval $ac_compile) 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag"
9897 || test ! -s conftest.err'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest.$ac_objext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_hi=$ac_mid; break
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 ac_lo=`expr $ac_mid + 1`
9915 if test $ac_lo -le $ac_mid; then
9916 ac_lo= ac_hi=
9917 break
9919 ac_mid=`expr 2 '*' $ac_mid + 1`
9921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9922 done
9923 else
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h. */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9935 main ()
9937 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)];
9938 test_array [0] = 0
9941 return 0;
9943 _ACEOF
9944 rm -f conftest.$ac_objext
9945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9946 (eval $ac_compile) 2>conftest.er1
9947 ac_status=$?
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } &&
9953 { ac_try='test -z "$ac_c_werror_flag"
9954 || test ! -s conftest.err'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; } &&
9960 { ac_try='test -s conftest.$ac_objext'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_hi=-1 ac_mid=-1
9967 while :; do
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)) >= $ac_mid)];
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=$ac_mid; break
10008 else
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_hi=`expr '(' $ac_mid ')' - 1`
10013 if test $ac_mid -le $ac_hi; then
10014 ac_lo= ac_hi=
10015 break
10017 ac_mid=`expr 2 '*' $ac_mid`
10019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10020 done
10021 else
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_lo= ac_hi=
10027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10030 # Binary search between lo and hi bounds.
10031 while test "x$ac_lo" != "x$ac_hi"; do
10032 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h. */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10041 main ()
10043 static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)];
10044 test_array [0] = 0
10047 return 0;
10049 _ACEOF
10050 rm -f conftest.$ac_objext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10052 (eval $ac_compile) 2>conftest.er1
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -z "$ac_c_werror_flag"
10060 || test ! -s conftest.err'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest.$ac_objext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_hi=$ac_mid
10073 else
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 ac_lo=`expr '(' $ac_mid ')' + 1`
10079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10080 done
10081 case $ac_lo in
10082 ?*) OMP_LOCK_ALIGN=$ac_lo;;
10083 '') ;;
10084 esac
10085 else
10086 if test "$cross_compiling" = yes; then
10087 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10088 See \`config.log' for more details." >&5
10089 echo "$as_me: error: cannot run test program while cross compiling
10090 See \`config.log' for more details." >&2;}
10091 { (exit 1); exit 1; }; }
10092 else
10093 cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h. */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10100 long longval () { return __alignof (omp_lock_t); }
10101 unsigned long ulongval () { return __alignof (omp_lock_t); }
10102 #include <stdio.h>
10103 #include <stdlib.h>
10105 main ()
10108 FILE *f = fopen ("conftest.val", "w");
10109 if (! f)
10110 exit (1);
10111 if ((__alignof (omp_lock_t)) < 0)
10113 long i = longval ();
10114 if (i != (__alignof (omp_lock_t)))
10115 exit (1);
10116 fprintf (f, "%ld\n", i);
10118 else
10120 unsigned long i = ulongval ();
10121 if (i != (__alignof (omp_lock_t)))
10122 exit (1);
10123 fprintf (f, "%lu\n", i);
10125 exit (ferror (f) || fclose (f) != 0);
10128 return 0;
10130 _ACEOF
10131 rm -f conftest$ac_exeext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10133 (eval $ac_link) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 OMP_LOCK_ALIGN=`cat conftest.val`
10143 else
10144 echo "$as_me: program exited with status $ac_status" >&5
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10149 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10152 rm -f conftest.val
10153 if test "$cross_compiling" = yes; then
10154 # Depending upon the size, compute the lo and hi bounds.
10155 cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h. */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10163 main ()
10165 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)];
10166 test_array [0] = 0
10169 return 0;
10171 _ACEOF
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -z "$ac_c_werror_flag"
10182 || test ! -s conftest.err'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; } &&
10188 { ac_try='test -s conftest.$ac_objext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_lo=0 ac_mid=0
10195 while :; do
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h. */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10204 main ()
10206 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10207 test_array [0] = 0
10210 return 0;
10212 _ACEOF
10213 rm -f conftest.$ac_objext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10215 (eval $ac_compile) 2>conftest.er1
10216 ac_status=$?
10217 grep -v '^ *+' conftest.er1 >conftest.err
10218 rm -f conftest.er1
10219 cat conftest.err >&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try='test -z "$ac_c_werror_flag"
10223 || test ! -s conftest.err'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10226 ac_status=$?
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; } &&
10229 { ac_try='test -s conftest.$ac_objext'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10235 ac_hi=$ac_mid; break
10236 else
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10240 ac_lo=`expr $ac_mid + 1`
10241 if test $ac_lo -le $ac_mid; then
10242 ac_lo= ac_hi=
10243 break
10245 ac_mid=`expr 2 '*' $ac_mid + 1`
10247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10248 done
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h. */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10261 main ()
10263 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)];
10264 test_array [0] = 0
10267 return 0;
10269 _ACEOF
10270 rm -f conftest.$ac_objext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } &&
10279 { ac_try='test -z "$ac_c_werror_flag"
10280 || test ! -s conftest.err'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest.$ac_objext'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10289 ac_status=$?
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_hi=-1 ac_mid=-1
10293 while :; do
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)) >= $ac_mid)];
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=$ac_mid; break
10334 else
10335 echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 ac_hi=`expr '(' $ac_mid ')' - 1`
10339 if test $ac_mid -le $ac_hi; then
10340 ac_lo= ac_hi=
10341 break
10343 ac_mid=`expr 2 '*' $ac_mid`
10345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10346 done
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ac_lo= ac_hi=
10353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10356 # Binary search between lo and hi bounds.
10357 while test "x$ac_lo" != "x$ac_hi"; do
10358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10359 cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h. */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10367 main ()
10369 static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)];
10370 test_array [0] = 0
10373 return 0;
10375 _ACEOF
10376 rm -f conftest.$ac_objext
10377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10378 (eval $ac_compile) 2>conftest.er1
10379 ac_status=$?
10380 grep -v '^ *+' conftest.er1 >conftest.err
10381 rm -f conftest.er1
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -z "$ac_c_werror_flag"
10386 || test ! -s conftest.err'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; } &&
10392 { ac_try='test -s conftest.$ac_objext'
10393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394 (eval $ac_try) 2>&5
10395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }; then
10398 ac_hi=$ac_mid
10399 else
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 ac_lo=`expr '(' $ac_mid ')' + 1`
10405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10406 done
10407 case $ac_lo in
10408 ?*) OMP_NEST_LOCK_SIZE=$ac_lo;;
10409 '') ;;
10410 esac
10411 else
10412 if test "$cross_compiling" = yes; then
10413 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10414 See \`config.log' for more details." >&5
10415 echo "$as_me: error: cannot run test program while cross compiling
10416 See \`config.log' for more details." >&2;}
10417 { (exit 1); exit 1; }; }
10418 else
10419 cat >conftest.$ac_ext <<_ACEOF
10420 /* confdefs.h. */
10421 _ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10426 long longval () { return sizeof (omp_nest_lock_t); }
10427 unsigned long ulongval () { return sizeof (omp_nest_lock_t); }
10428 #include <stdio.h>
10429 #include <stdlib.h>
10431 main ()
10434 FILE *f = fopen ("conftest.val", "w");
10435 if (! f)
10436 exit (1);
10437 if ((sizeof (omp_nest_lock_t)) < 0)
10439 long i = longval ();
10440 if (i != (sizeof (omp_nest_lock_t)))
10441 exit (1);
10442 fprintf (f, "%ld\n", i);
10444 else
10446 unsigned long i = ulongval ();
10447 if (i != (sizeof (omp_nest_lock_t)))
10448 exit (1);
10449 fprintf (f, "%lu\n", i);
10451 exit (ferror (f) || fclose (f) != 0);
10454 return 0;
10456 _ACEOF
10457 rm -f conftest$ac_exeext
10458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10459 (eval $ac_link) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 OMP_NEST_LOCK_SIZE=`cat conftest.val`
10469 else
10470 echo "$as_me: program exited with status $ac_status" >&5
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10478 rm -f conftest.val
10479 if test "$cross_compiling" = yes; then
10480 # Depending upon the size, compute the lo and hi bounds.
10481 cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h. */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10489 main ()
10491 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)];
10492 test_array [0] = 0
10495 return 0;
10497 _ACEOF
10498 rm -f conftest.$ac_objext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10500 (eval $ac_compile) 2>conftest.er1
10501 ac_status=$?
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } &&
10507 { ac_try='test -z "$ac_c_werror_flag"
10508 || test ! -s conftest.err'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; } &&
10514 { ac_try='test -s conftest.$ac_objext'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10517 ac_status=$?
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }; then
10520 ac_lo=0 ac_mid=0
10521 while :; do
10522 cat >conftest.$ac_ext <<_ACEOF
10523 /* confdefs.h. */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10530 main ()
10532 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10533 test_array [0] = 0
10536 return 0;
10538 _ACEOF
10539 rm -f conftest.$ac_objext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10541 (eval $ac_compile) 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag"
10549 || test ! -s conftest.err'
10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551 (eval $ac_try) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; } &&
10555 { ac_try='test -s conftest.$ac_objext'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; }; then
10561 ac_hi=$ac_mid; break
10562 else
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 ac_lo=`expr $ac_mid + 1`
10567 if test $ac_lo -le $ac_mid; then
10568 ac_lo= ac_hi=
10569 break
10571 ac_mid=`expr 2 '*' $ac_mid + 1`
10573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10574 done
10575 else
10576 echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h. */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10587 main ()
10589 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)];
10590 test_array [0] = 0
10593 return 0;
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598 (eval $ac_compile) 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -z "$ac_c_werror_flag"
10606 || test ! -s conftest.err'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest.$ac_objext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_hi=-1 ac_mid=-1
10619 while :; do
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)) >= $ac_mid)];
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=$ac_mid; break
10660 else
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_hi=`expr '(' $ac_mid ')' - 1`
10665 if test $ac_mid -le $ac_hi; then
10666 ac_lo= ac_hi=
10667 break
10669 ac_mid=`expr 2 '*' $ac_mid`
10671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10672 done
10673 else
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 ac_lo= ac_hi=
10679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10682 # Binary search between lo and hi bounds.
10683 while test "x$ac_lo" != "x$ac_hi"; do
10684 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10685 cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h. */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10693 main ()
10695 static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)];
10696 test_array [0] = 0
10699 return 0;
10701 _ACEOF
10702 rm -f conftest.$ac_objext
10703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10704 (eval $ac_compile) 2>conftest.er1
10705 ac_status=$?
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } &&
10711 { ac_try='test -z "$ac_c_werror_flag"
10712 || test ! -s conftest.err'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; } &&
10718 { ac_try='test -s conftest.$ac_objext'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }; then
10724 ac_hi=$ac_mid
10725 else
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10729 ac_lo=`expr '(' $ac_mid ')' + 1`
10731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10732 done
10733 case $ac_lo in
10734 ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;;
10735 '') ;;
10736 esac
10737 else
10738 if test "$cross_compiling" = yes; then
10739 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10740 See \`config.log' for more details." >&5
10741 echo "$as_me: error: cannot run test program while cross compiling
10742 See \`config.log' for more details." >&2;}
10743 { (exit 1); exit 1; }; }
10744 else
10745 cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h. */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10752 long longval () { return __alignof (omp_nest_lock_t); }
10753 unsigned long ulongval () { return __alignof (omp_nest_lock_t); }
10754 #include <stdio.h>
10755 #include <stdlib.h>
10757 main ()
10760 FILE *f = fopen ("conftest.val", "w");
10761 if (! f)
10762 exit (1);
10763 if ((__alignof (omp_nest_lock_t)) < 0)
10765 long i = longval ();
10766 if (i != (__alignof (omp_nest_lock_t)))
10767 exit (1);
10768 fprintf (f, "%ld\n", i);
10770 else
10772 unsigned long i = ulongval ();
10773 if (i != (__alignof (omp_nest_lock_t)))
10774 exit (1);
10775 fprintf (f, "%lu\n", i);
10777 exit (ferror (f) || fclose (f) != 0);
10780 return 0;
10782 _ACEOF
10783 rm -f conftest$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 OMP_NEST_LOCK_ALIGN=`cat conftest.val`
10795 else
10796 echo "$as_me: program exited with status $ac_status" >&5
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10804 rm -f conftest.val
10806 # If the lock fits in an integer, then arrange for Fortran to use that
10807 # integer. If it doesn't, then arrange for Fortran to use a pointer.
10808 # Except that we don't have a way at present to multi-lib the installed
10809 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
10810 # actual target.
10811 OMP_LOCK_KIND=$OMP_LOCK_SIZE
10812 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
10813 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
10814 OMP_LOCK_KIND=8
10816 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
10817 OMP_NEST_LOCK_KIND=8
10826 CFLAGS="$save_CFLAGS"
10828 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
10830 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
10832 cat >confcache <<\_ACEOF
10833 # This file is a shell script that caches the results of configure
10834 # tests run on this system so they can be shared between configure
10835 # scripts and configure runs, see configure's option --config-cache.
10836 # It is not useful on other systems. If it contains results you don't
10837 # want to keep, you may remove or edit it.
10839 # config.status only pays attention to the cache file if you give it
10840 # the --recheck option to rerun configure.
10842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10844 # following values.
10846 _ACEOF
10848 # The following way of writing the cache mishandles newlines in values,
10849 # but we know of no workaround that is simple, portable, and efficient.
10850 # So, don't put newlines in cache variables' values.
10851 # Ultrix sh set writes to stderr and can't be redirected directly,
10852 # and sets the high bit in the cache file unless we assign to the vars.
10854 (set) 2>&1 |
10855 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10856 *ac_space=\ *)
10857 # `set' does not quote correctly, so add quotes (double-quote
10858 # substitution turns \\\\ into \\, and sed turns \\ into \).
10859 sed -n \
10860 "s/'/'\\\\''/g;
10861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10864 # `set' quotes correctly as required by POSIX, so do not add quotes.
10865 sed -n \
10866 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10868 esac;
10870 sed '
10871 t clear
10872 : clear
10873 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10874 t end
10875 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10876 : end' >>confcache
10877 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10878 if test -w $cache_file; then
10879 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10880 cat confcache >$cache_file
10881 else
10882 echo "not updating unwritable cache $cache_file"
10885 rm -f confcache
10887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10888 # Let make expand exec_prefix.
10889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10891 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10892 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10893 # trailing colons and then remove the whole line if VPATH becomes empty
10894 # (actually we leave an empty line to preserve line numbers).
10895 if test "x$srcdir" = x.; then
10896 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10897 s/:*\$(srcdir):*/:/;
10898 s/:*\${srcdir}:*/:/;
10899 s/:*@srcdir@:*/:/;
10900 s/^\([^=]*=[ ]*\):*/\1/;
10901 s/:*$//;
10902 s/^[^=]*=[ ]*$//;
10906 DEFS=-DHAVE_CONFIG_H
10908 ac_libobjs=
10909 ac_ltlibobjs=
10910 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10911 # 1. Remove the extension, and $U if already installed.
10912 ac_i=`echo "$ac_i" |
10913 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10914 # 2. Add them.
10915 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10916 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10917 done
10918 LIBOBJS=$ac_libobjs
10920 LTLIBOBJS=$ac_ltlibobjs
10923 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10924 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10925 Usually this means the macro was only invoked conditionally." >&5
10926 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10927 Usually this means the macro was only invoked conditionally." >&2;}
10928 { (exit 1); exit 1; }; }
10930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10931 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10932 Usually this means the macro was only invoked conditionally." >&5
10933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10934 Usually this means the macro was only invoked conditionally." >&2;}
10935 { (exit 1); exit 1; }; }
10937 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10938 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10939 Usually this means the macro was only invoked conditionally." >&5
10940 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10941 Usually this means the macro was only invoked conditionally." >&2;}
10942 { (exit 1); exit 1; }; }
10944 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
10945 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
10946 Usually this means the macro was only invoked conditionally." >&5
10947 echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
10948 Usually this means the macro was only invoked conditionally." >&2;}
10949 { (exit 1); exit 1; }; }
10951 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
10952 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined.
10953 Usually this means the macro was only invoked conditionally." >&5
10954 echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined.
10955 Usually this means the macro was only invoked conditionally." >&2;}
10956 { (exit 1); exit 1; }; }
10959 : ${CONFIG_STATUS=./config.status}
10960 ac_clean_files_save=$ac_clean_files
10961 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10962 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10963 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10964 cat >$CONFIG_STATUS <<_ACEOF
10965 #! $SHELL
10966 # Generated by $as_me.
10967 # Run this file to recreate the current configuration.
10968 # Compiler output produced by configure, useful for debugging
10969 # configure, is in config.log if it exists.
10971 debug=false
10972 ac_cs_recheck=false
10973 ac_cs_silent=false
10974 SHELL=\${CONFIG_SHELL-$SHELL}
10975 _ACEOF
10977 cat >>$CONFIG_STATUS <<\_ACEOF
10978 ## --------------------- ##
10979 ## M4sh Initialization. ##
10980 ## --------------------- ##
10982 # Be Bourne compatible
10983 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10984 emulate sh
10985 NULLCMD=:
10986 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10987 # is contrary to our usage. Disable this feature.
10988 alias -g '${1+"$@"}'='"$@"'
10989 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10990 set -o posix
10992 DUALCASE=1; export DUALCASE # for MKS sh
10994 # Support unset when possible.
10995 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10996 as_unset=unset
10997 else
10998 as_unset=false
11002 # Work around bugs in pre-3.0 UWIN ksh.
11003 $as_unset ENV MAIL MAILPATH
11004 PS1='$ '
11005 PS2='> '
11006 PS4='+ '
11008 # NLS nuisances.
11009 for as_var in \
11010 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11011 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11012 LC_TELEPHONE LC_TIME
11014 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11015 eval $as_var=C; export $as_var
11016 else
11017 $as_unset $as_var
11019 done
11021 # Required to use basename.
11022 if expr a : '\(a\)' >/dev/null 2>&1; then
11023 as_expr=expr
11024 else
11025 as_expr=false
11028 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11029 as_basename=basename
11030 else
11031 as_basename=false
11035 # Name of the executable.
11036 as_me=`$as_basename "$0" ||
11037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11038 X"$0" : 'X\(//\)$' \| \
11039 X"$0" : 'X\(/\)$' \| \
11040 . : '\(.\)' 2>/dev/null ||
11041 echo X/"$0" |
11042 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11043 /^X\/\(\/\/\)$/{ s//\1/; q; }
11044 /^X\/\(\/\).*/{ s//\1/; q; }
11045 s/.*/./; q'`
11048 # PATH needs CR, and LINENO needs CR and PATH.
11049 # Avoid depending upon Character Ranges.
11050 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11051 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11052 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11053 as_cr_digits='0123456789'
11054 as_cr_alnum=$as_cr_Letters$as_cr_digits
11056 # The user is always right.
11057 if test "${PATH_SEPARATOR+set}" != set; then
11058 echo "#! /bin/sh" >conf$$.sh
11059 echo "exit 0" >>conf$$.sh
11060 chmod +x conf$$.sh
11061 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11062 PATH_SEPARATOR=';'
11063 else
11064 PATH_SEPARATOR=:
11066 rm -f conf$$.sh
11070 as_lineno_1=$LINENO
11071 as_lineno_2=$LINENO
11072 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11073 test "x$as_lineno_1" != "x$as_lineno_2" &&
11074 test "x$as_lineno_3" = "x$as_lineno_2" || {
11075 # Find who we are. Look in the path if we contain no path at all
11076 # relative or not.
11077 case $0 in
11078 *[\\/]* ) as_myself=$0 ;;
11079 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11085 done
11088 esac
11089 # We did not find ourselves, most probably we were run as `sh COMMAND'
11090 # in which case we are not to be found in the path.
11091 if test "x$as_myself" = x; then
11092 as_myself=$0
11094 if test ! -f "$as_myself"; then
11095 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11096 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11097 { (exit 1); exit 1; }; }
11099 case $CONFIG_SHELL in
11101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11104 IFS=$as_save_IFS
11105 test -z "$as_dir" && as_dir=.
11106 for as_base in sh bash ksh sh5; do
11107 case $as_dir in
11109 if ("$as_dir/$as_base" -c '
11110 as_lineno_1=$LINENO
11111 as_lineno_2=$LINENO
11112 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11113 test "x$as_lineno_1" != "x$as_lineno_2" &&
11114 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11115 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11116 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11117 CONFIG_SHELL=$as_dir/$as_base
11118 export CONFIG_SHELL
11119 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11120 fi;;
11121 esac
11122 done
11123 done
11125 esac
11127 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11128 # uniformly replaced by the line number. The first 'sed' inserts a
11129 # line-number line before each line; the second 'sed' does the real
11130 # work. The second script uses 'N' to pair each line-number line
11131 # with the numbered line, and appends trailing '-' during
11132 # substitution so that $LINENO is not a special case at line end.
11133 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11134 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11135 sed '=' <$as_myself |
11136 sed '
11138 s,$,-,
11139 : loop
11140 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11141 t loop
11142 s,-$,,
11143 s,^['$as_cr_digits']*\n,,
11144 ' >$as_me.lineno &&
11145 chmod +x $as_me.lineno ||
11146 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11147 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11148 { (exit 1); exit 1; }; }
11150 # Don't try to exec as it changes $[0], causing all sort of problems
11151 # (the dirname of $[0] is not the place where we might find the
11152 # original and so on. Autoconf is especially sensible to this).
11153 . ./$as_me.lineno
11154 # Exit status is that of the last command.
11155 exit
11159 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11160 *c*,-n*) ECHO_N= ECHO_C='
11161 ' ECHO_T=' ' ;;
11162 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11163 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11164 esac
11166 if expr a : '\(a\)' >/dev/null 2>&1; then
11167 as_expr=expr
11168 else
11169 as_expr=false
11172 rm -f conf$$ conf$$.exe conf$$.file
11173 echo >conf$$.file
11174 if ln -s conf$$.file conf$$ 2>/dev/null; then
11175 # We could just check for DJGPP; but this test a) works b) is more generic
11176 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11177 if test -f conf$$.exe; then
11178 # Don't use ln at all; we don't have any links
11179 as_ln_s='cp -p'
11180 else
11181 as_ln_s='ln -s'
11183 elif ln conf$$.file conf$$ 2>/dev/null; then
11184 as_ln_s=ln
11185 else
11186 as_ln_s='cp -p'
11188 rm -f conf$$ conf$$.exe conf$$.file
11190 if mkdir -p . 2>/dev/null; then
11191 as_mkdir_p=:
11192 else
11193 test -d ./-p && rmdir ./-p
11194 as_mkdir_p=false
11197 as_executable_p="test -f"
11199 # Sed expression to map a string onto a valid CPP name.
11200 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11202 # Sed expression to map a string onto a valid variable name.
11203 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11206 # IFS
11207 # We need space, tab and new line, in precisely that order.
11208 as_nl='
11210 IFS=" $as_nl"
11212 # CDPATH.
11213 $as_unset CDPATH
11215 exec 6>&1
11217 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11218 # report actual input values of CONFIG_FILES etc. instead of their
11219 # values after options handling. Logging --version etc. is OK.
11220 exec 5>>config.log
11222 echo
11223 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11224 ## Running $as_me. ##
11225 _ASBOX
11226 } >&5
11227 cat >&5 <<_CSEOF
11229 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
11230 generated by GNU Autoconf 2.59. Invocation command line was
11232 CONFIG_FILES = $CONFIG_FILES
11233 CONFIG_HEADERS = $CONFIG_HEADERS
11234 CONFIG_LINKS = $CONFIG_LINKS
11235 CONFIG_COMMANDS = $CONFIG_COMMANDS
11236 $ $0 $@
11238 _CSEOF
11239 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11240 echo >&5
11241 _ACEOF
11243 # Files that config.status was made for.
11244 if test -n "$ac_config_files"; then
11245 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11248 if test -n "$ac_config_headers"; then
11249 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11252 if test -n "$ac_config_links"; then
11253 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11256 if test -n "$ac_config_commands"; then
11257 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11260 cat >>$CONFIG_STATUS <<\_ACEOF
11262 ac_cs_usage="\
11263 \`$as_me' instantiates files from templates according to the
11264 current configuration.
11266 Usage: $0 [OPTIONS] [FILE]...
11268 -h, --help print this help, then exit
11269 -V, --version print version number, then exit
11270 -q, --quiet do not print progress messages
11271 -d, --debug don't remove temporary files
11272 --recheck update $as_me by reconfiguring in the same conditions
11273 --file=FILE[:TEMPLATE]
11274 instantiate the configuration file FILE
11275 --header=FILE[:TEMPLATE]
11276 instantiate the configuration header FILE
11278 Configuration files:
11279 $config_files
11281 Configuration headers:
11282 $config_headers
11284 Configuration commands:
11285 $config_commands
11287 Report bugs to <bug-autoconf@gnu.org>."
11288 _ACEOF
11290 cat >>$CONFIG_STATUS <<_ACEOF
11291 ac_cs_version="\\
11292 GNU OpenMP Runtime Library config.status 1.0
11293 configured by $0, generated by GNU Autoconf 2.59,
11294 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11296 Copyright (C) 2003 Free Software Foundation, Inc.
11297 This config.status script is free software; the Free Software Foundation
11298 gives unlimited permission to copy, distribute and modify it."
11299 srcdir=$srcdir
11300 INSTALL="$INSTALL"
11301 _ACEOF
11303 cat >>$CONFIG_STATUS <<\_ACEOF
11304 # If no file are specified by the user, then we need to provide default
11305 # value. By we need to know if files were specified by the user.
11306 ac_need_defaults=:
11307 while test $# != 0
11309 case $1 in
11310 --*=*)
11311 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11312 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11313 ac_shift=:
11316 ac_option=$1
11317 ac_optarg=$2
11318 ac_shift=shift
11320 *) # This is not an option, so the user has probably given explicit
11321 # arguments.
11322 ac_option=$1
11323 ac_need_defaults=false;;
11324 esac
11326 case $ac_option in
11327 # Handling of the options.
11328 _ACEOF
11329 cat >>$CONFIG_STATUS <<\_ACEOF
11330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11331 ac_cs_recheck=: ;;
11332 --version | --vers* | -V )
11333 echo "$ac_cs_version"; exit 0 ;;
11334 --he | --h)
11335 # Conflict between --help and --header
11336 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11337 Try \`$0 --help' for more information." >&5
11338 echo "$as_me: error: ambiguous option: $1
11339 Try \`$0 --help' for more information." >&2;}
11340 { (exit 1); exit 1; }; };;
11341 --help | --hel | -h )
11342 echo "$ac_cs_usage"; exit 0 ;;
11343 --debug | --d* | -d )
11344 debug=: ;;
11345 --file | --fil | --fi | --f )
11346 $ac_shift
11347 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11348 ac_need_defaults=false;;
11349 --header | --heade | --head | --hea )
11350 $ac_shift
11351 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11352 ac_need_defaults=false;;
11353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11354 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11355 ac_cs_silent=: ;;
11357 # This is an error.
11358 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11359 Try \`$0 --help' for more information." >&5
11360 echo "$as_me: error: unrecognized option: $1
11361 Try \`$0 --help' for more information." >&2;}
11362 { (exit 1); exit 1; }; } ;;
11364 *) ac_config_targets="$ac_config_targets $1" ;;
11366 esac
11367 shift
11368 done
11370 ac_configure_extra_args=
11372 if $ac_cs_silent; then
11373 exec 6>/dev/null
11374 ac_configure_extra_args="$ac_configure_extra_args --silent"
11377 _ACEOF
11378 cat >>$CONFIG_STATUS <<_ACEOF
11379 if \$ac_cs_recheck; then
11380 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11381 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11384 _ACEOF
11386 cat >>$CONFIG_STATUS <<_ACEOF
11388 # INIT-COMMANDS section.
11392 srcdir="$srcdir"
11393 host="$host"
11394 target="$target"
11395 with_multisubdir="$with_multisubdir"
11396 with_multisrctop="$with_multisrctop"
11397 with_target_subdir="$with_target_subdir"
11398 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11399 multi_basedir="$multi_basedir"
11400 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11401 CC="$CC"
11402 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11404 GCC="$GCC"
11405 CC="$CC"
11406 acx_cv_header_stdint="$acx_cv_header_stdint"
11407 acx_cv_type_int8_t="$acx_cv_type_int8_t"
11408 acx_cv_type_int16_t="$acx_cv_type_int16_t"
11409 acx_cv_type_int32_t="$acx_cv_type_int32_t"
11410 acx_cv_type_int64_t="$acx_cv_type_int64_t"
11411 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
11412 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
11413 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
11414 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
11415 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
11416 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
11417 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
11418 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
11419 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
11422 _ACEOF
11426 cat >>$CONFIG_STATUS <<\_ACEOF
11427 for ac_config_target in $ac_config_targets
11429 case "$ac_config_target" in
11430 # Handling of arguments.
11431 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;;
11432 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
11433 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
11434 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
11435 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11436 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
11437 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
11438 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11439 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11440 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
11441 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11442 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11443 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11444 { (exit 1); exit 1; }; };;
11445 esac
11446 done
11448 # If the user did not use the arguments to specify the items to instantiate,
11449 # then the envvar interface is used. Set only those that are not.
11450 # We use the long form for the default assignment because of an extremely
11451 # bizarre bug on SunOS 4.1.3.
11452 if $ac_need_defaults; then
11453 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11454 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11455 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11458 # Have a temporary directory for convenience. Make it in the build tree
11459 # simply because there is no reason to put it here, and in addition,
11460 # creating and moving files from /tmp can sometimes cause problems.
11461 # Create a temporary directory, and hook for its removal unless debugging.
11462 $debug ||
11464 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11465 trap '{ (exit 1); exit 1; }' 1 2 13 15
11468 # Create a (secure) tmp directory for tmp files.
11471 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11472 test -n "$tmp" && test -d "$tmp"
11473 } ||
11475 tmp=./confstat$$-$RANDOM
11476 (umask 077 && mkdir $tmp)
11477 } ||
11479 echo "$me: cannot create a temporary directory in ." >&2
11480 { (exit 1); exit 1; }
11483 _ACEOF
11485 cat >>$CONFIG_STATUS <<_ACEOF
11488 # CONFIG_FILES section.
11491 # No need to generate the scripts if there are no CONFIG_FILES.
11492 # This happens for instance when ./config.status config.h
11493 if test -n "\$CONFIG_FILES"; then
11494 # Protect against being on the right side of a sed subst in config.status.
11495 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11496 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11497 s,@SHELL@,$SHELL,;t t
11498 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11499 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11500 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11501 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11502 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11503 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11504 s,@exec_prefix@,$exec_prefix,;t t
11505 s,@prefix@,$prefix,;t t
11506 s,@program_transform_name@,$program_transform_name,;t t
11507 s,@bindir@,$bindir,;t t
11508 s,@sbindir@,$sbindir,;t t
11509 s,@libexecdir@,$libexecdir,;t t
11510 s,@datadir@,$datadir,;t t
11511 s,@sysconfdir@,$sysconfdir,;t t
11512 s,@sharedstatedir@,$sharedstatedir,;t t
11513 s,@localstatedir@,$localstatedir,;t t
11514 s,@libdir@,$libdir,;t t
11515 s,@includedir@,$includedir,;t t
11516 s,@oldincludedir@,$oldincludedir,;t t
11517 s,@infodir@,$infodir,;t t
11518 s,@mandir@,$mandir,;t t
11519 s,@build_alias@,$build_alias,;t t
11520 s,@host_alias@,$host_alias,;t t
11521 s,@target_alias@,$target_alias,;t t
11522 s,@DEFS@,$DEFS,;t t
11523 s,@ECHO_C@,$ECHO_C,;t t
11524 s,@ECHO_N@,$ECHO_N,;t t
11525 s,@ECHO_T@,$ECHO_T,;t t
11526 s,@LIBS@,$LIBS,;t t
11527 s,@build@,$build,;t t
11528 s,@build_cpu@,$build_cpu,;t t
11529 s,@build_vendor@,$build_vendor,;t t
11530 s,@build_os@,$build_os,;t t
11531 s,@host@,$host,;t t
11532 s,@host_cpu@,$host_cpu,;t t
11533 s,@host_vendor@,$host_vendor,;t t
11534 s,@host_os@,$host_os,;t t
11535 s,@target@,$target,;t t
11536 s,@target_cpu@,$target_cpu,;t t
11537 s,@target_vendor@,$target_vendor,;t t
11538 s,@target_os@,$target_os,;t t
11539 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11540 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11541 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11542 s,@CYGPATH_W@,$CYGPATH_W,;t t
11543 s,@PACKAGE@,$PACKAGE,;t t
11544 s,@VERSION@,$VERSION,;t t
11545 s,@ACLOCAL@,$ACLOCAL,;t t
11546 s,@AUTOCONF@,$AUTOCONF,;t t
11547 s,@AUTOMAKE@,$AUTOMAKE,;t t
11548 s,@AUTOHEADER@,$AUTOHEADER,;t t
11549 s,@MAKEINFO@,$MAKEINFO,;t t
11550 s,@install_sh@,$install_sh,;t t
11551 s,@STRIP@,$STRIP,;t t
11552 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11553 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11554 s,@mkdir_p@,$mkdir_p,;t t
11555 s,@AWK@,$AWK,;t t
11556 s,@SET_MAKE@,$SET_MAKE,;t t
11557 s,@am__leading_dot@,$am__leading_dot,;t t
11558 s,@AMTAR@,$AMTAR,;t t
11559 s,@am__tar@,$am__tar,;t t
11560 s,@am__untar@,$am__untar,;t t
11561 s,@multi_basedir@,$multi_basedir,;t t
11562 s,@toolexecdir@,$toolexecdir,;t t
11563 s,@toolexeclibdir@,$toolexeclibdir,;t t
11564 s,@CC@,$CC,;t t
11565 s,@ac_ct_CC@,$ac_ct_CC,;t t
11566 s,@EXEEXT@,$EXEEXT,;t t
11567 s,@OBJEXT@,$OBJEXT,;t t
11568 s,@DEPDIR@,$DEPDIR,;t t
11569 s,@am__include@,$am__include,;t t
11570 s,@am__quote@,$am__quote,;t t
11571 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11572 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11573 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11574 s,@CCDEPMODE@,$CCDEPMODE,;t t
11575 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11576 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11577 s,@CFLAGS@,$CFLAGS,;t t
11578 s,@AR@,$AR,;t t
11579 s,@ac_ct_AR@,$ac_ct_AR,;t t
11580 s,@RANLIB@,$RANLIB,;t t
11581 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11582 s,@PERL@,$PERL,;t t
11583 s,@LN_S@,$LN_S,;t t
11584 s,@LIBTOOL@,$LIBTOOL,;t t
11585 s,@enable_shared@,$enable_shared,;t t
11586 s,@enable_static@,$enable_static,;t t
11587 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11588 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11589 s,@MAINT@,$MAINT,;t t
11590 s,@FC@,$FC,;t t
11591 s,@FCFLAGS@,$FCFLAGS,;t t
11592 s,@LDFLAGS@,$LDFLAGS,;t t
11593 s,@ac_ct_FC@,$ac_ct_FC,;t t
11594 s,@libtool_VERSION@,$libtool_VERSION,;t t
11595 s,@CPP@,$CPP,;t t
11596 s,@CPPFLAGS@,$CPPFLAGS,;t t
11597 s,@EGREP@,$EGREP,;t t
11598 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
11599 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
11600 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t
11601 s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t
11602 s,@config_path@,$config_path,;t t
11603 s,@XCFLAGS@,$XCFLAGS,;t t
11604 s,@XLDFLAGS@,$XLDFLAGS,;t t
11605 s,@link_gomp@,$link_gomp,;t t
11606 s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t
11607 s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t
11608 s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t
11609 s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t
11610 s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t
11611 s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t
11612 s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t
11613 s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t
11614 s,@LIBOBJS@,$LIBOBJS,;t t
11615 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11616 CEOF
11618 _ACEOF
11620 cat >>$CONFIG_STATUS <<\_ACEOF
11621 # Split the substitutions into bite-sized pieces for seds with
11622 # small command number limits, like on Digital OSF/1 and HP-UX.
11623 ac_max_sed_lines=48
11624 ac_sed_frag=1 # Number of current file.
11625 ac_beg=1 # First line for current file.
11626 ac_end=$ac_max_sed_lines # Line after last line for current file.
11627 ac_more_lines=:
11628 ac_sed_cmds=
11629 while $ac_more_lines; do
11630 if test $ac_beg -gt 1; then
11631 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11632 else
11633 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11635 if test ! -s $tmp/subs.frag; then
11636 ac_more_lines=false
11637 else
11638 # The purpose of the label and of the branching condition is to
11639 # speed up the sed processing (if there are no `@' at all, there
11640 # is no need to browse any of the substitutions).
11641 # These are the two extra sed commands mentioned above.
11642 (echo ':t
11643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11644 if test -z "$ac_sed_cmds"; then
11645 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11646 else
11647 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11649 ac_sed_frag=`expr $ac_sed_frag + 1`
11650 ac_beg=$ac_end
11651 ac_end=`expr $ac_end + $ac_max_sed_lines`
11653 done
11654 if test -z "$ac_sed_cmds"; then
11655 ac_sed_cmds=cat
11657 fi # test -n "$CONFIG_FILES"
11659 _ACEOF
11660 cat >>$CONFIG_STATUS <<\_ACEOF
11661 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11663 case $ac_file in
11664 - | *:- | *:-:* ) # input from stdin
11665 cat >$tmp/stdin
11666 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11668 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11670 * ) ac_file_in=$ac_file.in ;;
11671 esac
11673 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11674 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11675 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11676 X"$ac_file" : 'X\(//\)[^/]' \| \
11677 X"$ac_file" : 'X\(//\)$' \| \
11678 X"$ac_file" : 'X\(/\)' \| \
11679 . : '\(.\)' 2>/dev/null ||
11680 echo X"$ac_file" |
11681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11683 /^X\(\/\/\)$/{ s//\1/; q; }
11684 /^X\(\/\).*/{ s//\1/; q; }
11685 s/.*/./; q'`
11686 { if $as_mkdir_p; then
11687 mkdir -p "$ac_dir"
11688 else
11689 as_dir="$ac_dir"
11690 as_dirs=
11691 while test ! -d "$as_dir"; do
11692 as_dirs="$as_dir $as_dirs"
11693 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11695 X"$as_dir" : 'X\(//\)[^/]' \| \
11696 X"$as_dir" : 'X\(//\)$' \| \
11697 X"$as_dir" : 'X\(/\)' \| \
11698 . : '\(.\)' 2>/dev/null ||
11699 echo X"$as_dir" |
11700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11702 /^X\(\/\/\)$/{ s//\1/; q; }
11703 /^X\(\/\).*/{ s//\1/; q; }
11704 s/.*/./; q'`
11705 done
11706 test ! -n "$as_dirs" || mkdir $as_dirs
11707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11708 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11709 { (exit 1); exit 1; }; }; }
11711 ac_builddir=.
11713 if test "$ac_dir" != .; then
11714 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11715 # A "../" for each directory in $ac_dir_suffix.
11716 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11717 else
11718 ac_dir_suffix= ac_top_builddir=
11721 case $srcdir in
11722 .) # No --srcdir option. We are building in place.
11723 ac_srcdir=.
11724 if test -z "$ac_top_builddir"; then
11725 ac_top_srcdir=.
11726 else
11727 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11728 fi ;;
11729 [\\/]* | ?:[\\/]* ) # Absolute path.
11730 ac_srcdir=$srcdir$ac_dir_suffix;
11731 ac_top_srcdir=$srcdir ;;
11732 *) # Relative path.
11733 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11734 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11735 esac
11737 # Do not use `cd foo && pwd` to compute absolute paths, because
11738 # the directories may not exist.
11739 case `pwd` in
11740 .) ac_abs_builddir="$ac_dir";;
11742 case "$ac_dir" in
11743 .) ac_abs_builddir=`pwd`;;
11744 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11745 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11746 esac;;
11747 esac
11748 case $ac_abs_builddir in
11749 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11751 case ${ac_top_builddir}. in
11752 .) ac_abs_top_builddir=$ac_abs_builddir;;
11753 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11754 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11755 esac;;
11756 esac
11757 case $ac_abs_builddir in
11758 .) ac_abs_srcdir=$ac_srcdir;;
11760 case $ac_srcdir in
11761 .) ac_abs_srcdir=$ac_abs_builddir;;
11762 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11763 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11764 esac;;
11765 esac
11766 case $ac_abs_builddir in
11767 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11769 case $ac_top_srcdir in
11770 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11771 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11772 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11773 esac;;
11774 esac
11777 case $INSTALL in
11778 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11779 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11780 esac
11782 if test x"$ac_file" != x-; then
11783 { echo "$as_me:$LINENO: creating $ac_file" >&5
11784 echo "$as_me: creating $ac_file" >&6;}
11785 rm -f "$ac_file"
11787 # Let's still pretend it is `configure' which instantiates (i.e., don't
11788 # use $as_me), people would be surprised to read:
11789 # /* config.h. Generated by config.status. */
11790 if test x"$ac_file" = x-; then
11791 configure_input=
11792 else
11793 configure_input="$ac_file. "
11795 configure_input=$configure_input"Generated from `echo $ac_file_in |
11796 sed 's,.*/,,'` by configure."
11798 # First look for the input files in the build tree, otherwise in the
11799 # src tree.
11800 ac_file_inputs=`IFS=:
11801 for f in $ac_file_in; do
11802 case $f in
11803 -) echo $tmp/stdin ;;
11804 [\\/$]*)
11805 # Absolute (can't be DOS-style, as IFS=:)
11806 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11807 echo "$as_me: error: cannot find input file: $f" >&2;}
11808 { (exit 1); exit 1; }; }
11809 echo "$f";;
11810 *) # Relative
11811 if test -f "$f"; then
11812 # Build tree
11813 echo "$f"
11814 elif test -f "$srcdir/$f"; then
11815 # Source tree
11816 echo "$srcdir/$f"
11817 else
11818 # /dev/null tree
11819 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11820 echo "$as_me: error: cannot find input file: $f" >&2;}
11821 { (exit 1); exit 1; }; }
11822 fi;;
11823 esac
11824 done` || { (exit 1); exit 1; }
11825 _ACEOF
11826 cat >>$CONFIG_STATUS <<_ACEOF
11827 sed "$ac_vpsub
11828 $extrasub
11829 _ACEOF
11830 cat >>$CONFIG_STATUS <<\_ACEOF
11832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11833 s,@configure_input@,$configure_input,;t t
11834 s,@srcdir@,$ac_srcdir,;t t
11835 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11836 s,@top_srcdir@,$ac_top_srcdir,;t t
11837 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11838 s,@builddir@,$ac_builddir,;t t
11839 s,@abs_builddir@,$ac_abs_builddir,;t t
11840 s,@top_builddir@,$ac_top_builddir,;t t
11841 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11842 s,@INSTALL@,$ac_INSTALL,;t t
11843 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11844 rm -f $tmp/stdin
11845 if test x"$ac_file" != x-; then
11846 mv $tmp/out $ac_file
11847 else
11848 cat $tmp/out
11849 rm -f $tmp/out
11852 done
11853 _ACEOF
11854 cat >>$CONFIG_STATUS <<\_ACEOF
11857 # CONFIG_HEADER section.
11860 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11861 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11863 # ac_d sets the value in "#define NAME VALUE" lines.
11864 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11865 ac_dB='[ ].*$,\1#\2'
11866 ac_dC=' '
11867 ac_dD=',;t'
11868 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11869 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11870 ac_uB='$,\1#\2define\3'
11871 ac_uC=' '
11872 ac_uD=',;t'
11874 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11875 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11876 case $ac_file in
11877 - | *:- | *:-:* ) # input from stdin
11878 cat >$tmp/stdin
11879 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11880 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11881 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11883 * ) ac_file_in=$ac_file.in ;;
11884 esac
11886 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11887 echo "$as_me: creating $ac_file" >&6;}
11889 # First look for the input files in the build tree, otherwise in the
11890 # src tree.
11891 ac_file_inputs=`IFS=:
11892 for f in $ac_file_in; do
11893 case $f in
11894 -) echo $tmp/stdin ;;
11895 [\\/$]*)
11896 # Absolute (can't be DOS-style, as IFS=:)
11897 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11898 echo "$as_me: error: cannot find input file: $f" >&2;}
11899 { (exit 1); exit 1; }; }
11900 # Do quote $f, to prevent DOS paths from being IFS'd.
11901 echo "$f";;
11902 *) # Relative
11903 if test -f "$f"; then
11904 # Build tree
11905 echo "$f"
11906 elif test -f "$srcdir/$f"; then
11907 # Source tree
11908 echo "$srcdir/$f"
11909 else
11910 # /dev/null tree
11911 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11912 echo "$as_me: error: cannot find input file: $f" >&2;}
11913 { (exit 1); exit 1; }; }
11914 fi;;
11915 esac
11916 done` || { (exit 1); exit 1; }
11917 # Remove the trailing spaces.
11918 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11920 _ACEOF
11922 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11923 # `conftest.undefs', that substitutes the proper values into
11924 # config.h.in to produce config.h. The first handles `#define'
11925 # templates, and the second `#undef' templates.
11926 # And first: Protect against being on the right side of a sed subst in
11927 # config.status. Protect against being in an unquoted here document
11928 # in config.status.
11929 rm -f conftest.defines conftest.undefs
11930 # Using a here document instead of a string reduces the quoting nightmare.
11931 # Putting comments in sed scripts is not portable.
11933 # `end' is used to avoid that the second main sed command (meant for
11934 # 0-ary CPP macros) applies to n-ary macro definitions.
11935 # See the Autoconf documentation for `clear'.
11936 cat >confdef2sed.sed <<\_ACEOF
11937 s/[\\&,]/\\&/g
11938 s,[\\$`],\\&,g
11939 t clear
11940 : clear
11941 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11942 t end
11943 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11944 : end
11945 _ACEOF
11946 # If some macros were called several times there might be several times
11947 # the same #defines, which is useless. Nevertheless, we may not want to
11948 # sort them, since we want the *last* AC-DEFINE to be honored.
11949 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11950 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11951 rm -f confdef2sed.sed
11953 # This sed command replaces #undef with comments. This is necessary, for
11954 # example, in the case of _POSIX_SOURCE, which is predefined and required
11955 # on some systems where configure will not decide to define it.
11956 cat >>conftest.undefs <<\_ACEOF
11957 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11958 _ACEOF
11960 # Break up conftest.defines because some shells have a limit on the size
11961 # of here documents, and old seds have small limits too (100 cmds).
11962 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11963 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11964 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11965 echo ' :' >>$CONFIG_STATUS
11966 rm -f conftest.tail
11967 while grep . conftest.defines >/dev/null
11969 # Write a limited-size here document to $tmp/defines.sed.
11970 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11971 # Speed up: don't consider the non `#define' lines.
11972 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11973 # Work around the forget-to-reset-the-flag bug.
11974 echo 't clr' >>$CONFIG_STATUS
11975 echo ': clr' >>$CONFIG_STATUS
11976 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11977 echo 'CEOF
11978 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11979 rm -f $tmp/in
11980 mv $tmp/out $tmp/in
11981 ' >>$CONFIG_STATUS
11982 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11983 rm -f conftest.defines
11984 mv conftest.tail conftest.defines
11985 done
11986 rm -f conftest.defines
11987 echo ' fi # grep' >>$CONFIG_STATUS
11988 echo >>$CONFIG_STATUS
11990 # Break up conftest.undefs because some shells have a limit on the size
11991 # of here documents, and old seds have small limits too (100 cmds).
11992 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11993 rm -f conftest.tail
11994 while grep . conftest.undefs >/dev/null
11996 # Write a limited-size here document to $tmp/undefs.sed.
11997 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11998 # Speed up: don't consider the non `#undef'
11999 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12000 # Work around the forget-to-reset-the-flag bug.
12001 echo 't clr' >>$CONFIG_STATUS
12002 echo ': clr' >>$CONFIG_STATUS
12003 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12004 echo 'CEOF
12005 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12006 rm -f $tmp/in
12007 mv $tmp/out $tmp/in
12008 ' >>$CONFIG_STATUS
12009 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12010 rm -f conftest.undefs
12011 mv conftest.tail conftest.undefs
12012 done
12013 rm -f conftest.undefs
12015 cat >>$CONFIG_STATUS <<\_ACEOF
12016 # Let's still pretend it is `configure' which instantiates (i.e., don't
12017 # use $as_me), people would be surprised to read:
12018 # /* config.h. Generated by config.status. */
12019 if test x"$ac_file" = x-; then
12020 echo "/* Generated by configure. */" >$tmp/config.h
12021 else
12022 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12024 cat $tmp/in >>$tmp/config.h
12025 rm -f $tmp/in
12026 if test x"$ac_file" != x-; then
12027 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12028 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12029 echo "$as_me: $ac_file is unchanged" >&6;}
12030 else
12031 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12032 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12033 X"$ac_file" : 'X\(//\)[^/]' \| \
12034 X"$ac_file" : 'X\(//\)$' \| \
12035 X"$ac_file" : 'X\(/\)' \| \
12036 . : '\(.\)' 2>/dev/null ||
12037 echo X"$ac_file" |
12038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12040 /^X\(\/\/\)$/{ s//\1/; q; }
12041 /^X\(\/\).*/{ s//\1/; q; }
12042 s/.*/./; q'`
12043 { if $as_mkdir_p; then
12044 mkdir -p "$ac_dir"
12045 else
12046 as_dir="$ac_dir"
12047 as_dirs=
12048 while test ! -d "$as_dir"; do
12049 as_dirs="$as_dir $as_dirs"
12050 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12052 X"$as_dir" : 'X\(//\)[^/]' \| \
12053 X"$as_dir" : 'X\(//\)$' \| \
12054 X"$as_dir" : 'X\(/\)' \| \
12055 . : '\(.\)' 2>/dev/null ||
12056 echo X"$as_dir" |
12057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12059 /^X\(\/\/\)$/{ s//\1/; q; }
12060 /^X\(\/\).*/{ s//\1/; q; }
12061 s/.*/./; q'`
12062 done
12063 test ! -n "$as_dirs" || mkdir $as_dirs
12064 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12065 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12066 { (exit 1); exit 1; }; }; }
12068 rm -f $ac_file
12069 mv $tmp/config.h $ac_file
12071 else
12072 cat $tmp/config.h
12073 rm -f $tmp/config.h
12075 # Compute $ac_file's index in $config_headers.
12076 _am_stamp_count=1
12077 for _am_header in $config_headers :; do
12078 case $_am_header in
12079 $ac_file | $ac_file:* )
12080 break ;;
12082 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12083 esac
12084 done
12085 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12086 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12087 X$ac_file : 'X\(//\)[^/]' \| \
12088 X$ac_file : 'X\(//\)$' \| \
12089 X$ac_file : 'X\(/\)' \| \
12090 . : '\(.\)' 2>/dev/null ||
12091 echo X$ac_file |
12092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12094 /^X\(\/\/\)$/{ s//\1/; q; }
12095 /^X\(\/\).*/{ s//\1/; q; }
12096 s/.*/./; q'`/stamp-h$_am_stamp_count
12097 done
12098 _ACEOF
12099 cat >>$CONFIG_STATUS <<\_ACEOF
12102 # CONFIG_COMMANDS section.
12104 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12105 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12106 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12107 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12108 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12109 X"$ac_dest" : 'X\(//\)[^/]' \| \
12110 X"$ac_dest" : 'X\(//\)$' \| \
12111 X"$ac_dest" : 'X\(/\)' \| \
12112 . : '\(.\)' 2>/dev/null ||
12113 echo X"$ac_dest" |
12114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12116 /^X\(\/\/\)$/{ s//\1/; q; }
12117 /^X\(\/\).*/{ s//\1/; q; }
12118 s/.*/./; q'`
12119 { if $as_mkdir_p; then
12120 mkdir -p "$ac_dir"
12121 else
12122 as_dir="$ac_dir"
12123 as_dirs=
12124 while test ! -d "$as_dir"; do
12125 as_dirs="$as_dir $as_dirs"
12126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12128 X"$as_dir" : 'X\(//\)[^/]' \| \
12129 X"$as_dir" : 'X\(//\)$' \| \
12130 X"$as_dir" : 'X\(/\)' \| \
12131 . : '\(.\)' 2>/dev/null ||
12132 echo X"$as_dir" |
12133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12135 /^X\(\/\/\)$/{ s//\1/; q; }
12136 /^X\(\/\).*/{ s//\1/; q; }
12137 s/.*/./; q'`
12138 done
12139 test ! -n "$as_dirs" || mkdir $as_dirs
12140 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12141 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12142 { (exit 1); exit 1; }; }; }
12144 ac_builddir=.
12146 if test "$ac_dir" != .; then
12147 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12148 # A "../" for each directory in $ac_dir_suffix.
12149 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12150 else
12151 ac_dir_suffix= ac_top_builddir=
12154 case $srcdir in
12155 .) # No --srcdir option. We are building in place.
12156 ac_srcdir=.
12157 if test -z "$ac_top_builddir"; then
12158 ac_top_srcdir=.
12159 else
12160 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12161 fi ;;
12162 [\\/]* | ?:[\\/]* ) # Absolute path.
12163 ac_srcdir=$srcdir$ac_dir_suffix;
12164 ac_top_srcdir=$srcdir ;;
12165 *) # Relative path.
12166 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12167 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12168 esac
12170 # Do not use `cd foo && pwd` to compute absolute paths, because
12171 # the directories may not exist.
12172 case `pwd` in
12173 .) ac_abs_builddir="$ac_dir";;
12175 case "$ac_dir" in
12176 .) ac_abs_builddir=`pwd`;;
12177 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12178 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12179 esac;;
12180 esac
12181 case $ac_abs_builddir in
12182 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12184 case ${ac_top_builddir}. in
12185 .) ac_abs_top_builddir=$ac_abs_builddir;;
12186 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12187 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12188 esac;;
12189 esac
12190 case $ac_abs_builddir in
12191 .) ac_abs_srcdir=$ac_srcdir;;
12193 case $ac_srcdir in
12194 .) ac_abs_srcdir=$ac_abs_builddir;;
12195 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12196 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12197 esac;;
12198 esac
12199 case $ac_abs_builddir in
12200 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12202 case $ac_top_srcdir in
12203 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12204 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12205 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12206 esac;;
12207 esac
12210 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12211 echo "$as_me: executing $ac_dest commands" >&6;}
12212 case $ac_dest in
12213 default-1 )
12214 # Only add multilib support code if we just rebuilt the top-level
12215 # Makefile.
12216 case " $CONFIG_FILES " in
12217 *" Makefile "*)
12218 ac_file=Makefile . ${multi_basedir}/config-ml.in
12220 esac ;;
12221 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12222 # Strip MF so we end up with the name of the file.
12223 mf=`echo "$mf" | sed -e 's/:.*$//'`
12224 # Check whether this is an Automake generated Makefile or not.
12225 # We used to match only the files named `Makefile.in', but
12226 # some people rename them; so instead we look at the file content.
12227 # Grep'ing the first line is not enough: some people post-process
12228 # each Makefile.in and add a new line on top of each file to say so.
12229 # So let's grep whole file.
12230 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12231 dirpart=`(dirname "$mf") 2>/dev/null ||
12232 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12233 X"$mf" : 'X\(//\)[^/]' \| \
12234 X"$mf" : 'X\(//\)$' \| \
12235 X"$mf" : 'X\(/\)' \| \
12236 . : '\(.\)' 2>/dev/null ||
12237 echo X"$mf" |
12238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12240 /^X\(\/\/\)$/{ s//\1/; q; }
12241 /^X\(\/\).*/{ s//\1/; q; }
12242 s/.*/./; q'`
12243 else
12244 continue
12246 # Extract the definition of DEPDIR, am__include, and am__quote
12247 # from the Makefile without running `make'.
12248 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12249 test -z "$DEPDIR" && continue
12250 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12251 test -z "am__include" && continue
12252 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12253 # When using ansi2knr, U may be empty or an underscore; expand it
12254 U=`sed -n 's/^U = //p' < "$mf"`
12255 # Find all dependency output files, they are included files with
12256 # $(DEPDIR) in their names. We invoke sed twice because it is the
12257 # simplest approach to changing $(DEPDIR) to its actual value in the
12258 # expansion.
12259 for file in `sed -n "
12260 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12261 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12262 # Make sure the directory exists.
12263 test -f "$dirpart/$file" && continue
12264 fdir=`(dirname "$file") 2>/dev/null ||
12265 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12266 X"$file" : 'X\(//\)[^/]' \| \
12267 X"$file" : 'X\(//\)$' \| \
12268 X"$file" : 'X\(/\)' \| \
12269 . : '\(.\)' 2>/dev/null ||
12270 echo X"$file" |
12271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12273 /^X\(\/\/\)$/{ s//\1/; q; }
12274 /^X\(\/\).*/{ s//\1/; q; }
12275 s/.*/./; q'`
12276 { if $as_mkdir_p; then
12277 mkdir -p $dirpart/$fdir
12278 else
12279 as_dir=$dirpart/$fdir
12280 as_dirs=
12281 while test ! -d "$as_dir"; do
12282 as_dirs="$as_dir $as_dirs"
12283 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12285 X"$as_dir" : 'X\(//\)[^/]' \| \
12286 X"$as_dir" : 'X\(//\)$' \| \
12287 X"$as_dir" : 'X\(/\)' \| \
12288 . : '\(.\)' 2>/dev/null ||
12289 echo X"$as_dir" |
12290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12292 /^X\(\/\/\)$/{ s//\1/; q; }
12293 /^X\(\/\).*/{ s//\1/; q; }
12294 s/.*/./; q'`
12295 done
12296 test ! -n "$as_dirs" || mkdir $as_dirs
12297 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12298 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12299 { (exit 1); exit 1; }; }; }
12301 # echo "creating $dirpart/$file"
12302 echo '# dummy' > "$dirpart/$file"
12303 done
12304 done
12306 gstdint.h )
12307 if test "$GCC" = yes; then
12308 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
12309 else
12310 echo "/* generated for $CC */" > tmp-stdint.h
12313 sed 's/^ *//' >> tmp-stdint.h <<EOF
12315 #ifndef GCC_GENERATED_STDINT_H
12316 #define GCC_GENERATED_STDINT_H 1
12318 #include <sys/types.h>
12321 if test "$acx_cv_header_stdint" != stdint.h; then
12322 echo "#include <stddef.h>" >> tmp-stdint.h
12324 if test "$acx_cv_header_stdint" != stddef.h; then
12325 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
12328 sed 's/^ *//' >> tmp-stdint.h <<EOF
12329 /* glibc uses these symbols as guards to prevent redefinitions. */
12330 #ifdef __int8_t_defined
12331 #define _INT8_T
12332 #define _INT16_T
12333 #define _INT32_T
12334 #endif
12335 #ifdef __uint32_t_defined
12336 #define _UINT32_T
12337 #endif
12341 # ----------------- done header, emit basic int types -------------
12342 if test "$acx_cv_header_stdint" = stddef.h; then
12343 sed 's/^ *//' >> tmp-stdint.h <<EOF
12345 #ifndef _UINT8_T
12346 #define _UINT8_T
12347 typedef unsigned $acx_cv_type_int8_t uint8_t;
12348 #endif
12350 #ifndef _UINT16_T
12351 #define _UINT16_T
12352 typedef unsigned $acx_cv_type_int16_t uint16_t;
12353 #endif
12355 #ifndef _UINT32_T
12356 #define _UINT32_T
12357 typedef unsigned $acx_cv_type_int32_t uint32_t;
12358 #endif
12360 #ifndef _INT8_T
12361 #define _INT8_T
12362 typedef $acx_cv_type_int8_t int8_t;
12363 #endif
12365 #ifndef _INT16_T
12366 #define _INT16_T
12367 typedef $acx_cv_type_int16_t int16_t;
12368 #endif
12370 #ifndef _INT32_T
12371 #define _INT32_T
12372 typedef $acx_cv_type_int32_t int32_t;
12373 #endif
12375 elif test "$ac_cv_type_u_int32_t" = yes; then
12376 sed 's/^ *//' >> tmp-stdint.h <<EOF
12378 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
12379 #ifndef _INT8_T
12380 #define _INT8_T
12381 #endif
12382 #ifndef _INT16_T
12383 #define _INT16_T
12384 #endif
12385 #ifndef _INT32_T
12386 #define _INT32_T
12387 #endif
12389 #ifndef _UINT8_T
12390 #define _UINT8_T
12391 typedef u_int8_t uint8_t;
12392 #endif
12394 #ifndef _UINT16_T
12395 #define _UINT16_T
12396 typedef u_int16_t uint16_t;
12397 #endif
12399 #ifndef _UINT32_T
12400 #define _UINT32_T
12401 typedef u_int32_t uint32_t;
12402 #endif
12404 else
12405 sed 's/^ *//' >> tmp-stdint.h <<EOF
12407 /* Some systems have guard macros to prevent redefinitions, define them. */
12408 #ifndef _INT8_T
12409 #define _INT8_T
12410 #endif
12411 #ifndef _INT16_T
12412 #define _INT16_T
12413 #endif
12414 #ifndef _INT32_T
12415 #define _INT32_T
12416 #endif
12417 #ifndef _UINT8_T
12418 #define _UINT8_T
12419 #endif
12420 #ifndef _UINT16_T
12421 #define _UINT16_T
12422 #endif
12423 #ifndef _UINT32_T
12424 #define _UINT32_T
12425 #endif
12429 # ------------- done basic int types, emit int64_t types ------------
12430 if test "$ac_cv_type_uint64_t" = yes; then
12431 sed 's/^ *//' >> tmp-stdint.h <<EOF
12433 /* system headers have good uint64_t and int64_t */
12434 #ifndef _INT64_T
12435 #define _INT64_T
12436 #endif
12437 #ifndef _UINT64_T
12438 #define _UINT64_T
12439 #endif
12441 elif test "$ac_cv_type_u_int64_t" = yes; then
12442 sed 's/^ *//' >> tmp-stdint.h <<EOF
12444 /* system headers have an u_int64_t (and int64_t) */
12445 #ifndef _INT64_T
12446 #define _INT64_T
12447 #endif
12448 #ifndef _UINT64_T
12449 #define _UINT64_T
12450 typedef u_int64_t uint64_t;
12451 #endif
12453 elif test -n "$acx_cv_type_int64_t"; then
12454 sed 's/^ *//' >> tmp-stdint.h <<EOF
12456 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
12457 #ifndef _INT64_T
12458 #define _INT64_T
12459 typedef $acx_cv_type_int64_t int64_t;
12460 #endif
12461 #ifndef _UINT64_T
12462 #define _UINT64_T
12463 typedef unsigned $acx_cv_type_int64_t uint64_t;
12464 #endif
12466 else
12467 sed 's/^ *//' >> tmp-stdint.h <<EOF
12469 /* some common heuristics for int64_t, using compiler-specific tests */
12470 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
12471 #ifndef _INT64_T
12472 #define _INT64_T
12473 typedef long long int64_t;
12474 #endif
12475 #ifndef _UINT64_T
12476 #define _UINT64_T
12477 typedef unsigned long long uint64_t;
12478 #endif
12480 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
12481 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
12482 does not implement __extension__. But that compiler doesn't define
12483 __GNUC_MINOR__. */
12484 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
12485 # define __extension__
12486 # endif
12488 # ifndef _INT64_T
12489 # define _INT64_T
12490 __extension__ typedef long long int64_t;
12491 # endif
12492 # ifndef _UINT64_T
12493 # define _UINT64_T
12494 __extension__ typedef unsigned long long uint64_t;
12495 # endif
12497 #elif !defined __STRICT_ANSI__
12498 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
12500 # ifndef _INT64_T
12501 # define _INT64_T
12502 typedef __int64 int64_t;
12503 # endif
12504 # ifndef _UINT64_T
12505 # define _UINT64_T
12506 typedef unsigned __int64 uint64_t;
12507 # endif
12508 # endif /* compiler */
12510 #endif /* ANSI version */
12514 # ------------- done int64_t types, emit intptr types ------------
12515 if test "$ac_cv_type_uintptr_t" != yes; then
12516 sed 's/^ *//' >> tmp-stdint.h <<EOF
12518 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
12519 typedef u$acx_cv_type_intptr_t uintptr_t;
12520 typedef $acx_cv_type_intptr_t intptr_t;
12524 # ------------- done intptr types, emit int_least types ------------
12525 if test "$ac_cv_type_int_least32_t" != yes; then
12526 sed 's/^ *//' >> tmp-stdint.h <<EOF
12528 /* Define int_least types */
12529 typedef int8_t int_least8_t;
12530 typedef int16_t int_least16_t;
12531 typedef int32_t int_least32_t;
12532 #ifdef _INT64_T
12533 typedef int64_t int_least64_t;
12534 #endif
12536 typedef uint8_t uint_least8_t;
12537 typedef uint16_t uint_least16_t;
12538 typedef uint32_t uint_least32_t;
12539 #ifdef _UINT64_T
12540 typedef uint64_t uint_least64_t;
12541 #endif
12545 # ------------- done intptr types, emit int_fast types ------------
12546 if test "$ac_cv_type_int_fast32_t" != yes; then
12547 sed 's/^ *//' >> tmp-stdint.h <<EOF
12549 /* Define int_fast types. short is often slow */
12550 typedef int8_t int_fast8_t;
12551 typedef int int_fast16_t;
12552 typedef int32_t int_fast32_t;
12553 #ifdef _INT64_T
12554 typedef int64_t int_fast64_t;
12555 #endif
12557 typedef uint8_t uint_fast8_t;
12558 typedef unsigned int uint_fast16_t;
12559 typedef uint32_t uint_fast32_t;
12560 #ifdef _UINT64_T
12561 typedef uint64_t uint_fast64_t;
12562 #endif
12566 if test "$ac_cv_type_uintmax_t" != yes; then
12567 sed 's/^ *//' >> tmp-stdint.h <<EOF
12569 /* Define intmax based on what we found */
12570 #ifdef _INT64_T
12571 typedef int64_t intmax_t;
12572 #else
12573 typedef long intmax_t;
12574 #endif
12575 #ifdef _UINT64_T
12576 typedef uint64_t uintmax_t;
12577 #else
12578 typedef unsigned long uintmax_t;
12579 #endif
12583 sed 's/^ *//' >> tmp-stdint.h <<EOF
12585 #endif /* GCC_GENERATED_STDINT_H */
12588 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
12589 rm -f tmp-stdint.h
12590 else
12591 mv -f tmp-stdint.h gstdint.h
12595 esac
12596 done
12597 _ACEOF
12599 cat >>$CONFIG_STATUS <<\_ACEOF
12601 { (exit 0); exit 0; }
12602 _ACEOF
12603 chmod +x $CONFIG_STATUS
12604 ac_clean_files=$ac_clean_files_save
12607 # configure is writing to config.log, and then calls config.status.
12608 # config.status does its own redirection, appending to config.log.
12609 # Unfortunately, on DOS this fails, as config.log is still kept open
12610 # by configure, so config.status won't be able to write to it; its
12611 # output is simply discarded. So we exec the FD to /dev/null,
12612 # effectively closing config.log, so it can be properly (re)opened and
12613 # appended to by config.status. When coming back to configure, we
12614 # need to make the FD available again.
12615 if test "$no_create" != yes; then
12616 ac_cs_success=:
12617 ac_config_status_args=
12618 test "$silent" = yes &&
12619 ac_config_status_args="$ac_config_status_args --quiet"
12620 exec 5>/dev/null
12621 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12622 exec 5>>config.log
12623 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12624 # would make configure fail if this is the last instruction.
12625 $ac_cs_success || { (exit 1); exit 1; }