]>
Commit | Line | Data |
---|---|---|
1e8e9920 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0. | |
4 | # | |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
6 | # This configure script is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy, distribute and modify it. | |
8 | ## --------------------- ## | |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
254 | ac_default_prefix=/usr/local | |
255 | ac_config_libobj_dir=. | |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME='GNU OpenMP Runtime Library' | |
269 | PACKAGE_TARNAME='libgomp' | |
270 | PACKAGE_VERSION='1.0' | |
271 | PACKAGE_STRING='GNU OpenMP Runtime Library 1.0' | |
272 | PACKAGE_BUGREPORT='' | |
273 | ||
274 | # Factoring default headers for most tests. | |
275 | ac_includes_default="\ | |
276 | #include <stdio.h> | |
277 | #if HAVE_SYS_TYPES_H | |
278 | # include <sys/types.h> | |
279 | #endif | |
280 | #if HAVE_SYS_STAT_H | |
281 | # include <sys/stat.h> | |
282 | #endif | |
283 | #if STDC_HEADERS | |
284 | # include <stdlib.h> | |
285 | # include <stddef.h> | |
286 | #else | |
287 | # if HAVE_STDLIB_H | |
288 | # include <stdlib.h> | |
289 | # endif | |
290 | #endif | |
291 | #if HAVE_STRING_H | |
292 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
293 | # include <memory.h> | |
294 | # endif | |
295 | # include <string.h> | |
296 | #endif | |
297 | #if HAVE_STRINGS_H | |
298 | # include <strings.h> | |
299 | #endif | |
300 | #if HAVE_INTTYPES_H | |
301 | # include <inttypes.h> | |
302 | #else | |
303 | # if HAVE_STDINT_H | |
304 | # include <stdint.h> | |
305 | # endif | |
306 | #endif | |
307 | #if HAVE_UNISTD_H | |
308 | # include <unistd.h> | |
309 | #endif" | |
310 | ||
439d698f | 311 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LN_S LIBTOOL enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION CPP CPPFLAGS EGREP SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS' |
1e8e9920 | 312 | ac_subst_files='' |
313 | ||
314 | # Initialize some variables set by options. | |
315 | ac_init_help= | |
316 | ac_init_version=false | |
317 | # The variables have the same names as the options, with | |
318 | # dashes changed to underlines. | |
319 | cache_file=/dev/null | |
320 | exec_prefix=NONE | |
321 | no_create= | |
322 | no_recursion= | |
323 | prefix=NONE | |
324 | program_prefix=NONE | |
325 | program_suffix=NONE | |
326 | program_transform_name=s,x,x, | |
327 | silent= | |
328 | site= | |
329 | srcdir= | |
330 | verbose= | |
331 | x_includes=NONE | |
332 | x_libraries=NONE | |
333 | ||
334 | # Installation directory options. | |
335 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
336 | # and all the variables that are supposed to be based on exec_prefix | |
337 | # by default will actually change. | |
338 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
339 | bindir='${exec_prefix}/bin' | |
340 | sbindir='${exec_prefix}/sbin' | |
341 | libexecdir='${exec_prefix}/libexec' | |
342 | datadir='${prefix}/share' | |
343 | sysconfdir='${prefix}/etc' | |
344 | sharedstatedir='${prefix}/com' | |
345 | localstatedir='${prefix}/var' | |
346 | libdir='${exec_prefix}/lib' | |
347 | includedir='${prefix}/include' | |
348 | oldincludedir='/usr/include' | |
349 | infodir='${prefix}/info' | |
350 | mandir='${prefix}/man' | |
351 | ||
352 | ac_prev= | |
353 | for ac_option | |
354 | do | |
355 | # If the previous option needs an argument, assign it. | |
356 | if test -n "$ac_prev"; then | |
357 | eval "$ac_prev=\$ac_option" | |
358 | ac_prev= | |
359 | continue | |
360 | fi | |
361 | ||
362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
363 | ||
364 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
365 | ||
366 | case $ac_option in | |
367 | ||
368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
369 | ac_prev=bindir ;; | |
370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
371 | bindir=$ac_optarg ;; | |
372 | ||
373 | -build | --build | --buil | --bui | --bu) | |
374 | ac_prev=build_alias ;; | |
375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
376 | build_alias=$ac_optarg ;; | |
377 | ||
378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
380 | ac_prev=cache_file ;; | |
381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
383 | cache_file=$ac_optarg ;; | |
384 | ||
385 | --config-cache | -C) | |
386 | cache_file=config.cache ;; | |
387 | ||
388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
389 | ac_prev=datadir ;; | |
390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
391 | | --da=*) | |
392 | datadir=$ac_optarg ;; | |
393 | ||
394 | -disable-* | --disable-*) | |
395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
396 | # Reject names that are not valid shell variable names. | |
397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
399 | { (exit 1); exit 1; }; } | |
400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
401 | eval "enable_$ac_feature=no" ;; | |
402 | ||
403 | -enable-* | --enable-*) | |
404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
405 | # Reject names that are not valid shell variable names. | |
406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
408 | { (exit 1); exit 1; }; } | |
409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
410 | case $ac_option in | |
411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
412 | *) ac_optarg=yes ;; | |
413 | esac | |
414 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
415 | ||
416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
418 | | --exec | --exe | --ex) | |
419 | ac_prev=exec_prefix ;; | |
420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
422 | | --exec=* | --exe=* | --ex=*) | |
423 | exec_prefix=$ac_optarg ;; | |
424 | ||
425 | -gas | --gas | --ga | --g) | |
426 | # Obsolete; use --with-gas. | |
427 | with_gas=yes ;; | |
428 | ||
429 | -help | --help | --hel | --he | -h) | |
430 | ac_init_help=long ;; | |
431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
432 | ac_init_help=recursive ;; | |
433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
434 | ac_init_help=short ;; | |
435 | ||
436 | -host | --host | --hos | --ho) | |
437 | ac_prev=host_alias ;; | |
438 | -host=* | --host=* | --hos=* | --ho=*) | |
439 | host_alias=$ac_optarg ;; | |
440 | ||
441 | -includedir | --includedir | --includedi | --included | --include \ | |
442 | | --includ | --inclu | --incl | --inc) | |
443 | ac_prev=includedir ;; | |
444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
445 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
446 | includedir=$ac_optarg ;; | |
447 | ||
448 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
449 | ac_prev=infodir ;; | |
450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
451 | infodir=$ac_optarg ;; | |
452 | ||
453 | -libdir | --libdir | --libdi | --libd) | |
454 | ac_prev=libdir ;; | |
455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
456 | libdir=$ac_optarg ;; | |
457 | ||
458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
459 | | --libexe | --libex | --libe) | |
460 | ac_prev=libexecdir ;; | |
461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
462 | | --libexe=* | --libex=* | --libe=*) | |
463 | libexecdir=$ac_optarg ;; | |
464 | ||
465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
466 | | --localstate | --localstat | --localsta | --localst \ | |
467 | | --locals | --local | --loca | --loc | --lo) | |
468 | ac_prev=localstatedir ;; | |
469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
472 | localstatedir=$ac_optarg ;; | |
473 | ||
474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
475 | ac_prev=mandir ;; | |
476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
477 | mandir=$ac_optarg ;; | |
478 | ||
479 | -nfp | --nfp | --nf) | |
480 | # Obsolete; use --without-fp. | |
481 | with_fp=no ;; | |
482 | ||
483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
484 | | --no-cr | --no-c | -n) | |
485 | no_create=yes ;; | |
486 | ||
487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
489 | no_recursion=yes ;; | |
490 | ||
491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
493 | | --oldin | --oldi | --old | --ol | --o) | |
494 | ac_prev=oldincludedir ;; | |
495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
498 | oldincludedir=$ac_optarg ;; | |
499 | ||
500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
501 | ac_prev=prefix ;; | |
502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503 | prefix=$ac_optarg ;; | |
504 | ||
505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
506 | | --program-pre | --program-pr | --program-p) | |
507 | ac_prev=program_prefix ;; | |
508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
510 | program_prefix=$ac_optarg ;; | |
511 | ||
512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
513 | | --program-suf | --program-su | --program-s) | |
514 | ac_prev=program_suffix ;; | |
515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
517 | program_suffix=$ac_optarg ;; | |
518 | ||
519 | -program-transform-name | --program-transform-name \ | |
520 | | --program-transform-nam | --program-transform-na \ | |
521 | | --program-transform-n | --program-transform- \ | |
522 | | --program-transform | --program-transfor \ | |
523 | | --program-transfo | --program-transf \ | |
524 | | --program-trans | --program-tran \ | |
525 | | --progr-tra | --program-tr | --program-t) | |
526 | ac_prev=program_transform_name ;; | |
527 | -program-transform-name=* | --program-transform-name=* \ | |
528 | | --program-transform-nam=* | --program-transform-na=* \ | |
529 | | --program-transform-n=* | --program-transform-=* \ | |
530 | | --program-transform=* | --program-transfor=* \ | |
531 | | --program-transfo=* | --program-transf=* \ | |
532 | | --program-trans=* | --program-tran=* \ | |
533 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
534 | program_transform_name=$ac_optarg ;; | |
535 | ||
536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
537 | | -silent | --silent | --silen | --sile | --sil) | |
538 | silent=yes ;; | |
539 | ||
540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
541 | ac_prev=sbindir ;; | |
542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
543 | | --sbi=* | --sb=*) | |
544 | sbindir=$ac_optarg ;; | |
545 | ||
546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
548 | | --sharedst | --shareds | --shared | --share | --shar \ | |
549 | | --sha | --sh) | |
550 | ac_prev=sharedstatedir ;; | |
551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
554 | | --sha=* | --sh=*) | |
555 | sharedstatedir=$ac_optarg ;; | |
556 | ||
557 | -site | --site | --sit) | |
558 | ac_prev=site ;; | |
559 | -site=* | --site=* | --sit=*) | |
560 | site=$ac_optarg ;; | |
561 | ||
562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
563 | ac_prev=srcdir ;; | |
564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
565 | srcdir=$ac_optarg ;; | |
566 | ||
567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
568 | | --syscon | --sysco | --sysc | --sys | --sy) | |
569 | ac_prev=sysconfdir ;; | |
570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
572 | sysconfdir=$ac_optarg ;; | |
573 | ||
574 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
575 | ac_prev=target_alias ;; | |
576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
577 | target_alias=$ac_optarg ;; | |
578 | ||
579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
580 | verbose=yes ;; | |
581 | ||
582 | -version | --version | --versio | --versi | --vers | -V) | |
583 | ac_init_version=: ;; | |
584 | ||
585 | -with-* | --with-*) | |
586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
587 | # Reject names that are not valid shell variable names. | |
588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
590 | { (exit 1); exit 1; }; } | |
591 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
592 | case $ac_option in | |
593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
594 | *) ac_optarg=yes ;; | |
595 | esac | |
596 | eval "with_$ac_package='$ac_optarg'" ;; | |
597 | ||
598 | -without-* | --without-*) | |
599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
600 | # Reject names that are not valid shell variable names. | |
601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
603 | { (exit 1); exit 1; }; } | |
604 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
605 | eval "with_$ac_package=no" ;; | |
606 | ||
607 | --x) | |
608 | # Obsolete; use --with-x. | |
609 | with_x=yes ;; | |
610 | ||
611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
612 | | --x-incl | --x-inc | --x-in | --x-i) | |
613 | ac_prev=x_includes ;; | |
614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
616 | x_includes=$ac_optarg ;; | |
617 | ||
618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
620 | ac_prev=x_libraries ;; | |
621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
623 | x_libraries=$ac_optarg ;; | |
624 | ||
625 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
626 | Try \`$0 --help' for more information." >&2 | |
627 | { (exit 1); exit 1; }; } | |
628 | ;; | |
629 | ||
630 | *=*) | |
631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
632 | # Reject names that are not valid shell variable names. | |
633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
635 | { (exit 1); exit 1; }; } | |
636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
637 | eval "$ac_envvar='$ac_optarg'" | |
638 | export $ac_envvar ;; | |
639 | ||
640 | *) | |
641 | # FIXME: should be removed in autoconf 3.0. | |
642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
646 | ;; | |
647 | ||
648 | esac | |
649 | done | |
650 | ||
651 | if test -n "$ac_prev"; then | |
652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
653 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
654 | { (exit 1); exit 1; }; } | |
655 | fi | |
656 | ||
657 | # Be sure to have absolute paths. | |
658 | for ac_var in exec_prefix prefix | |
659 | do | |
660 | eval ac_val=$`echo $ac_var` | |
661 | case $ac_val in | |
662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
664 | { (exit 1); exit 1; }; };; | |
665 | esac | |
666 | done | |
667 | ||
668 | # Be sure to have absolute paths. | |
669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
670 | localstatedir libdir includedir oldincludedir infodir mandir | |
671 | do | |
672 | eval ac_val=$`echo $ac_var` | |
673 | case $ac_val in | |
674 | [\\/$]* | ?:[\\/]* ) ;; | |
675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
676 | { (exit 1); exit 1; }; };; | |
677 | esac | |
678 | done | |
679 | ||
680 | # There might be people who depend on the old broken behavior: `$host' | |
681 | # used to hold the argument of --host etc. | |
682 | # FIXME: To remove some day. | |
683 | build=$build_alias | |
684 | host=$host_alias | |
685 | target=$target_alias | |
686 | ||
687 | # FIXME: To remove some day. | |
688 | if test "x$host_alias" != x; then | |
689 | if test "x$build_alias" = x; then | |
690 | cross_compiling=maybe | |
691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
692 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
693 | elif test "x$build_alias" != "x$host_alias"; then | |
694 | cross_compiling=yes | |
695 | fi | |
696 | fi | |
697 | ||
698 | ac_tool_prefix= | |
699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
700 | ||
701 | test "$silent" = yes && exec 6>/dev/null | |
702 | ||
703 | ||
704 | # Find the source files, if location was not specified. | |
705 | if test -z "$srcdir"; then | |
706 | ac_srcdir_defaulted=yes | |
707 | # Try the directory containing this script, then its parent. | |
708 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
710 | X"$0" : 'X\(//\)[^/]' \| \ | |
711 | X"$0" : 'X\(//\)$' \| \ | |
712 | X"$0" : 'X\(/\)' \| \ | |
713 | . : '\(.\)' 2>/dev/null || | |
714 | echo X"$0" | | |
715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
717 | /^X\(\/\/\)$/{ s//\1/; q; } | |
718 | /^X\(\/\).*/{ s//\1/; q; } | |
719 | s/.*/./; q'` | |
720 | srcdir=$ac_confdir | |
439d698f | 721 | if test ! -r "$srcdir/$ac_unique_file"; then |
1e8e9920 | 722 | srcdir=.. |
723 | fi | |
724 | else | |
725 | ac_srcdir_defaulted=no | |
726 | fi | |
439d698f | 727 | if test ! -r "$srcdir/$ac_unique_file"; then |
1e8e9920 | 728 | if test "$ac_srcdir_defaulted" = yes; then |
729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
730 | { (exit 1); exit 1; }; } | |
731 | else | |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
733 | { (exit 1); exit 1; }; } | |
734 | fi | |
735 | fi | |
439d698f | 736 | (cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null || |
1e8e9920 | 737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
738 | { (exit 1); exit 1; }; } | |
739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
740 | ac_env_build_alias_set=${build_alias+set} | |
741 | ac_env_build_alias_value=$build_alias | |
742 | ac_cv_env_build_alias_set=${build_alias+set} | |
743 | ac_cv_env_build_alias_value=$build_alias | |
744 | ac_env_host_alias_set=${host_alias+set} | |
745 | ac_env_host_alias_value=$host_alias | |
746 | ac_cv_env_host_alias_set=${host_alias+set} | |
747 | ac_cv_env_host_alias_value=$host_alias | |
748 | ac_env_target_alias_set=${target_alias+set} | |
749 | ac_env_target_alias_value=$target_alias | |
750 | ac_cv_env_target_alias_set=${target_alias+set} | |
751 | ac_cv_env_target_alias_value=$target_alias | |
752 | ac_env_FC_set=${FC+set} | |
753 | ac_env_FC_value=$FC | |
754 | ac_cv_env_FC_set=${FC+set} | |
755 | ac_cv_env_FC_value=$FC | |
756 | ac_env_FCFLAGS_set=${FCFLAGS+set} | |
757 | ac_env_FCFLAGS_value=$FCFLAGS | |
758 | ac_cv_env_FCFLAGS_set=${FCFLAGS+set} | |
759 | ac_cv_env_FCFLAGS_value=$FCFLAGS | |
760 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
761 | ac_env_LDFLAGS_value=$LDFLAGS | |
762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
763 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
764 | ac_env_CPP_set=${CPP+set} | |
765 | ac_env_CPP_value=$CPP | |
766 | ac_cv_env_CPP_set=${CPP+set} | |
767 | ac_cv_env_CPP_value=$CPP | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ||
773 | # | |
774 | # Report the --help message. | |
775 | # | |
776 | if test "$ac_init_help" = "long"; then | |
777 | # Omit some internal or obsolete options to make the list less imposing. | |
778 | # This message is too long to be a string in the A/UX 3.1 sh. | |
779 | cat <<_ACEOF | |
780 | \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems. | |
781 | ||
782 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
783 | ||
784 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
785 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
786 | ||
787 | Defaults for the options are specified in brackets. | |
788 | ||
789 | Configuration: | |
790 | -h, --help display this help and exit | |
791 | --help=short display options specific to this package | |
792 | --help=recursive display the short help of all the included packages | |
793 | -V, --version display version information and exit | |
794 | -q, --quiet, --silent do not print \`checking...' messages | |
795 | --cache-file=FILE cache test results in FILE [disabled] | |
796 | -C, --config-cache alias for \`--cache-file=config.cache' | |
797 | -n, --no-create do not create output files | |
798 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
799 | ||
800 | _ACEOF | |
801 | ||
802 | cat <<_ACEOF | |
803 | Installation directories: | |
804 | --prefix=PREFIX install architecture-independent files in PREFIX | |
805 | [$ac_default_prefix] | |
806 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
807 | [PREFIX] | |
808 | ||
809 | By default, \`make install' will install all the files in | |
810 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
811 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
812 | for instance \`--prefix=\$HOME'. | |
813 | ||
814 | For better control, use the options below. | |
815 | ||
816 | Fine tuning of the installation directories: | |
817 | --bindir=DIR user executables [EPREFIX/bin] | |
818 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
819 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
820 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
821 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
822 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
823 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
824 | --libdir=DIR object code libraries [EPREFIX/lib] | |
825 | --includedir=DIR C header files [PREFIX/include] | |
826 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
827 | --infodir=DIR info documentation [PREFIX/info] | |
828 | --mandir=DIR man documentation [PREFIX/man] | |
829 | _ACEOF | |
830 | ||
831 | cat <<\_ACEOF | |
832 | ||
833 | Program names: | |
834 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
835 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
836 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
837 | ||
838 | System types: | |
839 | --build=BUILD configure for building on BUILD [guessed] | |
840 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
841 | --target=TARGET configure for building compilers for TARGET [HOST] | |
842 | _ACEOF | |
843 | fi | |
844 | ||
845 | if test -n "$ac_init_help"; then | |
846 | case $ac_init_help in | |
847 | short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";; | |
848 | esac | |
849 | cat <<\_ACEOF | |
850 | ||
851 | Optional Features: | |
852 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
853 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
854 | --enable-version-specific-runtime-libs | |
855 | Specify that runtime libraries should be installed | |
856 | in a compiler-specific directory [default=no] | |
2eca990d | 857 | --enable-linux-futex Use the Linux futex system call |
858 | [default=default] | |
aeda7a78 | 859 | --enable-generated-files-in-srcdir |
860 | put copies of generated files in source dir intended | |
861 | for creating source tarballs for users without | |
862 | texinfo bison or flex. [default=no] | |
1e8e9920 | 863 | --enable-multilib build many library versions (default) |
864 | --disable-dependency-tracking speeds up one-time build | |
865 | --enable-dependency-tracking do not reject slow dependency extractors | |
866 | --enable-shared=PKGS build shared libraries default=yes | |
867 | --enable-static=PKGS build static libraries default=yes | |
868 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
869 | --disable-libtool-lock avoid locking (might break parallel builds) | |
a263d1ab | 870 | --enable-maintainer-mode enable make rules and dependencies not useful |
871 | (and sometimes confusing) to the casual installer | |
e564ddd8 | 872 | --enable-tls Use thread-local storage [default=yes] |
1e8e9920 | 873 | --enable-symvers=STYLE enables symbol versioning of the shared library |
874 | [default=yes] | |
875 | ||
876 | Optional Packages: | |
877 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
878 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
879 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
880 | --with-pic try to use only PIC/non-PIC objects default=use both | |
881 | ||
882 | Some influential environment variables: | |
883 | CC C compiler command | |
884 | CFLAGS C compiler flags | |
885 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
886 | nonstandard directory <lib dir> | |
887 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
888 | headers in a nonstandard directory <include dir> | |
889 | FC Fortran compiler command | |
890 | FCFLAGS Fortran compiler flags | |
891 | CPP C preprocessor | |
892 | ||
893 | Use these variables to override the choices made by `configure' or to help | |
894 | it to find libraries and programs with nonstandard names/locations. | |
895 | ||
896 | _ACEOF | |
897 | fi | |
898 | ||
899 | if test "$ac_init_help" = "recursive"; then | |
900 | # If there are subdirs, report their specific --help. | |
901 | ac_popdir=`pwd` | |
902 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
903 | test -d $ac_dir || continue | |
904 | ac_builddir=. | |
905 | ||
906 | if test "$ac_dir" != .; then | |
907 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
908 | # A "../" for each directory in $ac_dir_suffix. | |
909 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
910 | else | |
911 | ac_dir_suffix= ac_top_builddir= | |
912 | fi | |
913 | ||
914 | case $srcdir in | |
915 | .) # No --srcdir option. We are building in place. | |
916 | ac_srcdir=. | |
917 | if test -z "$ac_top_builddir"; then | |
918 | ac_top_srcdir=. | |
919 | else | |
920 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
921 | fi ;; | |
922 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
923 | ac_srcdir=$srcdir$ac_dir_suffix; | |
924 | ac_top_srcdir=$srcdir ;; | |
925 | *) # Relative path. | |
926 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
927 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
928 | esac | |
929 | ||
930 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
931 | # the directories may not exist. | |
932 | case `pwd` in | |
933 | .) ac_abs_builddir="$ac_dir";; | |
934 | *) | |
935 | case "$ac_dir" in | |
936 | .) ac_abs_builddir=`pwd`;; | |
937 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
938 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
939 | esac;; | |
940 | esac | |
941 | case $ac_abs_builddir in | |
942 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
943 | *) | |
944 | case ${ac_top_builddir}. in | |
945 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
946 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
947 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
948 | esac;; | |
949 | esac | |
950 | case $ac_abs_builddir in | |
951 | .) ac_abs_srcdir=$ac_srcdir;; | |
952 | *) | |
953 | case $ac_srcdir in | |
954 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
955 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
956 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
957 | esac;; | |
958 | esac | |
959 | case $ac_abs_builddir in | |
960 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
961 | *) | |
962 | case $ac_top_srcdir in | |
963 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
964 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
965 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
966 | esac;; | |
967 | esac | |
968 | ||
969 | cd $ac_dir | |
970 | # Check for guested configure; otherwise get Cygnus style configure. | |
971 | if test -f $ac_srcdir/configure.gnu; then | |
972 | echo | |
973 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
974 | elif test -f $ac_srcdir/configure; then | |
975 | echo | |
976 | $SHELL $ac_srcdir/configure --help=recursive | |
977 | elif test -f $ac_srcdir/configure.ac || | |
978 | test -f $ac_srcdir/configure.in; then | |
979 | echo | |
980 | $ac_configure --help | |
981 | else | |
982 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
983 | fi | |
59da30e1 | 984 | cd $ac_popdir |
1e8e9920 | 985 | done |
986 | fi | |
987 | ||
988 | test -n "$ac_init_help" && exit 0 | |
989 | if $ac_init_version; then | |
990 | cat <<\_ACEOF | |
991 | GNU OpenMP Runtime Library configure 1.0 | |
992 | generated by GNU Autoconf 2.59 | |
993 | ||
994 | Copyright (C) 2003 Free Software Foundation, Inc. | |
995 | This configure script is free software; the Free Software Foundation | |
996 | gives unlimited permission to copy, distribute and modify it. | |
997 | _ACEOF | |
998 | exit 0 | |
999 | fi | |
1000 | exec 5>config.log | |
1001 | cat >&5 <<_ACEOF | |
1002 | This file contains any messages produced by compilers while | |
1003 | running configure, to aid debugging if configure makes a mistake. | |
1004 | ||
1005 | It was created by GNU OpenMP Runtime Library $as_me 1.0, which was | |
1006 | generated by GNU Autoconf 2.59. Invocation command line was | |
1007 | ||
1008 | $ $0 $@ | |
1009 | ||
1010 | _ACEOF | |
1011 | { | |
1012 | cat <<_ASUNAME | |
1013 | ## --------- ## | |
1014 | ## Platform. ## | |
1015 | ## --------- ## | |
1016 | ||
1017 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1018 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1019 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1020 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1021 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1022 | ||
1023 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1024 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1025 | ||
1026 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1027 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1028 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1029 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1030 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1031 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1032 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1033 | ||
1034 | _ASUNAME | |
1035 | ||
1036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1037 | for as_dir in $PATH | |
1038 | do | |
1039 | IFS=$as_save_IFS | |
1040 | test -z "$as_dir" && as_dir=. | |
1041 | echo "PATH: $as_dir" | |
1042 | done | |
1043 | ||
1044 | } >&5 | |
1045 | ||
1046 | cat >&5 <<_ACEOF | |
1047 | ||
1048 | ||
1049 | ## ----------- ## | |
1050 | ## Core tests. ## | |
1051 | ## ----------- ## | |
1052 | ||
1053 | _ACEOF | |
1054 | ||
1055 | ||
1056 | # Keep a trace of the command line. | |
1057 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1058 | # Strip out --silent because we don't want to record it for future runs. | |
1059 | # Also quote any args containing shell meta-characters. | |
1060 | # Make two passes to allow for proper duplicate-argument suppression. | |
1061 | ac_configure_args= | |
1062 | ac_configure_args0= | |
1063 | ac_configure_args1= | |
1064 | ac_sep= | |
1065 | ac_must_keep_next=false | |
1066 | for ac_pass in 1 2 | |
1067 | do | |
1068 | for ac_arg | |
1069 | do | |
1070 | case $ac_arg in | |
1071 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1072 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1073 | | -silent | --silent | --silen | --sile | --sil) | |
1074 | continue ;; | |
1075 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1076 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1077 | esac | |
1078 | case $ac_pass in | |
1079 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1080 | 2) | |
1081 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1082 | if test $ac_must_keep_next = true; then | |
1083 | ac_must_keep_next=false # Got value, back to normal. | |
1084 | else | |
1085 | case $ac_arg in | |
1086 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1087 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1088 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1089 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1090 | case "$ac_configure_args0 " in | |
1091 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1092 | esac | |
1093 | ;; | |
1094 | -* ) ac_must_keep_next=true ;; | |
1095 | esac | |
1096 | fi | |
1097 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1098 | # Get rid of the leading space. | |
1099 | ac_sep=" " | |
1100 | ;; | |
1101 | esac | |
1102 | done | |
1103 | done | |
1104 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1105 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1106 | ||
1107 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1108 | # config.log. We remove comments because anyway the quotes in there | |
1109 | # would cause problems or look ugly. | |
1110 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1111 | # such as our DU 5.0 friend, will then `close' the trap. | |
1112 | trap 'exit_status=$? | |
1113 | # Save into config.log some information that might help in debugging. | |
1114 | { | |
1115 | echo | |
1116 | ||
1117 | cat <<\_ASBOX | |
1118 | ## ---------------- ## | |
1119 | ## Cache variables. ## | |
1120 | ## ---------------- ## | |
1121 | _ASBOX | |
1122 | echo | |
1123 | # The following way of writing the cache mishandles newlines in values, | |
1124 | { | |
1125 | (set) 2>&1 | | |
1126 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1127 | *ac_space=\ *) | |
1128 | sed -n \ | |
1129 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1130 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1131 | ;; | |
1132 | *) | |
1133 | sed -n \ | |
1134 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1135 | ;; | |
1136 | esac; | |
1137 | } | |
1138 | echo | |
1139 | ||
1140 | cat <<\_ASBOX | |
1141 | ## ----------------- ## | |
1142 | ## Output variables. ## | |
1143 | ## ----------------- ## | |
1144 | _ASBOX | |
1145 | echo | |
1146 | for ac_var in $ac_subst_vars | |
1147 | do | |
1148 | eval ac_val=$`echo $ac_var` | |
1149 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1150 | done | sort | |
1151 | echo | |
1152 | ||
1153 | if test -n "$ac_subst_files"; then | |
1154 | cat <<\_ASBOX | |
1155 | ## ------------- ## | |
1156 | ## Output files. ## | |
1157 | ## ------------- ## | |
1158 | _ASBOX | |
1159 | echo | |
1160 | for ac_var in $ac_subst_files | |
1161 | do | |
1162 | eval ac_val=$`echo $ac_var` | |
1163 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1164 | done | sort | |
1165 | echo | |
1166 | fi | |
1167 | ||
1168 | if test -s confdefs.h; then | |
1169 | cat <<\_ASBOX | |
1170 | ## ----------- ## | |
1171 | ## confdefs.h. ## | |
1172 | ## ----------- ## | |
1173 | _ASBOX | |
1174 | echo | |
1175 | sed "/^$/d" confdefs.h | sort | |
1176 | echo | |
1177 | fi | |
1178 | test "$ac_signal" != 0 && | |
1179 | echo "$as_me: caught signal $ac_signal" | |
1180 | echo "$as_me: exit $exit_status" | |
1181 | } >&5 | |
1182 | rm -f core *.core && | |
1183 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1184 | exit $exit_status | |
1185 | ' 0 | |
1186 | for ac_signal in 1 2 13 15; do | |
1187 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1188 | done | |
1189 | ac_signal=0 | |
1190 | ||
1191 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1192 | rm -rf conftest* confdefs.h | |
1193 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1194 | echo >confdefs.h | |
1195 | ||
1196 | # Predefined preprocessor variables. | |
1197 | ||
1198 | cat >>confdefs.h <<_ACEOF | |
1199 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1200 | _ACEOF | |
1201 | ||
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | cat >>confdefs.h <<_ACEOF | |
1209 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1210 | _ACEOF | |
1211 | ||
1212 | ||
1213 | cat >>confdefs.h <<_ACEOF | |
1214 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1215 | _ACEOF | |
1216 | ||
1217 | ||
1218 | cat >>confdefs.h <<_ACEOF | |
1219 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1220 | _ACEOF | |
1221 | ||
1222 | ||
1223 | # Let the site file select an alternate cache file if it wants to. | |
1224 | # Prefer explicitly selected file to automatically selected ones. | |
1225 | if test -z "$CONFIG_SITE"; then | |
1226 | if test "x$prefix" != xNONE; then | |
1227 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1228 | else | |
1229 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1230 | fi | |
1231 | fi | |
1232 | for ac_site_file in $CONFIG_SITE; do | |
1233 | if test -r "$ac_site_file"; then | |
1234 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1235 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1236 | sed 's/^/| /' "$ac_site_file" >&5 | |
1237 | . "$ac_site_file" | |
1238 | fi | |
1239 | done | |
1240 | ||
1241 | if test -r "$cache_file"; then | |
1242 | # Some versions of bash will fail to source /dev/null (special | |
1243 | # files actually), so we avoid doing that. | |
1244 | if test -f "$cache_file"; then | |
1245 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1246 | echo "$as_me: loading cache $cache_file" >&6;} | |
1247 | case $cache_file in | |
1248 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1249 | *) . ./$cache_file;; | |
1250 | esac | |
1251 | fi | |
1252 | else | |
1253 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1254 | echo "$as_me: creating cache $cache_file" >&6;} | |
1255 | >$cache_file | |
1256 | fi | |
1257 | ||
1258 | # Check that the precious variables saved in the cache have kept the same | |
1259 | # value. | |
1260 | ac_cache_corrupted=false | |
1261 | for ac_var in `(set) 2>&1 | | |
1262 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1263 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1264 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1265 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1266 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1267 | case $ac_old_set,$ac_new_set in | |
1268 | set,) | |
1269 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1270 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1271 | ac_cache_corrupted=: ;; | |
1272 | ,set) | |
1273 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1274 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1275 | ac_cache_corrupted=: ;; | |
1276 | ,);; | |
1277 | *) | |
1278 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1279 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1280 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1281 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1282 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1283 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1284 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1285 | ac_cache_corrupted=: | |
1286 | fi;; | |
1287 | esac | |
1288 | # Pass precious variables to config.status. | |
1289 | if test "$ac_new_set" = set; then | |
1290 | case $ac_new_val in | |
1291 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1292 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1293 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1294 | esac | |
1295 | case " $ac_configure_args " in | |
1296 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1297 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1298 | esac | |
1299 | fi | |
1300 | done | |
1301 | if $ac_cache_corrupted; then | |
1302 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1303 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1304 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1305 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1306 | { (exit 1); exit 1; }; } | |
1307 | fi | |
1308 | ||
1309 | ac_ext=c | |
1310 | ac_cpp='$CPP $CPPFLAGS' | |
1311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ||
1341 | ac_config_headers="$ac_config_headers config.h" | |
1342 | ||
1343 | ||
1344 | # ------- | |
1345 | # Options | |
1346 | # ------- | |
1347 | ||
1348 | echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 | |
1349 | echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6 | |
1350 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. | |
1351 | if test "${enable_version_specific_runtime_libs+set}" = set; then | |
1352 | enableval="$enable_version_specific_runtime_libs" | |
1353 | ||
1354 | case "$enableval" in | |
1355 | yes|no) ;; | |
1356 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5 | |
1357 | echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;} | |
1358 | { (exit 1); exit 1; }; } ;; | |
1359 | esac | |
1360 | ||
1361 | else | |
1362 | enable_version_specific_runtime_libs=no | |
1363 | fi; | |
1364 | ||
1365 | echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5 | |
1366 | echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6 | |
1367 | ||
1368 | echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5 | |
1369 | echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6 | |
1370 | # Check whether --enable-linux-futex or --disable-linux-futex was given. | |
1371 | if test "${enable_linux_futex+set}" = set; then | |
1372 | enableval="$enable_linux_futex" | |
1373 | ||
1374 | case "$enableval" in | |
2eca990d | 1375 | yes|no|default) ;; |
1376 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5 | |
1377 | echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;} | |
1e8e9920 | 1378 | { (exit 1); exit 1; }; } ;; |
2eca990d | 1379 | esac |
1e8e9920 | 1380 | |
1381 | else | |
2eca990d | 1382 | enable_linux_futex=default |
1e8e9920 | 1383 | fi; |
1384 | ||
1385 | echo "$as_me:$LINENO: result: $enable_linux_futex" >&5 | |
1386 | echo "${ECHO_T}$enable_linux_futex" >&6 | |
1387 | ||
aeda7a78 | 1388 | # We would like our source tree to be readonly. However when releases or |
1389 | # pre-releases are generated, the flex/bison generated files as well as the | |
1390 | # various formats of manuals need to be included along with the rest of the | |
1391 | # sources. Therefore we have --enable-generated-files-in-srcdir to do | |
1392 | # just that. | |
1393 | echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5 | |
1394 | echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6 | |
1395 | # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given. | |
1396 | if test "${enable_generated_files_in_srcdir+set}" = set; then | |
1397 | enableval="$enable_generated_files_in_srcdir" | |
1398 | ||
1399 | case "$enableval" in | |
1400 | yes|no) ;; | |
1401 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5 | |
1402 | echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;} | |
1403 | { (exit 1); exit 1; }; } ;; | |
1404 | esac | |
1405 | ||
1406 | else | |
1407 | enable_generated_files_in_srcdir=no | |
1408 | fi; | |
1409 | ||
1410 | echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5 | |
1411 | echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6 | |
1412 | ||
1413 | ||
1414 | if test "$enable_generated_files_in_srcdir" = yes; then | |
1415 | GENINSRC_TRUE= | |
1416 | GENINSRC_FALSE='#' | |
1417 | else | |
1418 | GENINSRC_TRUE='#' | |
1419 | GENINSRC_FALSE= | |
1420 | fi | |
1421 | ||
1422 | ||
1423 | ||
1e8e9920 | 1424 | # ------- |
1425 | # ------- | |
1426 | ||
1427 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
1428 | # | |
1429 | # You will slowly go insane if you do not grok the following fact: when | |
1430 | # building this library, the top-level /target/ becomes the library's /host/. | |
1431 | # | |
1432 | # configure then causes --target to default to --host, exactly like any | |
1433 | # other package using autoconf. Therefore, 'target' and 'host' will | |
1434 | # always be the same. This makes sense both for native and cross compilers | |
1435 | # just think about it for a little while. :-) | |
1436 | # | |
1437 | # Also, if this library is being configured as part of a cross compiler, the | |
1438 | # top-level configure script will pass the "real" host as $with_cross_host. | |
1439 | # | |
1440 | # Do not delete or change the following two lines. For why, see | |
1441 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
1442 | ac_aux_dir= | |
1443 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1444 | if test -f $ac_dir/install-sh; then | |
1445 | ac_aux_dir=$ac_dir | |
1446 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1447 | break | |
1448 | elif test -f $ac_dir/install.sh; then | |
1449 | ac_aux_dir=$ac_dir | |
1450 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1451 | break | |
1452 | elif test -f $ac_dir/shtool; then | |
1453 | ac_aux_dir=$ac_dir | |
1454 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1455 | break | |
1456 | fi | |
1457 | done | |
1458 | if test -z "$ac_aux_dir"; then | |
1459 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1460 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1461 | { (exit 1); exit 1; }; } | |
1462 | fi | |
1463 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1464 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1465 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1466 | ||
1467 | # Make sure we can run config.sub. | |
1468 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1469 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1470 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1471 | { (exit 1); exit 1; }; } | |
1472 | ||
1473 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1474 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1475 | if test "${ac_cv_build+set}" = set; then | |
1476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1477 | else | |
1478 | ac_cv_build_alias=$build_alias | |
1479 | test -z "$ac_cv_build_alias" && | |
1480 | ac_cv_build_alias=`$ac_config_guess` | |
1481 | test -z "$ac_cv_build_alias" && | |
1482 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1483 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1484 | { (exit 1); exit 1; }; } | |
1485 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1486 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1487 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1488 | { (exit 1); exit 1; }; } | |
1489 | ||
1490 | fi | |
1491 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1492 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1493 | build=$ac_cv_build | |
1494 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1495 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1496 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1497 | ||
1498 | ||
1499 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1500 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1501 | if test "${ac_cv_host+set}" = set; then | |
1502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1503 | else | |
1504 | ac_cv_host_alias=$host_alias | |
1505 | test -z "$ac_cv_host_alias" && | |
1506 | ac_cv_host_alias=$ac_cv_build_alias | |
1507 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1508 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1509 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1510 | { (exit 1); exit 1; }; } | |
1511 | ||
1512 | fi | |
1513 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1514 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1515 | host=$ac_cv_host | |
1516 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1517 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1518 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1519 | ||
1520 | ||
1521 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1522 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1523 | if test "${ac_cv_target+set}" = set; then | |
1524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1525 | else | |
1526 | ac_cv_target_alias=$target_alias | |
1527 | test "x$ac_cv_target_alias" = "x" && | |
1528 | ac_cv_target_alias=$ac_cv_host_alias | |
1529 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1530 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1531 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1532 | { (exit 1); exit 1; }; } | |
1533 | ||
1534 | fi | |
1535 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1536 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1537 | target=$ac_cv_target | |
1538 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1539 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1540 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1541 | ||
1542 | ||
1543 | # The aliases save the names the user supplied, while $host etc. | |
1544 | # will get canonicalized. | |
1545 | test -n "$target_alias" && | |
1546 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1547 | NONENONEs,x,x, && | |
1548 | program_prefix=${target_alias}- | |
1549 | target_alias=${target_alias-$host_alias} | |
1550 | ||
1551 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
1552 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
1553 | # 1.9.0: minimum required version | |
1554 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
1555 | # of other PACKAGE_* variables will, however, and there's nothing | |
1556 | # we can do about that; they come from AC_INIT). | |
1557 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
1558 | # file in the top srcdir, etc, etc), so stop complaining. | |
1e8e9920 | 1559 | # -Wall: turns on all automake warnings... |
1560 | # -Wno-portability: ...except this one, since GNU make is required. | |
1561 | # -Wno-override: ... and this one, since we do want this in testsuite. | |
1562 | am__api_version="1.9" | |
1563 | # Find a good install program. We prefer a C program (faster), | |
1564 | # so one script is as good as another. But avoid the broken or | |
1565 | # incompatible versions: | |
1566 | # SysV /etc/install, /usr/sbin/install | |
1567 | # SunOS /usr/etc/install | |
1568 | # IRIX /sbin/install | |
1569 | # AIX /bin/install | |
1570 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1571 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1572 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1573 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1574 | # OS/2's system install, which has a completely different semantic | |
1575 | # ./install, which can be erroneously created by make from ./install.sh. | |
1576 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1577 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1578 | if test -z "$INSTALL"; then | |
1579 | if test "${ac_cv_path_install+set}" = set; then | |
1580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1581 | else | |
1582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1583 | for as_dir in $PATH | |
1584 | do | |
1585 | IFS=$as_save_IFS | |
1586 | test -z "$as_dir" && as_dir=. | |
1587 | # Account for people who put trailing slashes in PATH elements. | |
1588 | case $as_dir/ in | |
1589 | ./ | .// | /cC/* | \ | |
1590 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1591 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1592 | /usr/ucb/* ) ;; | |
1593 | *) | |
1594 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1595 | # Don't use installbsd from OSF since it installs stuff as root | |
1596 | # by default. | |
1597 | for ac_prog in ginstall scoinst install; do | |
1598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1599 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1600 | if test $ac_prog = install && | |
1601 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1602 | # AIX install. It has an incompatible calling convention. | |
1603 | : | |
1604 | elif test $ac_prog = install && | |
1605 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1606 | # program-specific install script used by HP pwplus--don't use. | |
1607 | : | |
1608 | else | |
1609 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1610 | break 3 | |
1611 | fi | |
1612 | fi | |
1613 | done | |
1614 | done | |
1615 | ;; | |
1616 | esac | |
1617 | done | |
1618 | ||
1619 | ||
1620 | fi | |
1621 | if test "${ac_cv_path_install+set}" = set; then | |
1622 | INSTALL=$ac_cv_path_install | |
1623 | else | |
1624 | # As a last resort, use the slow shell script. We don't cache a | |
1625 | # path for INSTALL within a source directory, because that will | |
1626 | # break other packages using the cache if that directory is | |
1627 | # removed, or if the path is relative. | |
1628 | INSTALL=$ac_install_sh | |
1629 | fi | |
1630 | fi | |
1631 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1632 | echo "${ECHO_T}$INSTALL" >&6 | |
1633 | ||
1634 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1635 | # It thinks the first close brace ends the variable substitution. | |
1636 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1637 | ||
1638 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1639 | ||
1640 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1641 | ||
1642 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1643 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1644 | # Just in case | |
1645 | sleep 1 | |
1646 | echo timestamp > conftest.file | |
1647 | # Do `set' in a subshell so we don't clobber the current shell's | |
1648 | # arguments. Must try -L first in case configure is actually a | |
1649 | # symlink; some systems play weird games with the mod time of symlinks | |
1650 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1651 | # directory). | |
1652 | if ( | |
1653 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1654 | if test "$*" = "X"; then | |
1655 | # -L didn't work. | |
1656 | set X `ls -t $srcdir/configure conftest.file` | |
1657 | fi | |
1658 | rm -f conftest.file | |
1659 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1660 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1661 | ||
1662 | # If neither matched, then we have a broken ls. This can happen | |
1663 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1664 | # broken ls alias from the environment. This has actually | |
1665 | # happened. Such a system could not be considered "sane". | |
1666 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1667 | alias in your environment" >&5 | |
1668 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1669 | alias in your environment" >&2;} | |
1670 | { (exit 1); exit 1; }; } | |
1671 | fi | |
1672 | ||
1673 | test "$2" = conftest.file | |
1674 | ) | |
1675 | then | |
1676 | # Ok. | |
1677 | : | |
1678 | else | |
1679 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1680 | Check your system clock" >&5 | |
1681 | echo "$as_me: error: newly created file is older than distributed files! | |
1682 | Check your system clock" >&2;} | |
1683 | { (exit 1); exit 1; }; } | |
1684 | fi | |
1685 | echo "$as_me:$LINENO: result: yes" >&5 | |
1686 | echo "${ECHO_T}yes" >&6 | |
1687 | test "$program_prefix" != NONE && | |
1688 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1689 | # Use a double $ so make ignores it. | |
1690 | test "$program_suffix" != NONE && | |
1691 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1692 | # Double any \ or $. echo might interpret backslashes. | |
1693 | # By default was `s,x,x', remove it if useless. | |
1694 | cat <<\_ACEOF >conftest.sed | |
1695 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1696 | _ACEOF | |
1697 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1698 | rm conftest.sed | |
1699 | ||
1700 | # expand $ac_aux_dir to an absolute path | |
1701 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1702 | ||
1703 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1704 | # Use eval to expand $SHELL | |
1705 | if eval "$MISSING --run true"; then | |
1706 | am_missing_run="$MISSING --run " | |
1707 | else | |
1708 | am_missing_run= | |
1709 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1710 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1711 | fi | |
1712 | ||
1713 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
1714 | # We used to keeping the `.' as first argument, in order to | |
1715 | # allow $(mkdir_p) to be used without argument. As in | |
1716 | # $(mkdir_p) $(somedir) | |
1717 | # where $(somedir) is conditionally defined. However this is wrong | |
1718 | # for two reasons: | |
1719 | # 1. if the package is installed by a user who cannot write `.' | |
1720 | # make install will fail, | |
1721 | # 2. the above comment should most certainly read | |
1722 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1723 | # so it does not work when $(somedir) is undefined and | |
1724 | # $(DESTDIR) is not. | |
1725 | # To support the latter case, we have to write | |
1726 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1727 | # so the `.' trick is pointless. | |
1728 | mkdir_p='mkdir -p --' | |
1729 | else | |
1730 | # On NextStep and OpenStep, the `mkdir' command does not | |
1731 | # recognize any option. It will interpret all options as | |
1732 | # directories to create, and then abort because `.' already | |
1733 | # exists. | |
1734 | for d in ./-p ./--version; | |
1735 | do | |
1736 | test -d $d && rmdir $d | |
1737 | done | |
1738 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1739 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1740 | mkdir_p='$(mkinstalldirs)' | |
1741 | else | |
1742 | mkdir_p='$(install_sh) -d' | |
1743 | fi | |
1744 | fi | |
1745 | ||
1746 | for ac_prog in gawk mawk nawk awk | |
1747 | do | |
1748 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1749 | set dummy $ac_prog; ac_word=$2 | |
1750 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1752 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1754 | else | |
1755 | if test -n "$AWK"; then | |
1756 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1757 | else | |
1758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1759 | for as_dir in $PATH | |
1760 | do | |
1761 | IFS=$as_save_IFS | |
1762 | test -z "$as_dir" && as_dir=. | |
1763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1765 | ac_cv_prog_AWK="$ac_prog" | |
1766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1767 | break 2 | |
1768 | fi | |
1769 | done | |
1770 | done | |
1771 | ||
1772 | fi | |
1773 | fi | |
1774 | AWK=$ac_cv_prog_AWK | |
1775 | if test -n "$AWK"; then | |
1776 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1777 | echo "${ECHO_T}$AWK" >&6 | |
1778 | else | |
1779 | echo "$as_me:$LINENO: result: no" >&5 | |
1780 | echo "${ECHO_T}no" >&6 | |
1781 | fi | |
1782 | ||
1783 | test -n "$AWK" && break | |
1784 | done | |
1785 | ||
1786 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1787 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1788 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1789 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1791 | else | |
1792 | cat >conftest.make <<\_ACEOF | |
1793 | all: | |
1794 | @echo 'ac_maketemp="$(MAKE)"' | |
1795 | _ACEOF | |
1796 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1797 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1798 | if test -n "$ac_maketemp"; then | |
1799 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1800 | else | |
1801 | eval ac_cv_prog_make_${ac_make}_set=no | |
1802 | fi | |
1803 | rm -f conftest.make | |
1804 | fi | |
1805 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1806 | echo "$as_me:$LINENO: result: yes" >&5 | |
1807 | echo "${ECHO_T}yes" >&6 | |
1808 | SET_MAKE= | |
1809 | else | |
1810 | echo "$as_me:$LINENO: result: no" >&5 | |
1811 | echo "${ECHO_T}no" >&6 | |
1812 | SET_MAKE="MAKE=${MAKE-make}" | |
1813 | fi | |
1814 | ||
1815 | rm -rf .tst 2>/dev/null | |
1816 | mkdir .tst 2>/dev/null | |
1817 | if test -d .tst; then | |
1818 | am__leading_dot=. | |
1819 | else | |
1820 | am__leading_dot=_ | |
1821 | fi | |
1822 | rmdir .tst 2>/dev/null | |
1823 | ||
1824 | # test to see if srcdir already configured | |
1825 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1826 | test -f $srcdir/config.status; then | |
1827 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1828 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1829 | { (exit 1); exit 1; }; } | |
1830 | fi | |
1831 | ||
1832 | # test whether we have cygpath | |
1833 | if test -z "$CYGPATH_W"; then | |
1834 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1835 | CYGPATH_W='cygpath -w' | |
1836 | else | |
1837 | CYGPATH_W=echo | |
1838 | fi | |
1839 | fi | |
1840 | ||
1841 | ||
1842 | # Define the identity of the package. | |
1843 | PACKAGE='libgomp' | |
1844 | VERSION='1.0' | |
1845 | ||
1846 | ||
1847 | cat >>confdefs.h <<_ACEOF | |
1848 | #define PACKAGE "$PACKAGE" | |
1849 | _ACEOF | |
1850 | ||
1851 | ||
1852 | cat >>confdefs.h <<_ACEOF | |
1853 | #define VERSION "$VERSION" | |
1854 | _ACEOF | |
1855 | ||
1856 | # Some tools Automake needs. | |
1857 | ||
1858 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1859 | ||
1860 | ||
1861 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1862 | ||
1863 | ||
1864 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1865 | ||
1866 | ||
1867 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1868 | ||
1869 | ||
1870 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1871 | ||
1872 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1873 | ||
1874 | # Installed binaries are usually stripped using `strip' when the user | |
1875 | # run `make install-strip'. However `strip' might not be the right | |
1876 | # tool to use in cross-compilation environments, therefore Automake | |
1877 | # will honor the `STRIP' environment variable to overrule this program. | |
1878 | if test "$cross_compiling" != no; then | |
1879 | if test -n "$ac_tool_prefix"; then | |
1880 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1881 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1882 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1884 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1886 | else | |
1887 | if test -n "$STRIP"; then | |
1888 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1889 | else | |
1890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1891 | for as_dir in $PATH | |
1892 | do | |
1893 | IFS=$as_save_IFS | |
1894 | test -z "$as_dir" && as_dir=. | |
1895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1896 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1897 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1898 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1899 | break 2 | |
1900 | fi | |
1901 | done | |
1902 | done | |
1903 | ||
1904 | fi | |
1905 | fi | |
1906 | STRIP=$ac_cv_prog_STRIP | |
1907 | if test -n "$STRIP"; then | |
1908 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1909 | echo "${ECHO_T}$STRIP" >&6 | |
1910 | else | |
1911 | echo "$as_me:$LINENO: result: no" >&5 | |
1912 | echo "${ECHO_T}no" >&6 | |
1913 | fi | |
1914 | ||
1915 | fi | |
1916 | if test -z "$ac_cv_prog_STRIP"; then | |
1917 | ac_ct_STRIP=$STRIP | |
1918 | # Extract the first word of "strip", so it can be a program name with args. | |
1919 | set dummy strip; ac_word=$2 | |
1920 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1922 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1924 | else | |
1925 | if test -n "$ac_ct_STRIP"; then | |
1926 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1927 | else | |
1928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1929 | for as_dir in $PATH | |
1930 | do | |
1931 | IFS=$as_save_IFS | |
1932 | test -z "$as_dir" && as_dir=. | |
1933 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1934 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1935 | ac_cv_prog_ac_ct_STRIP="strip" | |
1936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1937 | break 2 | |
1938 | fi | |
1939 | done | |
1940 | done | |
1941 | ||
1942 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1943 | fi | |
1944 | fi | |
1945 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1946 | if test -n "$ac_ct_STRIP"; then | |
1947 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1948 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1949 | else | |
1950 | echo "$as_me:$LINENO: result: no" >&5 | |
1951 | echo "${ECHO_T}no" >&6 | |
1952 | fi | |
1953 | ||
1954 | STRIP=$ac_ct_STRIP | |
1955 | else | |
1956 | STRIP="$ac_cv_prog_STRIP" | |
1957 | fi | |
1958 | ||
1959 | fi | |
1960 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1961 | ||
1962 | # We need awk for the "check" target. The system "awk" is bad on | |
1963 | # some platforms. | |
1964 | # Always define AMTAR for backward compatibility. | |
1965 | ||
1966 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1967 | ||
1968 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1969 | ||
1970 | ||
1971 | ||
1972 | ||
1973 | ||
1974 | # Default to --enable-multilib | |
1975 | # Check whether --enable-multilib or --disable-multilib was given. | |
1976 | if test "${enable_multilib+set}" = set; then | |
1977 | enableval="$enable_multilib" | |
1978 | case "$enableval" in | |
1979 | yes) multilib=yes ;; | |
1980 | no) multilib=no ;; | |
1981 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1982 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1983 | { (exit 1); exit 1; }; } ;; | |
1984 | esac | |
1985 | else | |
1986 | multilib=yes | |
1987 | fi; | |
1988 | ||
1989 | # We may get other options which we leave undocumented: | |
1990 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1991 | # See config-ml.in if you want the gory details. | |
1992 | ||
1993 | if test "$srcdir" = "."; then | |
1994 | if test "$with_target_subdir" != "."; then | |
1995 | multi_basedir="$srcdir/$with_multisrctop../.." | |
1996 | else | |
1997 | multi_basedir="$srcdir/$with_multisrctop.." | |
1998 | fi | |
1999 | else | |
2000 | multi_basedir="$srcdir/.." | |
2001 | fi | |
2002 | ||
2003 | ||
ff434425 | 2004 | # Even if the default multilib is not a cross compilation, |
2005 | # it may be that some of the other multilibs are. | |
2006 | if test $cross_compiling = no && test $multilib = yes \ | |
2007 | && test "x${with_multisubdir}" != x ; then | |
2008 | cross_compiling=maybe | |
2009 | fi | |
2010 | ||
1e8e9920 | 2011 | ac_config_commands="$ac_config_commands default-1" |
2012 | ||
2013 | ||
2014 | # Calculate toolexeclibdir | |
2015 | # Also toolexecdir, though it's only used in toolexeclibdir | |
2016 | case ${enable_version_specific_runtime_libs} in | |
2017 | yes) | |
2018 | # Need the gcc compiler version to know where to install libraries | |
2019 | # and header files if --enable-version-specific-runtime-libs option | |
2020 | # is selected. | |
2021 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
2022 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
2023 | ;; | |
2024 | no) | |
2025 | if test -n "$with_cross_host" && | |
2026 | test x"$with_cross_host" != x"no"; then | |
2027 | # Install a library built with a cross compiler in tooldir, not libdir. | |
2028 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
2029 | toolexeclibdir='$(toolexecdir)/lib' | |
2030 | else | |
2031 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
2032 | toolexeclibdir='$(libdir)' | |
2033 | fi | |
2034 | multi_os_directory=`$CC -print-multi-os-directory` | |
2035 | case $multi_os_directory in | |
2036 | .) ;; # Avoid trailing /. | |
2037 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
2038 | esac | |
2039 | ;; | |
2040 | esac | |
2041 | ||
2042 | ||
2043 | ||
2044 | # Check the compiler. | |
2045 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
2046 | # We must force CC to /not/ be precious variables; otherwise | |
2047 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
2048 | # As a side effect, we have to subst CFLAGS ourselves. | |
2049 | ||
2050 | ||
2051 | ||
2052 | ac_ext=c | |
2053 | ac_cpp='$CPP $CPPFLAGS' | |
2054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2057 | if test -n "$ac_tool_prefix"; then | |
2058 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2059 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2060 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2061 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2062 | if test "${ac_cv_prog_CC+set}" = set; then | |
2063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2064 | else | |
2065 | if test -n "$CC"; then | |
2066 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2067 | else | |
2068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2069 | for as_dir in $PATH | |
2070 | do | |
2071 | IFS=$as_save_IFS | |
2072 | test -z "$as_dir" && as_dir=. | |
2073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2074 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2075 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2077 | break 2 | |
2078 | fi | |
2079 | done | |
2080 | done | |
2081 | ||
2082 | fi | |
2083 | fi | |
2084 | CC=$ac_cv_prog_CC | |
2085 | if test -n "$CC"; then | |
2086 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2087 | echo "${ECHO_T}$CC" >&6 | |
2088 | else | |
2089 | echo "$as_me:$LINENO: result: no" >&5 | |
2090 | echo "${ECHO_T}no" >&6 | |
2091 | fi | |
2092 | ||
2093 | fi | |
2094 | if test -z "$ac_cv_prog_CC"; then | |
2095 | ac_ct_CC=$CC | |
2096 | # Extract the first word of "gcc", so it can be a program name with args. | |
2097 | set dummy gcc; ac_word=$2 | |
2098 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2100 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2102 | else | |
2103 | if test -n "$ac_ct_CC"; then | |
2104 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2105 | else | |
2106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2107 | for as_dir in $PATH | |
2108 | do | |
2109 | IFS=$as_save_IFS | |
2110 | test -z "$as_dir" && as_dir=. | |
2111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2112 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2113 | ac_cv_prog_ac_ct_CC="gcc" | |
2114 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2115 | break 2 | |
2116 | fi | |
2117 | done | |
2118 | done | |
2119 | ||
2120 | fi | |
2121 | fi | |
2122 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2123 | if test -n "$ac_ct_CC"; then | |
2124 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2125 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2126 | else | |
2127 | echo "$as_me:$LINENO: result: no" >&5 | |
2128 | echo "${ECHO_T}no" >&6 | |
2129 | fi | |
2130 | ||
2131 | CC=$ac_ct_CC | |
2132 | else | |
2133 | CC="$ac_cv_prog_CC" | |
2134 | fi | |
2135 | ||
2136 | if test -z "$CC"; then | |
2137 | if test -n "$ac_tool_prefix"; then | |
2138 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2139 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2140 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2142 | if test "${ac_cv_prog_CC+set}" = set; then | |
2143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2144 | else | |
2145 | if test -n "$CC"; then | |
2146 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2147 | else | |
2148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2149 | for as_dir in $PATH | |
2150 | do | |
2151 | IFS=$as_save_IFS | |
2152 | test -z "$as_dir" && as_dir=. | |
2153 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2154 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2155 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2157 | break 2 | |
2158 | fi | |
2159 | done | |
2160 | done | |
2161 | ||
2162 | fi | |
2163 | fi | |
2164 | CC=$ac_cv_prog_CC | |
2165 | if test -n "$CC"; then | |
2166 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2167 | echo "${ECHO_T}$CC" >&6 | |
2168 | else | |
2169 | echo "$as_me:$LINENO: result: no" >&5 | |
2170 | echo "${ECHO_T}no" >&6 | |
2171 | fi | |
2172 | ||
2173 | fi | |
2174 | if test -z "$ac_cv_prog_CC"; then | |
2175 | ac_ct_CC=$CC | |
2176 | # Extract the first word of "cc", so it can be a program name with args. | |
2177 | set dummy cc; ac_word=$2 | |
2178 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2179 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2180 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2182 | else | |
2183 | if test -n "$ac_ct_CC"; then | |
2184 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2185 | else | |
2186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2187 | for as_dir in $PATH | |
2188 | do | |
2189 | IFS=$as_save_IFS | |
2190 | test -z "$as_dir" && as_dir=. | |
2191 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2192 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2193 | ac_cv_prog_ac_ct_CC="cc" | |
2194 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2195 | break 2 | |
2196 | fi | |
2197 | done | |
2198 | done | |
2199 | ||
2200 | fi | |
2201 | fi | |
2202 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2203 | if test -n "$ac_ct_CC"; then | |
2204 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2205 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2206 | else | |
2207 | echo "$as_me:$LINENO: result: no" >&5 | |
2208 | echo "${ECHO_T}no" >&6 | |
2209 | fi | |
2210 | ||
2211 | CC=$ac_ct_CC | |
2212 | else | |
2213 | CC="$ac_cv_prog_CC" | |
2214 | fi | |
2215 | ||
2216 | fi | |
2217 | if test -z "$CC"; then | |
2218 | # Extract the first word of "cc", so it can be a program name with args. | |
2219 | set dummy cc; ac_word=$2 | |
2220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2222 | if test "${ac_cv_prog_CC+set}" = set; then | |
2223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2224 | else | |
2225 | if test -n "$CC"; then | |
2226 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2227 | else | |
2228 | ac_prog_rejected=no | |
2229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2230 | for as_dir in $PATH | |
2231 | do | |
2232 | IFS=$as_save_IFS | |
2233 | test -z "$as_dir" && as_dir=. | |
2234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2235 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2236 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2237 | ac_prog_rejected=yes | |
2238 | continue | |
2239 | fi | |
2240 | ac_cv_prog_CC="cc" | |
2241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2242 | break 2 | |
2243 | fi | |
2244 | done | |
2245 | done | |
2246 | ||
2247 | if test $ac_prog_rejected = yes; then | |
2248 | # We found a bogon in the path, so make sure we never use it. | |
2249 | set dummy $ac_cv_prog_CC | |
2250 | shift | |
2251 | if test $# != 0; then | |
2252 | # We chose a different compiler from the bogus one. | |
2253 | # However, it has the same basename, so the bogon will be chosen | |
2254 | # first if we set CC to just the basename; use the full file name. | |
2255 | shift | |
2256 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2257 | fi | |
2258 | fi | |
2259 | fi | |
2260 | fi | |
2261 | CC=$ac_cv_prog_CC | |
2262 | if test -n "$CC"; then | |
2263 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2264 | echo "${ECHO_T}$CC" >&6 | |
2265 | else | |
2266 | echo "$as_me:$LINENO: result: no" >&5 | |
2267 | echo "${ECHO_T}no" >&6 | |
2268 | fi | |
2269 | ||
2270 | fi | |
2271 | if test -z "$CC"; then | |
2272 | if test -n "$ac_tool_prefix"; then | |
2273 | for ac_prog in cl | |
2274 | do | |
2275 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2276 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2277 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2279 | if test "${ac_cv_prog_CC+set}" = set; then | |
2280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2281 | else | |
2282 | if test -n "$CC"; then | |
2283 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2284 | else | |
2285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2286 | for as_dir in $PATH | |
2287 | do | |
2288 | IFS=$as_save_IFS | |
2289 | test -z "$as_dir" && as_dir=. | |
2290 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2291 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2292 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2293 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2294 | break 2 | |
2295 | fi | |
2296 | done | |
2297 | done | |
2298 | ||
2299 | fi | |
2300 | fi | |
2301 | CC=$ac_cv_prog_CC | |
2302 | if test -n "$CC"; then | |
2303 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2304 | echo "${ECHO_T}$CC" >&6 | |
2305 | else | |
2306 | echo "$as_me:$LINENO: result: no" >&5 | |
2307 | echo "${ECHO_T}no" >&6 | |
2308 | fi | |
2309 | ||
2310 | test -n "$CC" && break | |
2311 | done | |
2312 | fi | |
2313 | if test -z "$CC"; then | |
2314 | ac_ct_CC=$CC | |
2315 | for ac_prog in cl | |
2316 | do | |
2317 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2318 | set dummy $ac_prog; ac_word=$2 | |
2319 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2321 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2323 | else | |
2324 | if test -n "$ac_ct_CC"; then | |
2325 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2326 | else | |
2327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2328 | for as_dir in $PATH | |
2329 | do | |
2330 | IFS=$as_save_IFS | |
2331 | test -z "$as_dir" && as_dir=. | |
2332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2333 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2334 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2335 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2336 | break 2 | |
2337 | fi | |
2338 | done | |
2339 | done | |
2340 | ||
2341 | fi | |
2342 | fi | |
2343 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2344 | if test -n "$ac_ct_CC"; then | |
2345 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2346 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2347 | else | |
2348 | echo "$as_me:$LINENO: result: no" >&5 | |
2349 | echo "${ECHO_T}no" >&6 | |
2350 | fi | |
2351 | ||
2352 | test -n "$ac_ct_CC" && break | |
2353 | done | |
2354 | ||
2355 | CC=$ac_ct_CC | |
2356 | fi | |
2357 | ||
2358 | fi | |
2359 | ||
2360 | ||
2361 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2362 | See \`config.log' for more details." >&5 | |
2363 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2364 | See \`config.log' for more details." >&2;} | |
2365 | { (exit 1); exit 1; }; } | |
2366 | ||
2367 | # Provide some information about the compiler. | |
2368 | echo "$as_me:$LINENO:" \ | |
2369 | "checking for C compiler version" >&5 | |
2370 | ac_compiler=`set X $ac_compile; echo $2` | |
2371 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2372 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2373 | ac_status=$? | |
2374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2375 | (exit $ac_status); } | |
2376 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2377 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2378 | ac_status=$? | |
2379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2380 | (exit $ac_status); } | |
2381 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2382 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2383 | ac_status=$? | |
2384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2385 | (exit $ac_status); } | |
2386 | ||
2387 | cat >conftest.$ac_ext <<_ACEOF | |
2388 | /* confdefs.h. */ | |
2389 | _ACEOF | |
2390 | cat confdefs.h >>conftest.$ac_ext | |
2391 | cat >>conftest.$ac_ext <<_ACEOF | |
2392 | /* end confdefs.h. */ | |
2393 | ||
2394 | int | |
2395 | main () | |
2396 | { | |
2397 | ||
2398 | ; | |
2399 | return 0; | |
2400 | } | |
2401 | _ACEOF | |
2402 | ac_clean_files_save=$ac_clean_files | |
2403 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2404 | # Try to create an executable without -o first, disregard a.out. | |
2405 | # It will help us diagnose broken compilers, and finding out an intuition | |
2406 | # of exeext. | |
2407 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2408 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2409 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2410 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2411 | (eval $ac_link_default) 2>&5 | |
2412 | ac_status=$? | |
2413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2414 | (exit $ac_status); }; then | |
2415 | # Find the output, starting from the most likely. This scheme is | |
2416 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2417 | # resort. | |
2418 | ||
2419 | # Be careful to initialize this variable, since it used to be cached. | |
2420 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2421 | ac_cv_exeext= | |
2422 | # b.out is created by i960 compilers. | |
2423 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2424 | do | |
2425 | test -f "$ac_file" || continue | |
2426 | case $ac_file in | |
2427 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2428 | ;; | |
2429 | conftest.$ac_ext ) | |
2430 | # This is the source file. | |
2431 | ;; | |
2432 | [ab].out ) | |
2433 | # We found the default executable, but exeext='' is most | |
2434 | # certainly right. | |
2435 | break;; | |
2436 | *.* ) | |
2437 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2438 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2439 | # but it would be cool to find out if it's true. Does anybody | |
2440 | # maintain Libtool? --akim. | |
2441 | export ac_cv_exeext | |
2442 | break;; | |
2443 | * ) | |
2444 | break;; | |
2445 | esac | |
2446 | done | |
2447 | else | |
2448 | echo "$as_me: failed program was:" >&5 | |
2449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2450 | ||
2451 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2452 | See \`config.log' for more details." >&5 | |
2453 | echo "$as_me: error: C compiler cannot create executables | |
2454 | See \`config.log' for more details." >&2;} | |
2455 | { (exit 77); exit 77; }; } | |
2456 | fi | |
2457 | ||
2458 | ac_exeext=$ac_cv_exeext | |
2459 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2460 | echo "${ECHO_T}$ac_file" >&6 | |
2461 | ||
2462 | # Check the compiler produces executables we can run. If not, either | |
2463 | # the compiler is broken, or we cross compile. | |
2464 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2465 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2466 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2467 | # If not cross compiling, check that we can run a simple program. | |
2468 | if test "$cross_compiling" != yes; then | |
2469 | if { ac_try='./$ac_file' | |
2470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2471 | (eval $ac_try) 2>&5 | |
2472 | ac_status=$? | |
2473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2474 | (exit $ac_status); }; }; then | |
2475 | cross_compiling=no | |
2476 | else | |
2477 | if test "$cross_compiling" = maybe; then | |
2478 | cross_compiling=yes | |
2479 | else | |
2480 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2481 | If you meant to cross compile, use \`--host'. | |
2482 | See \`config.log' for more details." >&5 | |
2483 | echo "$as_me: error: cannot run C compiled programs. | |
2484 | If you meant to cross compile, use \`--host'. | |
2485 | See \`config.log' for more details." >&2;} | |
2486 | { (exit 1); exit 1; }; } | |
2487 | fi | |
2488 | fi | |
2489 | fi | |
2490 | echo "$as_me:$LINENO: result: yes" >&5 | |
2491 | echo "${ECHO_T}yes" >&6 | |
2492 | ||
2493 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2494 | ac_clean_files=$ac_clean_files_save | |
2495 | # Check the compiler produces executables we can run. If not, either | |
2496 | # the compiler is broken, or we cross compile. | |
2497 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2498 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2499 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2500 | echo "${ECHO_T}$cross_compiling" >&6 | |
2501 | ||
2502 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2503 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2505 | (eval $ac_link) 2>&5 | |
2506 | ac_status=$? | |
2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2508 | (exit $ac_status); }; then | |
2509 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2510 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2511 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2512 | # `rm'. | |
2513 | for ac_file in conftest.exe conftest conftest.*; do | |
2514 | test -f "$ac_file" || continue | |
2515 | case $ac_file in | |
2516 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2517 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2518 | export ac_cv_exeext | |
2519 | break;; | |
2520 | * ) break;; | |
2521 | esac | |
2522 | done | |
2523 | else | |
2524 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2525 | See \`config.log' for more details." >&5 | |
2526 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2527 | See \`config.log' for more details." >&2;} | |
2528 | { (exit 1); exit 1; }; } | |
2529 | fi | |
2530 | ||
2531 | rm -f conftest$ac_cv_exeext | |
2532 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2533 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2534 | ||
2535 | rm -f conftest.$ac_ext | |
2536 | EXEEXT=$ac_cv_exeext | |
2537 | ac_exeext=$EXEEXT | |
2538 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2539 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2540 | if test "${ac_cv_objext+set}" = set; then | |
2541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2542 | else | |
2543 | cat >conftest.$ac_ext <<_ACEOF | |
2544 | /* confdefs.h. */ | |
2545 | _ACEOF | |
2546 | cat confdefs.h >>conftest.$ac_ext | |
2547 | cat >>conftest.$ac_ext <<_ACEOF | |
2548 | /* end confdefs.h. */ | |
2549 | ||
2550 | int | |
2551 | main () | |
2552 | { | |
2553 | ||
2554 | ; | |
2555 | return 0; | |
2556 | } | |
2557 | _ACEOF | |
2558 | rm -f conftest.o conftest.obj | |
2559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2560 | (eval $ac_compile) 2>&5 | |
2561 | ac_status=$? | |
2562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2563 | (exit $ac_status); }; then | |
2564 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2565 | case $ac_file in | |
2566 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2567 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2568 | break;; | |
2569 | esac | |
2570 | done | |
2571 | else | |
2572 | echo "$as_me: failed program was:" >&5 | |
2573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2574 | ||
2575 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2576 | See \`config.log' for more details." >&5 | |
2577 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2578 | See \`config.log' for more details." >&2;} | |
2579 | { (exit 1); exit 1; }; } | |
2580 | fi | |
2581 | ||
2582 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2583 | fi | |
2584 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2585 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2586 | OBJEXT=$ac_cv_objext | |
2587 | ac_objext=$OBJEXT | |
2588 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2589 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2590 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2592 | else | |
2593 | cat >conftest.$ac_ext <<_ACEOF | |
2594 | /* confdefs.h. */ | |
2595 | _ACEOF | |
2596 | cat confdefs.h >>conftest.$ac_ext | |
2597 | cat >>conftest.$ac_ext <<_ACEOF | |
2598 | /* end confdefs.h. */ | |
2599 | ||
2600 | int | |
2601 | main () | |
2602 | { | |
2603 | #ifndef __GNUC__ | |
2604 | choke me | |
2605 | #endif | |
2606 | ||
2607 | ; | |
2608 | return 0; | |
2609 | } | |
2610 | _ACEOF | |
2611 | rm -f conftest.$ac_objext | |
2612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2613 | (eval $ac_compile) 2>conftest.er1 | |
2614 | ac_status=$? | |
2615 | grep -v '^ *+' conftest.er1 >conftest.err | |
2616 | rm -f conftest.er1 | |
2617 | cat conftest.err >&5 | |
2618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2619 | (exit $ac_status); } && | |
59da30e1 | 2620 | { ac_try='test -z "$ac_c_werror_flag" |
2621 | || test ! -s conftest.err' | |
1e8e9920 | 2622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2623 | (eval $ac_try) 2>&5 | |
2624 | ac_status=$? | |
2625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2626 | (exit $ac_status); }; } && | |
2627 | { ac_try='test -s conftest.$ac_objext' | |
2628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2629 | (eval $ac_try) 2>&5 | |
2630 | ac_status=$? | |
2631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2632 | (exit $ac_status); }; }; then | |
2633 | ac_compiler_gnu=yes | |
2634 | else | |
2635 | echo "$as_me: failed program was:" >&5 | |
2636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2637 | ||
2638 | ac_compiler_gnu=no | |
2639 | fi | |
2640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2641 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2642 | ||
2643 | fi | |
2644 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2645 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2646 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2647 | ac_test_CFLAGS=${CFLAGS+set} | |
2648 | ac_save_CFLAGS=$CFLAGS | |
2649 | CFLAGS="-g" | |
2650 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2651 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2652 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2654 | else | |
2655 | cat >conftest.$ac_ext <<_ACEOF | |
2656 | /* confdefs.h. */ | |
2657 | _ACEOF | |
2658 | cat confdefs.h >>conftest.$ac_ext | |
2659 | cat >>conftest.$ac_ext <<_ACEOF | |
2660 | /* end confdefs.h. */ | |
2661 | ||
2662 | int | |
2663 | main () | |
2664 | { | |
2665 | ||
2666 | ; | |
2667 | return 0; | |
2668 | } | |
2669 | _ACEOF | |
2670 | rm -f conftest.$ac_objext | |
2671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2672 | (eval $ac_compile) 2>conftest.er1 | |
2673 | ac_status=$? | |
2674 | grep -v '^ *+' conftest.er1 >conftest.err | |
2675 | rm -f conftest.er1 | |
2676 | cat conftest.err >&5 | |
2677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2678 | (exit $ac_status); } && | |
59da30e1 | 2679 | { ac_try='test -z "$ac_c_werror_flag" |
2680 | || test ! -s conftest.err' | |
1e8e9920 | 2681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2682 | (eval $ac_try) 2>&5 | |
2683 | ac_status=$? | |
2684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2685 | (exit $ac_status); }; } && | |
2686 | { ac_try='test -s conftest.$ac_objext' | |
2687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2688 | (eval $ac_try) 2>&5 | |
2689 | ac_status=$? | |
2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2691 | (exit $ac_status); }; }; then | |
2692 | ac_cv_prog_cc_g=yes | |
2693 | else | |
2694 | echo "$as_me: failed program was:" >&5 | |
2695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2696 | ||
2697 | ac_cv_prog_cc_g=no | |
2698 | fi | |
2699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2700 | fi | |
2701 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2702 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2703 | if test "$ac_test_CFLAGS" = set; then | |
2704 | CFLAGS=$ac_save_CFLAGS | |
2705 | elif test $ac_cv_prog_cc_g = yes; then | |
2706 | if test "$GCC" = yes; then | |
2707 | CFLAGS="-g -O2" | |
2708 | else | |
2709 | CFLAGS="-g" | |
2710 | fi | |
2711 | else | |
2712 | if test "$GCC" = yes; then | |
2713 | CFLAGS="-O2" | |
2714 | else | |
2715 | CFLAGS= | |
2716 | fi | |
2717 | fi | |
2718 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2719 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2720 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2722 | else | |
2723 | ac_cv_prog_cc_stdc=no | |
2724 | ac_save_CC=$CC | |
2725 | cat >conftest.$ac_ext <<_ACEOF | |
2726 | /* confdefs.h. */ | |
2727 | _ACEOF | |
2728 | cat confdefs.h >>conftest.$ac_ext | |
2729 | cat >>conftest.$ac_ext <<_ACEOF | |
2730 | /* end confdefs.h. */ | |
2731 | #include <stdarg.h> | |
2732 | #include <stdio.h> | |
2733 | #include <sys/types.h> | |
2734 | #include <sys/stat.h> | |
2735 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2736 | struct buf { int x; }; | |
2737 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2738 | static char *e (p, i) | |
2739 | char **p; | |
2740 | int i; | |
2741 | { | |
2742 | return p[i]; | |
2743 | } | |
2744 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2745 | { | |
2746 | char *s; | |
2747 | va_list v; | |
2748 | va_start (v,p); | |
2749 | s = g (p, va_arg (v,int)); | |
2750 | va_end (v); | |
2751 | return s; | |
2752 | } | |
2753 | ||
2754 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2755 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2756 | These don't provoke an error unfortunately, instead are silently treated | |
2757 | as 'x'. The following induces an error, until -std1 is added to get | |
2758 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2759 | array size at least. It's necessary to write '\x00'==0 to get something | |
2760 | that's true only with -std1. */ | |
2761 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2762 | ||
2763 | int test (int i, double x); | |
2764 | struct s1 {int (*f) (int a);}; | |
2765 | struct s2 {int (*f) (double a);}; | |
2766 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2767 | int argc; | |
2768 | char **argv; | |
2769 | int | |
2770 | main () | |
2771 | { | |
2772 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2773 | ; | |
2774 | return 0; | |
2775 | } | |
2776 | _ACEOF | |
2777 | # Don't try gcc -ansi; that turns off useful extensions and | |
2778 | # breaks some systems' header files. | |
2779 | # AIX -qlanglvl=ansi | |
2780 | # Ultrix and OSF/1 -std1 | |
2781 | # HP-UX 10.20 and later -Ae | |
2782 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2783 | # SVR4 -Xc -D__EXTENSIONS__ | |
2784 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2785 | do | |
2786 | CC="$ac_save_CC $ac_arg" | |
2787 | rm -f conftest.$ac_objext | |
2788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2789 | (eval $ac_compile) 2>conftest.er1 | |
2790 | ac_status=$? | |
2791 | grep -v '^ *+' conftest.er1 >conftest.err | |
2792 | rm -f conftest.er1 | |
2793 | cat conftest.err >&5 | |
2794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2795 | (exit $ac_status); } && | |
59da30e1 | 2796 | { ac_try='test -z "$ac_c_werror_flag" |
2797 | || test ! -s conftest.err' | |
1e8e9920 | 2798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2799 | (eval $ac_try) 2>&5 | |
2800 | ac_status=$? | |
2801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2802 | (exit $ac_status); }; } && | |
2803 | { ac_try='test -s conftest.$ac_objext' | |
2804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2805 | (eval $ac_try) 2>&5 | |
2806 | ac_status=$? | |
2807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2808 | (exit $ac_status); }; }; then | |
2809 | ac_cv_prog_cc_stdc=$ac_arg | |
2810 | break | |
2811 | else | |
2812 | echo "$as_me: failed program was:" >&5 | |
2813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2814 | ||
2815 | fi | |
2816 | rm -f conftest.err conftest.$ac_objext | |
2817 | done | |
2818 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2819 | CC=$ac_save_CC | |
2820 | ||
2821 | fi | |
2822 | ||
2823 | case "x$ac_cv_prog_cc_stdc" in | |
2824 | x|xno) | |
2825 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2826 | echo "${ECHO_T}none needed" >&6 ;; | |
2827 | *) | |
2828 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2829 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2830 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2831 | esac | |
2832 | ||
2833 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2834 | # in C++ we need to declare it. In case someone uses the same compiler | |
2835 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2836 | # the declaration of exit, since it's the most demanding environment. | |
2837 | cat >conftest.$ac_ext <<_ACEOF | |
2838 | #ifndef __cplusplus | |
2839 | choke me | |
2840 | #endif | |
2841 | _ACEOF | |
2842 | rm -f conftest.$ac_objext | |
2843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2844 | (eval $ac_compile) 2>conftest.er1 | |
2845 | ac_status=$? | |
2846 | grep -v '^ *+' conftest.er1 >conftest.err | |
2847 | rm -f conftest.er1 | |
2848 | cat conftest.err >&5 | |
2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2850 | (exit $ac_status); } && | |
59da30e1 | 2851 | { ac_try='test -z "$ac_c_werror_flag" |
2852 | || test ! -s conftest.err' | |
1e8e9920 | 2853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2854 | (eval $ac_try) 2>&5 | |
2855 | ac_status=$? | |
2856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2857 | (exit $ac_status); }; } && | |
2858 | { ac_try='test -s conftest.$ac_objext' | |
2859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2860 | (eval $ac_try) 2>&5 | |
2861 | ac_status=$? | |
2862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2863 | (exit $ac_status); }; }; then | |
2864 | for ac_declaration in \ | |
2865 | '' \ | |
2866 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2867 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2868 | 'extern "C" void exit (int) throw ();' \ | |
2869 | 'extern "C" void exit (int);' \ | |
2870 | 'void exit (int);' | |
2871 | do | |
2872 | cat >conftest.$ac_ext <<_ACEOF | |
2873 | /* confdefs.h. */ | |
2874 | _ACEOF | |
2875 | cat confdefs.h >>conftest.$ac_ext | |
2876 | cat >>conftest.$ac_ext <<_ACEOF | |
2877 | /* end confdefs.h. */ | |
2878 | $ac_declaration | |
2879 | #include <stdlib.h> | |
2880 | int | |
2881 | main () | |
2882 | { | |
2883 | exit (42); | |
2884 | ; | |
2885 | return 0; | |
2886 | } | |
2887 | _ACEOF | |
2888 | rm -f conftest.$ac_objext | |
2889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2890 | (eval $ac_compile) 2>conftest.er1 | |
2891 | ac_status=$? | |
2892 | grep -v '^ *+' conftest.er1 >conftest.err | |
2893 | rm -f conftest.er1 | |
2894 | cat conftest.err >&5 | |
2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2896 | (exit $ac_status); } && | |
59da30e1 | 2897 | { ac_try='test -z "$ac_c_werror_flag" |
2898 | || test ! -s conftest.err' | |
1e8e9920 | 2899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2900 | (eval $ac_try) 2>&5 | |
2901 | ac_status=$? | |
2902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2903 | (exit $ac_status); }; } && | |
2904 | { ac_try='test -s conftest.$ac_objext' | |
2905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2906 | (eval $ac_try) 2>&5 | |
2907 | ac_status=$? | |
2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2909 | (exit $ac_status); }; }; then | |
2910 | : | |
2911 | else | |
2912 | echo "$as_me: failed program was:" >&5 | |
2913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2914 | ||
2915 | continue | |
2916 | fi | |
2917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2918 | cat >conftest.$ac_ext <<_ACEOF | |
2919 | /* confdefs.h. */ | |
2920 | _ACEOF | |
2921 | cat confdefs.h >>conftest.$ac_ext | |
2922 | cat >>conftest.$ac_ext <<_ACEOF | |
2923 | /* end confdefs.h. */ | |
2924 | $ac_declaration | |
2925 | int | |
2926 | main () | |
2927 | { | |
2928 | exit (42); | |
2929 | ; | |
2930 | return 0; | |
2931 | } | |
2932 | _ACEOF | |
2933 | rm -f conftest.$ac_objext | |
2934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2935 | (eval $ac_compile) 2>conftest.er1 | |
2936 | ac_status=$? | |
2937 | grep -v '^ *+' conftest.er1 >conftest.err | |
2938 | rm -f conftest.er1 | |
2939 | cat conftest.err >&5 | |
2940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2941 | (exit $ac_status); } && | |
59da30e1 | 2942 | { ac_try='test -z "$ac_c_werror_flag" |
2943 | || test ! -s conftest.err' | |
1e8e9920 | 2944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2945 | (eval $ac_try) 2>&5 | |
2946 | ac_status=$? | |
2947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2948 | (exit $ac_status); }; } && | |
2949 | { ac_try='test -s conftest.$ac_objext' | |
2950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2951 | (eval $ac_try) 2>&5 | |
2952 | ac_status=$? | |
2953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2954 | (exit $ac_status); }; }; then | |
2955 | break | |
2956 | else | |
2957 | echo "$as_me: failed program was:" >&5 | |
2958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2959 | ||
2960 | fi | |
2961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2962 | done | |
2963 | rm -f conftest* | |
2964 | if test -n "$ac_declaration"; then | |
2965 | echo '#ifdef __cplusplus' >>confdefs.h | |
2966 | echo $ac_declaration >>confdefs.h | |
2967 | echo '#endif' >>confdefs.h | |
2968 | fi | |
2969 | ||
2970 | else | |
2971 | echo "$as_me: failed program was:" >&5 | |
2972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2973 | ||
2974 | fi | |
2975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2976 | ac_ext=c | |
2977 | ac_cpp='$CPP $CPPFLAGS' | |
2978 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2979 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2980 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2981 | DEPDIR="${am__leading_dot}deps" | |
2982 | ||
2983 | ac_config_commands="$ac_config_commands depfiles" | |
2984 | ||
2985 | ||
2986 | am_make=${MAKE-make} | |
2987 | cat > confinc << 'END' | |
2988 | am__doit: | |
2989 | @echo done | |
2990 | .PHONY: am__doit | |
2991 | END | |
2992 | # If we don't find an include directive, just comment out the code. | |
2993 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2994 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2995 | am__include="#" | |
2996 | am__quote= | |
2997 | _am_result=none | |
2998 | # First try GNU make style include. | |
2999 | echo "include confinc" > confmf | |
3000 | # We grep out `Entering directory' and `Leaving directory' | |
3001 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3002 | # In particular we don't look at `^make:' because GNU make might | |
3003 | # be invoked under some other name (usually "gmake"), in which | |
3004 | # case it prints its new name instead of `make'. | |
3005 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3006 | am__include=include | |
3007 | am__quote= | |
3008 | _am_result=GNU | |
3009 | fi | |
3010 | # Now try BSD make style include. | |
3011 | if test "$am__include" = "#"; then | |
3012 | echo '.include "confinc"' > confmf | |
3013 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3014 | am__include=.include | |
3015 | am__quote="\"" | |
3016 | _am_result=BSD | |
3017 | fi | |
3018 | fi | |
3019 | ||
3020 | ||
3021 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3022 | echo "${ECHO_T}$_am_result" >&6 | |
3023 | rm -f confinc confmf | |
3024 | ||
3025 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
3026 | if test "${enable_dependency_tracking+set}" = set; then | |
3027 | enableval="$enable_dependency_tracking" | |
3028 | ||
3029 | fi; | |
3030 | if test "x$enable_dependency_tracking" != xno; then | |
3031 | am_depcomp="$ac_aux_dir/depcomp" | |
3032 | AMDEPBACKSLASH='\' | |
3033 | fi | |
3034 | ||
3035 | ||
3036 | if test "x$enable_dependency_tracking" != xno; then | |
3037 | AMDEP_TRUE= | |
3038 | AMDEP_FALSE='#' | |
3039 | else | |
3040 | AMDEP_TRUE='#' | |
3041 | AMDEP_FALSE= | |
3042 | fi | |
3043 | ||
3044 | ||
3045 | ||
3046 | ||
3047 | depcc="$CC" am_compiler_list= | |
3048 | ||
3049 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3050 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3051 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3053 | else | |
3054 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3055 | # We make a subdir and do the tests there. Otherwise we can end up | |
3056 | # making bogus files that we don't know about and never remove. For | |
3057 | # instance it was reported that on HP-UX the gcc test will end up | |
3058 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3059 | # in D'. | |
3060 | mkdir conftest.dir | |
3061 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3062 | # using a relative directory. | |
3063 | cp "$am_depcomp" conftest.dir | |
3064 | cd conftest.dir | |
3065 | # We will build objects and dependencies in a subdirectory because | |
3066 | # it helps to detect inapplicable dependency modes. For instance | |
3067 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3068 | # side effect of compilation, but ICC will put the dependencies in | |
3069 | # the current directory while Tru64 will put them in the object | |
3070 | # directory. | |
3071 | mkdir sub | |
3072 | ||
3073 | am_cv_CC_dependencies_compiler_type=none | |
3074 | if test "$am_compiler_list" = ""; then | |
3075 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3076 | fi | |
3077 | for depmode in $am_compiler_list; do | |
3078 | # Setup a source with many dependencies, because some compilers | |
3079 | # like to wrap large dependency lists on column 80 (with \), and | |
3080 | # we should not choose a depcomp mode which is confused by this. | |
3081 | # | |
3082 | # We need to recreate these files for each test, as the compiler may | |
3083 | # overwrite some of them when testing with obscure command lines. | |
3084 | # This happens at least with the AIX C compiler. | |
3085 | : > sub/conftest.c | |
3086 | for i in 1 2 3 4 5 6; do | |
3087 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3088 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3089 | # Solaris 8's {/usr,}/bin/sh. | |
3090 | touch sub/conftst$i.h | |
3091 | done | |
3092 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3093 | ||
3094 | case $depmode in | |
3095 | nosideeffect) | |
3096 | # after this tag, mechanisms are not by side-effect, so they'll | |
3097 | # only be used when explicitly requested | |
3098 | if test "x$enable_dependency_tracking" = xyes; then | |
3099 | continue | |
3100 | else | |
3101 | break | |
3102 | fi | |
3103 | ;; | |
3104 | none) break ;; | |
3105 | esac | |
3106 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3107 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3108 | # handle `-M -o', and we need to detect this. | |
3109 | if depmode=$depmode \ | |
3110 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3111 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3112 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3113 | >/dev/null 2>conftest.err && | |
3114 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3115 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3116 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3117 | # icc doesn't choke on unknown options, it will just issue warnings | |
3118 | # or remarks (even with -Werror). So we grep stderr for any message | |
3119 | # that says an option was ignored or not supported. | |
3120 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3121 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3122 | # The diagnosis changed in icc 8.0: | |
3123 | # icc: Command line remark: option '-MP' not supported | |
3124 | if (grep 'ignoring option' conftest.err || | |
3125 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3126 | am_cv_CC_dependencies_compiler_type=$depmode | |
3127 | break | |
3128 | fi | |
3129 | fi | |
3130 | done | |
3131 | ||
3132 | cd .. | |
3133 | rm -rf conftest.dir | |
3134 | else | |
3135 | am_cv_CC_dependencies_compiler_type=none | |
3136 | fi | |
3137 | ||
3138 | fi | |
3139 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3140 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3141 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3142 | ||
3143 | ||
3144 | ||
3145 | if | |
3146 | test "x$enable_dependency_tracking" != xno \ | |
3147 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3148 | am__fastdepCC_TRUE= | |
3149 | am__fastdepCC_FALSE='#' | |
3150 | else | |
3151 | am__fastdepCC_TRUE='#' | |
3152 | am__fastdepCC_FALSE= | |
3153 | fi | |
3154 | ||
3155 | ||
3156 | ||
3157 | ||
3158 | ||
3159 | ||
3160 | # In order to override CFLAGS_FOR_TARGET, all of our special flags go | |
3161 | # in XCFLAGS. But we need them in CFLAGS during configury. So put them | |
3162 | # in both places for now and restore CFLAGS at the end of config. | |
3163 | save_CFLAGS="$CFLAGS" | |
3164 | ||
3165 | # Add -Wall -Werror if we are using GCC. | |
3166 | if test "x$GCC" = "xyes"; then | |
3167 | XCFLAGS="$XCFLAGS -Wall -Werror" | |
3168 | fi | |
3169 | ||
3170 | # Find other programs we need. | |
3171 | if test -n "$ac_tool_prefix"; then | |
3172 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3173 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3174 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3175 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3176 | if test "${ac_cv_prog_AR+set}" = set; then | |
3177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3178 | else | |
3179 | if test -n "$AR"; then | |
3180 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3181 | else | |
3182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3183 | for as_dir in $PATH | |
3184 | do | |
3185 | IFS=$as_save_IFS | |
3186 | test -z "$as_dir" && as_dir=. | |
3187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3188 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3189 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3190 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3191 | break 2 | |
3192 | fi | |
3193 | done | |
3194 | done | |
3195 | ||
3196 | fi | |
3197 | fi | |
3198 | AR=$ac_cv_prog_AR | |
3199 | if test -n "$AR"; then | |
3200 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3201 | echo "${ECHO_T}$AR" >&6 | |
3202 | else | |
3203 | echo "$as_me:$LINENO: result: no" >&5 | |
3204 | echo "${ECHO_T}no" >&6 | |
3205 | fi | |
3206 | ||
3207 | fi | |
3208 | if test -z "$ac_cv_prog_AR"; then | |
3209 | ac_ct_AR=$AR | |
3210 | # Extract the first word of "ar", so it can be a program name with args. | |
3211 | set dummy ar; ac_word=$2 | |
3212 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3214 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3216 | else | |
3217 | if test -n "$ac_ct_AR"; then | |
3218 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3219 | else | |
3220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3221 | for as_dir in $PATH | |
3222 | do | |
3223 | IFS=$as_save_IFS | |
3224 | test -z "$as_dir" && as_dir=. | |
3225 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3227 | ac_cv_prog_ac_ct_AR="ar" | |
3228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3229 | break 2 | |
3230 | fi | |
3231 | done | |
3232 | done | |
3233 | ||
3234 | fi | |
3235 | fi | |
3236 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3237 | if test -n "$ac_ct_AR"; then | |
3238 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3239 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3240 | else | |
3241 | echo "$as_me:$LINENO: result: no" >&5 | |
3242 | echo "${ECHO_T}no" >&6 | |
3243 | fi | |
3244 | ||
3245 | AR=$ac_ct_AR | |
3246 | else | |
3247 | AR="$ac_cv_prog_AR" | |
3248 | fi | |
3249 | ||
3250 | if test -n "$ac_tool_prefix"; then | |
3251 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3252 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3253 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3255 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3257 | else | |
3258 | if test -n "$RANLIB"; then | |
3259 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3260 | else | |
3261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3262 | for as_dir in $PATH | |
3263 | do | |
3264 | IFS=$as_save_IFS | |
3265 | test -z "$as_dir" && as_dir=. | |
3266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3267 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3268 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3270 | break 2 | |
3271 | fi | |
3272 | done | |
3273 | done | |
3274 | ||
3275 | fi | |
3276 | fi | |
3277 | RANLIB=$ac_cv_prog_RANLIB | |
3278 | if test -n "$RANLIB"; then | |
3279 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3280 | echo "${ECHO_T}$RANLIB" >&6 | |
3281 | else | |
3282 | echo "$as_me:$LINENO: result: no" >&5 | |
3283 | echo "${ECHO_T}no" >&6 | |
3284 | fi | |
3285 | ||
3286 | fi | |
3287 | if test -z "$ac_cv_prog_RANLIB"; then | |
3288 | ac_ct_RANLIB=$RANLIB | |
3289 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3290 | set dummy ranlib; ac_word=$2 | |
3291 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3293 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3295 | else | |
3296 | if test -n "$ac_ct_RANLIB"; then | |
3297 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3298 | else | |
3299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3300 | for as_dir in $PATH | |
3301 | do | |
3302 | IFS=$as_save_IFS | |
3303 | test -z "$as_dir" && as_dir=. | |
3304 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3305 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3306 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3307 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3308 | break 2 | |
3309 | fi | |
3310 | done | |
3311 | done | |
3312 | ||
3313 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" | |
3314 | fi | |
3315 | fi | |
3316 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3317 | if test -n "$ac_ct_RANLIB"; then | |
3318 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3319 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3320 | else | |
3321 | echo "$as_me:$LINENO: result: no" >&5 | |
3322 | echo "${ECHO_T}no" >&6 | |
3323 | fi | |
3324 | ||
3325 | RANLIB=$ac_ct_RANLIB | |
3326 | else | |
3327 | RANLIB="$ac_cv_prog_RANLIB" | |
3328 | fi | |
3329 | ||
3330 | # Extract the first word of "perl", so it can be a program name with args. | |
3331 | set dummy perl; ac_word=$2 | |
3332 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3333 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3334 | if test "${ac_cv_path_PERL+set}" = set; then | |
3335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3336 | else | |
3337 | case $PERL in | |
3338 | [\\/]* | ?:[\\/]*) | |
3339 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
3340 | ;; | |
3341 | *) | |
3342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3343 | for as_dir in $PATH | |
3344 | do | |
3345 | IFS=$as_save_IFS | |
3346 | test -z "$as_dir" && as_dir=. | |
3347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3349 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | |
3350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3351 | break 2 | |
3352 | fi | |
3353 | done | |
3354 | done | |
3355 | ||
3356 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" | |
3357 | ;; | |
3358 | esac | |
3359 | fi | |
3360 | PERL=$ac_cv_path_PERL | |
3361 | ||
3362 | if test -n "$PERL"; then | |
3363 | echo "$as_me:$LINENO: result: $PERL" >&5 | |
3364 | echo "${ECHO_T}$PERL" >&6 | |
3365 | else | |
3366 | echo "$as_me:$LINENO: result: no" >&5 | |
3367 | echo "${ECHO_T}no" >&6 | |
3368 | fi | |
3369 | ||
3370 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3371 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3372 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3373 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
3374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3375 | else | |
3376 | cat >conftest.make <<\_ACEOF | |
3377 | all: | |
3378 | @echo 'ac_maketemp="$(MAKE)"' | |
3379 | _ACEOF | |
3380 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3381 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3382 | if test -n "$ac_maketemp"; then | |
3383 | eval ac_cv_prog_make_${ac_make}_set=yes | |
3384 | else | |
3385 | eval ac_cv_prog_make_${ac_make}_set=no | |
3386 | fi | |
3387 | rm -f conftest.make | |
3388 | fi | |
3389 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3390 | echo "$as_me:$LINENO: result: yes" >&5 | |
3391 | echo "${ECHO_T}yes" >&6 | |
3392 | SET_MAKE= | |
3393 | else | |
3394 | echo "$as_me:$LINENO: result: no" >&5 | |
3395 | echo "${ECHO_T}no" >&6 | |
3396 | SET_MAKE="MAKE=${MAKE-make}" | |
3397 | fi | |
3398 | ||
3399 | # Find a good install program. We prefer a C program (faster), | |
3400 | # so one script is as good as another. But avoid the broken or | |
3401 | # incompatible versions: | |
3402 | # SysV /etc/install, /usr/sbin/install | |
3403 | # SunOS /usr/etc/install | |
3404 | # IRIX /sbin/install | |
3405 | # AIX /bin/install | |
3406 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3407 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3408 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3409 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3410 | # OS/2's system install, which has a completely different semantic | |
3411 | # ./install, which can be erroneously created by make from ./install.sh. | |
3412 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3413 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3414 | if test -z "$INSTALL"; then | |
3415 | if test "${ac_cv_path_install+set}" = set; then | |
3416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3417 | else | |
3418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3419 | for as_dir in $PATH | |
3420 | do | |
3421 | IFS=$as_save_IFS | |
3422 | test -z "$as_dir" && as_dir=. | |
3423 | # Account for people who put trailing slashes in PATH elements. | |
3424 | case $as_dir/ in | |
3425 | ./ | .// | /cC/* | \ | |
3426 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3427 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3428 | /usr/ucb/* ) ;; | |
3429 | *) | |
3430 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3431 | # Don't use installbsd from OSF since it installs stuff as root | |
3432 | # by default. | |
3433 | for ac_prog in ginstall scoinst install; do | |
3434 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3435 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3436 | if test $ac_prog = install && | |
3437 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3438 | # AIX install. It has an incompatible calling convention. | |
3439 | : | |
3440 | elif test $ac_prog = install && | |
3441 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3442 | # program-specific install script used by HP pwplus--don't use. | |
3443 | : | |
3444 | else | |
3445 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3446 | break 3 | |
3447 | fi | |
3448 | fi | |
3449 | done | |
3450 | done | |
3451 | ;; | |
3452 | esac | |
3453 | done | |
3454 | ||
3455 | ||
3456 | fi | |
3457 | if test "${ac_cv_path_install+set}" = set; then | |
3458 | INSTALL=$ac_cv_path_install | |
3459 | else | |
3460 | # As a last resort, use the slow shell script. We don't cache a | |
3461 | # path for INSTALL within a source directory, because that will | |
3462 | # break other packages using the cache if that directory is | |
3463 | # removed, or if the path is relative. | |
3464 | INSTALL=$ac_install_sh | |
3465 | fi | |
3466 | fi | |
3467 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3468 | echo "${ECHO_T}$INSTALL" >&6 | |
3469 | ||
3470 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3471 | # It thinks the first close brace ends the variable substitution. | |
3472 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3473 | ||
3474 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3475 | ||
3476 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3477 | ||
3478 | ||
439d698f | 3479 | # See if makeinfo has been installed and is modern enough |
3480 | # that we can use it. | |
3481 | ||
3482 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
3483 | set dummy makeinfo; ac_word=$2 | |
3484 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3486 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then | |
3487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3488 | else | |
3489 | if test -n "$MAKEINFO"; then | |
3490 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
3491 | else | |
3492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3493 | for as_dir in $PATH | |
3494 | do | |
3495 | IFS=$as_save_IFS | |
3496 | test -z "$as_dir" && as_dir=. | |
3497 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3498 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3499 | ac_cv_prog_MAKEINFO="makeinfo" | |
3500 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3501 | break 2 | |
3502 | fi | |
3503 | done | |
3504 | done | |
3505 | ||
3506 | fi | |
3507 | fi | |
3508 | MAKEINFO=$ac_cv_prog_MAKEINFO | |
3509 | if test -n "$MAKEINFO"; then | |
3510 | echo "$as_me:$LINENO: result: $MAKEINFO" >&5 | |
3511 | echo "${ECHO_T}$MAKEINFO" >&6 | |
3512 | else | |
3513 | echo "$as_me:$LINENO: result: no" >&5 | |
3514 | echo "${ECHO_T}no" >&6 | |
3515 | fi | |
3516 | ||
3517 | if test -n "$MAKEINFO"; then | |
3518 | # Found it, now check the version. | |
3519 | echo "$as_me:$LINENO: checking for modern makeinfo" >&5 | |
3520 | echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6 | |
3521 | if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then | |
3522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3523 | else | |
3524 | ac_prog_version=`eval $MAKEINFO --version 2>&1 | | |
3525 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` | |
3526 | ||
3527 | case $ac_prog_version in | |
3528 | '') gcc_cv_prog_makeinfo_modern=no;; | |
3529 | 4.[4-9]*) gcc_cv_prog_makeinfo_modern=yes;; | |
3530 | *) gcc_cv_prog_makeinfo_modern=no;; | |
3531 | esac | |
3532 | ||
3533 | fi | |
3534 | echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5 | |
3535 | echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6 | |
3536 | else | |
3537 | gcc_cv_prog_makeinfo_modern=no | |
3538 | fi | |
3539 | ||
3540 | ||
3541 | ||
3542 | if test $gcc_cv_prog_makeinfo_modern = "yes"; then | |
3543 | BUILD_INFO_TRUE= | |
3544 | BUILD_INFO_FALSE='#' | |
3545 | else | |
3546 | BUILD_INFO_TRUE='#' | |
3547 | BUILD_INFO_FALSE= | |
3548 | fi | |
3549 | ||
3550 | ||
3551 | ||
1e8e9920 | 3552 | # Configure libtool |
3553 | # Check whether --enable-shared or --disable-shared was given. | |
3554 | if test "${enable_shared+set}" = set; then | |
3555 | enableval="$enable_shared" | |
3556 | p=${PACKAGE-default} | |
3557 | case $enableval in | |
3558 | yes) enable_shared=yes ;; | |
3559 | no) enable_shared=no ;; | |
3560 | *) | |
3561 | enable_shared=no | |
3562 | # Look at the argument we got. We use all the common list separators. | |
3563 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3564 | for pkg in $enableval; do | |
3565 | if test "X$pkg" = "X$p"; then | |
3566 | enable_shared=yes | |
3567 | fi | |
3568 | done | |
3569 | IFS="$ac_save_ifs" | |
3570 | ;; | |
3571 | esac | |
3572 | else | |
3573 | enable_shared=yes | |
3574 | fi; | |
3575 | # Check whether --enable-static or --disable-static was given. | |
3576 | if test "${enable_static+set}" = set; then | |
3577 | enableval="$enable_static" | |
3578 | p=${PACKAGE-default} | |
3579 | case $enableval in | |
3580 | yes) enable_static=yes ;; | |
3581 | no) enable_static=no ;; | |
3582 | *) | |
3583 | enable_static=no | |
3584 | # Look at the argument we got. We use all the common list separators. | |
3585 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3586 | for pkg in $enableval; do | |
3587 | if test "X$pkg" = "X$p"; then | |
3588 | enable_static=yes | |
3589 | fi | |
3590 | done | |
3591 | IFS="$ac_save_ifs" | |
3592 | ;; | |
3593 | esac | |
3594 | else | |
3595 | enable_static=yes | |
3596 | fi; | |
3597 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3598 | if test "${enable_fast_install+set}" = set; then | |
3599 | enableval="$enable_fast_install" | |
3600 | p=${PACKAGE-default} | |
3601 | case $enableval in | |
3602 | yes) enable_fast_install=yes ;; | |
3603 | no) enable_fast_install=no ;; | |
3604 | *) | |
3605 | enable_fast_install=no | |
3606 | # Look at the argument we got. We use all the common list separators. | |
3607 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3608 | for pkg in $enableval; do | |
3609 | if test "X$pkg" = "X$p"; then | |
3610 | enable_fast_install=yes | |
3611 | fi | |
3612 | done | |
3613 | IFS="$ac_save_ifs" | |
3614 | ;; | |
3615 | esac | |
3616 | else | |
3617 | enable_fast_install=yes | |
3618 | fi; | |
3619 | ||
3620 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3621 | if test "${with_gnu_ld+set}" = set; then | |
3622 | withval="$with_gnu_ld" | |
3623 | test "$withval" = no || with_gnu_ld=yes | |
3624 | else | |
3625 | with_gnu_ld=no | |
3626 | fi; | |
3627 | ac_prog=ld | |
3628 | if test "$GCC" = yes; then | |
3629 | # Check if gcc -print-prog-name=ld gives a path. | |
3630 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
3631 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3632 | case $host in | |
3633 | *-*-mingw*) | |
3634 | # gcc leaves a trailing carriage return which upsets mingw | |
3635 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3636 | *) | |
3637 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3638 | esac | |
3639 | case $ac_prog in | |
3640 | # Accept absolute paths. | |
3641 | [\\/]* | [A-Za-z]:[\\/]*) | |
3642 | re_direlt='/[^/][^/]*/\.\./' | |
3643 | # Canonicalize the path of ld | |
3644 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3645 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3646 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3647 | done | |
3648 | test -z "$LD" && LD="$ac_prog" | |
3649 | ;; | |
3650 | "") | |
3651 | # If it fails, then pretend we aren't using GCC. | |
3652 | ac_prog=ld | |
3653 | ;; | |
3654 | *) | |
3655 | # If it is relative, then search for the first ld in PATH. | |
3656 | with_gnu_ld=unknown | |
3657 | ;; | |
3658 | esac | |
3659 | elif test "$with_gnu_ld" = yes; then | |
3660 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3661 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3662 | else | |
3663 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3664 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3665 | fi | |
3666 | if test "${lt_cv_path_LD+set}" = set; then | |
3667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3668 | else | |
3669 | if test -z "$LD"; then | |
3670 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3671 | for ac_dir in $PATH; do | |
3672 | test -z "$ac_dir" && ac_dir=. | |
3673 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3674 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3675 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3676 | # but apparently some GNU ld's only accept -v. | |
3677 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3678 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3679 | test "$with_gnu_ld" != no && break | |
3680 | else | |
3681 | test "$with_gnu_ld" != yes && break | |
3682 | fi | |
3683 | fi | |
3684 | done | |
3685 | IFS="$ac_save_ifs" | |
3686 | else | |
3687 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3688 | fi | |
3689 | fi | |
3690 | ||
3691 | LD="$lt_cv_path_LD" | |
3692 | if test -n "$LD"; then | |
3693 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3694 | echo "${ECHO_T}$LD" >&6 | |
3695 | else | |
3696 | echo "$as_me:$LINENO: result: no" >&5 | |
3697 | echo "${ECHO_T}no" >&6 | |
3698 | fi | |
3699 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3700 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3701 | { (exit 1); exit 1; }; } | |
3702 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3703 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3704 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3706 | else | |
3707 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3708 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3709 | lt_cv_prog_gnu_ld=yes | |
3710 | else | |
3711 | lt_cv_prog_gnu_ld=no | |
3712 | fi | |
3713 | fi | |
3714 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3715 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3716 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3717 | ||
3718 | ||
3719 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3720 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3721 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3723 | else | |
3724 | lt_cv_ld_reload_flag='-r' | |
3725 | fi | |
3726 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3727 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3728 | reload_flag=$lt_cv_ld_reload_flag | |
3729 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3730 | ||
3731 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3732 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3733 | if test "${lt_cv_path_NM+set}" = set; then | |
3734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3735 | else | |
3736 | if test -n "$NM"; then | |
3737 | # Let the user override the test. | |
3738 | lt_cv_path_NM="$NM" | |
3739 | else | |
3740 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3741 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3742 | test -z "$ac_dir" && ac_dir=. | |
3743 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
3744 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
3745 | # Check to see if the nm accepts a BSD-compat flag. | |
3746 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3747 | # nm: unknown option "B" ignored | |
3748 | # Tru64's nm complains that /dev/null is an invalid object file | |
3749 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3750 | lt_cv_path_NM="$tmp_nm -B" | |
3751 | break | |
3752 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3753 | lt_cv_path_NM="$tmp_nm -p" | |
3754 | break | |
3755 | else | |
3756 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3757 | continue # so that we can try to find one that supports BSD flags | |
3758 | fi | |
3759 | fi | |
3760 | done | |
3761 | IFS="$ac_save_ifs" | |
3762 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3763 | fi | |
3764 | fi | |
3765 | ||
3766 | NM="$lt_cv_path_NM" | |
3767 | echo "$as_me:$LINENO: result: $NM" >&5 | |
3768 | echo "${ECHO_T}$NM" >&6 | |
3769 | ||
3770 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3771 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3772 | LN_S=$as_ln_s | |
3773 | if test "$LN_S" = "ln -s"; then | |
3774 | echo "$as_me:$LINENO: result: yes" >&5 | |
3775 | echo "${ECHO_T}yes" >&6 | |
3776 | else | |
3777 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3778 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3779 | fi | |
3780 | ||
3781 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
3782 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3783 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3785 | else | |
3786 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3787 | lt_cv_file_magic_test_file= | |
3788 | lt_cv_deplibs_check_method='unknown' | |
3789 | # Need to set the preceding variable on all platforms that support | |
3790 | # interlibrary dependencies. | |
3791 | # 'none' -- dependencies not supported. | |
3792 | # `unknown' -- same as none, but documents that we really don't know. | |
3793 | # 'pass_all' -- all dependencies passed with no checks. | |
3794 | # 'test_compile' -- check by making test program. | |
3795 | # 'file_magic [regex]' -- check by looking for files in library path | |
3796 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3797 | # If you have `file' or equivalent on your system and you're not sure | |
3798 | # whether `pass_all' will *always* work, you probably want this one. | |
3799 | ||
3800 | case $host_os in | |
3801 | aix*) | |
3802 | lt_cv_deplibs_check_method=pass_all | |
3803 | ;; | |
3804 | ||
3805 | beos*) | |
3806 | lt_cv_deplibs_check_method=pass_all | |
3807 | ;; | |
3808 | ||
3809 | bsdi4*) | |
3810 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3811 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3812 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3813 | ;; | |
3814 | ||
3815 | cygwin* | mingw* |pw32*) | |
3816 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3817 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3818 | ;; | |
3819 | ||
3820 | darwin* | rhapsody*) | |
3821 | # this will be overwritten by pass_all, but leave it in just in case | |
3822 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3823 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3824 | case "$host_os" in | |
3825 | rhapsody* | darwin1.012) | |
3826 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3827 | ;; | |
3828 | *) # Darwin 1.3 on | |
3829 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3830 | ;; | |
3831 | esac | |
3832 | lt_cv_deplibs_check_method=pass_all | |
3833 | ;; | |
3834 | ||
3835 | freebsd* | kfreebsd*-gnu) | |
3836 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3837 | case $host_cpu in | |
3838 | i*86 ) | |
3839 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3840 | # Let's accept both of them until this is cleared up. | |
3841 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3842 | lt_cv_file_magic_cmd=/usr/bin/file | |
3843 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3844 | ;; | |
3845 | esac | |
3846 | else | |
3847 | lt_cv_deplibs_check_method=pass_all | |
3848 | fi | |
3849 | ;; | |
3850 | ||
3851 | gnu*) | |
3852 | lt_cv_deplibs_check_method=pass_all | |
3853 | ;; | |
3854 | ||
3855 | hpux10.20*|hpux11*) | |
3856 | case $host_cpu in | |
3857 | hppa*) | |
3858 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3859 | lt_cv_file_magic_cmd=/usr/bin/file | |
3860 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3861 | ;; | |
3862 | ia64*) | |
3863 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3864 | lt_cv_file_magic_cmd=/usr/bin/file | |
3865 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3866 | ;; | |
3867 | esac | |
3868 | ;; | |
3869 | ||
3870 | irix5* | irix6*) | |
3871 | case $host_os in | |
3872 | irix5*) | |
3873 | # this will be overridden with pass_all, but let us keep it just in case | |
3874 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3875 | ;; | |
3876 | *) | |
3877 | case $LD in | |
3878 | *-32|*"-32 ") libmagic=32-bit;; | |
3879 | *-n32|*"-n32 ") libmagic=N32;; | |
3880 | *-64|*"-64 ") libmagic=64-bit;; | |
3881 | *) libmagic=never-match;; | |
3882 | esac | |
3883 | # this will be overridden with pass_all, but let us keep it just in case | |
3884 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3885 | ;; | |
3886 | esac | |
3887 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3888 | lt_cv_deplibs_check_method=pass_all | |
3889 | ;; | |
3890 | ||
3891 | # This must be Linux ELF. | |
3892 | linux-gnu*) | |
3893 | lt_cv_deplibs_check_method=pass_all | |
3894 | ;; | |
3895 | ||
3896 | netbsd* | knetbsd*-gnu) | |
3897 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3898 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
3899 | else | |
3900 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
3901 | fi | |
3902 | ;; | |
3903 | ||
3904 | newsos6) | |
3905 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3906 | lt_cv_file_magic_cmd=/usr/bin/file | |
3907 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3908 | ;; | |
3909 | ||
3910 | osf3* | osf4* | osf5*) | |
3911 | # this will be overridden with pass_all, but let us keep it just in case | |
3912 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3913 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3914 | lt_cv_deplibs_check_method=pass_all | |
3915 | ;; | |
3916 | ||
3917 | sco3.2v5*) | |
3918 | lt_cv_deplibs_check_method=pass_all | |
3919 | ;; | |
3920 | ||
3921 | solaris*) | |
3922 | lt_cv_deplibs_check_method=pass_all | |
3923 | lt_cv_file_magic_test_file=/lib/libc.so | |
3924 | ;; | |
3925 | ||
3926 | sysv5uw[78]* | sysv4*uw2*) | |
3927 | lt_cv_deplibs_check_method=pass_all | |
3928 | ;; | |
3929 | ||
3930 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3931 | case $host_vendor in | |
3932 | ncr) | |
3933 | lt_cv_deplibs_check_method=pass_all | |
3934 | ;; | |
3935 | motorola) | |
3936 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
3937 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3938 | ;; | |
3939 | esac | |
3940 | ;; | |
3941 | esac | |
3942 | ||
3943 | fi | |
3944 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3945 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3946 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3947 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3948 | ||
3949 | ||
3950 | ||
3951 | ||
3952 | ||
3953 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3954 | ||
3955 | # find the maximum length of command line arguments | |
3956 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
3957 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
3958 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
3959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3960 | else | |
3961 | i=0 | |
3962 | teststring="ABCD" | |
3963 | ||
3964 | case $build_os in | |
3965 | msdosdjgpp*) | |
3966 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
3967 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
3968 | # during glob expansion). Even if it were fixed, the result of this | |
3969 | # check would be larger than it should be. | |
3970 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
3971 | ;; | |
3972 | ||
3973 | cygwin* | mingw*) | |
3974 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
3975 | # about 5 minutes as the teststring grows exponentially. | |
3976 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
3977 | # you end up with a "frozen" computer, even though with patience | |
3978 | # the test eventually succeeds (with a max line length of 256k). | |
3979 | # Instead, let's just punt: use the minimum linelength reported by | |
3980 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
3981 | lt_cv_sys_max_cmd_len=8192; | |
3982 | ;; | |
3983 | ||
3984 | amigaos*) | |
3985 | # On AmigaOS with pdksh, this test takes hours, literally. | |
3986 | # So we just punt and use a minimum line length of 8192. | |
3987 | lt_cv_sys_max_cmd_len=8192; | |
3988 | ;; | |
3989 | ||
3990 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
3991 | # This has been around since 386BSD, at least. Likely further. | |
3992 | if test -x /sbin/sysctl; then | |
3993 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
3994 | elif test -x /usr/sbin/sysctl; then | |
3995 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
3996 | else | |
3997 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
3998 | fi | |
3999 | # And add a safety zone | |
4000 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4001 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4002 | ;; | |
4003 | esac | |
4004 | ||
4005 | fi | |
4006 | ||
4007 | if test -n "$lt_cv_sys_max_cmd_len" ; then | |
4008 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4009 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
4010 | else | |
4011 | echo "$as_me:$LINENO: result: none" >&5 | |
4012 | echo "${ECHO_T}none" >&6 | |
4013 | fi | |
4014 | ||
4015 | ||
4016 | # Only perform the check for file, if the check method requires it | |
4017 | case $deplibs_check_method in | |
4018 | file_magic*) | |
4019 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
4020 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
4021 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
4022 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4024 | else | |
4025 | case $MAGIC_CMD in | |
4026 | /*) | |
4027 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
4028 | ;; | |
4029 | ?:/*) | |
4030 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
4031 | ;; | |
4032 | *) | |
4033 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
4034 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4035 | ac_dummy="/usr/bin:$PATH" | |
4036 | for ac_dir in $ac_dummy; do | |
4037 | test -z "$ac_dir" && ac_dir=. | |
4038 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
4039 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
4040 | if test -n "$file_magic_test_file"; then | |
4041 | case $deplibs_check_method in | |
4042 | "file_magic "*) | |
4043 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
4044 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4045 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
4046 | egrep "$file_magic_regex" > /dev/null; then | |
4047 | : | |
4048 | else | |
4049 | cat <<EOF 1>&2 | |
4050 | ||
4051 | *** Warning: the command libtool uses to detect shared libraries, | |
4052 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4053 | *** The result is that libtool may fail to recognize shared libraries | |
4054 | *** as such. This will affect the creation of libtool libraries that | |
4055 | *** depend on shared libraries, but programs linked with such libtool | |
4056 | *** libraries will work regardless of this problem. Nevertheless, you | |
4057 | *** may want to report the problem to your system manager and/or to | |
4058 | *** bug-libtool@gnu.org | |
4059 | ||
4060 | EOF | |
4061 | fi ;; | |
4062 | esac | |
4063 | fi | |
4064 | break | |
4065 | fi | |
4066 | done | |
4067 | IFS="$ac_save_ifs" | |
4068 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
4069 | ;; | |
4070 | esac | |
4071 | fi | |
4072 | ||
4073 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4074 | if test -n "$MAGIC_CMD"; then | |
4075 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
4076 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
4077 | else | |
4078 | echo "$as_me:$LINENO: result: no" >&5 | |
4079 | echo "${ECHO_T}no" >&6 | |
4080 | fi | |
4081 | ||
4082 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
4083 | if test -n "$ac_tool_prefix"; then | |
4084 | echo "$as_me:$LINENO: checking for file" >&5 | |
4085 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
4086 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4088 | else | |
4089 | case $MAGIC_CMD in | |
4090 | /*) | |
4091 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
4092 | ;; | |
4093 | ?:/*) | |
4094 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
4095 | ;; | |
4096 | *) | |
4097 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
4098 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4099 | ac_dummy="/usr/bin:$PATH" | |
4100 | for ac_dir in $ac_dummy; do | |
4101 | test -z "$ac_dir" && ac_dir=. | |
4102 | if test -f $ac_dir/file; then | |
4103 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
4104 | if test -n "$file_magic_test_file"; then | |
4105 | case $deplibs_check_method in | |
4106 | "file_magic "*) | |
4107 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
4108 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4109 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
4110 | egrep "$file_magic_regex" > /dev/null; then | |
4111 | : | |
4112 | else | |
4113 | cat <<EOF 1>&2 | |
4114 | ||
4115 | *** Warning: the command libtool uses to detect shared libraries, | |
4116 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4117 | *** The result is that libtool may fail to recognize shared libraries | |
4118 | *** as such. This will affect the creation of libtool libraries that | |
4119 | *** depend on shared libraries, but programs linked with such libtool | |
4120 | *** libraries will work regardless of this problem. Nevertheless, you | |
4121 | *** may want to report the problem to your system manager and/or to | |
4122 | *** bug-libtool@gnu.org | |
4123 | ||
4124 | EOF | |
4125 | fi ;; | |
4126 | esac | |
4127 | fi | |
4128 | break | |
4129 | fi | |
4130 | done | |
4131 | IFS="$ac_save_ifs" | |
4132 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
4133 | ;; | |
4134 | esac | |
4135 | fi | |
4136 | ||
4137 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4138 | if test -n "$MAGIC_CMD"; then | |
4139 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
4140 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
4141 | else | |
4142 | echo "$as_me:$LINENO: result: no" >&5 | |
4143 | echo "${ECHO_T}no" >&6 | |
4144 | fi | |
4145 | ||
4146 | else | |
4147 | MAGIC_CMD=: | |
4148 | fi | |
4149 | fi | |
4150 | ||
4151 | fi | |
4152 | ;; | |
4153 | esac | |
4154 | ||
4155 | if test -n "$ac_tool_prefix"; then | |
4156 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4157 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4160 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4162 | else | |
4163 | if test -n "$RANLIB"; then | |
4164 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4165 | else | |
4166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4167 | for as_dir in $PATH | |
4168 | do | |
4169 | IFS=$as_save_IFS | |
4170 | test -z "$as_dir" && as_dir=. | |
4171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4172 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4173 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4175 | break 2 | |
4176 | fi | |
4177 | done | |
4178 | done | |
4179 | ||
4180 | fi | |
4181 | fi | |
4182 | RANLIB=$ac_cv_prog_RANLIB | |
4183 | if test -n "$RANLIB"; then | |
4184 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4185 | echo "${ECHO_T}$RANLIB" >&6 | |
4186 | else | |
4187 | echo "$as_me:$LINENO: result: no" >&5 | |
4188 | echo "${ECHO_T}no" >&6 | |
4189 | fi | |
4190 | ||
4191 | fi | |
4192 | if test -z "$ac_cv_prog_RANLIB"; then | |
4193 | ac_ct_RANLIB=$RANLIB | |
4194 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4195 | set dummy ranlib; ac_word=$2 | |
4196 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4198 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4200 | else | |
4201 | if test -n "$ac_ct_RANLIB"; then | |
4202 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4203 | else | |
4204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4205 | for as_dir in $PATH | |
4206 | do | |
4207 | IFS=$as_save_IFS | |
4208 | test -z "$as_dir" && as_dir=. | |
4209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4210 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4211 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4212 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4213 | break 2 | |
4214 | fi | |
4215 | done | |
4216 | done | |
4217 | ||
4218 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4219 | fi | |
4220 | fi | |
4221 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4222 | if test -n "$ac_ct_RANLIB"; then | |
4223 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4224 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4225 | else | |
4226 | echo "$as_me:$LINENO: result: no" >&5 | |
4227 | echo "${ECHO_T}no" >&6 | |
4228 | fi | |
4229 | ||
4230 | RANLIB=$ac_ct_RANLIB | |
4231 | else | |
4232 | RANLIB="$ac_cv_prog_RANLIB" | |
4233 | fi | |
4234 | ||
4235 | if test -n "$ac_tool_prefix"; then | |
4236 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4237 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4238 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4240 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4242 | else | |
4243 | if test -n "$STRIP"; then | |
4244 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4245 | else | |
4246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4247 | for as_dir in $PATH | |
4248 | do | |
4249 | IFS=$as_save_IFS | |
4250 | test -z "$as_dir" && as_dir=. | |
4251 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4252 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4253 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4255 | break 2 | |
4256 | fi | |
4257 | done | |
4258 | done | |
4259 | ||
4260 | fi | |
4261 | fi | |
4262 | STRIP=$ac_cv_prog_STRIP | |
4263 | if test -n "$STRIP"; then | |
4264 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
4265 | echo "${ECHO_T}$STRIP" >&6 | |
4266 | else | |
4267 | echo "$as_me:$LINENO: result: no" >&5 | |
4268 | echo "${ECHO_T}no" >&6 | |
4269 | fi | |
4270 | ||
4271 | fi | |
4272 | if test -z "$ac_cv_prog_STRIP"; then | |
4273 | ac_ct_STRIP=$STRIP | |
4274 | # Extract the first word of "strip", so it can be a program name with args. | |
4275 | set dummy strip; ac_word=$2 | |
4276 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4278 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4280 | else | |
4281 | if test -n "$ac_ct_STRIP"; then | |
4282 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4283 | else | |
4284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4285 | for as_dir in $PATH | |
4286 | do | |
4287 | IFS=$as_save_IFS | |
4288 | test -z "$as_dir" && as_dir=. | |
4289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4290 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4291 | ac_cv_prog_ac_ct_STRIP="strip" | |
4292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4293 | break 2 | |
4294 | fi | |
4295 | done | |
4296 | done | |
4297 | ||
4298 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
4299 | fi | |
4300 | fi | |
4301 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4302 | if test -n "$ac_ct_STRIP"; then | |
4303 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4304 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4305 | else | |
4306 | echo "$as_me:$LINENO: result: no" >&5 | |
4307 | echo "${ECHO_T}no" >&6 | |
4308 | fi | |
4309 | ||
4310 | STRIP=$ac_ct_STRIP | |
4311 | else | |
4312 | STRIP="$ac_cv_prog_STRIP" | |
4313 | fi | |
4314 | ||
4315 | ||
4316 | # Check for any special flags to pass to ltconfig. | |
4317 | libtool_flags="--cache-file=$cache_file" | |
4318 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
4319 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
4320 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
4321 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
4322 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
4323 | ||
4324 | ||
4325 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
4326 | if test "${enable_libtool_lock+set}" = set; then | |
4327 | enableval="$enable_libtool_lock" | |
4328 | ||
4329 | fi; | |
4330 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
4331 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
4332 | ||
4333 | ||
4334 | # Check whether --with-pic or --without-pic was given. | |
4335 | if test "${with_pic+set}" = set; then | |
4336 | withval="$with_pic" | |
4337 | pic_mode="$withval" | |
4338 | else | |
4339 | pic_mode=default | |
4340 | fi; | |
4341 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
4342 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
4343 | ||
4344 | # Some flags need to be propagated to the compiler or linker for good | |
4345 | # libtool support. | |
4346 | case $host in | |
4347 | *-*-irix6*) | |
4348 | # Find out which ABI we are using. | |
439d698f | 4349 | echo '#line 4349 "configure"' > conftest.$ac_ext |
1e8e9920 | 4350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4351 | (eval $ac_compile) 2>&5 | |
4352 | ac_status=$? | |
4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4354 | (exit $ac_status); }; then | |
4355 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
4356 | case `/usr/bin/file conftest.$ac_objext` in | |
4357 | *32-bit*) | |
4358 | LD="${LD-ld} -melf32bsmip" | |
4359 | ;; | |
4360 | *N32*) | |
4361 | LD="${LD-ld} -melf32bmipn32" | |
4362 | ;; | |
4363 | *64-bit*) | |
4364 | LD="${LD-ld} -melf64bmip" | |
4365 | ;; | |
4366 | esac | |
4367 | else | |
4368 | case `/usr/bin/file conftest.$ac_objext` in | |
4369 | *32-bit*) | |
4370 | LD="${LD-ld} -32" | |
4371 | ;; | |
4372 | *N32*) | |
4373 | LD="${LD-ld} -n32" | |
4374 | ;; | |
4375 | *64-bit*) | |
4376 | LD="${LD-ld} -64" | |
4377 | ;; | |
4378 | esac | |
4379 | fi | |
4380 | fi | |
4381 | rm -rf conftest* | |
4382 | ;; | |
4383 | ||
4384 | ia64-*-hpux*) | |
4385 | # Find out which ABI we are using. | |
4386 | echo 'int i;' > conftest.$ac_ext | |
4387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4388 | (eval $ac_compile) 2>&5 | |
4389 | ac_status=$? | |
4390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4391 | (exit $ac_status); }; then | |
4392 | case "`/usr/bin/file conftest.o`" in | |
4393 | *ELF-32*) | |
4394 | HPUX_IA64_MODE="32" | |
4395 | ;; | |
4396 | *ELF-64*) | |
4397 | HPUX_IA64_MODE="64" | |
4398 | ;; | |
4399 | esac | |
4400 | fi | |
4401 | rm -rf conftest* | |
4402 | ;; | |
4403 | ||
4404 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
4405 | # Find out which ABI we are using. | |
4406 | echo 'int i;' > conftest.$ac_ext | |
4407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4408 | (eval $ac_compile) 2>&5 | |
4409 | ac_status=$? | |
4410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4411 | (exit $ac_status); }; then | |
4412 | case "`/usr/bin/file conftest.o`" in | |
4413 | *32-bit*) | |
4414 | case $host in | |
4415 | x86_64-*linux*) | |
4416 | LD="${LD-ld} -m elf_i386" | |
4417 | ;; | |
4418 | ppc64-*linux*|powerpc64-*linux*) | |
4419 | LD="${LD-ld} -m elf32ppclinux" | |
4420 | ;; | |
4421 | s390x-*linux*) | |
4422 | LD="${LD-ld} -m elf_s390" | |
4423 | ;; | |
4424 | sparc64-*linux*) | |
4425 | LD="${LD-ld} -m elf32_sparc" | |
4426 | ;; | |
4427 | esac | |
4428 | ;; | |
4429 | *64-bit*) | |
4430 | case $host in | |
4431 | x86_64-*linux*) | |
4432 | LD="${LD-ld} -m elf_x86_64" | |
4433 | ;; | |
4434 | ppc*-*linux*|powerpc*-*linux*) | |
4435 | LD="${LD-ld} -m elf64ppc" | |
4436 | ;; | |
4437 | s390*-*linux*) | |
4438 | LD="${LD-ld} -m elf64_s390" | |
4439 | ;; | |
4440 | sparc*-*linux*) | |
4441 | LD="${LD-ld} -m elf64_sparc" | |
4442 | ;; | |
4443 | esac | |
4444 | ;; | |
4445 | esac | |
4446 | fi | |
4447 | rm -rf conftest* | |
4448 | ;; | |
4449 | ||
4450 | *-*-sco3.2v5*) | |
4451 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4452 | SAVE_CFLAGS="$CFLAGS" | |
4453 | CFLAGS="$CFLAGS -belf" | |
4454 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4455 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4456 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4458 | else | |
4459 | ||
4460 | ||
4461 | ac_ext=c | |
4462 | ac_cpp='$CPP $CPPFLAGS' | |
4463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4466 | ||
4467 | cat >conftest.$ac_ext <<_ACEOF | |
4468 | /* confdefs.h. */ | |
4469 | _ACEOF | |
4470 | cat confdefs.h >>conftest.$ac_ext | |
4471 | cat >>conftest.$ac_ext <<_ACEOF | |
4472 | /* end confdefs.h. */ | |
4473 | ||
4474 | int | |
4475 | main () | |
4476 | { | |
4477 | ||
4478 | ; | |
4479 | return 0; | |
4480 | } | |
4481 | _ACEOF | |
4482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4484 | (eval $ac_link) 2>conftest.er1 | |
4485 | ac_status=$? | |
4486 | grep -v '^ *+' conftest.er1 >conftest.err | |
4487 | rm -f conftest.er1 | |
4488 | cat conftest.err >&5 | |
4489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4490 | (exit $ac_status); } && | |
59da30e1 | 4491 | { ac_try='test -z "$ac_c_werror_flag" |
4492 | || test ! -s conftest.err' | |
1e8e9920 | 4493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4494 | (eval $ac_try) 2>&5 | |
4495 | ac_status=$? | |
4496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4497 | (exit $ac_status); }; } && | |
4498 | { ac_try='test -s conftest$ac_exeext' | |
4499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4500 | (eval $ac_try) 2>&5 | |
4501 | ac_status=$? | |
4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4503 | (exit $ac_status); }; }; then | |
4504 | lt_cv_cc_needs_belf=yes | |
4505 | else | |
4506 | echo "$as_me: failed program was:" >&5 | |
4507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4508 | ||
4509 | lt_cv_cc_needs_belf=no | |
4510 | fi | |
4511 | rm -f conftest.err conftest.$ac_objext \ | |
4512 | conftest$ac_exeext conftest.$ac_ext | |
4513 | ac_ext=c | |
4514 | ac_cpp='$CPP $CPPFLAGS' | |
4515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4518 | ||
4519 | fi | |
4520 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4521 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4522 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4523 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4524 | CFLAGS="$SAVE_CFLAGS" | |
4525 | fi | |
4526 | ;; | |
4527 | ||
4528 | ||
4529 | esac | |
4530 | ||
4531 | ||
4532 | # Save cache, so that ltconfig can load it | |
4533 | cat >confcache <<\_ACEOF | |
4534 | # This file is a shell script that caches the results of configure | |
4535 | # tests run on this system so they can be shared between configure | |
4536 | # scripts and configure runs, see configure's option --config-cache. | |
4537 | # It is not useful on other systems. If it contains results you don't | |
4538 | # want to keep, you may remove or edit it. | |
4539 | # | |
4540 | # config.status only pays attention to the cache file if you give it | |
4541 | # the --recheck option to rerun configure. | |
4542 | # | |
4543 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4544 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4545 | # following values. | |
4546 | ||
4547 | _ACEOF | |
4548 | ||
4549 | # The following way of writing the cache mishandles newlines in values, | |
4550 | # but we know of no workaround that is simple, portable, and efficient. | |
4551 | # So, don't put newlines in cache variables' values. | |
4552 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4553 | # and sets the high bit in the cache file unless we assign to the vars. | |
4554 | { | |
4555 | (set) 2>&1 | | |
4556 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4557 | *ac_space=\ *) | |
4558 | # `set' does not quote correctly, so add quotes (double-quote | |
4559 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4560 | sed -n \ | |
4561 | "s/'/'\\\\''/g; | |
4562 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4563 | ;; | |
4564 | *) | |
4565 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4566 | sed -n \ | |
4567 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4568 | ;; | |
4569 | esac; | |
4570 | } | | |
4571 | sed ' | |
4572 | t clear | |
4573 | : clear | |
4574 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4575 | t end | |
4576 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4577 | : end' >>confcache | |
4578 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4579 | if test -w $cache_file; then | |
4580 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
4581 | cat confcache >$cache_file | |
4582 | else | |
4583 | echo "not updating unwritable cache $cache_file" | |
4584 | fi | |
4585 | fi | |
4586 | rm -f confcache | |
4587 | ||
4588 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
4589 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
4590 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
4591 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
4592 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4593 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4594 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
4595 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
4596 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | |
4597 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 | |
4598 | echo "$as_me: error: libtool configure failed" >&2;} | |
4599 | { (exit 1); exit 1; }; } | |
4600 | ||
4601 | # Reload cache, that may have been modified by ltconfig | |
4602 | if test -r "$cache_file"; then | |
4603 | # Some versions of bash will fail to source /dev/null (special | |
4604 | # files actually), so we avoid doing that. | |
4605 | if test -f "$cache_file"; then | |
4606 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4607 | echo "$as_me: loading cache $cache_file" >&6;} | |
4608 | case $cache_file in | |
4609 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4610 | *) . ./$cache_file;; | |
4611 | esac | |
4612 | fi | |
4613 | else | |
4614 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
4615 | echo "$as_me: creating cache $cache_file" >&6;} | |
4616 | >$cache_file | |
4617 | fi | |
4618 | ||
4619 | ||
4620 | # This can be used to rebuild libtool when needed | |
4621 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | |
4622 | ||
4623 | # Always use our own libtool. | |
4624 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4625 | ||
4626 | # Redirect the config.log output again, so that the ltconfig log is not | |
4627 | # clobbered by the next message. | |
4628 | exec 5>>./config.log | |
4629 | ||
4630 | ||
4631 | ||
4632 | ||
4633 | ||
4634 | ||
4635 | ||
4636 | ||
4637 | ||
a263d1ab | 4638 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4639 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
4640 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
4641 | if test "${enable_maintainer_mode+set}" = set; then | |
4642 | enableval="$enable_maintainer_mode" | |
4643 | USE_MAINTAINER_MODE=$enableval | |
4644 | else | |
4645 | USE_MAINTAINER_MODE=no | |
4646 | fi; | |
4647 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
4648 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
4649 | ||
4650 | ||
4651 | if test $USE_MAINTAINER_MODE = yes; then | |
4652 | MAINTAINER_MODE_TRUE= | |
4653 | MAINTAINER_MODE_FALSE='#' | |
4654 | else | |
4655 | MAINTAINER_MODE_TRUE='#' | |
4656 | MAINTAINER_MODE_FALSE= | |
4657 | fi | |
4658 | ||
4659 | MAINT=$MAINTAINER_MODE_TRUE | |
4660 | ||
4661 | ||
4662 | ||
1e8e9920 | 4663 | # We need gfortran to compile parts of the library |
4664 | # We can't use AC_PROG_FC because it expects a fully working gfortran. | |
4665 | #AC_PROG_FC(gfortran) | |
4666 | FC="$GFORTRAN" | |
4667 | ac_ext=${FC_SRCEXT-f} | |
4668 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
4669 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
4670 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
4671 | if test -n "$ac_tool_prefix"; then | |
4672 | for ac_prog in gfortran | |
4673 | do | |
4674 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4675 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4678 | if test "${ac_cv_prog_FC+set}" = set; then | |
4679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4680 | else | |
4681 | if test -n "$FC"; then | |
4682 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
4683 | else | |
4684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4685 | for as_dir in $PATH | |
4686 | do | |
4687 | IFS=$as_save_IFS | |
4688 | test -z "$as_dir" && as_dir=. | |
4689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4691 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" | |
4692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4693 | break 2 | |
4694 | fi | |
4695 | done | |
4696 | done | |
4697 | ||
4698 | fi | |
4699 | fi | |
4700 | FC=$ac_cv_prog_FC | |
4701 | if test -n "$FC"; then | |
4702 | echo "$as_me:$LINENO: result: $FC" >&5 | |
4703 | echo "${ECHO_T}$FC" >&6 | |
4704 | else | |
4705 | echo "$as_me:$LINENO: result: no" >&5 | |
4706 | echo "${ECHO_T}no" >&6 | |
4707 | fi | |
4708 | ||
4709 | test -n "$FC" && break | |
4710 | done | |
4711 | fi | |
4712 | if test -z "$FC"; then | |
4713 | ac_ct_FC=$FC | |
4714 | for ac_prog in gfortran | |
4715 | do | |
4716 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4717 | set dummy $ac_prog; ac_word=$2 | |
4718 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4719 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4720 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then | |
4721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4722 | else | |
4723 | if test -n "$ac_ct_FC"; then | |
4724 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
4725 | else | |
4726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4727 | for as_dir in $PATH | |
4728 | do | |
4729 | IFS=$as_save_IFS | |
4730 | test -z "$as_dir" && as_dir=. | |
4731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4732 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4733 | ac_cv_prog_ac_ct_FC="$ac_prog" | |
4734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4735 | break 2 | |
4736 | fi | |
4737 | done | |
4738 | done | |
4739 | ||
4740 | fi | |
4741 | fi | |
4742 | ac_ct_FC=$ac_cv_prog_ac_ct_FC | |
4743 | if test -n "$ac_ct_FC"; then | |
4744 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 | |
4745 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
4746 | else | |
4747 | echo "$as_me:$LINENO: result: no" >&5 | |
4748 | echo "${ECHO_T}no" >&6 | |
4749 | fi | |
4750 | ||
4751 | test -n "$ac_ct_FC" && break | |
4752 | done | |
4753 | ||
4754 | FC=$ac_ct_FC | |
4755 | fi | |
4756 | ||
4757 | ||
4758 | # Provide some information about the compiler. | |
439d698f | 4759 | echo "$as_me:4759:" \ |
1e8e9920 | 4760 | "checking for Fortran compiler version" >&5 |
4761 | ac_compiler=`set X $ac_compile; echo $2` | |
4762 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4763 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4764 | ac_status=$? | |
4765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4766 | (exit $ac_status); } | |
4767 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4768 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4769 | ac_status=$? | |
4770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4771 | (exit $ac_status); } | |
4772 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4773 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4774 | ac_status=$? | |
4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4776 | (exit $ac_status); } | |
4777 | rm -f a.out | |
4778 | ||
4779 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
4780 | # input file. (Note that this only needs to work for GNU compilers.) | |
4781 | ac_save_ext=$ac_ext | |
4782 | ac_ext=F | |
4783 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 | |
4784 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
4785 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then | |
4786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4787 | else | |
4788 | cat >conftest.$ac_ext <<_ACEOF | |
4789 | program main | |
4790 | #ifndef __GNUC__ | |
4791 | choke me | |
4792 | #endif | |
4793 | ||
4794 | end | |
4795 | _ACEOF | |
4796 | rm -f conftest.$ac_objext | |
4797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4798 | (eval $ac_compile) 2>conftest.er1 | |
4799 | ac_status=$? | |
4800 | grep -v '^ *+' conftest.er1 >conftest.err | |
4801 | rm -f conftest.er1 | |
4802 | cat conftest.err >&5 | |
4803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4804 | (exit $ac_status); } && | |
59da30e1 | 4805 | { ac_try='test -z "$ac_fc_werror_flag" |
4806 | || test ! -s conftest.err' | |
1e8e9920 | 4807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4808 | (eval $ac_try) 2>&5 | |
4809 | ac_status=$? | |
4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4811 | (exit $ac_status); }; } && | |
4812 | { ac_try='test -s conftest.$ac_objext' | |
4813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4814 | (eval $ac_try) 2>&5 | |
4815 | ac_status=$? | |
4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4817 | (exit $ac_status); }; }; then | |
4818 | ac_compiler_gnu=yes | |
4819 | else | |
4820 | echo "$as_me: failed program was:" >&5 | |
4821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4822 | ||
4823 | ac_compiler_gnu=no | |
4824 | fi | |
4825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4826 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu | |
4827 | ||
4828 | fi | |
4829 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 | |
4830 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
4831 | ac_ext=$ac_save_ext | |
4832 | ac_test_FFLAGS=${FCFLAGS+set} | |
4833 | ac_save_FFLAGS=$FCFLAGS | |
4834 | FCFLAGS= | |
4835 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 | |
4836 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
4837 | if test "${ac_cv_prog_fc_g+set}" = set; then | |
4838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4839 | else | |
4840 | FCFLAGS=-g | |
4841 | cat >conftest.$ac_ext <<_ACEOF | |
4842 | program main | |
4843 | ||
4844 | end | |
4845 | _ACEOF | |
4846 | rm -f conftest.$ac_objext | |
4847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4848 | (eval $ac_compile) 2>conftest.er1 | |
4849 | ac_status=$? | |
4850 | grep -v '^ *+' conftest.er1 >conftest.err | |
4851 | rm -f conftest.er1 | |
4852 | cat conftest.err >&5 | |
4853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4854 | (exit $ac_status); } && | |
59da30e1 | 4855 | { ac_try='test -z "$ac_fc_werror_flag" |
4856 | || test ! -s conftest.err' | |
1e8e9920 | 4857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4858 | (eval $ac_try) 2>&5 | |
4859 | ac_status=$? | |
4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4861 | (exit $ac_status); }; } && | |
4862 | { ac_try='test -s conftest.$ac_objext' | |
4863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4864 | (eval $ac_try) 2>&5 | |
4865 | ac_status=$? | |
4866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4867 | (exit $ac_status); }; }; then | |
4868 | ac_cv_prog_fc_g=yes | |
4869 | else | |
4870 | echo "$as_me: failed program was:" >&5 | |
4871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4872 | ||
4873 | ac_cv_prog_fc_g=no | |
4874 | fi | |
4875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4876 | ||
4877 | fi | |
4878 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 | |
4879 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
4880 | if test "$ac_test_FFLAGS" = set; then | |
4881 | FCFLAGS=$ac_save_FFLAGS | |
4882 | elif test $ac_cv_prog_fc_g = yes; then | |
4883 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
4884 | FCFLAGS="-g -O2" | |
4885 | else | |
4886 | FCFLAGS="-g" | |
4887 | fi | |
4888 | else | |
4889 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
4890 | FCFLAGS="-O2" | |
4891 | else | |
4892 | FCFLAGS= | |
4893 | fi | |
4894 | fi | |
4895 | ||
4896 | ac_ext=c | |
4897 | ac_cpp='$CPP $CPPFLAGS' | |
4898 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4899 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4900 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4901 | ||
4902 | FCFLAGS="$FCFLAGS -Wall" | |
4903 | ||
4904 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
4905 | libtool_VERSION=1:0:0 | |
4906 | ||
4907 | ||
4908 | # Check header files. | |
4909 | ac_ext=c | |
4910 | ac_cpp='$CPP $CPPFLAGS' | |
4911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4914 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4915 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4916 | # On Suns, sometimes $CPP names a directory. | |
4917 | if test -n "$CPP" && test -d "$CPP"; then | |
4918 | CPP= | |
4919 | fi | |
4920 | if test -z "$CPP"; then | |
4921 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4923 | else | |
4924 | # Double quotes because CPP needs to be expanded | |
4925 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4926 | do | |
4927 | ac_preproc_ok=false | |
4928 | for ac_c_preproc_warn_flag in '' yes | |
4929 | do | |
4930 | # Use a header file that comes with gcc, so configuring glibc | |
4931 | # with a fresh cross-compiler works. | |
4932 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4933 | # <limits.h> exists even on freestanding compilers. | |
4934 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4935 | # not just through cpp. "Syntax error" is here to catch this case. | |
4936 | cat >conftest.$ac_ext <<_ACEOF | |
4937 | /* confdefs.h. */ | |
4938 | _ACEOF | |
4939 | cat confdefs.h >>conftest.$ac_ext | |
4940 | cat >>conftest.$ac_ext <<_ACEOF | |
4941 | /* end confdefs.h. */ | |
4942 | #ifdef __STDC__ | |
4943 | # include <limits.h> | |
4944 | #else | |
4945 | # include <assert.h> | |
4946 | #endif | |
4947 | Syntax error | |
4948 | _ACEOF | |
4949 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4950 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4951 | ac_status=$? | |
4952 | grep -v '^ *+' conftest.er1 >conftest.err | |
4953 | rm -f conftest.er1 | |
4954 | cat conftest.err >&5 | |
4955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4956 | (exit $ac_status); } >/dev/null; then | |
4957 | if test -s conftest.err; then | |
4958 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4959 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4960 | else | |
4961 | ac_cpp_err= | |
4962 | fi | |
4963 | else | |
4964 | ac_cpp_err=yes | |
4965 | fi | |
4966 | if test -z "$ac_cpp_err"; then | |
4967 | : | |
4968 | else | |
4969 | echo "$as_me: failed program was:" >&5 | |
4970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4971 | ||
4972 | # Broken: fails on valid input. | |
4973 | continue | |
4974 | fi | |
4975 | rm -f conftest.err conftest.$ac_ext | |
4976 | ||
4977 | # OK, works on sane cases. Now check whether non-existent headers | |
4978 | # can be detected and how. | |
4979 | cat >conftest.$ac_ext <<_ACEOF | |
4980 | /* confdefs.h. */ | |
4981 | _ACEOF | |
4982 | cat confdefs.h >>conftest.$ac_ext | |
4983 | cat >>conftest.$ac_ext <<_ACEOF | |
4984 | /* end confdefs.h. */ | |
4985 | #include <ac_nonexistent.h> | |
4986 | _ACEOF | |
4987 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4988 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4989 | ac_status=$? | |
4990 | grep -v '^ *+' conftest.er1 >conftest.err | |
4991 | rm -f conftest.er1 | |
4992 | cat conftest.err >&5 | |
4993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4994 | (exit $ac_status); } >/dev/null; then | |
4995 | if test -s conftest.err; then | |
4996 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4997 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4998 | else | |
4999 | ac_cpp_err= | |
5000 | fi | |
5001 | else | |
5002 | ac_cpp_err=yes | |
5003 | fi | |
5004 | if test -z "$ac_cpp_err"; then | |
5005 | # Broken: success on invalid input. | |
5006 | continue | |
5007 | else | |
5008 | echo "$as_me: failed program was:" >&5 | |
5009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5010 | ||
5011 | # Passes both tests. | |
5012 | ac_preproc_ok=: | |
5013 | break | |
5014 | fi | |
5015 | rm -f conftest.err conftest.$ac_ext | |
5016 | ||
5017 | done | |
5018 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5019 | rm -f conftest.err conftest.$ac_ext | |
5020 | if $ac_preproc_ok; then | |
5021 | break | |
5022 | fi | |
5023 | ||
5024 | done | |
5025 | ac_cv_prog_CPP=$CPP | |
5026 | ||
5027 | fi | |
5028 | CPP=$ac_cv_prog_CPP | |
5029 | else | |
5030 | ac_cv_prog_CPP=$CPP | |
5031 | fi | |
5032 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5033 | echo "${ECHO_T}$CPP" >&6 | |
5034 | ac_preproc_ok=false | |
5035 | for ac_c_preproc_warn_flag in '' yes | |
5036 | do | |
5037 | # Use a header file that comes with gcc, so configuring glibc | |
5038 | # with a fresh cross-compiler works. | |
5039 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5040 | # <limits.h> exists even on freestanding compilers. | |
5041 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5042 | # not just through cpp. "Syntax error" is here to catch this case. | |
5043 | cat >conftest.$ac_ext <<_ACEOF | |
5044 | /* confdefs.h. */ | |
5045 | _ACEOF | |
5046 | cat confdefs.h >>conftest.$ac_ext | |
5047 | cat >>conftest.$ac_ext <<_ACEOF | |
5048 | /* end confdefs.h. */ | |
5049 | #ifdef __STDC__ | |
5050 | # include <limits.h> | |
5051 | #else | |
5052 | # include <assert.h> | |
5053 | #endif | |
5054 | Syntax error | |
5055 | _ACEOF | |
5056 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5057 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5058 | ac_status=$? | |
5059 | grep -v '^ *+' conftest.er1 >conftest.err | |
5060 | rm -f conftest.er1 | |
5061 | cat conftest.err >&5 | |
5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5063 | (exit $ac_status); } >/dev/null; then | |
5064 | if test -s conftest.err; then | |
5065 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5066 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5067 | else | |
5068 | ac_cpp_err= | |
5069 | fi | |
5070 | else | |
5071 | ac_cpp_err=yes | |
5072 | fi | |
5073 | if test -z "$ac_cpp_err"; then | |
5074 | : | |
5075 | else | |
5076 | echo "$as_me: failed program was:" >&5 | |
5077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5078 | ||
5079 | # Broken: fails on valid input. | |
5080 | continue | |
5081 | fi | |
5082 | rm -f conftest.err conftest.$ac_ext | |
5083 | ||
5084 | # OK, works on sane cases. Now check whether non-existent headers | |
5085 | # can be detected and how. | |
5086 | cat >conftest.$ac_ext <<_ACEOF | |
5087 | /* confdefs.h. */ | |
5088 | _ACEOF | |
5089 | cat confdefs.h >>conftest.$ac_ext | |
5090 | cat >>conftest.$ac_ext <<_ACEOF | |
5091 | /* end confdefs.h. */ | |
5092 | #include <ac_nonexistent.h> | |
5093 | _ACEOF | |
5094 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5095 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5096 | ac_status=$? | |
5097 | grep -v '^ *+' conftest.er1 >conftest.err | |
5098 | rm -f conftest.er1 | |
5099 | cat conftest.err >&5 | |
5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5101 | (exit $ac_status); } >/dev/null; then | |
5102 | if test -s conftest.err; then | |
5103 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5104 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5105 | else | |
5106 | ac_cpp_err= | |
5107 | fi | |
5108 | else | |
5109 | ac_cpp_err=yes | |
5110 | fi | |
5111 | if test -z "$ac_cpp_err"; then | |
5112 | # Broken: success on invalid input. | |
5113 | continue | |
5114 | else | |
5115 | echo "$as_me: failed program was:" >&5 | |
5116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5117 | ||
5118 | # Passes both tests. | |
5119 | ac_preproc_ok=: | |
5120 | break | |
5121 | fi | |
5122 | rm -f conftest.err conftest.$ac_ext | |
5123 | ||
5124 | done | |
5125 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5126 | rm -f conftest.err conftest.$ac_ext | |
5127 | if $ac_preproc_ok; then | |
5128 | : | |
5129 | else | |
5130 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5131 | See \`config.log' for more details." >&5 | |
5132 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5133 | See \`config.log' for more details." >&2;} | |
5134 | { (exit 1); exit 1; }; } | |
5135 | fi | |
5136 | ||
5137 | ac_ext=c | |
5138 | ac_cpp='$CPP $CPPFLAGS' | |
5139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5142 | ||
5143 | ||
5144 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5145 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5146 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5148 | else | |
5149 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5150 | then ac_cv_prog_egrep='grep -E' | |
5151 | else ac_cv_prog_egrep='egrep' | |
5152 | fi | |
5153 | fi | |
5154 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5155 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5156 | EGREP=$ac_cv_prog_egrep | |
5157 | ||
5158 | ||
5159 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5160 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5161 | if test "${ac_cv_header_stdc+set}" = set; then | |
5162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5163 | else | |
5164 | cat >conftest.$ac_ext <<_ACEOF | |
5165 | /* confdefs.h. */ | |
5166 | _ACEOF | |
5167 | cat confdefs.h >>conftest.$ac_ext | |
5168 | cat >>conftest.$ac_ext <<_ACEOF | |
5169 | /* end confdefs.h. */ | |
5170 | #include <stdlib.h> | |
5171 | #include <stdarg.h> | |
5172 | #include <string.h> | |
5173 | #include <float.h> | |
5174 | ||
5175 | int | |
5176 | main () | |
5177 | { | |
5178 | ||
5179 | ; | |
5180 | return 0; | |
5181 | } | |
5182 | _ACEOF | |
5183 | rm -f conftest.$ac_objext | |
5184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5185 | (eval $ac_compile) 2>conftest.er1 | |
5186 | ac_status=$? | |
5187 | grep -v '^ *+' conftest.er1 >conftest.err | |
5188 | rm -f conftest.er1 | |
5189 | cat conftest.err >&5 | |
5190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5191 | (exit $ac_status); } && | |
59da30e1 | 5192 | { ac_try='test -z "$ac_c_werror_flag" |
5193 | || test ! -s conftest.err' | |
1e8e9920 | 5194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5195 | (eval $ac_try) 2>&5 | |
5196 | ac_status=$? | |
5197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5198 | (exit $ac_status); }; } && | |
5199 | { ac_try='test -s conftest.$ac_objext' | |
5200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5201 | (eval $ac_try) 2>&5 | |
5202 | ac_status=$? | |
5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5204 | (exit $ac_status); }; }; then | |
5205 | ac_cv_header_stdc=yes | |
5206 | else | |
5207 | echo "$as_me: failed program was:" >&5 | |
5208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5209 | ||
5210 | ac_cv_header_stdc=no | |
5211 | fi | |
5212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5213 | ||
5214 | if test $ac_cv_header_stdc = yes; then | |
5215 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5216 | cat >conftest.$ac_ext <<_ACEOF | |
5217 | /* confdefs.h. */ | |
5218 | _ACEOF | |
5219 | cat confdefs.h >>conftest.$ac_ext | |
5220 | cat >>conftest.$ac_ext <<_ACEOF | |
5221 | /* end confdefs.h. */ | |
5222 | #include <string.h> | |
5223 | ||
5224 | _ACEOF | |
5225 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5226 | $EGREP "memchr" >/dev/null 2>&1; then | |
5227 | : | |
5228 | else | |
5229 | ac_cv_header_stdc=no | |
5230 | fi | |
5231 | rm -f conftest* | |
5232 | ||
5233 | fi | |
5234 | ||
5235 | if test $ac_cv_header_stdc = yes; then | |
5236 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5237 | cat >conftest.$ac_ext <<_ACEOF | |
5238 | /* confdefs.h. */ | |
5239 | _ACEOF | |
5240 | cat confdefs.h >>conftest.$ac_ext | |
5241 | cat >>conftest.$ac_ext <<_ACEOF | |
5242 | /* end confdefs.h. */ | |
5243 | #include <stdlib.h> | |
5244 | ||
5245 | _ACEOF | |
5246 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5247 | $EGREP "free" >/dev/null 2>&1; then | |
5248 | : | |
5249 | else | |
5250 | ac_cv_header_stdc=no | |
5251 | fi | |
5252 | rm -f conftest* | |
5253 | ||
5254 | fi | |
5255 | ||
5256 | if test $ac_cv_header_stdc = yes; then | |
5257 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5258 | if test "$cross_compiling" = yes; then | |
5259 | : | |
5260 | else | |
5261 | cat >conftest.$ac_ext <<_ACEOF | |
5262 | /* confdefs.h. */ | |
5263 | _ACEOF | |
5264 | cat confdefs.h >>conftest.$ac_ext | |
5265 | cat >>conftest.$ac_ext <<_ACEOF | |
5266 | /* end confdefs.h. */ | |
5267 | #include <ctype.h> | |
5268 | #if ((' ' & 0x0FF) == 0x020) | |
5269 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5270 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5271 | #else | |
5272 | # define ISLOWER(c) \ | |
5273 | (('a' <= (c) && (c) <= 'i') \ | |
5274 | || ('j' <= (c) && (c) <= 'r') \ | |
5275 | || ('s' <= (c) && (c) <= 'z')) | |
5276 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5277 | #endif | |
5278 | ||
5279 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5280 | int | |
5281 | main () | |
5282 | { | |
5283 | int i; | |
5284 | for (i = 0; i < 256; i++) | |
5285 | if (XOR (islower (i), ISLOWER (i)) | |
5286 | || toupper (i) != TOUPPER (i)) | |
5287 | exit(2); | |
5288 | exit (0); | |
5289 | } | |
5290 | _ACEOF | |
5291 | rm -f conftest$ac_exeext | |
5292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5293 | (eval $ac_link) 2>&5 | |
5294 | ac_status=$? | |
5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5296 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5298 | (eval $ac_try) 2>&5 | |
5299 | ac_status=$? | |
5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5301 | (exit $ac_status); }; }; then | |
5302 | : | |
5303 | else | |
5304 | echo "$as_me: program exited with status $ac_status" >&5 | |
5305 | echo "$as_me: failed program was:" >&5 | |
5306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5307 | ||
5308 | ( exit $ac_status ) | |
5309 | ac_cv_header_stdc=no | |
5310 | fi | |
5311 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5312 | fi | |
5313 | fi | |
5314 | fi | |
5315 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5316 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5317 | if test $ac_cv_header_stdc = yes; then | |
5318 | ||
5319 | cat >>confdefs.h <<\_ACEOF | |
5320 | #define STDC_HEADERS 1 | |
5321 | _ACEOF | |
5322 | ||
5323 | fi | |
5324 | ||
5325 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
5326 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
5327 | if test "${ac_cv_header_time+set}" = set; then | |
5328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5329 | else | |
5330 | cat >conftest.$ac_ext <<_ACEOF | |
5331 | /* confdefs.h. */ | |
5332 | _ACEOF | |
5333 | cat confdefs.h >>conftest.$ac_ext | |
5334 | cat >>conftest.$ac_ext <<_ACEOF | |
5335 | /* end confdefs.h. */ | |
5336 | #include <sys/types.h> | |
5337 | #include <sys/time.h> | |
5338 | #include <time.h> | |
5339 | ||
5340 | int | |
5341 | main () | |
5342 | { | |
5343 | if ((struct tm *) 0) | |
5344 | return 0; | |
5345 | ; | |
5346 | return 0; | |
5347 | } | |
5348 | _ACEOF | |
5349 | rm -f conftest.$ac_objext | |
5350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5351 | (eval $ac_compile) 2>conftest.er1 | |
5352 | ac_status=$? | |
5353 | grep -v '^ *+' conftest.er1 >conftest.err | |
5354 | rm -f conftest.er1 | |
5355 | cat conftest.err >&5 | |
5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5357 | (exit $ac_status); } && | |
59da30e1 | 5358 | { ac_try='test -z "$ac_c_werror_flag" |
5359 | || test ! -s conftest.err' | |
1e8e9920 | 5360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5361 | (eval $ac_try) 2>&5 | |
5362 | ac_status=$? | |
5363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5364 | (exit $ac_status); }; } && | |
5365 | { ac_try='test -s conftest.$ac_objext' | |
5366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5367 | (eval $ac_try) 2>&5 | |
5368 | ac_status=$? | |
5369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5370 | (exit $ac_status); }; }; then | |
5371 | ac_cv_header_time=yes | |
5372 | else | |
5373 | echo "$as_me: failed program was:" >&5 | |
5374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5375 | ||
5376 | ac_cv_header_time=no | |
5377 | fi | |
5378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5379 | fi | |
5380 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
5381 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
5382 | if test $ac_cv_header_time = yes; then | |
5383 | ||
5384 | cat >>confdefs.h <<\_ACEOF | |
5385 | #define TIME_WITH_SYS_TIME 1 | |
5386 | _ACEOF | |
5387 | ||
5388 | fi | |
5389 | ||
5390 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | ||
5396 | ||
5397 | ||
5398 | ||
5399 | ||
5400 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5401 | inttypes.h stdint.h unistd.h | |
5402 | do | |
5403 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5404 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5405 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5406 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5408 | else | |
5409 | cat >conftest.$ac_ext <<_ACEOF | |
5410 | /* confdefs.h. */ | |
5411 | _ACEOF | |
5412 | cat confdefs.h >>conftest.$ac_ext | |
5413 | cat >>conftest.$ac_ext <<_ACEOF | |
5414 | /* end confdefs.h. */ | |
5415 | $ac_includes_default | |
5416 | ||
5417 | #include <$ac_header> | |
5418 | _ACEOF | |
5419 | rm -f conftest.$ac_objext | |
5420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5421 | (eval $ac_compile) 2>conftest.er1 | |
5422 | ac_status=$? | |
5423 | grep -v '^ *+' conftest.er1 >conftest.err | |
5424 | rm -f conftest.er1 | |
5425 | cat conftest.err >&5 | |
5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5427 | (exit $ac_status); } && | |
59da30e1 | 5428 | { ac_try='test -z "$ac_c_werror_flag" |
5429 | || test ! -s conftest.err' | |
1e8e9920 | 5430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5431 | (eval $ac_try) 2>&5 | |
5432 | ac_status=$? | |
5433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5434 | (exit $ac_status); }; } && | |
5435 | { ac_try='test -s conftest.$ac_objext' | |
5436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5437 | (eval $ac_try) 2>&5 | |
5438 | ac_status=$? | |
5439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5440 | (exit $ac_status); }; }; then | |
5441 | eval "$as_ac_Header=yes" | |
5442 | else | |
5443 | echo "$as_me: failed program was:" >&5 | |
5444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5445 | ||
5446 | eval "$as_ac_Header=no" | |
5447 | fi | |
5448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5449 | fi | |
5450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5451 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5452 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5453 | cat >>confdefs.h <<_ACEOF | |
5454 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5455 | _ACEOF | |
5456 | ||
5457 | fi | |
5458 | ||
5459 | done | |
5460 | ||
5461 | ||
5462 | ||
5463 | ||
5464 | ||
138f59be | 5465 | |
5466 | for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h | |
1e8e9920 | 5467 | do |
5468 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5470 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5471 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5472 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5474 | fi | |
5475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5476 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5477 | else | |
5478 | # Is the header compilable? | |
5479 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5480 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5481 | cat >conftest.$ac_ext <<_ACEOF | |
5482 | /* confdefs.h. */ | |
5483 | _ACEOF | |
5484 | cat confdefs.h >>conftest.$ac_ext | |
5485 | cat >>conftest.$ac_ext <<_ACEOF | |
5486 | /* end confdefs.h. */ | |
5487 | $ac_includes_default | |
5488 | #include <$ac_header> | |
5489 | _ACEOF | |
5490 | rm -f conftest.$ac_objext | |
5491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5492 | (eval $ac_compile) 2>conftest.er1 | |
5493 | ac_status=$? | |
5494 | grep -v '^ *+' conftest.er1 >conftest.err | |
5495 | rm -f conftest.er1 | |
5496 | cat conftest.err >&5 | |
5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5498 | (exit $ac_status); } && | |
59da30e1 | 5499 | { ac_try='test -z "$ac_c_werror_flag" |
5500 | || test ! -s conftest.err' | |
1e8e9920 | 5501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5502 | (eval $ac_try) 2>&5 | |
5503 | ac_status=$? | |
5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5505 | (exit $ac_status); }; } && | |
5506 | { ac_try='test -s conftest.$ac_objext' | |
5507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5508 | (eval $ac_try) 2>&5 | |
5509 | ac_status=$? | |
5510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5511 | (exit $ac_status); }; }; then | |
5512 | ac_header_compiler=yes | |
5513 | else | |
5514 | echo "$as_me: failed program was:" >&5 | |
5515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5516 | ||
5517 | ac_header_compiler=no | |
5518 | fi | |
5519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5520 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5521 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5522 | ||
5523 | # Is the header present? | |
5524 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5525 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5526 | cat >conftest.$ac_ext <<_ACEOF | |
5527 | /* confdefs.h. */ | |
5528 | _ACEOF | |
5529 | cat confdefs.h >>conftest.$ac_ext | |
5530 | cat >>conftest.$ac_ext <<_ACEOF | |
5531 | /* end confdefs.h. */ | |
5532 | #include <$ac_header> | |
5533 | _ACEOF | |
5534 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5535 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5536 | ac_status=$? | |
5537 | grep -v '^ *+' conftest.er1 >conftest.err | |
5538 | rm -f conftest.er1 | |
5539 | cat conftest.err >&5 | |
5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5541 | (exit $ac_status); } >/dev/null; then | |
5542 | if test -s conftest.err; then | |
5543 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5544 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5545 | else | |
5546 | ac_cpp_err= | |
5547 | fi | |
5548 | else | |
5549 | ac_cpp_err=yes | |
5550 | fi | |
5551 | if test -z "$ac_cpp_err"; then | |
5552 | ac_header_preproc=yes | |
5553 | else | |
5554 | echo "$as_me: failed program was:" >&5 | |
5555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5556 | ||
5557 | ac_header_preproc=no | |
5558 | fi | |
5559 | rm -f conftest.err conftest.$ac_ext | |
5560 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5561 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5562 | ||
5563 | # So? What about this header? | |
5564 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5565 | yes:no: ) | |
5566 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5567 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5568 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5569 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5570 | ac_header_preproc=yes | |
5571 | ;; | |
5572 | no:yes:* ) | |
5573 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5574 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5575 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5576 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5577 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5578 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5579 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5580 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5581 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5582 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5583 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5584 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5585 | ( | |
5586 | cat <<\_ASBOX | |
5587 | ## ----------------------------------------------------- ## | |
5588 | ## Report this to the GNU OpenMP Runtime Library lists. ## | |
5589 | ## ----------------------------------------------------- ## | |
5590 | _ASBOX | |
5591 | ) | | |
5592 | sed "s/^/$as_me: WARNING: /" >&2 | |
5593 | ;; | |
5594 | esac | |
5595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5599 | else | |
5600 | eval "$as_ac_Header=\$ac_header_preproc" | |
5601 | fi | |
5602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5603 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5604 | ||
5605 | fi | |
5606 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5607 | cat >>confdefs.h <<_ACEOF | |
5608 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5609 | _ACEOF | |
5610 | ||
5611 | fi | |
5612 | ||
5613 | done | |
5614 | ||
1e8e9920 | 5615 | |
01473a49 | 5616 | |
5617 | ||
5618 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
5619 | ||
5620 | acx_cv_header_stdint=stddef.h | |
5621 | acx_cv_header_stdint_kind="(already complete)" | |
5622 | for i in stdint.h $inttype_headers; do | |
5623 | unset ac_cv_type_uintptr_t | |
5624 | unset ac_cv_type_uintmax_t | |
5625 | unset ac_cv_type_int_least32_t | |
5626 | unset ac_cv_type_int_fast32_t | |
5627 | unset ac_cv_type_uint64_t | |
5628 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
5629 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 | |
5630 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
5631 | if test "${ac_cv_type_uintmax_t+set}" = set; then | |
5632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5633 | else | |
5634 | cat >conftest.$ac_ext <<_ACEOF | |
5635 | /* confdefs.h. */ | |
5636 | _ACEOF | |
5637 | cat confdefs.h >>conftest.$ac_ext | |
5638 | cat >>conftest.$ac_ext <<_ACEOF | |
5639 | /* end confdefs.h. */ | |
5640 | #include <sys/types.h> | |
5641 | #include <$i> | |
5642 | ||
5643 | int | |
5644 | main () | |
5645 | { | |
5646 | if ((uintmax_t *) 0) | |
5647 | return 0; | |
5648 | if (sizeof (uintmax_t)) | |
5649 | return 0; | |
5650 | ; | |
5651 | return 0; | |
5652 | } | |
5653 | _ACEOF | |
5654 | rm -f conftest.$ac_objext | |
5655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5656 | (eval $ac_compile) 2>conftest.er1 | |
5657 | ac_status=$? | |
5658 | grep -v '^ *+' conftest.er1 >conftest.err | |
5659 | rm -f conftest.er1 | |
5660 | cat conftest.err >&5 | |
5661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5662 | (exit $ac_status); } && | |
59da30e1 | 5663 | { ac_try='test -z "$ac_c_werror_flag" |
5664 | || test ! -s conftest.err' | |
01473a49 | 5665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5666 | (eval $ac_try) 2>&5 | |
5667 | ac_status=$? | |
5668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5669 | (exit $ac_status); }; } && | |
5670 | { ac_try='test -s conftest.$ac_objext' | |
5671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5672 | (eval $ac_try) 2>&5 | |
5673 | ac_status=$? | |
5674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5675 | (exit $ac_status); }; }; then | |
5676 | ac_cv_type_uintmax_t=yes | |
5677 | else | |
5678 | echo "$as_me: failed program was:" >&5 | |
5679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5680 | ||
5681 | ac_cv_type_uintmax_t=no | |
5682 | fi | |
5683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5684 | fi | |
5685 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 | |
5686 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
5687 | if test $ac_cv_type_uintmax_t = yes; then | |
5688 | acx_cv_header_stdint=$i | |
5689 | else | |
5690 | continue | |
5691 | fi | |
5692 | ||
5693 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
5694 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
5695 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
5696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5697 | else | |
5698 | cat >conftest.$ac_ext <<_ACEOF | |
5699 | /* confdefs.h. */ | |
5700 | _ACEOF | |
5701 | cat confdefs.h >>conftest.$ac_ext | |
5702 | cat >>conftest.$ac_ext <<_ACEOF | |
5703 | /* end confdefs.h. */ | |
5704 | #include <sys/types.h> | |
5705 | #include <$i> | |
5706 | ||
5707 | int | |
5708 | main () | |
5709 | { | |
5710 | if ((uintptr_t *) 0) | |
5711 | return 0; | |
5712 | if (sizeof (uintptr_t)) | |
5713 | return 0; | |
5714 | ; | |
5715 | return 0; | |
5716 | } | |
5717 | _ACEOF | |
5718 | rm -f conftest.$ac_objext | |
5719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5720 | (eval $ac_compile) 2>conftest.er1 | |
5721 | ac_status=$? | |
5722 | grep -v '^ *+' conftest.er1 >conftest.err | |
5723 | rm -f conftest.er1 | |
5724 | cat conftest.err >&5 | |
5725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5726 | (exit $ac_status); } && | |
59da30e1 | 5727 | { ac_try='test -z "$ac_c_werror_flag" |
5728 | || test ! -s conftest.err' | |
01473a49 | 5729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5730 | (eval $ac_try) 2>&5 | |
5731 | ac_status=$? | |
5732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5733 | (exit $ac_status); }; } && | |
5734 | { ac_try='test -s conftest.$ac_objext' | |
5735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5736 | (eval $ac_try) 2>&5 | |
5737 | ac_status=$? | |
5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5739 | (exit $ac_status); }; }; then | |
5740 | ac_cv_type_uintptr_t=yes | |
5741 | else | |
5742 | echo "$as_me: failed program was:" >&5 | |
5743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5744 | ||
5745 | ac_cv_type_uintptr_t=no | |
5746 | fi | |
5747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5748 | fi | |
5749 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
5750 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
5751 | if test $ac_cv_type_uintptr_t = yes; then | |
5752 | : | |
5753 | else | |
5754 | acx_cv_header_stdint_kind="(mostly complete)" | |
5755 | fi | |
5756 | ||
5757 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 | |
5758 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
5759 | if test "${ac_cv_type_int_least32_t+set}" = set; then | |
5760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5761 | else | |
5762 | cat >conftest.$ac_ext <<_ACEOF | |
5763 | /* confdefs.h. */ | |
5764 | _ACEOF | |
5765 | cat confdefs.h >>conftest.$ac_ext | |
5766 | cat >>conftest.$ac_ext <<_ACEOF | |
5767 | /* end confdefs.h. */ | |
5768 | #include <sys/types.h> | |
5769 | #include <$i> | |
5770 | ||
5771 | int | |
5772 | main () | |
5773 | { | |
5774 | if ((int_least32_t *) 0) | |
5775 | return 0; | |
5776 | if (sizeof (int_least32_t)) | |
5777 | return 0; | |
5778 | ; | |
5779 | return 0; | |
5780 | } | |
5781 | _ACEOF | |
5782 | rm -f conftest.$ac_objext | |
5783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5784 | (eval $ac_compile) 2>conftest.er1 | |
5785 | ac_status=$? | |
5786 | grep -v '^ *+' conftest.er1 >conftest.err | |
5787 | rm -f conftest.er1 | |
5788 | cat conftest.err >&5 | |
5789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5790 | (exit $ac_status); } && | |
59da30e1 | 5791 | { ac_try='test -z "$ac_c_werror_flag" |
5792 | || test ! -s conftest.err' | |
01473a49 | 5793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5794 | (eval $ac_try) 2>&5 | |
5795 | ac_status=$? | |
5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5797 | (exit $ac_status); }; } && | |
5798 | { ac_try='test -s conftest.$ac_objext' | |
5799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5800 | (eval $ac_try) 2>&5 | |
5801 | ac_status=$? | |
5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5803 | (exit $ac_status); }; }; then | |
5804 | ac_cv_type_int_least32_t=yes | |
5805 | else | |
5806 | echo "$as_me: failed program was:" >&5 | |
5807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5808 | ||
5809 | ac_cv_type_int_least32_t=no | |
5810 | fi | |
5811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5812 | fi | |
5813 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 | |
5814 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
5815 | if test $ac_cv_type_int_least32_t = yes; then | |
5816 | : | |
5817 | else | |
5818 | acx_cv_header_stdint_kind="(mostly complete)" | |
5819 | fi | |
5820 | ||
5821 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 | |
5822 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
5823 | if test "${ac_cv_type_int_fast32_t+set}" = set; then | |
5824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5825 | else | |
5826 | cat >conftest.$ac_ext <<_ACEOF | |
5827 | /* confdefs.h. */ | |
5828 | _ACEOF | |
5829 | cat confdefs.h >>conftest.$ac_ext | |
5830 | cat >>conftest.$ac_ext <<_ACEOF | |
5831 | /* end confdefs.h. */ | |
5832 | #include <sys/types.h> | |
5833 | #include <$i> | |
5834 | ||
5835 | int | |
5836 | main () | |
5837 | { | |
5838 | if ((int_fast32_t *) 0) | |
5839 | return 0; | |
5840 | if (sizeof (int_fast32_t)) | |
5841 | return 0; | |
5842 | ; | |
5843 | return 0; | |
5844 | } | |
5845 | _ACEOF | |
5846 | rm -f conftest.$ac_objext | |
5847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5848 | (eval $ac_compile) 2>conftest.er1 | |
5849 | ac_status=$? | |
5850 | grep -v '^ *+' conftest.er1 >conftest.err | |
5851 | rm -f conftest.er1 | |
5852 | cat conftest.err >&5 | |
5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5854 | (exit $ac_status); } && | |
59da30e1 | 5855 | { ac_try='test -z "$ac_c_werror_flag" |
5856 | || test ! -s conftest.err' | |
01473a49 | 5857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5858 | (eval $ac_try) 2>&5 | |
5859 | ac_status=$? | |
5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5861 | (exit $ac_status); }; } && | |
5862 | { ac_try='test -s conftest.$ac_objext' | |
5863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5864 | (eval $ac_try) 2>&5 | |
5865 | ac_status=$? | |
5866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5867 | (exit $ac_status); }; }; then | |
5868 | ac_cv_type_int_fast32_t=yes | |
5869 | else | |
5870 | echo "$as_me: failed program was:" >&5 | |
5871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5872 | ||
5873 | ac_cv_type_int_fast32_t=no | |
5874 | fi | |
5875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5876 | fi | |
5877 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 | |
5878 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
5879 | if test $ac_cv_type_int_fast32_t = yes; then | |
5880 | : | |
5881 | else | |
5882 | acx_cv_header_stdint_kind="(mostly complete)" | |
5883 | fi | |
5884 | ||
5885 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
5886 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
5887 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
5888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5889 | else | |
5890 | cat >conftest.$ac_ext <<_ACEOF | |
5891 | /* confdefs.h. */ | |
5892 | _ACEOF | |
5893 | cat confdefs.h >>conftest.$ac_ext | |
5894 | cat >>conftest.$ac_ext <<_ACEOF | |
5895 | /* end confdefs.h. */ | |
5896 | #include <sys/types.h> | |
5897 | #include <$i> | |
5898 | ||
5899 | int | |
5900 | main () | |
5901 | { | |
5902 | if ((uint64_t *) 0) | |
5903 | return 0; | |
5904 | if (sizeof (uint64_t)) | |
5905 | return 0; | |
5906 | ; | |
5907 | return 0; | |
5908 | } | |
5909 | _ACEOF | |
5910 | rm -f conftest.$ac_objext | |
5911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5912 | (eval $ac_compile) 2>conftest.er1 | |
5913 | ac_status=$? | |
5914 | grep -v '^ *+' conftest.er1 >conftest.err | |
5915 | rm -f conftest.er1 | |
5916 | cat conftest.err >&5 | |
5917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5918 | (exit $ac_status); } && | |
59da30e1 | 5919 | { ac_try='test -z "$ac_c_werror_flag" |
5920 | || test ! -s conftest.err' | |
01473a49 | 5921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5922 | (eval $ac_try) 2>&5 | |
5923 | ac_status=$? | |
5924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5925 | (exit $ac_status); }; } && | |
5926 | { ac_try='test -s conftest.$ac_objext' | |
5927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5928 | (eval $ac_try) 2>&5 | |
5929 | ac_status=$? | |
5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5931 | (exit $ac_status); }; }; then | |
5932 | ac_cv_type_uint64_t=yes | |
5933 | else | |
5934 | echo "$as_me: failed program was:" >&5 | |
5935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5936 | ||
5937 | ac_cv_type_uint64_t=no | |
5938 | fi | |
5939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5940 | fi | |
5941 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
5942 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
5943 | if test $ac_cv_type_uint64_t = yes; then | |
5944 | : | |
5945 | else | |
5946 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
5947 | fi | |
5948 | ||
5949 | break | |
5950 | done | |
5951 | if test "$acx_cv_header_stdint" = stddef.h; then | |
0b67f687 | 5952 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
01473a49 | 5953 | for i in stdint.h $inttype_headers; do |
0b67f687 | 5954 | unset ac_cv_type_uintptr_t |
01473a49 | 5955 | unset ac_cv_type_uint32_t |
5956 | unset ac_cv_type_uint64_t | |
5957 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
5958 | echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
5959 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
5960 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
5961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5962 | else | |
5963 | cat >conftest.$ac_ext <<_ACEOF | |
5964 | /* confdefs.h. */ | |
5965 | _ACEOF | |
5966 | cat confdefs.h >>conftest.$ac_ext | |
5967 | cat >>conftest.$ac_ext <<_ACEOF | |
5968 | /* end confdefs.h. */ | |
5969 | #include <sys/types.h> | |
5970 | #include <$i> | |
5971 | ||
5972 | int | |
5973 | main () | |
5974 | { | |
5975 | if ((uint32_t *) 0) | |
5976 | return 0; | |
5977 | if (sizeof (uint32_t)) | |
5978 | return 0; | |
5979 | ; | |
5980 | return 0; | |
5981 | } | |
5982 | _ACEOF | |
5983 | rm -f conftest.$ac_objext | |
5984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5985 | (eval $ac_compile) 2>conftest.er1 | |
5986 | ac_status=$? | |
5987 | grep -v '^ *+' conftest.er1 >conftest.err | |
5988 | rm -f conftest.er1 | |
5989 | cat conftest.err >&5 | |
5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5991 | (exit $ac_status); } && | |
59da30e1 | 5992 | { ac_try='test -z "$ac_c_werror_flag" |
5993 | || test ! -s conftest.err' | |
01473a49 | 5994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5995 | (eval $ac_try) 2>&5 | |
5996 | ac_status=$? | |
5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5998 | (exit $ac_status); }; } && | |
5999 | { ac_try='test -s conftest.$ac_objext' | |
6000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6001 | (eval $ac_try) 2>&5 | |
6002 | ac_status=$? | |
6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6004 | (exit $ac_status); }; }; then | |
6005 | ac_cv_type_uint32_t=yes | |
6006 | else | |
6007 | echo "$as_me: failed program was:" >&5 | |
6008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6009 | ||
6010 | ac_cv_type_uint32_t=no | |
6011 | fi | |
6012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6013 | fi | |
6014 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
6015 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
6016 | if test $ac_cv_type_uint32_t = yes; then | |
6017 | acx_cv_header_stdint=$i | |
6018 | else | |
6019 | continue | |
6020 | fi | |
6021 | ||
6022 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
6023 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
6024 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
6025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6026 | else | |
6027 | cat >conftest.$ac_ext <<_ACEOF | |
6028 | /* confdefs.h. */ | |
6029 | _ACEOF | |
6030 | cat confdefs.h >>conftest.$ac_ext | |
6031 | cat >>conftest.$ac_ext <<_ACEOF | |
6032 | /* end confdefs.h. */ | |
6033 | #include <sys/types.h> | |
6034 | #include <$i> | |
6035 | ||
6036 | int | |
6037 | main () | |
6038 | { | |
6039 | if ((uint64_t *) 0) | |
6040 | return 0; | |
6041 | if (sizeof (uint64_t)) | |
6042 | return 0; | |
6043 | ; | |
6044 | return 0; | |
6045 | } | |
6046 | _ACEOF | |
6047 | rm -f conftest.$ac_objext | |
6048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6049 | (eval $ac_compile) 2>conftest.er1 | |
6050 | ac_status=$? | |
6051 | grep -v '^ *+' conftest.er1 >conftest.err | |
6052 | rm -f conftest.er1 | |
6053 | cat conftest.err >&5 | |
6054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6055 | (exit $ac_status); } && | |
59da30e1 | 6056 | { ac_try='test -z "$ac_c_werror_flag" |
6057 | || test ! -s conftest.err' | |
01473a49 | 6058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6059 | (eval $ac_try) 2>&5 | |
6060 | ac_status=$? | |
6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6062 | (exit $ac_status); }; } && | |
6063 | { ac_try='test -s conftest.$ac_objext' | |
6064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6065 | (eval $ac_try) 2>&5 | |
6066 | ac_status=$? | |
6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6068 | (exit $ac_status); }; }; then | |
6069 | ac_cv_type_uint64_t=yes | |
6070 | else | |
6071 | echo "$as_me: failed program was:" >&5 | |
6072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6073 | ||
6074 | ac_cv_type_uint64_t=no | |
6075 | fi | |
6076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6077 | fi | |
6078 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
6079 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
0b67f687 | 6080 | |
6081 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
6082 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
6083 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
6084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01473a49 | 6085 | else |
0b67f687 | 6086 | cat >conftest.$ac_ext <<_ACEOF |
6087 | /* confdefs.h. */ | |
6088 | _ACEOF | |
6089 | cat confdefs.h >>conftest.$ac_ext | |
6090 | cat >>conftest.$ac_ext <<_ACEOF | |
6091 | /* end confdefs.h. */ | |
6092 | #include <sys/types.h> | |
6093 | #include <$i> | |
6094 | ||
6095 | int | |
6096 | main () | |
6097 | { | |
6098 | if ((uintptr_t *) 0) | |
6099 | return 0; | |
6100 | if (sizeof (uintptr_t)) | |
6101 | return 0; | |
6102 | ; | |
6103 | return 0; | |
6104 | } | |
6105 | _ACEOF | |
6106 | rm -f conftest.$ac_objext | |
6107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6108 | (eval $ac_compile) 2>conftest.er1 | |
6109 | ac_status=$? | |
6110 | grep -v '^ *+' conftest.er1 >conftest.err | |
6111 | rm -f conftest.er1 | |
6112 | cat conftest.err >&5 | |
6113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6114 | (exit $ac_status); } && | |
6115 | { ac_try='test -z "$ac_c_werror_flag" | |
6116 | || test ! -s conftest.err' | |
6117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6118 | (eval $ac_try) 2>&5 | |
6119 | ac_status=$? | |
6120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6121 | (exit $ac_status); }; } && | |
6122 | { ac_try='test -s conftest.$ac_objext' | |
6123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6124 | (eval $ac_try) 2>&5 | |
6125 | ac_status=$? | |
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6127 | (exit $ac_status); }; }; then | |
6128 | ac_cv_type_uintptr_t=yes | |
6129 | else | |
6130 | echo "$as_me: failed program was:" >&5 | |
6131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6132 | ||
6133 | ac_cv_type_uintptr_t=no | |
6134 | fi | |
6135 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
01473a49 | 6136 | fi |
0b67f687 | 6137 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
6138 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
01473a49 | 6139 | |
6140 | break | |
6141 | done | |
6142 | fi | |
6143 | if test "$acx_cv_header_stdint" = stddef.h; then | |
6144 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
6145 | for i in sys/types.h $inttype_headers; do | |
6146 | unset ac_cv_type_u_int32_t | |
6147 | unset ac_cv_type_u_int64_t | |
6148 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
6149 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
6150 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
6151 | if test "${ac_cv_type_u_int32_t+set}" = set; then | |
6152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6153 | else | |
6154 | cat >conftest.$ac_ext <<_ACEOF | |
6155 | /* confdefs.h. */ | |
6156 | _ACEOF | |
6157 | cat confdefs.h >>conftest.$ac_ext | |
6158 | cat >>conftest.$ac_ext <<_ACEOF | |
6159 | /* end confdefs.h. */ | |
6160 | #include <sys/types.h> | |
6161 | #include <$i> | |
6162 | ||
6163 | int | |
6164 | main () | |
6165 | { | |
6166 | if ((u_int32_t *) 0) | |
6167 | return 0; | |
6168 | if (sizeof (u_int32_t)) | |
6169 | return 0; | |
6170 | ; | |
6171 | return 0; | |
6172 | } | |
6173 | _ACEOF | |
6174 | rm -f conftest.$ac_objext | |
6175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6176 | (eval $ac_compile) 2>conftest.er1 | |
6177 | ac_status=$? | |
6178 | grep -v '^ *+' conftest.er1 >conftest.err | |
6179 | rm -f conftest.er1 | |
6180 | cat conftest.err >&5 | |
6181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6182 | (exit $ac_status); } && | |
59da30e1 | 6183 | { ac_try='test -z "$ac_c_werror_flag" |
6184 | || test ! -s conftest.err' | |
01473a49 | 6185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6186 | (eval $ac_try) 2>&5 | |
6187 | ac_status=$? | |
6188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6189 | (exit $ac_status); }; } && | |
6190 | { ac_try='test -s conftest.$ac_objext' | |
6191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6192 | (eval $ac_try) 2>&5 | |
6193 | ac_status=$? | |
6194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6195 | (exit $ac_status); }; }; then | |
6196 | ac_cv_type_u_int32_t=yes | |
6197 | else | |
6198 | echo "$as_me: failed program was:" >&5 | |
6199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6200 | ||
6201 | ac_cv_type_u_int32_t=no | |
6202 | fi | |
6203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6204 | fi | |
6205 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 | |
6206 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
6207 | if test $ac_cv_type_u_int32_t = yes; then | |
6208 | acx_cv_header_stdint=$i | |
6209 | else | |
6210 | continue | |
6211 | fi | |
6212 | ||
6213 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 | |
6214 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
6215 | if test "${ac_cv_type_u_int64_t+set}" = set; then | |
6216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6217 | else | |
6218 | cat >conftest.$ac_ext <<_ACEOF | |
6219 | /* confdefs.h. */ | |
6220 | _ACEOF | |
6221 | cat confdefs.h >>conftest.$ac_ext | |
6222 | cat >>conftest.$ac_ext <<_ACEOF | |
6223 | /* end confdefs.h. */ | |
6224 | #include <sys/types.h> | |
6225 | #include <$i> | |
6226 | ||
6227 | int | |
6228 | main () | |
6229 | { | |
6230 | if ((u_int64_t *) 0) | |
6231 | return 0; | |
6232 | if (sizeof (u_int64_t)) | |
6233 | return 0; | |
6234 | ; | |
6235 | return 0; | |
6236 | } | |
6237 | _ACEOF | |
6238 | rm -f conftest.$ac_objext | |
6239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6240 | (eval $ac_compile) 2>conftest.er1 | |
6241 | ac_status=$? | |
6242 | grep -v '^ *+' conftest.er1 >conftest.err | |
6243 | rm -f conftest.er1 | |
6244 | cat conftest.err >&5 | |
6245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6246 | (exit $ac_status); } && | |
59da30e1 | 6247 | { ac_try='test -z "$ac_c_werror_flag" |
6248 | || test ! -s conftest.err' | |
01473a49 | 6249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6250 | (eval $ac_try) 2>&5 | |
6251 | ac_status=$? | |
6252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6253 | (exit $ac_status); }; } && | |
6254 | { ac_try='test -s conftest.$ac_objext' | |
6255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6256 | (eval $ac_try) 2>&5 | |
6257 | ac_status=$? | |
6258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6259 | (exit $ac_status); }; }; then | |
6260 | ac_cv_type_u_int64_t=yes | |
6261 | else | |
6262 | echo "$as_me: failed program was:" >&5 | |
6263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6264 | ||
6265 | ac_cv_type_u_int64_t=no | |
6266 | fi | |
6267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6268 | fi | |
6269 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | |
6270 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
01473a49 | 6271 | |
6272 | break | |
6273 | done | |
6274 | fi | |
6275 | if test "$acx_cv_header_stdint" = stddef.h; then | |
6276 | acx_cv_header_stdint_kind="(using manual detection)" | |
6277 | fi | |
6278 | ||
6279 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
6280 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
6281 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
6282 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
6283 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
6284 | ||
6285 | # ----------------- Summarize what we found so far | |
6286 | ||
6287 | echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5 | |
6288 | echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6 | |
6289 | ||
6290 | case `$as_basename gstdint.h || | |
6291 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
6292 | Xgstdint.h : 'X\(//\)$' \| \ | |
6293 | Xgstdint.h : 'X\(/\)$' \| \ | |
6294 | . : '\(.\)' 2>/dev/null || | |
6295 | echo X/gstdint.h | | |
6296 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
6297 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
6298 | /^X\/\(\/\).*/{ s//\1/; q; } | |
6299 | s/.*/./; q'` in | |
6300 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
6301 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
6302 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
6303 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
6304 | *) ;; | |
6305 | esac | |
6306 | ||
6307 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
6308 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
6309 | ||
6310 | # ----------------- done included file, check C basic types -------- | |
6311 | ||
6312 | # Lacking an uintptr_t? Test size of void * | |
6313 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
6314 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 | |
6315 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
6316 | if test "${ac_cv_type_void_p+set}" = set; then | |
6317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6318 | else | |
6319 | cat >conftest.$ac_ext <<_ACEOF | |
6320 | /* confdefs.h. */ | |
6321 | _ACEOF | |
6322 | cat confdefs.h >>conftest.$ac_ext | |
6323 | cat >>conftest.$ac_ext <<_ACEOF | |
6324 | /* end confdefs.h. */ | |
6325 | $ac_includes_default | |
6326 | int | |
6327 | main () | |
6328 | { | |
6329 | if ((void * *) 0) | |
6330 | return 0; | |
6331 | if (sizeof (void *)) | |
6332 | return 0; | |
6333 | ; | |
6334 | return 0; | |
6335 | } | |
6336 | _ACEOF | |
6337 | rm -f conftest.$ac_objext | |
6338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6339 | (eval $ac_compile) 2>conftest.er1 | |
6340 | ac_status=$? | |
6341 | grep -v '^ *+' conftest.er1 >conftest.err | |
6342 | rm -f conftest.er1 | |
6343 | cat conftest.err >&5 | |
6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6345 | (exit $ac_status); } && | |
59da30e1 | 6346 | { ac_try='test -z "$ac_c_werror_flag" |
6347 | || test ! -s conftest.err' | |
01473a49 | 6348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6349 | (eval $ac_try) 2>&5 | |
6350 | ac_status=$? | |
6351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6352 | (exit $ac_status); }; } && | |
6353 | { ac_try='test -s conftest.$ac_objext' | |
6354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6355 | (eval $ac_try) 2>&5 | |
6356 | ac_status=$? | |
6357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6358 | (exit $ac_status); }; }; then | |
6359 | ac_cv_type_void_p=yes | |
6360 | else | |
6361 | echo "$as_me: failed program was:" >&5 | |
6362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6363 | ||
6364 | ac_cv_type_void_p=no | |
6365 | fi | |
6366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6367 | fi | |
6368 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
6369 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
6370 | ||
6371 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
6372 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
6373 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
6374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6375 | else | |
6376 | if test "$ac_cv_type_void_p" = yes; then | |
6377 | # The cast to unsigned long works around a bug in the HP C Compiler | |
6378 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6379 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6380 | # This bug is HP SR number 8606223364. | |
6381 | if test "$cross_compiling" = yes; then | |
6382 | # Depending upon the size, compute the lo and hi bounds. | |
6383 | cat >conftest.$ac_ext <<_ACEOF | |
6384 | /* confdefs.h. */ | |
6385 | _ACEOF | |
6386 | cat confdefs.h >>conftest.$ac_ext | |
6387 | cat >>conftest.$ac_ext <<_ACEOF | |
6388 | /* end confdefs.h. */ | |
6389 | $ac_includes_default | |
6390 | int | |
6391 | main () | |
6392 | { | |
6393 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
6394 | test_array [0] = 0 | |
6395 | ||
6396 | ; | |
6397 | return 0; | |
6398 | } | |
6399 | _ACEOF | |
6400 | rm -f conftest.$ac_objext | |
6401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6402 | (eval $ac_compile) 2>conftest.er1 | |
6403 | ac_status=$? | |
6404 | grep -v '^ *+' conftest.er1 >conftest.err | |
6405 | rm -f conftest.er1 | |
6406 | cat conftest.err >&5 | |
6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6408 | (exit $ac_status); } && | |
59da30e1 | 6409 | { ac_try='test -z "$ac_c_werror_flag" |
6410 | || test ! -s conftest.err' | |
01473a49 | 6411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6412 | (eval $ac_try) 2>&5 | |
6413 | ac_status=$? | |
6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6415 | (exit $ac_status); }; } && | |
6416 | { ac_try='test -s conftest.$ac_objext' | |
6417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6418 | (eval $ac_try) 2>&5 | |
6419 | ac_status=$? | |
6420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6421 | (exit $ac_status); }; }; then | |
6422 | ac_lo=0 ac_mid=0 | |
6423 | while :; do | |
6424 | cat >conftest.$ac_ext <<_ACEOF | |
6425 | /* confdefs.h. */ | |
6426 | _ACEOF | |
6427 | cat confdefs.h >>conftest.$ac_ext | |
6428 | cat >>conftest.$ac_ext <<_ACEOF | |
6429 | /* end confdefs.h. */ | |
6430 | $ac_includes_default | |
6431 | int | |
6432 | main () | |
6433 | { | |
6434 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
6435 | test_array [0] = 0 | |
6436 | ||
6437 | ; | |
6438 | return 0; | |
6439 | } | |
6440 | _ACEOF | |
6441 | rm -f conftest.$ac_objext | |
6442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6443 | (eval $ac_compile) 2>conftest.er1 | |
6444 | ac_status=$? | |
6445 | grep -v '^ *+' conftest.er1 >conftest.err | |
6446 | rm -f conftest.er1 | |
6447 | cat conftest.err >&5 | |
6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6449 | (exit $ac_status); } && | |
59da30e1 | 6450 | { ac_try='test -z "$ac_c_werror_flag" |
6451 | || test ! -s conftest.err' | |
01473a49 | 6452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6453 | (eval $ac_try) 2>&5 | |
6454 | ac_status=$? | |
6455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6456 | (exit $ac_status); }; } && | |
6457 | { ac_try='test -s conftest.$ac_objext' | |
6458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6459 | (eval $ac_try) 2>&5 | |
6460 | ac_status=$? | |
6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6462 | (exit $ac_status); }; }; then | |
6463 | ac_hi=$ac_mid; break | |
6464 | else | |
6465 | echo "$as_me: failed program was:" >&5 | |
6466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6467 | ||
6468 | ac_lo=`expr $ac_mid + 1` | |
6469 | if test $ac_lo -le $ac_mid; then | |
6470 | ac_lo= ac_hi= | |
6471 | break | |
6472 | fi | |
6473 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6474 | fi | |
6475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6476 | done | |
6477 | else | |
6478 | echo "$as_me: failed program was:" >&5 | |
6479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6480 | ||
6481 | cat >conftest.$ac_ext <<_ACEOF | |
6482 | /* confdefs.h. */ | |
6483 | _ACEOF | |
6484 | cat confdefs.h >>conftest.$ac_ext | |
6485 | cat >>conftest.$ac_ext <<_ACEOF | |
6486 | /* end confdefs.h. */ | |
6487 | $ac_includes_default | |
6488 | int | |
6489 | main () | |
6490 | { | |
6491 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
6492 | test_array [0] = 0 | |
6493 | ||
6494 | ; | |
6495 | return 0; | |
6496 | } | |
6497 | _ACEOF | |
6498 | rm -f conftest.$ac_objext | |
6499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6500 | (eval $ac_compile) 2>conftest.er1 | |
6501 | ac_status=$? | |
6502 | grep -v '^ *+' conftest.er1 >conftest.err | |
6503 | rm -f conftest.er1 | |
6504 | cat conftest.err >&5 | |
6505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6506 | (exit $ac_status); } && | |
59da30e1 | 6507 | { ac_try='test -z "$ac_c_werror_flag" |
6508 | || test ! -s conftest.err' | |
01473a49 | 6509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6510 | (eval $ac_try) 2>&5 | |
6511 | ac_status=$? | |
6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6513 | (exit $ac_status); }; } && | |
6514 | { ac_try='test -s conftest.$ac_objext' | |
6515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6516 | (eval $ac_try) 2>&5 | |
6517 | ac_status=$? | |
6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6519 | (exit $ac_status); }; }; then | |
6520 | ac_hi=-1 ac_mid=-1 | |
6521 | while :; do | |
6522 | cat >conftest.$ac_ext <<_ACEOF | |
6523 | /* confdefs.h. */ | |
6524 | _ACEOF | |
6525 | cat confdefs.h >>conftest.$ac_ext | |
6526 | cat >>conftest.$ac_ext <<_ACEOF | |
6527 | /* end confdefs.h. */ | |
6528 | $ac_includes_default | |
6529 | int | |
6530 | main () | |
6531 | { | |
6532 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
6533 | test_array [0] = 0 | |
6534 | ||
6535 | ; | |
6536 | return 0; | |
6537 | } | |
6538 | _ACEOF | |
6539 | rm -f conftest.$ac_objext | |
6540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6541 | (eval $ac_compile) 2>conftest.er1 | |
6542 | ac_status=$? | |
6543 | grep -v '^ *+' conftest.er1 >conftest.err | |
6544 | rm -f conftest.er1 | |
6545 | cat conftest.err >&5 | |
6546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6547 | (exit $ac_status); } && | |
59da30e1 | 6548 | { ac_try='test -z "$ac_c_werror_flag" |
6549 | || test ! -s conftest.err' | |
01473a49 | 6550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6551 | (eval $ac_try) 2>&5 | |
6552 | ac_status=$? | |
6553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6554 | (exit $ac_status); }; } && | |
6555 | { ac_try='test -s conftest.$ac_objext' | |
6556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6557 | (eval $ac_try) 2>&5 | |
6558 | ac_status=$? | |
6559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6560 | (exit $ac_status); }; }; then | |
6561 | ac_lo=$ac_mid; break | |
6562 | else | |
6563 | echo "$as_me: failed program was:" >&5 | |
6564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6565 | ||
6566 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6567 | if test $ac_mid -le $ac_hi; then | |
6568 | ac_lo= ac_hi= | |
6569 | break | |
6570 | fi | |
6571 | ac_mid=`expr 2 '*' $ac_mid` | |
6572 | fi | |
6573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6574 | done | |
6575 | else | |
6576 | echo "$as_me: failed program was:" >&5 | |
6577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6578 | ||
6579 | ac_lo= ac_hi= | |
6580 | fi | |
6581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6582 | fi | |
6583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6584 | # Binary search between lo and hi bounds. | |
6585 | while test "x$ac_lo" != "x$ac_hi"; do | |
6586 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6587 | cat >conftest.$ac_ext <<_ACEOF | |
6588 | /* confdefs.h. */ | |
6589 | _ACEOF | |
6590 | cat confdefs.h >>conftest.$ac_ext | |
6591 | cat >>conftest.$ac_ext <<_ACEOF | |
6592 | /* end confdefs.h. */ | |
6593 | $ac_includes_default | |
6594 | int | |
6595 | main () | |
6596 | { | |
6597 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
6598 | test_array [0] = 0 | |
6599 | ||
6600 | ; | |
6601 | return 0; | |
6602 | } | |
6603 | _ACEOF | |
6604 | rm -f conftest.$ac_objext | |
6605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6606 | (eval $ac_compile) 2>conftest.er1 | |
6607 | ac_status=$? | |
6608 | grep -v '^ *+' conftest.er1 >conftest.err | |
6609 | rm -f conftest.er1 | |
6610 | cat conftest.err >&5 | |
6611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6612 | (exit $ac_status); } && | |
59da30e1 | 6613 | { ac_try='test -z "$ac_c_werror_flag" |
6614 | || test ! -s conftest.err' | |
01473a49 | 6615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6616 | (eval $ac_try) 2>&5 | |
6617 | ac_status=$? | |
6618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6619 | (exit $ac_status); }; } && | |
6620 | { ac_try='test -s conftest.$ac_objext' | |
6621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6622 | (eval $ac_try) 2>&5 | |
6623 | ac_status=$? | |
6624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6625 | (exit $ac_status); }; }; then | |
6626 | ac_hi=$ac_mid | |
6627 | else | |
6628 | echo "$as_me: failed program was:" >&5 | |
6629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6630 | ||
6631 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6632 | fi | |
6633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6634 | done | |
6635 | case $ac_lo in | |
6636 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
6637 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
6638 | See \`config.log' for more details." >&5 | |
6639 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
6640 | See \`config.log' for more details." >&2;} | |
6641 | { (exit 1); exit 1; }; } ;; | |
6642 | esac | |
6643 | else | |
6644 | if test "$cross_compiling" = yes; then | |
59da30e1 | 6645 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
6646 | See \`config.log' for more details." >&5 | |
6647 | echo "$as_me: error: cannot run test program while cross compiling | |
6648 | See \`config.log' for more details." >&2;} | |
01473a49 | 6649 | { (exit 1); exit 1; }; } |
6650 | else | |
6651 | cat >conftest.$ac_ext <<_ACEOF | |
6652 | /* confdefs.h. */ | |
6653 | _ACEOF | |
6654 | cat confdefs.h >>conftest.$ac_ext | |
6655 | cat >>conftest.$ac_ext <<_ACEOF | |
6656 | /* end confdefs.h. */ | |
6657 | $ac_includes_default | |
6658 | long longval () { return (long) (sizeof (void *)); } | |
6659 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
6660 | #include <stdio.h> | |
6661 | #include <stdlib.h> | |
6662 | int | |
6663 | main () | |
6664 | { | |
6665 | ||
6666 | FILE *f = fopen ("conftest.val", "w"); | |
6667 | if (! f) | |
6668 | exit (1); | |
6669 | if (((long) (sizeof (void *))) < 0) | |
6670 | { | |
6671 | long i = longval (); | |
6672 | if (i != ((long) (sizeof (void *)))) | |
6673 | exit (1); | |
6674 | fprintf (f, "%ld\n", i); | |
6675 | } | |
6676 | else | |
6677 | { | |
6678 | unsigned long i = ulongval (); | |
6679 | if (i != ((long) (sizeof (void *)))) | |
6680 | exit (1); | |
6681 | fprintf (f, "%lu\n", i); | |
6682 | } | |
6683 | exit (ferror (f) || fclose (f) != 0); | |
6684 | ||
6685 | ; | |
6686 | return 0; | |
6687 | } | |
6688 | _ACEOF | |
6689 | rm -f conftest$ac_exeext | |
6690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6691 | (eval $ac_link) 2>&5 | |
6692 | ac_status=$? | |
6693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6694 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6696 | (eval $ac_try) 2>&5 | |
6697 | ac_status=$? | |
6698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6699 | (exit $ac_status); }; }; then | |
6700 | ac_cv_sizeof_void_p=`cat conftest.val` | |
6701 | else | |
6702 | echo "$as_me: program exited with status $ac_status" >&5 | |
6703 | echo "$as_me: failed program was:" >&5 | |
6704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6705 | ||
6706 | ( exit $ac_status ) | |
6707 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
6708 | See \`config.log' for more details." >&5 | |
6709 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
6710 | See \`config.log' for more details." >&2;} | |
6711 | { (exit 1); exit 1; }; } | |
6712 | fi | |
6713 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6714 | fi | |
6715 | fi | |
6716 | rm -f conftest.val | |
6717 | else | |
6718 | ac_cv_sizeof_void_p=0 | |
6719 | fi | |
6720 | fi | |
6721 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
6722 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
6723 | cat >>confdefs.h <<_ACEOF | |
6724 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
6725 | _ACEOF | |
6726 | ||
6727 | ;; | |
6728 | esac | |
6729 | ||
6730 | # Lacking an uint64_t? Test size of long | |
6731 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
6732 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 | |
6733 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
6734 | if test "${ac_cv_type_long+set}" = set; then | |
6735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6736 | else | |
6737 | cat >conftest.$ac_ext <<_ACEOF | |
6738 | /* confdefs.h. */ | |
6739 | _ACEOF | |
6740 | cat confdefs.h >>conftest.$ac_ext | |
6741 | cat >>conftest.$ac_ext <<_ACEOF | |
6742 | /* end confdefs.h. */ | |
6743 | $ac_includes_default | |
6744 | int | |
6745 | main () | |
6746 | { | |
6747 | if ((long *) 0) | |
6748 | return 0; | |
6749 | if (sizeof (long)) | |
6750 | return 0; | |
6751 | ; | |
6752 | return 0; | |
6753 | } | |
6754 | _ACEOF | |
6755 | rm -f conftest.$ac_objext | |
6756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6757 | (eval $ac_compile) 2>conftest.er1 | |
6758 | ac_status=$? | |
6759 | grep -v '^ *+' conftest.er1 >conftest.err | |
6760 | rm -f conftest.er1 | |
6761 | cat conftest.err >&5 | |
6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6763 | (exit $ac_status); } && | |
59da30e1 | 6764 | { ac_try='test -z "$ac_c_werror_flag" |
6765 | || test ! -s conftest.err' | |
01473a49 | 6766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6767 | (eval $ac_try) 2>&5 | |
6768 | ac_status=$? | |
6769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6770 | (exit $ac_status); }; } && | |
6771 | { ac_try='test -s conftest.$ac_objext' | |
6772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6773 | (eval $ac_try) 2>&5 | |
6774 | ac_status=$? | |
6775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6776 | (exit $ac_status); }; }; then | |
6777 | ac_cv_type_long=yes | |
6778 | else | |
6779 | echo "$as_me: failed program was:" >&5 | |
6780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6781 | ||
6782 | ac_cv_type_long=no | |
6783 | fi | |
6784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6785 | fi | |
6786 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
6787 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
6788 | ||
6789 | echo "$as_me:$LINENO: checking size of long" >&5 | |
6790 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
6791 | if test "${ac_cv_sizeof_long+set}" = set; then | |
6792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6793 | else | |
6794 | if test "$ac_cv_type_long" = yes; then | |
6795 | # The cast to unsigned long works around a bug in the HP C Compiler | |
6796 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6797 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6798 | # This bug is HP SR number 8606223364. | |
6799 | if test "$cross_compiling" = yes; then | |
6800 | # Depending upon the size, compute the lo and hi bounds. | |
6801 | cat >conftest.$ac_ext <<_ACEOF | |
6802 | /* confdefs.h. */ | |
6803 | _ACEOF | |
6804 | cat confdefs.h >>conftest.$ac_ext | |
6805 | cat >>conftest.$ac_ext <<_ACEOF | |
6806 | /* end confdefs.h. */ | |
6807 | $ac_includes_default | |
6808 | int | |
6809 | main () | |
6810 | { | |
6811 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
6812 | test_array [0] = 0 | |
6813 | ||
6814 | ; | |
6815 | return 0; | |
6816 | } | |
6817 | _ACEOF | |
6818 | rm -f conftest.$ac_objext | |
6819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6820 | (eval $ac_compile) 2>conftest.er1 | |
6821 | ac_status=$? | |
6822 | grep -v '^ *+' conftest.er1 >conftest.err | |
6823 | rm -f conftest.er1 | |
6824 | cat conftest.err >&5 | |
6825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6826 | (exit $ac_status); } && | |
59da30e1 | 6827 | { ac_try='test -z "$ac_c_werror_flag" |
6828 | || test ! -s conftest.err' | |
01473a49 | 6829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6830 | (eval $ac_try) 2>&5 | |
6831 | ac_status=$? | |
6832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6833 | (exit $ac_status); }; } && | |
6834 | { ac_try='test -s conftest.$ac_objext' | |
6835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6836 | (eval $ac_try) 2>&5 | |
6837 | ac_status=$? | |
6838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6839 | (exit $ac_status); }; }; then | |
6840 | ac_lo=0 ac_mid=0 | |
6841 | while :; do | |
6842 | cat >conftest.$ac_ext <<_ACEOF | |
6843 | /* confdefs.h. */ | |
6844 | _ACEOF | |
6845 | cat confdefs.h >>conftest.$ac_ext | |
6846 | cat >>conftest.$ac_ext <<_ACEOF | |
6847 | /* end confdefs.h. */ | |
6848 | $ac_includes_default | |
6849 | int | |
6850 | main () | |
6851 | { | |
6852 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
6853 | test_array [0] = 0 | |
6854 | ||
6855 | ; | |
6856 | return 0; | |
6857 | } | |
6858 | _ACEOF | |
6859 | rm -f conftest.$ac_objext | |
6860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6861 | (eval $ac_compile) 2>conftest.er1 | |
6862 | ac_status=$? | |
6863 | grep -v '^ *+' conftest.er1 >conftest.err | |
6864 | rm -f conftest.er1 | |
6865 | cat conftest.err >&5 | |
6866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6867 | (exit $ac_status); } && | |
59da30e1 | 6868 | { ac_try='test -z "$ac_c_werror_flag" |
6869 | || test ! -s conftest.err' | |
01473a49 | 6870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6871 | (eval $ac_try) 2>&5 | |
6872 | ac_status=$? | |
6873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6874 | (exit $ac_status); }; } && | |
6875 | { ac_try='test -s conftest.$ac_objext' | |
6876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6877 | (eval $ac_try) 2>&5 | |
6878 | ac_status=$? | |
6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6880 | (exit $ac_status); }; }; then | |
6881 | ac_hi=$ac_mid; break | |
6882 | else | |
6883 | echo "$as_me: failed program was:" >&5 | |
6884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6885 | ||
6886 | ac_lo=`expr $ac_mid + 1` | |
6887 | if test $ac_lo -le $ac_mid; then | |
6888 | ac_lo= ac_hi= | |
6889 | break | |
6890 | fi | |
6891 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6892 | fi | |
6893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6894 | done | |
6895 | else | |
6896 | echo "$as_me: failed program was:" >&5 | |
6897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6898 | ||
6899 | cat >conftest.$ac_ext <<_ACEOF | |
6900 | /* confdefs.h. */ | |
6901 | _ACEOF | |
6902 | cat confdefs.h >>conftest.$ac_ext | |
6903 | cat >>conftest.$ac_ext <<_ACEOF | |
6904 | /* end confdefs.h. */ | |
6905 | $ac_includes_default | |
6906 | int | |
6907 | main () | |
6908 | { | |
6909 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
6910 | test_array [0] = 0 | |
6911 | ||
6912 | ; | |
6913 | return 0; | |
6914 | } | |
6915 | _ACEOF | |
6916 | rm -f conftest.$ac_objext | |
6917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6918 | (eval $ac_compile) 2>conftest.er1 | |
6919 | ac_status=$? | |
6920 | grep -v '^ *+' conftest.er1 >conftest.err | |
6921 | rm -f conftest.er1 | |
6922 | cat conftest.err >&5 | |
6923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6924 | (exit $ac_status); } && | |
59da30e1 | 6925 | { ac_try='test -z "$ac_c_werror_flag" |
6926 | || test ! -s conftest.err' | |
01473a49 | 6927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6928 | (eval $ac_try) 2>&5 | |
6929 | ac_status=$? | |
6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6931 | (exit $ac_status); }; } && | |
6932 | { ac_try='test -s conftest.$ac_objext' | |
6933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6934 | (eval $ac_try) 2>&5 | |
6935 | ac_status=$? | |
6936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6937 | (exit $ac_status); }; }; then | |
6938 | ac_hi=-1 ac_mid=-1 | |
6939 | while :; do | |
6940 | cat >conftest.$ac_ext <<_ACEOF | |
6941 | /* confdefs.h. */ | |
6942 | _ACEOF | |
6943 | cat confdefs.h >>conftest.$ac_ext | |
6944 | cat >>conftest.$ac_ext <<_ACEOF | |
6945 | /* end confdefs.h. */ | |
6946 | $ac_includes_default | |
6947 | int | |
6948 | main () | |
6949 | { | |
6950 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
6951 | test_array [0] = 0 | |
6952 | ||
6953 | ; | |
6954 | return 0; | |
6955 | } | |
6956 | _ACEOF | |
6957 | rm -f conftest.$ac_objext | |
6958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6959 | (eval $ac_compile) 2>conftest.er1 | |
6960 | ac_status=$? | |
6961 | grep -v '^ *+' conftest.er1 >conftest.err | |
6962 | rm -f conftest.er1 | |
6963 | cat conftest.err >&5 | |
6964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6965 | (exit $ac_status); } && | |
59da30e1 | 6966 | { ac_try='test -z "$ac_c_werror_flag" |
6967 | || test ! -s conftest.err' | |
01473a49 | 6968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6969 | (eval $ac_try) 2>&5 | |
6970 | ac_status=$? | |
6971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6972 | (exit $ac_status); }; } && | |
6973 | { ac_try='test -s conftest.$ac_objext' | |
6974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6975 | (eval $ac_try) 2>&5 | |
6976 | ac_status=$? | |
6977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6978 | (exit $ac_status); }; }; then | |
6979 | ac_lo=$ac_mid; break | |
6980 | else | |
6981 | echo "$as_me: failed program was:" >&5 | |
6982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6983 | ||
6984 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
6985 | if test $ac_mid -le $ac_hi; then | |
6986 | ac_lo= ac_hi= | |
6987 | break | |
6988 | fi | |
6989 | ac_mid=`expr 2 '*' $ac_mid` | |
6990 | fi | |
6991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6992 | done | |
6993 | else | |
6994 | echo "$as_me: failed program was:" >&5 | |
6995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6996 | ||
6997 | ac_lo= ac_hi= | |
6998 | fi | |
6999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7000 | fi | |
7001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7002 | # Binary search between lo and hi bounds. | |
7003 | while test "x$ac_lo" != "x$ac_hi"; do | |
7004 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7005 | cat >conftest.$ac_ext <<_ACEOF | |
7006 | /* confdefs.h. */ | |
7007 | _ACEOF | |
7008 | cat confdefs.h >>conftest.$ac_ext | |
7009 | cat >>conftest.$ac_ext <<_ACEOF | |
7010 | /* end confdefs.h. */ | |
7011 | $ac_includes_default | |
7012 | int | |
7013 | main () | |
7014 | { | |
7015 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
7016 | test_array [0] = 0 | |
7017 | ||
7018 | ; | |
7019 | return 0; | |
7020 | } | |
7021 | _ACEOF | |
7022 | rm -f conftest.$ac_objext | |
7023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7024 | (eval $ac_compile) 2>conftest.er1 | |
7025 | ac_status=$? | |
7026 | grep -v '^ *+' conftest.er1 >conftest.err | |
7027 | rm -f conftest.er1 | |
7028 | cat conftest.err >&5 | |
7029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7030 | (exit $ac_status); } && | |
59da30e1 | 7031 | { ac_try='test -z "$ac_c_werror_flag" |
7032 | || test ! -s conftest.err' | |
01473a49 | 7033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7034 | (eval $ac_try) 2>&5 | |
7035 | ac_status=$? | |
7036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7037 | (exit $ac_status); }; } && | |
7038 | { ac_try='test -s conftest.$ac_objext' | |
7039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7040 | (eval $ac_try) 2>&5 | |
7041 | ac_status=$? | |
7042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7043 | (exit $ac_status); }; }; then | |
7044 | ac_hi=$ac_mid | |
7045 | else | |
7046 | echo "$as_me: failed program was:" >&5 | |
7047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7048 | ||
7049 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7050 | fi | |
7051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7052 | done | |
7053 | case $ac_lo in | |
7054 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
7055 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
7056 | See \`config.log' for more details." >&5 | |
7057 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
7058 | See \`config.log' for more details." >&2;} | |
7059 | { (exit 1); exit 1; }; } ;; | |
7060 | esac | |
7061 | else | |
7062 | if test "$cross_compiling" = yes; then | |
59da30e1 | 7063 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
7064 | See \`config.log' for more details." >&5 | |
7065 | echo "$as_me: error: cannot run test program while cross compiling | |
7066 | See \`config.log' for more details." >&2;} | |
01473a49 | 7067 | { (exit 1); exit 1; }; } |
7068 | else | |
7069 | cat >conftest.$ac_ext <<_ACEOF | |
7070 | /* confdefs.h. */ | |
7071 | _ACEOF | |
7072 | cat confdefs.h >>conftest.$ac_ext | |
7073 | cat >>conftest.$ac_ext <<_ACEOF | |
7074 | /* end confdefs.h. */ | |
7075 | $ac_includes_default | |
7076 | long longval () { return (long) (sizeof (long)); } | |
7077 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
7078 | #include <stdio.h> | |
7079 | #include <stdlib.h> | |
7080 | int | |
7081 | main () | |
7082 | { | |
7083 | ||
7084 | FILE *f = fopen ("conftest.val", "w"); | |
7085 | if (! f) | |
7086 | exit (1); | |
7087 | if (((long) (sizeof (long))) < 0) | |
7088 | { | |
7089 | long i = longval (); | |
7090 | if (i != ((long) (sizeof (long)))) | |
7091 | exit (1); | |
7092 | fprintf (f, "%ld\n", i); | |
7093 | } | |
7094 | else | |
7095 | { | |
7096 | unsigned long i = ulongval (); | |
7097 | if (i != ((long) (sizeof (long)))) | |
7098 | exit (1); | |
7099 | fprintf (f, "%lu\n", i); | |
7100 | } | |
7101 | exit (ferror (f) || fclose (f) != 0); | |
7102 | ||
7103 | ; | |
7104 | return 0; | |
7105 | } | |
7106 | _ACEOF | |
7107 | rm -f conftest$ac_exeext | |
7108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7109 | (eval $ac_link) 2>&5 | |
7110 | ac_status=$? | |
7111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7114 | (eval $ac_try) 2>&5 | |
7115 | ac_status=$? | |
7116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7117 | (exit $ac_status); }; }; then | |
7118 | ac_cv_sizeof_long=`cat conftest.val` | |
7119 | else | |
7120 | echo "$as_me: program exited with status $ac_status" >&5 | |
7121 | echo "$as_me: failed program was:" >&5 | |
7122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7123 | ||
7124 | ( exit $ac_status ) | |
7125 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
7126 | See \`config.log' for more details." >&5 | |
7127 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
7128 | See \`config.log' for more details." >&2;} | |
7129 | { (exit 1); exit 1; }; } | |
7130 | fi | |
7131 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7132 | fi | |
7133 | fi | |
7134 | rm -f conftest.val | |
7135 | else | |
7136 | ac_cv_sizeof_long=0 | |
7137 | fi | |
7138 | fi | |
7139 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
7140 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
7141 | cat >>confdefs.h <<_ACEOF | |
7142 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
7143 | _ACEOF | |
7144 | ||
7145 | ;; | |
7146 | esac | |
7147 | ||
7148 | if test $acx_cv_header_stdint = stddef.h; then | |
7149 | # Lacking a good header? Test size of everything and deduce all types. | |
7150 | echo "$as_me:$LINENO: checking for int" >&5 | |
7151 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
7152 | if test "${ac_cv_type_int+set}" = set; then | |
7153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7154 | else | |
7155 | cat >conftest.$ac_ext <<_ACEOF | |
7156 | /* confdefs.h. */ | |
7157 | _ACEOF | |
7158 | cat confdefs.h >>conftest.$ac_ext | |
7159 | cat >>conftest.$ac_ext <<_ACEOF | |
7160 | /* end confdefs.h. */ | |
7161 | $ac_includes_default | |
7162 | int | |
7163 | main () | |
7164 | { | |
7165 | if ((int *) 0) | |
7166 | return 0; | |
7167 | if (sizeof (int)) | |
7168 | return 0; | |
7169 | ; | |
7170 | return 0; | |
7171 | } | |
7172 | _ACEOF | |
7173 | rm -f conftest.$ac_objext | |
7174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7175 | (eval $ac_compile) 2>conftest.er1 | |
7176 | ac_status=$? | |
7177 | grep -v '^ *+' conftest.er1 >conftest.err | |
7178 | rm -f conftest.er1 | |
7179 | cat conftest.err >&5 | |
7180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7181 | (exit $ac_status); } && | |
59da30e1 | 7182 | { ac_try='test -z "$ac_c_werror_flag" |
7183 | || test ! -s conftest.err' | |
01473a49 | 7184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7185 | (eval $ac_try) 2>&5 | |
7186 | ac_status=$? | |
7187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7188 | (exit $ac_status); }; } && | |
7189 | { ac_try='test -s conftest.$ac_objext' | |
7190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7191 | (eval $ac_try) 2>&5 | |
7192 | ac_status=$? | |
7193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7194 | (exit $ac_status); }; }; then | |
7195 | ac_cv_type_int=yes | |
7196 | else | |
7197 | echo "$as_me: failed program was:" >&5 | |
7198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7199 | ||
7200 | ac_cv_type_int=no | |
7201 | fi | |
7202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7203 | fi | |
7204 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
7205 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
7206 | ||
7207 | echo "$as_me:$LINENO: checking size of int" >&5 | |
7208 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
7209 | if test "${ac_cv_sizeof_int+set}" = set; then | |
7210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7211 | else | |
7212 | if test "$ac_cv_type_int" = yes; then | |
7213 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7214 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7215 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7216 | # This bug is HP SR number 8606223364. | |
7217 | if test "$cross_compiling" = yes; then | |
7218 | # Depending upon the size, compute the lo and hi bounds. | |
7219 | cat >conftest.$ac_ext <<_ACEOF | |
7220 | /* confdefs.h. */ | |
7221 | _ACEOF | |
7222 | cat confdefs.h >>conftest.$ac_ext | |
7223 | cat >>conftest.$ac_ext <<_ACEOF | |
7224 | /* end confdefs.h. */ | |
7225 | $ac_includes_default | |
7226 | int | |
7227 | main () | |
7228 | { | |
7229 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
7230 | test_array [0] = 0 | |
7231 | ||
7232 | ; | |
7233 | return 0; | |
7234 | } | |
7235 | _ACEOF | |
7236 | rm -f conftest.$ac_objext | |
7237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7238 | (eval $ac_compile) 2>conftest.er1 | |
7239 | ac_status=$? | |
7240 | grep -v '^ *+' conftest.er1 >conftest.err | |
7241 | rm -f conftest.er1 | |
7242 | cat conftest.err >&5 | |
7243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7244 | (exit $ac_status); } && | |
59da30e1 | 7245 | { ac_try='test -z "$ac_c_werror_flag" |
7246 | || test ! -s conftest.err' | |
01473a49 | 7247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7248 | (eval $ac_try) 2>&5 | |
7249 | ac_status=$? | |
7250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7251 | (exit $ac_status); }; } && | |
7252 | { ac_try='test -s conftest.$ac_objext' | |
7253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7254 | (eval $ac_try) 2>&5 | |
7255 | ac_status=$? | |
7256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7257 | (exit $ac_status); }; }; then | |
7258 | ac_lo=0 ac_mid=0 | |
7259 | while :; do | |
7260 | cat >conftest.$ac_ext <<_ACEOF | |
7261 | /* confdefs.h. */ | |
7262 | _ACEOF | |
7263 | cat confdefs.h >>conftest.$ac_ext | |
7264 | cat >>conftest.$ac_ext <<_ACEOF | |
7265 | /* end confdefs.h. */ | |
7266 | $ac_includes_default | |
7267 | int | |
7268 | main () | |
7269 | { | |
7270 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
7271 | test_array [0] = 0 | |
7272 | ||
7273 | ; | |
7274 | return 0; | |
7275 | } | |
7276 | _ACEOF | |
7277 | rm -f conftest.$ac_objext | |
7278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7279 | (eval $ac_compile) 2>conftest.er1 | |
7280 | ac_status=$? | |
7281 | grep -v '^ *+' conftest.er1 >conftest.err | |
7282 | rm -f conftest.er1 | |
7283 | cat conftest.err >&5 | |
7284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7285 | (exit $ac_status); } && | |
59da30e1 | 7286 | { ac_try='test -z "$ac_c_werror_flag" |
7287 | || test ! -s conftest.err' | |
01473a49 | 7288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7289 | (eval $ac_try) 2>&5 | |
7290 | ac_status=$? | |
7291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7292 | (exit $ac_status); }; } && | |
7293 | { ac_try='test -s conftest.$ac_objext' | |
7294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7295 | (eval $ac_try) 2>&5 | |
7296 | ac_status=$? | |
7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7298 | (exit $ac_status); }; }; then | |
7299 | ac_hi=$ac_mid; break | |
7300 | else | |
7301 | echo "$as_me: failed program was:" >&5 | |
7302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7303 | ||
7304 | ac_lo=`expr $ac_mid + 1` | |
7305 | if test $ac_lo -le $ac_mid; then | |
7306 | ac_lo= ac_hi= | |
7307 | break | |
7308 | fi | |
7309 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
7310 | fi | |
7311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7312 | done | |
7313 | else | |
7314 | echo "$as_me: failed program was:" >&5 | |
7315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7316 | ||
7317 | cat >conftest.$ac_ext <<_ACEOF | |
7318 | /* confdefs.h. */ | |
7319 | _ACEOF | |
7320 | cat confdefs.h >>conftest.$ac_ext | |
7321 | cat >>conftest.$ac_ext <<_ACEOF | |
7322 | /* end confdefs.h. */ | |
7323 | $ac_includes_default | |
7324 | int | |
7325 | main () | |
7326 | { | |
7327 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
7328 | test_array [0] = 0 | |
7329 | ||
7330 | ; | |
7331 | return 0; | |
7332 | } | |
7333 | _ACEOF | |
7334 | rm -f conftest.$ac_objext | |
7335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7336 | (eval $ac_compile) 2>conftest.er1 | |
7337 | ac_status=$? | |
7338 | grep -v '^ *+' conftest.er1 >conftest.err | |
7339 | rm -f conftest.er1 | |
7340 | cat conftest.err >&5 | |
7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7342 | (exit $ac_status); } && | |
59da30e1 | 7343 | { ac_try='test -z "$ac_c_werror_flag" |
7344 | || test ! -s conftest.err' | |
01473a49 | 7345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7346 | (eval $ac_try) 2>&5 | |
7347 | ac_status=$? | |
7348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7349 | (exit $ac_status); }; } && | |
7350 | { ac_try='test -s conftest.$ac_objext' | |
7351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7352 | (eval $ac_try) 2>&5 | |
7353 | ac_status=$? | |
7354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7355 | (exit $ac_status); }; }; then | |
7356 | ac_hi=-1 ac_mid=-1 | |
7357 | while :; do | |
7358 | cat >conftest.$ac_ext <<_ACEOF | |
7359 | /* confdefs.h. */ | |
7360 | _ACEOF | |
7361 | cat confdefs.h >>conftest.$ac_ext | |
7362 | cat >>conftest.$ac_ext <<_ACEOF | |
7363 | /* end confdefs.h. */ | |
7364 | $ac_includes_default | |
7365 | int | |
7366 | main () | |
7367 | { | |
7368 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
7369 | test_array [0] = 0 | |
7370 | ||
7371 | ; | |
7372 | return 0; | |
7373 | } | |
7374 | _ACEOF | |
7375 | rm -f conftest.$ac_objext | |
7376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7377 | (eval $ac_compile) 2>conftest.er1 | |
7378 | ac_status=$? | |
7379 | grep -v '^ *+' conftest.er1 >conftest.err | |
7380 | rm -f conftest.er1 | |
7381 | cat conftest.err >&5 | |
7382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7383 | (exit $ac_status); } && | |
59da30e1 | 7384 | { ac_try='test -z "$ac_c_werror_flag" |
7385 | || test ! -s conftest.err' | |
01473a49 | 7386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7387 | (eval $ac_try) 2>&5 | |
7388 | ac_status=$? | |
7389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7390 | (exit $ac_status); }; } && | |
7391 | { ac_try='test -s conftest.$ac_objext' | |
7392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7393 | (eval $ac_try) 2>&5 | |
7394 | ac_status=$? | |
7395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7396 | (exit $ac_status); }; }; then | |
7397 | ac_lo=$ac_mid; break | |
7398 | else | |
7399 | echo "$as_me: failed program was:" >&5 | |
7400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7401 | ||
7402 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
7403 | if test $ac_mid -le $ac_hi; then | |
7404 | ac_lo= ac_hi= | |
7405 | break | |
7406 | fi | |
7407 | ac_mid=`expr 2 '*' $ac_mid` | |
7408 | fi | |
7409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7410 | done | |
7411 | else | |
7412 | echo "$as_me: failed program was:" >&5 | |
7413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7414 | ||
7415 | ac_lo= ac_hi= | |
7416 | fi | |
7417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7418 | fi | |
7419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7420 | # Binary search between lo and hi bounds. | |
7421 | while test "x$ac_lo" != "x$ac_hi"; do | |
7422 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7423 | cat >conftest.$ac_ext <<_ACEOF | |
7424 | /* confdefs.h. */ | |
7425 | _ACEOF | |
7426 | cat confdefs.h >>conftest.$ac_ext | |
7427 | cat >>conftest.$ac_ext <<_ACEOF | |
7428 | /* end confdefs.h. */ | |
7429 | $ac_includes_default | |
7430 | int | |
7431 | main () | |
7432 | { | |
7433 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
7434 | test_array [0] = 0 | |
7435 | ||
7436 | ; | |
7437 | return 0; | |
7438 | } | |
7439 | _ACEOF | |
7440 | rm -f conftest.$ac_objext | |
7441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7442 | (eval $ac_compile) 2>conftest.er1 | |
7443 | ac_status=$? | |
7444 | grep -v '^ *+' conftest.er1 >conftest.err | |
7445 | rm -f conftest.er1 | |
7446 | cat conftest.err >&5 | |
7447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7448 | (exit $ac_status); } && | |
59da30e1 | 7449 | { ac_try='test -z "$ac_c_werror_flag" |
7450 | || test ! -s conftest.err' | |
01473a49 | 7451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7452 | (eval $ac_try) 2>&5 | |
7453 | ac_status=$? | |
7454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7455 | (exit $ac_status); }; } && | |
7456 | { ac_try='test -s conftest.$ac_objext' | |
7457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7458 | (eval $ac_try) 2>&5 | |
7459 | ac_status=$? | |
7460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7461 | (exit $ac_status); }; }; then | |
7462 | ac_hi=$ac_mid | |
7463 | else | |
7464 | echo "$as_me: failed program was:" >&5 | |
7465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7466 | ||
7467 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7468 | fi | |
7469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7470 | done | |
7471 | case $ac_lo in | |
7472 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
7473 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
7474 | See \`config.log' for more details." >&5 | |
7475 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
7476 | See \`config.log' for more details." >&2;} | |
7477 | { (exit 1); exit 1; }; } ;; | |
7478 | esac | |
7479 | else | |
7480 | if test "$cross_compiling" = yes; then | |
59da30e1 | 7481 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
7482 | See \`config.log' for more details." >&5 | |
7483 | echo "$as_me: error: cannot run test program while cross compiling | |
7484 | See \`config.log' for more details." >&2;} | |
01473a49 | 7485 | { (exit 1); exit 1; }; } |
7486 | else | |
7487 | cat >conftest.$ac_ext <<_ACEOF | |
7488 | /* confdefs.h. */ | |
7489 | _ACEOF | |
7490 | cat confdefs.h >>conftest.$ac_ext | |
7491 | cat >>conftest.$ac_ext <<_ACEOF | |
7492 | /* end confdefs.h. */ | |
7493 | $ac_includes_default | |
7494 | long longval () { return (long) (sizeof (int)); } | |
7495 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
7496 | #include <stdio.h> | |
7497 | #include <stdlib.h> | |
7498 | int | |
7499 | main () | |
7500 | { | |
7501 | ||
7502 | FILE *f = fopen ("conftest.val", "w"); | |
7503 | if (! f) | |
7504 | exit (1); | |
7505 | if (((long) (sizeof (int))) < 0) | |
7506 | { | |
7507 | long i = longval (); | |
7508 | if (i != ((long) (sizeof (int)))) | |
7509 | exit (1); | |
7510 | fprintf (f, "%ld\n", i); | |
7511 | } | |
7512 | else | |
7513 | { | |
7514 | unsigned long i = ulongval (); | |
7515 | if (i != ((long) (sizeof (int)))) | |
7516 | exit (1); | |
7517 | fprintf (f, "%lu\n", i); | |
7518 | } | |
7519 | exit (ferror (f) || fclose (f) != 0); | |
7520 | ||
7521 | ; | |
7522 | return 0; | |
7523 | } | |
7524 | _ACEOF | |
7525 | rm -f conftest$ac_exeext | |
7526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7527 | (eval $ac_link) 2>&5 | |
7528 | ac_status=$? | |
7529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7530 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7532 | (eval $ac_try) 2>&5 | |
7533 | ac_status=$? | |
7534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7535 | (exit $ac_status); }; }; then | |
7536 | ac_cv_sizeof_int=`cat conftest.val` | |
7537 | else | |
7538 | echo "$as_me: program exited with status $ac_status" >&5 | |
7539 | echo "$as_me: failed program was:" >&5 | |
7540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7541 | ||
7542 | ( exit $ac_status ) | |
7543 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
7544 | See \`config.log' for more details." >&5 | |
7545 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
7546 | See \`config.log' for more details." >&2;} | |
7547 | { (exit 1); exit 1; }; } | |
7548 | fi | |
7549 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7550 | fi | |
7551 | fi | |
7552 | rm -f conftest.val | |
7553 | else | |
7554 | ac_cv_sizeof_int=0 | |
7555 | fi | |
7556 | fi | |
7557 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
7558 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
7559 | cat >>confdefs.h <<_ACEOF | |
7560 | #define SIZEOF_INT $ac_cv_sizeof_int | |
7561 | _ACEOF | |
7562 | ||
7563 | ||
7564 | echo "$as_me:$LINENO: checking for short" >&5 | |
7565 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
7566 | if test "${ac_cv_type_short+set}" = set; then | |
7567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7568 | else | |
7569 | cat >conftest.$ac_ext <<_ACEOF | |
7570 | /* confdefs.h. */ | |
7571 | _ACEOF | |
7572 | cat confdefs.h >>conftest.$ac_ext | |
7573 | cat >>conftest.$ac_ext <<_ACEOF | |
7574 | /* end confdefs.h. */ | |
7575 | $ac_includes_default | |
7576 | int | |
7577 | main () | |
7578 | { | |
7579 | if ((short *) 0) | |
7580 | return 0; | |
7581 | if (sizeof (short)) | |
7582 | return 0; | |
7583 | ; | |
7584 | return 0; | |
7585 | } | |
7586 | _ACEOF | |
7587 | rm -f conftest.$ac_objext | |
7588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7589 | (eval $ac_compile) 2>conftest.er1 | |
7590 | ac_status=$? | |
7591 | grep -v '^ *+' conftest.er1 >conftest.err | |
7592 | rm -f conftest.er1 | |
7593 | cat conftest.err >&5 | |
7594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7595 | (exit $ac_status); } && | |
59da30e1 | 7596 | { ac_try='test -z "$ac_c_werror_flag" |
7597 | || test ! -s conftest.err' | |
01473a49 | 7598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7599 | (eval $ac_try) 2>&5 | |
7600 | ac_status=$? | |
7601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7602 | (exit $ac_status); }; } && | |
7603 | { ac_try='test -s conftest.$ac_objext' | |
7604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7605 | (eval $ac_try) 2>&5 | |
7606 | ac_status=$? | |
7607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7608 | (exit $ac_status); }; }; then | |
7609 | ac_cv_type_short=yes | |
7610 | else | |
7611 | echo "$as_me: failed program was:" >&5 | |
7612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7613 | ||
7614 | ac_cv_type_short=no | |
7615 | fi | |
7616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7617 | fi | |
7618 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
7619 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
7620 | ||
7621 | echo "$as_me:$LINENO: checking size of short" >&5 | |
7622 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
7623 | if test "${ac_cv_sizeof_short+set}" = set; then | |
7624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7625 | else | |
7626 | if test "$ac_cv_type_short" = yes; then | |
7627 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7628 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7629 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7630 | # This bug is HP SR number 8606223364. | |
7631 | if test "$cross_compiling" = yes; then | |
7632 | # Depending upon the size, compute the lo and hi bounds. | |
7633 | cat >conftest.$ac_ext <<_ACEOF | |
7634 | /* confdefs.h. */ | |
7635 | _ACEOF | |
7636 | cat confdefs.h >>conftest.$ac_ext | |
7637 | cat >>conftest.$ac_ext <<_ACEOF | |
7638 | /* end confdefs.h. */ | |
7639 | $ac_includes_default | |
7640 | int | |
7641 | main () | |
7642 | { | |
7643 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
7644 | test_array [0] = 0 | |
7645 | ||
7646 | ; | |
7647 | return 0; | |
7648 | } | |
7649 | _ACEOF | |
7650 | rm -f conftest.$ac_objext | |
7651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7652 | (eval $ac_compile) 2>conftest.er1 | |
7653 | ac_status=$? | |
7654 | grep -v '^ *+' conftest.er1 >conftest.err | |
7655 | rm -f conftest.er1 | |
7656 | cat conftest.err >&5 | |
7657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7658 | (exit $ac_status); } && | |
59da30e1 | 7659 | { ac_try='test -z "$ac_c_werror_flag" |
7660 | || test ! -s conftest.err' | |
01473a49 | 7661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7662 | (eval $ac_try) 2>&5 | |
7663 | ac_status=$? | |
7664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7665 | (exit $ac_status); }; } && | |
7666 | { ac_try='test -s conftest.$ac_objext' | |
7667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7668 | (eval $ac_try) 2>&5 | |
7669 | ac_status=$? | |
7670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7671 | (exit $ac_status); }; }; then | |
7672 | ac_lo=0 ac_mid=0 | |
7673 | while :; do | |
7674 | cat >conftest.$ac_ext <<_ACEOF | |
7675 | /* confdefs.h. */ | |
7676 | _ACEOF | |
7677 | cat confdefs.h >>conftest.$ac_ext | |
7678 | cat >>conftest.$ac_ext <<_ACEOF | |
7679 | /* end confdefs.h. */ | |
7680 | $ac_includes_default | |
7681 | int | |
7682 | main () | |
7683 | { | |
7684 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
7685 | test_array [0] = 0 | |
7686 | ||
7687 | ; | |
7688 | return 0; | |
7689 | } | |
7690 | _ACEOF | |
7691 | rm -f conftest.$ac_objext | |
7692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7693 | (eval $ac_compile) 2>conftest.er1 | |
7694 | ac_status=$? | |
7695 | grep -v '^ *+' conftest.er1 >conftest.err | |
7696 | rm -f conftest.er1 | |
7697 | cat conftest.err >&5 | |
7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7699 | (exit $ac_status); } && | |
59da30e1 | 7700 | { ac_try='test -z "$ac_c_werror_flag" |
7701 | || test ! -s conftest.err' | |
01473a49 | 7702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7703 | (eval $ac_try) 2>&5 | |
7704 | ac_status=$? | |
7705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7706 | (exit $ac_status); }; } && | |
7707 | { ac_try='test -s conftest.$ac_objext' | |
7708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7709 | (eval $ac_try) 2>&5 | |
7710 | ac_status=$? | |
7711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7712 | (exit $ac_status); }; }; then | |
7713 | ac_hi=$ac_mid; break | |
7714 | else | |
7715 | echo "$as_me: failed program was:" >&5 | |
7716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7717 | ||
7718 | ac_lo=`expr $ac_mid + 1` | |
7719 | if test $ac_lo -le $ac_mid; then | |
7720 | ac_lo= ac_hi= | |
7721 | break | |
7722 | fi | |
7723 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
7724 | fi | |
7725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7726 | done | |
7727 | else | |
7728 | echo "$as_me: failed program was:" >&5 | |
7729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7730 | ||
7731 | cat >conftest.$ac_ext <<_ACEOF | |
7732 | /* confdefs.h. */ | |
7733 | _ACEOF | |
7734 | cat confdefs.h >>conftest.$ac_ext | |
7735 | cat >>conftest.$ac_ext <<_ACEOF | |
7736 | /* end confdefs.h. */ | |
7737 | $ac_includes_default | |
7738 | int | |
7739 | main () | |
7740 | { | |
7741 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
7742 | test_array [0] = 0 | |
7743 | ||
7744 | ; | |
7745 | return 0; | |
7746 | } | |
7747 | _ACEOF | |
7748 | rm -f conftest.$ac_objext | |
7749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7750 | (eval $ac_compile) 2>conftest.er1 | |
7751 | ac_status=$? | |
7752 | grep -v '^ *+' conftest.er1 >conftest.err | |
7753 | rm -f conftest.er1 | |
7754 | cat conftest.err >&5 | |
7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7756 | (exit $ac_status); } && | |
59da30e1 | 7757 | { ac_try='test -z "$ac_c_werror_flag" |
7758 | || test ! -s conftest.err' | |
01473a49 | 7759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7760 | (eval $ac_try) 2>&5 | |
7761 | ac_status=$? | |
7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7763 | (exit $ac_status); }; } && | |
7764 | { ac_try='test -s conftest.$ac_objext' | |
7765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7766 | (eval $ac_try) 2>&5 | |
7767 | ac_status=$? | |
7768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7769 | (exit $ac_status); }; }; then | |
7770 | ac_hi=-1 ac_mid=-1 | |
7771 | while :; do | |
7772 | cat >conftest.$ac_ext <<_ACEOF | |
7773 | /* confdefs.h. */ | |
7774 | _ACEOF | |
7775 | cat confdefs.h >>conftest.$ac_ext | |
7776 | cat >>conftest.$ac_ext <<_ACEOF | |
7777 | /* end confdefs.h. */ | |
7778 | $ac_includes_default | |
7779 | int | |
7780 | main () | |
7781 | { | |
7782 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
7783 | test_array [0] = 0 | |
7784 | ||
7785 | ; | |
7786 | return 0; | |
7787 | } | |
7788 | _ACEOF | |
7789 | rm -f conftest.$ac_objext | |
7790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7791 | (eval $ac_compile) 2>conftest.er1 | |
7792 | ac_status=$? | |
7793 | grep -v '^ *+' conftest.er1 >conftest.err | |
7794 | rm -f conftest.er1 | |
7795 | cat conftest.err >&5 | |
7796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7797 | (exit $ac_status); } && | |
59da30e1 | 7798 | { ac_try='test -z "$ac_c_werror_flag" |
7799 | || test ! -s conftest.err' | |
01473a49 | 7800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7801 | (eval $ac_try) 2>&5 | |
7802 | ac_status=$? | |
7803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7804 | (exit $ac_status); }; } && | |
7805 | { ac_try='test -s conftest.$ac_objext' | |
7806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7807 | (eval $ac_try) 2>&5 | |
7808 | ac_status=$? | |
7809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7810 | (exit $ac_status); }; }; then | |
7811 | ac_lo=$ac_mid; break | |
7812 | else | |
7813 | echo "$as_me: failed program was:" >&5 | |
7814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7815 | ||
7816 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
7817 | if test $ac_mid -le $ac_hi; then | |
7818 | ac_lo= ac_hi= | |
7819 | break | |
7820 | fi | |
7821 | ac_mid=`expr 2 '*' $ac_mid` | |
7822 | fi | |
7823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7824 | done | |
7825 | else | |
7826 | echo "$as_me: failed program was:" >&5 | |
7827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7828 | ||
7829 | ac_lo= ac_hi= | |
7830 | fi | |
7831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7832 | fi | |
7833 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7834 | # Binary search between lo and hi bounds. | |
7835 | while test "x$ac_lo" != "x$ac_hi"; do | |
7836 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7837 | cat >conftest.$ac_ext <<_ACEOF | |
7838 | /* confdefs.h. */ | |
7839 | _ACEOF | |
7840 | cat confdefs.h >>conftest.$ac_ext | |
7841 | cat >>conftest.$ac_ext <<_ACEOF | |
7842 | /* end confdefs.h. */ | |
7843 | $ac_includes_default | |
7844 | int | |
7845 | main () | |
7846 | { | |
7847 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
7848 | test_array [0] = 0 | |
7849 | ||
7850 | ; | |
7851 | return 0; | |
7852 | } | |
7853 | _ACEOF | |
7854 | rm -f conftest.$ac_objext | |
7855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7856 | (eval $ac_compile) 2>conftest.er1 | |
7857 | ac_status=$? | |
7858 | grep -v '^ *+' conftest.er1 >conftest.err | |
7859 | rm -f conftest.er1 | |
7860 | cat conftest.err >&5 | |
7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7862 | (exit $ac_status); } && | |
59da30e1 | 7863 | { ac_try='test -z "$ac_c_werror_flag" |
7864 | || test ! -s conftest.err' | |
01473a49 | 7865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7866 | (eval $ac_try) 2>&5 | |
7867 | ac_status=$? | |
7868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7869 | (exit $ac_status); }; } && | |
7870 | { ac_try='test -s conftest.$ac_objext' | |
7871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7872 | (eval $ac_try) 2>&5 | |
7873 | ac_status=$? | |
7874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7875 | (exit $ac_status); }; }; then | |
7876 | ac_hi=$ac_mid | |
7877 | else | |
7878 | echo "$as_me: failed program was:" >&5 | |
7879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7880 | ||
7881 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7882 | fi | |
7883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7884 | done | |
7885 | case $ac_lo in | |
7886 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
7887 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
7888 | See \`config.log' for more details." >&5 | |
7889 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
7890 | See \`config.log' for more details." >&2;} | |
7891 | { (exit 1); exit 1; }; } ;; | |
7892 | esac | |
7893 | else | |
7894 | if test "$cross_compiling" = yes; then | |
59da30e1 | 7895 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
7896 | See \`config.log' for more details." >&5 | |
7897 | echo "$as_me: error: cannot run test program while cross compiling | |
7898 | See \`config.log' for more details." >&2;} | |
01473a49 | 7899 | { (exit 1); exit 1; }; } |
7900 | else | |
7901 | cat >conftest.$ac_ext <<_ACEOF | |
7902 | /* confdefs.h. */ | |
7903 | _ACEOF | |
7904 | cat confdefs.h >>conftest.$ac_ext | |
7905 | cat >>conftest.$ac_ext <<_ACEOF | |
7906 | /* end confdefs.h. */ | |
7907 | $ac_includes_default | |
7908 | long longval () { return (long) (sizeof (short)); } | |
7909 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
7910 | #include <stdio.h> | |
7911 | #include <stdlib.h> | |
7912 | int | |
7913 | main () | |
7914 | { | |
7915 | ||
7916 | FILE *f = fopen ("conftest.val", "w"); | |
7917 | if (! f) | |
7918 | exit (1); | |
7919 | if (((long) (sizeof (short))) < 0) | |
7920 | { | |
7921 | long i = longval (); | |
7922 | if (i != ((long) (sizeof (short)))) | |
7923 | exit (1); | |
7924 | fprintf (f, "%ld\n", i); | |
7925 | } | |
7926 | else | |
7927 | { | |
7928 | unsigned long i = ulongval (); | |
7929 | if (i != ((long) (sizeof (short)))) | |
7930 | exit (1); | |
7931 | fprintf (f, "%lu\n", i); | |
7932 | } | |
7933 | exit (ferror (f) || fclose (f) != 0); | |
7934 | ||
7935 | ; | |
7936 | return 0; | |
7937 | } | |
7938 | _ACEOF | |
7939 | rm -f conftest$ac_exeext | |
7940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7941 | (eval $ac_link) 2>&5 | |
7942 | ac_status=$? | |
7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7944 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7946 | (eval $ac_try) 2>&5 | |
7947 | ac_status=$? | |
7948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7949 | (exit $ac_status); }; }; then | |
7950 | ac_cv_sizeof_short=`cat conftest.val` | |
7951 | else | |
7952 | echo "$as_me: program exited with status $ac_status" >&5 | |
7953 | echo "$as_me: failed program was:" >&5 | |
7954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7955 | ||
7956 | ( exit $ac_status ) | |
7957 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
7958 | See \`config.log' for more details." >&5 | |
7959 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
7960 | See \`config.log' for more details." >&2;} | |
7961 | { (exit 1); exit 1; }; } | |
7962 | fi | |
7963 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7964 | fi | |
7965 | fi | |
7966 | rm -f conftest.val | |
7967 | else | |
7968 | ac_cv_sizeof_short=0 | |
7969 | fi | |
7970 | fi | |
7971 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
7972 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
7973 | cat >>confdefs.h <<_ACEOF | |
7974 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
7975 | _ACEOF | |
7976 | ||
7977 | ||
7978 | echo "$as_me:$LINENO: checking for char" >&5 | |
7979 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
7980 | if test "${ac_cv_type_char+set}" = set; then | |
7981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7982 | else | |
7983 | cat >conftest.$ac_ext <<_ACEOF | |
7984 | /* confdefs.h. */ | |
7985 | _ACEOF | |
7986 | cat confdefs.h >>conftest.$ac_ext | |
7987 | cat >>conftest.$ac_ext <<_ACEOF | |
7988 | /* end confdefs.h. */ | |
7989 | $ac_includes_default | |
7990 | int | |
7991 | main () | |
7992 | { | |
7993 | if ((char *) 0) | |
7994 | return 0; | |
7995 | if (sizeof (char)) | |
7996 | return 0; | |
7997 | ; | |
7998 | return 0; | |
7999 | } | |
8000 | _ACEOF | |
8001 | rm -f conftest.$ac_objext | |
8002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8003 | (eval $ac_compile) 2>conftest.er1 | |
8004 | ac_status=$? | |
8005 | grep -v '^ *+' conftest.er1 >conftest.err | |
8006 | rm -f conftest.er1 | |
8007 | cat conftest.err >&5 | |
8008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8009 | (exit $ac_status); } && | |
59da30e1 | 8010 | { ac_try='test -z "$ac_c_werror_flag" |
8011 | || test ! -s conftest.err' | |
01473a49 | 8012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8013 | (eval $ac_try) 2>&5 | |
8014 | ac_status=$? | |
8015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8016 | (exit $ac_status); }; } && | |
8017 | { ac_try='test -s conftest.$ac_objext' | |
8018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8019 | (eval $ac_try) 2>&5 | |
8020 | ac_status=$? | |
8021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8022 | (exit $ac_status); }; }; then | |
8023 | ac_cv_type_char=yes | |
8024 | else | |
8025 | echo "$as_me: failed program was:" >&5 | |
8026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8027 | ||
8028 | ac_cv_type_char=no | |
8029 | fi | |
8030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8031 | fi | |
8032 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
8033 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
8034 | ||
8035 | echo "$as_me:$LINENO: checking size of char" >&5 | |
8036 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
8037 | if test "${ac_cv_sizeof_char+set}" = set; then | |
8038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8039 | else | |
8040 | if test "$ac_cv_type_char" = yes; then | |
8041 | # The cast to unsigned long works around a bug in the HP C Compiler | |
8042 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
8043 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
8044 | # This bug is HP SR number 8606223364. | |
8045 | if test "$cross_compiling" = yes; then | |
8046 | # Depending upon the size, compute the lo and hi bounds. | |
8047 | cat >conftest.$ac_ext <<_ACEOF | |
8048 | /* confdefs.h. */ | |
8049 | _ACEOF | |
8050 | cat confdefs.h >>conftest.$ac_ext | |
8051 | cat >>conftest.$ac_ext <<_ACEOF | |
8052 | /* end confdefs.h. */ | |
8053 | $ac_includes_default | |
8054 | int | |
8055 | main () | |
8056 | { | |
8057 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
8058 | test_array [0] = 0 | |
8059 | ||
8060 | ; | |
8061 | return 0; | |
8062 | } | |
8063 | _ACEOF | |
8064 | rm -f conftest.$ac_objext | |
8065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8066 | (eval $ac_compile) 2>conftest.er1 | |
8067 | ac_status=$? | |
8068 | grep -v '^ *+' conftest.er1 >conftest.err | |
8069 | rm -f conftest.er1 | |
8070 | cat conftest.err >&5 | |
8071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8072 | (exit $ac_status); } && | |
59da30e1 | 8073 | { ac_try='test -z "$ac_c_werror_flag" |
8074 | || test ! -s conftest.err' | |
01473a49 | 8075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8076 | (eval $ac_try) 2>&5 | |
8077 | ac_status=$? | |
8078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8079 | (exit $ac_status); }; } && | |
8080 | { ac_try='test -s conftest.$ac_objext' | |
8081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8082 | (eval $ac_try) 2>&5 | |
8083 | ac_status=$? | |
8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8085 | (exit $ac_status); }; }; then | |
8086 | ac_lo=0 ac_mid=0 | |
8087 | while :; do | |
8088 | cat >conftest.$ac_ext <<_ACEOF | |
8089 | /* confdefs.h. */ | |
8090 | _ACEOF | |
8091 | cat confdefs.h >>conftest.$ac_ext | |
8092 | cat >>conftest.$ac_ext <<_ACEOF | |
8093 | /* end confdefs.h. */ | |
8094 | $ac_includes_default | |
8095 | int | |
8096 | main () | |
8097 | { | |
8098 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
8099 | test_array [0] = 0 | |
8100 | ||
8101 | ; | |
8102 | return 0; | |
8103 | } | |
8104 | _ACEOF | |
8105 | rm -f conftest.$ac_objext | |
8106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8107 | (eval $ac_compile) 2>conftest.er1 | |
8108 | ac_status=$? | |
8109 | grep -v '^ *+' conftest.er1 >conftest.err | |
8110 | rm -f conftest.er1 | |
8111 | cat conftest.err >&5 | |
8112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8113 | (exit $ac_status); } && | |
59da30e1 | 8114 | { ac_try='test -z "$ac_c_werror_flag" |
8115 | || test ! -s conftest.err' | |
01473a49 | 8116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8117 | (eval $ac_try) 2>&5 | |
8118 | ac_status=$? | |
8119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8120 | (exit $ac_status); }; } && | |
8121 | { ac_try='test -s conftest.$ac_objext' | |
8122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8123 | (eval $ac_try) 2>&5 | |
8124 | ac_status=$? | |
8125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8126 | (exit $ac_status); }; }; then | |
8127 | ac_hi=$ac_mid; break | |
8128 | else | |
8129 | echo "$as_me: failed program was:" >&5 | |
8130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8131 | ||
8132 | ac_lo=`expr $ac_mid + 1` | |
8133 | if test $ac_lo -le $ac_mid; then | |
8134 | ac_lo= ac_hi= | |
8135 | break | |
8136 | fi | |
8137 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
8138 | fi | |
8139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8140 | done | |
8141 | else | |
8142 | echo "$as_me: failed program was:" >&5 | |
8143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8144 | ||
8145 | cat >conftest.$ac_ext <<_ACEOF | |
8146 | /* confdefs.h. */ | |
8147 | _ACEOF | |
8148 | cat confdefs.h >>conftest.$ac_ext | |
8149 | cat >>conftest.$ac_ext <<_ACEOF | |
8150 | /* end confdefs.h. */ | |
8151 | $ac_includes_default | |
8152 | int | |
8153 | main () | |
8154 | { | |
8155 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
8156 | test_array [0] = 0 | |
8157 | ||
8158 | ; | |
8159 | return 0; | |
8160 | } | |
8161 | _ACEOF | |
8162 | rm -f conftest.$ac_objext | |
8163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8164 | (eval $ac_compile) 2>conftest.er1 | |
8165 | ac_status=$? | |
8166 | grep -v '^ *+' conftest.er1 >conftest.err | |
8167 | rm -f conftest.er1 | |
8168 | cat conftest.err >&5 | |
8169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8170 | (exit $ac_status); } && | |
59da30e1 | 8171 | { ac_try='test -z "$ac_c_werror_flag" |
8172 | || test ! -s conftest.err' | |
01473a49 | 8173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8174 | (eval $ac_try) 2>&5 | |
8175 | ac_status=$? | |
8176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8177 | (exit $ac_status); }; } && | |
8178 | { ac_try='test -s conftest.$ac_objext' | |
8179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8180 | (eval $ac_try) 2>&5 | |
8181 | ac_status=$? | |
8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8183 | (exit $ac_status); }; }; then | |
8184 | ac_hi=-1 ac_mid=-1 | |
8185 | while :; do | |
8186 | cat >conftest.$ac_ext <<_ACEOF | |
8187 | /* confdefs.h. */ | |
8188 | _ACEOF | |
8189 | cat confdefs.h >>conftest.$ac_ext | |
8190 | cat >>conftest.$ac_ext <<_ACEOF | |
8191 | /* end confdefs.h. */ | |
8192 | $ac_includes_default | |
8193 | int | |
8194 | main () | |
8195 | { | |
8196 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
8197 | test_array [0] = 0 | |
8198 | ||
8199 | ; | |
8200 | return 0; | |
8201 | } | |
8202 | _ACEOF | |
8203 | rm -f conftest.$ac_objext | |
8204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8205 | (eval $ac_compile) 2>conftest.er1 | |
8206 | ac_status=$? | |
8207 | grep -v '^ *+' conftest.er1 >conftest.err | |
8208 | rm -f conftest.er1 | |
8209 | cat conftest.err >&5 | |
8210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8211 | (exit $ac_status); } && | |
59da30e1 | 8212 | { ac_try='test -z "$ac_c_werror_flag" |
8213 | || test ! -s conftest.err' | |
01473a49 | 8214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8215 | (eval $ac_try) 2>&5 | |
8216 | ac_status=$? | |
8217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8218 | (exit $ac_status); }; } && | |
8219 | { ac_try='test -s conftest.$ac_objext' | |
8220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8221 | (eval $ac_try) 2>&5 | |
8222 | ac_status=$? | |
8223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8224 | (exit $ac_status); }; }; then | |
8225 | ac_lo=$ac_mid; break | |
8226 | else | |
8227 | echo "$as_me: failed program was:" >&5 | |
8228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8229 | ||
8230 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8231 | if test $ac_mid -le $ac_hi; then | |
8232 | ac_lo= ac_hi= | |
8233 | break | |
8234 | fi | |
8235 | ac_mid=`expr 2 '*' $ac_mid` | |
8236 | fi | |
8237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8238 | done | |
8239 | else | |
8240 | echo "$as_me: failed program was:" >&5 | |
8241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8242 | ||
8243 | ac_lo= ac_hi= | |
8244 | fi | |
8245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8246 | fi | |
8247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8248 | # Binary search between lo and hi bounds. | |
8249 | while test "x$ac_lo" != "x$ac_hi"; do | |
8250 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8251 | cat >conftest.$ac_ext <<_ACEOF | |
8252 | /* confdefs.h. */ | |
8253 | _ACEOF | |
8254 | cat confdefs.h >>conftest.$ac_ext | |
8255 | cat >>conftest.$ac_ext <<_ACEOF | |
8256 | /* end confdefs.h. */ | |
8257 | $ac_includes_default | |
8258 | int | |
8259 | main () | |
8260 | { | |
8261 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
8262 | test_array [0] = 0 | |
8263 | ||
8264 | ; | |
8265 | return 0; | |
8266 | } | |
8267 | _ACEOF | |
8268 | rm -f conftest.$ac_objext | |
8269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8270 | (eval $ac_compile) 2>conftest.er1 | |
8271 | ac_status=$? | |
8272 | grep -v '^ *+' conftest.er1 >conftest.err | |
8273 | rm -f conftest.er1 | |
8274 | cat conftest.err >&5 | |
8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8276 | (exit $ac_status); } && | |
59da30e1 | 8277 | { ac_try='test -z "$ac_c_werror_flag" |
8278 | || test ! -s conftest.err' | |
01473a49 | 8279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8280 | (eval $ac_try) 2>&5 | |
8281 | ac_status=$? | |
8282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8283 | (exit $ac_status); }; } && | |
8284 | { ac_try='test -s conftest.$ac_objext' | |
8285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8286 | (eval $ac_try) 2>&5 | |
8287 | ac_status=$? | |
8288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8289 | (exit $ac_status); }; }; then | |
8290 | ac_hi=$ac_mid | |
8291 | else | |
8292 | echo "$as_me: failed program was:" >&5 | |
8293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8294 | ||
8295 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
8296 | fi | |
8297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8298 | done | |
8299 | case $ac_lo in | |
8300 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
8301 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
8302 | See \`config.log' for more details." >&5 | |
8303 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
8304 | See \`config.log' for more details." >&2;} | |
8305 | { (exit 1); exit 1; }; } ;; | |
8306 | esac | |
8307 | else | |
8308 | if test "$cross_compiling" = yes; then | |
59da30e1 | 8309 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
8310 | See \`config.log' for more details." >&5 | |
8311 | echo "$as_me: error: cannot run test program while cross compiling | |
8312 | See \`config.log' for more details." >&2;} | |
01473a49 | 8313 | { (exit 1); exit 1; }; } |
8314 | else | |
8315 | cat >conftest.$ac_ext <<_ACEOF | |
8316 | /* confdefs.h. */ | |
8317 | _ACEOF | |
8318 | cat confdefs.h >>conftest.$ac_ext | |
8319 | cat >>conftest.$ac_ext <<_ACEOF | |
8320 | /* end confdefs.h. */ | |
8321 | $ac_includes_default | |
8322 | long longval () { return (long) (sizeof (char)); } | |
8323 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
8324 | #include <stdio.h> | |
8325 | #include <stdlib.h> | |
8326 | int | |
8327 | main () | |
8328 | { | |
8329 | ||
8330 | FILE *f = fopen ("conftest.val", "w"); | |
8331 | if (! f) | |
8332 | exit (1); | |
8333 | if (((long) (sizeof (char))) < 0) | |
8334 | { | |
8335 | long i = longval (); | |
8336 | if (i != ((long) (sizeof (char)))) | |
8337 | exit (1); | |
8338 | fprintf (f, "%ld\n", i); | |
8339 | } | |
8340 | else | |
8341 | { | |
8342 | unsigned long i = ulongval (); | |
8343 | if (i != ((long) (sizeof (char)))) | |
8344 | exit (1); | |
8345 | fprintf (f, "%lu\n", i); | |
8346 | } | |
8347 | exit (ferror (f) || fclose (f) != 0); | |
8348 | ||
8349 | ; | |
8350 | return 0; | |
8351 | } | |
8352 | _ACEOF | |
8353 | rm -f conftest$ac_exeext | |
8354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8355 | (eval $ac_link) 2>&5 | |
8356 | ac_status=$? | |
8357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8358 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8360 | (eval $ac_try) 2>&5 | |
8361 | ac_status=$? | |
8362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8363 | (exit $ac_status); }; }; then | |
8364 | ac_cv_sizeof_char=`cat conftest.val` | |
8365 | else | |
8366 | echo "$as_me: program exited with status $ac_status" >&5 | |
8367 | echo "$as_me: failed program was:" >&5 | |
8368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8369 | ||
8370 | ( exit $ac_status ) | |
8371 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
8372 | See \`config.log' for more details." >&5 | |
8373 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
8374 | See \`config.log' for more details." >&2;} | |
8375 | { (exit 1); exit 1; }; } | |
8376 | fi | |
8377 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
8378 | fi | |
8379 | fi | |
8380 | rm -f conftest.val | |
8381 | else | |
8382 | ac_cv_sizeof_char=0 | |
8383 | fi | |
8384 | fi | |
8385 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
8386 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
8387 | cat >>confdefs.h <<_ACEOF | |
8388 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
8389 | _ACEOF | |
8390 | ||
8391 | ||
8392 | ||
8393 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 | |
8394 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
8395 | case "$ac_cv_sizeof_char" in | |
8396 | 1) acx_cv_type_int8_t=char ;; | |
8397 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
8398 | echo "$as_me: error: no 8-bit type" >&2;} | |
8399 | { (exit please report a bug); exit please report a bug; }; } | |
8400 | esac | |
8401 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 | |
8402 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
8403 | ||
8404 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 | |
8405 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
8406 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
8407 | 2:*) acx_cv_type_int16_t=int ;; | |
8408 | *:2) acx_cv_type_int16_t=short ;; | |
8409 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
8410 | echo "$as_me: error: no 16-bit type" >&2;} | |
8411 | { (exit please report a bug); exit please report a bug; }; } | |
8412 | esac | |
8413 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 | |
8414 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
8415 | ||
8416 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 | |
8417 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
8418 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
8419 | 4:*) acx_cv_type_int32_t=int ;; | |
8420 | *:4) acx_cv_type_int32_t=long ;; | |
8421 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
8422 | echo "$as_me: error: no 32-bit type" >&2;} | |
8423 | { (exit please report a bug); exit please report a bug; }; } | |
8424 | esac | |
8425 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 | |
8426 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
8427 | fi | |
8428 | ||
8429 | # These tests are here to make the output prettier | |
8430 | ||
8431 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
8432 | case "$ac_cv_sizeof_long" in | |
8433 | 8) acx_cv_type_int64_t=long ;; | |
8434 | esac | |
8435 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 | |
8436 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
8437 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
8438 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
8439 | fi | |
8440 | ||
8441 | # Now we can use the above types | |
8442 | ||
8443 | if test "$ac_cv_type_uintptr_t" != yes; then | |
8444 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 | |
8445 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
8446 | case $ac_cv_sizeof_void_p in | |
8447 | 2) acx_cv_type_intptr_t=int16_t ;; | |
8448 | 4) acx_cv_type_intptr_t=int32_t ;; | |
8449 | 8) acx_cv_type_intptr_t=int64_t ;; | |
8450 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
8451 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
8452 | { (exit please report a bug); exit please report a bug; }; } | |
8453 | esac | |
8454 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 | |
8455 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
8456 | fi | |
8457 | ||
8458 | # ----------------- done all checks, emit header ------------- | |
8459 | ac_config_commands="$ac_config_commands gstdint.h" | |
8460 | ||
8461 | ||
8462 | ||
8463 | ||
1e8e9920 | 8464 | # Check to see if -pthread or -lpthread is needed. Prefer the former. |
b00e3183 | 8465 | # In case the pthread.h system header is not found, this test will fail. |
1e8e9920 | 8466 | XPCFLAGS="" |
cd7cbccd | 8467 | CFLAGS="$CFLAGS -pthread" |
1e8e9920 | 8468 | cat >conftest.$ac_ext <<_ACEOF |
8469 | /* confdefs.h. */ | |
8470 | _ACEOF | |
8471 | cat confdefs.h >>conftest.$ac_ext | |
8472 | cat >>conftest.$ac_ext <<_ACEOF | |
8473 | /* end confdefs.h. */ | |
8474 | #include <pthread.h> | |
8475 | void *g(void *d) { return NULL; } | |
8476 | int | |
8477 | main () | |
8478 | { | |
8479 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
8480 | ; | |
8481 | return 0; | |
8482 | } | |
8483 | _ACEOF | |
8484 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8486 | (eval $ac_link) 2>conftest.er1 | |
8487 | ac_status=$? | |
8488 | grep -v '^ *+' conftest.er1 >conftest.err | |
8489 | rm -f conftest.er1 | |
8490 | cat conftest.err >&5 | |
8491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8492 | (exit $ac_status); } && | |
59da30e1 | 8493 | { ac_try='test -z "$ac_c_werror_flag" |
8494 | || test ! -s conftest.err' | |
1e8e9920 | 8495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8496 | (eval $ac_try) 2>&5 | |
8497 | ac_status=$? | |
8498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8499 | (exit $ac_status); }; } && | |
8500 | { ac_try='test -s conftest$ac_exeext' | |
8501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8502 | (eval $ac_try) 2>&5 | |
8503 | ac_status=$? | |
8504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8505 | (exit $ac_status); }; }; then | |
cd7cbccd | 8506 | XPCFLAGS=" -Wc,-pthread" |
1e8e9920 | 8507 | else |
8508 | echo "$as_me: failed program was:" >&5 | |
8509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8510 | ||
8511 | CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" | |
8512 | cat >conftest.$ac_ext <<_ACEOF | |
8513 | /* confdefs.h. */ | |
8514 | _ACEOF | |
8515 | cat confdefs.h >>conftest.$ac_ext | |
8516 | cat >>conftest.$ac_ext <<_ACEOF | |
8517 | /* end confdefs.h. */ | |
8518 | #include <pthread.h> | |
8519 | void *g(void *d) { return NULL; } | |
8520 | int | |
8521 | main () | |
8522 | { | |
8523 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
8524 | ; | |
8525 | return 0; | |
8526 | } | |
8527 | _ACEOF | |
8528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8530 | (eval $ac_link) 2>conftest.er1 | |
8531 | ac_status=$? | |
8532 | grep -v '^ *+' conftest.er1 >conftest.err | |
8533 | rm -f conftest.er1 | |
8534 | cat conftest.err >&5 | |
8535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8536 | (exit $ac_status); } && | |
59da30e1 | 8537 | { ac_try='test -z "$ac_c_werror_flag" |
8538 | || test ! -s conftest.err' | |
1e8e9920 | 8539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8540 | (eval $ac_try) 2>&5 | |
8541 | ac_status=$? | |
8542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8543 | (exit $ac_status); }; } && | |
8544 | { ac_try='test -s conftest$ac_exeext' | |
8545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8546 | (eval $ac_try) 2>&5 | |
8547 | ac_status=$? | |
8548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8549 | (exit $ac_status); }; }; then | |
8550 | : | |
8551 | else | |
8552 | echo "$as_me: failed program was:" >&5 | |
8553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8554 | ||
8555 | { { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5 | |
8556 | echo "$as_me: error: Pthreads are required to build libgomp" >&2;} | |
8557 | { (exit 1); exit 1; }; } | |
8558 | fi | |
8559 | rm -f conftest.err conftest.$ac_objext \ | |
8560 | conftest$ac_exeext conftest.$ac_ext | |
8561 | fi | |
8562 | rm -f conftest.err conftest.$ac_objext \ | |
8563 | conftest$ac_exeext conftest.$ac_ext | |
8564 | ||
8565 | # Check for functions needed. | |
8566 | ||
8567 | ||
8568 | for ac_func in getloadavg clock_gettime | |
8569 | do | |
8570 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
8571 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
8572 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
8573 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
8574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8575 | else | |
8576 | cat >conftest.$ac_ext <<_ACEOF | |
8577 | /* confdefs.h. */ | |
8578 | _ACEOF | |
8579 | cat confdefs.h >>conftest.$ac_ext | |
8580 | cat >>conftest.$ac_ext <<_ACEOF | |
8581 | /* end confdefs.h. */ | |
8582 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8583 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8584 | #define $ac_func innocuous_$ac_func | |
8585 | ||
8586 | /* System header to define __stub macros and hopefully few prototypes, | |
8587 | which can conflict with char $ac_func (); below. | |
8588 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8589 | <limits.h> exists even on freestanding compilers. */ | |
8590 | ||
8591 | #ifdef __STDC__ | |
8592 | # include <limits.h> | |
8593 | #else | |
8594 | # include <assert.h> | |
8595 | #endif | |
8596 | ||
8597 | #undef $ac_func | |
8598 | ||
8599 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8600 | #ifdef __cplusplus | |
8601 | extern "C" | |
8602 | { | |
8603 | #endif | |
8604 | /* We use char because int might match the return type of a gcc2 | |
8605 | builtin and then its argument prototype would still apply. */ | |
8606 | char $ac_func (); | |
8607 | /* The GNU C library defines this for functions which it implements | |
8608 | to always fail with ENOSYS. Some functions are actually named | |
8609 | something starting with __ and the normal name is an alias. */ | |
8610 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8611 | choke me | |
8612 | #else | |
8613 | char (*f) () = $ac_func; | |
8614 | #endif | |
8615 | #ifdef __cplusplus | |
8616 | } | |
8617 | #endif | |
8618 | ||
8619 | int | |
8620 | main () | |
8621 | { | |
8622 | return f != $ac_func; | |
8623 | ; | |
8624 | return 0; | |
8625 | } | |
8626 | _ACEOF | |
8627 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8629 | (eval $ac_link) 2>conftest.er1 | |
8630 | ac_status=$? | |
8631 | grep -v '^ *+' conftest.er1 >conftest.err | |
8632 | rm -f conftest.er1 | |
8633 | cat conftest.err >&5 | |
8634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8635 | (exit $ac_status); } && | |
59da30e1 | 8636 | { ac_try='test -z "$ac_c_werror_flag" |
8637 | || test ! -s conftest.err' | |
1e8e9920 | 8638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8639 | (eval $ac_try) 2>&5 | |
8640 | ac_status=$? | |
8641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8642 | (exit $ac_status); }; } && | |
8643 | { ac_try='test -s conftest$ac_exeext' | |
8644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8645 | (eval $ac_try) 2>&5 | |
8646 | ac_status=$? | |
8647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8648 | (exit $ac_status); }; }; then | |
8649 | eval "$as_ac_var=yes" | |
8650 | else | |
8651 | echo "$as_me: failed program was:" >&5 | |
8652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8653 | ||
8654 | eval "$as_ac_var=no" | |
8655 | fi | |
8656 | rm -f conftest.err conftest.$ac_objext \ | |
8657 | conftest$ac_exeext conftest.$ac_ext | |
8658 | fi | |
8659 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
8660 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
8661 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
8662 | cat >>confdefs.h <<_ACEOF | |
8663 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8664 | _ACEOF | |
8665 | ||
8666 | fi | |
8667 | done | |
8668 | ||
8669 | ||
59da30e1 | 8670 | # Check for broken semaphore implementation on darwin. |
8671 | # sem_init returns: sem_init error: Function not implemented. | |
8672 | case "$host" in | |
8673 | *-darwin*) | |
8674 | ||
8675 | cat >>confdefs.h <<\_ACEOF | |
8676 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 | |
8677 | _ACEOF | |
8678 | ||
2eca990d | 8679 | ;; |
8680 | *-linux*) | |
8681 | case "$enable_linux_futex" in | |
8682 | default) | |
8683 | # If headers don't have gettid/futex syscalls definition, then | |
8684 | # default to no, otherwise there will be compile time failures. | |
8685 | # Otherwise, default to yes. If we don't detect we are | |
8686 | # compiled/linked against NPTL and not cross-compiling, check | |
8687 | # if programs are run by default against NPTL and if not, issue | |
8688 | # a warning. | |
8689 | enable_linux_futex=no | |
8690 | cat >conftest.$ac_ext <<_ACEOF | |
8691 | /* confdefs.h. */ | |
8692 | _ACEOF | |
8693 | cat confdefs.h >>conftest.$ac_ext | |
8694 | cat >>conftest.$ac_ext <<_ACEOF | |
8695 | /* end confdefs.h. */ | |
8696 | #include <sys/syscall.h> | |
8697 | int lk; | |
8698 | int | |
8699 | main () | |
8700 | { | |
8701 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); | |
8702 | ; | |
8703 | return 0; | |
8704 | } | |
8705 | _ACEOF | |
8706 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8708 | (eval $ac_link) 2>conftest.er1 | |
8709 | ac_status=$? | |
8710 | grep -v '^ *+' conftest.er1 >conftest.err | |
8711 | rm -f conftest.er1 | |
8712 | cat conftest.err >&5 | |
8713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8714 | (exit $ac_status); } && | |
8715 | { ac_try='test -z "$ac_c_werror_flag" | |
8716 | || test ! -s conftest.err' | |
8717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8718 | (eval $ac_try) 2>&5 | |
8719 | ac_status=$? | |
8720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8721 | (exit $ac_status); }; } && | |
8722 | { ac_try='test -s conftest$ac_exeext' | |
8723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8724 | (eval $ac_try) 2>&5 | |
8725 | ac_status=$? | |
8726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8727 | (exit $ac_status); }; }; then | |
8728 | cat >conftest.$ac_ext <<_ACEOF | |
8729 | /* confdefs.h. */ | |
8730 | _ACEOF | |
8731 | cat confdefs.h >>conftest.$ac_ext | |
8732 | cat >>conftest.$ac_ext <<_ACEOF | |
8733 | /* end confdefs.h. */ | |
8734 | #ifndef _GNU_SOURCE | |
8735 | #define _GNU_SOURCE 1 | |
8736 | #endif | |
8737 | #include <pthread.h> | |
8738 | pthread_t th; void *status; | |
8739 | int | |
8740 | main () | |
8741 | { | |
8742 | pthread_tryjoin_np (th, &status); | |
8743 | ; | |
8744 | return 0; | |
8745 | } | |
8746 | _ACEOF | |
8747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8749 | (eval $ac_link) 2>conftest.er1 | |
8750 | ac_status=$? | |
8751 | grep -v '^ *+' conftest.er1 >conftest.err | |
8752 | rm -f conftest.er1 | |
8753 | cat conftest.err >&5 | |
8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8755 | (exit $ac_status); } && | |
8756 | { ac_try='test -z "$ac_c_werror_flag" | |
8757 | || test ! -s conftest.err' | |
8758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8759 | (eval $ac_try) 2>&5 | |
8760 | ac_status=$? | |
8761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8762 | (exit $ac_status); }; } && | |
8763 | { ac_try='test -s conftest$ac_exeext' | |
8764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8765 | (eval $ac_try) 2>&5 | |
8766 | ac_status=$? | |
8767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8768 | (exit $ac_status); }; }; then | |
8769 | enable_linux_futex=yes | |
8770 | else | |
8771 | echo "$as_me: failed program was:" >&5 | |
8772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8773 | ||
8774 | if test x$cross_compiling = xno; then | |
8775 | if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ | |
8776 | | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then | |
8777 | { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls. | |
8778 | If so, please configure with --disable-linux-futex" >&5 | |
8779 | echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. | |
8780 | If so, please configure with --disable-linux-futex" >&2;} | |
8781 | fi | |
8782 | fi | |
8783 | enable_linux_futex=yes | |
8784 | fi | |
8785 | rm -f conftest.err conftest.$ac_objext \ | |
8786 | conftest$ac_exeext conftest.$ac_ext | |
8787 | else | |
8788 | echo "$as_me: failed program was:" >&5 | |
8789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8790 | ||
8791 | fi | |
8792 | rm -f conftest.err conftest.$ac_objext \ | |
8793 | conftest$ac_exeext conftest.$ac_ext | |
8794 | ;; | |
8795 | yes) | |
8796 | cat >conftest.$ac_ext <<_ACEOF | |
8797 | /* confdefs.h. */ | |
8798 | _ACEOF | |
8799 | cat confdefs.h >>conftest.$ac_ext | |
8800 | cat >>conftest.$ac_ext <<_ACEOF | |
8801 | /* end confdefs.h. */ | |
8802 | #include <sys/syscall.h> | |
8803 | int lk; | |
8804 | int | |
8805 | main () | |
8806 | { | |
8807 | syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); | |
8808 | ; | |
8809 | return 0; | |
8810 | } | |
8811 | _ACEOF | |
8812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8814 | (eval $ac_link) 2>conftest.er1 | |
8815 | ac_status=$? | |
8816 | grep -v '^ *+' conftest.er1 >conftest.err | |
8817 | rm -f conftest.er1 | |
8818 | cat conftest.err >&5 | |
8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8820 | (exit $ac_status); } && | |
8821 | { ac_try='test -z "$ac_c_werror_flag" | |
8822 | || test ! -s conftest.err' | |
8823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8824 | (eval $ac_try) 2>&5 | |
8825 | ac_status=$? | |
8826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8827 | (exit $ac_status); }; } && | |
8828 | { ac_try='test -s conftest$ac_exeext' | |
8829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8830 | (eval $ac_try) 2>&5 | |
8831 | ac_status=$? | |
8832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8833 | (exit $ac_status); }; }; then | |
8834 | : | |
8835 | else | |
8836 | echo "$as_me: failed program was:" >&5 | |
8837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8838 | ||
8839 | { { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5 | |
8840 | echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;} | |
8841 | { (exit 1); exit 1; }; } | |
8842 | fi | |
8843 | rm -f conftest.err conftest.$ac_objext \ | |
8844 | conftest$ac_exeext conftest.$ac_ext | |
8845 | ;; | |
8846 | esac | |
59da30e1 | 8847 | ;; |
8848 | esac | |
8849 | ||
1e8e9920 | 8850 | # At least for glibc, clock_gettime is in librt. But don't pull that |
8851 | # in if it still doesn't give us the function we want. | |
8852 | if test $ac_cv_func_clock_gettime = no; then | |
8853 | echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 | |
8854 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6 | |
8855 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then | |
8856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8857 | else | |
8858 | ac_check_lib_save_LIBS=$LIBS | |
8859 | LIBS="-lrt $LIBS" | |
8860 | cat >conftest.$ac_ext <<_ACEOF | |
8861 | /* confdefs.h. */ | |
8862 | _ACEOF | |
8863 | cat confdefs.h >>conftest.$ac_ext | |
8864 | cat >>conftest.$ac_ext <<_ACEOF | |
8865 | /* end confdefs.h. */ | |
8866 | ||
8867 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8868 | #ifdef __cplusplus | |
8869 | extern "C" | |
8870 | #endif | |
8871 | /* We use char because int might match the return type of a gcc2 | |
8872 | builtin and then its argument prototype would still apply. */ | |
8873 | char clock_gettime (); | |
8874 | int | |
8875 | main () | |
8876 | { | |
8877 | clock_gettime (); | |
8878 | ; | |
8879 | return 0; | |
8880 | } | |
8881 | _ACEOF | |
8882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8884 | (eval $ac_link) 2>conftest.er1 | |
8885 | ac_status=$? | |
8886 | grep -v '^ *+' conftest.er1 >conftest.err | |
8887 | rm -f conftest.er1 | |
8888 | cat conftest.err >&5 | |
8889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8890 | (exit $ac_status); } && | |
59da30e1 | 8891 | { ac_try='test -z "$ac_c_werror_flag" |
8892 | || test ! -s conftest.err' | |
1e8e9920 | 8893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8894 | (eval $ac_try) 2>&5 | |
8895 | ac_status=$? | |
8896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8897 | (exit $ac_status); }; } && | |
8898 | { ac_try='test -s conftest$ac_exeext' | |
8899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8900 | (eval $ac_try) 2>&5 | |
8901 | ac_status=$? | |
8902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8903 | (exit $ac_status); }; }; then | |
8904 | ac_cv_lib_rt_clock_gettime=yes | |
8905 | else | |
8906 | echo "$as_me: failed program was:" >&5 | |
8907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8908 | ||
8909 | ac_cv_lib_rt_clock_gettime=no | |
8910 | fi | |
8911 | rm -f conftest.err conftest.$ac_objext \ | |
8912 | conftest$ac_exeext conftest.$ac_ext | |
8913 | LIBS=$ac_check_lib_save_LIBS | |
8914 | fi | |
8915 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
8916 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6 | |
8917 | if test $ac_cv_lib_rt_clock_gettime = yes; then | |
8918 | LIBS="-lrt $LIBS" | |
0b67f687 | 8919 | |
8920 | cat >>confdefs.h <<\_ACEOF | |
8921 | #define HAVE_CLOCK_GETTIME 1 | |
1e8e9920 | 8922 | _ACEOF |
8923 | ||
8924 | fi | |
8925 | ||
8926 | fi | |
8927 | ||
8928 | # See if we support thread-local storage. | |
8929 | ||
8930 | # Check whether --enable-tls or --disable-tls was given. | |
8931 | if test "${enable_tls+set}" = set; then | |
8932 | enableval="$enable_tls" | |
8933 | ||
8934 | case "$enableval" in | |
8935 | yes|no) ;; | |
8936 | *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5 | |
8937 | echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;} | |
8938 | { (exit 1); exit 1; }; } ;; | |
8939 | esac | |
8940 | ||
8941 | else | |
8942 | enable_tls=yes | |
8943 | fi; | |
8944 | ||
8945 | echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5 | |
8946 | echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6 | |
8947 | if test "${have_tls+set}" = set; then | |
8948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8949 | else | |
8950 | ||
4d006f8a | 8951 | if test "$cross_compiling" = yes; then |
8952 | cat >conftest.$ac_ext <<_ACEOF | |
67ba0753 | 8953 | __thread int a; int b; int main() { return a = b; } |
1e8e9920 | 8954 | _ACEOF |
67ba0753 | 8955 | rm -f conftest.$ac_objext conftest$ac_exeext |
8956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8957 | (eval $ac_link) 2>conftest.er1 | |
1e8e9920 | 8958 | ac_status=$? |
8959 | grep -v '^ *+' conftest.er1 >conftest.err | |
8960 | rm -f conftest.er1 | |
8961 | cat conftest.err >&5 | |
8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8963 | (exit $ac_status); } && | |
59da30e1 | 8964 | { ac_try='test -z "$ac_c_werror_flag" |
8965 | || test ! -s conftest.err' | |
1e8e9920 | 8966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8967 | (eval $ac_try) 2>&5 | |
8968 | ac_status=$? | |
8969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8970 | (exit $ac_status); }; } && | |
67ba0753 | 8971 | { ac_try='test -s conftest$ac_exeext' |
1e8e9920 | 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); }; }; then | |
4d006f8a | 8977 | have_tls=yes |
1e8e9920 | 8978 | else |
8979 | echo "$as_me: failed program was:" >&5 | |
8980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8981 | ||
8982 | have_tls=no | |
8983 | fi | |
67ba0753 | 8984 | rm -f conftest.err conftest.$ac_objext \ |
8985 | conftest$ac_exeext conftest.$ac_ext | |
4d006f8a | 8986 | |
8987 | else | |
8988 | cat >conftest.$ac_ext <<_ACEOF | |
8989 | __thread int a; int b; int main() { return a = b; } | |
8990 | _ACEOF | |
8991 | rm -f conftest$ac_exeext | |
8992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8993 | (eval $ac_link) 2>&5 | |
8994 | ac_status=$? | |
8995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8996 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8998 | (eval $ac_try) 2>&5 | |
8999 | ac_status=$? | |
9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9001 | (exit $ac_status); }; }; then | |
72a430e4 | 9002 | save_LDFLAGS="$LDFLAGS" |
4d006f8a | 9003 | LDFLAGS="-static $LDFLAGS" |
72a430e4 | 9004 | cat >conftest.$ac_ext <<_ACEOF |
9005 | int main() { return 0; } | |
9006 | _ACEOF | |
9007 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9009 | (eval $ac_link) 2>conftest.er1 | |
9010 | ac_status=$? | |
9011 | grep -v '^ *+' conftest.er1 >conftest.err | |
9012 | rm -f conftest.er1 | |
9013 | cat conftest.err >&5 | |
9014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9015 | (exit $ac_status); } && | |
9016 | { ac_try='test -z "$ac_c_werror_flag" | |
9017 | || test ! -s conftest.err' | |
9018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9019 | (eval $ac_try) 2>&5 | |
9020 | ac_status=$? | |
9021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9022 | (exit $ac_status); }; } && | |
9023 | { ac_try='test -s conftest$ac_exeext' | |
9024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9025 | (eval $ac_try) 2>&5 | |
9026 | ac_status=$? | |
9027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9028 | (exit $ac_status); }; }; then | |
9029 | if test "$cross_compiling" = yes; then | |
4d006f8a | 9030 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
9031 | See \`config.log' for more details." >&5 | |
9032 | echo "$as_me: error: cannot run test program while cross compiling | |
9033 | See \`config.log' for more details." >&2;} | |
9034 | { (exit 1); exit 1; }; } | |
9035 | else | |
9036 | cat >conftest.$ac_ext <<_ACEOF | |
9037 | __thread int a; int b; int main() { return a = b; } | |
9038 | _ACEOF | |
9039 | rm -f conftest$ac_exeext | |
9040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9041 | (eval $ac_link) 2>&5 | |
9042 | ac_status=$? | |
9043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9044 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9046 | (eval $ac_try) 2>&5 | |
9047 | ac_status=$? | |
9048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9049 | (exit $ac_status); }; }; then | |
9050 | have_tls=yes | |
9051 | else | |
9052 | echo "$as_me: program exited with status $ac_status" >&5 | |
9053 | echo "$as_me: failed program was:" >&5 | |
9054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9055 | ||
9056 | ( exit $ac_status ) | |
9057 | have_tls=no | |
9058 | fi | |
9059 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9060 | fi | |
72a430e4 | 9061 | else |
9062 | echo "$as_me: failed program was:" >&5 | |
9063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9064 | ||
9065 | have_tls=yes | |
9066 | fi | |
9067 | rm -f conftest.err conftest.$ac_objext \ | |
9068 | conftest$ac_exeext conftest.$ac_ext | |
4d006f8a | 9069 | LDFLAGS="$save_LDFLAGS" |
9070 | else | |
9071 | echo "$as_me: program exited with status $ac_status" >&5 | |
9072 | echo "$as_me: failed program was:" >&5 | |
9073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9074 | ||
9075 | ( exit $ac_status ) | |
9076 | have_tls=no | |
9077 | fi | |
9078 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9079 | fi | |
1e8e9920 | 9080 | fi |
9081 | echo "$as_me:$LINENO: result: $have_tls" >&5 | |
9082 | echo "${ECHO_T}$have_tls" >&6 | |
4d006f8a | 9083 | if test "$enable_tls $have_tls" = "yes yes"; then |
1e8e9920 | 9084 | |
9085 | cat >>confdefs.h <<\_ACEOF | |
9086 | #define HAVE_TLS 1 | |
9087 | _ACEOF | |
9088 | ||
9089 | fi | |
9090 | ||
9091 | # See what sort of export controls are availible. | |
9092 | ||
9093 | echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 | |
9094 | echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 | |
9095 | if test "${have_attribute_visibility+set}" = set; then | |
9096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9097 | else | |
9098 | ||
9099 | save_CFLAGS="$CFLAGS" | |
9100 | CFLAGS="$CFLAGS -Werror" | |
9101 | cat >conftest.$ac_ext <<_ACEOF | |
9102 | /* confdefs.h. */ | |
9103 | _ACEOF | |
9104 | cat confdefs.h >>conftest.$ac_ext | |
9105 | cat >>conftest.$ac_ext <<_ACEOF | |
9106 | /* end confdefs.h. */ | |
9107 | void __attribute__((visibility("hidden"))) foo(void) { } | |
9108 | int | |
9109 | main () | |
9110 | { | |
9111 | ||
9112 | ; | |
9113 | return 0; | |
9114 | } | |
9115 | _ACEOF | |
9116 | rm -f conftest.$ac_objext | |
9117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9118 | (eval $ac_compile) 2>conftest.er1 | |
9119 | ac_status=$? | |
9120 | grep -v '^ *+' conftest.er1 >conftest.err | |
9121 | rm -f conftest.er1 | |
9122 | cat conftest.err >&5 | |
9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9124 | (exit $ac_status); } && | |
59da30e1 | 9125 | { ac_try='test -z "$ac_c_werror_flag" |
9126 | || test ! -s conftest.err' | |
1e8e9920 | 9127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9128 | (eval $ac_try) 2>&5 | |
9129 | ac_status=$? | |
9130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9131 | (exit $ac_status); }; } && | |
9132 | { ac_try='test -s conftest.$ac_objext' | |
9133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9134 | (eval $ac_try) 2>&5 | |
9135 | ac_status=$? | |
9136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9137 | (exit $ac_status); }; }; then | |
9138 | have_attribute_visibility=yes | |
9139 | else | |
9140 | echo "$as_me: failed program was:" >&5 | |
9141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9142 | ||
9143 | have_attribute_visibility=no | |
9144 | fi | |
9145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9146 | CFLAGS="$save_CFLAGS" | |
9147 | fi | |
9148 | echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5 | |
9149 | echo "${ECHO_T}$have_attribute_visibility" >&6 | |
9150 | if test $have_attribute_visibility = yes; then | |
9151 | ||
9152 | cat >>confdefs.h <<\_ACEOF | |
9153 | #define HAVE_ATTRIBUTE_VISIBILITY 1 | |
9154 | _ACEOF | |
9155 | ||
9156 | fi | |
9157 | ||
9158 | echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5 | |
9159 | echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6 | |
9160 | if test "${have_attribute_dllexport+set}" = set; then | |
9161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9162 | else | |
9163 | ||
9164 | save_CFLAGS="$CFLAGS" | |
9165 | CFLAGS="$CFLAGS -Werror" | |
9166 | cat >conftest.$ac_ext <<_ACEOF | |
9167 | /* confdefs.h. */ | |
9168 | _ACEOF | |
9169 | cat confdefs.h >>conftest.$ac_ext | |
9170 | cat >>conftest.$ac_ext <<_ACEOF | |
9171 | /* end confdefs.h. */ | |
9172 | void __attribute__((dllexport)) foo(void) { } | |
9173 | int | |
9174 | main () | |
9175 | { | |
9176 | ||
9177 | ; | |
9178 | return 0; | |
9179 | } | |
9180 | _ACEOF | |
9181 | rm -f conftest.$ac_objext | |
9182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9183 | (eval $ac_compile) 2>conftest.er1 | |
9184 | ac_status=$? | |
9185 | grep -v '^ *+' conftest.er1 >conftest.err | |
9186 | rm -f conftest.er1 | |
9187 | cat conftest.err >&5 | |
9188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9189 | (exit $ac_status); } && | |
59da30e1 | 9190 | { ac_try='test -z "$ac_c_werror_flag" |
9191 | || test ! -s conftest.err' | |
1e8e9920 | 9192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9193 | (eval $ac_try) 2>&5 | |
9194 | ac_status=$? | |
9195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9196 | (exit $ac_status); }; } && | |
9197 | { ac_try='test -s conftest.$ac_objext' | |
9198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9199 | (eval $ac_try) 2>&5 | |
9200 | ac_status=$? | |
9201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9202 | (exit $ac_status); }; }; then | |
9203 | have_attribute_dllexport=yes | |
9204 | else | |
9205 | echo "$as_me: failed program was:" >&5 | |
9206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9207 | ||
9208 | have_attribute_dllexport=no | |
9209 | fi | |
9210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9211 | CFLAGS="$save_CFLAGS" | |
9212 | fi | |
9213 | echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5 | |
9214 | echo "${ECHO_T}$have_attribute_dllexport" >&6 | |
9215 | if test $have_attribute_dllexport = yes; then | |
9216 | ||
9217 | cat >>confdefs.h <<\_ACEOF | |
9218 | #define HAVE_ATTRIBUTE_DLLEXPORT 1 | |
9219 | _ACEOF | |
9220 | ||
9221 | fi | |
9222 | ||
9223 | echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5 | |
9224 | echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6 | |
9225 | if test "${have_attribute_alias+set}" = set; then | |
9226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9227 | else | |
9228 | ||
9229 | cat >conftest.$ac_ext <<_ACEOF | |
9230 | /* confdefs.h. */ | |
9231 | _ACEOF | |
9232 | cat confdefs.h >>conftest.$ac_ext | |
9233 | cat >>conftest.$ac_ext <<_ACEOF | |
9234 | /* end confdefs.h. */ | |
9235 | ||
1e8e9920 | 9236 | void foo(void) { } |
c812091b | 9237 | extern void bar(void) __attribute__((alias("foo"))); |
1e8e9920 | 9238 | int |
9239 | main () | |
9240 | { | |
9241 | bar(); | |
9242 | ; | |
9243 | return 0; | |
9244 | } | |
9245 | _ACEOF | |
9246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9248 | (eval $ac_link) 2>conftest.er1 | |
9249 | ac_status=$? | |
9250 | grep -v '^ *+' conftest.er1 >conftest.err | |
9251 | rm -f conftest.er1 | |
9252 | cat conftest.err >&5 | |
9253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9254 | (exit $ac_status); } && | |
59da30e1 | 9255 | { ac_try='test -z "$ac_c_werror_flag" |
9256 | || test ! -s conftest.err' | |
1e8e9920 | 9257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9258 | (eval $ac_try) 2>&5 | |
9259 | ac_status=$? | |
9260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9261 | (exit $ac_status); }; } && | |
9262 | { ac_try='test -s conftest$ac_exeext' | |
9263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9264 | (eval $ac_try) 2>&5 | |
9265 | ac_status=$? | |
9266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9267 | (exit $ac_status); }; }; then | |
9268 | have_attribute_alias=yes | |
9269 | else | |
9270 | echo "$as_me: failed program was:" >&5 | |
9271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9272 | ||
9273 | have_attribute_alias=no | |
9274 | fi | |
9275 | rm -f conftest.err conftest.$ac_objext \ | |
9276 | conftest$ac_exeext conftest.$ac_ext | |
9277 | fi | |
9278 | echo "$as_me:$LINENO: result: $have_attribute_alias" >&5 | |
9279 | echo "${ECHO_T}$have_attribute_alias" >&6 | |
9280 | if test $have_attribute_alias = yes; then | |
9281 | ||
9282 | cat >>confdefs.h <<\_ACEOF | |
9283 | #define HAVE_ATTRIBUTE_ALIAS 1 | |
9284 | _ACEOF | |
9285 | ||
9286 | fi | |
9287 | ||
9288 | # If we're not using GNU ld, then there's no point in even trying these | |
9289 | # tests. Check for that first. We should have already tested for gld | |
9290 | # by now (in libtool), but require it now just to be safe... | |
9291 | test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' | |
9292 | test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' | |
9293 | ||
9294 | ||
9295 | ||
9296 | # The name set by libtool depends on the version of libtool. Shame on us | |
9297 | # for depending on an impl detail, but c'est la vie. Older versions used | |
9298 | # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on | |
9299 | # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually | |
9300 | # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't | |
9301 | # set (hence we're using an older libtool), then set it. | |
9302 | if test x${with_gnu_ld+set} != xset; then | |
9303 | if test x${ac_cv_prog_gnu_ld+set} != xset; then | |
9304 | # We got through "ac_require(ac_prog_ld)" and still not set? Huh? | |
9305 | with_gnu_ld=no | |
9306 | else | |
9307 | with_gnu_ld=$ac_cv_prog_gnu_ld | |
9308 | fi | |
9309 | fi | |
9310 | ||
9311 | # Start by getting the version number. I think the libtool test already | |
9312 | # does some of this, but throws away the result. | |
9313 | ||
9314 | ldver=`$LD --version 2>/dev/null | head -1 | \ | |
9315 | sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` | |
9316 | ||
9317 | libgomp_gnu_ld_version=`echo $ldver | \ | |
9318 | $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` | |
9319 | ||
9320 | # Set --gc-sections. | |
9321 | if test "$with_gnu_ld" = "notbroken"; then | |
9322 | # GNU ld it is! Joy and bunny rabbits! | |
9323 | ||
9324 | # All these tests are for C++; save the language and the compiler flags. | |
9325 | # Need to do this so that g++ won't try to link in libstdc++ | |
9326 | ac_test_CFLAGS="${CFLAGS+set}" | |
9327 | ac_save_CFLAGS="$CFLAGS" | |
9328 | CFLAGS='-x c++ -Wl,--gc-sections' | |
9329 | ||
9330 | # Check for -Wl,--gc-sections | |
9331 | # XXX This test is broken at the moment, as symbols required for linking | |
9332 | # are now in libsupc++ (not built yet). In addition, this test has | |
9333 | # cored on solaris in the past. In addition, --gc-sections doesn't | |
9334 | # really work at the moment (keeps on discarding used sections, first | |
9335 | # .eh_frame and now some of the glibc sections for iconv). | |
9336 | # Bzzzzt. Thanks for playing, maybe next time. | |
9337 | echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 | |
9338 | echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 | |
9339 | if test "$cross_compiling" = yes; then | |
9340 | ac_sectionLDflags=yes | |
9341 | else | |
9342 | cat >conftest.$ac_ext <<_ACEOF | |
9343 | /* confdefs.h. */ | |
9344 | _ACEOF | |
9345 | cat confdefs.h >>conftest.$ac_ext | |
9346 | cat >>conftest.$ac_ext <<_ACEOF | |
9347 | /* end confdefs.h. */ | |
9348 | ||
9349 | int main(void) | |
9350 | { | |
9351 | try { throw 1; } | |
9352 | catch (...) { }; | |
9353 | return 0; | |
9354 | } | |
9355 | ||
9356 | _ACEOF | |
9357 | rm -f conftest$ac_exeext | |
9358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9359 | (eval $ac_link) 2>&5 | |
9360 | ac_status=$? | |
9361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9362 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9364 | (eval $ac_try) 2>&5 | |
9365 | ac_status=$? | |
9366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9367 | (exit $ac_status); }; }; then | |
9368 | ac_sectionLDflags=yes | |
9369 | else | |
9370 | echo "$as_me: program exited with status $ac_status" >&5 | |
9371 | echo "$as_me: failed program was:" >&5 | |
9372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9373 | ||
9374 | ( exit $ac_status ) | |
9375 | ac_sectionLDflags=no | |
9376 | fi | |
9377 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
9378 | fi | |
9379 | if test "$ac_test_CFLAGS" = set; then | |
9380 | CFLAGS="$ac_save_CFLAGS" | |
9381 | else | |
9382 | # this is the suspicious part | |
9383 | CFLAGS='' | |
9384 | fi | |
9385 | if test "$ac_sectionLDflags" = "yes"; then | |
9386 | SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" | |
9387 | fi | |
9388 | echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5 | |
9389 | echo "${ECHO_T}$ac_sectionLDflags" >&6 | |
9390 | fi | |
9391 | ||
9392 | # Set linker optimization flags. | |
9393 | if test x"$with_gnu_ld" = x"yes"; then | |
9394 | OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" | |
9395 | fi | |
9396 | ||
9397 | ||
9398 | ||
9399 | ||
9400 | ||
9401 | ||
9402 | # Check whether --enable-symvers or --disable-symvers was given. | |
9403 | if test "${enable_symvers+set}" = set; then | |
9404 | enableval="$enable_symvers" | |
9405 | ||
9406 | case "$enableval" in | |
9407 | yes|no|gnu) ;; | |
9408 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5 | |
9409 | echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;} | |
9410 | { (exit 1); exit 1; }; } ;; | |
9411 | esac | |
9412 | ||
9413 | else | |
9414 | enable_symvers=yes | |
9415 | fi; | |
9416 | ||
9417 | ||
9418 | # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we | |
9419 | # don't know enough about $LD to do tricks... | |
9420 | ||
9421 | # FIXME The following test is too strict, in theory. | |
9422 | if test $enable_shared = no || | |
9423 | test "x$LD" = x || | |
9424 | test x$libgomp_gnu_ld_version = x; then | |
9425 | enable_symvers=no | |
9426 | fi | |
9427 | ||
9428 | # Check to see if libgcc_s exists, indicating that shared libgcc is possible. | |
9429 | if test $enable_symvers != no; then | |
9430 | echo "$as_me:$LINENO: checking for shared libgcc" >&5 | |
9431 | echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6 | |
9432 | ac_save_CFLAGS="$CFLAGS" | |
9433 | CFLAGS=' -lgcc_s' | |
9434 | cat >conftest.$ac_ext <<_ACEOF | |
9435 | /* confdefs.h. */ | |
9436 | _ACEOF | |
9437 | cat confdefs.h >>conftest.$ac_ext | |
9438 | cat >>conftest.$ac_ext <<_ACEOF | |
9439 | /* end confdefs.h. */ | |
9440 | ||
9441 | int | |
9442 | main () | |
9443 | { | |
9444 | return 0; | |
9445 | ; | |
9446 | return 0; | |
9447 | } | |
9448 | _ACEOF | |
9449 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9451 | (eval $ac_link) 2>conftest.er1 | |
9452 | ac_status=$? | |
9453 | grep -v '^ *+' conftest.er1 >conftest.err | |
9454 | rm -f conftest.er1 | |
9455 | cat conftest.err >&5 | |
9456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9457 | (exit $ac_status); } && | |
59da30e1 | 9458 | { ac_try='test -z "$ac_c_werror_flag" |
9459 | || test ! -s conftest.err' | |
1e8e9920 | 9460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9461 | (eval $ac_try) 2>&5 | |
9462 | ac_status=$? | |
9463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9464 | (exit $ac_status); }; } && | |
9465 | { ac_try='test -s conftest$ac_exeext' | |
9466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9467 | (eval $ac_try) 2>&5 | |
9468 | ac_status=$? | |
9469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9470 | (exit $ac_status); }; }; then | |
9471 | libgomp_shared_libgcc=yes | |
9472 | else | |
9473 | echo "$as_me: failed program was:" >&5 | |
9474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9475 | ||
9476 | libgomp_shared_libgcc=no | |
9477 | fi | |
9478 | rm -f conftest.err conftest.$ac_objext \ | |
9479 | conftest$ac_exeext conftest.$ac_ext | |
9480 | CFLAGS="$ac_save_CFLAGS" | |
9481 | if test $libgomp_shared_libgcc = no; then | |
9482 | cat > conftest.c <<EOF | |
9483 | int main (void) { return 0; } | |
9484 | EOF | |
9485 | libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
9486 | -shared -shared-libgcc -o conftest.so \ | |
9487 | conftest.c -v 2>&1 >/dev/null \ | |
9488 | | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` | |
9489 | rm -f conftest.c conftest.so | |
9490 | if test x${libgomp_libgcc_s_suffix+set} = xset; then | |
9491 | CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" | |
9492 | cat >conftest.$ac_ext <<_ACEOF | |
9493 | /* confdefs.h. */ | |
9494 | _ACEOF | |
9495 | cat confdefs.h >>conftest.$ac_ext | |
9496 | cat >>conftest.$ac_ext <<_ACEOF | |
9497 | /* end confdefs.h. */ | |
9498 | ||
9499 | int | |
9500 | main () | |
9501 | { | |
9502 | return 0; | |
9503 | ; | |
9504 | return 0; | |
9505 | } | |
9506 | _ACEOF | |
9507 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9509 | (eval $ac_link) 2>conftest.er1 | |
9510 | ac_status=$? | |
9511 | grep -v '^ *+' conftest.er1 >conftest.err | |
9512 | rm -f conftest.er1 | |
9513 | cat conftest.err >&5 | |
9514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9515 | (exit $ac_status); } && | |
59da30e1 | 9516 | { ac_try='test -z "$ac_c_werror_flag" |
9517 | || test ! -s conftest.err' | |
1e8e9920 | 9518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9519 | (eval $ac_try) 2>&5 | |
9520 | ac_status=$? | |
9521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9522 | (exit $ac_status); }; } && | |
9523 | { ac_try='test -s conftest$ac_exeext' | |
9524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9525 | (eval $ac_try) 2>&5 | |
9526 | ac_status=$? | |
9527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9528 | (exit $ac_status); }; }; then | |
9529 | libgomp_shared_libgcc=yes | |
9530 | else | |
9531 | echo "$as_me: failed program was:" >&5 | |
9532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9533 | ||
9534 | fi | |
9535 | rm -f conftest.err conftest.$ac_objext \ | |
9536 | conftest$ac_exeext conftest.$ac_ext | |
9537 | CFLAGS="$ac_save_CFLAGS" | |
9538 | fi | |
9539 | fi | |
9540 | echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5 | |
9541 | echo "${ECHO_T}$libgomp_shared_libgcc" >&6 | |
9542 | fi | |
9543 | ||
9544 | # For GNU ld, we need at least this version. The format is described in | |
9545 | # LIBGOMP_CHECK_LINKER_FEATURES above. | |
9546 | libgomp_min_gnu_ld_version=21400 | |
9547 | # XXXXXXXXXXX libgomp_gnu_ld_version=21390 | |
9548 | ||
9549 | # Check to see if unspecified "yes" value can win, given results above. | |
9550 | # Change "yes" into either "no" or a style name. | |
9551 | if test $enable_symvers = yes; then | |
9552 | if test $with_gnu_ld = yes && | |
9553 | test $libgomp_shared_libgcc = yes; | |
9554 | then | |
9555 | if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then | |
9556 | enable_symvers=gnu | |
9557 | else | |
9558 | # The right tools, the right setup, but too old. Fallbacks? | |
9559 | { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 | |
9560 | echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} | |
9561 | { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5 | |
9562 | echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} | |
9563 | { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5 | |
9564 | echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} | |
9565 | { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 | |
9566 | echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} | |
9567 | if test $libgomp_gnu_ld_version -ge 21200 ; then | |
9568 | # Globbing fix is present, proper block support is not. | |
9569 | { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 | |
9570 | echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
9571 | enable_symvers=no | |
9572 | else | |
9573 | # 2.11 or older. | |
9574 | { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 | |
9575 | echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
9576 | enable_symvers=no | |
9577 | fi | |
9578 | fi | |
9579 | else | |
9580 | # just fail for now | |
9581 | { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5 | |
9582 | echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} | |
9583 | { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5 | |
9584 | echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} | |
9585 | { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5 | |
9586 | echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} | |
9587 | { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 | |
9588 | echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
9589 | enable_symvers=no | |
9590 | fi | |
9591 | fi | |
9592 | ||
9593 | ||
9594 | ||
9595 | if test $enable_symvers != no; then | |
9596 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= | |
9597 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' | |
9598 | else | |
9599 | LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' | |
9600 | LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= | |
9601 | fi | |
9602 | ||
9603 | { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5 | |
9604 | echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} | |
9605 | ||
9606 | ||
9607 | # Get target configury. | |
9608 | . ${srcdir}/configure.tgt | |
9609 | CFLAGS="$save_CFLAGS $XCFLAGS" | |
9610 | ||
9611 | # Check for __sync_val_compare_and_swap, but only after the target has | |
9612 | # had a chance to set XCFLAGS. | |
9613 | ||
9614 | echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5 | |
9615 | echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6 | |
9616 | if test "${have_sync_builtins+set}" = set; then | |
9617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9618 | else | |
9619 | ||
9620 | cat >conftest.$ac_ext <<_ACEOF | |
9621 | /* confdefs.h. */ | |
9622 | _ACEOF | |
9623 | cat confdefs.h >>conftest.$ac_ext | |
9624 | cat >>conftest.$ac_ext <<_ACEOF | |
9625 | /* end confdefs.h. */ | |
9626 | ||
9627 | int | |
9628 | main () | |
9629 | { | |
9630 | int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); | |
9631 | ; | |
9632 | return 0; | |
9633 | } | |
9634 | _ACEOF | |
9635 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9637 | (eval $ac_link) 2>conftest.er1 | |
9638 | ac_status=$? | |
9639 | grep -v '^ *+' conftest.er1 >conftest.err | |
9640 | rm -f conftest.er1 | |
9641 | cat conftest.err >&5 | |
9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9643 | (exit $ac_status); } && | |
59da30e1 | 9644 | { ac_try='test -z "$ac_c_werror_flag" |
9645 | || test ! -s conftest.err' | |
1e8e9920 | 9646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9647 | (eval $ac_try) 2>&5 | |
9648 | ac_status=$? | |
9649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9650 | (exit $ac_status); }; } && | |
9651 | { ac_try='test -s conftest$ac_exeext' | |
9652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9653 | (eval $ac_try) 2>&5 | |
9654 | ac_status=$? | |
9655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9656 | (exit $ac_status); }; }; then | |
9657 | have_sync_builtins=yes | |
9658 | else | |
9659 | echo "$as_me: failed program was:" >&5 | |
9660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9661 | ||
9662 | have_sync_builtins=no | |
9663 | fi | |
9664 | rm -f conftest.err conftest.$ac_objext \ | |
9665 | conftest$ac_exeext conftest.$ac_ext | |
9666 | fi | |
9667 | echo "$as_me:$LINENO: result: $have_sync_builtins" >&5 | |
9668 | echo "${ECHO_T}$have_sync_builtins" >&6 | |
9669 | if test $have_sync_builtins = yes; then | |
9670 | ||
9671 | cat >>confdefs.h <<\_ACEOF | |
9672 | #define HAVE_SYNC_BUILTINS 1 | |
9673 | _ACEOF | |
9674 | ||
9675 | fi | |
9676 | ||
9677 | XCFLAGS="$XCFLAGS$XPCFLAGS" | |
9678 | ||
9679 | ||
9680 | ||
9681 | ||
9682 | ||
9683 | # Cleanup and exit. | |
9684 | CFLAGS="$save_CFLAGS" | |
9685 | cat >confcache <<\_ACEOF | |
9686 | # This file is a shell script that caches the results of configure | |
9687 | # tests run on this system so they can be shared between configure | |
9688 | # scripts and configure runs, see configure's option --config-cache. | |
9689 | # It is not useful on other systems. If it contains results you don't | |
9690 | # want to keep, you may remove or edit it. | |
9691 | # | |
9692 | # config.status only pays attention to the cache file if you give it | |
9693 | # the --recheck option to rerun configure. | |
9694 | # | |
9695 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9696 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9697 | # following values. | |
9698 | ||
9699 | _ACEOF | |
9700 | ||
9701 | # The following way of writing the cache mishandles newlines in values, | |
9702 | # but we know of no workaround that is simple, portable, and efficient. | |
9703 | # So, don't put newlines in cache variables' values. | |
9704 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9705 | # and sets the high bit in the cache file unless we assign to the vars. | |
9706 | { | |
9707 | (set) 2>&1 | | |
9708 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9709 | *ac_space=\ *) | |
9710 | # `set' does not quote correctly, so add quotes (double-quote | |
9711 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9712 | sed -n \ | |
9713 | "s/'/'\\\\''/g; | |
9714 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9715 | ;; | |
9716 | *) | |
9717 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9718 | sed -n \ | |
9719 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9720 | ;; | |
9721 | esac; | |
9722 | } | | |
9723 | sed ' | |
9724 | t clear | |
9725 | : clear | |
9726 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9727 | t end | |
9728 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9729 | : end' >>confcache | |
9730 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
9731 | if test -w $cache_file; then | |
9732 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
9733 | cat confcache >$cache_file | |
9734 | else | |
9735 | echo "not updating unwritable cache $cache_file" | |
9736 | fi | |
9737 | fi | |
9738 | rm -f confcache | |
9739 | ||
9740 | if test ${multilib} = yes; then | |
9741 | multilib_arg="--enable-multilib" | |
9742 | else | |
9743 | multilib_arg= | |
9744 | fi | |
9745 | ||
9746 | # Set up the set of libraries that we need to link against for libgomp. | |
138f59be | 9747 | # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp, |
1e8e9920 | 9748 | # which will force linkage against -lpthread (or equivalent for the system). |
9749 | # That's not 100% ideal, but about the best we can do easily. | |
9750 | if test $enable_shared = yes; then | |
9751 | link_gomp="-lgomp %{static: $LIBS}" | |
9752 | else | |
9753 | link_gomp="-lgomp $LIBS" | |
9754 | fi | |
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | if test "$ac_cv_fc_compiler_gnu" = yes; then | |
9760 | USE_FORTRAN_TRUE= | |
9761 | USE_FORTRAN_FALSE='#' | |
9762 | else | |
9763 | USE_FORTRAN_TRUE='#' | |
9764 | USE_FORTRAN_FALSE= | |
9765 | fi | |
9766 | ||
9767 | ||
107c3bbf | 9768 | # ??? 2006-01-24: Paulo committed to asking autoconf folk to document |
9769 | # and export AC_COMPUTE_INT. If that happens, then we'll need to remove | |
9770 | # the underscore here and update the PREREQ. If it doesn't, then we'll | |
9771 | # need to copy this macro to our acinclude.m4. | |
9772 | save_CFLAGS="$CFLAGS" | |
9773 | for i in $config_path; do | |
9774 | if test -f $srcdir/config/$i/omp-lock.h; then | |
9775 | CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h" | |
9776 | break | |
9777 | fi | |
9778 | done | |
9779 | ||
9780 | if test "$cross_compiling" = yes; then | |
9781 | # Depending upon the size, compute the lo and hi bounds. | |
9782 | cat >conftest.$ac_ext <<_ACEOF | |
9783 | /* confdefs.h. */ | |
9784 | _ACEOF | |
9785 | cat confdefs.h >>conftest.$ac_ext | |
9786 | cat >>conftest.$ac_ext <<_ACEOF | |
9787 | /* end confdefs.h. */ | |
9788 | ||
9789 | int | |
9790 | main () | |
9791 | { | |
9792 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)]; | |
9793 | test_array [0] = 0 | |
9794 | ||
9795 | ; | |
9796 | return 0; | |
9797 | } | |
9798 | _ACEOF | |
9799 | rm -f conftest.$ac_objext | |
9800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9801 | (eval $ac_compile) 2>conftest.er1 | |
9802 | ac_status=$? | |
9803 | grep -v '^ *+' conftest.er1 >conftest.err | |
9804 | rm -f conftest.er1 | |
9805 | cat conftest.err >&5 | |
9806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9807 | (exit $ac_status); } && | |
59da30e1 | 9808 | { ac_try='test -z "$ac_c_werror_flag" |
9809 | || test ! -s conftest.err' | |
107c3bbf | 9810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9811 | (eval $ac_try) 2>&5 | |
9812 | ac_status=$? | |
9813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9814 | (exit $ac_status); }; } && | |
9815 | { ac_try='test -s conftest.$ac_objext' | |
9816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9817 | (eval $ac_try) 2>&5 | |
9818 | ac_status=$? | |
9819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9820 | (exit $ac_status); }; }; then | |
9821 | ac_lo=0 ac_mid=0 | |
9822 | while :; do | |
9823 | cat >conftest.$ac_ext <<_ACEOF | |
9824 | /* confdefs.h. */ | |
9825 | _ACEOF | |
9826 | cat confdefs.h >>conftest.$ac_ext | |
9827 | cat >>conftest.$ac_ext <<_ACEOF | |
9828 | /* end confdefs.h. */ | |
9829 | ||
9830 | int | |
9831 | main () | |
9832 | { | |
9833 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)]; | |
9834 | test_array [0] = 0 | |
9835 | ||
9836 | ; | |
9837 | return 0; | |
9838 | } | |
9839 | _ACEOF | |
9840 | rm -f conftest.$ac_objext | |
9841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9842 | (eval $ac_compile) 2>conftest.er1 | |
9843 | ac_status=$? | |
9844 | grep -v '^ *+' conftest.er1 >conftest.err | |
9845 | rm -f conftest.er1 | |
9846 | cat conftest.err >&5 | |
9847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9848 | (exit $ac_status); } && | |
59da30e1 | 9849 | { ac_try='test -z "$ac_c_werror_flag" |
9850 | || test ! -s conftest.err' | |
107c3bbf | 9851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9852 | (eval $ac_try) 2>&5 | |
9853 | ac_status=$? | |
9854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9855 | (exit $ac_status); }; } && | |
9856 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
9862 | ac_hi=$ac_mid; break | |
9863 | else | |
9864 | echo "$as_me: failed program was:" >&5 | |
9865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9866 | ||
9867 | ac_lo=`expr $ac_mid + 1` | |
9868 | if test $ac_lo -le $ac_mid; then | |
9869 | ac_lo= ac_hi= | |
9870 | break | |
9871 | fi | |
9872 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
9873 | fi | |
9874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9875 | done | |
9876 | else | |
9877 | echo "$as_me: failed program was:" >&5 | |
9878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9879 | ||
9880 | cat >conftest.$ac_ext <<_ACEOF | |
9881 | /* confdefs.h. */ | |
9882 | _ACEOF | |
9883 | cat confdefs.h >>conftest.$ac_ext | |
9884 | cat >>conftest.$ac_ext <<_ACEOF | |
9885 | /* end confdefs.h. */ | |
9886 | ||
9887 | int | |
9888 | main () | |
9889 | { | |
9890 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)]; | |
9891 | test_array [0] = 0 | |
9892 | ||
9893 | ; | |
9894 | return 0; | |
9895 | } | |
9896 | _ACEOF | |
9897 | rm -f conftest.$ac_objext | |
9898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9899 | (eval $ac_compile) 2>conftest.er1 | |
9900 | ac_status=$? | |
9901 | grep -v '^ *+' conftest.er1 >conftest.err | |
9902 | rm -f conftest.er1 | |
9903 | cat conftest.err >&5 | |
9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9905 | (exit $ac_status); } && | |
59da30e1 | 9906 | { ac_try='test -z "$ac_c_werror_flag" |
9907 | || test ! -s conftest.err' | |
107c3bbf | 9908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9909 | (eval $ac_try) 2>&5 | |
9910 | ac_status=$? | |
9911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9912 | (exit $ac_status); }; } && | |
9913 | { ac_try='test -s conftest.$ac_objext' | |
9914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9915 | (eval $ac_try) 2>&5 | |
9916 | ac_status=$? | |
9917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9918 | (exit $ac_status); }; }; then | |
9919 | ac_hi=-1 ac_mid=-1 | |
9920 | while :; do | |
9921 | cat >conftest.$ac_ext <<_ACEOF | |
9922 | /* confdefs.h. */ | |
9923 | _ACEOF | |
9924 | cat confdefs.h >>conftest.$ac_ext | |
9925 | cat >>conftest.$ac_ext <<_ACEOF | |
9926 | /* end confdefs.h. */ | |
9927 | ||
9928 | int | |
9929 | main () | |
9930 | { | |
9931 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)]; | |
9932 | test_array [0] = 0 | |
9933 | ||
9934 | ; | |
9935 | return 0; | |
9936 | } | |
9937 | _ACEOF | |
9938 | rm -f conftest.$ac_objext | |
9939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9940 | (eval $ac_compile) 2>conftest.er1 | |
9941 | ac_status=$? | |
9942 | grep -v '^ *+' conftest.er1 >conftest.err | |
9943 | rm -f conftest.er1 | |
9944 | cat conftest.err >&5 | |
9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9946 | (exit $ac_status); } && | |
59da30e1 | 9947 | { ac_try='test -z "$ac_c_werror_flag" |
9948 | || test ! -s conftest.err' | |
107c3bbf | 9949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9950 | (eval $ac_try) 2>&5 | |
9951 | ac_status=$? | |
9952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9953 | (exit $ac_status); }; } && | |
9954 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
9960 | ac_lo=$ac_mid; break | |
9961 | else | |
9962 | echo "$as_me: failed program was:" >&5 | |
9963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9964 | ||
9965 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
9966 | if test $ac_mid -le $ac_hi; then | |
9967 | ac_lo= ac_hi= | |
9968 | break | |
9969 | fi | |
9970 | ac_mid=`expr 2 '*' $ac_mid` | |
9971 | fi | |
9972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9973 | done | |
9974 | else | |
9975 | echo "$as_me: failed program was:" >&5 | |
9976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9977 | ||
9978 | ac_lo= ac_hi= | |
9979 | fi | |
9980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9981 | fi | |
9982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9983 | # Binary search between lo and hi bounds. | |
9984 | while test "x$ac_lo" != "x$ac_hi"; do | |
9985 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
9986 | cat >conftest.$ac_ext <<_ACEOF | |
9987 | /* confdefs.h. */ | |
9988 | _ACEOF | |
9989 | cat confdefs.h >>conftest.$ac_ext | |
9990 | cat >>conftest.$ac_ext <<_ACEOF | |
9991 | /* end confdefs.h. */ | |
9992 | ||
9993 | int | |
9994 | main () | |
9995 | { | |
9996 | static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)]; | |
9997 | test_array [0] = 0 | |
9998 | ||
9999 | ; | |
10000 | return 0; | |
10001 | } | |
10002 | _ACEOF | |
10003 | rm -f conftest.$ac_objext | |
10004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10005 | (eval $ac_compile) 2>conftest.er1 | |
10006 | ac_status=$? | |
10007 | grep -v '^ *+' conftest.er1 >conftest.err | |
10008 | rm -f conftest.er1 | |
10009 | cat conftest.err >&5 | |
10010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10011 | (exit $ac_status); } && | |
59da30e1 | 10012 | { ac_try='test -z "$ac_c_werror_flag" |
10013 | || test ! -s conftest.err' | |
107c3bbf | 10014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10015 | (eval $ac_try) 2>&5 | |
10016 | ac_status=$? | |
10017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10018 | (exit $ac_status); }; } && | |
10019 | { ac_try='test -s conftest.$ac_objext' | |
10020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10021 | (eval $ac_try) 2>&5 | |
10022 | ac_status=$? | |
10023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10024 | (exit $ac_status); }; }; then | |
10025 | ac_hi=$ac_mid | |
10026 | else | |
10027 | echo "$as_me: failed program was:" >&5 | |
10028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10029 | ||
10030 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
10031 | fi | |
10032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10033 | done | |
10034 | case $ac_lo in | |
10035 | ?*) OMP_LOCK_SIZE=$ac_lo;; | |
10036 | '') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5 | |
10037 | echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;} | |
10038 | { (exit 1); exit 1; }; } ;; | |
10039 | esac | |
10040 | else | |
10041 | if test "$cross_compiling" = yes; then | |
59da30e1 | 10042 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
10043 | See \`config.log' for more details." >&5 | |
10044 | echo "$as_me: error: cannot run test program while cross compiling | |
10045 | See \`config.log' for more details." >&2;} | |
107c3bbf | 10046 | { (exit 1); exit 1; }; } |
10047 | else | |
10048 | cat >conftest.$ac_ext <<_ACEOF | |
10049 | /* confdefs.h. */ | |
10050 | _ACEOF | |
10051 | cat confdefs.h >>conftest.$ac_ext | |
10052 | cat >>conftest.$ac_ext <<_ACEOF | |
10053 | /* end confdefs.h. */ | |
10054 | ||
10055 | long longval () { return sizeof (omp_lock_t); } | |
10056 | unsigned long ulongval () { return sizeof (omp_lock_t); } | |
10057 | #include <stdio.h> | |
10058 | #include <stdlib.h> | |
10059 | int | |
10060 | main () | |
10061 | { | |
10062 | ||
10063 | FILE *f = fopen ("conftest.val", "w"); | |
10064 | if (! f) | |
10065 | exit (1); | |
10066 | if ((sizeof (omp_lock_t)) < 0) | |
10067 | { | |
10068 | long i = longval (); | |
10069 | if (i != (sizeof (omp_lock_t))) | |
10070 | exit (1); | |
10071 | fprintf (f, "%ld\n", i); | |
10072 | } | |
10073 | else | |
10074 | { | |
10075 | unsigned long i = ulongval (); | |
10076 | if (i != (sizeof (omp_lock_t))) | |
10077 | exit (1); | |
10078 | fprintf (f, "%lu\n", i); | |
10079 | } | |
10080 | exit (ferror (f) || fclose (f) != 0); | |
10081 | ||
10082 | ; | |
10083 | return 0; | |
10084 | } | |
10085 | _ACEOF | |
10086 | rm -f conftest$ac_exeext | |
10087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10088 | (eval $ac_link) 2>&5 | |
10089 | ac_status=$? | |
10090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10091 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10093 | (eval $ac_try) 2>&5 | |
10094 | ac_status=$? | |
10095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10096 | (exit $ac_status); }; }; then | |
10097 | OMP_LOCK_SIZE=`cat conftest.val` | |
10098 | else | |
10099 | echo "$as_me: program exited with status $ac_status" >&5 | |
10100 | echo "$as_me: failed program was:" >&5 | |
10101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10102 | ||
10103 | ( exit $ac_status ) | |
10104 | { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5 | |
10105 | echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;} | |
10106 | { (exit 1); exit 1; }; } | |
10107 | fi | |
10108 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10109 | fi | |
10110 | fi | |
10111 | rm -f conftest.val | |
10112 | if test "$cross_compiling" = yes; then | |
10113 | # Depending upon the size, compute the lo and hi bounds. | |
10114 | cat >conftest.$ac_ext <<_ACEOF | |
10115 | /* confdefs.h. */ | |
10116 | _ACEOF | |
10117 | cat confdefs.h >>conftest.$ac_ext | |
10118 | cat >>conftest.$ac_ext <<_ACEOF | |
10119 | /* end confdefs.h. */ | |
10120 | ||
10121 | int | |
10122 | main () | |
10123 | { | |
10124 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)]; | |
10125 | test_array [0] = 0 | |
10126 | ||
10127 | ; | |
10128 | return 0; | |
10129 | } | |
10130 | _ACEOF | |
10131 | rm -f conftest.$ac_objext | |
10132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10133 | (eval $ac_compile) 2>conftest.er1 | |
10134 | ac_status=$? | |
10135 | grep -v '^ *+' conftest.er1 >conftest.err | |
10136 | rm -f conftest.er1 | |
10137 | cat conftest.err >&5 | |
10138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10139 | (exit $ac_status); } && | |
59da30e1 | 10140 | { ac_try='test -z "$ac_c_werror_flag" |
10141 | || test ! -s conftest.err' | |
107c3bbf | 10142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10143 | (eval $ac_try) 2>&5 | |
10144 | ac_status=$? | |
10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10146 | (exit $ac_status); }; } && | |
10147 | { ac_try='test -s conftest.$ac_objext' | |
10148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10149 | (eval $ac_try) 2>&5 | |
10150 | ac_status=$? | |
10151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10152 | (exit $ac_status); }; }; then | |
10153 | ac_lo=0 ac_mid=0 | |
10154 | while :; do | |
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. */ | |
10161 | ||
10162 | int | |
10163 | main () | |
10164 | { | |
10165 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)]; | |
10166 | test_array [0] = 0 | |
10167 | ||
10168 | ; | |
10169 | return 0; | |
10170 | } | |
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); } && | |
59da30e1 | 10181 | { ac_try='test -z "$ac_c_werror_flag" |
10182 | || test ! -s conftest.err' | |
107c3bbf | 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_hi=$ac_mid; break | |
10195 | else | |
10196 | echo "$as_me: failed program was:" >&5 | |
10197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10198 | ||
10199 | ac_lo=`expr $ac_mid + 1` | |
10200 | if test $ac_lo -le $ac_mid; then | |
10201 | ac_lo= ac_hi= | |
10202 | break | |
10203 | fi | |
10204 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
10205 | fi | |
10206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10207 | done | |
10208 | else | |
10209 | echo "$as_me: failed program was:" >&5 | |
10210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10211 | ||
10212 | cat >conftest.$ac_ext <<_ACEOF | |
10213 | /* confdefs.h. */ | |
10214 | _ACEOF | |
10215 | cat confdefs.h >>conftest.$ac_ext | |
10216 | cat >>conftest.$ac_ext <<_ACEOF | |
10217 | /* end confdefs.h. */ | |
10218 | ||
10219 | int | |
10220 | main () | |
10221 | { | |
10222 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)]; | |
10223 | test_array [0] = 0 | |
10224 | ||
10225 | ; | |
10226 | return 0; | |
10227 | } | |
10228 | _ACEOF | |
10229 | rm -f conftest.$ac_objext | |
10230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10231 | (eval $ac_compile) 2>conftest.er1 | |
10232 | ac_status=$? | |
10233 | grep -v '^ *+' conftest.er1 >conftest.err | |
10234 | rm -f conftest.er1 | |
10235 | cat conftest.err >&5 | |
10236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10237 | (exit $ac_status); } && | |
59da30e1 | 10238 | { ac_try='test -z "$ac_c_werror_flag" |
10239 | || test ! -s conftest.err' | |
107c3bbf | 10240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10241 | (eval $ac_try) 2>&5 | |
10242 | ac_status=$? | |
10243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10244 | (exit $ac_status); }; } && | |
10245 | { ac_try='test -s conftest.$ac_objext' | |
10246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10247 | (eval $ac_try) 2>&5 | |
10248 | ac_status=$? | |
10249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10250 | (exit $ac_status); }; }; then | |
10251 | ac_hi=-1 ac_mid=-1 | |
10252 | while :; do | |
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. */ | |
10259 | ||
10260 | int | |
10261 | main () | |
10262 | { | |
10263 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)]; | |
10264 | test_array [0] = 0 | |
10265 | ||
10266 | ; | |
10267 | return 0; | |
10268 | } | |
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); } && | |
59da30e1 | 10279 | { ac_try='test -z "$ac_c_werror_flag" |
10280 | || test ! -s conftest.err' | |
107c3bbf | 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_lo=$ac_mid; break | |
10293 | else | |
10294 | echo "$as_me: failed program was:" >&5 | |
10295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10296 | ||
10297 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
10298 | if test $ac_mid -le $ac_hi; then | |
10299 | ac_lo= ac_hi= | |
10300 | break | |
10301 | fi | |
10302 | ac_mid=`expr 2 '*' $ac_mid` | |
10303 | fi | |
10304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10305 | done | |
10306 | else | |
10307 | echo "$as_me: failed program was:" >&5 | |
10308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10309 | ||
10310 | ac_lo= ac_hi= | |
10311 | fi | |
10312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10313 | fi | |
10314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10315 | # Binary search between lo and hi bounds. | |
10316 | while test "x$ac_lo" != "x$ac_hi"; do | |
10317 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
10318 | cat >conftest.$ac_ext <<_ACEOF | |
10319 | /* confdefs.h. */ | |
10320 | _ACEOF | |
10321 | cat confdefs.h >>conftest.$ac_ext | |
10322 | cat >>conftest.$ac_ext <<_ACEOF | |
10323 | /* end confdefs.h. */ | |
10324 | ||
10325 | int | |
10326 | main () | |
10327 | { | |
10328 | static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)]; | |
10329 | test_array [0] = 0 | |
10330 | ||
10331 | ; | |
10332 | return 0; | |
10333 | } | |
10334 | _ACEOF | |
10335 | rm -f conftest.$ac_objext | |
10336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10337 | (eval $ac_compile) 2>conftest.er1 | |
10338 | ac_status=$? | |
10339 | grep -v '^ *+' conftest.er1 >conftest.err | |
10340 | rm -f conftest.er1 | |
10341 | cat conftest.err >&5 | |
10342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10343 | (exit $ac_status); } && | |
59da30e1 | 10344 | { ac_try='test -z "$ac_c_werror_flag" |
10345 | || test ! -s conftest.err' | |
107c3bbf | 10346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10347 | (eval $ac_try) 2>&5 | |
10348 | ac_status=$? | |
10349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10350 | (exit $ac_status); }; } && | |
10351 | { ac_try='test -s conftest.$ac_objext' | |
10352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10353 | (eval $ac_try) 2>&5 | |
10354 | ac_status=$? | |
10355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10356 | (exit $ac_status); }; }; then | |
10357 | ac_hi=$ac_mid | |
10358 | else | |
10359 | echo "$as_me: failed program was:" >&5 | |
10360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10361 | ||
10362 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
10363 | fi | |
10364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10365 | done | |
10366 | case $ac_lo in | |
10367 | ?*) OMP_LOCK_ALIGN=$ac_lo;; | |
10368 | '') ;; | |
10369 | esac | |
10370 | else | |
10371 | if test "$cross_compiling" = yes; then | |
59da30e1 | 10372 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
10373 | See \`config.log' for more details." >&5 | |
10374 | echo "$as_me: error: cannot run test program while cross compiling | |
10375 | See \`config.log' for more details." >&2;} | |
107c3bbf | 10376 | { (exit 1); exit 1; }; } |
10377 | else | |
10378 | cat >conftest.$ac_ext <<_ACEOF | |
10379 | /* confdefs.h. */ | |
10380 | _ACEOF | |
10381 | cat confdefs.h >>conftest.$ac_ext | |
10382 | cat >>conftest.$ac_ext <<_ACEOF | |
10383 | /* end confdefs.h. */ | |
10384 | ||
10385 | long longval () { return __alignof (omp_lock_t); } | |
10386 | unsigned long ulongval () { return __alignof (omp_lock_t); } | |
10387 | #include <stdio.h> | |
10388 | #include <stdlib.h> | |
10389 | int | |
10390 | main () | |
10391 | { | |
10392 | ||
10393 | FILE *f = fopen ("conftest.val", "w"); | |
10394 | if (! f) | |
10395 | exit (1); | |
10396 | if ((__alignof (omp_lock_t)) < 0) | |
10397 | { | |
10398 | long i = longval (); | |
10399 | if (i != (__alignof (omp_lock_t))) | |
10400 | exit (1); | |
10401 | fprintf (f, "%ld\n", i); | |
10402 | } | |
10403 | else | |
10404 | { | |
10405 | unsigned long i = ulongval (); | |
10406 | if (i != (__alignof (omp_lock_t))) | |
10407 | exit (1); | |
10408 | fprintf (f, "%lu\n", i); | |
10409 | } | |
10410 | exit (ferror (f) || fclose (f) != 0); | |
10411 | ||
10412 | ; | |
10413 | return 0; | |
10414 | } | |
10415 | _ACEOF | |
10416 | rm -f conftest$ac_exeext | |
10417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10418 | (eval $ac_link) 2>&5 | |
10419 | ac_status=$? | |
10420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10421 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10423 | (eval $ac_try) 2>&5 | |
10424 | ac_status=$? | |
10425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10426 | (exit $ac_status); }; }; then | |
10427 | OMP_LOCK_ALIGN=`cat conftest.val` | |
10428 | else | |
10429 | echo "$as_me: program exited with status $ac_status" >&5 | |
10430 | echo "$as_me: failed program was:" >&5 | |
10431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10432 | ||
10433 | fi | |
10434 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10435 | fi | |
10436 | fi | |
10437 | rm -f conftest.val | |
10438 | if test "$cross_compiling" = yes; then | |
10439 | # Depending upon the size, compute the lo and hi bounds. | |
10440 | cat >conftest.$ac_ext <<_ACEOF | |
10441 | /* confdefs.h. */ | |
10442 | _ACEOF | |
10443 | cat confdefs.h >>conftest.$ac_ext | |
10444 | cat >>conftest.$ac_ext <<_ACEOF | |
10445 | /* end confdefs.h. */ | |
10446 | ||
10447 | int | |
10448 | main () | |
10449 | { | |
10450 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)]; | |
10451 | test_array [0] = 0 | |
10452 | ||
10453 | ; | |
10454 | return 0; | |
10455 | } | |
10456 | _ACEOF | |
10457 | rm -f conftest.$ac_objext | |
10458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10459 | (eval $ac_compile) 2>conftest.er1 | |
10460 | ac_status=$? | |
10461 | grep -v '^ *+' conftest.er1 >conftest.err | |
10462 | rm -f conftest.er1 | |
10463 | cat conftest.err >&5 | |
10464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10465 | (exit $ac_status); } && | |
59da30e1 | 10466 | { ac_try='test -z "$ac_c_werror_flag" |
10467 | || test ! -s conftest.err' | |
107c3bbf | 10468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10469 | (eval $ac_try) 2>&5 | |
10470 | ac_status=$? | |
10471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10472 | (exit $ac_status); }; } && | |
10473 | { ac_try='test -s conftest.$ac_objext' | |
10474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10475 | (eval $ac_try) 2>&5 | |
10476 | ac_status=$? | |
10477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10478 | (exit $ac_status); }; }; then | |
10479 | ac_lo=0 ac_mid=0 | |
10480 | while :; do | |
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. */ | |
10487 | ||
10488 | int | |
10489 | main () | |
10490 | { | |
10491 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)]; | |
10492 | test_array [0] = 0 | |
10493 | ||
10494 | ; | |
10495 | return 0; | |
10496 | } | |
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); } && | |
59da30e1 | 10507 | { ac_try='test -z "$ac_c_werror_flag" |
10508 | || test ! -s conftest.err' | |
107c3bbf | 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_hi=$ac_mid; break | |
10521 | else | |
10522 | echo "$as_me: failed program was:" >&5 | |
10523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10524 | ||
10525 | ac_lo=`expr $ac_mid + 1` | |
10526 | if test $ac_lo -le $ac_mid; then | |
10527 | ac_lo= ac_hi= | |
10528 | break | |
10529 | fi | |
10530 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
10531 | fi | |
10532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10533 | done | |
10534 | else | |
10535 | echo "$as_me: failed program was:" >&5 | |
10536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10537 | ||
10538 | cat >conftest.$ac_ext <<_ACEOF | |
10539 | /* confdefs.h. */ | |
10540 | _ACEOF | |
10541 | cat confdefs.h >>conftest.$ac_ext | |
10542 | cat >>conftest.$ac_ext <<_ACEOF | |
10543 | /* end confdefs.h. */ | |
10544 | ||
10545 | int | |
10546 | main () | |
10547 | { | |
10548 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)]; | |
10549 | test_array [0] = 0 | |
10550 | ||
10551 | ; | |
10552 | return 0; | |
10553 | } | |
10554 | _ACEOF | |
10555 | rm -f conftest.$ac_objext | |
10556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10557 | (eval $ac_compile) 2>conftest.er1 | |
10558 | ac_status=$? | |
10559 | grep -v '^ *+' conftest.er1 >conftest.err | |
10560 | rm -f conftest.er1 | |
10561 | cat conftest.err >&5 | |
10562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10563 | (exit $ac_status); } && | |
59da30e1 | 10564 | { ac_try='test -z "$ac_c_werror_flag" |
10565 | || test ! -s conftest.err' | |
107c3bbf | 10566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10567 | (eval $ac_try) 2>&5 | |
10568 | ac_status=$? | |
10569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10570 | (exit $ac_status); }; } && | |
10571 | { ac_try='test -s conftest.$ac_objext' | |
10572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10573 | (eval $ac_try) 2>&5 | |
10574 | ac_status=$? | |
10575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10576 | (exit $ac_status); }; }; then | |
10577 | ac_hi=-1 ac_mid=-1 | |
10578 | while :; do | |
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. */ | |
10585 | ||
10586 | int | |
10587 | main () | |
10588 | { | |
10589 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)]; | |
10590 | test_array [0] = 0 | |
10591 | ||
10592 | ; | |
10593 | return 0; | |
10594 | } | |
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); } && | |
59da30e1 | 10605 | { ac_try='test -z "$ac_c_werror_flag" |
10606 | || test ! -s conftest.err' | |
107c3bbf | 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_lo=$ac_mid; break | |
10619 | else | |
10620 | echo "$as_me: failed program was:" >&5 | |
10621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10622 | ||
10623 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
10624 | if test $ac_mid -le $ac_hi; then | |
10625 | ac_lo= ac_hi= | |
10626 | break | |
10627 | fi | |
10628 | ac_mid=`expr 2 '*' $ac_mid` | |
10629 | fi | |
10630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10631 | done | |
10632 | else | |
10633 | echo "$as_me: failed program was:" >&5 | |
10634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10635 | ||
10636 | ac_lo= ac_hi= | |
10637 | fi | |
10638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10639 | fi | |
10640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10641 | # Binary search between lo and hi bounds. | |
10642 | while test "x$ac_lo" != "x$ac_hi"; do | |
10643 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
10644 | cat >conftest.$ac_ext <<_ACEOF | |
10645 | /* confdefs.h. */ | |
10646 | _ACEOF | |
10647 | cat confdefs.h >>conftest.$ac_ext | |
10648 | cat >>conftest.$ac_ext <<_ACEOF | |
10649 | /* end confdefs.h. */ | |
10650 | ||
10651 | int | |
10652 | main () | |
10653 | { | |
10654 | static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)]; | |
10655 | test_array [0] = 0 | |
10656 | ||
10657 | ; | |
10658 | return 0; | |
10659 | } | |
10660 | _ACEOF | |
10661 | rm -f conftest.$ac_objext | |
10662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10663 | (eval $ac_compile) 2>conftest.er1 | |
10664 | ac_status=$? | |
10665 | grep -v '^ *+' conftest.er1 >conftest.err | |
10666 | rm -f conftest.er1 | |
10667 | cat conftest.err >&5 | |
10668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10669 | (exit $ac_status); } && | |
59da30e1 | 10670 | { ac_try='test -z "$ac_c_werror_flag" |
10671 | || test ! -s conftest.err' | |
107c3bbf | 10672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10673 | (eval $ac_try) 2>&5 | |
10674 | ac_status=$? | |
10675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10676 | (exit $ac_status); }; } && | |
10677 | { ac_try='test -s conftest.$ac_objext' | |
10678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10679 | (eval $ac_try) 2>&5 | |
10680 | ac_status=$? | |
10681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10682 | (exit $ac_status); }; }; then | |
10683 | ac_hi=$ac_mid | |
10684 | else | |
10685 | echo "$as_me: failed program was:" >&5 | |
10686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10687 | ||
10688 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
10689 | fi | |
10690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10691 | done | |
10692 | case $ac_lo in | |
10693 | ?*) OMP_NEST_LOCK_SIZE=$ac_lo;; | |
10694 | '') ;; | |
10695 | esac | |
10696 | else | |
10697 | if test "$cross_compiling" = yes; then | |
59da30e1 | 10698 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
10699 | See \`config.log' for more details." >&5 | |
10700 | echo "$as_me: error: cannot run test program while cross compiling | |
10701 | See \`config.log' for more details." >&2;} | |
107c3bbf | 10702 | { (exit 1); exit 1; }; } |
10703 | else | |
10704 | cat >conftest.$ac_ext <<_ACEOF | |
10705 | /* confdefs.h. */ | |
10706 | _ACEOF | |
10707 | cat confdefs.h >>conftest.$ac_ext | |
10708 | cat >>conftest.$ac_ext <<_ACEOF | |
10709 | /* end confdefs.h. */ | |
10710 | ||
10711 | long longval () { return sizeof (omp_nest_lock_t); } | |
10712 | unsigned long ulongval () { return sizeof (omp_nest_lock_t); } | |
10713 | #include <stdio.h> | |
10714 | #include <stdlib.h> | |
10715 | int | |
10716 | main () | |
10717 | { | |
10718 | ||
10719 | FILE *f = fopen ("conftest.val", "w"); | |
10720 | if (! f) | |
10721 | exit (1); | |
10722 | if ((sizeof (omp_nest_lock_t)) < 0) | |
10723 | { | |
10724 | long i = longval (); | |
10725 | if (i != (sizeof (omp_nest_lock_t))) | |
10726 | exit (1); | |
10727 | fprintf (f, "%ld\n", i); | |
10728 | } | |
10729 | else | |
10730 | { | |
10731 | unsigned long i = ulongval (); | |
10732 | if (i != (sizeof (omp_nest_lock_t))) | |
10733 | exit (1); | |
10734 | fprintf (f, "%lu\n", i); | |
10735 | } | |
10736 | exit (ferror (f) || fclose (f) != 0); | |
10737 | ||
10738 | ; | |
10739 | return 0; | |
10740 | } | |
10741 | _ACEOF | |
10742 | rm -f conftest$ac_exeext | |
10743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10744 | (eval $ac_link) 2>&5 | |
10745 | ac_status=$? | |
10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10747 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
10748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10749 | (eval $ac_try) 2>&5 | |
10750 | ac_status=$? | |
10751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10752 | (exit $ac_status); }; }; then | |
10753 | OMP_NEST_LOCK_SIZE=`cat conftest.val` | |
10754 | else | |
10755 | echo "$as_me: program exited with status $ac_status" >&5 | |
10756 | echo "$as_me: failed program was:" >&5 | |
10757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10758 | ||
10759 | fi | |
10760 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
10761 | fi | |
10762 | fi | |
10763 | rm -f conftest.val | |
10764 | if test "$cross_compiling" = yes; then | |
10765 | # Depending upon the size, compute the lo and hi bounds. | |
10766 | cat >conftest.$ac_ext <<_ACEOF | |
10767 | /* confdefs.h. */ | |
10768 | _ACEOF | |
10769 | cat confdefs.h >>conftest.$ac_ext | |
10770 | cat >>conftest.$ac_ext <<_ACEOF | |
10771 | /* end confdefs.h. */ | |
10772 | ||
10773 | int | |
10774 | main () | |
10775 | { | |
10776 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)]; | |
10777 | test_array [0] = 0 | |
10778 | ||
10779 | ; | |
10780 | return 0; | |
10781 | } | |
10782 | _ACEOF | |
10783 | rm -f conftest.$ac_objext | |
10784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10785 | (eval $ac_compile) 2>conftest.er1 | |
10786 | ac_status=$? | |
10787 | grep -v '^ *+' conftest.er1 >conftest.err | |
10788 | rm -f conftest.er1 | |
10789 | cat conftest.err >&5 | |
10790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10791 | (exit $ac_status); } && | |
59da30e1 | 10792 | { ac_try='test -z "$ac_c_werror_flag" |
10793 | || test ! -s conftest.err' | |
107c3bbf | 10794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10795 | (eval $ac_try) 2>&5 | |
10796 | ac_status=$? | |
10797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10798 | (exit $ac_status); }; } && | |
10799 | { ac_try='test -s conftest.$ac_objext' | |
10800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10801 | (eval $ac_try) 2>&5 | |
10802 | ac_status=$? | |
10803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10804 | (exit $ac_status); }; }; then | |
10805 | ac_lo=0 ac_mid=0 | |
10806 | while :; do | |
10807 | cat >conftest.$ac_ext <<_ACEOF | |
10808 | /* confdefs.h. */ | |
10809 | _ACEOF | |
10810 | cat confdefs.h >>conftest.$ac_ext | |
10811 | cat >>conftest.$ac_ext <<_ACEOF | |
10812 | /* end confdefs.h. */ | |
10813 | ||
10814 | int | |
10815 | main () | |
10816 | { | |
10817 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)]; | |
10818 | test_array [0] = 0 | |
10819 | ||
10820 | ; | |
10821 | return 0; | |
10822 | } | |
10823 | _ACEOF | |
10824 | rm -f conftest.$ac_objext | |
10825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10826 | (eval $ac_compile) 2>conftest.er1 | |
10827 | ac_status=$? | |
10828 | grep -v '^ *+' conftest.er1 >conftest.err | |
10829 | rm -f conftest.er1 | |
10830 | cat conftest.err >&5 | |
10831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10832 | (exit $ac_status); } && | |
59da30e1 | 10833 | { ac_try='test -z "$ac_c_werror_flag" |
10834 | || test ! -s conftest.err' | |
107c3bbf | 10835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10836 | (eval $ac_try) 2>&5 | |
10837 | ac_status=$? | |
10838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10839 | (exit $ac_status); }; } && | |
10840 | { ac_try='test -s conftest.$ac_objext' | |
10841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10842 | (eval $ac_try) 2>&5 | |
10843 | ac_status=$? | |
10844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10845 | (exit $ac_status); }; }; then | |
10846 | ac_hi=$ac_mid; break | |
10847 | else | |
10848 | echo "$as_me: failed program was:" >&5 | |
10849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10850 | ||
10851 | ac_lo=`expr $ac_mid + 1` | |
10852 | if test $ac_lo -le $ac_mid; then | |
10853 | ac_lo= ac_hi= | |
10854 | break | |
10855 | fi | |
10856 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
10857 | fi | |
10858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10859 | done | |
10860 | else | |
10861 | echo "$as_me: failed program was:" >&5 | |
10862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10863 | ||
10864 | cat >conftest.$ac_ext <<_ACEOF | |
10865 | /* confdefs.h. */ | |
10866 | _ACEOF | |
10867 | cat confdefs.h >>conftest.$ac_ext | |
10868 | cat >>conftest.$ac_ext <<_ACEOF | |
10869 | /* end confdefs.h. */ | |
10870 | ||
10871 | int | |
10872 | main () | |
10873 | { | |
10874 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)]; | |
10875 | test_array [0] = 0 | |
10876 | ||
10877 | ; | |
10878 | return 0; | |
10879 | } | |
10880 | _ACEOF | |
10881 | rm -f conftest.$ac_objext | |
10882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10883 | (eval $ac_compile) 2>conftest.er1 | |
10884 | ac_status=$? | |
10885 | grep -v '^ *+' conftest.er1 >conftest.err | |
10886 | rm -f conftest.er1 | |
10887 | cat conftest.err >&5 | |
10888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10889 | (exit $ac_status); } && | |
59da30e1 | 10890 | { ac_try='test -z "$ac_c_werror_flag" |
10891 | || test ! -s conftest.err' | |
107c3bbf | 10892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10893 | (eval $ac_try) 2>&5 | |
10894 | ac_status=$? | |
10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10896 | (exit $ac_status); }; } && | |
10897 | { ac_try='test -s conftest.$ac_objext' | |
10898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10899 | (eval $ac_try) 2>&5 | |
10900 | ac_status=$? | |
10901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10902 | (exit $ac_status); }; }; then | |
10903 | ac_hi=-1 ac_mid=-1 | |
10904 | while :; do | |
10905 | cat >conftest.$ac_ext <<_ACEOF | |
10906 | /* confdefs.h. */ | |
10907 | _ACEOF | |
10908 | cat confdefs.h >>conftest.$ac_ext | |
10909 | cat >>conftest.$ac_ext <<_ACEOF | |
10910 | /* end confdefs.h. */ | |
10911 | ||
10912 | int | |
10913 | main () | |
10914 | { | |
10915 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)]; | |
10916 | test_array [0] = 0 | |
10917 | ||
10918 | ; | |
10919 | return 0; | |
10920 | } | |
10921 | _ACEOF | |
10922 | rm -f conftest.$ac_objext | |
10923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10924 | (eval $ac_compile) 2>conftest.er1 | |
10925 | ac_status=$? | |
10926 | grep -v '^ *+' conftest.er1 >conftest.err | |
10927 | rm -f conftest.er1 | |
10928 | cat conftest.err >&5 | |
10929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10930 | (exit $ac_status); } && | |
59da30e1 | 10931 | { ac_try='test -z "$ac_c_werror_flag" |
10932 | || test ! -s conftest.err' | |
107c3bbf | 10933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10934 | (eval $ac_try) 2>&5 | |
10935 | ac_status=$? | |
10936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10937 | (exit $ac_status); }; } && | |
10938 | { ac_try='test -s conftest.$ac_objext' | |
10939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10940 | (eval $ac_try) 2>&5 | |
10941 | ac_status=$? | |
10942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10943 | (exit $ac_status); }; }; then | |
10944 | ac_lo=$ac_mid; break | |
10945 | else | |
10946 | echo "$as_me: failed program was:" >&5 | |
10947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10948 | ||
10949 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
10950 | if test $ac_mid -le $ac_hi; then | |
10951 | ac_lo= ac_hi= | |
10952 | break | |
10953 | fi | |
10954 | ac_mid=`expr 2 '*' $ac_mid` | |
10955 | fi | |
10956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10957 | done | |
10958 | else | |
10959 | echo "$as_me: failed program was:" >&5 | |
10960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10961 | ||
10962 | ac_lo= ac_hi= | |
10963 | fi | |
10964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10965 | fi | |
10966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10967 | # Binary search between lo and hi bounds. | |
10968 | while test "x$ac_lo" != "x$ac_hi"; do | |
10969 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
10970 | cat >conftest.$ac_ext <<_ACEOF | |
10971 | /* confdefs.h. */ | |
10972 | _ACEOF | |
10973 | cat confdefs.h >>conftest.$ac_ext | |
10974 | cat >>conftest.$ac_ext <<_ACEOF | |
10975 | /* end confdefs.h. */ | |
10976 | ||
10977 | int | |
10978 | main () | |
10979 | { | |
10980 | static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)]; | |
10981 | test_array [0] = 0 | |
10982 | ||
10983 | ; | |
10984 | return 0; | |
10985 | } | |
10986 | _ACEOF | |
10987 | rm -f conftest.$ac_objext | |
10988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10989 | (eval $ac_compile) 2>conftest.er1 | |
10990 | ac_status=$? | |
10991 | grep -v '^ *+' conftest.er1 >conftest.err | |
10992 | rm -f conftest.er1 | |
10993 | cat conftest.err >&5 | |
10994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10995 | (exit $ac_status); } && | |
59da30e1 | 10996 | { ac_try='test -z "$ac_c_werror_flag" |
10997 | || test ! -s conftest.err' | |
107c3bbf | 10998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10999 | (eval $ac_try) 2>&5 | |
11000 | ac_status=$? | |
11001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11002 | (exit $ac_status); }; } && | |
11003 | { ac_try='test -s conftest.$ac_objext' | |
11004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11005 | (eval $ac_try) 2>&5 | |
11006 | ac_status=$? | |
11007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11008 | (exit $ac_status); }; }; then | |
11009 | ac_hi=$ac_mid | |
11010 | else | |
11011 | echo "$as_me: failed program was:" >&5 | |
11012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11013 | ||
11014 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
11015 | fi | |
11016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11017 | done | |
11018 | case $ac_lo in | |
11019 | ?*) OMP_NEST_LOCK_ALIGN=$ac_lo;; | |
11020 | '') ;; | |
11021 | esac | |
11022 | else | |
11023 | if test "$cross_compiling" = yes; then | |
59da30e1 | 11024 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
11025 | See \`config.log' for more details." >&5 | |
11026 | echo "$as_me: error: cannot run test program while cross compiling | |
11027 | See \`config.log' for more details." >&2;} | |
107c3bbf | 11028 | { (exit 1); exit 1; }; } |
11029 | else | |
11030 | cat >conftest.$ac_ext <<_ACEOF | |
11031 | /* confdefs.h. */ | |
11032 | _ACEOF | |
11033 | cat confdefs.h >>conftest.$ac_ext | |
11034 | cat >>conftest.$ac_ext <<_ACEOF | |
11035 | /* end confdefs.h. */ | |
11036 | ||
11037 | long longval () { return __alignof (omp_nest_lock_t); } | |
11038 | unsigned long ulongval () { return __alignof (omp_nest_lock_t); } | |
11039 | #include <stdio.h> | |
11040 | #include <stdlib.h> | |
11041 | int | |
11042 | main () | |
11043 | { | |
11044 | ||
11045 | FILE *f = fopen ("conftest.val", "w"); | |
11046 | if (! f) | |
11047 | exit (1); | |
11048 | if ((__alignof (omp_nest_lock_t)) < 0) | |
11049 | { | |
11050 | long i = longval (); | |
11051 | if (i != (__alignof (omp_nest_lock_t))) | |
11052 | exit (1); | |
11053 | fprintf (f, "%ld\n", i); | |
11054 | } | |
11055 | else | |
11056 | { | |
11057 | unsigned long i = ulongval (); | |
11058 | if (i != (__alignof (omp_nest_lock_t))) | |
11059 | exit (1); | |
11060 | fprintf (f, "%lu\n", i); | |
11061 | } | |
11062 | exit (ferror (f) || fclose (f) != 0); | |
11063 | ||
11064 | ; | |
11065 | return 0; | |
11066 | } | |
11067 | _ACEOF | |
11068 | rm -f conftest$ac_exeext | |
11069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11070 | (eval $ac_link) 2>&5 | |
11071 | ac_status=$? | |
11072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11073 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11075 | (eval $ac_try) 2>&5 | |
11076 | ac_status=$? | |
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11078 | (exit $ac_status); }; }; then | |
11079 | OMP_NEST_LOCK_ALIGN=`cat conftest.val` | |
11080 | else | |
11081 | echo "$as_me: program exited with status $ac_status" >&5 | |
11082 | echo "$as_me: failed program was:" >&5 | |
11083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11084 | ||
11085 | fi | |
11086 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11087 | fi | |
11088 | fi | |
11089 | rm -f conftest.val | |
11090 | ||
11091 | # If the lock fits in an integer, then arrange for Fortran to use that | |
11092 | # integer. If it doesn't, then arrange for Fortran to use a pointer. | |
11093 | # Except that we don't have a way at present to multi-lib the installed | |
11094 | # Fortran modules, so we assume 8 bytes for pointers, regardless of the | |
11095 | # actual target. | |
11096 | OMP_LOCK_KIND=$OMP_LOCK_SIZE | |
11097 | OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE | |
11098 | if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then | |
11099 | OMP_LOCK_KIND=8 | |
11100 | fi | |
11101 | if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then | |
11102 | OMP_NEST_LOCK_KIND=8 | |
11103 | fi | |
11104 | ||
11105 | ||
11106 | ||
11107 | ||
11108 | ||
11109 | ||
11110 | ||
11111 | CFLAGS="$save_CFLAGS" | |
11112 | ||
11113 | ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" | |
11114 | ||
1e8e9920 | 11115 | ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec" |
11116 | ||
11117 | cat >confcache <<\_ACEOF | |
11118 | # This file is a shell script that caches the results of configure | |
11119 | # tests run on this system so they can be shared between configure | |
11120 | # scripts and configure runs, see configure's option --config-cache. | |
11121 | # It is not useful on other systems. If it contains results you don't | |
11122 | # want to keep, you may remove or edit it. | |
11123 | # | |
11124 | # config.status only pays attention to the cache file if you give it | |
11125 | # the --recheck option to rerun configure. | |
11126 | # | |
11127 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11128 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11129 | # following values. | |
11130 | ||
11131 | _ACEOF | |
11132 | ||
11133 | # The following way of writing the cache mishandles newlines in values, | |
11134 | # but we know of no workaround that is simple, portable, and efficient. | |
11135 | # So, don't put newlines in cache variables' values. | |
11136 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11137 | # and sets the high bit in the cache file unless we assign to the vars. | |
11138 | { | |
11139 | (set) 2>&1 | | |
11140 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11141 | *ac_space=\ *) | |
11142 | # `set' does not quote correctly, so add quotes (double-quote | |
11143 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11144 | sed -n \ | |
11145 | "s/'/'\\\\''/g; | |
11146 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11147 | ;; | |
11148 | *) | |
11149 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11150 | sed -n \ | |
11151 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
11152 | ;; | |
11153 | esac; | |
11154 | } | | |
11155 | sed ' | |
11156 | t clear | |
11157 | : clear | |
11158 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11159 | t end | |
11160 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11161 | : end' >>confcache | |
11162 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11163 | if test -w $cache_file; then | |
11164 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11165 | cat confcache >$cache_file | |
11166 | else | |
11167 | echo "not updating unwritable cache $cache_file" | |
11168 | fi | |
11169 | fi | |
11170 | rm -f confcache | |
11171 | ||
11172 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11173 | # Let make expand exec_prefix. | |
11174 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11175 | ||
11176 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
11177 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
11178 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11179 | # (actually we leave an empty line to preserve line numbers). | |
11180 | if test "x$srcdir" = x.; then | |
11181 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
11182 | s/:*\$(srcdir):*/:/; | |
11183 | s/:*\${srcdir}:*/:/; | |
11184 | s/:*@srcdir@:*/:/; | |
11185 | s/^\([^=]*=[ ]*\):*/\1/; | |
11186 | s/:*$//; | |
11187 | s/^[^=]*=[ ]*$//; | |
11188 | }' | |
11189 | fi | |
11190 | ||
11191 | DEFS=-DHAVE_CONFIG_H | |
11192 | ||
11193 | ac_libobjs= | |
11194 | ac_ltlibobjs= | |
11195 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11196 | # 1. Remove the extension, and $U if already installed. | |
11197 | ac_i=`echo "$ac_i" | | |
11198 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
11199 | # 2. Add them. | |
11200 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
11201 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
11202 | done | |
11203 | LIBOBJS=$ac_libobjs | |
11204 | ||
11205 | LTLIBOBJS=$ac_ltlibobjs | |
11206 | ||
11207 | ||
aeda7a78 | 11208 | if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then |
11209 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined. | |
11210 | Usually this means the macro was only invoked conditionally." >&5 | |
11211 | echo "$as_me: error: conditional \"GENINSRC\" was never defined. | |
11212 | Usually this means the macro was only invoked conditionally." >&2;} | |
11213 | { (exit 1); exit 1; }; } | |
11214 | fi | |
1e8e9920 | 11215 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
11216 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
11217 | Usually this means the macro was only invoked conditionally." >&5 | |
11218 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
11219 | Usually this means the macro was only invoked conditionally." >&2;} | |
11220 | { (exit 1); exit 1; }; } | |
11221 | fi | |
11222 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
11223 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
11224 | Usually this means the macro was only invoked conditionally." >&5 | |
11225 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
11226 | Usually this means the macro was only invoked conditionally." >&2;} | |
11227 | { (exit 1); exit 1; }; } | |
11228 | fi | |
439d698f | 11229 | if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then |
11230 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined. | |
11231 | Usually this means the macro was only invoked conditionally." >&5 | |
11232 | echo "$as_me: error: conditional \"BUILD_INFO\" was never defined. | |
11233 | Usually this means the macro was only invoked conditionally." >&2;} | |
11234 | { (exit 1); exit 1; }; } | |
11235 | fi | |
a263d1ab | 11236 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
11237 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
11238 | Usually this means the macro was only invoked conditionally." >&5 | |
11239 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
11240 | Usually this means the macro was only invoked conditionally." >&2;} | |
11241 | { (exit 1); exit 1; }; } | |
11242 | fi | |
1e8e9920 | 11243 | if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then |
11244 | { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. | |
11245 | Usually this means the macro was only invoked conditionally." >&5 | |
11246 | echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. | |
11247 | Usually this means the macro was only invoked conditionally." >&2;} | |
11248 | { (exit 1); exit 1; }; } | |
11249 | fi | |
11250 | if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then | |
11251 | { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined. | |
11252 | Usually this means the macro was only invoked conditionally." >&5 | |
11253 | echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined. | |
11254 | Usually this means the macro was only invoked conditionally." >&2;} | |
11255 | { (exit 1); exit 1; }; } | |
11256 | fi | |
11257 | ||
11258 | : ${CONFIG_STATUS=./config.status} | |
11259 | ac_clean_files_save=$ac_clean_files | |
11260 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11261 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11262 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11263 | cat >$CONFIG_STATUS <<_ACEOF | |
11264 | #! $SHELL | |
11265 | # Generated by $as_me. | |
11266 | # Run this file to recreate the current configuration. | |
11267 | # Compiler output produced by configure, useful for debugging | |
11268 | # configure, is in config.log if it exists. | |
11269 | ||
11270 | debug=false | |
11271 | ac_cs_recheck=false | |
11272 | ac_cs_silent=false | |
11273 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11274 | _ACEOF | |
11275 | ||
11276 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11277 | ## --------------------- ## | |
11278 | ## M4sh Initialization. ## | |
11279 | ## --------------------- ## | |
11280 | ||
11281 | # Be Bourne compatible | |
11282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
11283 | emulate sh | |
11284 | NULLCMD=: | |
11285 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11286 | # is contrary to our usage. Disable this feature. | |
11287 | alias -g '${1+"$@"}'='"$@"' | |
11288 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
11289 | set -o posix | |
11290 | fi | |
11291 | DUALCASE=1; export DUALCASE # for MKS sh | |
11292 | ||
11293 | # Support unset when possible. | |
11294 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
11295 | as_unset=unset | |
11296 | else | |
11297 | as_unset=false | |
11298 | fi | |
11299 | ||
11300 | ||
11301 | # Work around bugs in pre-3.0 UWIN ksh. | |
11302 | $as_unset ENV MAIL MAILPATH | |
11303 | PS1='$ ' | |
11304 | PS2='> ' | |
11305 | PS4='+ ' | |
11306 | ||
11307 | # NLS nuisances. | |
11308 | for as_var in \ | |
11309 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11310 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11311 | LC_TELEPHONE LC_TIME | |
11312 | do | |
11313 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
11314 | eval $as_var=C; export $as_var | |
11315 | else | |
11316 | $as_unset $as_var | |
11317 | fi | |
11318 | done | |
11319 | ||
11320 | # Required to use basename. | |
11321 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11322 | as_expr=expr | |
11323 | else | |
11324 | as_expr=false | |
11325 | fi | |
11326 | ||
11327 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
11328 | as_basename=basename | |
11329 | else | |
11330 | as_basename=false | |
11331 | fi | |
11332 | ||
11333 | ||
11334 | # Name of the executable. | |
11335 | as_me=`$as_basename "$0" || | |
11336 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11337 | X"$0" : 'X\(//\)$' \| \ | |
11338 | X"$0" : 'X\(/\)$' \| \ | |
11339 | . : '\(.\)' 2>/dev/null || | |
11340 | echo X/"$0" | | |
11341 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
11342 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11343 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11344 | s/.*/./; q'` | |
11345 | ||
11346 | ||
11347 | # PATH needs CR, and LINENO needs CR and PATH. | |
11348 | # Avoid depending upon Character Ranges. | |
11349 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11350 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11351 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11352 | as_cr_digits='0123456789' | |
11353 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11354 | ||
11355 | # The user is always right. | |
11356 | if test "${PATH_SEPARATOR+set}" != set; then | |
11357 | echo "#! /bin/sh" >conf$$.sh | |
11358 | echo "exit 0" >>conf$$.sh | |
11359 | chmod +x conf$$.sh | |
11360 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11361 | PATH_SEPARATOR=';' | |
11362 | else | |
11363 | PATH_SEPARATOR=: | |
11364 | fi | |
11365 | rm -f conf$$.sh | |
11366 | fi | |
11367 | ||
11368 | ||
11369 | as_lineno_1=$LINENO | |
11370 | as_lineno_2=$LINENO | |
11371 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11372 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11373 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
11374 | # Find who we are. Look in the path if we contain no path at all | |
11375 | # relative or not. | |
11376 | case $0 in | |
11377 | *[\\/]* ) as_myself=$0 ;; | |
11378 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11379 | for as_dir in $PATH | |
11380 | do | |
11381 | IFS=$as_save_IFS | |
11382 | test -z "$as_dir" && as_dir=. | |
11383 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11384 | done | |
11385 | ||
11386 | ;; | |
11387 | esac | |
11388 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11389 | # in which case we are not to be found in the path. | |
11390 | if test "x$as_myself" = x; then | |
11391 | as_myself=$0 | |
11392 | fi | |
11393 | if test ! -f "$as_myself"; then | |
11394 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
11395 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
11396 | { (exit 1); exit 1; }; } | |
11397 | fi | |
11398 | case $CONFIG_SHELL in | |
11399 | '') | |
11400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11401 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
11402 | do | |
11403 | IFS=$as_save_IFS | |
11404 | test -z "$as_dir" && as_dir=. | |
11405 | for as_base in sh bash ksh sh5; do | |
11406 | case $as_dir in | |
11407 | /*) | |
11408 | if ("$as_dir/$as_base" -c ' | |
11409 | as_lineno_1=$LINENO | |
11410 | as_lineno_2=$LINENO | |
11411 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11412 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11413 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
11414 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
11415 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
11416 | CONFIG_SHELL=$as_dir/$as_base | |
11417 | export CONFIG_SHELL | |
11418 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
11419 | fi;; | |
11420 | esac | |
11421 | done | |
11422 | done | |
11423 | ;; | |
11424 | esac | |
11425 | ||
11426 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
11427 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11428 | # line-number line before each line; the second 'sed' does the real | |
11429 | # work. The second script uses 'N' to pair each line-number line | |
11430 | # with the numbered line, and appends trailing '-' during | |
11431 | # substitution so that $LINENO is not a special case at line end. | |
11432 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
11433 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
11434 | sed '=' <$as_myself | | |
11435 | sed ' | |
11436 | N | |
11437 | s,$,-, | |
11438 | : loop | |
11439 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
11440 | t loop | |
11441 | s,-$,, | |
11442 | s,^['$as_cr_digits']*\n,, | |
11443 | ' >$as_me.lineno && | |
11444 | chmod +x $as_me.lineno || | |
11445 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
11446 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
11447 | { (exit 1); exit 1; }; } | |
11448 | ||
11449 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11450 | # (the dirname of $[0] is not the place where we might find the | |
11451 | # original and so on. Autoconf is especially sensible to this). | |
11452 | . ./$as_me.lineno | |
11453 | # Exit status is that of the last command. | |
11454 | exit | |
11455 | } | |
11456 | ||
11457 | ||
11458 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
11459 | *c*,-n*) ECHO_N= ECHO_C=' | |
11460 | ' ECHO_T=' ' ;; | |
11461 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
11462 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
11463 | esac | |
11464 | ||
11465 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11466 | as_expr=expr | |
11467 | else | |
11468 | as_expr=false | |
11469 | fi | |
11470 | ||
11471 | rm -f conf$$ conf$$.exe conf$$.file | |
11472 | echo >conf$$.file | |
11473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11474 | # We could just check for DJGPP; but this test a) works b) is more generic | |
11475 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
11476 | if test -f conf$$.exe; then | |
11477 | # Don't use ln at all; we don't have any links | |
11478 | as_ln_s='cp -p' | |
11479 | else | |
11480 | as_ln_s='ln -s' | |
11481 | fi | |
11482 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
11483 | as_ln_s=ln | |
11484 | else | |
11485 | as_ln_s='cp -p' | |
11486 | fi | |
11487 | rm -f conf$$ conf$$.exe conf$$.file | |
11488 | ||
11489 | if mkdir -p . 2>/dev/null; then | |
11490 | as_mkdir_p=: | |
11491 | else | |
11492 | test -d ./-p && rmdir ./-p | |
11493 | as_mkdir_p=false | |
11494 | fi | |
11495 | ||
11496 | as_executable_p="test -f" | |
11497 | ||
11498 | # Sed expression to map a string onto a valid CPP name. | |
11499 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
11500 | ||
11501 | # Sed expression to map a string onto a valid variable name. | |
11502 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
11503 | ||
11504 | ||
11505 | # IFS | |
11506 | # We need space, tab and new line, in precisely that order. | |
11507 | as_nl=' | |
11508 | ' | |
11509 | IFS=" $as_nl" | |
11510 | ||
11511 | # CDPATH. | |
11512 | $as_unset CDPATH | |
11513 | ||
11514 | exec 6>&1 | |
11515 | ||
11516 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
11517 | # report actual input values of CONFIG_FILES etc. instead of their | |
11518 | # values after options handling. Logging --version etc. is OK. | |
11519 | exec 5>>config.log | |
11520 | { | |
11521 | echo | |
11522 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11523 | ## Running $as_me. ## | |
11524 | _ASBOX | |
11525 | } >&5 | |
11526 | cat >&5 <<_CSEOF | |
11527 | ||
11528 | This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was | |
11529 | generated by GNU Autoconf 2.59. Invocation command line was | |
11530 | ||
11531 | CONFIG_FILES = $CONFIG_FILES | |
11532 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11533 | CONFIG_LINKS = $CONFIG_LINKS | |
11534 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11535 | $ $0 $@ | |
11536 | ||
11537 | _CSEOF | |
11538 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
11539 | echo >&5 | |
11540 | _ACEOF | |
11541 | ||
11542 | # Files that config.status was made for. | |
11543 | if test -n "$ac_config_files"; then | |
11544 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
11545 | fi | |
11546 | ||
11547 | if test -n "$ac_config_headers"; then | |
11548 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
11549 | fi | |
11550 | ||
11551 | if test -n "$ac_config_links"; then | |
11552 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
11553 | fi | |
11554 | ||
11555 | if test -n "$ac_config_commands"; then | |
11556 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
11557 | fi | |
11558 | ||
11559 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11560 | ||
11561 | ac_cs_usage="\ | |
11562 | \`$as_me' instantiates files from templates according to the | |
11563 | current configuration. | |
11564 | ||
11565 | Usage: $0 [OPTIONS] [FILE]... | |
11566 | ||
11567 | -h, --help print this help, then exit | |
11568 | -V, --version print version number, then exit | |
11569 | -q, --quiet do not print progress messages | |
11570 | -d, --debug don't remove temporary files | |
11571 | --recheck update $as_me by reconfiguring in the same conditions | |
11572 | --file=FILE[:TEMPLATE] | |
11573 | instantiate the configuration file FILE | |
11574 | --header=FILE[:TEMPLATE] | |
11575 | instantiate the configuration header FILE | |
11576 | ||
11577 | Configuration files: | |
11578 | $config_files | |
11579 | ||
11580 | Configuration headers: | |
11581 | $config_headers | |
11582 | ||
11583 | Configuration commands: | |
11584 | $config_commands | |
11585 | ||
11586 | Report bugs to <bug-autoconf@gnu.org>." | |
11587 | _ACEOF | |
11588 | ||
11589 | cat >>$CONFIG_STATUS <<_ACEOF | |
11590 | ac_cs_version="\\ | |
11591 | GNU OpenMP Runtime Library config.status 1.0 | |
11592 | configured by $0, generated by GNU Autoconf 2.59, | |
11593 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
11594 | ||
11595 | Copyright (C) 2003 Free Software Foundation, Inc. | |
11596 | This config.status script is free software; the Free Software Foundation | |
11597 | gives unlimited permission to copy, distribute and modify it." | |
11598 | srcdir=$srcdir | |
11599 | INSTALL="$INSTALL" | |
11600 | _ACEOF | |
11601 | ||
11602 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11603 | # If no file are specified by the user, then we need to provide default | |
11604 | # value. By we need to know if files were specified by the user. | |
11605 | ac_need_defaults=: | |
11606 | while test $# != 0 | |
11607 | do | |
11608 | case $1 in | |
11609 | --*=*) | |
11610 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
11611 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
11612 | ac_shift=: | |
11613 | ;; | |
11614 | -*) | |
11615 | ac_option=$1 | |
11616 | ac_optarg=$2 | |
11617 | ac_shift=shift | |
11618 | ;; | |
11619 | *) # This is not an option, so the user has probably given explicit | |
11620 | # arguments. | |
11621 | ac_option=$1 | |
11622 | ac_need_defaults=false;; | |
11623 | esac | |
11624 | ||
11625 | case $ac_option in | |
11626 | # Handling of the options. | |
11627 | _ACEOF | |
11628 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11629 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11630 | ac_cs_recheck=: ;; | |
11631 | --version | --vers* | -V ) | |
11632 | echo "$ac_cs_version"; exit 0 ;; | |
11633 | --he | --h) | |
11634 | # Conflict between --help and --header | |
11635 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
11636 | Try \`$0 --help' for more information." >&5 | |
11637 | echo "$as_me: error: ambiguous option: $1 | |
11638 | Try \`$0 --help' for more information." >&2;} | |
11639 | { (exit 1); exit 1; }; };; | |
11640 | --help | --hel | -h ) | |
11641 | echo "$ac_cs_usage"; exit 0 ;; | |
11642 | --debug | --d* | -d ) | |
11643 | debug=: ;; | |
11644 | --file | --fil | --fi | --f ) | |
11645 | $ac_shift | |
11646 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11647 | ac_need_defaults=false;; | |
11648 | --header | --heade | --head | --hea ) | |
11649 | $ac_shift | |
11650 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11651 | ac_need_defaults=false;; | |
11652 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11653 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11654 | ac_cs_silent=: ;; | |
11655 | ||
11656 | # This is an error. | |
11657 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
11658 | Try \`$0 --help' for more information." >&5 | |
11659 | echo "$as_me: error: unrecognized option: $1 | |
11660 | Try \`$0 --help' for more information." >&2;} | |
11661 | { (exit 1); exit 1; }; } ;; | |
11662 | ||
11663 | *) ac_config_targets="$ac_config_targets $1" ;; | |
11664 | ||
11665 | esac | |
11666 | shift | |
11667 | done | |
11668 | ||
11669 | ac_configure_extra_args= | |
11670 | ||
11671 | if $ac_cs_silent; then | |
11672 | exec 6>/dev/null | |
11673 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11674 | fi | |
11675 | ||
11676 | _ACEOF | |
11677 | cat >>$CONFIG_STATUS <<_ACEOF | |
11678 | if \$ac_cs_recheck; then | |
11679 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
11680 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11681 | fi | |
11682 | ||
11683 | _ACEOF | |
11684 | ||
11685 | cat >>$CONFIG_STATUS <<_ACEOF | |
11686 | # | |
11687 | # INIT-COMMANDS section. | |
11688 | # | |
11689 | ||
11690 | ||
11691 | srcdir="$srcdir" | |
11692 | host="$host" | |
11693 | target="$target" | |
11694 | with_multisubdir="$with_multisubdir" | |
11695 | with_multisrctop="$with_multisrctop" | |
11696 | with_target_subdir="$with_target_subdir" | |
11697 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
11698 | multi_basedir="$multi_basedir" | |
11699 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
11700 | CC="$CC" | |
11701 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
11702 | ||
01473a49 | 11703 | GCC="$GCC" |
11704 | CC="$CC" | |
11705 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
11706 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
11707 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
11708 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
11709 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
11710 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
11711 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
11712 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
11713 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
11714 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
11715 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
11716 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
11717 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
11718 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
11719 | ||
11720 | ||
1e8e9920 | 11721 | _ACEOF |
11722 | ||
11723 | ||
11724 | ||
11725 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11726 | for ac_config_target in $ac_config_targets | |
11727 | do | |
11728 | case "$ac_config_target" in | |
11729 | # Handling of arguments. | |
107c3bbf | 11730 | "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;; |
11731 | "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; | |
11732 | "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; | |
11733 | "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; | |
1e8e9920 | 11734 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
11735 | "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
11736 | "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; | |
11737 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
11738 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
01473a49 | 11739 | "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; |
1e8e9920 | 11740 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
11741 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
11742 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11743 | { (exit 1); exit 1; }; };; | |
11744 | esac | |
11745 | done | |
11746 | ||
11747 | # If the user did not use the arguments to specify the items to instantiate, | |
11748 | # then the envvar interface is used. Set only those that are not. | |
11749 | # We use the long form for the default assignment because of an extremely | |
11750 | # bizarre bug on SunOS 4.1.3. | |
11751 | if $ac_need_defaults; then | |
11752 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11753 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
11754 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
11755 | fi | |
11756 | ||
11757 | # Have a temporary directory for convenience. Make it in the build tree | |
11758 | # simply because there is no reason to put it here, and in addition, | |
11759 | # creating and moving files from /tmp can sometimes cause problems. | |
11760 | # Create a temporary directory, and hook for its removal unless debugging. | |
11761 | $debug || | |
11762 | { | |
11763 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
11764 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
11765 | } | |
11766 | ||
11767 | # Create a (secure) tmp directory for tmp files. | |
11768 | ||
11769 | { | |
11770 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
11771 | test -n "$tmp" && test -d "$tmp" | |
11772 | } || | |
11773 | { | |
11774 | tmp=./confstat$$-$RANDOM | |
11775 | (umask 077 && mkdir $tmp) | |
11776 | } || | |
11777 | { | |
11778 | echo "$me: cannot create a temporary directory in ." >&2 | |
11779 | { (exit 1); exit 1; } | |
11780 | } | |
11781 | ||
11782 | _ACEOF | |
11783 | ||
11784 | cat >>$CONFIG_STATUS <<_ACEOF | |
11785 | ||
11786 | # | |
11787 | # CONFIG_FILES section. | |
11788 | # | |
11789 | ||
11790 | # No need to generate the scripts if there are no CONFIG_FILES. | |
11791 | # This happens for instance when ./config.status config.h | |
11792 | if test -n "\$CONFIG_FILES"; then | |
11793 | # Protect against being on the right side of a sed subst in config.status. | |
11794 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
11795 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
11796 | s,@SHELL@,$SHELL,;t t | |
11797 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
11798 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
11799 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
11800 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
11801 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
11802 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
11803 | s,@exec_prefix@,$exec_prefix,;t t | |
11804 | s,@prefix@,$prefix,;t t | |
11805 | s,@program_transform_name@,$program_transform_name,;t t | |
11806 | s,@bindir@,$bindir,;t t | |
11807 | s,@sbindir@,$sbindir,;t t | |
11808 | s,@libexecdir@,$libexecdir,;t t | |
11809 | s,@datadir@,$datadir,;t t | |
11810 | s,@sysconfdir@,$sysconfdir,;t t | |
11811 | s,@sharedstatedir@,$sharedstatedir,;t t | |
11812 | s,@localstatedir@,$localstatedir,;t t | |
11813 | s,@libdir@,$libdir,;t t | |
11814 | s,@includedir@,$includedir,;t t | |
11815 | s,@oldincludedir@,$oldincludedir,;t t | |
11816 | s,@infodir@,$infodir,;t t | |
11817 | s,@mandir@,$mandir,;t t | |
11818 | s,@build_alias@,$build_alias,;t t | |
11819 | s,@host_alias@,$host_alias,;t t | |
11820 | s,@target_alias@,$target_alias,;t t | |
11821 | s,@DEFS@,$DEFS,;t t | |
11822 | s,@ECHO_C@,$ECHO_C,;t t | |
11823 | s,@ECHO_N@,$ECHO_N,;t t | |
11824 | s,@ECHO_T@,$ECHO_T,;t t | |
11825 | s,@LIBS@,$LIBS,;t t | |
aeda7a78 | 11826 | s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t |
11827 | s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t | |
1e8e9920 | 11828 | s,@build@,$build,;t t |
11829 | s,@build_cpu@,$build_cpu,;t t | |
11830 | s,@build_vendor@,$build_vendor,;t t | |
11831 | s,@build_os@,$build_os,;t t | |
11832 | s,@host@,$host,;t t | |
11833 | s,@host_cpu@,$host_cpu,;t t | |
11834 | s,@host_vendor@,$host_vendor,;t t | |
11835 | s,@host_os@,$host_os,;t t | |
11836 | s,@target@,$target,;t t | |
11837 | s,@target_cpu@,$target_cpu,;t t | |
11838 | s,@target_vendor@,$target_vendor,;t t | |
11839 | s,@target_os@,$target_os,;t t | |
11840 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
11841 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
11842 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
11843 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
11844 | s,@PACKAGE@,$PACKAGE,;t t | |
11845 | s,@VERSION@,$VERSION,;t t | |
11846 | s,@ACLOCAL@,$ACLOCAL,;t t | |
11847 | s,@AUTOCONF@,$AUTOCONF,;t t | |
11848 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
11849 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
11850 | s,@MAKEINFO@,$MAKEINFO,;t t | |
11851 | s,@install_sh@,$install_sh,;t t | |
11852 | s,@STRIP@,$STRIP,;t t | |
11853 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
11854 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
11855 | s,@mkdir_p@,$mkdir_p,;t t | |
11856 | s,@AWK@,$AWK,;t t | |
11857 | s,@SET_MAKE@,$SET_MAKE,;t t | |
11858 | s,@am__leading_dot@,$am__leading_dot,;t t | |
11859 | s,@AMTAR@,$AMTAR,;t t | |
11860 | s,@am__tar@,$am__tar,;t t | |
11861 | s,@am__untar@,$am__untar,;t t | |
11862 | s,@multi_basedir@,$multi_basedir,;t t | |
11863 | s,@toolexecdir@,$toolexecdir,;t t | |
11864 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
11865 | s,@CC@,$CC,;t t | |
11866 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
11867 | s,@EXEEXT@,$EXEEXT,;t t | |
11868 | s,@OBJEXT@,$OBJEXT,;t t | |
11869 | s,@DEPDIR@,$DEPDIR,;t t | |
11870 | s,@am__include@,$am__include,;t t | |
11871 | s,@am__quote@,$am__quote,;t t | |
11872 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
11873 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
11874 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
11875 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
11876 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
11877 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
11878 | s,@CFLAGS@,$CFLAGS,;t t | |
11879 | s,@AR@,$AR,;t t | |
11880 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
11881 | s,@RANLIB@,$RANLIB,;t t | |
11882 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
11883 | s,@PERL@,$PERL,;t t | |
439d698f | 11884 | s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t |
11885 | s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t | |
1e8e9920 | 11886 | s,@LN_S@,$LN_S,;t t |
11887 | s,@LIBTOOL@,$LIBTOOL,;t t | |
11888 | s,@enable_shared@,$enable_shared,;t t | |
11889 | s,@enable_static@,$enable_static,;t t | |
a263d1ab | 11890 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
11891 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
11892 | s,@MAINT@,$MAINT,;t t | |
1e8e9920 | 11893 | s,@FC@,$FC,;t t |
11894 | s,@FCFLAGS@,$FCFLAGS,;t t | |
11895 | s,@LDFLAGS@,$LDFLAGS,;t t | |
11896 | s,@ac_ct_FC@,$ac_ct_FC,;t t | |
11897 | s,@libtool_VERSION@,$libtool_VERSION,;t t | |
11898 | s,@CPP@,$CPP,;t t | |
11899 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
11900 | s,@EGREP@,$EGREP,;t t | |
11901 | s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t | |
11902 | s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t | |
11903 | s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t | |
11904 | s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t | |
11905 | s,@config_path@,$config_path,;t t | |
11906 | s,@XCFLAGS@,$XCFLAGS,;t t | |
11907 | s,@XLDFLAGS@,$XLDFLAGS,;t t | |
11908 | s,@link_gomp@,$link_gomp,;t t | |
11909 | s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t | |
11910 | s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t | |
107c3bbf | 11911 | s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t |
11912 | s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t | |
11913 | s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t | |
11914 | s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t | |
11915 | s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t | |
11916 | s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t | |
1e8e9920 | 11917 | s,@LIBOBJS@,$LIBOBJS,;t t |
11918 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
11919 | CEOF | |
11920 | ||
11921 | _ACEOF | |
11922 | ||
11923 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11924 | # Split the substitutions into bite-sized pieces for seds with | |
11925 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
11926 | ac_max_sed_lines=48 | |
11927 | ac_sed_frag=1 # Number of current file. | |
11928 | ac_beg=1 # First line for current file. | |
11929 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
11930 | ac_more_lines=: | |
11931 | ac_sed_cmds= | |
11932 | while $ac_more_lines; do | |
11933 | if test $ac_beg -gt 1; then | |
11934 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11935 | else | |
11936 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11937 | fi | |
11938 | if test ! -s $tmp/subs.frag; then | |
11939 | ac_more_lines=false | |
11940 | else | |
11941 | # The purpose of the label and of the branching condition is to | |
11942 | # speed up the sed processing (if there are no `@' at all, there | |
11943 | # is no need to browse any of the substitutions). | |
11944 | # These are the two extra sed commands mentioned above. | |
11945 | (echo ':t | |
11946 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
11947 | if test -z "$ac_sed_cmds"; then | |
11948 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
11949 | else | |
11950 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
11951 | fi | |
11952 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
11953 | ac_beg=$ac_end | |
11954 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
11955 | fi | |
11956 | done | |
11957 | if test -z "$ac_sed_cmds"; then | |
11958 | ac_sed_cmds=cat | |
11959 | fi | |
11960 | fi # test -n "$CONFIG_FILES" | |
11961 | ||
11962 | _ACEOF | |
11963 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11964 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
11965 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
11966 | case $ac_file in | |
11967 | - | *:- | *:-:* ) # input from stdin | |
11968 | cat >$tmp/stdin | |
11969 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11970 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
11971 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11972 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
11973 | * ) ac_file_in=$ac_file.in ;; | |
11974 | esac | |
11975 | ||
11976 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
11977 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
11978 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11979 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11980 | X"$ac_file" : 'X\(//\)$' \| \ | |
11981 | X"$ac_file" : 'X\(/\)' \| \ | |
11982 | . : '\(.\)' 2>/dev/null || | |
11983 | echo X"$ac_file" | | |
11984 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11985 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11986 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11987 | /^X\(\/\).*/{ s//\1/; q; } | |
11988 | s/.*/./; q'` | |
11989 | { if $as_mkdir_p; then | |
11990 | mkdir -p "$ac_dir" | |
11991 | else | |
11992 | as_dir="$ac_dir" | |
11993 | as_dirs= | |
11994 | while test ! -d "$as_dir"; do | |
11995 | as_dirs="$as_dir $as_dirs" | |
11996 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11997 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11998 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11999 | X"$as_dir" : 'X\(//\)$' \| \ | |
12000 | X"$as_dir" : 'X\(/\)' \| \ | |
12001 | . : '\(.\)' 2>/dev/null || | |
12002 | echo X"$as_dir" | | |
12003 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12004 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12005 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12006 | /^X\(\/\).*/{ s//\1/; q; } | |
12007 | s/.*/./; q'` | |
12008 | done | |
12009 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12010 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12011 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12012 | { (exit 1); exit 1; }; }; } | |
12013 | ||
12014 | ac_builddir=. | |
12015 | ||
12016 | if test "$ac_dir" != .; then | |
12017 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
12018 | # A "../" for each directory in $ac_dir_suffix. | |
12019 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
12020 | else | |
12021 | ac_dir_suffix= ac_top_builddir= | |
12022 | fi | |
12023 | ||
12024 | case $srcdir in | |
12025 | .) # No --srcdir option. We are building in place. | |
12026 | ac_srcdir=. | |
12027 | if test -z "$ac_top_builddir"; then | |
12028 | ac_top_srcdir=. | |
12029 | else | |
12030 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
12031 | fi ;; | |
12032 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
12033 | ac_srcdir=$srcdir$ac_dir_suffix; | |
12034 | ac_top_srcdir=$srcdir ;; | |
12035 | *) # Relative path. | |
12036 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
12037 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
12038 | esac | |
12039 | ||
12040 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
12041 | # the directories may not exist. | |
12042 | case `pwd` in | |
12043 | .) ac_abs_builddir="$ac_dir";; | |
12044 | *) | |
12045 | case "$ac_dir" in | |
12046 | .) ac_abs_builddir=`pwd`;; | |
12047 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
12048 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
12049 | esac;; | |
12050 | esac | |
12051 | case $ac_abs_builddir in | |
12052 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12053 | *) | |
12054 | case ${ac_top_builddir}. in | |
12055 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
12056 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12057 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
12058 | esac;; | |
12059 | esac | |
12060 | case $ac_abs_builddir in | |
12061 | .) ac_abs_srcdir=$ac_srcdir;; | |
12062 | *) | |
12063 | case $ac_srcdir in | |
12064 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
12065 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
12066 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
12067 | esac;; | |
12068 | esac | |
12069 | case $ac_abs_builddir in | |
12070 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12071 | *) | |
12072 | case $ac_top_srcdir in | |
12073 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
12074 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12075 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
12076 | esac;; | |
12077 | esac | |
12078 | ||
12079 | ||
12080 | case $INSTALL in | |
12081 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
12082 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
12083 | esac | |
12084 | ||
59da30e1 | 12085 | if test x"$ac_file" != x-; then |
12086 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12087 | echo "$as_me: creating $ac_file" >&6;} | |
12088 | rm -f "$ac_file" | |
12089 | fi | |
1e8e9920 | 12090 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
12091 | # use $as_me), people would be surprised to read: | |
12092 | # /* config.h. Generated by config.status. */ | |
12093 | if test x"$ac_file" = x-; then | |
12094 | configure_input= | |
12095 | else | |
12096 | configure_input="$ac_file. " | |
12097 | fi | |
12098 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
12099 | sed 's,.*/,,'` by configure." | |
12100 | ||
12101 | # First look for the input files in the build tree, otherwise in the | |
12102 | # src tree. | |
12103 | ac_file_inputs=`IFS=: | |
12104 | for f in $ac_file_in; do | |
12105 | case $f in | |
12106 | -) echo $tmp/stdin ;; | |
12107 | [\\/$]*) | |
12108 | # Absolute (can't be DOS-style, as IFS=:) | |
12109 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12110 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12111 | { (exit 1); exit 1; }; } | |
12112 | echo "$f";; | |
12113 | *) # Relative | |
12114 | if test -f "$f"; then | |
12115 | # Build tree | |
12116 | echo "$f" | |
12117 | elif test -f "$srcdir/$f"; then | |
12118 | # Source tree | |
12119 | echo "$srcdir/$f" | |
12120 | else | |
12121 | # /dev/null tree | |
12122 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12123 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12124 | { (exit 1); exit 1; }; } | |
12125 | fi;; | |
12126 | esac | |
12127 | done` || { (exit 1); exit 1; } | |
12128 | _ACEOF | |
12129 | cat >>$CONFIG_STATUS <<_ACEOF | |
12130 | sed "$ac_vpsub | |
12131 | $extrasub | |
12132 | _ACEOF | |
12133 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12134 | :t | |
12135 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12136 | s,@configure_input@,$configure_input,;t t | |
12137 | s,@srcdir@,$ac_srcdir,;t t | |
12138 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
12139 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
12140 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
12141 | s,@builddir@,$ac_builddir,;t t | |
12142 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
12143 | s,@top_builddir@,$ac_top_builddir,;t t | |
12144 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
12145 | s,@INSTALL@,$ac_INSTALL,;t t | |
12146 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
12147 | rm -f $tmp/stdin | |
12148 | if test x"$ac_file" != x-; then | |
12149 | mv $tmp/out $ac_file | |
12150 | else | |
12151 | cat $tmp/out | |
12152 | rm -f $tmp/out | |
12153 | fi | |
12154 | ||
12155 | done | |
12156 | _ACEOF | |
12157 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12158 | ||
12159 | # | |
12160 | # CONFIG_HEADER section. | |
12161 | # | |
12162 | ||
12163 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
12164 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
12165 | # | |
12166 | # ac_d sets the value in "#define NAME VALUE" lines. | |
12167 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
12168 | ac_dB='[ ].*$,\1#\2' | |
12169 | ac_dC=' ' | |
12170 | ac_dD=',;t' | |
12171 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
12172 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12173 | ac_uB='$,\1#\2define\3' | |
12174 | ac_uC=' ' | |
12175 | ac_uD=',;t' | |
12176 | ||
12177 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
12178 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12179 | case $ac_file in | |
12180 | - | *:- | *:-:* ) # input from stdin | |
12181 | cat >$tmp/stdin | |
12182 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12183 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12184 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12185 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12186 | * ) ac_file_in=$ac_file.in ;; | |
12187 | esac | |
12188 | ||
12189 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12190 | echo "$as_me: creating $ac_file" >&6;} | |
12191 | ||
12192 | # First look for the input files in the build tree, otherwise in the | |
12193 | # src tree. | |
12194 | ac_file_inputs=`IFS=: | |
12195 | for f in $ac_file_in; do | |
12196 | case $f in | |
12197 | -) echo $tmp/stdin ;; | |
12198 | [\\/$]*) | |
12199 | # Absolute (can't be DOS-style, as IFS=:) | |
12200 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12201 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12202 | { (exit 1); exit 1; }; } | |
12203 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
12204 | echo "$f";; | |
12205 | *) # Relative | |
12206 | if test -f "$f"; then | |
12207 | # Build tree | |
12208 | echo "$f" | |
12209 | elif test -f "$srcdir/$f"; then | |
12210 | # Source tree | |
12211 | echo "$srcdir/$f" | |
12212 | else | |
12213 | # /dev/null tree | |
12214 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12215 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12216 | { (exit 1); exit 1; }; } | |
12217 | fi;; | |
12218 | esac | |
12219 | done` || { (exit 1); exit 1; } | |
12220 | # Remove the trailing spaces. | |
12221 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
12222 | ||
12223 | _ACEOF | |
12224 | ||
12225 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
12226 | # `conftest.undefs', that substitutes the proper values into | |
12227 | # config.h.in to produce config.h. The first handles `#define' | |
12228 | # templates, and the second `#undef' templates. | |
12229 | # And first: Protect against being on the right side of a sed subst in | |
12230 | # config.status. Protect against being in an unquoted here document | |
12231 | # in config.status. | |
12232 | rm -f conftest.defines conftest.undefs | |
12233 | # Using a here document instead of a string reduces the quoting nightmare. | |
12234 | # Putting comments in sed scripts is not portable. | |
12235 | # | |
12236 | # `end' is used to avoid that the second main sed command (meant for | |
12237 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
12238 | # See the Autoconf documentation for `clear'. | |
12239 | cat >confdef2sed.sed <<\_ACEOF | |
12240 | s/[\\&,]/\\&/g | |
12241 | s,[\\$`],\\&,g | |
12242 | t clear | |
12243 | : clear | |
12244 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
12245 | t end | |
12246 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
12247 | : end | |
12248 | _ACEOF | |
12249 | # If some macros were called several times there might be several times | |
12250 | # the same #defines, which is useless. Nevertheless, we may not want to | |
12251 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
12252 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
12253 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
12254 | rm -f confdef2sed.sed | |
12255 | ||
12256 | # This sed command replaces #undef with comments. This is necessary, for | |
12257 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12258 | # on some systems where configure will not decide to define it. | |
12259 | cat >>conftest.undefs <<\_ACEOF | |
12260 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
12261 | _ACEOF | |
12262 | ||
12263 | # Break up conftest.defines because some shells have a limit on the size | |
12264 | # of here documents, and old seds have small limits too (100 cmds). | |
12265 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
12266 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
12267 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
12268 | echo ' :' >>$CONFIG_STATUS | |
12269 | rm -f conftest.tail | |
12270 | while grep . conftest.defines >/dev/null | |
12271 | do | |
12272 | # Write a limited-size here document to $tmp/defines.sed. | |
12273 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
12274 | # Speed up: don't consider the non `#define' lines. | |
12275 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
12276 | # Work around the forget-to-reset-the-flag bug. | |
12277 | echo 't clr' >>$CONFIG_STATUS | |
12278 | echo ': clr' >>$CONFIG_STATUS | |
12279 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
12280 | echo 'CEOF | |
12281 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
12282 | rm -f $tmp/in | |
12283 | mv $tmp/out $tmp/in | |
12284 | ' >>$CONFIG_STATUS | |
12285 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
12286 | rm -f conftest.defines | |
12287 | mv conftest.tail conftest.defines | |
12288 | done | |
12289 | rm -f conftest.defines | |
12290 | echo ' fi # grep' >>$CONFIG_STATUS | |
12291 | echo >>$CONFIG_STATUS | |
12292 | ||
12293 | # Break up conftest.undefs because some shells have a limit on the size | |
12294 | # of here documents, and old seds have small limits too (100 cmds). | |
12295 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
12296 | rm -f conftest.tail | |
12297 | while grep . conftest.undefs >/dev/null | |
12298 | do | |
12299 | # Write a limited-size here document to $tmp/undefs.sed. | |
12300 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
12301 | # Speed up: don't consider the non `#undef' | |
12302 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
12303 | # Work around the forget-to-reset-the-flag bug. | |
12304 | echo 't clr' >>$CONFIG_STATUS | |
12305 | echo ': clr' >>$CONFIG_STATUS | |
12306 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
12307 | echo 'CEOF | |
12308 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
12309 | rm -f $tmp/in | |
12310 | mv $tmp/out $tmp/in | |
12311 | ' >>$CONFIG_STATUS | |
12312 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
12313 | rm -f conftest.undefs | |
12314 | mv conftest.tail conftest.undefs | |
12315 | done | |
12316 | rm -f conftest.undefs | |
12317 | ||
12318 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12319 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12320 | # use $as_me), people would be surprised to read: | |
12321 | # /* config.h. Generated by config.status. */ | |
12322 | if test x"$ac_file" = x-; then | |
12323 | echo "/* Generated by configure. */" >$tmp/config.h | |
12324 | else | |
12325 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
12326 | fi | |
12327 | cat $tmp/in >>$tmp/config.h | |
12328 | rm -f $tmp/in | |
12329 | if test x"$ac_file" != x-; then | |
12330 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
12331 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
12332 | echo "$as_me: $ac_file is unchanged" >&6;} | |
12333 | else | |
12334 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
12335 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12336 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12337 | X"$ac_file" : 'X\(//\)$' \| \ | |
12338 | X"$ac_file" : 'X\(/\)' \| \ | |
12339 | . : '\(.\)' 2>/dev/null || | |
12340 | echo X"$ac_file" | | |
12341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12342 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12343 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12344 | /^X\(\/\).*/{ s//\1/; q; } | |
12345 | s/.*/./; q'` | |
12346 | { if $as_mkdir_p; then | |
12347 | mkdir -p "$ac_dir" | |
12348 | else | |
12349 | as_dir="$ac_dir" | |
12350 | as_dirs= | |
12351 | while test ! -d "$as_dir"; do | |
12352 | as_dirs="$as_dir $as_dirs" | |
12353 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12354 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12355 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12356 | X"$as_dir" : 'X\(//\)$' \| \ | |
12357 | X"$as_dir" : 'X\(/\)' \| \ | |
12358 | . : '\(.\)' 2>/dev/null || | |
12359 | echo X"$as_dir" | | |
12360 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12361 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12362 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12363 | /^X\(\/\).*/{ s//\1/; q; } | |
12364 | s/.*/./; q'` | |
12365 | done | |
12366 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12367 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12368 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12369 | { (exit 1); exit 1; }; }; } | |
12370 | ||
12371 | rm -f $ac_file | |
12372 | mv $tmp/config.h $ac_file | |
12373 | fi | |
12374 | else | |
12375 | cat $tmp/config.h | |
12376 | rm -f $tmp/config.h | |
12377 | fi | |
12378 | # Compute $ac_file's index in $config_headers. | |
12379 | _am_stamp_count=1 | |
12380 | for _am_header in $config_headers :; do | |
12381 | case $_am_header in | |
12382 | $ac_file | $ac_file:* ) | |
12383 | break ;; | |
12384 | * ) | |
12385 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
12386 | esac | |
12387 | done | |
12388 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
12389 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12390 | X$ac_file : 'X\(//\)[^/]' \| \ | |
12391 | X$ac_file : 'X\(//\)$' \| \ | |
12392 | X$ac_file : 'X\(/\)' \| \ | |
12393 | . : '\(.\)' 2>/dev/null || | |
12394 | echo X$ac_file | | |
12395 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12396 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12397 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12398 | /^X\(\/\).*/{ s//\1/; q; } | |
12399 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
12400 | done | |
12401 | _ACEOF | |
12402 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12403 | ||
12404 | # | |
12405 | # CONFIG_COMMANDS section. | |
12406 | # | |
12407 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
12408 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
12409 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12410 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
12411 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12412 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
12413 | X"$ac_dest" : 'X\(//\)$' \| \ | |
12414 | X"$ac_dest" : 'X\(/\)' \| \ | |
12415 | . : '\(.\)' 2>/dev/null || | |
12416 | echo X"$ac_dest" | | |
12417 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12418 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12419 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12420 | /^X\(\/\).*/{ s//\1/; q; } | |
12421 | s/.*/./; q'` | |
12422 | { if $as_mkdir_p; then | |
12423 | mkdir -p "$ac_dir" | |
12424 | else | |
12425 | as_dir="$ac_dir" | |
12426 | as_dirs= | |
12427 | while test ! -d "$as_dir"; do | |
12428 | as_dirs="$as_dir $as_dirs" | |
12429 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12430 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12431 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12432 | X"$as_dir" : 'X\(//\)$' \| \ | |
12433 | X"$as_dir" : 'X\(/\)' \| \ | |
12434 | . : '\(.\)' 2>/dev/null || | |
12435 | echo X"$as_dir" | | |
12436 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12437 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12438 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12439 | /^X\(\/\).*/{ s//\1/; q; } | |
12440 | s/.*/./; q'` | |
12441 | done | |
12442 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12443 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12444 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12445 | { (exit 1); exit 1; }; }; } | |
12446 | ||
12447 | ac_builddir=. | |
12448 | ||
12449 | if test "$ac_dir" != .; then | |
12450 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
12451 | # A "../" for each directory in $ac_dir_suffix. | |
12452 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
12453 | else | |
12454 | ac_dir_suffix= ac_top_builddir= | |
12455 | fi | |
12456 | ||
12457 | case $srcdir in | |
12458 | .) # No --srcdir option. We are building in place. | |
12459 | ac_srcdir=. | |
12460 | if test -z "$ac_top_builddir"; then | |
12461 | ac_top_srcdir=. | |
12462 | else | |
12463 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
12464 | fi ;; | |
12465 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
12466 | ac_srcdir=$srcdir$ac_dir_suffix; | |
12467 | ac_top_srcdir=$srcdir ;; | |
12468 | *) # Relative path. | |
12469 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
12470 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
12471 | esac | |
12472 | ||
12473 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
12474 | # the directories may not exist. | |
12475 | case `pwd` in | |
12476 | .) ac_abs_builddir="$ac_dir";; | |
12477 | *) | |
12478 | case "$ac_dir" in | |
12479 | .) ac_abs_builddir=`pwd`;; | |
12480 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
12481 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
12482 | esac;; | |
12483 | esac | |
12484 | case $ac_abs_builddir in | |
12485 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12486 | *) | |
12487 | case ${ac_top_builddir}. in | |
12488 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
12489 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12490 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
12491 | esac;; | |
12492 | esac | |
12493 | case $ac_abs_builddir in | |
12494 | .) ac_abs_srcdir=$ac_srcdir;; | |
12495 | *) | |
12496 | case $ac_srcdir in | |
12497 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
12498 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
12499 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
12500 | esac;; | |
12501 | esac | |
12502 | case $ac_abs_builddir in | |
12503 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12504 | *) | |
12505 | case $ac_top_srcdir in | |
12506 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
12507 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12508 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
12509 | esac;; | |
12510 | esac | |
12511 | ||
12512 | ||
12513 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
12514 | echo "$as_me: executing $ac_dest commands" >&6;} | |
12515 | case $ac_dest in | |
12516 | default-1 ) | |
12517 | # Only add multilib support code if we just rebuilt the top-level | |
12518 | # Makefile. | |
12519 | case " $CONFIG_FILES " in | |
12520 | *" Makefile "*) | |
12521 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
12522 | ;; | |
12523 | esac ;; | |
12524 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
12525 | # Strip MF so we end up with the name of the file. | |
12526 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
12527 | # Check whether this is an Automake generated Makefile or not. | |
12528 | # We used to match only the files named `Makefile.in', but | |
12529 | # some people rename them; so instead we look at the file content. | |
12530 | # Grep'ing the first line is not enough: some people post-process | |
12531 | # each Makefile.in and add a new line on top of each file to say so. | |
12532 | # So let's grep whole file. | |
12533 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
12534 | dirpart=`(dirname "$mf") 2>/dev/null || | |
12535 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12536 | X"$mf" : 'X\(//\)[^/]' \| \ | |
12537 | X"$mf" : 'X\(//\)$' \| \ | |
12538 | X"$mf" : 'X\(/\)' \| \ | |
12539 | . : '\(.\)' 2>/dev/null || | |
12540 | echo X"$mf" | | |
12541 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12542 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12543 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12544 | /^X\(\/\).*/{ s//\1/; q; } | |
12545 | s/.*/./; q'` | |
12546 | else | |
12547 | continue | |
12548 | fi | |
12549 | # Extract the definition of DEPDIR, am__include, and am__quote | |
12550 | # from the Makefile without running `make'. | |
12551 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
12552 | test -z "$DEPDIR" && continue | |
12553 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
12554 | test -z "am__include" && continue | |
12555 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
12556 | # When using ansi2knr, U may be empty or an underscore; expand it | |
12557 | U=`sed -n 's/^U = //p' < "$mf"` | |
12558 | # Find all dependency output files, they are included files with | |
12559 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
12560 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
12561 | # expansion. | |
12562 | for file in `sed -n " | |
12563 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
12564 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
12565 | # Make sure the directory exists. | |
12566 | test -f "$dirpart/$file" && continue | |
12567 | fdir=`(dirname "$file") 2>/dev/null || | |
12568 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12569 | X"$file" : 'X\(//\)[^/]' \| \ | |
12570 | X"$file" : 'X\(//\)$' \| \ | |
12571 | X"$file" : 'X\(/\)' \| \ | |
12572 | . : '\(.\)' 2>/dev/null || | |
12573 | echo X"$file" | | |
12574 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12575 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12576 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12577 | /^X\(\/\).*/{ s//\1/; q; } | |
12578 | s/.*/./; q'` | |
12579 | { if $as_mkdir_p; then | |
12580 | mkdir -p $dirpart/$fdir | |
12581 | else | |
12582 | as_dir=$dirpart/$fdir | |
12583 | as_dirs= | |
12584 | while test ! -d "$as_dir"; do | |
12585 | as_dirs="$as_dir $as_dirs" | |
12586 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12587 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12588 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12589 | X"$as_dir" : 'X\(//\)$' \| \ | |
12590 | X"$as_dir" : 'X\(/\)' \| \ | |
12591 | . : '\(.\)' 2>/dev/null || | |
12592 | echo X"$as_dir" | | |
12593 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12594 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12595 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12596 | /^X\(\/\).*/{ s//\1/; q; } | |
12597 | s/.*/./; q'` | |
12598 | done | |
12599 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12600 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
12601 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
12602 | { (exit 1); exit 1; }; }; } | |
12603 | ||
12604 | # echo "creating $dirpart/$file" | |
12605 | echo '# dummy' > "$dirpart/$file" | |
12606 | done | |
12607 | done | |
01473a49 | 12608 | ;; |
12609 | gstdint.h ) | |
12610 | if test "$GCC" = yes; then | |
12611 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
12612 | else | |
12613 | echo "/* generated for $CC */" > tmp-stdint.h | |
12614 | fi | |
12615 | ||
12616 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12617 | ||
12618 | #ifndef GCC_GENERATED_STDINT_H | |
12619 | #define GCC_GENERATED_STDINT_H 1 | |
12620 | ||
12621 | #include <sys/types.h> | |
12622 | EOF | |
12623 | ||
12624 | if test "$acx_cv_header_stdint" != stdint.h; then | |
12625 | echo "#include <stddef.h>" >> tmp-stdint.h | |
12626 | fi | |
12627 | if test "$acx_cv_header_stdint" != stddef.h; then | |
12628 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
12629 | fi | |
12630 | ||
12631 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12632 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
12633 | #ifdef __int8_t_defined | |
12634 | #define _INT8_T | |
12635 | #define _INT16_T | |
12636 | #define _INT32_T | |
12637 | #endif | |
12638 | #ifdef __uint32_t_defined | |
12639 | #define _UINT32_T | |
12640 | #endif | |
12641 | ||
12642 | EOF | |
12643 | ||
12644 | # ----------------- done header, emit basic int types ------------- | |
12645 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12646 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12647 | ||
12648 | #ifndef _UINT8_T | |
12649 | #define _UINT8_T | |
12650 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
12651 | #endif | |
12652 | ||
12653 | #ifndef _UINT16_T | |
12654 | #define _UINT16_T | |
12655 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
12656 | #endif | |
12657 | ||
12658 | #ifndef _UINT32_T | |
12659 | #define _UINT32_T | |
12660 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
12661 | #endif | |
12662 | ||
12663 | #ifndef _INT8_T | |
12664 | #define _INT8_T | |
12665 | typedef $acx_cv_type_int8_t int8_t; | |
12666 | #endif | |
12667 | ||
12668 | #ifndef _INT16_T | |
12669 | #define _INT16_T | |
12670 | typedef $acx_cv_type_int16_t int16_t; | |
12671 | #endif | |
12672 | ||
12673 | #ifndef _INT32_T | |
12674 | #define _INT32_T | |
12675 | typedef $acx_cv_type_int32_t int32_t; | |
12676 | #endif | |
12677 | EOF | |
12678 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
12679 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12680 | ||
12681 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
12682 | #ifndef _INT8_T | |
12683 | #define _INT8_T | |
12684 | #endif | |
12685 | #ifndef _INT16_T | |
12686 | #define _INT16_T | |
12687 | #endif | |
12688 | #ifndef _INT32_T | |
12689 | #define _INT32_T | |
12690 | #endif | |
12691 | ||
12692 | #ifndef _UINT8_T | |
12693 | #define _UINT8_T | |
12694 | typedef u_int8_t uint8_t; | |
12695 | #endif | |
12696 | ||
12697 | #ifndef _UINT16_T | |
12698 | #define _UINT16_T | |
12699 | typedef u_int16_t uint16_t; | |
12700 | #endif | |
12701 | ||
12702 | #ifndef _UINT32_T | |
12703 | #define _UINT32_T | |
12704 | typedef u_int32_t uint32_t; | |
12705 | #endif | |
12706 | EOF | |
12707 | else | |
12708 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12709 | ||
12710 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
12711 | #ifndef _INT8_T | |
12712 | #define _INT8_T | |
12713 | #endif | |
12714 | #ifndef _INT16_T | |
12715 | #define _INT16_T | |
12716 | #endif | |
12717 | #ifndef _INT32_T | |
12718 | #define _INT32_T | |
12719 | #endif | |
12720 | #ifndef _UINT8_T | |
12721 | #define _UINT8_T | |
12722 | #endif | |
12723 | #ifndef _UINT16_T | |
12724 | #define _UINT16_T | |
12725 | #endif | |
12726 | #ifndef _UINT32_T | |
12727 | #define _UINT32_T | |
12728 | #endif | |
12729 | EOF | |
12730 | fi | |
12731 | ||
12732 | # ------------- done basic int types, emit int64_t types ------------ | |
12733 | if test "$ac_cv_type_uint64_t" = yes; then | |
12734 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12735 | ||
12736 | /* system headers have good uint64_t and int64_t */ | |
12737 | #ifndef _INT64_T | |
12738 | #define _INT64_T | |
12739 | #endif | |
12740 | #ifndef _UINT64_T | |
12741 | #define _UINT64_T | |
12742 | #endif | |
12743 | EOF | |
12744 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
12745 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12746 | ||
12747 | /* system headers have an u_int64_t (and int64_t) */ | |
12748 | #ifndef _INT64_T | |
12749 | #define _INT64_T | |
12750 | #endif | |
12751 | #ifndef _UINT64_T | |
12752 | #define _UINT64_T | |
12753 | typedef u_int64_t uint64_t; | |
12754 | #endif | |
12755 | EOF | |
12756 | elif test -n "$acx_cv_type_int64_t"; then | |
12757 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12758 | ||
12759 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
12760 | #ifndef _INT64_T | |
12761 | #define _INT64_T | |
12762 | typedef $acx_cv_type_int64_t int64_t; | |
12763 | #endif | |
12764 | #ifndef _UINT64_T | |
12765 | #define _UINT64_T | |
12766 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
12767 | #endif | |
12768 | EOF | |
12769 | else | |
12770 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12771 | ||
12772 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
12773 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
12774 | #ifndef _INT64_T | |
12775 | #define _INT64_T | |
12776 | typedef long long int64_t; | |
12777 | #endif | |
12778 | #ifndef _UINT64_T | |
12779 | #define _UINT64_T | |
12780 | typedef unsigned long long uint64_t; | |
12781 | #endif | |
12782 | ||
12783 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
12784 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
12785 | does not implement __extension__. But that compiler doesn't define | |
12786 | __GNUC_MINOR__. */ | |
12787 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
12788 | # define __extension__ | |
12789 | # endif | |
12790 | ||
12791 | # ifndef _INT64_T | |
12792 | # define _INT64_T | |
12793 | __extension__ typedef long long int64_t; | |
12794 | # endif | |
12795 | # ifndef _UINT64_T | |
12796 | # define _UINT64_T | |
12797 | __extension__ typedef unsigned long long uint64_t; | |
12798 | # endif | |
12799 | ||
12800 | #elif !defined __STRICT_ANSI__ | |
12801 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
12802 | ||
12803 | # ifndef _INT64_T | |
12804 | # define _INT64_T | |
12805 | typedef __int64 int64_t; | |
12806 | # endif | |
12807 | # ifndef _UINT64_T | |
12808 | # define _UINT64_T | |
12809 | typedef unsigned __int64 uint64_t; | |
12810 | # endif | |
12811 | # endif /* compiler */ | |
12812 | ||
12813 | #endif /* ANSI version */ | |
12814 | EOF | |
12815 | fi | |
12816 | ||
12817 | # ------------- done int64_t types, emit intptr types ------------ | |
12818 | if test "$ac_cv_type_uintptr_t" != yes; then | |
12819 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12820 | ||
12821 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
12822 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
12823 | typedef $acx_cv_type_intptr_t intptr_t; | |
12824 | EOF | |
12825 | fi | |
12826 | ||
12827 | # ------------- done intptr types, emit int_least types ------------ | |
12828 | if test "$ac_cv_type_int_least32_t" != yes; then | |
12829 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12830 | ||
12831 | /* Define int_least types */ | |
12832 | typedef int8_t int_least8_t; | |
12833 | typedef int16_t int_least16_t; | |
12834 | typedef int32_t int_least32_t; | |
12835 | #ifdef _INT64_T | |
12836 | typedef int64_t int_least64_t; | |
12837 | #endif | |
12838 | ||
12839 | typedef uint8_t uint_least8_t; | |
12840 | typedef uint16_t uint_least16_t; | |
12841 | typedef uint32_t uint_least32_t; | |
12842 | #ifdef _UINT64_T | |
12843 | typedef uint64_t uint_least64_t; | |
12844 | #endif | |
12845 | EOF | |
12846 | fi | |
12847 | ||
12848 | # ------------- done intptr types, emit int_fast types ------------ | |
12849 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
12850 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12851 | ||
12852 | /* Define int_fast types. short is often slow */ | |
12853 | typedef int8_t int_fast8_t; | |
12854 | typedef int int_fast16_t; | |
12855 | typedef int32_t int_fast32_t; | |
12856 | #ifdef _INT64_T | |
12857 | typedef int64_t int_fast64_t; | |
12858 | #endif | |
12859 | ||
12860 | typedef uint8_t uint_fast8_t; | |
12861 | typedef unsigned int uint_fast16_t; | |
12862 | typedef uint32_t uint_fast32_t; | |
12863 | #ifdef _UINT64_T | |
12864 | typedef uint64_t uint_fast64_t; | |
12865 | #endif | |
12866 | EOF | |
12867 | fi | |
12868 | ||
12869 | if test "$ac_cv_type_uintmax_t" != yes; then | |
12870 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12871 | ||
12872 | /* Define intmax based on what we found */ | |
12873 | #ifdef _INT64_T | |
12874 | typedef int64_t intmax_t; | |
12875 | #else | |
12876 | typedef long intmax_t; | |
12877 | #endif | |
12878 | #ifdef _UINT64_T | |
12879 | typedef uint64_t uintmax_t; | |
12880 | #else | |
12881 | typedef unsigned long uintmax_t; | |
12882 | #endif | |
12883 | EOF | |
12884 | fi | |
12885 | ||
12886 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
12887 | ||
12888 | #endif /* GCC_GENERATED_STDINT_H */ | |
12889 | EOF | |
12890 | ||
12891 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
12892 | rm -f tmp-stdint.h | |
12893 | else | |
12894 | mv -f tmp-stdint.h gstdint.h | |
12895 | fi | |
12896 | ||
1e8e9920 | 12897 | ;; |
12898 | esac | |
12899 | done | |
12900 | _ACEOF | |
12901 | ||
12902 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12903 | ||
12904 | { (exit 0); exit 0; } | |
12905 | _ACEOF | |
12906 | chmod +x $CONFIG_STATUS | |
12907 | ac_clean_files=$ac_clean_files_save | |
12908 | ||
12909 | ||
12910 | # configure is writing to config.log, and then calls config.status. | |
12911 | # config.status does its own redirection, appending to config.log. | |
12912 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12913 | # by configure, so config.status won't be able to write to it; its | |
12914 | # output is simply discarded. So we exec the FD to /dev/null, | |
12915 | # effectively closing config.log, so it can be properly (re)opened and | |
12916 | # appended to by config.status. When coming back to configure, we | |
12917 | # need to make the FD available again. | |
12918 | if test "$no_create" != yes; then | |
12919 | ac_cs_success=: | |
12920 | ac_config_status_args= | |
12921 | test "$silent" = yes && | |
12922 | ac_config_status_args="$ac_config_status_args --quiet" | |
12923 | exec 5>/dev/null | |
12924 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12925 | exec 5>>config.log | |
12926 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12927 | # would make configure fail if this is the last instruction. | |
12928 | $ac_cs_success || { (exit 1); exit 1; } | |
12929 | fi | |
12930 |