664 |
|
PROGNAME |
665 |
|
debug |
666 |
|
USE_SINGLE_PRECISION |
667 |
+ |
ac_cc_set |
668 |
+ |
ac_cc_path |
669 |
+ |
ac_cxx_set |
670 |
+ |
ac_cxx_path |
671 |
+ |
ac_fc_set |
672 |
+ |
ac_fc_path |
673 |
+ |
acx_mpi_mpicc |
674 |
+ |
acx_mpi_mpicc_path |
675 |
+ |
acx_mpi_mpif90 |
676 |
+ |
acx_mpi_mpif90_path |
677 |
+ |
acx_mpi_mpicxx |
678 |
+ |
acx_mpi_mpicxx_path |
679 |
+ |
MPI_CPPFLAGS |
680 |
+ |
MPI_LIBS |
681 |
+ |
MPI90_LIBS |
682 |
+ |
USE_MPI |
683 |
|
CXX |
684 |
|
CXXFLAGS |
685 |
|
LDFLAGS |
699 |
|
LN_S |
700 |
|
SET_MAKE |
701 |
|
RANLIB |
686 |
– |
YACC |
687 |
– |
YFLAGS |
688 |
– |
LEX |
689 |
– |
LEX_OUTPUT_ROOT |
690 |
– |
LEXLIB |
702 |
|
PERLINTERP |
703 |
|
PERL_SHEBANG |
704 |
|
INSTALL_PROGRAM |
734 |
|
USE_OPENBABEL |
735 |
|
LIBOBJS |
736 |
|
POW_LIB |
726 |
– |
__func__ |
727 |
– |
MPI_LIB_DIR |
728 |
– |
MPI_INC_DIR |
729 |
– |
MPI_F90_INC |
730 |
– |
MPI_LIB |
731 |
– |
MPI_F90_LIB |
732 |
– |
USE_MPI |
737 |
|
CGAL_MAKEFILE |
738 |
|
CGAL_CXXFLAGS |
739 |
|
CGAL_CPPFLAGS |
767 |
|
FC |
768 |
|
FCFLAGS |
769 |
|
CPP |
766 |
– |
YACC |
767 |
– |
YFLAGS |
770 |
|
CXXCPP' |
771 |
|
|
772 |
|
|
1354 |
|
Optional Packages: |
1355 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1356 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1357 |
+ |
--with-mpi=auto|mpich|lam|openmpi|no |
1358 |
+ |
Indicates which kind of MPI implementation to use |
1359 |
+ |
[default=auto] |
1360 |
|
--with-perl-shebang override what perl thinks is the way for the kernel |
1361 |
|
to start it (seldom needed) |
1362 |
|
--with-zlib=DIR root directory path of zlib installation (defaults |
1368 |
|
--with-openbabel=DIR root directory path of openbabel-2.x installation |
1369 |
|
(defaults to /usr/local or /usr if not found in |
1370 |
|
/usr/local) |
1366 |
– |
--with-mpi=<prefix> compile with MPI installed in <prefix> [default=no] |
1371 |
|
--with-cgalmakefile=makefile |
1372 |
|
Use the following CGAL makefile |
1373 |
|
|
1384 |
|
FC Fortran compiler command |
1385 |
|
FCFLAGS Fortran compiler flags |
1386 |
|
CPP C preprocessor |
1383 |
– |
YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1384 |
– |
the first program found out of: `bison -y', `byacc', `yacc'. |
1385 |
– |
YFLAGS The list of arguments that will be passed by default to $YACC. |
1386 |
– |
This script will default YFLAGS to the empty string to avoid a |
1387 |
– |
default value of `-d' given by some make applications. |
1387 |
|
CXXCPP C++ preprocessor |
1388 |
|
|
1389 |
|
Use these variables to override the choices made by `configure' or to help |
1913 |
|
# Figure out how the Fortran 90 compiler constructs module file names |
1914 |
|
# |
1915 |
|
# AC_F90_MODULE_NAMES |
1916 |
+ |
|
1917 |
+ |
|
1918 |
+ |
|
1919 |
+ |
|
1920 |
+ |
|
1921 |
+ |
|
1922 |
+ |
|
1923 |
+ |
|
1924 |
+ |
|
1925 |
|
|
1926 |
|
|
1927 |
|
|
1999 |
|
|
2000 |
|
|
2001 |
|
|
2002 |
+ |
|
2003 |
+ |
# ACX_MPI_GET_PROG |
2004 |
+ |
|
2005 |
+ |
# ACX_DETECT_MPI_IMPLEMENTATION |
2006 |
|
|
2007 |
|
|
2008 |
|
|
2009 |
|
|
2010 |
|
|
2011 |
+ |
# ACX_MPI |
2012 |
|
|
2013 |
|
|
2014 |
|
|
2223 |
|
|
2224 |
|
fi |
2225 |
|
|
2226 |
< |
# Checks for programs. |
2227 |
< |
ac_ext=cpp |
2228 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
2229 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2230 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2218 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2219 |
< |
if test -z "$CXX"; then |
2220 |
< |
if test -n "$CCC"; then |
2221 |
< |
CXX=$CCC |
2222 |
< |
else |
2223 |
< |
if test -n "$ac_tool_prefix"; then |
2224 |
< |
for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
2225 |
< |
do |
2226 |
< |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2227 |
< |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2226 |
> |
if test x"$CC" != x; then |
2227 |
> |
for ac_prog in $CC |
2228 |
> |
do |
2229 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2230 |
> |
set dummy $ac_prog; ac_word=$2 |
2231 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2232 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2233 |
< |
if test "${ac_cv_prog_CXX+set}" = set; then |
2233 |
> |
if test "${ac_cv_prog_ac_cc_set+set}" = set; then |
2234 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2235 |
|
else |
2236 |
< |
if test -n "$CXX"; then |
2237 |
< |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2236 |
> |
if test -n "$ac_cc_set"; then |
2237 |
> |
ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test. |
2238 |
|
else |
2239 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2240 |
|
for as_dir in $PATH |
2243 |
|
test -z "$as_dir" && as_dir=. |
2244 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2245 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2246 |
< |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2246 |
> |
ac_cv_prog_ac_cc_set="$ac_prog" |
2247 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2248 |
|
break 2 |
2249 |
|
fi |
2253 |
|
|
2254 |
|
fi |
2255 |
|
fi |
2256 |
< |
CXX=$ac_cv_prog_CXX |
2257 |
< |
if test -n "$CXX"; then |
2258 |
< |
{ echo "$as_me:$LINENO: result: $CXX" >&5 |
2259 |
< |
echo "${ECHO_T}$CXX" >&6; } |
2256 |
> |
ac_cc_set=$ac_cv_prog_ac_cc_set |
2257 |
> |
if test -n "$ac_cc_set"; then |
2258 |
> |
{ echo "$as_me:$LINENO: result: $ac_cc_set" >&5 |
2259 |
> |
echo "${ECHO_T}$ac_cc_set" >&6; } |
2260 |
|
else |
2261 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
2262 |
|
echo "${ECHO_T}no" >&6; } |
2263 |
|
fi |
2264 |
|
|
2265 |
|
|
2266 |
< |
test -n "$CXX" && break |
2267 |
< |
done |
2266 |
> |
test -n "$ac_cc_set" && break |
2267 |
> |
done |
2268 |
> |
test -n "$ac_cc_set" || ac_cc_set="no" |
2269 |
> |
|
2270 |
> |
if test $ac_cc_set != no; then |
2271 |
> |
|
2272 |
> |
# Extract the first word of "$ac_cc_set", so it can be a program name with args. |
2273 |
> |
set dummy $ac_cc_set; ac_word=$2 |
2274 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2275 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2276 |
> |
if test "${ac_cv_path_ac_cc_path+set}" = set; then |
2277 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2278 |
> |
else |
2279 |
> |
case $ac_cc_path in |
2280 |
> |
[\\/]* | ?:[\\/]*) |
2281 |
> |
ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path. |
2282 |
> |
;; |
2283 |
> |
*) |
2284 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2285 |
> |
for as_dir in $PATH |
2286 |
> |
do |
2287 |
> |
IFS=$as_save_IFS |
2288 |
> |
test -z "$as_dir" && as_dir=. |
2289 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2290 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2291 |
> |
ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext" |
2292 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2293 |
> |
break 2 |
2294 |
> |
fi |
2295 |
> |
done |
2296 |
> |
done |
2297 |
> |
IFS=$as_save_IFS |
2298 |
> |
|
2299 |
> |
test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no" |
2300 |
> |
;; |
2301 |
> |
esac |
2302 |
|
fi |
2303 |
< |
if test -z "$CXX"; then |
2304 |
< |
ac_ct_CXX=$CXX |
2305 |
< |
for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
2303 |
> |
ac_cc_path=$ac_cv_path_ac_cc_path |
2304 |
> |
if test -n "$ac_cc_path"; then |
2305 |
> |
{ echo "$as_me:$LINENO: result: $ac_cc_path" >&5 |
2306 |
> |
echo "${ECHO_T}$ac_cc_path" >&6; } |
2307 |
> |
else |
2308 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2309 |
> |
echo "${ECHO_T}no" >&6; } |
2310 |
> |
fi |
2311 |
> |
|
2312 |
> |
|
2313 |
> |
else |
2314 |
> |
|
2315 |
> |
{ { echo "$as_me:$LINENO: error: Specified C compiler $CC doesn't seem to exist!" >&5 |
2316 |
> |
echo "$as_me: error: Specified C compiler $CC doesn't seem to exist!" >&2;} |
2317 |
> |
{ (exit 1); exit 1; }; } |
2318 |
> |
fi |
2319 |
> |
|
2320 |
> |
|
2321 |
> |
if test $ac_cc_path != no; then |
2322 |
> |
|
2323 |
> |
{ echo "$as_me:$LINENO: Will attempt to use $CC as C compiler" >&5 |
2324 |
> |
echo "$as_me: Will attempt to use $CC as C compiler" >&6;} |
2325 |
> |
else |
2326 |
> |
|
2327 |
> |
{ { echo "$as_me:$LINENO: error: Can't find path to user-specified C compiler $CC" >&5 |
2328 |
> |
echo "$as_me: error: Can't find path to user-specified C compiler $CC" >&2;} |
2329 |
> |
{ (exit 1); exit 1; }; } |
2330 |
> |
fi |
2331 |
> |
|
2332 |
> |
fi |
2333 |
> |
|
2334 |
> |
if test x"$CXX" != x; then |
2335 |
> |
for ac_prog in $CXX |
2336 |
|
do |
2337 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2338 |
|
set dummy $ac_prog; ac_word=$2 |
2339 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2340 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2341 |
< |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2341 |
> |
if test "${ac_cv_prog_ac_cxx_set+set}" = set; then |
2342 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2343 |
|
else |
2344 |
< |
if test -n "$ac_ct_CXX"; then |
2345 |
< |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2344 |
> |
if test -n "$ac_cxx_set"; then |
2345 |
> |
ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test. |
2346 |
|
else |
2347 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2348 |
|
for as_dir in $PATH |
2351 |
|
test -z "$as_dir" && as_dir=. |
2352 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2353 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2354 |
< |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
2354 |
> |
ac_cv_prog_ac_cxx_set="$ac_prog" |
2355 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2356 |
|
break 2 |
2357 |
|
fi |
2361 |
|
|
2362 |
|
fi |
2363 |
|
fi |
2364 |
< |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2365 |
< |
if test -n "$ac_ct_CXX"; then |
2366 |
< |
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2367 |
< |
echo "${ECHO_T}$ac_ct_CXX" >&6; } |
2364 |
> |
ac_cxx_set=$ac_cv_prog_ac_cxx_set |
2365 |
> |
if test -n "$ac_cxx_set"; then |
2366 |
> |
{ echo "$as_me:$LINENO: result: $ac_cxx_set" >&5 |
2367 |
> |
echo "${ECHO_T}$ac_cxx_set" >&6; } |
2368 |
|
else |
2369 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
2370 |
|
echo "${ECHO_T}no" >&6; } |
2371 |
|
fi |
2372 |
|
|
2373 |
|
|
2374 |
< |
test -n "$ac_ct_CXX" && break |
2374 |
> |
test -n "$ac_cxx_set" && break |
2375 |
|
done |
2376 |
+ |
test -n "$ac_cxx_set" || ac_cxx_set="no" |
2377 |
|
|
2378 |
< |
if test "x$ac_ct_CXX" = x; then |
2311 |
< |
CXX="g++" |
2312 |
< |
else |
2313 |
< |
case $cross_compiling:$ac_tool_warned in |
2314 |
< |
yes:) |
2315 |
< |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2316 |
< |
whose name does not start with the host triplet. If you think this |
2317 |
< |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2318 |
< |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2319 |
< |
whose name does not start with the host triplet. If you think this |
2320 |
< |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2321 |
< |
ac_tool_warned=yes ;; |
2322 |
< |
esac |
2323 |
< |
CXX=$ac_ct_CXX |
2324 |
< |
fi |
2325 |
< |
fi |
2378 |
> |
if test $ac_cxx_set != no; then |
2379 |
|
|
2380 |
+ |
# Extract the first word of "$ac_cxx_set", so it can be a program name with args. |
2381 |
+ |
set dummy $ac_cxx_set; ac_word=$2 |
2382 |
+ |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2383 |
+ |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2384 |
+ |
if test "${ac_cv_path_ac_cxx_path+set}" = set; then |
2385 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2386 |
+ |
else |
2387 |
+ |
case $ac_cxx_path in |
2388 |
+ |
[\\/]* | ?:[\\/]*) |
2389 |
+ |
ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path. |
2390 |
+ |
;; |
2391 |
+ |
*) |
2392 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2393 |
+ |
for as_dir in $PATH |
2394 |
+ |
do |
2395 |
+ |
IFS=$as_save_IFS |
2396 |
+ |
test -z "$as_dir" && as_dir=. |
2397 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
2398 |
+ |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2399 |
+ |
ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext" |
2400 |
+ |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2401 |
+ |
break 2 |
2402 |
|
fi |
2403 |
< |
fi |
2404 |
< |
# Provide some information about the compiler. |
2405 |
< |
echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
2406 |
< |
ac_compiler=`set X $ac_compile; echo $2` |
2407 |
< |
{ (ac_try="$ac_compiler --version >&5" |
2408 |
< |
case "(($ac_try" in |
2334 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2335 |
< |
*) ac_try_echo=$ac_try;; |
2403 |
> |
done |
2404 |
> |
done |
2405 |
> |
IFS=$as_save_IFS |
2406 |
> |
|
2407 |
> |
test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no" |
2408 |
> |
;; |
2409 |
|
esac |
2410 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2411 |
< |
(eval "$ac_compiler --version >&5") 2>&5 |
2412 |
< |
ac_status=$? |
2413 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2414 |
< |
(exit $ac_status); } |
2415 |
< |
{ (ac_try="$ac_compiler -v >&5" |
2416 |
< |
case "(($ac_try" in |
2417 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2418 |
< |
*) ac_try_echo=$ac_try;; |
2346 |
< |
esac |
2347 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2348 |
< |
(eval "$ac_compiler -v >&5") 2>&5 |
2349 |
< |
ac_status=$? |
2350 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2351 |
< |
(exit $ac_status); } |
2352 |
< |
{ (ac_try="$ac_compiler -V >&5" |
2353 |
< |
case "(($ac_try" in |
2354 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2355 |
< |
*) ac_try_echo=$ac_try;; |
2356 |
< |
esac |
2357 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2358 |
< |
(eval "$ac_compiler -V >&5") 2>&5 |
2359 |
< |
ac_status=$? |
2360 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2361 |
< |
(exit $ac_status); } |
2410 |
> |
fi |
2411 |
> |
ac_cxx_path=$ac_cv_path_ac_cxx_path |
2412 |
> |
if test -n "$ac_cxx_path"; then |
2413 |
> |
{ echo "$as_me:$LINENO: result: $ac_cxx_path" >&5 |
2414 |
> |
echo "${ECHO_T}$ac_cxx_path" >&6; } |
2415 |
> |
else |
2416 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2417 |
> |
echo "${ECHO_T}no" >&6; } |
2418 |
> |
fi |
2419 |
|
|
2363 |
– |
cat >conftest.$ac_ext <<_ACEOF |
2364 |
– |
/* confdefs.h. */ |
2365 |
– |
_ACEOF |
2366 |
– |
cat confdefs.h >>conftest.$ac_ext |
2367 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
2368 |
– |
/* end confdefs.h. */ |
2420 |
|
|
2421 |
< |
int |
2371 |
< |
main () |
2372 |
< |
{ |
2421 |
> |
else |
2422 |
|
|
2423 |
< |
; |
2424 |
< |
return 0; |
2425 |
< |
} |
2377 |
< |
_ACEOF |
2378 |
< |
ac_clean_files_save=$ac_clean_files |
2379 |
< |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2380 |
< |
# Try to create an executable without -o first, disregard a.out. |
2381 |
< |
# It will help us diagnose broken compilers, and finding out an intuition |
2382 |
< |
# of exeext. |
2383 |
< |
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
2384 |
< |
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } |
2385 |
< |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2386 |
< |
# |
2387 |
< |
# List of possible output files, starting from the most likely. |
2388 |
< |
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2389 |
< |
# only as a last resort. b.out is created by i960 compilers. |
2390 |
< |
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2391 |
< |
# |
2392 |
< |
# The IRIX 6 linker writes into existing files which may not be |
2393 |
< |
# executable, retaining their permissions. Remove them first so a |
2394 |
< |
# subsequent execution test works. |
2395 |
< |
ac_rmfiles= |
2396 |
< |
for ac_file in $ac_files |
2397 |
< |
do |
2398 |
< |
case $ac_file in |
2399 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2400 |
< |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2401 |
< |
esac |
2402 |
< |
done |
2403 |
< |
rm -f $ac_rmfiles |
2404 |
< |
|
2405 |
< |
if { (ac_try="$ac_link_default" |
2406 |
< |
case "(($ac_try" in |
2407 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2408 |
< |
*) ac_try_echo=$ac_try;; |
2409 |
< |
esac |
2410 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 |
< |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2416 |
< |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2417 |
< |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
2418 |
< |
# so that the user can short-circuit this test for compilers unknown to |
2419 |
< |
# Autoconf. |
2420 |
< |
for ac_file in $ac_files '' |
2421 |
< |
do |
2422 |
< |
test -f "$ac_file" || continue |
2423 |
< |
case $ac_file in |
2424 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2425 |
< |
;; |
2426 |
< |
[ab].out ) |
2427 |
< |
# We found the default executable, but exeext='' is most |
2428 |
< |
# certainly right. |
2429 |
< |
break;; |
2430 |
< |
*.* ) |
2431 |
< |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2432 |
< |
then :; else |
2433 |
< |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2434 |
< |
fi |
2435 |
< |
# We set ac_cv_exeext here because the later test for it is not |
2436 |
< |
# safe: cross compilers may not add the suffix if given an `-o' |
2437 |
< |
# argument, so we may need to know it at that point already. |
2438 |
< |
# Even if this section looks crufty: it has the advantage of |
2439 |
< |
# actually working. |
2440 |
< |
break;; |
2441 |
< |
* ) |
2442 |
< |
break;; |
2443 |
< |
esac |
2444 |
< |
done |
2445 |
< |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
2446 |
< |
|
2447 |
< |
else |
2448 |
< |
ac_file='' |
2423 |
> |
{ { echo "$as_me:$LINENO: error: Specified C++ compiler $CXX doesn't seem to exist!" >&5 |
2424 |
> |
echo "$as_me: error: Specified C++ compiler $CXX doesn't seem to exist!" >&2;} |
2425 |
> |
{ (exit 1); exit 1; }; } |
2426 |
|
fi |
2427 |
|
|
2451 |
– |
{ echo "$as_me:$LINENO: result: $ac_file" >&5 |
2452 |
– |
echo "${ECHO_T}$ac_file" >&6; } |
2453 |
– |
if test -z "$ac_file"; then |
2454 |
– |
echo "$as_me: failed program was:" >&5 |
2455 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2428 |
|
|
2429 |
< |
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
2458 |
< |
See \`config.log' for more details." >&5 |
2459 |
< |
echo "$as_me: error: C++ compiler cannot create executables |
2460 |
< |
See \`config.log' for more details." >&2;} |
2461 |
< |
{ (exit 77); exit 77; }; } |
2462 |
< |
fi |
2429 |
> |
if test $ac_cxx_path != no; then |
2430 |
|
|
2431 |
< |
ac_exeext=$ac_cv_exeext |
2431 |
> |
{ echo "$as_me:$LINENO: Will attempt to use $CXX as C++ compiler" >&5 |
2432 |
> |
echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;} |
2433 |
> |
else |
2434 |
|
|
2435 |
< |
# Check that the compiler produces executables we can run. If not, either |
2436 |
< |
# the compiler is broken, or we cross compile. |
2468 |
< |
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
2469 |
< |
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } |
2470 |
< |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2471 |
< |
# If not cross compiling, check that we can run a simple program. |
2472 |
< |
if test "$cross_compiling" != yes; then |
2473 |
< |
if { ac_try='./$ac_file' |
2474 |
< |
{ (case "(($ac_try" in |
2475 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2476 |
< |
*) ac_try_echo=$ac_try;; |
2477 |
< |
esac |
2478 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2479 |
< |
(eval "$ac_try") 2>&5 |
2480 |
< |
ac_status=$? |
2481 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2482 |
< |
(exit $ac_status); }; }; then |
2483 |
< |
cross_compiling=no |
2484 |
< |
else |
2485 |
< |
if test "$cross_compiling" = maybe; then |
2486 |
< |
cross_compiling=yes |
2487 |
< |
else |
2488 |
< |
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
2489 |
< |
If you meant to cross compile, use \`--host'. |
2490 |
< |
See \`config.log' for more details." >&5 |
2491 |
< |
echo "$as_me: error: cannot run C++ compiled programs. |
2492 |
< |
If you meant to cross compile, use \`--host'. |
2493 |
< |
See \`config.log' for more details." >&2;} |
2435 |
> |
{ { echo "$as_me:$LINENO: error: Can't find path to user-specified C++ compiler $CXX" >&5 |
2436 |
> |
echo "$as_me: error: Can't find path to user-specified C++ compiler $CXX" >&2;} |
2437 |
|
{ (exit 1); exit 1; }; } |
2495 |
– |
fi |
2496 |
– |
fi |
2438 |
|
fi |
2498 |
– |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2499 |
– |
echo "${ECHO_T}yes" >&6; } |
2439 |
|
|
2440 |
< |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2502 |
< |
ac_clean_files=$ac_clean_files_save |
2503 |
< |
# Check that the compiler produces executables we can run. If not, either |
2504 |
< |
# the compiler is broken, or we cross compile. |
2505 |
< |
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2506 |
< |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2507 |
< |
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2508 |
< |
echo "${ECHO_T}$cross_compiling" >&6; } |
2440 |
> |
fi |
2441 |
|
|
2442 |
< |
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2443 |
< |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2444 |
< |
if { (ac_try="$ac_link" |
2445 |
< |
case "(($ac_try" in |
2446 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2447 |
< |
*) ac_try_echo=$ac_try;; |
2448 |
< |
esac |
2449 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2450 |
< |
(eval "$ac_link") 2>&5 |
2451 |
< |
ac_status=$? |
2452 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2453 |
< |
(exit $ac_status); }; then |
2454 |
< |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2455 |
< |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2456 |
< |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2457 |
< |
# `rm'. |
2458 |
< |
for ac_file in conftest.exe conftest conftest.*; do |
2459 |
< |
test -f "$ac_file" || continue |
2460 |
< |
case $ac_file in |
2461 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2462 |
< |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2463 |
< |
break;; |
2464 |
< |
* ) break;; |
2465 |
< |
esac |
2442 |
> |
if test x"$FC" != x; then |
2443 |
> |
for ac_prog in $FC |
2444 |
> |
do |
2445 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2446 |
> |
set dummy $ac_prog; ac_word=$2 |
2447 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2448 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2449 |
> |
if test "${ac_cv_prog_ac_fc_set+set}" = set; then |
2450 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2451 |
> |
else |
2452 |
> |
if test -n "$ac_fc_set"; then |
2453 |
> |
ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test. |
2454 |
> |
else |
2455 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2456 |
> |
for as_dir in $PATH |
2457 |
> |
do |
2458 |
> |
IFS=$as_save_IFS |
2459 |
> |
test -z "$as_dir" && as_dir=. |
2460 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2461 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2462 |
> |
ac_cv_prog_ac_fc_set="$ac_prog" |
2463 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2464 |
> |
break 2 |
2465 |
> |
fi |
2466 |
|
done |
2467 |
+ |
done |
2468 |
+ |
IFS=$as_save_IFS |
2469 |
+ |
|
2470 |
+ |
fi |
2471 |
+ |
fi |
2472 |
+ |
ac_fc_set=$ac_cv_prog_ac_fc_set |
2473 |
+ |
if test -n "$ac_fc_set"; then |
2474 |
+ |
{ echo "$as_me:$LINENO: result: $ac_fc_set" >&5 |
2475 |
+ |
echo "${ECHO_T}$ac_fc_set" >&6; } |
2476 |
|
else |
2477 |
< |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2478 |
< |
See \`config.log' for more details." >&5 |
2538 |
< |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2539 |
< |
See \`config.log' for more details." >&2;} |
2540 |
< |
{ (exit 1); exit 1; }; } |
2477 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2478 |
> |
echo "${ECHO_T}no" >&6; } |
2479 |
|
fi |
2480 |
|
|
2543 |
– |
rm -f conftest$ac_cv_exeext |
2544 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2545 |
– |
echo "${ECHO_T}$ac_cv_exeext" >&6; } |
2481 |
|
|
2482 |
< |
rm -f conftest.$ac_ext |
2483 |
< |
EXEEXT=$ac_cv_exeext |
2484 |
< |
ac_exeext=$EXEEXT |
2550 |
< |
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2551 |
< |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
2552 |
< |
if test "${ac_cv_objext+set}" = set; then |
2553 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2554 |
< |
else |
2555 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2556 |
< |
/* confdefs.h. */ |
2557 |
< |
_ACEOF |
2558 |
< |
cat confdefs.h >>conftest.$ac_ext |
2559 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2560 |
< |
/* end confdefs.h. */ |
2482 |
> |
test -n "$ac_fc_set" && break |
2483 |
> |
done |
2484 |
> |
test -n "$ac_fc_set" || ac_fc_set="no" |
2485 |
|
|
2486 |
< |
int |
2563 |
< |
main () |
2564 |
< |
{ |
2486 |
> |
if test $ac_fc_set != no; then |
2487 |
|
|
2488 |
< |
; |
2489 |
< |
return 0; |
2490 |
< |
} |
2491 |
< |
_ACEOF |
2492 |
< |
rm -f conftest.o conftest.obj |
2493 |
< |
if { (ac_try="$ac_compile" |
2572 |
< |
case "(($ac_try" in |
2573 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2574 |
< |
*) ac_try_echo=$ac_try;; |
2575 |
< |
esac |
2576 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2577 |
< |
(eval "$ac_compile") 2>&5 |
2578 |
< |
ac_status=$? |
2579 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2580 |
< |
(exit $ac_status); }; then |
2581 |
< |
for ac_file in conftest.o conftest.obj conftest.*; do |
2582 |
< |
test -f "$ac_file" || continue; |
2583 |
< |
case $ac_file in |
2584 |
< |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
2585 |
< |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2586 |
< |
break;; |
2587 |
< |
esac |
2588 |
< |
done |
2488 |
> |
# Extract the first word of "$ac_fc_set", so it can be a program name with args. |
2489 |
> |
set dummy $ac_fc_set; ac_word=$2 |
2490 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2491 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2492 |
> |
if test "${ac_cv_path_ac_fc_path+set}" = set; then |
2493 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2494 |
|
else |
2495 |
< |
echo "$as_me: failed program was:" >&5 |
2496 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2495 |
> |
case $ac_fc_path in |
2496 |
> |
[\\/]* | ?:[\\/]*) |
2497 |
> |
ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path. |
2498 |
> |
;; |
2499 |
> |
*) |
2500 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2501 |
> |
for as_dir in $PATH |
2502 |
> |
do |
2503 |
> |
IFS=$as_save_IFS |
2504 |
> |
test -z "$as_dir" && as_dir=. |
2505 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2506 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2507 |
> |
ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext" |
2508 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2509 |
> |
break 2 |
2510 |
> |
fi |
2511 |
> |
done |
2512 |
> |
done |
2513 |
> |
IFS=$as_save_IFS |
2514 |
|
|
2515 |
< |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2516 |
< |
See \`config.log' for more details." >&5 |
2517 |
< |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2596 |
< |
See \`config.log' for more details." >&2;} |
2597 |
< |
{ (exit 1); exit 1; }; } |
2515 |
> |
test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no" |
2516 |
> |
;; |
2517 |
> |
esac |
2518 |
|
fi |
2519 |
< |
|
2520 |
< |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2521 |
< |
fi |
2522 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2603 |
< |
echo "${ECHO_T}$ac_cv_objext" >&6; } |
2604 |
< |
OBJEXT=$ac_cv_objext |
2605 |
< |
ac_objext=$OBJEXT |
2606 |
< |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2607 |
< |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
2608 |
< |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2609 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2519 |
> |
ac_fc_path=$ac_cv_path_ac_fc_path |
2520 |
> |
if test -n "$ac_fc_path"; then |
2521 |
> |
{ echo "$as_me:$LINENO: result: $ac_fc_path" >&5 |
2522 |
> |
echo "${ECHO_T}$ac_fc_path" >&6; } |
2523 |
|
else |
2524 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2525 |
< |
/* confdefs.h. */ |
2526 |
< |
_ACEOF |
2614 |
< |
cat confdefs.h >>conftest.$ac_ext |
2615 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2616 |
< |
/* end confdefs.h. */ |
2524 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2525 |
> |
echo "${ECHO_T}no" >&6; } |
2526 |
> |
fi |
2527 |
|
|
2618 |
– |
int |
2619 |
– |
main () |
2620 |
– |
{ |
2621 |
– |
#ifndef __GNUC__ |
2622 |
– |
choke me |
2623 |
– |
#endif |
2528 |
|
|
2625 |
– |
; |
2626 |
– |
return 0; |
2627 |
– |
} |
2628 |
– |
_ACEOF |
2629 |
– |
rm -f conftest.$ac_objext |
2630 |
– |
if { (ac_try="$ac_compile" |
2631 |
– |
case "(($ac_try" in |
2632 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2633 |
– |
*) ac_try_echo=$ac_try;; |
2634 |
– |
esac |
2635 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2636 |
– |
(eval "$ac_compile") 2>conftest.er1 |
2637 |
– |
ac_status=$? |
2638 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
2639 |
– |
rm -f conftest.er1 |
2640 |
– |
cat conftest.err >&5 |
2641 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2642 |
– |
(exit $ac_status); } && { |
2643 |
– |
test -z "$ac_cxx_werror_flag" || |
2644 |
– |
test ! -s conftest.err |
2645 |
– |
} && test -s conftest.$ac_objext; then |
2646 |
– |
ac_compiler_gnu=yes |
2529 |
|
else |
2648 |
– |
echo "$as_me: failed program was:" >&5 |
2649 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2530 |
|
|
2531 |
< |
ac_compiler_gnu=no |
2531 |
> |
{ { echo "$as_me:$LINENO: error: Specified Fortran compiler $FC doesn't seem to exist!" >&5 |
2532 |
> |
echo "$as_me: error: Specified Fortran compiler $FC doesn't seem to exist!" >&2;} |
2533 |
> |
{ (exit 1); exit 1; }; } |
2534 |
|
fi |
2535 |
|
|
2654 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2655 |
– |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2536 |
|
|
2537 |
< |
fi |
2658 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2659 |
< |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
2660 |
< |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
2661 |
< |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
2662 |
< |
ac_save_CXXFLAGS=$CXXFLAGS |
2663 |
< |
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
2664 |
< |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
2665 |
< |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
2666 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2667 |
< |
else |
2668 |
< |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
2669 |
< |
ac_cxx_werror_flag=yes |
2670 |
< |
ac_cv_prog_cxx_g=no |
2671 |
< |
CXXFLAGS="-g" |
2672 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2673 |
< |
/* confdefs.h. */ |
2674 |
< |
_ACEOF |
2675 |
< |
cat confdefs.h >>conftest.$ac_ext |
2676 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2677 |
< |
/* end confdefs.h. */ |
2537 |
> |
if test $ac_fc_path != no; then |
2538 |
|
|
2539 |
< |
int |
2540 |
< |
main () |
2681 |
< |
{ |
2682 |
< |
|
2683 |
< |
; |
2684 |
< |
return 0; |
2685 |
< |
} |
2686 |
< |
_ACEOF |
2687 |
< |
rm -f conftest.$ac_objext |
2688 |
< |
if { (ac_try="$ac_compile" |
2689 |
< |
case "(($ac_try" in |
2690 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2691 |
< |
*) ac_try_echo=$ac_try;; |
2692 |
< |
esac |
2693 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2694 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2695 |
< |
ac_status=$? |
2696 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
2697 |
< |
rm -f conftest.er1 |
2698 |
< |
cat conftest.err >&5 |
2699 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2700 |
< |
(exit $ac_status); } && { |
2701 |
< |
test -z "$ac_cxx_werror_flag" || |
2702 |
< |
test ! -s conftest.err |
2703 |
< |
} && test -s conftest.$ac_objext; then |
2704 |
< |
ac_cv_prog_cxx_g=yes |
2539 |
> |
{ echo "$as_me:$LINENO: Will attempt to use $FC as Fortran compiler" >&5 |
2540 |
> |
echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;} |
2541 |
|
else |
2706 |
– |
echo "$as_me: failed program was:" >&5 |
2707 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2542 |
|
|
2543 |
< |
CXXFLAGS="" |
2544 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2545 |
< |
/* confdefs.h. */ |
2546 |
< |
_ACEOF |
2713 |
< |
cat confdefs.h >>conftest.$ac_ext |
2714 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2715 |
< |
/* end confdefs.h. */ |
2543 |
> |
{ { echo "$as_me:$LINENO: error: Can't find path to user-specified Fortran compiler $FC" >&5 |
2544 |
> |
echo "$as_me: error: Can't find path to user-specified Fortran compiler $FC" >&2;} |
2545 |
> |
{ (exit 1); exit 1; }; } |
2546 |
> |
fi |
2547 |
|
|
2548 |
< |
int |
2718 |
< |
main () |
2719 |
< |
{ |
2548 |
> |
fi |
2549 |
|
|
2721 |
– |
; |
2722 |
– |
return 0; |
2723 |
– |
} |
2724 |
– |
_ACEOF |
2725 |
– |
rm -f conftest.$ac_objext |
2726 |
– |
if { (ac_try="$ac_compile" |
2727 |
– |
case "(($ac_try" in |
2728 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2729 |
– |
*) ac_try_echo=$ac_try;; |
2730 |
– |
esac |
2731 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2732 |
– |
(eval "$ac_compile") 2>conftest.er1 |
2733 |
– |
ac_status=$? |
2734 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
2735 |
– |
rm -f conftest.er1 |
2736 |
– |
cat conftest.err >&5 |
2737 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2738 |
– |
(exit $ac_status); } && { |
2739 |
– |
test -z "$ac_cxx_werror_flag" || |
2740 |
– |
test ! -s conftest.err |
2741 |
– |
} && test -s conftest.$ac_objext; then |
2742 |
– |
: |
2743 |
– |
else |
2744 |
– |
echo "$as_me: failed program was:" >&5 |
2745 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2550 |
|
|
2747 |
– |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
2748 |
– |
CXXFLAGS="-g" |
2749 |
– |
cat >conftest.$ac_ext <<_ACEOF |
2750 |
– |
/* confdefs.h. */ |
2751 |
– |
_ACEOF |
2752 |
– |
cat confdefs.h >>conftest.$ac_ext |
2753 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
2754 |
– |
/* end confdefs.h. */ |
2551 |
|
|
2756 |
– |
int |
2757 |
– |
main () |
2758 |
– |
{ |
2552 |
|
|
2553 |
< |
; |
2554 |
< |
return 0; |
2555 |
< |
} |
2763 |
< |
_ACEOF |
2764 |
< |
rm -f conftest.$ac_objext |
2765 |
< |
if { (ac_try="$ac_compile" |
2766 |
< |
case "(($ac_try" in |
2767 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2768 |
< |
*) ac_try_echo=$ac_try;; |
2769 |
< |
esac |
2770 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2771 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2772 |
< |
ac_status=$? |
2773 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
2774 |
< |
rm -f conftest.er1 |
2775 |
< |
cat conftest.err >&5 |
2776 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2777 |
< |
(exit $ac_status); } && { |
2778 |
< |
test -z "$ac_cxx_werror_flag" || |
2779 |
< |
test ! -s conftest.err |
2780 |
< |
} && test -s conftest.$ac_objext; then |
2781 |
< |
ac_cv_prog_cxx_g=yes |
2553 |
> |
# Check whether --with-mpi was given. |
2554 |
> |
if test "${with_mpi+set}" = set; then |
2555 |
> |
withval=$with_mpi; |
2556 |
|
else |
2557 |
< |
echo "$as_me: failed program was:" >&5 |
2558 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2557 |
> |
with_mpi="auto" |
2558 |
> |
fi |
2559 |
|
|
2560 |
+ |
if test "x$with_mpi" != "xno"; then |
2561 |
|
|
2787 |
– |
fi |
2562 |
|
|
2563 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2564 |
< |
fi |
2563 |
> |
for ac_prog in $CC openmpicc mpicc |
2564 |
> |
do |
2565 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2566 |
> |
set dummy $ac_prog; ac_word=$2 |
2567 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2568 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2569 |
> |
if test "${ac_cv_prog_acx_mpi_mpicc+set}" = set; then |
2570 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2571 |
> |
else |
2572 |
> |
if test -n "$acx_mpi_mpicc"; then |
2573 |
> |
ac_cv_prog_acx_mpi_mpicc="$acx_mpi_mpicc" # Let the user override the test. |
2574 |
> |
else |
2575 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2576 |
> |
for as_dir in $PATH |
2577 |
> |
do |
2578 |
> |
IFS=$as_save_IFS |
2579 |
> |
test -z "$as_dir" && as_dir=. |
2580 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2581 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2582 |
> |
ac_cv_prog_acx_mpi_mpicc="$ac_prog" |
2583 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2584 |
> |
break 2 |
2585 |
> |
fi |
2586 |
> |
done |
2587 |
> |
done |
2588 |
> |
IFS=$as_save_IFS |
2589 |
|
|
2792 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2590 |
|
fi |
2794 |
– |
|
2795 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2796 |
– |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
2591 |
|
fi |
2592 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2593 |
< |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
2594 |
< |
if test "$ac_test_CXXFLAGS" = set; then |
2595 |
< |
CXXFLAGS=$ac_save_CXXFLAGS |
2802 |
< |
elif test $ac_cv_prog_cxx_g = yes; then |
2803 |
< |
if test "$GXX" = yes; then |
2804 |
< |
CXXFLAGS="-g -O2" |
2805 |
< |
else |
2806 |
< |
CXXFLAGS="-g" |
2807 |
< |
fi |
2592 |
> |
acx_mpi_mpicc=$ac_cv_prog_acx_mpi_mpicc |
2593 |
> |
if test -n "$acx_mpi_mpicc"; then |
2594 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpicc" >&5 |
2595 |
> |
echo "${ECHO_T}$acx_mpi_mpicc" >&6; } |
2596 |
|
else |
2597 |
< |
if test "$GXX" = yes; then |
2598 |
< |
CXXFLAGS="-O2" |
2599 |
< |
else |
2600 |
< |
CXXFLAGS= |
2597 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2598 |
> |
echo "${ECHO_T}no" >&6; } |
2599 |
> |
fi |
2600 |
> |
|
2601 |
> |
|
2602 |
> |
test -n "$acx_mpi_mpicc" && break |
2603 |
> |
done |
2604 |
> |
test -n "$acx_mpi_mpicc" || acx_mpi_mpicc="no" |
2605 |
> |
|
2606 |
> |
if test $acx_mpi_mpicc != no; then |
2607 |
> |
|
2608 |
> |
# Extract the first word of "$acx_mpi_mpicc", so it can be a program name with args. |
2609 |
> |
set dummy $acx_mpi_mpicc; ac_word=$2 |
2610 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2611 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2612 |
> |
if test "${ac_cv_path_acx_mpi_mpicc_path+set}" = set; then |
2613 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2614 |
> |
else |
2615 |
> |
case $acx_mpi_mpicc_path in |
2616 |
> |
[\\/]* | ?:[\\/]*) |
2617 |
> |
ac_cv_path_acx_mpi_mpicc_path="$acx_mpi_mpicc_path" # Let the user override the test with a path. |
2618 |
> |
;; |
2619 |
> |
*) |
2620 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2621 |
> |
for as_dir in $PATH |
2622 |
> |
do |
2623 |
> |
IFS=$as_save_IFS |
2624 |
> |
test -z "$as_dir" && as_dir=. |
2625 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2626 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2627 |
> |
ac_cv_path_acx_mpi_mpicc_path="$as_dir/$ac_word$ac_exec_ext" |
2628 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2629 |
> |
break 2 |
2630 |
|
fi |
2631 |
+ |
done |
2632 |
+ |
done |
2633 |
+ |
IFS=$as_save_IFS |
2634 |
+ |
|
2635 |
+ |
test -z "$ac_cv_path_acx_mpi_mpicc_path" && ac_cv_path_acx_mpi_mpicc_path="no" |
2636 |
+ |
;; |
2637 |
+ |
esac |
2638 |
|
fi |
2639 |
< |
ac_ext=c |
2640 |
< |
ac_cpp='$CPP $CPPFLAGS' |
2641 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2642 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2643 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2639 |
> |
acx_mpi_mpicc_path=$ac_cv_path_acx_mpi_mpicc_path |
2640 |
> |
if test -n "$acx_mpi_mpicc_path"; then |
2641 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpicc_path" >&5 |
2642 |
> |
echo "${ECHO_T}$acx_mpi_mpicc_path" >&6; } |
2643 |
> |
else |
2644 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2645 |
> |
echo "${ECHO_T}no" >&6; } |
2646 |
> |
fi |
2647 |
|
|
2648 |
< |
ac_ext=c |
2649 |
< |
ac_cpp='$CPP $CPPFLAGS' |
2650 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2651 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2652 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2653 |
< |
if test -n "$ac_tool_prefix"; then |
2654 |
< |
for ac_prog in mpicc icc pathcc pgcc cc xlc gcc |
2828 |
< |
do |
2829 |
< |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2830 |
< |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2648 |
> |
|
2649 |
> |
fi |
2650 |
> |
|
2651 |
> |
for ac_prog in $FC openmpif90 mpif90 |
2652 |
> |
do |
2653 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2654 |
> |
set dummy $ac_prog; ac_word=$2 |
2655 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2656 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2657 |
< |
if test "${ac_cv_prog_CC+set}" = set; then |
2657 |
> |
if test "${ac_cv_prog_acx_mpi_mpif90+set}" = set; then |
2658 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2659 |
|
else |
2660 |
< |
if test -n "$CC"; then |
2661 |
< |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2660 |
> |
if test -n "$acx_mpi_mpif90"; then |
2661 |
> |
ac_cv_prog_acx_mpi_mpif90="$acx_mpi_mpif90" # Let the user override the test. |
2662 |
|
else |
2663 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2664 |
|
for as_dir in $PATH |
2667 |
|
test -z "$as_dir" && as_dir=. |
2668 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2669 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2670 |
< |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2670 |
> |
ac_cv_prog_acx_mpi_mpif90="$ac_prog" |
2671 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2672 |
|
break 2 |
2673 |
|
fi |
2677 |
|
|
2678 |
|
fi |
2679 |
|
fi |
2680 |
< |
CC=$ac_cv_prog_CC |
2681 |
< |
if test -n "$CC"; then |
2682 |
< |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
2683 |
< |
echo "${ECHO_T}$CC" >&6; } |
2680 |
> |
acx_mpi_mpif90=$ac_cv_prog_acx_mpi_mpif90 |
2681 |
> |
if test -n "$acx_mpi_mpif90"; then |
2682 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpif90" >&5 |
2683 |
> |
echo "${ECHO_T}$acx_mpi_mpif90" >&6; } |
2684 |
|
else |
2685 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
2686 |
|
echo "${ECHO_T}no" >&6; } |
2687 |
|
fi |
2688 |
|
|
2689 |
|
|
2690 |
< |
test -n "$CC" && break |
2691 |
< |
done |
2690 |
> |
test -n "$acx_mpi_mpif90" && break |
2691 |
> |
done |
2692 |
> |
test -n "$acx_mpi_mpif90" || acx_mpi_mpif90="no" |
2693 |
> |
|
2694 |
> |
if test $acx_mpi_mpif90 != no; then |
2695 |
> |
|
2696 |
> |
# Extract the first word of "$acx_mpi_mpif90", so it can be a program name with args. |
2697 |
> |
set dummy $acx_mpi_mpif90; ac_word=$2 |
2698 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2699 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2700 |
> |
if test "${ac_cv_path_acx_mpi_mpif90_path+set}" = set; then |
2701 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2702 |
> |
else |
2703 |
> |
case $acx_mpi_mpif90_path in |
2704 |
> |
[\\/]* | ?:[\\/]*) |
2705 |
> |
ac_cv_path_acx_mpi_mpif90_path="$acx_mpi_mpif90_path" # Let the user override the test with a path. |
2706 |
> |
;; |
2707 |
> |
*) |
2708 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2709 |
> |
for as_dir in $PATH |
2710 |
> |
do |
2711 |
> |
IFS=$as_save_IFS |
2712 |
> |
test -z "$as_dir" && as_dir=. |
2713 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2714 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2715 |
> |
ac_cv_path_acx_mpi_mpif90_path="$as_dir/$ac_word$ac_exec_ext" |
2716 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2717 |
> |
break 2 |
2718 |
> |
fi |
2719 |
> |
done |
2720 |
> |
done |
2721 |
> |
IFS=$as_save_IFS |
2722 |
> |
|
2723 |
> |
test -z "$ac_cv_path_acx_mpi_mpif90_path" && ac_cv_path_acx_mpi_mpif90_path="no" |
2724 |
> |
;; |
2725 |
> |
esac |
2726 |
|
fi |
2727 |
< |
if test -z "$CC"; then |
2728 |
< |
ac_ct_CC=$CC |
2729 |
< |
for ac_prog in mpicc icc pathcc pgcc cc xlc gcc |
2727 |
> |
acx_mpi_mpif90_path=$ac_cv_path_acx_mpi_mpif90_path |
2728 |
> |
if test -n "$acx_mpi_mpif90_path"; then |
2729 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpif90_path" >&5 |
2730 |
> |
echo "${ECHO_T}$acx_mpi_mpif90_path" >&6; } |
2731 |
> |
else |
2732 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
2733 |
> |
echo "${ECHO_T}no" >&6; } |
2734 |
> |
fi |
2735 |
> |
|
2736 |
> |
|
2737 |
> |
fi |
2738 |
> |
|
2739 |
> |
for ac_prog in $CXX openmpicxx openmpiCC openmpic++ mpicxx mpiCC mpic++ |
2740 |
|
do |
2741 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2742 |
|
set dummy $ac_prog; ac_word=$2 |
2743 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2744 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2745 |
< |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2745 |
> |
if test "${ac_cv_prog_acx_mpi_mpicxx+set}" = set; then |
2746 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2747 |
|
else |
2748 |
< |
if test -n "$ac_ct_CC"; then |
2749 |
< |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2748 |
> |
if test -n "$acx_mpi_mpicxx"; then |
2749 |
> |
ac_cv_prog_acx_mpi_mpicxx="$acx_mpi_mpicxx" # Let the user override the test. |
2750 |
|
else |
2751 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2752 |
|
for as_dir in $PATH |
2755 |
|
test -z "$as_dir" && as_dir=. |
2756 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
2757 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2758 |
< |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2758 |
> |
ac_cv_prog_acx_mpi_mpicxx="$ac_prog" |
2759 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2760 |
|
break 2 |
2761 |
|
fi |
2765 |
|
|
2766 |
|
fi |
2767 |
|
fi |
2768 |
< |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2769 |
< |
if test -n "$ac_ct_CC"; then |
2770 |
< |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2771 |
< |
echo "${ECHO_T}$ac_ct_CC" >&6; } |
2768 |
> |
acx_mpi_mpicxx=$ac_cv_prog_acx_mpi_mpicxx |
2769 |
> |
if test -n "$acx_mpi_mpicxx"; then |
2770 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpicxx" >&5 |
2771 |
> |
echo "${ECHO_T}$acx_mpi_mpicxx" >&6; } |
2772 |
|
else |
2773 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
2774 |
|
echo "${ECHO_T}no" >&6; } |
2775 |
|
fi |
2776 |
|
|
2777 |
|
|
2778 |
< |
test -n "$ac_ct_CC" && break |
2778 |
> |
test -n "$acx_mpi_mpicxx" && break |
2779 |
|
done |
2780 |
+ |
test -n "$acx_mpi_mpicxx" || acx_mpi_mpicxx="no" |
2781 |
|
|
2782 |
< |
if test "x$ac_ct_CC" = x; then |
2783 |
< |
CC="" |
2784 |
< |
else |
2785 |
< |
case $cross_compiling:$ac_tool_warned in |
2786 |
< |
yes:) |
2787 |
< |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2788 |
< |
whose name does not start with the host triplet. If you think this |
2789 |
< |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2790 |
< |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2791 |
< |
whose name does not start with the host triplet. If you think this |
2792 |
< |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2793 |
< |
ac_tool_warned=yes ;; |
2794 |
< |
esac |
2795 |
< |
CC=$ac_ct_CC |
2782 |
> |
if test $acx_mpi_mpicxx != no; then |
2783 |
> |
|
2784 |
> |
# Extract the first word of "$acx_mpi_mpicxx", so it can be a program name with args. |
2785 |
> |
set dummy $acx_mpi_mpicxx; ac_word=$2 |
2786 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2787 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2788 |
> |
if test "${ac_cv_path_acx_mpi_mpicxx_path+set}" = set; then |
2789 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2790 |
> |
else |
2791 |
> |
case $acx_mpi_mpicxx_path in |
2792 |
> |
[\\/]* | ?:[\\/]*) |
2793 |
> |
ac_cv_path_acx_mpi_mpicxx_path="$acx_mpi_mpicxx_path" # Let the user override the test with a path. |
2794 |
> |
;; |
2795 |
> |
*) |
2796 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2797 |
> |
for as_dir in $PATH |
2798 |
> |
do |
2799 |
> |
IFS=$as_save_IFS |
2800 |
> |
test -z "$as_dir" && as_dir=. |
2801 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
2802 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2803 |
> |
ac_cv_path_acx_mpi_mpicxx_path="$as_dir/$ac_word$ac_exec_ext" |
2804 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2805 |
> |
break 2 |
2806 |
|
fi |
2807 |
+ |
done |
2808 |
+ |
done |
2809 |
+ |
IFS=$as_save_IFS |
2810 |
+ |
|
2811 |
+ |
test -z "$ac_cv_path_acx_mpi_mpicxx_path" && ac_cv_path_acx_mpi_mpicxx_path="no" |
2812 |
+ |
;; |
2813 |
+ |
esac |
2814 |
|
fi |
2815 |
+ |
acx_mpi_mpicxx_path=$ac_cv_path_acx_mpi_mpicxx_path |
2816 |
+ |
if test -n "$acx_mpi_mpicxx_path"; then |
2817 |
+ |
{ echo "$as_me:$LINENO: result: $acx_mpi_mpicxx_path" >&5 |
2818 |
+ |
echo "${ECHO_T}$acx_mpi_mpicxx_path" >&6; } |
2819 |
+ |
else |
2820 |
+ |
{ echo "$as_me:$LINENO: result: no" >&5 |
2821 |
+ |
echo "${ECHO_T}no" >&6; } |
2822 |
+ |
fi |
2823 |
|
|
2824 |
|
|
2825 |
< |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2932 |
< |
See \`config.log' for more details." >&5 |
2933 |
< |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2934 |
< |
See \`config.log' for more details." >&2;} |
2935 |
< |
{ (exit 1); exit 1; }; } |
2825 |
> |
fi |
2826 |
|
|
2827 |
< |
# Provide some information about the compiler. |
2938 |
< |
echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2939 |
< |
ac_compiler=`set X $ac_compile; echo $2` |
2940 |
< |
{ (ac_try="$ac_compiler --version >&5" |
2941 |
< |
case "(($ac_try" in |
2942 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2943 |
< |
*) ac_try_echo=$ac_try;; |
2944 |
< |
esac |
2945 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2946 |
< |
(eval "$ac_compiler --version >&5") 2>&5 |
2947 |
< |
ac_status=$? |
2948 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2949 |
< |
(exit $ac_status); } |
2950 |
< |
{ (ac_try="$ac_compiler -v >&5" |
2951 |
< |
case "(($ac_try" in |
2952 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2953 |
< |
*) ac_try_echo=$ac_try;; |
2954 |
< |
esac |
2955 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2956 |
< |
(eval "$ac_compiler -v >&5") 2>&5 |
2957 |
< |
ac_status=$? |
2958 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2959 |
< |
(exit $ac_status); } |
2960 |
< |
{ (ac_try="$ac_compiler -V >&5" |
2961 |
< |
case "(($ac_try" in |
2962 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2963 |
< |
*) ac_try_echo=$ac_try;; |
2964 |
< |
esac |
2965 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2966 |
< |
(eval "$ac_compiler -V >&5") 2>&5 |
2967 |
< |
ac_status=$? |
2968 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2969 |
< |
(exit $ac_status); } |
2827 |
> |
if test $acx_mpi_mpicc = no; then |
2828 |
|
|
2829 |
< |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2830 |
< |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
2831 |
< |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2832 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2829 |
> |
if test $acx_mpi_mpicxx = no; then |
2830 |
> |
|
2831 |
> |
acx_mpi_compiler=no |
2832 |
> |
|
2833 |
|
else |
2834 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2834 |
> |
|
2835 |
> |
acx_mpi_compiler=$acx_mpi_mpicxx |
2836 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicxx_path |
2837 |
> |
fi |
2838 |
> |
|
2839 |
> |
|
2840 |
> |
else |
2841 |
> |
|
2842 |
> |
if test $acx_mpi_mpicxx = no; then |
2843 |
> |
|
2844 |
> |
acx_mpi_compiler=$acx_mpi_mpicc |
2845 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicc_path |
2846 |
> |
|
2847 |
> |
else |
2848 |
> |
|
2849 |
> |
{ echo "$as_me:$LINENO: checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx" >&5 |
2850 |
> |
echo $ECHO_N "checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx... $ECHO_C" >&6; } |
2851 |
> |
ac_ext=cpp |
2852 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
2853 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2854 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2855 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2856 |
> |
|
2857 |
> |
cat >conftest.$ac_ext <<_ACEOF |
2858 |
|
/* confdefs.h. */ |
2859 |
|
_ACEOF |
2860 |
|
cat confdefs.h >>conftest.$ac_ext |
2861 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2862 |
|
/* end confdefs.h. */ |
2863 |
|
|
2864 |
+ |
#include <mpi.h> |
2865 |
+ |
|
2866 |
|
int |
2867 |
|
main () |
2868 |
|
{ |
2986 |
– |
#ifndef __GNUC__ |
2987 |
– |
choke me |
2988 |
– |
#endif |
2869 |
|
|
2870 |
+ |
MPI_Finalize(); |
2871 |
+ |
|
2872 |
|
; |
2873 |
|
return 0; |
2874 |
|
} |
2875 |
|
_ACEOF |
2876 |
< |
rm -f conftest.$ac_objext |
2995 |
< |
if { (ac_try="$ac_compile" |
2876 |
> |
if { (ac_try="$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5" |
2877 |
|
case "(($ac_try" in |
2878 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2879 |
|
*) ac_try_echo=$ac_try;; |
2880 |
|
esac |
2881 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2882 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2882 |
> |
(eval "$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5") 2>conftest.er1 |
2883 |
|
ac_status=$? |
2884 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2885 |
|
rm -f conftest.er1 |
2886 |
|
cat conftest.err >&5 |
2887 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2888 |
|
(exit $ac_status); } && { |
2889 |
< |
test -z "$ac_c_werror_flag" || |
2890 |
< |
test ! -s conftest.err |
2889 |
> |
test -z "$ac_cxx_werror_flag" || |
2890 |
> |
test ! -s conftest.err |
2891 |
|
} && test -s conftest.$ac_objext; then |
2892 |
< |
ac_compiler_gnu=yes |
2892 |
> |
|
2893 |
> |
acx_mpi_compiler=$acx_mpi_mpicxx |
2894 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicxx_path |
2895 |
> |
|
2896 |
|
else |
3013 |
– |
echo "$as_me: failed program was:" >&5 |
3014 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
2897 |
|
|
2898 |
< |
ac_compiler_gnu=no |
2898 |
> |
acx_mpi_compiler=$acx_mpi_mpicc |
2899 |
> |
acx_mpi_compiler_path=$acx_mpi_mpicc_path |
2900 |
|
fi |
2901 |
|
|
2902 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2903 |
< |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2902 |
> |
ac_ext=c |
2903 |
> |
ac_cpp='$CPP $CPPFLAGS' |
2904 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2905 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2906 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2907 |
|
|
2908 |
+ |
{ echo "$as_me:$LINENO: result: $acx_mpi_compiler" >&5 |
2909 |
+ |
echo "${ECHO_T}$acx_mpi_compiler" >&6; } |
2910 |
|
fi |
2911 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2912 |
< |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
2913 |
< |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2914 |
< |
ac_test_CFLAGS=${CFLAGS+set} |
2915 |
< |
ac_save_CFLAGS=$CFLAGS |
2916 |
< |
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2917 |
< |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
2918 |
< |
if test "${ac_cv_prog_cc_g+set}" = set; then |
2919 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2911 |
> |
|
2912 |
> |
fi |
2913 |
> |
|
2914 |
> |
{ echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
2915 |
> |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6; } |
2916 |
> |
ac_ext=${ac_fc_srcext-f} |
2917 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
2918 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
2919 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
2920 |
> |
|
2921 |
> |
ac_save_ext=$ac_ext |
2922 |
> |
ac_ext=F90 |
2923 |
> |
rm -f conftest* |
2924 |
> |
cat >conftest.$ac_ext <<EOF |
2925 |
> |
program main |
2926 |
> |
include 'mpif.h' |
2927 |
> |
call MPI_Init |
2928 |
> |
end |
2929 |
> |
EOF |
2930 |
> |
if $acx_mpi_mpif90_path -c conftest.$ac_ext > conftest.out 2>&1 ; then |
2931 |
> |
acx_mpi_f90_compiler=yes |
2932 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2933 |
> |
echo "${ECHO_T}yes" >&6; } |
2934 |
|
else |
2935 |
< |
ac_save_c_werror_flag=$ac_c_werror_flag |
2936 |
< |
ac_c_werror_flag=yes |
2937 |
< |
ac_cv_prog_cc_g=no |
2938 |
< |
CFLAGS="-g" |
2939 |
< |
cat >conftest.$ac_ext <<_ACEOF |
2940 |
< |
/* confdefs.h. */ |
2941 |
< |
_ACEOF |
2942 |
< |
cat confdefs.h >>conftest.$ac_ext |
2943 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
2944 |
< |
/* end confdefs.h. */ |
2935 |
> |
if test -s conftest.out ; then |
2936 |
> |
cat conftest.out >> config.log |
2937 |
> |
fi |
2938 |
> |
acx_mpi_f90_compiler=no |
2939 |
> |
{ echo "$as_me:$LINENO: result: no! Check MPI fortran include paths" >&5 |
2940 |
> |
echo "${ECHO_T}no! Check MPI fortran include paths" >&6; } |
2941 |
> |
fi |
2942 |
> |
rm -f conftest* |
2943 |
> |
ac_ext=$ac_save_ext |
2944 |
> |
ac_ext=c |
2945 |
> |
ac_cpp='$CPP $CPPFLAGS' |
2946 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2947 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2948 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2949 |
|
|
2950 |
< |
int |
3045 |
< |
main () |
3046 |
< |
{ |
2950 |
> |
if test $acx_mpi_compiler = no || test $acx_mpi_f90_compiler = no; then |
2951 |
|
|
2952 |
< |
; |
2953 |
< |
return 0; |
2954 |
< |
} |
2955 |
< |
_ACEOF |
2956 |
< |
rm -f conftest.$ac_objext |
2957 |
< |
if { (ac_try="$ac_compile" |
2952 |
> |
acx_cv_mpi_implementation=no |
2953 |
> |
else |
2954 |
> |
{ echo "$as_me:$LINENO: checking for the MPI implementation flavor" >&5 |
2955 |
> |
echo $ECHO_N "checking for the MPI implementation flavor... $ECHO_C" >&6; } |
2956 |
> |
if test "${acx_cv_mpi_implementation+set}" = set; then |
2957 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2958 |
> |
else |
2959 |
> |
acx_cv_mpi_implementation=no |
2960 |
> |
if { (ac_try="grep -q LAM $acx_mpi_compiler_path" |
2961 |
|
case "(($ac_try" in |
2962 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2963 |
|
*) ac_try_echo=$ac_try;; |
2964 |
|
esac |
2965 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2966 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2966 |
> |
(eval "grep -q LAM $acx_mpi_compiler_path") 2>conftest.er1 |
2967 |
|
ac_status=$? |
2968 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2969 |
|
rm -f conftest.er1 |
2970 |
|
cat conftest.err >&5 |
2971 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2972 |
< |
(exit $ac_status); } && { |
3066 |
< |
test -z "$ac_c_werror_flag" || |
3067 |
< |
test ! -s conftest.err |
3068 |
< |
} && test -s conftest.$ac_objext; then |
3069 |
< |
ac_cv_prog_cc_g=yes |
3070 |
< |
else |
3071 |
< |
echo "$as_me: failed program was:" >&5 |
3072 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2972 |
> |
(exit $ac_status); }; then |
2973 |
|
|
2974 |
< |
CFLAGS="" |
3075 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3076 |
< |
/* confdefs.h. */ |
3077 |
< |
_ACEOF |
3078 |
< |
cat confdefs.h >>conftest.$ac_ext |
3079 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
3080 |
< |
/* end confdefs.h. */ |
2974 |
> |
acx_cv_mpi_implementation=lammpi |
2975 |
|
|
2976 |
< |
int |
3083 |
< |
main () |
3084 |
< |
{ |
2976 |
> |
else |
2977 |
|
|
2978 |
< |
; |
3087 |
< |
return 0; |
3088 |
< |
} |
3089 |
< |
_ACEOF |
3090 |
< |
rm -f conftest.$ac_objext |
3091 |
< |
if { (ac_try="$ac_compile" |
2978 |
> |
if { (ac_try="grep -q showme $acx_mpi_compiler_path" |
2979 |
|
case "(($ac_try" in |
2980 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2981 |
|
*) ac_try_echo=$ac_try;; |
2982 |
|
esac |
2983 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2984 |
< |
(eval "$ac_compile") 2>conftest.er1 |
2984 |
> |
(eval "grep -q showme $acx_mpi_compiler_path") 2>conftest.er1 |
2985 |
|
ac_status=$? |
2986 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2987 |
|
rm -f conftest.er1 |
2988 |
|
cat conftest.err >&5 |
2989 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2990 |
< |
(exit $ac_status); } && { |
3104 |
< |
test -z "$ac_c_werror_flag" || |
3105 |
< |
test ! -s conftest.err |
3106 |
< |
} && test -s conftest.$ac_objext; then |
3107 |
< |
: |
3108 |
< |
else |
3109 |
< |
echo "$as_me: failed program was:" >&5 |
3110 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
2990 |
> |
(exit $ac_status); }; then |
2991 |
|
|
2992 |
< |
ac_c_werror_flag=$ac_save_c_werror_flag |
3113 |
< |
CFLAGS="-g" |
3114 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3115 |
< |
/* confdefs.h. */ |
3116 |
< |
_ACEOF |
3117 |
< |
cat confdefs.h >>conftest.$ac_ext |
3118 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
3119 |
< |
/* end confdefs.h. */ |
2992 |
> |
acx_cv_mpi_implementation=openmpi |
2993 |
|
|
2994 |
< |
int |
3122 |
< |
main () |
3123 |
< |
{ |
2994 |
> |
else |
2995 |
|
|
2996 |
< |
; |
3126 |
< |
return 0; |
3127 |
< |
} |
3128 |
< |
_ACEOF |
3129 |
< |
rm -f conftest.$ac_objext |
3130 |
< |
if { (ac_try="$ac_compile" |
2996 |
> |
if { (ac_try="grep -q MPICH $acx_mpi_compiler_path" |
2997 |
|
case "(($ac_try" in |
2998 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2999 |
|
*) ac_try_echo=$ac_try;; |
3000 |
|
esac |
3001 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3002 |
< |
(eval "$ac_compile") 2>conftest.er1 |
3002 |
> |
(eval "grep -q MPICH $acx_mpi_compiler_path") 2>conftest.er1 |
3003 |
|
ac_status=$? |
3004 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3005 |
|
rm -f conftest.er1 |
3006 |
|
cat conftest.err >&5 |
3007 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3008 |
< |
(exit $ac_status); } && { |
3143 |
< |
test -z "$ac_c_werror_flag" || |
3144 |
< |
test ! -s conftest.err |
3145 |
< |
} && test -s conftest.$ac_objext; then |
3146 |
< |
ac_cv_prog_cc_g=yes |
3147 |
< |
else |
3148 |
< |
echo "$as_me: failed program was:" >&5 |
3149 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
3008 |
> |
(exit $ac_status); }; then |
3009 |
|
|
3010 |
+ |
acx_cv_mpi_implementation=mpich |
3011 |
|
|
3012 |
+ |
else |
3013 |
+ |
acx_cv_mpi_implementation=$with_mpi |
3014 |
|
fi |
3015 |
|
|
3154 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3016 |
|
fi |
3017 |
|
|
3157 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3018 |
|
fi |
3019 |
|
|
3160 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3161 |
– |
ac_c_werror_flag=$ac_save_c_werror_flag |
3020 |
|
fi |
3021 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3022 |
< |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
3023 |
< |
if test "$ac_test_CFLAGS" = set; then |
3166 |
< |
CFLAGS=$ac_save_CFLAGS |
3167 |
< |
elif test $ac_cv_prog_cc_g = yes; then |
3168 |
< |
if test "$GCC" = yes; then |
3169 |
< |
CFLAGS="-g -O2" |
3170 |
< |
else |
3171 |
< |
CFLAGS="-g" |
3172 |
< |
fi |
3173 |
< |
else |
3174 |
< |
if test "$GCC" = yes; then |
3175 |
< |
CFLAGS="-O2" |
3176 |
< |
else |
3177 |
< |
CFLAGS= |
3178 |
< |
fi |
3021 |
> |
{ echo "$as_me:$LINENO: result: $acx_cv_mpi_implementation" >&5 |
3022 |
> |
echo "${ECHO_T}$acx_cv_mpi_implementation" >&6; } |
3023 |
> |
|
3024 |
|
fi |
3025 |
< |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3026 |
< |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3027 |
< |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
3028 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3029 |
< |
else |
3030 |
< |
ac_cv_prog_cc_c89=no |
3031 |
< |
ac_save_CC=$CC |
3032 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3033 |
< |
/* confdefs.h. */ |
3025 |
> |
case $acx_cv_mpi_implementation in |
3026 |
> |
(lammpi) |
3027 |
> |
|
3028 |
> |
cat >>confdefs.h <<\_ACEOF |
3029 |
> |
#define MPI_IS_LAMMPI 1 |
3030 |
> |
_ACEOF |
3031 |
> |
|
3032 |
> |
;; |
3033 |
> |
(openmpi) |
3034 |
> |
|
3035 |
> |
cat >>confdefs.h <<\_ACEOF |
3036 |
> |
#define MPI_IS_OPENMPI 1 |
3037 |
> |
_ACEOF |
3038 |
> |
|
3039 |
> |
;; |
3040 |
> |
(mpich) |
3041 |
> |
|
3042 |
> |
cat >>confdefs.h <<\_ACEOF |
3043 |
> |
#define MPI_IS_MPICH 1 |
3044 |
|
_ACEOF |
3190 |
– |
cat confdefs.h >>conftest.$ac_ext |
3191 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
3192 |
– |
/* end confdefs.h. */ |
3193 |
– |
#include <stdarg.h> |
3194 |
– |
#include <stdio.h> |
3195 |
– |
#include <sys/types.h> |
3196 |
– |
#include <sys/stat.h> |
3197 |
– |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3198 |
– |
struct buf { int x; }; |
3199 |
– |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3200 |
– |
static char *e (p, i) |
3201 |
– |
char **p; |
3202 |
– |
int i; |
3203 |
– |
{ |
3204 |
– |
return p[i]; |
3205 |
– |
} |
3206 |
– |
static char *f (char * (*g) (char **, int), char **p, ...) |
3207 |
– |
{ |
3208 |
– |
char *s; |
3209 |
– |
va_list v; |
3210 |
– |
va_start (v,p); |
3211 |
– |
s = g (p, va_arg (v,int)); |
3212 |
– |
va_end (v); |
3213 |
– |
return s; |
3214 |
– |
} |
3045 |
|
|
3046 |
< |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3047 |
< |
function prototypes and stuff, but not '\xHH' hex character constants. |
3048 |
< |
These don't provoke an error unfortunately, instead are silently treated |
3219 |
< |
as 'x'. The following induces an error, until -std is added to get |
3220 |
< |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3221 |
< |
array size at least. It's necessary to write '\x00'==0 to get something |
3222 |
< |
that's true only with -std. */ |
3223 |
< |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3046 |
> |
;; |
3047 |
> |
esac |
3048 |
> |
if test $acx_cv_mpi_implementation = no; then |
3049 |
|
|
3050 |
< |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3051 |
< |
inside strings and character constants. */ |
3052 |
< |
#define FOO(x) 'x' |
3053 |
< |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3050 |
> |
acx_mpi_cflags="" |
3051 |
> |
acx_mpi_libs="" |
3052 |
> |
USE_MPI="no" |
3053 |
> |
{ echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5 |
3054 |
> |
echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;} |
3055 |
> |
else |
3056 |
|
|
3057 |
< |
int test (int i, double x); |
3058 |
< |
struct s1 {int (*f) (int a);}; |
3059 |
< |
struct s2 {int (*f) (double a);}; |
3060 |
< |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3061 |
< |
int argc; |
3235 |
< |
char **argv; |
3236 |
< |
int |
3237 |
< |
main () |
3238 |
< |
{ |
3239 |
< |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3240 |
< |
; |
3241 |
< |
return 0; |
3242 |
< |
} |
3243 |
< |
_ACEOF |
3244 |
< |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3245 |
< |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3246 |
< |
do |
3247 |
< |
CC="$ac_save_CC $ac_arg" |
3248 |
< |
rm -f conftest.$ac_objext |
3249 |
< |
if { (ac_try="$ac_compile" |
3250 |
< |
case "(($ac_try" in |
3251 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3252 |
< |
*) ac_try_echo=$ac_try;; |
3253 |
< |
esac |
3254 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3255 |
< |
(eval "$ac_compile") 2>conftest.er1 |
3256 |
< |
ac_status=$? |
3257 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
3258 |
< |
rm -f conftest.er1 |
3259 |
< |
cat conftest.err >&5 |
3260 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3261 |
< |
(exit $ac_status); } && { |
3262 |
< |
test -z "$ac_c_werror_flag" || |
3263 |
< |
test ! -s conftest.err |
3264 |
< |
} && test -s conftest.$ac_objext; then |
3265 |
< |
ac_cv_prog_cc_c89=$ac_arg |
3057 |
> |
|
3058 |
> |
{ echo "$as_me:$LINENO: checking how to compile MPI-C code" >&5 |
3059 |
> |
echo $ECHO_N "checking how to compile MPI-C code... $ECHO_C" >&6; } |
3060 |
> |
if test "${acx_mpi_cflags+set}" = set; then |
3061 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3062 |
|
else |
3267 |
– |
echo "$as_me: failed program was:" >&5 |
3268 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
3063 |
|
|
3064 |
+ |
case $acx_cv_mpi_implementation in |
3065 |
+ |
(lammpi) |
3066 |
+ |
cfo="--showme:compile" |
3067 |
+ |
;; |
3068 |
+ |
(openmpi) |
3069 |
+ |
cfo="--showme:compile" |
3070 |
+ |
;; |
3071 |
+ |
(mpich) |
3072 |
+ |
case "$acx_mpi_compiler_path" in |
3073 |
+ |
(*mpiCC) |
3074 |
+ |
sc_cv_cn="-CC=" |
3075 |
+ |
;; |
3076 |
+ |
(*mpicxx) |
3077 |
+ |
sc_cv_cn="-cxx=" |
3078 |
+ |
;; |
3079 |
+ |
(*mpicc) |
3080 |
+ |
sc_cv_cn="-cc=" |
3081 |
+ |
;; |
3082 |
+ |
(*) |
3083 |
+ |
sc_cv_cn="" |
3084 |
+ |
;; |
3085 |
+ |
esac |
3086 |
+ |
cfo="-compile_info $sc_cv_cn" |
3087 |
+ |
;; |
3088 |
+ |
esac |
3089 |
+ |
echo "$as_me:$LINENO: mpi_pre_cflags=\"\`$acx_mpi_compiler_path $cfo || echo ' no'\`\"" >&5 |
3090 |
+ |
mpi_pre_cflags="`$acx_mpi_compiler_path $cfo 2>conftest.er1 || echo ' no'`" |
3091 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3092 |
+ |
rm -f conftest.er1 |
3093 |
+ |
cat conftest.err >&5 |
3094 |
+ |
echo "$as_me:$LINENO: mpi_pre_cflags = $mpi_pre_cflags" >&5 |
3095 |
+ |
case "$mpi_pre_cflags" in |
3096 |
+ |
(*no) |
3097 |
+ |
acx_mpi_cflags=no |
3098 |
+ |
acx_mpi_cflags="no" |
3099 |
+ |
;; |
3100 |
+ |
(*) |
3101 |
+ |
acx_mpi_tmp_mode="normal" |
3102 |
+ |
acx_mpi_tmp_prefix="" |
3103 |
+ |
eval "acx_mpi_cflags=\"\"" |
3104 |
+ |
for acx_mpi_tmp in $mpi_pre_cflags; do |
3105 |
+ |
case "$acx_mpi_tmp_mode" in |
3106 |
+ |
(normal) |
3107 |
+ |
case "$acx_mpi_tmp" in |
3108 |
+ |
(-I|-D) |
3109 |
+ |
acx_mpi_tmp_prefix="$acx_mpi_tmp" |
3110 |
+ |
acx_mpi_tmp_mode="accept" |
3111 |
+ |
;; |
3112 |
+ |
(-I*|-D*) |
3113 |
+ |
eval "acx_mpi_cflags=\"`eval echo '${'\\acx_mpi_cflags'}'` \$acx_mpi_tmp\"" |
3114 |
+ |
;; |
3115 |
+ |
(-L|-l) |
3116 |
+ |
acx_mpi_tmp_mode="skip" |
3117 |
+ |
;; |
3118 |
+ |
(*) |
3119 |
+ |
;; |
3120 |
+ |
esac |
3121 |
+ |
;; |
3122 |
+ |
(accept) |
3123 |
+ |
eval "acx_mpi_cflags=\"`eval echo '${'\\acx_mpi_cflags'}'` \$acx_mpi_tmp_prefix \$acx_mpi_tmp\"" |
3124 |
+ |
;; |
3125 |
+ |
(skip) |
3126 |
+ |
;; |
3127 |
+ |
esac |
3128 |
+ |
done |
3129 |
|
|
3130 |
+ |
;; |
3131 |
+ |
esac |
3132 |
+ |
|
3133 |
|
fi |
3134 |
+ |
{ echo "$as_me:$LINENO: result: $acx_mpi_cflags" >&5 |
3135 |
+ |
echo "${ECHO_T}$acx_mpi_cflags" >&6; } |
3136 |
|
|
3273 |
– |
rm -f core conftest.err conftest.$ac_objext |
3274 |
– |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3275 |
– |
done |
3276 |
– |
rm -f conftest.$ac_ext |
3277 |
– |
CC=$ac_save_CC |
3137 |
|
|
3138 |
< |
fi |
3139 |
< |
# AC_CACHE_VAL |
3140 |
< |
case "x$ac_cv_prog_cc_c89" in |
3141 |
< |
x) |
3142 |
< |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
3143 |
< |
echo "${ECHO_T}none needed" >&6; } ;; |
3144 |
< |
xno) |
3145 |
< |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
3146 |
< |
echo "${ECHO_T}unsupported" >&6; } ;; |
3147 |
< |
*) |
3148 |
< |
CC="$CC $ac_cv_prog_cc_c89" |
3149 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3150 |
< |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
3138 |
> |
{ echo "$as_me:$LINENO: checking how to link MPI-C code" >&5 |
3139 |
> |
echo $ECHO_N "checking how to link MPI-C code... $ECHO_C" >&6; } |
3140 |
> |
if test "${acx_mpi_libs+set}" = set; then |
3141 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3142 |
> |
else |
3143 |
> |
|
3144 |
> |
case $acx_cv_mpi_implementation in |
3145 |
> |
(lammpi) |
3146 |
> |
lfo="--showme:compile --showme:link" |
3147 |
> |
;; |
3148 |
> |
(openmpi) |
3149 |
> |
lfo="--showme:link" |
3150 |
> |
;; |
3151 |
> |
(mpich) |
3152 |
> |
case "$acx_mpi_compiler_path" in |
3153 |
> |
(*mpiCC) |
3154 |
> |
sc_cv_cn="-CC=" |
3155 |
> |
;; |
3156 |
> |
(*mpicxx) |
3157 |
> |
sc_cv_cn="-cxx=" |
3158 |
> |
;; |
3159 |
> |
(*mpicc) |
3160 |
> |
sc_cv_cn="-cc=" |
3161 |
> |
;; |
3162 |
> |
(*) |
3163 |
> |
sc_cv_cn="" |
3164 |
> |
;; |
3165 |
> |
esac |
3166 |
> |
lfo="-link_info $sc_cv_cn" |
3167 |
> |
;; |
3168 |
|
esac |
3169 |
+ |
echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_compiler_path $lfo || echo ' no'\`\"" >&5 |
3170 |
+ |
mpi_pre_libs="`$acx_mpi_compiler_path $lfo 2>conftest.er1 || echo ' no'`" |
3171 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
3172 |
+ |
rm -f conftest.er1 |
3173 |
+ |
cat conftest.err >&5 |
3174 |
+ |
echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5 |
3175 |
+ |
case "$mpi_pre_libs" in |
3176 |
+ |
(*no) |
3177 |
+ |
acx_mpi_libs=no |
3178 |
+ |
;; |
3179 |
+ |
(*) |
3180 |
+ |
acx_mpi_libs="$mpi_pre_libs" |
3181 |
+ |
;; |
3182 |
+ |
esac |
3183 |
|
|
3184 |
+ |
fi |
3185 |
+ |
{ echo "$as_me:$LINENO: result: $acx_mpi_libs" >&5 |
3186 |
+ |
echo "${ECHO_T}$acx_mpi_libs" >&6; } |
3187 |
|
|
3188 |
< |
ac_ext=c |
3296 |
< |
ac_cpp='$CPP $CPPFLAGS' |
3297 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3298 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3299 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3188 |
> |
if test $acx_mpi_mpif90_path != no; then |
3189 |
|
|
3190 |
< |
ac_ext=${ac_fc_srcext-f} |
3191 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
3192 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
3193 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
3194 |
< |
if test -n "$ac_tool_prefix"; then |
3195 |
< |
for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
3190 |
> |
|
3191 |
> |
{ echo "$as_me:$LINENO: checking how to link MPI-Fortran code" >&5 |
3192 |
> |
echo $ECHO_N "checking how to link MPI-Fortran code... $ECHO_C" >&6; } |
3193 |
> |
if test "${acx_mpi90_libs+set}" = set; then |
3194 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3195 |
> |
else |
3196 |
> |
|
3197 |
> |
echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_mpif90_path $lfo || echo \" no\"\`\"" >&5 |
3198 |
> |
mpi_pre_libs="`$acx_mpi_mpif90_path $lfo 2>conftest.er1 || echo " no"`" |
3199 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3200 |
> |
rm -f conftest.er1 |
3201 |
> |
cat conftest.err >&5 |
3202 |
> |
echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5 |
3203 |
> |
case "$mpi_pre_libs" in |
3204 |
> |
(*no) |
3205 |
> |
acx_mpi90_libs=no |
3206 |
> |
;; |
3207 |
> |
(*) |
3208 |
> |
acx_mpi90_libs="$mpi_pre_libs" |
3209 |
> |
;; |
3210 |
> |
esac |
3211 |
> |
|
3212 |
> |
fi |
3213 |
> |
{ echo "$as_me:$LINENO: result: $acx_mpi90_libs" >&5 |
3214 |
> |
echo "${ECHO_T}$acx_mpi90_libs" >&6; } |
3215 |
> |
|
3216 |
> |
|
3217 |
> |
fi |
3218 |
> |
|
3219 |
> |
if test "$acx_mpi_cflags" = no -o "$acx_mpi_libs" = no; then |
3220 |
> |
|
3221 |
> |
acx_mpi_cflags="" |
3222 |
> |
acx_mpi_libs="" |
3223 |
> |
USE_MPI="no" |
3224 |
> |
{ echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5 |
3225 |
> |
echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;} |
3226 |
> |
else |
3227 |
> |
|
3228 |
> |
MPI_CPPFLAGS=$acx_mpi_cflags |
3229 |
> |
|
3230 |
> |
MPI_LIBS=$acx_mpi_libs |
3231 |
> |
|
3232 |
> |
if test "$acx_mpi90_libs" != no; then |
3233 |
> |
MPI90_LIBS=$acx_mpi90_libs |
3234 |
> |
|
3235 |
> |
fi |
3236 |
> |
|
3237 |
> |
USE_MPI="yes" |
3238 |
> |
fi |
3239 |
> |
|
3240 |
> |
|
3241 |
> |
fi |
3242 |
> |
|
3243 |
> |
|
3244 |
> |
fi |
3245 |
> |
|
3246 |
> |
|
3247 |
> |
|
3248 |
> |
# Checks for programs. |
3249 |
> |
ac_ext=cpp |
3250 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
3251 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3252 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3253 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3254 |
> |
if test -z "$CXX"; then |
3255 |
> |
if test -n "$CCC"; then |
3256 |
> |
CXX=$CCC |
3257 |
> |
else |
3258 |
> |
if test -n "$ac_tool_prefix"; then |
3259 |
> |
for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
3260 |
|
do |
3261 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3262 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3263 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3264 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3265 |
< |
if test "${ac_cv_prog_FC+set}" = set; then |
3265 |
> |
if test "${ac_cv_prog_CXX+set}" = set; then |
3266 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3267 |
|
else |
3268 |
< |
if test -n "$FC"; then |
3269 |
< |
ac_cv_prog_FC="$FC" # Let the user override the test. |
3268 |
> |
if test -n "$CXX"; then |
3269 |
> |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
3270 |
|
else |
3271 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3272 |
|
for as_dir in $PATH |
3275 |
|
test -z "$as_dir" && as_dir=. |
3276 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3277 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3278 |
< |
ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
3278 |
> |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3279 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3280 |
|
break 2 |
3281 |
|
fi |
3285 |
|
|
3286 |
|
fi |
3287 |
|
fi |
3288 |
< |
FC=$ac_cv_prog_FC |
3289 |
< |
if test -n "$FC"; then |
3290 |
< |
{ echo "$as_me:$LINENO: result: $FC" >&5 |
3291 |
< |
echo "${ECHO_T}$FC" >&6; } |
3288 |
> |
CXX=$ac_cv_prog_CXX |
3289 |
> |
if test -n "$CXX"; then |
3290 |
> |
{ echo "$as_me:$LINENO: result: $CXX" >&5 |
3291 |
> |
echo "${ECHO_T}$CXX" >&6; } |
3292 |
|
else |
3293 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
3294 |
|
echo "${ECHO_T}no" >&6; } |
3295 |
|
fi |
3296 |
|
|
3297 |
|
|
3298 |
< |
test -n "$FC" && break |
3298 |
> |
test -n "$CXX" && break |
3299 |
|
done |
3300 |
|
fi |
3301 |
< |
if test -z "$FC"; then |
3302 |
< |
ac_ct_FC=$FC |
3303 |
< |
for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
3301 |
> |
if test -z "$CXX"; then |
3302 |
> |
ac_ct_CXX=$CXX |
3303 |
> |
for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC |
3304 |
|
do |
3305 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3306 |
|
set dummy $ac_prog; ac_word=$2 |
3307 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3308 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3309 |
< |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
3309 |
> |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
3310 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3311 |
|
else |
3312 |
< |
if test -n "$ac_ct_FC"; then |
3313 |
< |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
3312 |
> |
if test -n "$ac_ct_CXX"; then |
3313 |
> |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
3314 |
|
else |
3315 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3316 |
|
for as_dir in $PATH |
3319 |
|
test -z "$as_dir" && as_dir=. |
3320 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
3321 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3322 |
< |
ac_cv_prog_ac_ct_FC="$ac_prog" |
3322 |
> |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
3323 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3324 |
|
break 2 |
3325 |
|
fi |
3329 |
|
|
3330 |
|
fi |
3331 |
|
fi |
3332 |
< |
ac_ct_FC=$ac_cv_prog_ac_ct_FC |
3333 |
< |
if test -n "$ac_ct_FC"; then |
3334 |
< |
{ echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 |
3335 |
< |
echo "${ECHO_T}$ac_ct_FC" >&6; } |
3332 |
> |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
3333 |
> |
if test -n "$ac_ct_CXX"; then |
3334 |
> |
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3335 |
> |
echo "${ECHO_T}$ac_ct_CXX" >&6; } |
3336 |
|
else |
3337 |
|
{ echo "$as_me:$LINENO: result: no" >&5 |
3338 |
|
echo "${ECHO_T}no" >&6; } |
3339 |
|
fi |
3340 |
|
|
3341 |
|
|
3342 |
< |
test -n "$ac_ct_FC" && break |
3342 |
> |
test -n "$ac_ct_CXX" && break |
3343 |
|
done |
3344 |
|
|
3345 |
< |
if test "x$ac_ct_FC" = x; then |
3346 |
< |
FC="" |
3345 |
> |
if test "x$ac_ct_CXX" = x; then |
3346 |
> |
CXX="g++" |
3347 |
|
else |
3348 |
|
case $cross_compiling:$ac_tool_warned in |
3349 |
|
yes:) |
3355 |
|
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
3356 |
|
ac_tool_warned=yes ;; |
3357 |
|
esac |
3358 |
< |
FC=$ac_ct_FC |
3358 |
> |
CXX=$ac_ct_CXX |
3359 |
|
fi |
3360 |
|
fi |
3361 |
|
|
3362 |
< |
|
3362 |
> |
fi |
3363 |
> |
fi |
3364 |
|
# Provide some information about the compiler. |
3365 |
< |
echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 |
3365 |
> |
echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
3366 |
|
ac_compiler=`set X $ac_compile; echo $2` |
3367 |
|
{ (ac_try="$ac_compiler --version >&5" |
3368 |
|
case "(($ac_try" in |
3394 |
|
ac_status=$? |
3395 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3396 |
|
(exit $ac_status); } |
3443 |
– |
rm -f a.out |
3397 |
|
|
3398 |
< |
# If we don't use `.F' as extension, the preprocessor is not run on the |
3399 |
< |
# input file. (Note that this only needs to work for GNU compilers.) |
3400 |
< |
ac_save_ext=$ac_ext |
3401 |
< |
ac_ext=F |
3402 |
< |
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
3403 |
< |
echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; } |
3451 |
< |
if test "${ac_cv_fc_compiler_gnu+set}" = set; then |
3452 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3453 |
< |
else |
3454 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3455 |
< |
program main |
3456 |
< |
#ifndef __GNUC__ |
3457 |
< |
choke me |
3458 |
< |
#endif |
3398 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3399 |
> |
/* confdefs.h. */ |
3400 |
> |
_ACEOF |
3401 |
> |
cat confdefs.h >>conftest.$ac_ext |
3402 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3403 |
> |
/* end confdefs.h. */ |
3404 |
|
|
3405 |
< |
end |
3405 |
> |
int |
3406 |
> |
main () |
3407 |
> |
{ |
3408 |
> |
|
3409 |
> |
; |
3410 |
> |
return 0; |
3411 |
> |
} |
3412 |
|
_ACEOF |
3413 |
< |
rm -f conftest.$ac_objext |
3414 |
< |
if { (ac_try="$ac_compile" |
3413 |
> |
ac_clean_files_save=$ac_clean_files |
3414 |
> |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
3415 |
> |
# Try to create an executable without -o first, disregard a.out. |
3416 |
> |
# It will help us diagnose broken compilers, and finding out an intuition |
3417 |
> |
# of exeext. |
3418 |
> |
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
3419 |
> |
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } |
3420 |
> |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3421 |
> |
# |
3422 |
> |
# List of possible output files, starting from the most likely. |
3423 |
> |
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
3424 |
> |
# only as a last resort. b.out is created by i960 compilers. |
3425 |
> |
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
3426 |
> |
# |
3427 |
> |
# The IRIX 6 linker writes into existing files which may not be |
3428 |
> |
# executable, retaining their permissions. Remove them first so a |
3429 |
> |
# subsequent execution test works. |
3430 |
> |
ac_rmfiles= |
3431 |
> |
for ac_file in $ac_files |
3432 |
> |
do |
3433 |
> |
case $ac_file in |
3434 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
3435 |
> |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3436 |
> |
esac |
3437 |
> |
done |
3438 |
> |
rm -f $ac_rmfiles |
3439 |
> |
|
3440 |
> |
if { (ac_try="$ac_link_default" |
3441 |
|
case "(($ac_try" in |
3442 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3443 |
|
*) ac_try_echo=$ac_try;; |
3444 |
|
esac |
3445 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3446 |
< |
(eval "$ac_compile") 2>conftest.er1 |
3446 |
> |
(eval "$ac_link_default") 2>&5 |
3447 |
|
ac_status=$? |
3471 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
3472 |
– |
rm -f conftest.er1 |
3473 |
– |
cat conftest.err >&5 |
3448 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3449 |
< |
(exit $ac_status); } && { |
3450 |
< |
test -z "$ac_fc_werror_flag" || |
3451 |
< |
test ! -s conftest.err |
3452 |
< |
} && test -s conftest.$ac_objext; then |
3453 |
< |
ac_compiler_gnu=yes |
3449 |
> |
(exit $ac_status); }; then |
3450 |
> |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3451 |
> |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3452 |
> |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3453 |
> |
# so that the user can short-circuit this test for compilers unknown to |
3454 |
> |
# Autoconf. |
3455 |
> |
for ac_file in $ac_files '' |
3456 |
> |
do |
3457 |
> |
test -f "$ac_file" || continue |
3458 |
> |
case $ac_file in |
3459 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
3460 |
> |
;; |
3461 |
> |
[ab].out ) |
3462 |
> |
# We found the default executable, but exeext='' is most |
3463 |
> |
# certainly right. |
3464 |
> |
break;; |
3465 |
> |
*.* ) |
3466 |
> |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3467 |
> |
then :; else |
3468 |
> |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3469 |
> |
fi |
3470 |
> |
# We set ac_cv_exeext here because the later test for it is not |
3471 |
> |
# safe: cross compilers may not add the suffix if given an `-o' |
3472 |
> |
# argument, so we may need to know it at that point already. |
3473 |
> |
# Even if this section looks crufty: it has the advantage of |
3474 |
> |
# actually working. |
3475 |
> |
break;; |
3476 |
> |
* ) |
3477 |
> |
break;; |
3478 |
> |
esac |
3479 |
> |
done |
3480 |
> |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
3481 |
> |
|
3482 |
|
else |
3483 |
+ |
ac_file='' |
3484 |
+ |
fi |
3485 |
+ |
|
3486 |
+ |
{ echo "$as_me:$LINENO: result: $ac_file" >&5 |
3487 |
+ |
echo "${ECHO_T}$ac_file" >&6; } |
3488 |
+ |
if test -z "$ac_file"; then |
3489 |
|
echo "$as_me: failed program was:" >&5 |
3490 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3491 |
|
|
3492 |
< |
ac_compiler_gnu=no |
3492 |
> |
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
3493 |
> |
See \`config.log' for more details." >&5 |
3494 |
> |
echo "$as_me: error: C++ compiler cannot create executables |
3495 |
> |
See \`config.log' for more details." >&2;} |
3496 |
> |
{ (exit 77); exit 77; }; } |
3497 |
|
fi |
3498 |
|
|
3499 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3488 |
< |
ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
3499 |
> |
ac_exeext=$ac_cv_exeext |
3500 |
|
|
3501 |
< |
fi |
3502 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
3503 |
< |
echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; } |
3504 |
< |
ac_ext=$ac_save_ext |
3505 |
< |
ac_test_FFLAGS=${FCFLAGS+set} |
3506 |
< |
ac_save_FFLAGS=$FCFLAGS |
3507 |
< |
FCFLAGS= |
3508 |
< |
{ echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 |
3509 |
< |
echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; } |
3510 |
< |
if test "${ac_cv_prog_fc_g+set}" = set; then |
3511 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3512 |
< |
else |
3513 |
< |
FCFLAGS=-g |
3514 |
< |
cat >conftest.$ac_ext <<_ACEOF |
3515 |
< |
program main |
3501 |
> |
# Check that the compiler produces executables we can run. If not, either |
3502 |
> |
# the compiler is broken, or we cross compile. |
3503 |
> |
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
3504 |
> |
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } |
3505 |
> |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3506 |
> |
# If not cross compiling, check that we can run a simple program. |
3507 |
> |
if test "$cross_compiling" != yes; then |
3508 |
> |
if { ac_try='./$ac_file' |
3509 |
> |
{ (case "(($ac_try" in |
3510 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3511 |
> |
*) ac_try_echo=$ac_try;; |
3512 |
> |
esac |
3513 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3514 |
> |
(eval "$ac_try") 2>&5 |
3515 |
> |
ac_status=$? |
3516 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3517 |
> |
(exit $ac_status); }; }; then |
3518 |
> |
cross_compiling=no |
3519 |
> |
else |
3520 |
> |
if test "$cross_compiling" = maybe; then |
3521 |
> |
cross_compiling=yes |
3522 |
> |
else |
3523 |
> |
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
3524 |
> |
If you meant to cross compile, use \`--host'. |
3525 |
> |
See \`config.log' for more details." >&5 |
3526 |
> |
echo "$as_me: error: cannot run C++ compiled programs. |
3527 |
> |
If you meant to cross compile, use \`--host'. |
3528 |
> |
See \`config.log' for more details." >&2;} |
3529 |
> |
{ (exit 1); exit 1; }; } |
3530 |
> |
fi |
3531 |
> |
fi |
3532 |
> |
fi |
3533 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
3534 |
> |
echo "${ECHO_T}yes" >&6; } |
3535 |
|
|
3536 |
< |
end |
3537 |
< |
_ACEOF |
3538 |
< |
rm -f conftest.$ac_objext |
3539 |
< |
if { (ac_try="$ac_compile" |
3536 |
> |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
3537 |
> |
ac_clean_files=$ac_clean_files_save |
3538 |
> |
# Check that the compiler produces executables we can run. If not, either |
3539 |
> |
# the compiler is broken, or we cross compile. |
3540 |
> |
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3541 |
> |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
3542 |
> |
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
3543 |
> |
echo "${ECHO_T}$cross_compiling" >&6; } |
3544 |
> |
|
3545 |
> |
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3546 |
> |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
3547 |
> |
if { (ac_try="$ac_link" |
3548 |
|
case "(($ac_try" in |
3549 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3550 |
|
*) ac_try_echo=$ac_try;; |
3551 |
|
esac |
3552 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3553 |
< |
(eval "$ac_compile") 2>conftest.er1 |
3553 |
> |
(eval "$ac_link") 2>&5 |
3554 |
|
ac_status=$? |
3517 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
3518 |
– |
rm -f conftest.er1 |
3519 |
– |
cat conftest.err >&5 |
3555 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3556 |
< |
(exit $ac_status); } && { |
3557 |
< |
test -z "$ac_fc_werror_flag" || |
3558 |
< |
test ! -s conftest.err |
3559 |
< |
} && test -s conftest.$ac_objext; then |
3560 |
< |
ac_cv_prog_fc_g=yes |
3556 |
> |
(exit $ac_status); }; then |
3557 |
> |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
3558 |
> |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3559 |
> |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
3560 |
> |
# `rm'. |
3561 |
> |
for ac_file in conftest.exe conftest conftest.*; do |
3562 |
> |
test -f "$ac_file" || continue |
3563 |
> |
case $ac_file in |
3564 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
3565 |
> |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3566 |
> |
break;; |
3567 |
> |
* ) break;; |
3568 |
> |
esac |
3569 |
> |
done |
3570 |
|
else |
3571 |
< |
echo "$as_me: failed program was:" >&5 |
3572 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
3573 |
< |
|
3574 |
< |
ac_cv_prog_fc_g=no |
3571 |
> |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3572 |
> |
See \`config.log' for more details." >&5 |
3573 |
> |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
3574 |
> |
See \`config.log' for more details." >&2;} |
3575 |
> |
{ (exit 1); exit 1; }; } |
3576 |
|
fi |
3577 |
|
|
3578 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3578 |
> |
rm -f conftest$ac_cv_exeext |
3579 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3580 |
> |
echo "${ECHO_T}$ac_cv_exeext" >&6; } |
3581 |
|
|
3582 |
< |
fi |
3583 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
3584 |
< |
echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; } |
3585 |
< |
if test "$ac_test_FFLAGS" = set; then |
3586 |
< |
FCFLAGS=$ac_save_FFLAGS |
3587 |
< |
elif test $ac_cv_prog_fc_g = yes; then |
3541 |
< |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
3542 |
< |
FCFLAGS="-g -O2" |
3543 |
< |
else |
3544 |
< |
FCFLAGS="-g" |
3545 |
< |
fi |
3546 |
< |
else |
3547 |
< |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
3548 |
< |
FCFLAGS="-O2" |
3549 |
< |
else |
3550 |
< |
FCFLAGS= |
3551 |
< |
fi |
3552 |
< |
fi |
3553 |
< |
|
3554 |
< |
ac_ext=c |
3555 |
< |
ac_cpp='$CPP $CPPFLAGS' |
3556 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3557 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3558 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3559 |
< |
|
3560 |
< |
ac_ext=c |
3561 |
< |
ac_cpp='$CPP $CPPFLAGS' |
3562 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3563 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3564 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3565 |
< |
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3566 |
< |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
3567 |
< |
# On Suns, sometimes $CPP names a directory. |
3568 |
< |
if test -n "$CPP" && test -d "$CPP"; then |
3569 |
< |
CPP= |
3570 |
< |
fi |
3571 |
< |
if test -z "$CPP"; then |
3572 |
< |
if test "${ac_cv_prog_CPP+set}" = set; then |
3582 |
> |
rm -f conftest.$ac_ext |
3583 |
> |
EXEEXT=$ac_cv_exeext |
3584 |
> |
ac_exeext=$EXEEXT |
3585 |
> |
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3586 |
> |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
3587 |
> |
if test "${ac_cv_objext+set}" = set; then |
3588 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3589 |
|
else |
3575 |
– |
# Double quotes because CPP needs to be expanded |
3576 |
– |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3577 |
– |
do |
3578 |
– |
ac_preproc_ok=false |
3579 |
– |
for ac_c_preproc_warn_flag in '' yes |
3580 |
– |
do |
3581 |
– |
# Use a header file that comes with gcc, so configuring glibc |
3582 |
– |
# with a fresh cross-compiler works. |
3583 |
– |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3584 |
– |
# <limits.h> exists even on freestanding compilers. |
3585 |
– |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3586 |
– |
# not just through cpp. "Syntax error" is here to catch this case. |
3590 |
|
cat >conftest.$ac_ext <<_ACEOF |
3591 |
|
/* confdefs.h. */ |
3592 |
|
_ACEOF |
3593 |
|
cat confdefs.h >>conftest.$ac_ext |
3594 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3595 |
|
/* end confdefs.h. */ |
3596 |
< |
#ifdef __STDC__ |
3597 |
< |
# include <limits.h> |
3598 |
< |
#else |
3599 |
< |
# include <assert.h> |
3600 |
< |
#endif |
3601 |
< |
Syntax error |
3596 |
> |
|
3597 |
> |
int |
3598 |
> |
main () |
3599 |
> |
{ |
3600 |
> |
|
3601 |
> |
; |
3602 |
> |
return 0; |
3603 |
> |
} |
3604 |
|
_ACEOF |
3605 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3605 |
> |
rm -f conftest.o conftest.obj |
3606 |
> |
if { (ac_try="$ac_compile" |
3607 |
|
case "(($ac_try" in |
3608 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3609 |
|
*) ac_try_echo=$ac_try;; |
3610 |
|
esac |
3611 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3612 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3612 |
> |
(eval "$ac_compile") 2>&5 |
3613 |
|
ac_status=$? |
3608 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
3609 |
– |
rm -f conftest.er1 |
3610 |
– |
cat conftest.err >&5 |
3614 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3615 |
< |
(exit $ac_status); } >/dev/null && { |
3616 |
< |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3617 |
< |
test ! -s conftest.err |
3618 |
< |
}; then |
3619 |
< |
: |
3615 |
> |
(exit $ac_status); }; then |
3616 |
> |
for ac_file in conftest.o conftest.obj conftest.*; do |
3617 |
> |
test -f "$ac_file" || continue; |
3618 |
> |
case $ac_file in |
3619 |
> |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
3620 |
> |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3621 |
> |
break;; |
3622 |
> |
esac |
3623 |
> |
done |
3624 |
|
else |
3625 |
|
echo "$as_me: failed program was:" >&5 |
3626 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3627 |
|
|
3628 |
< |
# Broken: fails on valid input. |
3629 |
< |
continue |
3628 |
> |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3629 |
> |
See \`config.log' for more details." >&5 |
3630 |
> |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3631 |
> |
See \`config.log' for more details." >&2;} |
3632 |
> |
{ (exit 1); exit 1; }; } |
3633 |
|
fi |
3634 |
|
|
3635 |
< |
rm -f conftest.err conftest.$ac_ext |
3636 |
< |
|
3637 |
< |
# OK, works on sane cases. Now check whether nonexistent headers |
3638 |
< |
# can be detected and how. |
3635 |
> |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3636 |
> |
fi |
3637 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3638 |
> |
echo "${ECHO_T}$ac_cv_objext" >&6; } |
3639 |
> |
OBJEXT=$ac_cv_objext |
3640 |
> |
ac_objext=$OBJEXT |
3641 |
> |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3642 |
> |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
3643 |
> |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
3644 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3645 |
> |
else |
3646 |
|
cat >conftest.$ac_ext <<_ACEOF |
3647 |
|
/* confdefs.h. */ |
3648 |
|
_ACEOF |
3649 |
|
cat confdefs.h >>conftest.$ac_ext |
3650 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3651 |
|
/* end confdefs.h. */ |
3652 |
< |
#include <ac_nonexistent.h> |
3652 |
> |
|
3653 |
> |
int |
3654 |
> |
main () |
3655 |
> |
{ |
3656 |
> |
#ifndef __GNUC__ |
3657 |
> |
choke me |
3658 |
> |
#endif |
3659 |
> |
|
3660 |
> |
; |
3661 |
> |
return 0; |
3662 |
> |
} |
3663 |
|
_ACEOF |
3664 |
< |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3664 |
> |
rm -f conftest.$ac_objext |
3665 |
> |
if { (ac_try="$ac_compile" |
3666 |
|
case "(($ac_try" in |
3667 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3668 |
|
*) ac_try_echo=$ac_try;; |
3669 |
|
esac |
3670 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3671 |
< |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3671 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3672 |
|
ac_status=$? |
3673 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3674 |
|
rm -f conftest.er1 |
3675 |
|
cat conftest.err >&5 |
3676 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3677 |
< |
(exit $ac_status); } >/dev/null && { |
3678 |
< |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3677 |
> |
(exit $ac_status); } && { |
3678 |
> |
test -z "$ac_cxx_werror_flag" || |
3679 |
|
test ! -s conftest.err |
3680 |
< |
}; then |
3681 |
< |
# Broken: success on invalid input. |
3654 |
< |
continue |
3680 |
> |
} && test -s conftest.$ac_objext; then |
3681 |
> |
ac_compiler_gnu=yes |
3682 |
|
else |
3683 |
|
echo "$as_me: failed program was:" >&5 |
3684 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3685 |
|
|
3686 |
< |
# Passes both tests. |
3660 |
< |
ac_preproc_ok=: |
3661 |
< |
break |
3686 |
> |
ac_compiler_gnu=no |
3687 |
|
fi |
3688 |
|
|
3689 |
< |
rm -f conftest.err conftest.$ac_ext |
3689 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3690 |
> |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3691 |
|
|
3666 |
– |
done |
3667 |
– |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3668 |
– |
rm -f conftest.err conftest.$ac_ext |
3669 |
– |
if $ac_preproc_ok; then |
3670 |
– |
break |
3692 |
|
fi |
3693 |
< |
|
3694 |
< |
done |
3695 |
< |
ac_cv_prog_CPP=$CPP |
3696 |
< |
|
3697 |
< |
fi |
3698 |
< |
CPP=$ac_cv_prog_CPP |
3699 |
< |
else |
3700 |
< |
ac_cv_prog_CPP=$CPP |
3701 |
< |
fi |
3702 |
< |
{ echo "$as_me:$LINENO: result: $CPP" >&5 |
3703 |
< |
echo "${ECHO_T}$CPP" >&6; } |
3693 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3694 |
> |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
3695 |
> |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
3696 |
> |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
3697 |
> |
ac_save_CXXFLAGS=$CXXFLAGS |
3698 |
> |
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3699 |
> |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
3700 |
> |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
3701 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3702 |
> |
else |
3703 |
> |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3704 |
> |
ac_cxx_werror_flag=yes |
3705 |
> |
ac_cv_prog_cxx_g=no |
3706 |
> |
CXXFLAGS="-g" |
3707 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3708 |
> |
/* confdefs.h. */ |
3709 |
> |
_ACEOF |
3710 |
> |
cat confdefs.h >>conftest.$ac_ext |
3711 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3712 |
> |
/* end confdefs.h. */ |
3713 |
> |
|
3714 |
> |
int |
3715 |
> |
main () |
3716 |
> |
{ |
3717 |
> |
|
3718 |
> |
; |
3719 |
> |
return 0; |
3720 |
> |
} |
3721 |
> |
_ACEOF |
3722 |
> |
rm -f conftest.$ac_objext |
3723 |
> |
if { (ac_try="$ac_compile" |
3724 |
> |
case "(($ac_try" in |
3725 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3726 |
> |
*) ac_try_echo=$ac_try;; |
3727 |
> |
esac |
3728 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3729 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3730 |
> |
ac_status=$? |
3731 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3732 |
> |
rm -f conftest.er1 |
3733 |
> |
cat conftest.err >&5 |
3734 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3735 |
> |
(exit $ac_status); } && { |
3736 |
> |
test -z "$ac_cxx_werror_flag" || |
3737 |
> |
test ! -s conftest.err |
3738 |
> |
} && test -s conftest.$ac_objext; then |
3739 |
> |
ac_cv_prog_cxx_g=yes |
3740 |
> |
else |
3741 |
> |
echo "$as_me: failed program was:" >&5 |
3742 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3743 |
> |
|
3744 |
> |
CXXFLAGS="" |
3745 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3746 |
> |
/* confdefs.h. */ |
3747 |
> |
_ACEOF |
3748 |
> |
cat confdefs.h >>conftest.$ac_ext |
3749 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3750 |
> |
/* end confdefs.h. */ |
3751 |
> |
|
3752 |
> |
int |
3753 |
> |
main () |
3754 |
> |
{ |
3755 |
> |
|
3756 |
> |
; |
3757 |
> |
return 0; |
3758 |
> |
} |
3759 |
> |
_ACEOF |
3760 |
> |
rm -f conftest.$ac_objext |
3761 |
> |
if { (ac_try="$ac_compile" |
3762 |
> |
case "(($ac_try" in |
3763 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3764 |
> |
*) ac_try_echo=$ac_try;; |
3765 |
> |
esac |
3766 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3767 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3768 |
> |
ac_status=$? |
3769 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3770 |
> |
rm -f conftest.er1 |
3771 |
> |
cat conftest.err >&5 |
3772 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3773 |
> |
(exit $ac_status); } && { |
3774 |
> |
test -z "$ac_cxx_werror_flag" || |
3775 |
> |
test ! -s conftest.err |
3776 |
> |
} && test -s conftest.$ac_objext; then |
3777 |
> |
: |
3778 |
> |
else |
3779 |
> |
echo "$as_me: failed program was:" >&5 |
3780 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3781 |
> |
|
3782 |
> |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3783 |
> |
CXXFLAGS="-g" |
3784 |
> |
cat >conftest.$ac_ext <<_ACEOF |
3785 |
> |
/* confdefs.h. */ |
3786 |
> |
_ACEOF |
3787 |
> |
cat confdefs.h >>conftest.$ac_ext |
3788 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
3789 |
> |
/* end confdefs.h. */ |
3790 |
> |
|
3791 |
> |
int |
3792 |
> |
main () |
3793 |
> |
{ |
3794 |
> |
|
3795 |
> |
; |
3796 |
> |
return 0; |
3797 |
> |
} |
3798 |
> |
_ACEOF |
3799 |
> |
rm -f conftest.$ac_objext |
3800 |
> |
if { (ac_try="$ac_compile" |
3801 |
> |
case "(($ac_try" in |
3802 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3803 |
> |
*) ac_try_echo=$ac_try;; |
3804 |
> |
esac |
3805 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3806 |
> |
(eval "$ac_compile") 2>conftest.er1 |
3807 |
> |
ac_status=$? |
3808 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
3809 |
> |
rm -f conftest.er1 |
3810 |
> |
cat conftest.err >&5 |
3811 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3812 |
> |
(exit $ac_status); } && { |
3813 |
> |
test -z "$ac_cxx_werror_flag" || |
3814 |
> |
test ! -s conftest.err |
3815 |
> |
} && test -s conftest.$ac_objext; then |
3816 |
> |
ac_cv_prog_cxx_g=yes |
3817 |
> |
else |
3818 |
> |
echo "$as_me: failed program was:" >&5 |
3819 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
3820 |
> |
|
3821 |
> |
|
3822 |
> |
fi |
3823 |
> |
|
3824 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3825 |
> |
fi |
3826 |
> |
|
3827 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3828 |
> |
fi |
3829 |
> |
|
3830 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3831 |
> |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3832 |
> |
fi |
3833 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3834 |
> |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
3835 |
> |
if test "$ac_test_CXXFLAGS" = set; then |
3836 |
> |
CXXFLAGS=$ac_save_CXXFLAGS |
3837 |
> |
elif test $ac_cv_prog_cxx_g = yes; then |
3838 |
> |
if test "$GXX" = yes; then |
3839 |
> |
CXXFLAGS="-g -O2" |
3840 |
> |
else |
3841 |
> |
CXXFLAGS="-g" |
3842 |
> |
fi |
3843 |
> |
else |
3844 |
> |
if test "$GXX" = yes; then |
3845 |
> |
CXXFLAGS="-O2" |
3846 |
> |
else |
3847 |
> |
CXXFLAGS= |
3848 |
> |
fi |
3849 |
> |
fi |
3850 |
> |
ac_ext=c |
3851 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3852 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3853 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3854 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3855 |
> |
|
3856 |
> |
ac_ext=c |
3857 |
> |
ac_cpp='$CPP $CPPFLAGS' |
3858 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3859 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3860 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3861 |
> |
if test -n "$ac_tool_prefix"; then |
3862 |
> |
for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc |
3863 |
> |
do |
3864 |
> |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3865 |
> |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3866 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3867 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3868 |
> |
if test "${ac_cv_prog_CC+set}" = set; then |
3869 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3870 |
> |
else |
3871 |
> |
if test -n "$CC"; then |
3872 |
> |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3873 |
> |
else |
3874 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3875 |
> |
for as_dir in $PATH |
3876 |
> |
do |
3877 |
> |
IFS=$as_save_IFS |
3878 |
> |
test -z "$as_dir" && as_dir=. |
3879 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3880 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3881 |
> |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3882 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3883 |
> |
break 2 |
3884 |
> |
fi |
3885 |
> |
done |
3886 |
> |
done |
3887 |
> |
IFS=$as_save_IFS |
3888 |
> |
|
3889 |
> |
fi |
3890 |
> |
fi |
3891 |
> |
CC=$ac_cv_prog_CC |
3892 |
> |
if test -n "$CC"; then |
3893 |
> |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
3894 |
> |
echo "${ECHO_T}$CC" >&6; } |
3895 |
> |
else |
3896 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
3897 |
> |
echo "${ECHO_T}no" >&6; } |
3898 |
> |
fi |
3899 |
> |
|
3900 |
> |
|
3901 |
> |
test -n "$CC" && break |
3902 |
> |
done |
3903 |
> |
fi |
3904 |
> |
if test -z "$CC"; then |
3905 |
> |
ac_ct_CC=$CC |
3906 |
> |
for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc |
3907 |
> |
do |
3908 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3909 |
> |
set dummy $ac_prog; ac_word=$2 |
3910 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3911 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3912 |
> |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3913 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3914 |
> |
else |
3915 |
> |
if test -n "$ac_ct_CC"; then |
3916 |
> |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3917 |
> |
else |
3918 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3919 |
> |
for as_dir in $PATH |
3920 |
> |
do |
3921 |
> |
IFS=$as_save_IFS |
3922 |
> |
test -z "$as_dir" && as_dir=. |
3923 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
3924 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3925 |
> |
ac_cv_prog_ac_ct_CC="$ac_prog" |
3926 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3927 |
> |
break 2 |
3928 |
> |
fi |
3929 |
> |
done |
3930 |
> |
done |
3931 |
> |
IFS=$as_save_IFS |
3932 |
> |
|
3933 |
> |
fi |
3934 |
> |
fi |
3935 |
> |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3936 |
> |
if test -n "$ac_ct_CC"; then |
3937 |
> |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3938 |
> |
echo "${ECHO_T}$ac_ct_CC" >&6; } |
3939 |
> |
else |
3940 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
3941 |
> |
echo "${ECHO_T}no" >&6; } |
3942 |
> |
fi |
3943 |
> |
|
3944 |
> |
|
3945 |
> |
test -n "$ac_ct_CC" && break |
3946 |
> |
done |
3947 |
> |
|
3948 |
> |
if test "x$ac_ct_CC" = x; then |
3949 |
> |
CC="" |
3950 |
> |
else |
3951 |
> |
case $cross_compiling:$ac_tool_warned in |
3952 |
> |
yes:) |
3953 |
> |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3954 |
> |
whose name does not start with the host triplet. If you think this |
3955 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
3956 |
> |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
3957 |
> |
whose name does not start with the host triplet. If you think this |
3958 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
3959 |
> |
ac_tool_warned=yes ;; |
3960 |
> |
esac |
3961 |
> |
CC=$ac_ct_CC |
3962 |
> |
fi |
3963 |
> |
fi |
3964 |
> |
|
3965 |
> |
|
3966 |
> |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3967 |
> |
See \`config.log' for more details." >&5 |
3968 |
> |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
3969 |
> |
See \`config.log' for more details." >&2;} |
3970 |
> |
{ (exit 1); exit 1; }; } |
3971 |
> |
|
3972 |
> |
# Provide some information about the compiler. |
3973 |
> |
echo "$as_me:$LINENO: checking for C compiler version" >&5 |
3974 |
> |
ac_compiler=`set X $ac_compile; echo $2` |
3975 |
> |
{ (ac_try="$ac_compiler --version >&5" |
3976 |
> |
case "(($ac_try" in |
3977 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3978 |
> |
*) ac_try_echo=$ac_try;; |
3979 |
> |
esac |
3980 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3981 |
> |
(eval "$ac_compiler --version >&5") 2>&5 |
3982 |
> |
ac_status=$? |
3983 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3984 |
> |
(exit $ac_status); } |
3985 |
> |
{ (ac_try="$ac_compiler -v >&5" |
3986 |
> |
case "(($ac_try" in |
3987 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3988 |
> |
*) ac_try_echo=$ac_try;; |
3989 |
> |
esac |
3990 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3991 |
> |
(eval "$ac_compiler -v >&5") 2>&5 |
3992 |
> |
ac_status=$? |
3993 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3994 |
> |
(exit $ac_status); } |
3995 |
> |
{ (ac_try="$ac_compiler -V >&5" |
3996 |
> |
case "(($ac_try" in |
3997 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3998 |
> |
*) ac_try_echo=$ac_try;; |
3999 |
> |
esac |
4000 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4001 |
> |
(eval "$ac_compiler -V >&5") 2>&5 |
4002 |
> |
ac_status=$? |
4003 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4004 |
> |
(exit $ac_status); } |
4005 |
> |
|
4006 |
> |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
4007 |
> |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
4008 |
> |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
4009 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4010 |
> |
else |
4011 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4012 |
> |
/* confdefs.h. */ |
4013 |
> |
_ACEOF |
4014 |
> |
cat confdefs.h >>conftest.$ac_ext |
4015 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4016 |
> |
/* end confdefs.h. */ |
4017 |
> |
|
4018 |
> |
int |
4019 |
> |
main () |
4020 |
> |
{ |
4021 |
> |
#ifndef __GNUC__ |
4022 |
> |
choke me |
4023 |
> |
#endif |
4024 |
> |
|
4025 |
> |
; |
4026 |
> |
return 0; |
4027 |
> |
} |
4028 |
> |
_ACEOF |
4029 |
> |
rm -f conftest.$ac_objext |
4030 |
> |
if { (ac_try="$ac_compile" |
4031 |
> |
case "(($ac_try" in |
4032 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4033 |
> |
*) ac_try_echo=$ac_try;; |
4034 |
> |
esac |
4035 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4036 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4037 |
> |
ac_status=$? |
4038 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4039 |
> |
rm -f conftest.er1 |
4040 |
> |
cat conftest.err >&5 |
4041 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4042 |
> |
(exit $ac_status); } && { |
4043 |
> |
test -z "$ac_c_werror_flag" || |
4044 |
> |
test ! -s conftest.err |
4045 |
> |
} && test -s conftest.$ac_objext; then |
4046 |
> |
ac_compiler_gnu=yes |
4047 |
> |
else |
4048 |
> |
echo "$as_me: failed program was:" >&5 |
4049 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4050 |
> |
|
4051 |
> |
ac_compiler_gnu=no |
4052 |
> |
fi |
4053 |
> |
|
4054 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4055 |
> |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4056 |
> |
|
4057 |
> |
fi |
4058 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
4059 |
> |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
4060 |
> |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
4061 |
> |
ac_test_CFLAGS=${CFLAGS+set} |
4062 |
> |
ac_save_CFLAGS=$CFLAGS |
4063 |
> |
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
4064 |
> |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
4065 |
> |
if test "${ac_cv_prog_cc_g+set}" = set; then |
4066 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4067 |
> |
else |
4068 |
> |
ac_save_c_werror_flag=$ac_c_werror_flag |
4069 |
> |
ac_c_werror_flag=yes |
4070 |
> |
ac_cv_prog_cc_g=no |
4071 |
> |
CFLAGS="-g" |
4072 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4073 |
> |
/* confdefs.h. */ |
4074 |
> |
_ACEOF |
4075 |
> |
cat confdefs.h >>conftest.$ac_ext |
4076 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4077 |
> |
/* end confdefs.h. */ |
4078 |
> |
|
4079 |
> |
int |
4080 |
> |
main () |
4081 |
> |
{ |
4082 |
> |
|
4083 |
> |
; |
4084 |
> |
return 0; |
4085 |
> |
} |
4086 |
> |
_ACEOF |
4087 |
> |
rm -f conftest.$ac_objext |
4088 |
> |
if { (ac_try="$ac_compile" |
4089 |
> |
case "(($ac_try" in |
4090 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4091 |
> |
*) ac_try_echo=$ac_try;; |
4092 |
> |
esac |
4093 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4094 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4095 |
> |
ac_status=$? |
4096 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4097 |
> |
rm -f conftest.er1 |
4098 |
> |
cat conftest.err >&5 |
4099 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4100 |
> |
(exit $ac_status); } && { |
4101 |
> |
test -z "$ac_c_werror_flag" || |
4102 |
> |
test ! -s conftest.err |
4103 |
> |
} && test -s conftest.$ac_objext; then |
4104 |
> |
ac_cv_prog_cc_g=yes |
4105 |
> |
else |
4106 |
> |
echo "$as_me: failed program was:" >&5 |
4107 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4108 |
> |
|
4109 |
> |
CFLAGS="" |
4110 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4111 |
> |
/* confdefs.h. */ |
4112 |
> |
_ACEOF |
4113 |
> |
cat confdefs.h >>conftest.$ac_ext |
4114 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4115 |
> |
/* end confdefs.h. */ |
4116 |
> |
|
4117 |
> |
int |
4118 |
> |
main () |
4119 |
> |
{ |
4120 |
> |
|
4121 |
> |
; |
4122 |
> |
return 0; |
4123 |
> |
} |
4124 |
> |
_ACEOF |
4125 |
> |
rm -f conftest.$ac_objext |
4126 |
> |
if { (ac_try="$ac_compile" |
4127 |
> |
case "(($ac_try" in |
4128 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4129 |
> |
*) ac_try_echo=$ac_try;; |
4130 |
> |
esac |
4131 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4132 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4133 |
> |
ac_status=$? |
4134 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4135 |
> |
rm -f conftest.er1 |
4136 |
> |
cat conftest.err >&5 |
4137 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4138 |
> |
(exit $ac_status); } && { |
4139 |
> |
test -z "$ac_c_werror_flag" || |
4140 |
> |
test ! -s conftest.err |
4141 |
> |
} && test -s conftest.$ac_objext; then |
4142 |
> |
: |
4143 |
> |
else |
4144 |
> |
echo "$as_me: failed program was:" >&5 |
4145 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4146 |
> |
|
4147 |
> |
ac_c_werror_flag=$ac_save_c_werror_flag |
4148 |
> |
CFLAGS="-g" |
4149 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4150 |
> |
/* confdefs.h. */ |
4151 |
> |
_ACEOF |
4152 |
> |
cat confdefs.h >>conftest.$ac_ext |
4153 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4154 |
> |
/* end confdefs.h. */ |
4155 |
> |
|
4156 |
> |
int |
4157 |
> |
main () |
4158 |
> |
{ |
4159 |
> |
|
4160 |
> |
; |
4161 |
> |
return 0; |
4162 |
> |
} |
4163 |
> |
_ACEOF |
4164 |
> |
rm -f conftest.$ac_objext |
4165 |
> |
if { (ac_try="$ac_compile" |
4166 |
> |
case "(($ac_try" in |
4167 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4168 |
> |
*) ac_try_echo=$ac_try;; |
4169 |
> |
esac |
4170 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4171 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4172 |
> |
ac_status=$? |
4173 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4174 |
> |
rm -f conftest.er1 |
4175 |
> |
cat conftest.err >&5 |
4176 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4177 |
> |
(exit $ac_status); } && { |
4178 |
> |
test -z "$ac_c_werror_flag" || |
4179 |
> |
test ! -s conftest.err |
4180 |
> |
} && test -s conftest.$ac_objext; then |
4181 |
> |
ac_cv_prog_cc_g=yes |
4182 |
> |
else |
4183 |
> |
echo "$as_me: failed program was:" >&5 |
4184 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4185 |
> |
|
4186 |
> |
|
4187 |
> |
fi |
4188 |
> |
|
4189 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4190 |
> |
fi |
4191 |
> |
|
4192 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4193 |
> |
fi |
4194 |
> |
|
4195 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4196 |
> |
ac_c_werror_flag=$ac_save_c_werror_flag |
4197 |
> |
fi |
4198 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
4199 |
> |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
4200 |
> |
if test "$ac_test_CFLAGS" = set; then |
4201 |
> |
CFLAGS=$ac_save_CFLAGS |
4202 |
> |
elif test $ac_cv_prog_cc_g = yes; then |
4203 |
> |
if test "$GCC" = yes; then |
4204 |
> |
CFLAGS="-g -O2" |
4205 |
> |
else |
4206 |
> |
CFLAGS="-g" |
4207 |
> |
fi |
4208 |
> |
else |
4209 |
> |
if test "$GCC" = yes; then |
4210 |
> |
CFLAGS="-O2" |
4211 |
> |
else |
4212 |
> |
CFLAGS= |
4213 |
> |
fi |
4214 |
> |
fi |
4215 |
> |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
4216 |
> |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
4217 |
> |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
4218 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4219 |
> |
else |
4220 |
> |
ac_cv_prog_cc_c89=no |
4221 |
> |
ac_save_CC=$CC |
4222 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4223 |
> |
/* confdefs.h. */ |
4224 |
> |
_ACEOF |
4225 |
> |
cat confdefs.h >>conftest.$ac_ext |
4226 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4227 |
> |
/* end confdefs.h. */ |
4228 |
> |
#include <stdarg.h> |
4229 |
> |
#include <stdio.h> |
4230 |
> |
#include <sys/types.h> |
4231 |
> |
#include <sys/stat.h> |
4232 |
> |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4233 |
> |
struct buf { int x; }; |
4234 |
> |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
4235 |
> |
static char *e (p, i) |
4236 |
> |
char **p; |
4237 |
> |
int i; |
4238 |
> |
{ |
4239 |
> |
return p[i]; |
4240 |
> |
} |
4241 |
> |
static char *f (char * (*g) (char **, int), char **p, ...) |
4242 |
> |
{ |
4243 |
> |
char *s; |
4244 |
> |
va_list v; |
4245 |
> |
va_start (v,p); |
4246 |
> |
s = g (p, va_arg (v,int)); |
4247 |
> |
va_end (v); |
4248 |
> |
return s; |
4249 |
> |
} |
4250 |
> |
|
4251 |
> |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4252 |
> |
function prototypes and stuff, but not '\xHH' hex character constants. |
4253 |
> |
These don't provoke an error unfortunately, instead are silently treated |
4254 |
> |
as 'x'. The following induces an error, until -std is added to get |
4255 |
> |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4256 |
> |
array size at least. It's necessary to write '\x00'==0 to get something |
4257 |
> |
that's true only with -std. */ |
4258 |
> |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4259 |
> |
|
4260 |
> |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4261 |
> |
inside strings and character constants. */ |
4262 |
> |
#define FOO(x) 'x' |
4263 |
> |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
4264 |
> |
|
4265 |
> |
int test (int i, double x); |
4266 |
> |
struct s1 {int (*f) (int a);}; |
4267 |
> |
struct s2 {int (*f) (double a);}; |
4268 |
> |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
4269 |
> |
int argc; |
4270 |
> |
char **argv; |
4271 |
> |
int |
4272 |
> |
main () |
4273 |
> |
{ |
4274 |
> |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4275 |
> |
; |
4276 |
> |
return 0; |
4277 |
> |
} |
4278 |
> |
_ACEOF |
4279 |
> |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4280 |
> |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4281 |
> |
do |
4282 |
> |
CC="$ac_save_CC $ac_arg" |
4283 |
> |
rm -f conftest.$ac_objext |
4284 |
> |
if { (ac_try="$ac_compile" |
4285 |
> |
case "(($ac_try" in |
4286 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4287 |
> |
*) ac_try_echo=$ac_try;; |
4288 |
> |
esac |
4289 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4290 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4291 |
> |
ac_status=$? |
4292 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4293 |
> |
rm -f conftest.er1 |
4294 |
> |
cat conftest.err >&5 |
4295 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4296 |
> |
(exit $ac_status); } && { |
4297 |
> |
test -z "$ac_c_werror_flag" || |
4298 |
> |
test ! -s conftest.err |
4299 |
> |
} && test -s conftest.$ac_objext; then |
4300 |
> |
ac_cv_prog_cc_c89=$ac_arg |
4301 |
> |
else |
4302 |
> |
echo "$as_me: failed program was:" >&5 |
4303 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4304 |
> |
|
4305 |
> |
|
4306 |
> |
fi |
4307 |
> |
|
4308 |
> |
rm -f core conftest.err conftest.$ac_objext |
4309 |
> |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
4310 |
> |
done |
4311 |
> |
rm -f conftest.$ac_ext |
4312 |
> |
CC=$ac_save_CC |
4313 |
> |
|
4314 |
> |
fi |
4315 |
> |
# AC_CACHE_VAL |
4316 |
> |
case "x$ac_cv_prog_cc_c89" in |
4317 |
> |
x) |
4318 |
> |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
4319 |
> |
echo "${ECHO_T}none needed" >&6; } ;; |
4320 |
> |
xno) |
4321 |
> |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
4322 |
> |
echo "${ECHO_T}unsupported" >&6; } ;; |
4323 |
> |
*) |
4324 |
> |
CC="$CC $ac_cv_prog_cc_c89" |
4325 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
4326 |
> |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
4327 |
> |
esac |
4328 |
> |
|
4329 |
> |
|
4330 |
> |
ac_ext=c |
4331 |
> |
ac_cpp='$CPP $CPPFLAGS' |
4332 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4333 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4334 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4335 |
> |
|
4336 |
> |
ac_ext=${ac_fc_srcext-f} |
4337 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
4338 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
4339 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
4340 |
> |
if test -n "$ac_tool_prefix"; then |
4341 |
> |
for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
4342 |
> |
do |
4343 |
> |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4344 |
> |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4345 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4346 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4347 |
> |
if test "${ac_cv_prog_FC+set}" = set; then |
4348 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4349 |
> |
else |
4350 |
> |
if test -n "$FC"; then |
4351 |
> |
ac_cv_prog_FC="$FC" # Let the user override the test. |
4352 |
> |
else |
4353 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4354 |
> |
for as_dir in $PATH |
4355 |
> |
do |
4356 |
> |
IFS=$as_save_IFS |
4357 |
> |
test -z "$as_dir" && as_dir=. |
4358 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
4359 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4360 |
> |
ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
4361 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4362 |
> |
break 2 |
4363 |
> |
fi |
4364 |
> |
done |
4365 |
> |
done |
4366 |
> |
IFS=$as_save_IFS |
4367 |
> |
|
4368 |
> |
fi |
4369 |
> |
fi |
4370 |
> |
FC=$ac_cv_prog_FC |
4371 |
> |
if test -n "$FC"; then |
4372 |
> |
{ echo "$as_me:$LINENO: result: $FC" >&5 |
4373 |
> |
echo "${ECHO_T}$FC" >&6; } |
4374 |
> |
else |
4375 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
4376 |
> |
echo "${ECHO_T}no" >&6; } |
4377 |
> |
fi |
4378 |
> |
|
4379 |
> |
|
4380 |
> |
test -n "$FC" && break |
4381 |
> |
done |
4382 |
> |
fi |
4383 |
> |
if test -z "$FC"; then |
4384 |
> |
ac_ct_FC=$FC |
4385 |
> |
for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
4386 |
> |
do |
4387 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4388 |
> |
set dummy $ac_prog; ac_word=$2 |
4389 |
> |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4390 |
> |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4391 |
> |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
4392 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4393 |
> |
else |
4394 |
> |
if test -n "$ac_ct_FC"; then |
4395 |
> |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
4396 |
> |
else |
4397 |
> |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4398 |
> |
for as_dir in $PATH |
4399 |
> |
do |
4400 |
> |
IFS=$as_save_IFS |
4401 |
> |
test -z "$as_dir" && as_dir=. |
4402 |
> |
for ac_exec_ext in '' $ac_executable_extensions; do |
4403 |
> |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4404 |
> |
ac_cv_prog_ac_ct_FC="$ac_prog" |
4405 |
> |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4406 |
> |
break 2 |
4407 |
> |
fi |
4408 |
> |
done |
4409 |
> |
done |
4410 |
> |
IFS=$as_save_IFS |
4411 |
> |
|
4412 |
> |
fi |
4413 |
> |
fi |
4414 |
> |
ac_ct_FC=$ac_cv_prog_ac_ct_FC |
4415 |
> |
if test -n "$ac_ct_FC"; then |
4416 |
> |
{ echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 |
4417 |
> |
echo "${ECHO_T}$ac_ct_FC" >&6; } |
4418 |
> |
else |
4419 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
4420 |
> |
echo "${ECHO_T}no" >&6; } |
4421 |
> |
fi |
4422 |
> |
|
4423 |
> |
|
4424 |
> |
test -n "$ac_ct_FC" && break |
4425 |
> |
done |
4426 |
> |
|
4427 |
> |
if test "x$ac_ct_FC" = x; then |
4428 |
> |
FC="" |
4429 |
> |
else |
4430 |
> |
case $cross_compiling:$ac_tool_warned in |
4431 |
> |
yes:) |
4432 |
> |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
4433 |
> |
whose name does not start with the host triplet. If you think this |
4434 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
4435 |
> |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
4436 |
> |
whose name does not start with the host triplet. If you think this |
4437 |
> |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
4438 |
> |
ac_tool_warned=yes ;; |
4439 |
> |
esac |
4440 |
> |
FC=$ac_ct_FC |
4441 |
> |
fi |
4442 |
> |
fi |
4443 |
> |
|
4444 |
> |
|
4445 |
> |
# Provide some information about the compiler. |
4446 |
> |
echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 |
4447 |
> |
ac_compiler=`set X $ac_compile; echo $2` |
4448 |
> |
{ (ac_try="$ac_compiler --version >&5" |
4449 |
> |
case "(($ac_try" in |
4450 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4451 |
> |
*) ac_try_echo=$ac_try;; |
4452 |
> |
esac |
4453 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4454 |
> |
(eval "$ac_compiler --version >&5") 2>&5 |
4455 |
> |
ac_status=$? |
4456 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4457 |
> |
(exit $ac_status); } |
4458 |
> |
{ (ac_try="$ac_compiler -v >&5" |
4459 |
> |
case "(($ac_try" in |
4460 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4461 |
> |
*) ac_try_echo=$ac_try;; |
4462 |
> |
esac |
4463 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4464 |
> |
(eval "$ac_compiler -v >&5") 2>&5 |
4465 |
> |
ac_status=$? |
4466 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4467 |
> |
(exit $ac_status); } |
4468 |
> |
{ (ac_try="$ac_compiler -V >&5" |
4469 |
> |
case "(($ac_try" in |
4470 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4471 |
> |
*) ac_try_echo=$ac_try;; |
4472 |
> |
esac |
4473 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4474 |
> |
(eval "$ac_compiler -V >&5") 2>&5 |
4475 |
> |
ac_status=$? |
4476 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4477 |
> |
(exit $ac_status); } |
4478 |
> |
rm -f a.out |
4479 |
> |
|
4480 |
> |
# If we don't use `.F' as extension, the preprocessor is not run on the |
4481 |
> |
# input file. (Note that this only needs to work for GNU compilers.) |
4482 |
> |
ac_save_ext=$ac_ext |
4483 |
> |
ac_ext=F |
4484 |
> |
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
4485 |
> |
echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; } |
4486 |
> |
if test "${ac_cv_fc_compiler_gnu+set}" = set; then |
4487 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4488 |
> |
else |
4489 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4490 |
> |
program main |
4491 |
> |
#ifndef __GNUC__ |
4492 |
> |
choke me |
4493 |
> |
#endif |
4494 |
> |
|
4495 |
> |
end |
4496 |
> |
_ACEOF |
4497 |
> |
rm -f conftest.$ac_objext |
4498 |
> |
if { (ac_try="$ac_compile" |
4499 |
> |
case "(($ac_try" in |
4500 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4501 |
> |
*) ac_try_echo=$ac_try;; |
4502 |
> |
esac |
4503 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4504 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4505 |
> |
ac_status=$? |
4506 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4507 |
> |
rm -f conftest.er1 |
4508 |
> |
cat conftest.err >&5 |
4509 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4510 |
> |
(exit $ac_status); } && { |
4511 |
> |
test -z "$ac_fc_werror_flag" || |
4512 |
> |
test ! -s conftest.err |
4513 |
> |
} && test -s conftest.$ac_objext; then |
4514 |
> |
ac_compiler_gnu=yes |
4515 |
> |
else |
4516 |
> |
echo "$as_me: failed program was:" >&5 |
4517 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4518 |
> |
|
4519 |
> |
ac_compiler_gnu=no |
4520 |
> |
fi |
4521 |
> |
|
4522 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4523 |
> |
ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
4524 |
> |
|
4525 |
> |
fi |
4526 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
4527 |
> |
echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; } |
4528 |
> |
ac_ext=$ac_save_ext |
4529 |
> |
ac_test_FFLAGS=${FCFLAGS+set} |
4530 |
> |
ac_save_FFLAGS=$FCFLAGS |
4531 |
> |
FCFLAGS= |
4532 |
> |
{ echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 |
4533 |
> |
echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; } |
4534 |
> |
if test "${ac_cv_prog_fc_g+set}" = set; then |
4535 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4536 |
> |
else |
4537 |
> |
FCFLAGS=-g |
4538 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4539 |
> |
program main |
4540 |
> |
|
4541 |
> |
end |
4542 |
> |
_ACEOF |
4543 |
> |
rm -f conftest.$ac_objext |
4544 |
> |
if { (ac_try="$ac_compile" |
4545 |
> |
case "(($ac_try" in |
4546 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4547 |
> |
*) ac_try_echo=$ac_try;; |
4548 |
> |
esac |
4549 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4550 |
> |
(eval "$ac_compile") 2>conftest.er1 |
4551 |
> |
ac_status=$? |
4552 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4553 |
> |
rm -f conftest.er1 |
4554 |
> |
cat conftest.err >&5 |
4555 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4556 |
> |
(exit $ac_status); } && { |
4557 |
> |
test -z "$ac_fc_werror_flag" || |
4558 |
> |
test ! -s conftest.err |
4559 |
> |
} && test -s conftest.$ac_objext; then |
4560 |
> |
ac_cv_prog_fc_g=yes |
4561 |
> |
else |
4562 |
> |
echo "$as_me: failed program was:" >&5 |
4563 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4564 |
> |
|
4565 |
> |
ac_cv_prog_fc_g=no |
4566 |
> |
fi |
4567 |
> |
|
4568 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4569 |
> |
|
4570 |
> |
fi |
4571 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
4572 |
> |
echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; } |
4573 |
> |
if test "$ac_test_FFLAGS" = set; then |
4574 |
> |
FCFLAGS=$ac_save_FFLAGS |
4575 |
> |
elif test $ac_cv_prog_fc_g = yes; then |
4576 |
> |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
4577 |
> |
FCFLAGS="-g -O2" |
4578 |
> |
else |
4579 |
> |
FCFLAGS="-g" |
4580 |
> |
fi |
4581 |
> |
else |
4582 |
> |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
4583 |
> |
FCFLAGS="-O2" |
4584 |
> |
else |
4585 |
> |
FCFLAGS= |
4586 |
> |
fi |
4587 |
> |
fi |
4588 |
> |
|
4589 |
> |
ac_ext=c |
4590 |
> |
ac_cpp='$CPP $CPPFLAGS' |
4591 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4592 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4593 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4594 |
> |
|
4595 |
> |
ac_ext=c |
4596 |
> |
ac_cpp='$CPP $CPPFLAGS' |
4597 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4598 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4599 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4600 |
> |
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4601 |
> |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
4602 |
> |
# On Suns, sometimes $CPP names a directory. |
4603 |
> |
if test -n "$CPP" && test -d "$CPP"; then |
4604 |
> |
CPP= |
4605 |
> |
fi |
4606 |
> |
if test -z "$CPP"; then |
4607 |
> |
if test "${ac_cv_prog_CPP+set}" = set; then |
4608 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4609 |
> |
else |
4610 |
> |
# Double quotes because CPP needs to be expanded |
4611 |
> |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4612 |
> |
do |
4613 |
> |
ac_preproc_ok=false |
4614 |
> |
for ac_c_preproc_warn_flag in '' yes |
4615 |
> |
do |
4616 |
> |
# Use a header file that comes with gcc, so configuring glibc |
4617 |
> |
# with a fresh cross-compiler works. |
4618 |
> |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4619 |
> |
# <limits.h> exists even on freestanding compilers. |
4620 |
> |
# On the NeXT, cc -E runs the code through the compiler's parser, |
4621 |
> |
# not just through cpp. "Syntax error" is here to catch this case. |
4622 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4623 |
> |
/* confdefs.h. */ |
4624 |
> |
_ACEOF |
4625 |
> |
cat confdefs.h >>conftest.$ac_ext |
4626 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4627 |
> |
/* end confdefs.h. */ |
4628 |
> |
#ifdef __STDC__ |
4629 |
> |
# include <limits.h> |
4630 |
> |
#else |
4631 |
> |
# include <assert.h> |
4632 |
> |
#endif |
4633 |
> |
Syntax error |
4634 |
> |
_ACEOF |
4635 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
4636 |
> |
case "(($ac_try" in |
4637 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4638 |
> |
*) ac_try_echo=$ac_try;; |
4639 |
> |
esac |
4640 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4641 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4642 |
> |
ac_status=$? |
4643 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4644 |
> |
rm -f conftest.er1 |
4645 |
> |
cat conftest.err >&5 |
4646 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4647 |
> |
(exit $ac_status); } >/dev/null && { |
4648 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4649 |
> |
test ! -s conftest.err |
4650 |
> |
}; then |
4651 |
> |
: |
4652 |
> |
else |
4653 |
> |
echo "$as_me: failed program was:" >&5 |
4654 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4655 |
> |
|
4656 |
> |
# Broken: fails on valid input. |
4657 |
> |
continue |
4658 |
> |
fi |
4659 |
> |
|
4660 |
> |
rm -f conftest.err conftest.$ac_ext |
4661 |
> |
|
4662 |
> |
# OK, works on sane cases. Now check whether nonexistent headers |
4663 |
> |
# can be detected and how. |
4664 |
> |
cat >conftest.$ac_ext <<_ACEOF |
4665 |
> |
/* confdefs.h. */ |
4666 |
> |
_ACEOF |
4667 |
> |
cat confdefs.h >>conftest.$ac_ext |
4668 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
4669 |
> |
/* end confdefs.h. */ |
4670 |
> |
#include <ac_nonexistent.h> |
4671 |
> |
_ACEOF |
4672 |
> |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
4673 |
> |
case "(($ac_try" in |
4674 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4675 |
> |
*) ac_try_echo=$ac_try;; |
4676 |
> |
esac |
4677 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4678 |
> |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4679 |
> |
ac_status=$? |
4680 |
> |
grep -v '^ *+' conftest.er1 >conftest.err |
4681 |
> |
rm -f conftest.er1 |
4682 |
> |
cat conftest.err >&5 |
4683 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4684 |
> |
(exit $ac_status); } >/dev/null && { |
4685 |
> |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4686 |
> |
test ! -s conftest.err |
4687 |
> |
}; then |
4688 |
> |
# Broken: success on invalid input. |
4689 |
> |
continue |
4690 |
> |
else |
4691 |
> |
echo "$as_me: failed program was:" >&5 |
4692 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
4693 |
> |
|
4694 |
> |
# Passes both tests. |
4695 |
> |
ac_preproc_ok=: |
4696 |
> |
break |
4697 |
> |
fi |
4698 |
> |
|
4699 |
> |
rm -f conftest.err conftest.$ac_ext |
4700 |
> |
|
4701 |
> |
done |
4702 |
> |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4703 |
> |
rm -f conftest.err conftest.$ac_ext |
4704 |
> |
if $ac_preproc_ok; then |
4705 |
> |
break |
4706 |
> |
fi |
4707 |
> |
|
4708 |
> |
done |
4709 |
> |
ac_cv_prog_CPP=$CPP |
4710 |
> |
|
4711 |
> |
fi |
4712 |
> |
CPP=$ac_cv_prog_CPP |
4713 |
> |
else |
4714 |
> |
ac_cv_prog_CPP=$CPP |
4715 |
> |
fi |
4716 |
> |
{ echo "$as_me:$LINENO: result: $CPP" >&5 |
4717 |
> |
echo "${ECHO_T}$CPP" >&6; } |
4718 |
|
ac_preproc_ok=false |
4719 |
|
for ac_c_preproc_warn_flag in '' yes |
4720 |
|
do |
5121 |
|
RANLIB="$ac_cv_prog_RANLIB" |
5122 |
|
fi |
5123 |
|
|
4089 |
– |
for ac_prog in 'bison -y' byacc |
4090 |
– |
do |
4091 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4092 |
– |
set dummy $ac_prog; ac_word=$2 |
4093 |
– |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4094 |
– |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4095 |
– |
if test "${ac_cv_prog_YACC+set}" = set; then |
4096 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4097 |
– |
else |
4098 |
– |
if test -n "$YACC"; then |
4099 |
– |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
4100 |
– |
else |
4101 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4102 |
– |
for as_dir in $PATH |
4103 |
– |
do |
4104 |
– |
IFS=$as_save_IFS |
4105 |
– |
test -z "$as_dir" && as_dir=. |
4106 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
4107 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4108 |
– |
ac_cv_prog_YACC="$ac_prog" |
4109 |
– |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4110 |
– |
break 2 |
4111 |
– |
fi |
4112 |
– |
done |
4113 |
– |
done |
4114 |
– |
IFS=$as_save_IFS |
5124 |
|
|
4116 |
– |
fi |
4117 |
– |
fi |
4118 |
– |
YACC=$ac_cv_prog_YACC |
4119 |
– |
if test -n "$YACC"; then |
4120 |
– |
{ echo "$as_me:$LINENO: result: $YACC" >&5 |
4121 |
– |
echo "${ECHO_T}$YACC" >&6; } |
4122 |
– |
else |
4123 |
– |
{ echo "$as_me:$LINENO: result: no" >&5 |
4124 |
– |
echo "${ECHO_T}no" >&6; } |
4125 |
– |
fi |
4126 |
– |
|
4127 |
– |
|
4128 |
– |
test -n "$YACC" && break |
4129 |
– |
done |
4130 |
– |
test -n "$YACC" || YACC="yacc" |
4131 |
– |
|
4132 |
– |
|
4133 |
– |
for ac_prog in flex lex |
4134 |
– |
do |
4135 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
4136 |
– |
set dummy $ac_prog; ac_word=$2 |
4137 |
– |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4138 |
– |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4139 |
– |
if test "${ac_cv_prog_LEX+set}" = set; then |
4140 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4141 |
– |
else |
4142 |
– |
if test -n "$LEX"; then |
4143 |
– |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
4144 |
– |
else |
4145 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4146 |
– |
for as_dir in $PATH |
4147 |
– |
do |
4148 |
– |
IFS=$as_save_IFS |
4149 |
– |
test -z "$as_dir" && as_dir=. |
4150 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
4151 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4152 |
– |
ac_cv_prog_LEX="$ac_prog" |
4153 |
– |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4154 |
– |
break 2 |
4155 |
– |
fi |
4156 |
– |
done |
4157 |
– |
done |
4158 |
– |
IFS=$as_save_IFS |
4159 |
– |
|
4160 |
– |
fi |
4161 |
– |
fi |
4162 |
– |
LEX=$ac_cv_prog_LEX |
4163 |
– |
if test -n "$LEX"; then |
4164 |
– |
{ echo "$as_me:$LINENO: result: $LEX" >&5 |
4165 |
– |
echo "${ECHO_T}$LEX" >&6; } |
4166 |
– |
else |
4167 |
– |
{ echo "$as_me:$LINENO: result: no" >&5 |
4168 |
– |
echo "${ECHO_T}no" >&6; } |
4169 |
– |
fi |
4170 |
– |
|
4171 |
– |
|
4172 |
– |
test -n "$LEX" && break |
4173 |
– |
done |
4174 |
– |
test -n "$LEX" || LEX=":" |
4175 |
– |
|
4176 |
– |
if test "x$LEX" != "x:"; then |
4177 |
– |
cat >conftest.l <<_ACEOF |
4178 |
– |
%% |
4179 |
– |
a { ECHO; } |
4180 |
– |
b { REJECT; } |
4181 |
– |
c { yymore (); } |
4182 |
– |
d { yyless (1); } |
4183 |
– |
e { yyless (input () != 0); } |
4184 |
– |
f { unput (yytext[0]); } |
4185 |
– |
. { BEGIN INITIAL; } |
4186 |
– |
%% |
4187 |
– |
#ifdef YYTEXT_POINTER |
4188 |
– |
extern char *yytext; |
4189 |
– |
#endif |
4190 |
– |
int |
4191 |
– |
main (void) |
4192 |
– |
{ |
4193 |
– |
return ! yylex () + ! yywrap (); |
4194 |
– |
} |
4195 |
– |
_ACEOF |
4196 |
– |
{ (ac_try="$LEX conftest.l" |
4197 |
– |
case "(($ac_try" in |
4198 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4199 |
– |
*) ac_try_echo=$ac_try;; |
4200 |
– |
esac |
4201 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4202 |
– |
(eval "$LEX conftest.l") 2>&5 |
4203 |
– |
ac_status=$? |
4204 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4205 |
– |
(exit $ac_status); } |
4206 |
– |
{ echo "$as_me:$LINENO: checking lex output file root" >&5 |
4207 |
– |
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
4208 |
– |
if test "${ac_cv_prog_lex_root+set}" = set; then |
4209 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4210 |
– |
else |
4211 |
– |
|
4212 |
– |
if test -f lex.yy.c; then |
4213 |
– |
ac_cv_prog_lex_root=lex.yy |
4214 |
– |
elif test -f lexyy.c; then |
4215 |
– |
ac_cv_prog_lex_root=lexyy |
4216 |
– |
else |
4217 |
– |
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
4218 |
– |
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
4219 |
– |
{ (exit 1); exit 1; }; } |
4220 |
– |
fi |
4221 |
– |
fi |
4222 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
4223 |
– |
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
4224 |
– |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
4225 |
– |
|
4226 |
– |
if test -z "${LEXLIB+set}"; then |
4227 |
– |
{ echo "$as_me:$LINENO: checking lex library" >&5 |
4228 |
– |
echo $ECHO_N "checking lex library... $ECHO_C" >&6; } |
4229 |
– |
if test "${ac_cv_lib_lex+set}" = set; then |
4230 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4231 |
– |
else |
4232 |
– |
|
4233 |
– |
ac_save_LIBS=$LIBS |
4234 |
– |
ac_cv_lib_lex='none needed' |
4235 |
– |
for ac_lib in '' -lfl -ll; do |
4236 |
– |
LIBS="$ac_lib $ac_save_LIBS" |
4237 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4238 |
– |
`cat $LEX_OUTPUT_ROOT.c` |
4239 |
– |
_ACEOF |
4240 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
4241 |
– |
if { (ac_try="$ac_link" |
4242 |
– |
case "(($ac_try" in |
4243 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4244 |
– |
*) ac_try_echo=$ac_try;; |
4245 |
– |
esac |
4246 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4247 |
– |
(eval "$ac_link") 2>conftest.er1 |
4248 |
– |
ac_status=$? |
4249 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
4250 |
– |
rm -f conftest.er1 |
4251 |
– |
cat conftest.err >&5 |
4252 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4253 |
– |
(exit $ac_status); } && { |
4254 |
– |
test -z "$ac_c_werror_flag" || |
4255 |
– |
test ! -s conftest.err |
4256 |
– |
} && test -s conftest$ac_exeext && |
4257 |
– |
$as_test_x conftest$ac_exeext; then |
4258 |
– |
ac_cv_lib_lex=$ac_lib |
4259 |
– |
else |
4260 |
– |
echo "$as_me: failed program was:" >&5 |
4261 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
4262 |
– |
|
4263 |
– |
|
4264 |
– |
fi |
4265 |
– |
|
4266 |
– |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4267 |
– |
conftest$ac_exeext conftest.$ac_ext |
4268 |
– |
test "$ac_cv_lib_lex" != 'none needed' && break |
4269 |
– |
done |
4270 |
– |
LIBS=$ac_save_LIBS |
4271 |
– |
|
4272 |
– |
fi |
4273 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
4274 |
– |
echo "${ECHO_T}$ac_cv_lib_lex" >&6; } |
4275 |
– |
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
4276 |
– |
fi |
4277 |
– |
|
4278 |
– |
|
4279 |
– |
{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
4280 |
– |
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
4281 |
– |
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
4282 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4283 |
– |
else |
4284 |
– |
# POSIX says lex can declare yytext either as a pointer or an array; the |
4285 |
– |
# default is implementation-dependent. Figure out which it is, since |
4286 |
– |
# not all implementations provide the %pointer and %array declarations. |
4287 |
– |
ac_cv_prog_lex_yytext_pointer=no |
4288 |
– |
ac_save_LIBS=$LIBS |
4289 |
– |
LIBS="$LEXLIB $ac_save_LIBS" |
4290 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4291 |
– |
#define YYTEXT_POINTER 1 |
4292 |
– |
`cat $LEX_OUTPUT_ROOT.c` |
4293 |
– |
_ACEOF |
4294 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
4295 |
– |
if { (ac_try="$ac_link" |
4296 |
– |
case "(($ac_try" in |
4297 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4298 |
– |
*) ac_try_echo=$ac_try;; |
4299 |
– |
esac |
4300 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4301 |
– |
(eval "$ac_link") 2>conftest.er1 |
4302 |
– |
ac_status=$? |
4303 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
4304 |
– |
rm -f conftest.er1 |
4305 |
– |
cat conftest.err >&5 |
4306 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4307 |
– |
(exit $ac_status); } && { |
4308 |
– |
test -z "$ac_c_werror_flag" || |
4309 |
– |
test ! -s conftest.err |
4310 |
– |
} && test -s conftest$ac_exeext && |
4311 |
– |
$as_test_x conftest$ac_exeext; then |
4312 |
– |
ac_cv_prog_lex_yytext_pointer=yes |
4313 |
– |
else |
4314 |
– |
echo "$as_me: failed program was:" >&5 |
4315 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
4316 |
– |
|
4317 |
– |
|
4318 |
– |
fi |
4319 |
– |
|
4320 |
– |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4321 |
– |
conftest$ac_exeext conftest.$ac_ext |
4322 |
– |
LIBS=$ac_save_LIBS |
4323 |
– |
|
4324 |
– |
fi |
4325 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
4326 |
– |
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
4327 |
– |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
4328 |
– |
|
4329 |
– |
cat >>confdefs.h <<\_ACEOF |
4330 |
– |
#define YYTEXT_POINTER 1 |
4331 |
– |
_ACEOF |
4332 |
– |
|
4333 |
– |
fi |
4334 |
– |
rm -f conftest.l $LEX_OUTPUT_ROOT.c |
4335 |
– |
|
4336 |
– |
fi |
4337 |
– |
|
5125 |
|
# Extract the first word of "perl", so it can be a program name with args. |
5126 |
|
set dummy perl; ac_word=$2 |
5127 |
|
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6148 |
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
6149 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
6150 |
|
|
6151 |
+ |
|
6152 |
|
ac_ext=${ac_fc_srcext-f} |
6153 |
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
6154 |
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
8751 |
|
# |
8752 |
|
if test -n "${QHULL_HOME}" |
8753 |
|
then |
7966 |
– |
QHULL_OLD_LDFLAGS=$LDFLAGS |
7967 |
– |
QHULL_OLD_CFLAGS=$CFLAGS |
7968 |
– |
LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib" |
7969 |
– |
CFLAGS="$CFLAGS -I${QHULL_HOME}/include" |
8754 |
|
|
8755 |
|
ac_ext=c |
8756 |
|
ac_cpp='$CPP $CPPFLAGS' |
8758 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8759 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8760 |
|
|
8761 |
< |
{ echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5 |
8762 |
< |
echo $ECHO_N "checking for qh_qhull in -lqhull... $ECHO_C" >&6; } |
8763 |
< |
if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then |
8764 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8765 |
< |
else |
8766 |
< |
ac_check_lib_save_LIBS=$LIBS |
7983 |
< |
LIBS="-lqhull $LIBS" |
7984 |
< |
cat >conftest.$ac_ext <<_ACEOF |
7985 |
< |
/* confdefs.h. */ |
7986 |
< |
_ACEOF |
7987 |
< |
cat confdefs.h >>conftest.$ac_ext |
7988 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
7989 |
< |
/* end confdefs.h. */ |
7990 |
< |
|
7991 |
< |
/* Override any GCC internal prototype to avoid an error. |
7992 |
< |
Use char because int might match the return type of a GCC |
7993 |
< |
builtin and then its argument prototype would still apply. */ |
7994 |
< |
#ifdef __cplusplus |
7995 |
< |
extern "C" |
7996 |
< |
#endif |
7997 |
< |
char qh_qhull (); |
7998 |
< |
#ifdef FC_DUMMY_MAIN |
7999 |
< |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8000 |
< |
# ifdef __cplusplus |
8001 |
< |
extern "C" |
8002 |
< |
# endif |
8003 |
< |
int FC_DUMMY_MAIN() { return 1; } |
8004 |
< |
#endif |
8005 |
< |
#endif |
8006 |
< |
int |
8007 |
< |
main () |
8008 |
< |
{ |
8009 |
< |
return qh_qhull (); |
8010 |
< |
; |
8011 |
< |
return 0; |
8012 |
< |
} |
8013 |
< |
_ACEOF |
8014 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
8015 |
< |
if { (ac_try="$ac_link" |
8016 |
< |
case "(($ac_try" in |
8017 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8018 |
< |
*) ac_try_echo=$ac_try;; |
8019 |
< |
esac |
8020 |
< |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8021 |
< |
(eval "$ac_link") 2>conftest.er1 |
8022 |
< |
ac_status=$? |
8023 |
< |
grep -v '^ *+' conftest.er1 >conftest.err |
8024 |
< |
rm -f conftest.er1 |
8025 |
< |
cat conftest.err >&5 |
8026 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8027 |
< |
(exit $ac_status); } && { |
8028 |
< |
test -z "$ac_c_werror_flag" || |
8029 |
< |
test ! -s conftest.err |
8030 |
< |
} && test -s conftest$ac_exeext && |
8031 |
< |
$as_test_x conftest$ac_exeext; then |
8032 |
< |
ac_cv_lib_qhull_qh_qhull=yes |
8033 |
< |
else |
8034 |
< |
echo "$as_me: failed program was:" >&5 |
8035 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
8036 |
< |
|
8037 |
< |
ac_cv_lib_qhull_qh_qhull=no |
8038 |
< |
fi |
8039 |
< |
|
8040 |
< |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8041 |
< |
conftest$ac_exeext conftest.$ac_ext |
8042 |
< |
LIBS=$ac_check_lib_save_LIBS |
8043 |
< |
fi |
8044 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5 |
8045 |
< |
echo "${ECHO_T}$ac_cv_lib_qhull_qh_qhull" >&6; } |
8046 |
< |
if test $ac_cv_lib_qhull_qh_qhull = yes; then |
8047 |
< |
qhull_cv_libqhull=yes |
8048 |
< |
else |
8049 |
< |
qhull_cv_libqhull=no |
8050 |
< |
fi |
8051 |
< |
|
8761 |
> |
QHULL_OLD_LDFLAGS=$LDFLAGS |
8762 |
> |
QHULL_OLD_CFLAGS=$CFLAGS |
8763 |
> |
QHULL_OLD_CPPFLAGS=$CPPFLAGS |
8764 |
> |
LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib" |
8765 |
> |
CFLAGS="$CFLAGS -I${QHULL_HOME}/include" |
8766 |
> |
CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include" |
8767 |
|
if test "${ac_cv_header_qhull_qhull_h+set}" = set; then |
8768 |
|
{ echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5 |
8769 |
|
echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6; } |
8901 |
|
fi |
8902 |
|
|
8903 |
|
|
8904 |
+ |
{ echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5 |
8905 |
+ |
echo $ECHO_N "checking for qh_qhull in -lqhull... $ECHO_C" >&6; } |
8906 |
+ |
if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then |
8907 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8908 |
+ |
else |
8909 |
+ |
ac_check_lib_save_LIBS=$LIBS |
8910 |
+ |
LIBS="-lqhull $LIBS" |
8911 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
8912 |
+ |
/* confdefs.h. */ |
8913 |
+ |
_ACEOF |
8914 |
+ |
cat confdefs.h >>conftest.$ac_ext |
8915 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
8916 |
+ |
/* end confdefs.h. */ |
8917 |
+ |
|
8918 |
+ |
/* Override any GCC internal prototype to avoid an error. |
8919 |
+ |
Use char because int might match the return type of a GCC |
8920 |
+ |
builtin and then its argument prototype would still apply. */ |
8921 |
+ |
#ifdef __cplusplus |
8922 |
+ |
extern "C" |
8923 |
+ |
#endif |
8924 |
+ |
char qh_qhull (); |
8925 |
+ |
#ifdef FC_DUMMY_MAIN |
8926 |
+ |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
8927 |
+ |
# ifdef __cplusplus |
8928 |
+ |
extern "C" |
8929 |
+ |
# endif |
8930 |
+ |
int FC_DUMMY_MAIN() { return 1; } |
8931 |
+ |
#endif |
8932 |
+ |
#endif |
8933 |
+ |
int |
8934 |
+ |
main () |
8935 |
+ |
{ |
8936 |
+ |
return qh_qhull (); |
8937 |
+ |
; |
8938 |
+ |
return 0; |
8939 |
+ |
} |
8940 |
+ |
_ACEOF |
8941 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
8942 |
+ |
if { (ac_try="$ac_link" |
8943 |
+ |
case "(($ac_try" in |
8944 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8945 |
+ |
*) ac_try_echo=$ac_try;; |
8946 |
+ |
esac |
8947 |
+ |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8948 |
+ |
(eval "$ac_link") 2>conftest.er1 |
8949 |
+ |
ac_status=$? |
8950 |
+ |
grep -v '^ *+' conftest.er1 >conftest.err |
8951 |
+ |
rm -f conftest.er1 |
8952 |
+ |
cat conftest.err >&5 |
8953 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8954 |
+ |
(exit $ac_status); } && { |
8955 |
+ |
test -z "$ac_c_werror_flag" || |
8956 |
+ |
test ! -s conftest.err |
8957 |
+ |
} && test -s conftest$ac_exeext && |
8958 |
+ |
$as_test_x conftest$ac_exeext; then |
8959 |
+ |
ac_cv_lib_qhull_qh_qhull=yes |
8960 |
+ |
else |
8961 |
+ |
echo "$as_me: failed program was:" >&5 |
8962 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
8963 |
+ |
|
8964 |
+ |
ac_cv_lib_qhull_qh_qhull=no |
8965 |
+ |
fi |
8966 |
+ |
|
8967 |
+ |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8968 |
+ |
conftest$ac_exeext conftest.$ac_ext |
8969 |
+ |
LIBS=$ac_check_lib_save_LIBS |
8970 |
+ |
fi |
8971 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5 |
8972 |
+ |
echo "${ECHO_T}$ac_cv_lib_qhull_qh_qhull" >&6; } |
8973 |
+ |
if test $ac_cv_lib_qhull_qh_qhull = yes; then |
8974 |
+ |
qhull_cv_libqhull=yes |
8975 |
+ |
else |
8976 |
+ |
qhull_cv_libqhull=no |
8977 |
+ |
fi |
8978 |
+ |
|
8979 |
+ |
LDFLAGS="$QHULL_OLD_LDFLAGS" |
8980 |
+ |
CFLAGS="$QHULL_OLD_CFLAGS" |
8981 |
+ |
CPPFLAGS="$QHULL_OLD_CPPFLAGS" |
8982 |
|
ac_ext=c |
8983 |
|
ac_cpp='$CPP $CPPFLAGS' |
8984 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9008 |
|
QHULL_LIB_DIR= |
9009 |
|
QHULL= |
9010 |
|
USE_QHULL=no |
8218 |
– |
LDFLAGS="$QHULL_OLD_LDFLAGS" |
8219 |
– |
CFLAGS="$QHULL_OLD_CFLAGS" |
9011 |
|
{ echo "$as_me:$LINENO: result: failed" >&5 |
9012 |
|
echo "${ECHO_T}failed" >&6; } |
9013 |
|
echo "" |
9299 |
|
OPENBABEL_OLD_CPPFLAGS=$CPPFLAGS |
9300 |
|
LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel" |
9301 |
|
CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0" |
9302 |
< |
if test "${ac_cv_header_openbabel_2_0_openbabel_babelconfig_h+set}" = set; then |
9303 |
< |
{ echo "$as_me:$LINENO: checking for openbabel-2.0/openbabel/babelconfig.h" >&5 |
9304 |
< |
echo $ECHO_N "checking for openbabel-2.0/openbabel/babelconfig.h... $ECHO_C" >&6; } |
9305 |
< |
if test "${ac_cv_header_openbabel_2_0_openbabel_babelconfig_h+set}" = set; then |
9302 |
> |
if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then |
9303 |
> |
{ echo "$as_me:$LINENO: checking for openbabel/babelconfig.h" >&5 |
9304 |
> |
echo $ECHO_N "checking for openbabel/babelconfig.h... $ECHO_C" >&6; } |
9305 |
> |
if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then |
9306 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9307 |
|
fi |
9308 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_2_0_openbabel_babelconfig_h" >&5 |
9309 |
< |
echo "${ECHO_T}$ac_cv_header_openbabel_2_0_openbabel_babelconfig_h" >&6; } |
9308 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_babelconfig_h" >&5 |
9309 |
> |
echo "${ECHO_T}$ac_cv_header_openbabel_babelconfig_h" >&6; } |
9310 |
|
else |
9311 |
|
# Is the header compilable? |
9312 |
< |
{ echo "$as_me:$LINENO: checking openbabel-2.0/openbabel/babelconfig.h usability" >&5 |
9313 |
< |
echo $ECHO_N "checking openbabel-2.0/openbabel/babelconfig.h usability... $ECHO_C" >&6; } |
9312 |
> |
{ echo "$as_me:$LINENO: checking openbabel/babelconfig.h usability" >&5 |
9313 |
> |
echo $ECHO_N "checking openbabel/babelconfig.h usability... $ECHO_C" >&6; } |
9314 |
|
cat >conftest.$ac_ext <<_ACEOF |
9315 |
|
/* confdefs.h. */ |
9316 |
|
_ACEOF |
9318 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9319 |
|
/* end confdefs.h. */ |
9320 |
|
$ac_includes_default |
9321 |
< |
#include <openbabel-2.0/openbabel/babelconfig.h> |
9321 |
> |
#include <openbabel/babelconfig.h> |
9322 |
|
_ACEOF |
9323 |
|
rm -f conftest.$ac_objext |
9324 |
|
if { (ac_try="$ac_compile" |
9350 |
|
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9351 |
|
|
9352 |
|
# Is the header present? |
9353 |
< |
{ echo "$as_me:$LINENO: checking openbabel-2.0/openbabel/babelconfig.h presence" >&5 |
9354 |
< |
echo $ECHO_N "checking openbabel-2.0/openbabel/babelconfig.h presence... $ECHO_C" >&6; } |
9353 |
> |
{ echo "$as_me:$LINENO: checking openbabel/babelconfig.h presence" >&5 |
9354 |
> |
echo $ECHO_N "checking openbabel/babelconfig.h presence... $ECHO_C" >&6; } |
9355 |
|
cat >conftest.$ac_ext <<_ACEOF |
9356 |
|
/* confdefs.h. */ |
9357 |
|
_ACEOF |
9358 |
|
cat confdefs.h >>conftest.$ac_ext |
9359 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9360 |
|
/* end confdefs.h. */ |
9361 |
< |
#include <openbabel-2.0/openbabel/babelconfig.h> |
9361 |
> |
#include <openbabel/babelconfig.h> |
9362 |
|
_ACEOF |
9363 |
|
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9364 |
|
case "(($ac_try" in |
9391 |
|
# So? What about this header? |
9392 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9393 |
|
yes:no: ) |
9394 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9395 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9396 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: proceeding with the compiler's result" >&5 |
9397 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: proceeding with the compiler's result" >&2;} |
9394 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9395 |
> |
echo "$as_me: WARNING: openbabel/babelconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9396 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: proceeding with the compiler's result" >&5 |
9397 |
> |
echo "$as_me: WARNING: openbabel/babelconfig.h: proceeding with the compiler's result" >&2;} |
9398 |
|
ac_header_preproc=yes |
9399 |
|
;; |
9400 |
|
no:yes:* ) |
9401 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: present but cannot be compiled" >&5 |
9402 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: present but cannot be compiled" >&2;} |
9403 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: check for missing prerequisite headers?" >&5 |
9404 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: check for missing prerequisite headers?" >&2;} |
9405 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: see the Autoconf documentation" >&5 |
9406 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: see the Autoconf documentation" >&2;} |
9407 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: section \"Present But Cannot Be Compiled\"" >&5 |
9408 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9409 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: proceeding with the preprocessor's result" >&5 |
9410 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: proceeding with the preprocessor's result" >&2;} |
9411 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/babelconfig.h: in the future, the compiler will take precedence" >&5 |
9412 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/babelconfig.h: in the future, the compiler will take precedence" >&2;} |
9401 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: present but cannot be compiled" >&5 |
9402 |
> |
echo "$as_me: WARNING: openbabel/babelconfig.h: present but cannot be compiled" >&2;} |
9403 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: check for missing prerequisite headers?" >&5 |
9404 |
> |
echo "$as_me: WARNING: openbabel/babelconfig.h: check for missing prerequisite headers?" >&2;} |
9405 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: see the Autoconf documentation" >&5 |
9406 |
> |
echo "$as_me: WARNING: openbabel/babelconfig.h: see the Autoconf documentation" >&2;} |
9407 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: section \"Present But Cannot Be Compiled\"" >&5 |
9408 |
> |
echo "$as_me: WARNING: openbabel/babelconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9409 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: proceeding with the preprocessor's result" >&5 |
9410 |
> |
echo "$as_me: WARNING: openbabel/babelconfig.h: proceeding with the preprocessor's result" >&2;} |
9411 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/babelconfig.h: in the future, the compiler will take precedence" >&5 |
9412 |
> |
echo "$as_me: WARNING: openbabel/babelconfig.h: in the future, the compiler will take precedence" >&2;} |
9413 |
|
( cat <<\_ASBOX |
9414 |
|
## ------------------------------ ## |
9415 |
|
## Report this to gezelter@nd.edu ## |
9418 |
|
) | sed "s/^/$as_me: WARNING: /" >&2 |
9419 |
|
;; |
9420 |
|
esac |
9421 |
< |
{ echo "$as_me:$LINENO: checking for openbabel-2.0/openbabel/babelconfig.h" >&5 |
9422 |
< |
echo $ECHO_N "checking for openbabel-2.0/openbabel/babelconfig.h... $ECHO_C" >&6; } |
9423 |
< |
if test "${ac_cv_header_openbabel_2_0_openbabel_babelconfig_h+set}" = set; then |
9421 |
> |
{ echo "$as_me:$LINENO: checking for openbabel/babelconfig.h" >&5 |
9422 |
> |
echo $ECHO_N "checking for openbabel/babelconfig.h... $ECHO_C" >&6; } |
9423 |
> |
if test "${ac_cv_header_openbabel_babelconfig_h+set}" = set; then |
9424 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9425 |
|
else |
9426 |
< |
ac_cv_header_openbabel_2_0_openbabel_babelconfig_h=$ac_header_preproc |
9426 |
> |
ac_cv_header_openbabel_babelconfig_h=$ac_header_preproc |
9427 |
|
fi |
9428 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_2_0_openbabel_babelconfig_h" >&5 |
9429 |
< |
echo "${ECHO_T}$ac_cv_header_openbabel_2_0_openbabel_babelconfig_h" >&6; } |
9428 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_babelconfig_h" >&5 |
9429 |
> |
echo "${ECHO_T}$ac_cv_header_openbabel_babelconfig_h" >&6; } |
9430 |
|
|
9431 |
|
fi |
9432 |
< |
if test $ac_cv_header_openbabel_2_0_openbabel_babelconfig_h = yes; then |
9432 |
> |
if test $ac_cv_header_openbabel_babelconfig_h = yes; then |
9433 |
|
openbabel_cv_openbabel_h=yes |
9434 |
|
else |
9435 |
|
openbabel_cv_openbabel_h=no |
9436 |
|
fi |
9437 |
|
|
9438 |
|
|
9439 |
< |
if test "${ac_cv_header_openbabel_2_0_openbabel_obconversion_h+set}" = set; then |
9440 |
< |
{ echo "$as_me:$LINENO: checking for openbabel-2.0/openbabel/obconversion.h" >&5 |
9441 |
< |
echo $ECHO_N "checking for openbabel-2.0/openbabel/obconversion.h... $ECHO_C" >&6; } |
9442 |
< |
if test "${ac_cv_header_openbabel_2_0_openbabel_obconversion_h+set}" = set; then |
9439 |
> |
if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then |
9440 |
> |
{ echo "$as_me:$LINENO: checking for openbabel/obconversion.h" >&5 |
9441 |
> |
echo $ECHO_N "checking for openbabel/obconversion.h... $ECHO_C" >&6; } |
9442 |
> |
if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then |
9443 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9444 |
|
fi |
9445 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_2_0_openbabel_obconversion_h" >&5 |
9446 |
< |
echo "${ECHO_T}$ac_cv_header_openbabel_2_0_openbabel_obconversion_h" >&6; } |
9445 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_obconversion_h" >&5 |
9446 |
> |
echo "${ECHO_T}$ac_cv_header_openbabel_obconversion_h" >&6; } |
9447 |
|
else |
9448 |
|
# Is the header compilable? |
9449 |
< |
{ echo "$as_me:$LINENO: checking openbabel-2.0/openbabel/obconversion.h usability" >&5 |
9450 |
< |
echo $ECHO_N "checking openbabel-2.0/openbabel/obconversion.h usability... $ECHO_C" >&6; } |
9449 |
> |
{ echo "$as_me:$LINENO: checking openbabel/obconversion.h usability" >&5 |
9450 |
> |
echo $ECHO_N "checking openbabel/obconversion.h usability... $ECHO_C" >&6; } |
9451 |
|
cat >conftest.$ac_ext <<_ACEOF |
9452 |
|
/* confdefs.h. */ |
9453 |
|
_ACEOF |
9455 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9456 |
|
/* end confdefs.h. */ |
9457 |
|
$ac_includes_default |
9458 |
< |
#include <openbabel-2.0/openbabel/obconversion.h> |
9458 |
> |
#include <openbabel/obconversion.h> |
9459 |
|
_ACEOF |
9460 |
|
rm -f conftest.$ac_objext |
9461 |
|
if { (ac_try="$ac_compile" |
9487 |
|
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9488 |
|
|
9489 |
|
# Is the header present? |
9490 |
< |
{ echo "$as_me:$LINENO: checking openbabel-2.0/openbabel/obconversion.h presence" >&5 |
9491 |
< |
echo $ECHO_N "checking openbabel-2.0/openbabel/obconversion.h presence... $ECHO_C" >&6; } |
9490 |
> |
{ echo "$as_me:$LINENO: checking openbabel/obconversion.h presence" >&5 |
9491 |
> |
echo $ECHO_N "checking openbabel/obconversion.h presence... $ECHO_C" >&6; } |
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 |
< |
#include <openbabel-2.0/openbabel/obconversion.h> |
9498 |
> |
#include <openbabel/obconversion.h> |
9499 |
|
_ACEOF |
9500 |
|
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9501 |
|
case "(($ac_try" in |
9528 |
|
# So? What about this header? |
9529 |
|
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9530 |
|
yes:no: ) |
9531 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9532 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9533 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: proceeding with the compiler's result" >&5 |
9534 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: proceeding with the compiler's result" >&2;} |
9531 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9532 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9533 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: proceeding with the compiler's result" >&5 |
9534 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: proceeding with the compiler's result" >&2;} |
9535 |
|
ac_header_preproc=yes |
9536 |
|
;; |
9537 |
|
no:yes:* ) |
9538 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: present but cannot be compiled" >&5 |
9539 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: present but cannot be compiled" >&2;} |
9540 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: check for missing prerequisite headers?" >&5 |
9541 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: check for missing prerequisite headers?" >&2;} |
9542 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: see the Autoconf documentation" >&5 |
9543 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: see the Autoconf documentation" >&2;} |
9544 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: section \"Present But Cannot Be Compiled\"" >&5 |
9545 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9546 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: proceeding with the preprocessor's result" >&5 |
9547 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: proceeding with the preprocessor's result" >&2;} |
9548 |
< |
{ echo "$as_me:$LINENO: WARNING: openbabel-2.0/openbabel/obconversion.h: in the future, the compiler will take precedence" >&5 |
9549 |
< |
echo "$as_me: WARNING: openbabel-2.0/openbabel/obconversion.h: in the future, the compiler will take precedence" >&2;} |
9538 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: present but cannot be compiled" >&5 |
9539 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: present but cannot be compiled" >&2;} |
9540 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: check for missing prerequisite headers?" >&5 |
9541 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: check for missing prerequisite headers?" >&2;} |
9542 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: see the Autoconf documentation" >&5 |
9543 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: see the Autoconf documentation" >&2;} |
9544 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: section \"Present But Cannot Be Compiled\"" >&5 |
9545 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9546 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: proceeding with the preprocessor's result" >&5 |
9547 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: proceeding with the preprocessor's result" >&2;} |
9548 |
> |
{ echo "$as_me:$LINENO: WARNING: openbabel/obconversion.h: in the future, the compiler will take precedence" >&5 |
9549 |
> |
echo "$as_me: WARNING: openbabel/obconversion.h: in the future, the compiler will take precedence" >&2;} |
9550 |
|
( cat <<\_ASBOX |
9551 |
|
## ------------------------------ ## |
9552 |
|
## Report this to gezelter@nd.edu ## |
9555 |
|
) | sed "s/^/$as_me: WARNING: /" >&2 |
9556 |
|
;; |
9557 |
|
esac |
9558 |
< |
{ echo "$as_me:$LINENO: checking for openbabel-2.0/openbabel/obconversion.h" >&5 |
9559 |
< |
echo $ECHO_N "checking for openbabel-2.0/openbabel/obconversion.h... $ECHO_C" >&6; } |
9560 |
< |
if test "${ac_cv_header_openbabel_2_0_openbabel_obconversion_h+set}" = set; then |
9558 |
> |
{ echo "$as_me:$LINENO: checking for openbabel/obconversion.h" >&5 |
9559 |
> |
echo $ECHO_N "checking for openbabel/obconversion.h... $ECHO_C" >&6; } |
9560 |
> |
if test "${ac_cv_header_openbabel_obconversion_h+set}" = set; then |
9561 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9562 |
|
else |
9563 |
< |
ac_cv_header_openbabel_2_0_openbabel_obconversion_h=$ac_header_preproc |
9563 |
> |
ac_cv_header_openbabel_obconversion_h=$ac_header_preproc |
9564 |
|
fi |
9565 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_2_0_openbabel_obconversion_h" >&5 |
9566 |
< |
echo "${ECHO_T}$ac_cv_header_openbabel_2_0_openbabel_obconversion_h" >&6; } |
9565 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_header_openbabel_obconversion_h" >&5 |
9566 |
> |
echo "${ECHO_T}$ac_cv_header_openbabel_obconversion_h" >&6; } |
9567 |
|
|
9568 |
|
fi |
9569 |
< |
if test $ac_cv_header_openbabel_2_0_openbabel_obconversion_h = yes; then |
9569 |
> |
if test $ac_cv_header_openbabel_obconversion_h = yes; then |
9570 |
|
openbabel_cv_obconversion_h=yes |
9571 |
|
else |
9572 |
|
openbabel_cv_obconversion_h=no |
9866 |
|
_ACEOF |
9867 |
|
|
9868 |
|
fi |
9078 |
– |
|
9079 |
– |
|
9080 |
– |
|
9081 |
– |
|
9082 |
– |
|
9083 |
– |
|
9084 |
– |
|
9085 |
– |
|
9086 |
– |
|
9869 |
|
|
9870 |
|
|
9871 |
|
|
9882 |
|
|
9883 |
|
|
9884 |
|
|
9885 |
< |
|
9104 |
< |
for ac_header in conio.h dlfcn.h fstream.h iostream.h libintl.h limits.h machine/hal_sysinfo.h math.h stddef.h stdio.h stdlib.h string.h strings.h strstream.h sys/param.h sys/pstat.h sys/sysmp.h sys/sysctl.h sys/sysinfo.h sys/systemcfg.h sys/table.h sys/time.h time.h unistd.h zlib.h |
9885 |
> |
for ac_header in libintl.h limits.h machine/hal_sysinfo.h stdlib.h string.h strings.h sys/param.h sys/pstat.h sys/sysctl.h sys/sysinfo.h sys/sysmp.h sys/systemcfg.h sys/table.h sys/time.h unistd.h |
9886 |
|
do |
9887 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9888 |
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10413 |
|
;; |
10414 |
|
esac |
10415 |
|
|
9635 |
– |
{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 |
9636 |
– |
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; } |
9637 |
– |
if test "${ac_cv_c_restrict+set}" = set; then |
9638 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9639 |
– |
else |
9640 |
– |
ac_cv_c_restrict=no |
9641 |
– |
# Try the official restrict keyword, then gcc's __restrict, and |
9642 |
– |
# the less common variants. |
9643 |
– |
for ac_kw in restrict __restrict __restrict__ _Restrict; do |
9644 |
– |
cat >conftest.$ac_ext <<_ACEOF |
9645 |
– |
/* confdefs.h. */ |
9646 |
– |
_ACEOF |
9647 |
– |
cat confdefs.h >>conftest.$ac_ext |
9648 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
9649 |
– |
/* end confdefs.h. */ |
9650 |
– |
typedef int * int_ptr; |
9651 |
– |
int foo (int_ptr $ac_kw ip) { |
9652 |
– |
return ip[0]; |
9653 |
– |
} |
9654 |
– |
#ifdef FC_DUMMY_MAIN |
9655 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9656 |
– |
# ifdef __cplusplus |
9657 |
– |
extern "C" |
9658 |
– |
# endif |
9659 |
– |
int FC_DUMMY_MAIN() { return 1; } |
9660 |
– |
#endif |
9661 |
– |
#endif |
9662 |
– |
int |
9663 |
– |
main () |
9664 |
– |
{ |
9665 |
– |
int s[1]; |
9666 |
– |
int * $ac_kw t = s; |
9667 |
– |
t[0] = 0; |
9668 |
– |
return foo(t) |
9669 |
– |
; |
9670 |
– |
return 0; |
9671 |
– |
} |
9672 |
– |
_ACEOF |
9673 |
– |
rm -f conftest.$ac_objext |
9674 |
– |
if { (ac_try="$ac_compile" |
9675 |
– |
case "(($ac_try" in |
9676 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9677 |
– |
*) ac_try_echo=$ac_try;; |
9678 |
– |
esac |
9679 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9680 |
– |
(eval "$ac_compile") 2>conftest.er1 |
9681 |
– |
ac_status=$? |
9682 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
9683 |
– |
rm -f conftest.er1 |
9684 |
– |
cat conftest.err >&5 |
9685 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9686 |
– |
(exit $ac_status); } && { |
9687 |
– |
test -z "$ac_c_werror_flag" || |
9688 |
– |
test ! -s conftest.err |
9689 |
– |
} && test -s conftest.$ac_objext; then |
9690 |
– |
ac_cv_c_restrict=$ac_kw |
9691 |
– |
else |
9692 |
– |
echo "$as_me: failed program was:" >&5 |
9693 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
9694 |
– |
|
9695 |
– |
|
9696 |
– |
fi |
9697 |
– |
|
9698 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9699 |
– |
test "$ac_cv_c_restrict" != no && break |
9700 |
– |
done |
9701 |
– |
|
9702 |
– |
fi |
9703 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 |
9704 |
– |
echo "${ECHO_T}$ac_cv_c_restrict" >&6; } |
9705 |
– |
case $ac_cv_c_restrict in |
9706 |
– |
restrict) ;; |
9707 |
– |
no) |
9708 |
– |
cat >>confdefs.h <<\_ACEOF |
9709 |
– |
#define restrict |
9710 |
– |
_ACEOF |
9711 |
– |
;; |
9712 |
– |
*) cat >>confdefs.h <<_ACEOF |
9713 |
– |
#define restrict $ac_cv_c_restrict |
9714 |
– |
_ACEOF |
9715 |
– |
;; |
9716 |
– |
esac |
9717 |
– |
|
10416 |
|
{ echo "$as_me:$LINENO: checking for size_t" >&5 |
10417 |
|
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
10418 |
|
if test "${ac_cv_type_size_t+set}" = set; then |
10553 |
|
|
10554 |
|
fi |
10555 |
|
|
9858 |
– |
{ echo "$as_me:$LINENO: checking for clock_t" >&5 |
9859 |
– |
echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; } |
9860 |
– |
if test "${ac_cv_type_clock_t+set}" = set; then |
9861 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9862 |
– |
else |
9863 |
– |
cat >conftest.$ac_ext <<_ACEOF |
9864 |
– |
/* confdefs.h. */ |
9865 |
– |
_ACEOF |
9866 |
– |
cat confdefs.h >>conftest.$ac_ext |
9867 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
9868 |
– |
/* end confdefs.h. */ |
9869 |
– |
$ac_includes_default |
9870 |
– |
typedef clock_t ac__type_new_; |
9871 |
– |
#ifdef FC_DUMMY_MAIN |
9872 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9873 |
– |
# ifdef __cplusplus |
9874 |
– |
extern "C" |
9875 |
– |
# endif |
9876 |
– |
int FC_DUMMY_MAIN() { return 1; } |
9877 |
– |
#endif |
9878 |
– |
#endif |
9879 |
– |
int |
9880 |
– |
main () |
9881 |
– |
{ |
9882 |
– |
if ((ac__type_new_ *) 0) |
9883 |
– |
return 0; |
9884 |
– |
if (sizeof (ac__type_new_)) |
9885 |
– |
return 0; |
9886 |
– |
; |
9887 |
– |
return 0; |
9888 |
– |
} |
9889 |
– |
_ACEOF |
9890 |
– |
rm -f conftest.$ac_objext |
9891 |
– |
if { (ac_try="$ac_compile" |
9892 |
– |
case "(($ac_try" in |
9893 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9894 |
– |
*) ac_try_echo=$ac_try;; |
9895 |
– |
esac |
9896 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9897 |
– |
(eval "$ac_compile") 2>conftest.er1 |
9898 |
– |
ac_status=$? |
9899 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
9900 |
– |
rm -f conftest.er1 |
9901 |
– |
cat conftest.err >&5 |
9902 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9903 |
– |
(exit $ac_status); } && { |
9904 |
– |
test -z "$ac_c_werror_flag" || |
9905 |
– |
test ! -s conftest.err |
9906 |
– |
} && test -s conftest.$ac_objext; then |
9907 |
– |
ac_cv_type_clock_t=yes |
9908 |
– |
else |
9909 |
– |
echo "$as_me: failed program was:" >&5 |
9910 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
10556 |
|
|
9912 |
– |
ac_cv_type_clock_t=no |
9913 |
– |
fi |
9914 |
– |
|
9915 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9916 |
– |
fi |
9917 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5 |
9918 |
– |
echo "${ECHO_T}$ac_cv_type_clock_t" >&6; } |
9919 |
– |
if test $ac_cv_type_clock_t = yes; then |
9920 |
– |
|
9921 |
– |
cat >>confdefs.h <<_ACEOF |
9922 |
– |
#define HAVE_CLOCK_T 1 |
9923 |
– |
_ACEOF |
9924 |
– |
|
9925 |
– |
|
9926 |
– |
fi |
9927 |
– |
|
9928 |
– |
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
9929 |
– |
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
9930 |
– |
if test "${ac_cv_c_const+set}" = set; then |
9931 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9932 |
– |
else |
9933 |
– |
cat >conftest.$ac_ext <<_ACEOF |
9934 |
– |
/* confdefs.h. */ |
9935 |
– |
_ACEOF |
9936 |
– |
cat confdefs.h >>conftest.$ac_ext |
9937 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
9938 |
– |
/* end confdefs.h. */ |
9939 |
– |
|
9940 |
– |
#ifdef FC_DUMMY_MAIN |
9941 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
9942 |
– |
# ifdef __cplusplus |
9943 |
– |
extern "C" |
9944 |
– |
# endif |
9945 |
– |
int FC_DUMMY_MAIN() { return 1; } |
9946 |
– |
#endif |
9947 |
– |
#endif |
9948 |
– |
int |
9949 |
– |
main () |
9950 |
– |
{ |
9951 |
– |
/* FIXME: Include the comments suggested by Paul. */ |
9952 |
– |
#ifndef __cplusplus |
9953 |
– |
/* Ultrix mips cc rejects this. */ |
9954 |
– |
typedef int charset[2]; |
9955 |
– |
const charset cs; |
9956 |
– |
/* SunOS 4.1.1 cc rejects this. */ |
9957 |
– |
char const *const *pcpcc; |
9958 |
– |
char **ppc; |
9959 |
– |
/* NEC SVR4.0.2 mips cc rejects this. */ |
9960 |
– |
struct point {int x, y;}; |
9961 |
– |
static struct point const zero = {0,0}; |
9962 |
– |
/* AIX XL C 1.02.0.0 rejects this. |
9963 |
– |
It does not let you subtract one const X* pointer from another in |
9964 |
– |
an arm of an if-expression whose if-part is not a constant |
9965 |
– |
expression */ |
9966 |
– |
const char *g = "string"; |
9967 |
– |
pcpcc = &g + (g ? g-g : 0); |
9968 |
– |
/* HPUX 7.0 cc rejects these. */ |
9969 |
– |
++pcpcc; |
9970 |
– |
ppc = (char**) pcpcc; |
9971 |
– |
pcpcc = (char const *const *) ppc; |
9972 |
– |
{ /* SCO 3.2v4 cc rejects this. */ |
9973 |
– |
char *t; |
9974 |
– |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
9975 |
– |
|
9976 |
– |
*t++ = 0; |
9977 |
– |
if (s) return 0; |
9978 |
– |
} |
9979 |
– |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
9980 |
– |
int x[] = {25, 17}; |
9981 |
– |
const int *foo = &x[0]; |
9982 |
– |
++foo; |
9983 |
– |
} |
9984 |
– |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
9985 |
– |
typedef const int *iptr; |
9986 |
– |
iptr p = 0; |
9987 |
– |
++p; |
9988 |
– |
} |
9989 |
– |
{ /* AIX XL C 1.02.0.0 rejects this saying |
9990 |
– |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
9991 |
– |
struct s { int j; const int *ap[3]; }; |
9992 |
– |
struct s *b; b->j = 5; |
9993 |
– |
} |
9994 |
– |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
9995 |
– |
const int foo = 10; |
9996 |
– |
if (!foo) return 0; |
9997 |
– |
} |
9998 |
– |
return !cs[0] && !zero.x; |
9999 |
– |
#endif |
10000 |
– |
|
10001 |
– |
; |
10002 |
– |
return 0; |
10003 |
– |
} |
10004 |
– |
_ACEOF |
10005 |
– |
rm -f conftest.$ac_objext |
10006 |
– |
if { (ac_try="$ac_compile" |
10007 |
– |
case "(($ac_try" in |
10008 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10009 |
– |
*) ac_try_echo=$ac_try;; |
10010 |
– |
esac |
10011 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10012 |
– |
(eval "$ac_compile") 2>conftest.er1 |
10013 |
– |
ac_status=$? |
10014 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
10015 |
– |
rm -f conftest.er1 |
10016 |
– |
cat conftest.err >&5 |
10017 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10018 |
– |
(exit $ac_status); } && { |
10019 |
– |
test -z "$ac_c_werror_flag" || |
10020 |
– |
test ! -s conftest.err |
10021 |
– |
} && test -s conftest.$ac_objext; then |
10022 |
– |
ac_cv_c_const=yes |
10023 |
– |
else |
10024 |
– |
echo "$as_me: failed program was:" >&5 |
10025 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
10026 |
– |
|
10027 |
– |
ac_cv_c_const=no |
10028 |
– |
fi |
10029 |
– |
|
10030 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10031 |
– |
fi |
10032 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
10033 |
– |
echo "${ECHO_T}$ac_cv_c_const" >&6; } |
10034 |
– |
if test $ac_cv_c_const = no; then |
10035 |
– |
|
10036 |
– |
cat >>confdefs.h <<\_ACEOF |
10037 |
– |
#define const |
10038 |
– |
_ACEOF |
10039 |
– |
|
10040 |
– |
fi |
10041 |
– |
|
10042 |
– |
{ echo "$as_me:$LINENO: checking for inline" >&5 |
10043 |
– |
echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
10044 |
– |
if test "${ac_cv_c_inline+set}" = set; then |
10045 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10046 |
– |
else |
10047 |
– |
ac_cv_c_inline=no |
10048 |
– |
for ac_kw in inline __inline__ __inline; do |
10049 |
– |
cat >conftest.$ac_ext <<_ACEOF |
10050 |
– |
/* confdefs.h. */ |
10051 |
– |
_ACEOF |
10052 |
– |
cat confdefs.h >>conftest.$ac_ext |
10053 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
10054 |
– |
/* end confdefs.h. */ |
10055 |
– |
#ifndef __cplusplus |
10056 |
– |
typedef int foo_t; |
10057 |
– |
static $ac_kw foo_t static_foo () {return 0; } |
10058 |
– |
$ac_kw foo_t foo () {return 0; } |
10059 |
– |
#endif |
10060 |
– |
|
10061 |
– |
_ACEOF |
10062 |
– |
rm -f conftest.$ac_objext |
10063 |
– |
if { (ac_try="$ac_compile" |
10064 |
– |
case "(($ac_try" in |
10065 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10066 |
– |
*) ac_try_echo=$ac_try;; |
10067 |
– |
esac |
10068 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10069 |
– |
(eval "$ac_compile") 2>conftest.er1 |
10070 |
– |
ac_status=$? |
10071 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
10072 |
– |
rm -f conftest.er1 |
10073 |
– |
cat conftest.err >&5 |
10074 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10075 |
– |
(exit $ac_status); } && { |
10076 |
– |
test -z "$ac_c_werror_flag" || |
10077 |
– |
test ! -s conftest.err |
10078 |
– |
} && test -s conftest.$ac_objext; then |
10079 |
– |
ac_cv_c_inline=$ac_kw |
10080 |
– |
else |
10081 |
– |
echo "$as_me: failed program was:" >&5 |
10082 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
10083 |
– |
|
10084 |
– |
|
10085 |
– |
fi |
10086 |
– |
|
10087 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10088 |
– |
test "$ac_cv_c_inline" != no && break |
10089 |
– |
done |
10090 |
– |
|
10091 |
– |
fi |
10092 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
10093 |
– |
echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
10094 |
– |
|
10095 |
– |
|
10096 |
– |
case $ac_cv_c_inline in |
10097 |
– |
inline | yes) ;; |
10098 |
– |
*) |
10099 |
– |
case $ac_cv_c_inline in |
10100 |
– |
no) ac_val=;; |
10101 |
– |
*) ac_val=$ac_cv_c_inline;; |
10102 |
– |
esac |
10103 |
– |
cat >>confdefs.h <<_ACEOF |
10104 |
– |
#ifndef __cplusplus |
10105 |
– |
#define inline $ac_val |
10106 |
– |
#endif |
10107 |
– |
_ACEOF |
10108 |
– |
;; |
10109 |
– |
esac |
10110 |
– |
|
10111 |
– |
|
10557 |
|
# Checks for library functions. |
10558 |
|
|
10559 |
|
for ac_header in stdlib.h |
10798 |
|
|
10799 |
|
|
10800 |
|
|
10356 |
– |
{ echo "$as_me:$LINENO: checking for working memcmp" >&5 |
10357 |
– |
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } |
10358 |
– |
if test "${ac_cv_func_memcmp_working+set}" = set; then |
10359 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10360 |
– |
else |
10361 |
– |
if test "$cross_compiling" = yes; then |
10362 |
– |
ac_cv_func_memcmp_working=no |
10363 |
– |
else |
10364 |
– |
cat >conftest.$ac_ext <<_ACEOF |
10365 |
– |
/* confdefs.h. */ |
10366 |
– |
_ACEOF |
10367 |
– |
cat confdefs.h >>conftest.$ac_ext |
10368 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
10369 |
– |
/* end confdefs.h. */ |
10370 |
– |
$ac_includes_default |
10371 |
– |
#ifdef FC_DUMMY_MAIN |
10372 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10373 |
– |
# ifdef __cplusplus |
10374 |
– |
extern "C" |
10375 |
– |
# endif |
10376 |
– |
int FC_DUMMY_MAIN() { return 1; } |
10377 |
– |
#endif |
10378 |
– |
#endif |
10379 |
– |
int |
10380 |
– |
main () |
10381 |
– |
{ |
10801 |
|
|
10383 |
– |
/* Some versions of memcmp are not 8-bit clean. */ |
10384 |
– |
char c0 = '\100', c1 = '\200', c2 = '\201'; |
10385 |
– |
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
10386 |
– |
return 1; |
10387 |
– |
|
10388 |
– |
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
10389 |
– |
or more and with at least one buffer not starting on a 4-byte boundary. |
10390 |
– |
William Lewis provided this test program. */ |
10391 |
– |
{ |
10392 |
– |
char foo[21]; |
10393 |
– |
char bar[21]; |
10394 |
– |
int i; |
10395 |
– |
for (i = 0; i < 4; i++) |
10396 |
– |
{ |
10397 |
– |
char *a = foo + i; |
10398 |
– |
char *b = bar + i; |
10399 |
– |
strcpy (a, "--------01111111"); |
10400 |
– |
strcpy (b, "--------10000000"); |
10401 |
– |
if (memcmp (a, b, 16) >= 0) |
10402 |
– |
return 1; |
10403 |
– |
} |
10404 |
– |
return 0; |
10405 |
– |
} |
10406 |
– |
|
10407 |
– |
; |
10408 |
– |
return 0; |
10409 |
– |
} |
10410 |
– |
_ACEOF |
10411 |
– |
rm -f conftest$ac_exeext |
10412 |
– |
if { (ac_try="$ac_link" |
10413 |
– |
case "(($ac_try" in |
10414 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10415 |
– |
*) ac_try_echo=$ac_try;; |
10416 |
– |
esac |
10417 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 |
– |
{ (case "(($ac_try" in |
10423 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10424 |
– |
*) ac_try_echo=$ac_try;; |
10425 |
– |
esac |
10426 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10427 |
– |
(eval "$ac_try") 2>&5 |
10428 |
– |
ac_status=$? |
10429 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10430 |
– |
(exit $ac_status); }; }; then |
10431 |
– |
ac_cv_func_memcmp_working=yes |
10432 |
– |
else |
10433 |
– |
echo "$as_me: program exited with status $ac_status" >&5 |
10434 |
– |
echo "$as_me: failed program was:" >&5 |
10435 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
10436 |
– |
|
10437 |
– |
( exit $ac_status ) |
10438 |
– |
ac_cv_func_memcmp_working=no |
10439 |
– |
fi |
10440 |
– |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
10441 |
– |
fi |
10442 |
– |
|
10443 |
– |
|
10444 |
– |
fi |
10445 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
10446 |
– |
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } |
10447 |
– |
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
10448 |
– |
*" memcmp.$ac_objext "* ) ;; |
10449 |
– |
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
10450 |
– |
;; |
10451 |
– |
esac |
10452 |
– |
|
10453 |
– |
|
10454 |
– |
|
10802 |
|
for ac_header in stdlib.h |
10803 |
|
do |
10804 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11172 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11173 |
|
else |
11174 |
|
eval "$as_ac_Header=\$ac_header_preproc" |
10828 |
– |
fi |
10829 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
10830 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10831 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
10832 |
– |
|
10833 |
– |
fi |
10834 |
– |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10835 |
– |
cat >>confdefs.h <<_ACEOF |
10836 |
– |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10837 |
– |
_ACEOF |
10838 |
– |
|
10839 |
– |
fi |
10840 |
– |
|
10841 |
– |
done |
10842 |
– |
|
10843 |
– |
{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
10844 |
– |
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } |
10845 |
– |
if test "${ac_cv_func_select_args+set}" = set; then |
10846 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10847 |
– |
else |
10848 |
– |
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
10849 |
– |
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
10850 |
– |
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
10851 |
– |
cat >conftest.$ac_ext <<_ACEOF |
10852 |
– |
/* confdefs.h. */ |
10853 |
– |
_ACEOF |
10854 |
– |
cat confdefs.h >>conftest.$ac_ext |
10855 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
10856 |
– |
/* end confdefs.h. */ |
10857 |
– |
$ac_includes_default |
10858 |
– |
#ifdef HAVE_SYS_SELECT_H |
10859 |
– |
# include <sys/select.h> |
10860 |
– |
#endif |
10861 |
– |
#ifdef HAVE_SYS_SOCKET_H |
10862 |
– |
# include <sys/socket.h> |
10863 |
– |
#endif |
10864 |
– |
|
10865 |
– |
#ifdef FC_DUMMY_MAIN |
10866 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10867 |
– |
# ifdef __cplusplus |
10868 |
– |
extern "C" |
10869 |
– |
# endif |
10870 |
– |
int FC_DUMMY_MAIN() { return 1; } |
10871 |
– |
#endif |
10872 |
– |
#endif |
10873 |
– |
int |
10874 |
– |
main () |
10875 |
– |
{ |
10876 |
– |
extern int select ($ac_arg1, |
10877 |
– |
$ac_arg234, $ac_arg234, $ac_arg234, |
10878 |
– |
$ac_arg5); |
10879 |
– |
; |
10880 |
– |
return 0; |
10881 |
– |
} |
10882 |
– |
_ACEOF |
10883 |
– |
rm -f conftest.$ac_objext |
10884 |
– |
if { (ac_try="$ac_compile" |
10885 |
– |
case "(($ac_try" in |
10886 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10887 |
– |
*) ac_try_echo=$ac_try;; |
10888 |
– |
esac |
10889 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10890 |
– |
(eval "$ac_compile") 2>conftest.er1 |
10891 |
– |
ac_status=$? |
10892 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
10893 |
– |
rm -f conftest.er1 |
10894 |
– |
cat conftest.err >&5 |
10895 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10896 |
– |
(exit $ac_status); } && { |
10897 |
– |
test -z "$ac_c_werror_flag" || |
10898 |
– |
test ! -s conftest.err |
10899 |
– |
} && test -s conftest.$ac_objext; then |
10900 |
– |
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
10901 |
– |
else |
10902 |
– |
echo "$as_me: failed program was:" >&5 |
10903 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
10904 |
– |
|
10905 |
– |
|
10906 |
– |
fi |
10907 |
– |
|
10908 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10909 |
– |
done |
10910 |
– |
done |
10911 |
– |
done |
10912 |
– |
# Provide a safe default value. |
10913 |
– |
: ${ac_cv_func_select_args='int,int *,struct timeval *'} |
10914 |
– |
|
10915 |
– |
fi |
10916 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
10917 |
– |
echo "${ECHO_T}$ac_cv_func_select_args" >&6; } |
10918 |
– |
ac_save_IFS=$IFS; IFS=',' |
10919 |
– |
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
10920 |
– |
IFS=$ac_save_IFS |
10921 |
– |
shift |
10922 |
– |
|
10923 |
– |
cat >>confdefs.h <<_ACEOF |
10924 |
– |
#define SELECT_TYPE_ARG1 $1 |
10925 |
– |
_ACEOF |
10926 |
– |
|
10927 |
– |
|
10928 |
– |
cat >>confdefs.h <<_ACEOF |
10929 |
– |
#define SELECT_TYPE_ARG234 ($2) |
10930 |
– |
_ACEOF |
10931 |
– |
|
10932 |
– |
|
10933 |
– |
cat >>confdefs.h <<_ACEOF |
10934 |
– |
#define SELECT_TYPE_ARG5 ($3) |
10935 |
– |
_ACEOF |
10936 |
– |
|
10937 |
– |
rm -f conftest* |
10938 |
– |
|
10939 |
– |
|
10940 |
– |
for ac_func in strftime |
10941 |
– |
do |
10942 |
– |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10943 |
– |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10944 |
– |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10945 |
– |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
10946 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10947 |
– |
else |
10948 |
– |
cat >conftest.$ac_ext <<_ACEOF |
10949 |
– |
/* confdefs.h. */ |
10950 |
– |
_ACEOF |
10951 |
– |
cat confdefs.h >>conftest.$ac_ext |
10952 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
10953 |
– |
/* end confdefs.h. */ |
10954 |
– |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10955 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10956 |
– |
#define $ac_func innocuous_$ac_func |
10957 |
– |
|
10958 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
10959 |
– |
which can conflict with char $ac_func (); below. |
10960 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10961 |
– |
<limits.h> exists even on freestanding compilers. */ |
10962 |
– |
|
10963 |
– |
#ifdef __STDC__ |
10964 |
– |
# include <limits.h> |
10965 |
– |
#else |
10966 |
– |
# include <assert.h> |
10967 |
– |
#endif |
10968 |
– |
|
10969 |
– |
#undef $ac_func |
10970 |
– |
|
10971 |
– |
/* Override any GCC internal prototype to avoid an error. |
10972 |
– |
Use char because int might match the return type of a GCC |
10973 |
– |
builtin and then its argument prototype would still apply. */ |
10974 |
– |
#ifdef __cplusplus |
10975 |
– |
extern "C" |
10976 |
– |
#endif |
10977 |
– |
char $ac_func (); |
10978 |
– |
/* The GNU C library defines this for functions which it implements |
10979 |
– |
to always fail with ENOSYS. Some functions are actually named |
10980 |
– |
something starting with __ and the normal name is an alias. */ |
10981 |
– |
#if defined __stub_$ac_func || defined __stub___$ac_func |
10982 |
– |
choke me |
10983 |
– |
#endif |
10984 |
– |
|
10985 |
– |
#ifdef FC_DUMMY_MAIN |
10986 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
10987 |
– |
# ifdef __cplusplus |
10988 |
– |
extern "C" |
10989 |
– |
# endif |
10990 |
– |
int FC_DUMMY_MAIN() { return 1; } |
10991 |
– |
#endif |
10992 |
– |
#endif |
10993 |
– |
int |
10994 |
– |
main () |
10995 |
– |
{ |
10996 |
– |
return $ac_func (); |
10997 |
– |
; |
10998 |
– |
return 0; |
10999 |
– |
} |
11000 |
– |
_ACEOF |
11001 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
11002 |
– |
if { (ac_try="$ac_link" |
11003 |
– |
case "(($ac_try" in |
11004 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11005 |
– |
*) ac_try_echo=$ac_try;; |
11006 |
– |
esac |
11007 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11008 |
– |
(eval "$ac_link") 2>conftest.er1 |
11009 |
– |
ac_status=$? |
11010 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11011 |
– |
rm -f conftest.er1 |
11012 |
– |
cat conftest.err >&5 |
11013 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11014 |
– |
(exit $ac_status); } && { |
11015 |
– |
test -z "$ac_c_werror_flag" || |
11016 |
– |
test ! -s conftest.err |
11017 |
– |
} && test -s conftest$ac_exeext && |
11018 |
– |
$as_test_x conftest$ac_exeext; then |
11019 |
– |
eval "$as_ac_var=yes" |
11020 |
– |
else |
11021 |
– |
echo "$as_me: failed program was:" >&5 |
11022 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11023 |
– |
|
11024 |
– |
eval "$as_ac_var=no" |
11025 |
– |
fi |
11026 |
– |
|
11027 |
– |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11028 |
– |
conftest$ac_exeext conftest.$ac_ext |
11029 |
– |
fi |
11030 |
– |
ac_res=`eval echo '${'$as_ac_var'}'` |
11031 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11032 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
11033 |
– |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
11034 |
– |
cat >>confdefs.h <<_ACEOF |
11035 |
– |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
11036 |
– |
_ACEOF |
11037 |
– |
|
11038 |
– |
else |
11039 |
– |
# strftime is in -lintl on SCO UNIX. |
11040 |
– |
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
11041 |
– |
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } |
11042 |
– |
if test "${ac_cv_lib_intl_strftime+set}" = set; then |
11043 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11044 |
– |
else |
11045 |
– |
ac_check_lib_save_LIBS=$LIBS |
11046 |
– |
LIBS="-lintl $LIBS" |
11047 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11048 |
– |
/* confdefs.h. */ |
11049 |
– |
_ACEOF |
11050 |
– |
cat confdefs.h >>conftest.$ac_ext |
11051 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11052 |
– |
/* end confdefs.h. */ |
11053 |
– |
|
11054 |
– |
/* Override any GCC internal prototype to avoid an error. |
11055 |
– |
Use char because int might match the return type of a GCC |
11056 |
– |
builtin and then its argument prototype would still apply. */ |
11057 |
– |
#ifdef __cplusplus |
11058 |
– |
extern "C" |
11059 |
– |
#endif |
11060 |
– |
char strftime (); |
11061 |
– |
#ifdef FC_DUMMY_MAIN |
11062 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11063 |
– |
# ifdef __cplusplus |
11064 |
– |
extern "C" |
11065 |
– |
# endif |
11066 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11067 |
– |
#endif |
11068 |
– |
#endif |
11069 |
– |
int |
11070 |
– |
main () |
11071 |
– |
{ |
11072 |
– |
return strftime (); |
11073 |
– |
; |
11074 |
– |
return 0; |
11075 |
– |
} |
11076 |
– |
_ACEOF |
11077 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
11078 |
– |
if { (ac_try="$ac_link" |
11079 |
– |
case "(($ac_try" in |
11080 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11081 |
– |
*) ac_try_echo=$ac_try;; |
11082 |
– |
esac |
11083 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11084 |
– |
(eval "$ac_link") 2>conftest.er1 |
11085 |
– |
ac_status=$? |
11086 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11087 |
– |
rm -f conftest.er1 |
11088 |
– |
cat conftest.err >&5 |
11089 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11090 |
– |
(exit $ac_status); } && { |
11091 |
– |
test -z "$ac_c_werror_flag" || |
11092 |
– |
test ! -s conftest.err |
11093 |
– |
} && test -s conftest$ac_exeext && |
11094 |
– |
$as_test_x conftest$ac_exeext; then |
11095 |
– |
ac_cv_lib_intl_strftime=yes |
11096 |
– |
else |
11097 |
– |
echo "$as_me: failed program was:" >&5 |
11098 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11099 |
– |
|
11100 |
– |
ac_cv_lib_intl_strftime=no |
11101 |
– |
fi |
11102 |
– |
|
11103 |
– |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11104 |
– |
conftest$ac_exeext conftest.$ac_ext |
11105 |
– |
LIBS=$ac_check_lib_save_LIBS |
11106 |
– |
fi |
11107 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
11108 |
– |
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } |
11109 |
– |
if test $ac_cv_lib_intl_strftime = yes; then |
11110 |
– |
cat >>confdefs.h <<\_ACEOF |
11111 |
– |
#define HAVE_STRFTIME 1 |
11112 |
– |
_ACEOF |
11113 |
– |
|
11114 |
– |
LIBS="-lintl $LIBS" |
11115 |
– |
fi |
11116 |
– |
|
11117 |
– |
fi |
11118 |
– |
done |
11119 |
– |
|
11120 |
– |
{ echo "$as_me:$LINENO: checking for working strtod" >&5 |
11121 |
– |
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } |
11122 |
– |
if test "${ac_cv_func_strtod+set}" = set; then |
11123 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11124 |
– |
else |
11125 |
– |
if test "$cross_compiling" = yes; then |
11126 |
– |
ac_cv_func_strtod=no |
11127 |
– |
else |
11128 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11129 |
– |
/* confdefs.h. */ |
11130 |
– |
_ACEOF |
11131 |
– |
cat confdefs.h >>conftest.$ac_ext |
11132 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11133 |
– |
/* end confdefs.h. */ |
11134 |
– |
|
11135 |
– |
$ac_includes_default |
11136 |
– |
#ifndef strtod |
11137 |
– |
double strtod (); |
11138 |
– |
#endif |
11139 |
– |
int |
11140 |
– |
main() |
11141 |
– |
{ |
11142 |
– |
{ |
11143 |
– |
/* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
11144 |
– |
char *string = " +69"; |
11145 |
– |
char *term; |
11146 |
– |
double value; |
11147 |
– |
value = strtod (string, &term); |
11148 |
– |
if (value != 69 || term != (string + 4)) |
11149 |
– |
return 1; |
11150 |
– |
} |
11151 |
– |
|
11152 |
– |
{ |
11153 |
– |
/* Under Solaris 2.4, strtod returns the wrong value for the |
11154 |
– |
terminating character under some conditions. */ |
11155 |
– |
char *string = "NaN"; |
11156 |
– |
char *term; |
11157 |
– |
strtod (string, &term); |
11158 |
– |
if (term != string && *(term - 1) == 0) |
11159 |
– |
return 1; |
11160 |
– |
} |
11161 |
– |
return 0; |
11162 |
– |
} |
11163 |
– |
|
11164 |
– |
_ACEOF |
11165 |
– |
rm -f conftest$ac_exeext |
11166 |
– |
if { (ac_try="$ac_link" |
11167 |
– |
case "(($ac_try" in |
11168 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11169 |
– |
*) ac_try_echo=$ac_try;; |
11170 |
– |
esac |
11171 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11172 |
– |
(eval "$ac_link") 2>&5 |
11173 |
– |
ac_status=$? |
11174 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11175 |
– |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
11176 |
– |
{ (case "(($ac_try" in |
11177 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11178 |
– |
*) ac_try_echo=$ac_try;; |
11179 |
– |
esac |
11180 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11181 |
– |
(eval "$ac_try") 2>&5 |
11182 |
– |
ac_status=$? |
11183 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11184 |
– |
(exit $ac_status); }; }; then |
11185 |
– |
ac_cv_func_strtod=yes |
11186 |
– |
else |
11187 |
– |
echo "$as_me: program exited with status $ac_status" >&5 |
11188 |
– |
echo "$as_me: failed program was:" >&5 |
11189 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11190 |
– |
|
11191 |
– |
( exit $ac_status ) |
11192 |
– |
ac_cv_func_strtod=no |
11193 |
– |
fi |
11194 |
– |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11195 |
– |
fi |
11196 |
– |
|
11197 |
– |
|
11198 |
– |
fi |
11199 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
11200 |
– |
echo "${ECHO_T}$ac_cv_func_strtod" >&6; } |
11201 |
– |
if test $ac_cv_func_strtod = no; then |
11202 |
– |
case " $LIBOBJS " in |
11203 |
– |
*" strtod.$ac_objext "* ) ;; |
11204 |
– |
*) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
11205 |
– |
;; |
11206 |
– |
esac |
11207 |
– |
|
11208 |
– |
{ echo "$as_me:$LINENO: checking for pow" >&5 |
11209 |
– |
echo $ECHO_N "checking for pow... $ECHO_C" >&6; } |
11210 |
– |
if test "${ac_cv_func_pow+set}" = set; then |
11211 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11212 |
– |
else |
11213 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11214 |
– |
/* confdefs.h. */ |
11215 |
– |
_ACEOF |
11216 |
– |
cat confdefs.h >>conftest.$ac_ext |
11217 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11218 |
– |
/* end confdefs.h. */ |
11219 |
– |
/* Define pow to an innocuous variant, in case <limits.h> declares pow. |
11220 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11221 |
– |
#define pow innocuous_pow |
11222 |
– |
|
11223 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
11224 |
– |
which can conflict with char pow (); below. |
11225 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11226 |
– |
<limits.h> exists even on freestanding compilers. */ |
11227 |
– |
|
11228 |
– |
#ifdef __STDC__ |
11229 |
– |
# include <limits.h> |
11230 |
– |
#else |
11231 |
– |
# include <assert.h> |
11232 |
– |
#endif |
11233 |
– |
|
11234 |
– |
#undef pow |
11235 |
– |
|
11236 |
– |
/* Override any GCC internal prototype to avoid an error. |
11237 |
– |
Use char because int might match the return type of a GCC |
11238 |
– |
builtin and then its argument prototype would still apply. */ |
11239 |
– |
#ifdef __cplusplus |
11240 |
– |
extern "C" |
11241 |
– |
#endif |
11242 |
– |
char pow (); |
11243 |
– |
/* The GNU C library defines this for functions which it implements |
11244 |
– |
to always fail with ENOSYS. Some functions are actually named |
11245 |
– |
something starting with __ and the normal name is an alias. */ |
11246 |
– |
#if defined __stub_pow || defined __stub___pow |
11247 |
– |
choke me |
11248 |
– |
#endif |
11249 |
– |
|
11250 |
– |
#ifdef FC_DUMMY_MAIN |
11251 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11252 |
– |
# ifdef __cplusplus |
11253 |
– |
extern "C" |
11254 |
– |
# endif |
11255 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11256 |
– |
#endif |
11257 |
– |
#endif |
11258 |
– |
int |
11259 |
– |
main () |
11260 |
– |
{ |
11261 |
– |
return pow (); |
11262 |
– |
; |
11263 |
– |
return 0; |
11264 |
– |
} |
11265 |
– |
_ACEOF |
11266 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
11267 |
– |
if { (ac_try="$ac_link" |
11268 |
– |
case "(($ac_try" in |
11269 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11270 |
– |
*) ac_try_echo=$ac_try;; |
11271 |
– |
esac |
11272 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11273 |
– |
(eval "$ac_link") 2>conftest.er1 |
11274 |
– |
ac_status=$? |
11275 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11276 |
– |
rm -f conftest.er1 |
11277 |
– |
cat conftest.err >&5 |
11278 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11279 |
– |
(exit $ac_status); } && { |
11280 |
– |
test -z "$ac_c_werror_flag" || |
11281 |
– |
test ! -s conftest.err |
11282 |
– |
} && test -s conftest$ac_exeext && |
11283 |
– |
$as_test_x conftest$ac_exeext; then |
11284 |
– |
ac_cv_func_pow=yes |
11285 |
– |
else |
11286 |
– |
echo "$as_me: failed program was:" >&5 |
11287 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11288 |
– |
|
11289 |
– |
ac_cv_func_pow=no |
11290 |
– |
fi |
11291 |
– |
|
11292 |
– |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11293 |
– |
conftest$ac_exeext conftest.$ac_ext |
11294 |
– |
fi |
11295 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
11296 |
– |
echo "${ECHO_T}$ac_cv_func_pow" >&6; } |
11297 |
– |
|
11298 |
– |
if test $ac_cv_func_pow = no; then |
11299 |
– |
{ echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
11300 |
– |
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } |
11301 |
– |
if test "${ac_cv_lib_m_pow+set}" = set; then |
11302 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11303 |
– |
else |
11304 |
– |
ac_check_lib_save_LIBS=$LIBS |
11305 |
– |
LIBS="-lm $LIBS" |
11306 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11307 |
– |
/* confdefs.h. */ |
11308 |
– |
_ACEOF |
11309 |
– |
cat confdefs.h >>conftest.$ac_ext |
11310 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11311 |
– |
/* end confdefs.h. */ |
11312 |
– |
|
11313 |
– |
/* Override any GCC internal prototype to avoid an error. |
11314 |
– |
Use char because int might match the return type of a GCC |
11315 |
– |
builtin and then its argument prototype would still apply. */ |
11316 |
– |
#ifdef __cplusplus |
11317 |
– |
extern "C" |
11318 |
– |
#endif |
11319 |
– |
char pow (); |
11320 |
– |
#ifdef FC_DUMMY_MAIN |
11321 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11322 |
– |
# ifdef __cplusplus |
11323 |
– |
extern "C" |
11324 |
– |
# endif |
11325 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11326 |
– |
#endif |
11327 |
– |
#endif |
11328 |
– |
int |
11329 |
– |
main () |
11330 |
– |
{ |
11331 |
– |
return pow (); |
11332 |
– |
; |
11333 |
– |
return 0; |
11334 |
– |
} |
11335 |
– |
_ACEOF |
11336 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
11337 |
– |
if { (ac_try="$ac_link" |
11338 |
– |
case "(($ac_try" in |
11339 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11340 |
– |
*) ac_try_echo=$ac_try;; |
11341 |
– |
esac |
11342 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11343 |
– |
(eval "$ac_link") 2>conftest.er1 |
11344 |
– |
ac_status=$? |
11345 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11346 |
– |
rm -f conftest.er1 |
11347 |
– |
cat conftest.err >&5 |
11348 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11349 |
– |
(exit $ac_status); } && { |
11350 |
– |
test -z "$ac_c_werror_flag" || |
11351 |
– |
test ! -s conftest.err |
11352 |
– |
} && test -s conftest$ac_exeext && |
11353 |
– |
$as_test_x conftest$ac_exeext; then |
11354 |
– |
ac_cv_lib_m_pow=yes |
11355 |
– |
else |
11356 |
– |
echo "$as_me: failed program was:" >&5 |
11357 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11358 |
– |
|
11359 |
– |
ac_cv_lib_m_pow=no |
11360 |
– |
fi |
11361 |
– |
|
11362 |
– |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11363 |
– |
conftest$ac_exeext conftest.$ac_ext |
11364 |
– |
LIBS=$ac_check_lib_save_LIBS |
11365 |
– |
fi |
11366 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
11367 |
– |
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } |
11368 |
– |
if test $ac_cv_lib_m_pow = yes; then |
11369 |
– |
POW_LIB=-lm |
11370 |
– |
else |
11371 |
– |
{ echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
11372 |
– |
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
11373 |
– |
fi |
11374 |
– |
|
11375 |
– |
fi |
11376 |
– |
|
11377 |
– |
fi |
11378 |
– |
|
11379 |
– |
|
11380 |
– |
|
11381 |
– |
|
11382 |
– |
|
11383 |
– |
|
11384 |
– |
|
11385 |
– |
|
11386 |
– |
|
11387 |
– |
|
11388 |
– |
|
11389 |
– |
|
11390 |
– |
|
11391 |
– |
|
11392 |
– |
|
11393 |
– |
|
11394 |
– |
|
11395 |
– |
|
11396 |
– |
|
11397 |
– |
|
11398 |
– |
|
11399 |
– |
|
11400 |
– |
|
11401 |
– |
|
11402 |
– |
|
11403 |
– |
|
11404 |
– |
|
11405 |
– |
|
11406 |
– |
for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic pstat_getstatic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table |
11407 |
– |
do |
11408 |
– |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11409 |
– |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11410 |
– |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
11411 |
– |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
11412 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11413 |
– |
else |
11414 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11415 |
– |
/* confdefs.h. */ |
11416 |
– |
_ACEOF |
11417 |
– |
cat confdefs.h >>conftest.$ac_ext |
11418 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11419 |
– |
/* end confdefs.h. */ |
11420 |
– |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11421 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11422 |
– |
#define $ac_func innocuous_$ac_func |
11423 |
– |
|
11424 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
11425 |
– |
which can conflict with char $ac_func (); below. |
11426 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11427 |
– |
<limits.h> exists even on freestanding compilers. */ |
11428 |
– |
|
11429 |
– |
#ifdef __STDC__ |
11430 |
– |
# include <limits.h> |
11431 |
– |
#else |
11432 |
– |
# include <assert.h> |
11433 |
– |
#endif |
11434 |
– |
|
11435 |
– |
#undef $ac_func |
11436 |
– |
|
11437 |
– |
/* Override any GCC internal prototype to avoid an error. |
11438 |
– |
Use char because int might match the return type of a GCC |
11439 |
– |
builtin and then its argument prototype would still apply. */ |
11440 |
– |
#ifdef __cplusplus |
11441 |
– |
extern "C" |
11442 |
– |
#endif |
11443 |
– |
char $ac_func (); |
11444 |
– |
/* The GNU C library defines this for functions which it implements |
11445 |
– |
to always fail with ENOSYS. Some functions are actually named |
11446 |
– |
something starting with __ and the normal name is an alias. */ |
11447 |
– |
#if defined __stub_$ac_func || defined __stub___$ac_func |
11448 |
– |
choke me |
11449 |
– |
#endif |
11450 |
– |
|
11451 |
– |
#ifdef FC_DUMMY_MAIN |
11452 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11453 |
– |
# ifdef __cplusplus |
11454 |
– |
extern "C" |
11455 |
– |
# endif |
11456 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11457 |
– |
#endif |
11458 |
– |
#endif |
11459 |
– |
int |
11460 |
– |
main () |
11461 |
– |
{ |
11462 |
– |
return $ac_func (); |
11463 |
– |
; |
11464 |
– |
return 0; |
11465 |
– |
} |
11466 |
– |
_ACEOF |
11467 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
11468 |
– |
if { (ac_try="$ac_link" |
11469 |
– |
case "(($ac_try" in |
11470 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11471 |
– |
*) ac_try_echo=$ac_try;; |
11472 |
– |
esac |
11473 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11474 |
– |
(eval "$ac_link") 2>conftest.er1 |
11475 |
– |
ac_status=$? |
11476 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11477 |
– |
rm -f conftest.er1 |
11478 |
– |
cat conftest.err >&5 |
11479 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11480 |
– |
(exit $ac_status); } && { |
11481 |
– |
test -z "$ac_c_werror_flag" || |
11482 |
– |
test ! -s conftest.err |
11483 |
– |
} && test -s conftest$ac_exeext && |
11484 |
– |
$as_test_x conftest$ac_exeext; then |
11485 |
– |
eval "$as_ac_var=yes" |
11486 |
– |
else |
11487 |
– |
echo "$as_me: failed program was:" >&5 |
11488 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11489 |
– |
|
11490 |
– |
eval "$as_ac_var=no" |
11491 |
– |
fi |
11492 |
– |
|
11493 |
– |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11494 |
– |
conftest$ac_exeext conftest.$ac_ext |
11495 |
– |
fi |
11496 |
– |
ac_res=`eval echo '${'$as_ac_var'}'` |
11497 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11498 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
11499 |
– |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
11500 |
– |
cat >>confdefs.h <<_ACEOF |
11501 |
– |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
11502 |
– |
_ACEOF |
11503 |
– |
|
11504 |
– |
fi |
11505 |
– |
done |
11506 |
– |
|
11507 |
– |
|
11508 |
– |
# special check for _system_configuration because AIX <4.3.2 do not |
11509 |
– |
# contain the `physmem' member. |
11510 |
– |
{ echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 |
11511 |
– |
echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; } |
11512 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11513 |
– |
/* confdefs.h. */ |
11514 |
– |
_ACEOF |
11515 |
– |
cat confdefs.h >>conftest.$ac_ext |
11516 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11517 |
– |
/* end confdefs.h. */ |
11518 |
– |
#include <sys/systemcfg.h> |
11519 |
– |
#ifdef FC_DUMMY_MAIN |
11520 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11521 |
– |
# ifdef __cplusplus |
11522 |
– |
extern "C" |
11523 |
– |
# endif |
11524 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11525 |
– |
#endif |
11526 |
– |
#endif |
11527 |
– |
int |
11528 |
– |
main () |
11529 |
– |
{ |
11530 |
– |
double x = _system_configuration.physmem; |
11531 |
– |
; |
11532 |
– |
return 0; |
11533 |
– |
} |
11534 |
– |
_ACEOF |
11535 |
– |
rm -f conftest.$ac_objext |
11536 |
– |
if { (ac_try="$ac_compile" |
11537 |
– |
case "(($ac_try" in |
11538 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11539 |
– |
*) ac_try_echo=$ac_try;; |
11540 |
– |
esac |
11541 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11542 |
– |
(eval "$ac_compile") 2>conftest.er1 |
11543 |
– |
ac_status=$? |
11544 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11545 |
– |
rm -f conftest.er1 |
11546 |
– |
cat conftest.err >&5 |
11547 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11548 |
– |
(exit $ac_status); } && { |
11549 |
– |
test -z "$ac_c_werror_flag" || |
11550 |
– |
test ! -s conftest.err |
11551 |
– |
} && test -s conftest.$ac_objext; then |
11552 |
– |
{ echo "$as_me:$LINENO: result: yes" >&5 |
11553 |
– |
echo "${ECHO_T}yes" >&6; } |
11554 |
– |
|
11555 |
– |
cat >>confdefs.h <<\_ACEOF |
11556 |
– |
#define HAVE__SYSTEM_CONFIGURATION 1 |
11557 |
– |
_ACEOF |
11558 |
– |
|
11559 |
– |
else |
11560 |
– |
echo "$as_me: failed program was:" >&5 |
11561 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11562 |
– |
|
11563 |
– |
{ echo "$as_me:$LINENO: result: no" >&5 |
11564 |
– |
echo "${ECHO_T}no" >&6; } |
11565 |
– |
fi |
11566 |
– |
|
11567 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11568 |
– |
|
11569 |
– |
# clean out junk possibly left behind by a previous configuration |
11570 |
– |
rm -f src/getopt.h |
11571 |
– |
# Check for getopt_long support |
11572 |
– |
|
11573 |
– |
for ac_header in getopt.h |
11574 |
– |
do |
11575 |
– |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11576 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11577 |
– |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11578 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11579 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11580 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11581 |
– |
fi |
11582 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11583 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11584 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
11585 |
– |
else |
11586 |
– |
# Is the header compilable? |
11587 |
– |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11588 |
– |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
11589 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11590 |
– |
/* confdefs.h. */ |
11591 |
– |
_ACEOF |
11592 |
– |
cat confdefs.h >>conftest.$ac_ext |
11593 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11594 |
– |
/* end confdefs.h. */ |
11595 |
– |
$ac_includes_default |
11596 |
– |
#include <$ac_header> |
11597 |
– |
_ACEOF |
11598 |
– |
rm -f conftest.$ac_objext |
11599 |
– |
if { (ac_try="$ac_compile" |
11600 |
– |
case "(($ac_try" in |
11601 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11602 |
– |
*) ac_try_echo=$ac_try;; |
11603 |
– |
esac |
11604 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11605 |
– |
(eval "$ac_compile") 2>conftest.er1 |
11606 |
– |
ac_status=$? |
11607 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11608 |
– |
rm -f conftest.er1 |
11609 |
– |
cat conftest.err >&5 |
11610 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11611 |
– |
(exit $ac_status); } && { |
11612 |
– |
test -z "$ac_c_werror_flag" || |
11613 |
– |
test ! -s conftest.err |
11614 |
– |
} && test -s conftest.$ac_objext; then |
11615 |
– |
ac_header_compiler=yes |
11616 |
– |
else |
11617 |
– |
echo "$as_me: failed program was:" >&5 |
11618 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11619 |
– |
|
11620 |
– |
ac_header_compiler=no |
11621 |
– |
fi |
11622 |
– |
|
11623 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11624 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11625 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
11626 |
– |
|
11627 |
– |
# Is the header present? |
11628 |
– |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11629 |
– |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
11630 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11631 |
– |
/* confdefs.h. */ |
11632 |
– |
_ACEOF |
11633 |
– |
cat confdefs.h >>conftest.$ac_ext |
11634 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11635 |
– |
/* end confdefs.h. */ |
11636 |
– |
#include <$ac_header> |
11637 |
– |
_ACEOF |
11638 |
– |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
11639 |
– |
case "(($ac_try" in |
11640 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11641 |
– |
*) ac_try_echo=$ac_try;; |
11642 |
– |
esac |
11643 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11644 |
– |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
11645 |
– |
ac_status=$? |
11646 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11647 |
– |
rm -f conftest.er1 |
11648 |
– |
cat conftest.err >&5 |
11649 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11650 |
– |
(exit $ac_status); } >/dev/null && { |
11651 |
– |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
11652 |
– |
test ! -s conftest.err |
11653 |
– |
}; then |
11654 |
– |
ac_header_preproc=yes |
11655 |
– |
else |
11656 |
– |
echo "$as_me: failed program was:" >&5 |
11657 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11658 |
– |
|
11659 |
– |
ac_header_preproc=no |
11660 |
– |
fi |
11661 |
– |
|
11662 |
– |
rm -f conftest.err conftest.$ac_ext |
11663 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11664 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
11665 |
– |
|
11666 |
– |
# So? What about this header? |
11667 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11668 |
– |
yes:no: ) |
11669 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11670 |
– |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11671 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11672 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11673 |
– |
ac_header_preproc=yes |
11674 |
– |
;; |
11675 |
– |
no:yes:* ) |
11676 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11677 |
– |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11678 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11679 |
– |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11680 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11681 |
– |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11682 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11683 |
– |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11684 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11685 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11686 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11687 |
– |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11688 |
– |
( cat <<\_ASBOX |
11689 |
– |
## ------------------------------ ## |
11690 |
– |
## Report this to gezelter@nd.edu ## |
11691 |
– |
## ------------------------------ ## |
11692 |
– |
_ASBOX |
11693 |
– |
) | sed "s/^/$as_me: WARNING: /" >&2 |
11694 |
– |
;; |
11695 |
– |
esac |
11696 |
– |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11697 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11698 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11699 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11700 |
– |
else |
11701 |
– |
eval "$as_ac_Header=\$ac_header_preproc" |
11702 |
– |
fi |
11703 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11704 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11705 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
11706 |
– |
|
11707 |
– |
fi |
11708 |
– |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11709 |
– |
cat >>confdefs.h <<_ACEOF |
11710 |
– |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11711 |
– |
_ACEOF |
11712 |
– |
|
11713 |
– |
fi |
11714 |
– |
|
11715 |
– |
done |
11716 |
– |
|
11717 |
– |
|
11718 |
– |
for ac_func in getopt_long |
11719 |
– |
do |
11720 |
– |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11721 |
– |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11722 |
– |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
11723 |
– |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
11724 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11725 |
– |
else |
11726 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11727 |
– |
/* confdefs.h. */ |
11728 |
– |
_ACEOF |
11729 |
– |
cat confdefs.h >>conftest.$ac_ext |
11730 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11731 |
– |
/* end confdefs.h. */ |
11732 |
– |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11733 |
– |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11734 |
– |
#define $ac_func innocuous_$ac_func |
11735 |
– |
|
11736 |
– |
/* System header to define __stub macros and hopefully few prototypes, |
11737 |
– |
which can conflict with char $ac_func (); below. |
11738 |
– |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11739 |
– |
<limits.h> exists even on freestanding compilers. */ |
11740 |
– |
|
11741 |
– |
#ifdef __STDC__ |
11742 |
– |
# include <limits.h> |
11743 |
– |
#else |
11744 |
– |
# include <assert.h> |
11745 |
– |
#endif |
11746 |
– |
|
11747 |
– |
#undef $ac_func |
11748 |
– |
|
11749 |
– |
/* Override any GCC internal prototype to avoid an error. |
11750 |
– |
Use char because int might match the return type of a GCC |
11751 |
– |
builtin and then its argument prototype would still apply. */ |
11752 |
– |
#ifdef __cplusplus |
11753 |
– |
extern "C" |
11754 |
– |
#endif |
11755 |
– |
char $ac_func (); |
11756 |
– |
/* The GNU C library defines this for functions which it implements |
11757 |
– |
to always fail with ENOSYS. Some functions are actually named |
11758 |
– |
something starting with __ and the normal name is an alias. */ |
11759 |
– |
#if defined __stub_$ac_func || defined __stub___$ac_func |
11760 |
– |
choke me |
11761 |
– |
#endif |
11762 |
– |
|
11763 |
– |
#ifdef FC_DUMMY_MAIN |
11764 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11765 |
– |
# ifdef __cplusplus |
11766 |
– |
extern "C" |
11767 |
– |
# endif |
11768 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11769 |
– |
#endif |
11770 |
– |
#endif |
11771 |
– |
int |
11772 |
– |
main () |
11773 |
– |
{ |
11774 |
– |
return $ac_func (); |
11775 |
– |
; |
11776 |
– |
return 0; |
11777 |
– |
} |
11778 |
– |
_ACEOF |
11779 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
11780 |
– |
if { (ac_try="$ac_link" |
11781 |
– |
case "(($ac_try" in |
11782 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11783 |
– |
*) ac_try_echo=$ac_try;; |
11784 |
– |
esac |
11785 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11786 |
– |
(eval "$ac_link") 2>conftest.er1 |
11787 |
– |
ac_status=$? |
11788 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11789 |
– |
rm -f conftest.er1 |
11790 |
– |
cat conftest.err >&5 |
11791 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11792 |
– |
(exit $ac_status); } && { |
11793 |
– |
test -z "$ac_c_werror_flag" || |
11794 |
– |
test ! -s conftest.err |
11795 |
– |
} && test -s conftest$ac_exeext && |
11796 |
– |
$as_test_x conftest$ac_exeext; then |
11797 |
– |
eval "$as_ac_var=yes" |
11798 |
– |
else |
11799 |
– |
echo "$as_me: failed program was:" >&5 |
11800 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11801 |
– |
|
11802 |
– |
eval "$as_ac_var=no" |
11803 |
– |
fi |
11804 |
– |
|
11805 |
– |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11806 |
– |
conftest$ac_exeext conftest.$ac_ext |
11807 |
– |
fi |
11808 |
– |
ac_res=`eval echo '${'$as_ac_var'}'` |
11809 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11810 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
11811 |
– |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
11812 |
– |
cat >>confdefs.h <<_ACEOF |
11813 |
– |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
11814 |
– |
_ACEOF |
11815 |
– |
|
11816 |
– |
else |
11817 |
– |
# FreeBSD has a gnugetopt library for this |
11818 |
– |
{ echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 |
11819 |
– |
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6; } |
11820 |
– |
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then |
11821 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11822 |
– |
else |
11823 |
– |
ac_check_lib_save_LIBS=$LIBS |
11824 |
– |
LIBS="-lgnugetopt $LIBS" |
11825 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11826 |
– |
/* confdefs.h. */ |
11827 |
– |
_ACEOF |
11828 |
– |
cat confdefs.h >>conftest.$ac_ext |
11829 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11830 |
– |
/* end confdefs.h. */ |
11831 |
– |
|
11832 |
– |
/* Override any GCC internal prototype to avoid an error. |
11833 |
– |
Use char because int might match the return type of a GCC |
11834 |
– |
builtin and then its argument prototype would still apply. */ |
11835 |
– |
#ifdef __cplusplus |
11836 |
– |
extern "C" |
11837 |
– |
#endif |
11838 |
– |
char getopt_long (); |
11839 |
– |
#ifdef FC_DUMMY_MAIN |
11840 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11841 |
– |
# ifdef __cplusplus |
11842 |
– |
extern "C" |
11843 |
– |
# endif |
11844 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11845 |
– |
#endif |
11846 |
– |
#endif |
11847 |
– |
int |
11848 |
– |
main () |
11849 |
– |
{ |
11850 |
– |
return getopt_long (); |
11851 |
– |
; |
11852 |
– |
return 0; |
11853 |
– |
} |
11854 |
– |
_ACEOF |
11855 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
11856 |
– |
if { (ac_try="$ac_link" |
11857 |
– |
case "(($ac_try" in |
11858 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11859 |
– |
*) ac_try_echo=$ac_try;; |
11860 |
– |
esac |
11861 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11862 |
– |
(eval "$ac_link") 2>conftest.er1 |
11863 |
– |
ac_status=$? |
11864 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11865 |
– |
rm -f conftest.er1 |
11866 |
– |
cat conftest.err >&5 |
11867 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11868 |
– |
(exit $ac_status); } && { |
11869 |
– |
test -z "$ac_c_werror_flag" || |
11870 |
– |
test ! -s conftest.err |
11871 |
– |
} && test -s conftest$ac_exeext && |
11872 |
– |
$as_test_x conftest$ac_exeext; then |
11873 |
– |
ac_cv_lib_gnugetopt_getopt_long=yes |
11874 |
– |
else |
11875 |
– |
echo "$as_me: failed program was:" >&5 |
11876 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11877 |
– |
|
11878 |
– |
ac_cv_lib_gnugetopt_getopt_long=no |
11879 |
– |
fi |
11880 |
– |
|
11881 |
– |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11882 |
– |
conftest$ac_exeext conftest.$ac_ext |
11883 |
– |
LIBS=$ac_check_lib_save_LIBS |
11884 |
– |
fi |
11885 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 |
11886 |
– |
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6; } |
11887 |
– |
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then |
11888 |
– |
cat >>confdefs.h <<\_ACEOF |
11889 |
– |
#define HAVE_GETOPT_LONG 1 |
11890 |
– |
_ACEOF |
11891 |
– |
|
11892 |
– |
else |
11893 |
– |
# use the GNU replacement |
11894 |
– |
case " $LIBOBJS " in |
11895 |
– |
*" getopt.$ac_objext "* ) ;; |
11896 |
– |
*) LIBOBJS="$LIBOBJS getopt.$ac_objext" |
11897 |
– |
;; |
11898 |
– |
esac |
11899 |
– |
|
11900 |
– |
case " $LIBOBJS " in |
11901 |
– |
*" getopt1.$ac_objext "* ) ;; |
11902 |
– |
*) LIBOBJS="$LIBOBJS getopt1.$ac_objext" |
11903 |
– |
;; |
11904 |
– |
esac |
11905 |
– |
|
11906 |
– |
ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h" |
11907 |
– |
|
11908 |
– |
fi |
11909 |
– |
|
11910 |
– |
fi |
11911 |
– |
done |
11912 |
– |
|
11913 |
– |
|
11914 |
– |
ac_ext=cpp |
11915 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
11916 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11917 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11918 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11919 |
– |
|
11920 |
– |
{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
11921 |
– |
echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
11922 |
– |
if test "${ac_cv_cxx_namespaces+set}" = set; then |
11923 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11924 |
– |
else |
11925 |
– |
|
11926 |
– |
ac_ext=cpp |
11927 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
11928 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11929 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11930 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11931 |
– |
|
11932 |
– |
cat >conftest.$ac_ext <<_ACEOF |
11933 |
– |
/* confdefs.h. */ |
11934 |
– |
_ACEOF |
11935 |
– |
cat confdefs.h >>conftest.$ac_ext |
11936 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
11937 |
– |
/* end confdefs.h. */ |
11938 |
– |
namespace Outer { namespace Inner { int i = 0; }} |
11939 |
– |
#ifdef FC_DUMMY_MAIN |
11940 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11941 |
– |
# ifdef __cplusplus |
11942 |
– |
extern "C" |
11943 |
– |
# endif |
11944 |
– |
int FC_DUMMY_MAIN() { return 1; } |
11945 |
– |
#endif |
11946 |
– |
#endif |
11947 |
– |
int |
11948 |
– |
main () |
11949 |
– |
{ |
11950 |
– |
using namespace Outer::Inner; return i; |
11951 |
– |
; |
11952 |
– |
return 0; |
11953 |
– |
} |
11954 |
– |
_ACEOF |
11955 |
– |
rm -f conftest.$ac_objext |
11956 |
– |
if { (ac_try="$ac_compile" |
11957 |
– |
case "(($ac_try" in |
11958 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11959 |
– |
*) ac_try_echo=$ac_try;; |
11960 |
– |
esac |
11961 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11962 |
– |
(eval "$ac_compile") 2>conftest.er1 |
11963 |
– |
ac_status=$? |
11964 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
11965 |
– |
rm -f conftest.er1 |
11966 |
– |
cat conftest.err >&5 |
11967 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11968 |
– |
(exit $ac_status); } && { |
11969 |
– |
test -z "$ac_cxx_werror_flag" || |
11970 |
– |
test ! -s conftest.err |
11971 |
– |
} && test -s conftest.$ac_objext; then |
11972 |
– |
ac_cv_cxx_namespaces=yes |
11973 |
– |
else |
11974 |
– |
echo "$as_me: failed program was:" >&5 |
11975 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
11976 |
– |
|
11977 |
– |
ac_cv_cxx_namespaces=no |
11978 |
– |
fi |
11979 |
– |
|
11980 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11981 |
– |
ac_ext=cpp |
11982 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
11983 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11984 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11985 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11986 |
– |
|
11987 |
– |
|
11988 |
– |
fi |
11989 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
11990 |
– |
echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
11991 |
– |
if test "$ac_cv_cxx_namespaces" = yes; then |
11992 |
– |
|
11993 |
– |
cat >>confdefs.h <<\_ACEOF |
11994 |
– |
#define HAVE_NAMESPACES |
11995 |
– |
_ACEOF |
11996 |
– |
|
11997 |
– |
fi |
11998 |
– |
|
11999 |
– |
{ echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5 |
12000 |
– |
echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6; } |
12001 |
– |
if test "${ac_cv_cxx_have_stl+set}" = set; then |
12002 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12003 |
– |
else |
12004 |
– |
|
12005 |
– |
|
12006 |
– |
ac_ext=cpp |
12007 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
12008 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12009 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12010 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12011 |
– |
|
12012 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12013 |
– |
/* confdefs.h. */ |
12014 |
– |
_ACEOF |
12015 |
– |
cat confdefs.h >>conftest.$ac_ext |
12016 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12017 |
– |
/* end confdefs.h. */ |
12018 |
– |
#include <list> |
12019 |
– |
#include <deque> |
12020 |
– |
#ifdef HAVE_NAMESPACES |
12021 |
– |
using namespace std; |
12022 |
– |
#endif |
12023 |
– |
#ifdef FC_DUMMY_MAIN |
12024 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12025 |
– |
# ifdef __cplusplus |
12026 |
– |
extern "C" |
12027 |
– |
# endif |
12028 |
– |
int FC_DUMMY_MAIN() { return 1; } |
12029 |
– |
#endif |
12030 |
– |
#endif |
12031 |
– |
int |
12032 |
– |
main () |
12033 |
– |
{ |
12034 |
– |
list<int> x; x.push_back(5); |
12035 |
– |
list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0; |
12036 |
– |
; |
12037 |
– |
return 0; |
12038 |
– |
} |
12039 |
– |
_ACEOF |
12040 |
– |
rm -f conftest.$ac_objext |
12041 |
– |
if { (ac_try="$ac_compile" |
12042 |
– |
case "(($ac_try" in |
12043 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12044 |
– |
*) ac_try_echo=$ac_try;; |
12045 |
– |
esac |
12046 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12047 |
– |
(eval "$ac_compile") 2>conftest.er1 |
12048 |
– |
ac_status=$? |
12049 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12050 |
– |
rm -f conftest.er1 |
12051 |
– |
cat conftest.err >&5 |
12052 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12053 |
– |
(exit $ac_status); } && { |
12054 |
– |
test -z "$ac_cxx_werror_flag" || |
12055 |
– |
test ! -s conftest.err |
12056 |
– |
} && test -s conftest.$ac_objext; then |
12057 |
– |
ac_cv_cxx_have_stl=yes |
12058 |
– |
else |
12059 |
– |
echo "$as_me: failed program was:" >&5 |
12060 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12061 |
– |
|
12062 |
– |
ac_cv_cxx_have_stl=no |
12063 |
– |
fi |
12064 |
– |
|
12065 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12066 |
– |
ac_ext=cpp |
12067 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
12068 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12069 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12070 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12071 |
– |
|
12072 |
– |
|
12073 |
– |
fi |
12074 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5 |
12075 |
– |
echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6; } |
12076 |
– |
if test "$ac_cv_cxx_have_stl" = yes; then |
12077 |
– |
|
12078 |
– |
cat >>confdefs.h <<\_ACEOF |
12079 |
– |
#define HAVE_STL |
12080 |
– |
_ACEOF |
12081 |
– |
|
12082 |
– |
fi |
12083 |
– |
|
12084 |
– |
|
12085 |
– |
|
12086 |
– |
if test "${ac_cv_header_iostream+set}" = set; then |
12087 |
– |
{ echo "$as_me:$LINENO: checking for iostream" >&5 |
12088 |
– |
echo $ECHO_N "checking for iostream... $ECHO_C" >&6; } |
12089 |
– |
if test "${ac_cv_header_iostream+set}" = set; then |
12090 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12091 |
– |
fi |
12092 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 |
12093 |
– |
echo "${ECHO_T}$ac_cv_header_iostream" >&6; } |
12094 |
– |
else |
12095 |
– |
# Is the header compilable? |
12096 |
– |
{ echo "$as_me:$LINENO: checking iostream usability" >&5 |
12097 |
– |
echo $ECHO_N "checking iostream usability... $ECHO_C" >&6; } |
12098 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12099 |
– |
/* confdefs.h. */ |
12100 |
– |
_ACEOF |
12101 |
– |
cat confdefs.h >>conftest.$ac_ext |
12102 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12103 |
– |
/* end confdefs.h. */ |
12104 |
– |
$ac_includes_default |
12105 |
– |
#include <iostream> |
12106 |
– |
_ACEOF |
12107 |
– |
rm -f conftest.$ac_objext |
12108 |
– |
if { (ac_try="$ac_compile" |
12109 |
– |
case "(($ac_try" in |
12110 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12111 |
– |
*) ac_try_echo=$ac_try;; |
12112 |
– |
esac |
12113 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12114 |
– |
(eval "$ac_compile") 2>conftest.er1 |
12115 |
– |
ac_status=$? |
12116 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12117 |
– |
rm -f conftest.er1 |
12118 |
– |
cat conftest.err >&5 |
12119 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12120 |
– |
(exit $ac_status); } && { |
12121 |
– |
test -z "$ac_cxx_werror_flag" || |
12122 |
– |
test ! -s conftest.err |
12123 |
– |
} && test -s conftest.$ac_objext; then |
12124 |
– |
ac_header_compiler=yes |
12125 |
– |
else |
12126 |
– |
echo "$as_me: failed program was:" >&5 |
12127 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12128 |
– |
|
12129 |
– |
ac_header_compiler=no |
12130 |
– |
fi |
12131 |
– |
|
12132 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12133 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12134 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
12135 |
– |
|
12136 |
– |
# Is the header present? |
12137 |
– |
{ echo "$as_me:$LINENO: checking iostream presence" >&5 |
12138 |
– |
echo $ECHO_N "checking iostream presence... $ECHO_C" >&6; } |
12139 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12140 |
– |
/* confdefs.h. */ |
12141 |
– |
_ACEOF |
12142 |
– |
cat confdefs.h >>conftest.$ac_ext |
12143 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12144 |
– |
/* end confdefs.h. */ |
12145 |
– |
#include <iostream> |
12146 |
– |
_ACEOF |
12147 |
– |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
12148 |
– |
case "(($ac_try" in |
12149 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12150 |
– |
*) ac_try_echo=$ac_try;; |
12151 |
– |
esac |
12152 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12153 |
– |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
12154 |
– |
ac_status=$? |
12155 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12156 |
– |
rm -f conftest.er1 |
12157 |
– |
cat conftest.err >&5 |
12158 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12159 |
– |
(exit $ac_status); } >/dev/null && { |
12160 |
– |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
12161 |
– |
test ! -s conftest.err |
12162 |
– |
}; then |
12163 |
– |
ac_header_preproc=yes |
12164 |
– |
else |
12165 |
– |
echo "$as_me: failed program was:" >&5 |
12166 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12167 |
– |
|
12168 |
– |
ac_header_preproc=no |
12169 |
– |
fi |
12170 |
– |
|
12171 |
– |
rm -f conftest.err conftest.$ac_ext |
12172 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12173 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
12174 |
– |
|
12175 |
– |
# So? What about this header? |
12176 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
12177 |
– |
yes:no: ) |
12178 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&5 |
12179 |
– |
echo "$as_me: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&2;} |
12180 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: proceeding with the compiler's result" >&5 |
12181 |
– |
echo "$as_me: WARNING: iostream: proceeding with the compiler's result" >&2;} |
12182 |
– |
ac_header_preproc=yes |
12183 |
– |
;; |
12184 |
– |
no:yes:* ) |
12185 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: present but cannot be compiled" >&5 |
12186 |
– |
echo "$as_me: WARNING: iostream: present but cannot be compiled" >&2;} |
12187 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: check for missing prerequisite headers?" >&5 |
12188 |
– |
echo "$as_me: WARNING: iostream: check for missing prerequisite headers?" >&2;} |
12189 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: see the Autoconf documentation" >&5 |
12190 |
– |
echo "$as_me: WARNING: iostream: see the Autoconf documentation" >&2;} |
12191 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: section \"Present But Cannot Be Compiled\"" >&5 |
12192 |
– |
echo "$as_me: WARNING: iostream: section \"Present But Cannot Be Compiled\"" >&2;} |
12193 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: proceeding with the preprocessor's result" >&5 |
12194 |
– |
echo "$as_me: WARNING: iostream: proceeding with the preprocessor's result" >&2;} |
12195 |
– |
{ echo "$as_me:$LINENO: WARNING: iostream: in the future, the compiler will take precedence" >&5 |
12196 |
– |
echo "$as_me: WARNING: iostream: in the future, the compiler will take precedence" >&2;} |
12197 |
– |
( cat <<\_ASBOX |
12198 |
– |
## ------------------------------ ## |
12199 |
– |
## Report this to gezelter@nd.edu ## |
12200 |
– |
## ------------------------------ ## |
12201 |
– |
_ASBOX |
12202 |
– |
) | sed "s/^/$as_me: WARNING: /" >&2 |
12203 |
– |
;; |
12204 |
– |
esac |
12205 |
– |
{ echo "$as_me:$LINENO: checking for iostream" >&5 |
12206 |
– |
echo $ECHO_N "checking for iostream... $ECHO_C" >&6; } |
12207 |
– |
if test "${ac_cv_header_iostream+set}" = set; then |
12208 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12209 |
– |
else |
12210 |
– |
ac_cv_header_iostream=$ac_header_preproc |
12211 |
– |
fi |
12212 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5 |
12213 |
– |
echo "${ECHO_T}$ac_cv_header_iostream" >&6; } |
12214 |
– |
|
12215 |
– |
fi |
12216 |
– |
if test $ac_cv_header_iostream = yes; then |
12217 |
– |
|
12218 |
– |
|
12219 |
– |
cat >>confdefs.h <<\_ACEOF |
12220 |
– |
#define HAVE_IOSTREAM 1 |
12221 |
– |
_ACEOF |
12222 |
– |
|
12223 |
– |
|
12224 |
– |
else |
12225 |
– |
|
12226 |
– |
|
12227 |
– |
for ac_header in iostream.h |
12228 |
– |
do |
12229 |
– |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12230 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12231 |
– |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12232 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
12233 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12234 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12235 |
– |
fi |
12236 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
12237 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
12238 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
12239 |
– |
else |
12240 |
– |
# Is the header compilable? |
12241 |
– |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12242 |
– |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
12243 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12244 |
– |
/* confdefs.h. */ |
12245 |
– |
_ACEOF |
12246 |
– |
cat confdefs.h >>conftest.$ac_ext |
12247 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12248 |
– |
/* end confdefs.h. */ |
12249 |
– |
$ac_includes_default |
12250 |
– |
#include <$ac_header> |
12251 |
– |
_ACEOF |
12252 |
– |
rm -f conftest.$ac_objext |
12253 |
– |
if { (ac_try="$ac_compile" |
12254 |
– |
case "(($ac_try" in |
12255 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12256 |
– |
*) ac_try_echo=$ac_try;; |
12257 |
– |
esac |
12258 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12259 |
– |
(eval "$ac_compile") 2>conftest.er1 |
12260 |
– |
ac_status=$? |
12261 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12262 |
– |
rm -f conftest.er1 |
12263 |
– |
cat conftest.err >&5 |
12264 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12265 |
– |
(exit $ac_status); } && { |
12266 |
– |
test -z "$ac_cxx_werror_flag" || |
12267 |
– |
test ! -s conftest.err |
12268 |
– |
} && test -s conftest.$ac_objext; then |
12269 |
– |
ac_header_compiler=yes |
12270 |
– |
else |
12271 |
– |
echo "$as_me: failed program was:" >&5 |
12272 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12273 |
– |
|
12274 |
– |
ac_header_compiler=no |
12275 |
– |
fi |
12276 |
– |
|
12277 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12278 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12279 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
12280 |
– |
|
12281 |
– |
# Is the header present? |
12282 |
– |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12283 |
– |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
12284 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12285 |
– |
/* confdefs.h. */ |
12286 |
– |
_ACEOF |
12287 |
– |
cat confdefs.h >>conftest.$ac_ext |
12288 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12289 |
– |
/* end confdefs.h. */ |
12290 |
– |
#include <$ac_header> |
12291 |
– |
_ACEOF |
12292 |
– |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
12293 |
– |
case "(($ac_try" in |
12294 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12295 |
– |
*) ac_try_echo=$ac_try;; |
12296 |
– |
esac |
12297 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12298 |
– |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
12299 |
– |
ac_status=$? |
12300 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12301 |
– |
rm -f conftest.er1 |
12302 |
– |
cat conftest.err >&5 |
12303 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12304 |
– |
(exit $ac_status); } >/dev/null && { |
12305 |
– |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
12306 |
– |
test ! -s conftest.err |
12307 |
– |
}; then |
12308 |
– |
ac_header_preproc=yes |
12309 |
– |
else |
12310 |
– |
echo "$as_me: failed program was:" >&5 |
12311 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12312 |
– |
|
12313 |
– |
ac_header_preproc=no |
12314 |
– |
fi |
12315 |
– |
|
12316 |
– |
rm -f conftest.err conftest.$ac_ext |
12317 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12318 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
12319 |
– |
|
12320 |
– |
# So? What about this header? |
12321 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
12322 |
– |
yes:no: ) |
12323 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12324 |
– |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
12325 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12326 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
12327 |
– |
ac_header_preproc=yes |
12328 |
– |
;; |
12329 |
– |
no:yes:* ) |
12330 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12331 |
– |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
12332 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12333 |
– |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
12334 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
12335 |
– |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
12336 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
12337 |
– |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
12338 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12339 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
12340 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12341 |
– |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
12342 |
– |
( cat <<\_ASBOX |
12343 |
– |
## ------------------------------ ## |
12344 |
– |
## Report this to gezelter@nd.edu ## |
12345 |
– |
## ------------------------------ ## |
12346 |
– |
_ASBOX |
12347 |
– |
) | sed "s/^/$as_me: WARNING: /" >&2 |
12348 |
– |
;; |
12349 |
– |
esac |
12350 |
– |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12351 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
12352 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12353 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12354 |
– |
else |
12355 |
– |
eval "$as_ac_Header=\$ac_header_preproc" |
12356 |
– |
fi |
12357 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
12358 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
12359 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
12360 |
– |
|
12361 |
– |
fi |
12362 |
– |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12363 |
– |
cat >>confdefs.h <<_ACEOF |
12364 |
– |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12365 |
– |
_ACEOF |
12366 |
– |
|
12367 |
– |
fi |
12368 |
– |
|
12369 |
– |
done |
12370 |
– |
|
12371 |
– |
|
12372 |
– |
fi |
12373 |
– |
|
12374 |
– |
|
12375 |
– |
|
12376 |
– |
|
12377 |
– |
if test "${ac_cv_header_iomanip+set}" = set; then |
12378 |
– |
{ echo "$as_me:$LINENO: checking for iomanip" >&5 |
12379 |
– |
echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; } |
12380 |
– |
if test "${ac_cv_header_iomanip+set}" = set; then |
12381 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12382 |
– |
fi |
12383 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5 |
12384 |
– |
echo "${ECHO_T}$ac_cv_header_iomanip" >&6; } |
12385 |
– |
else |
12386 |
– |
# Is the header compilable? |
12387 |
– |
{ echo "$as_me:$LINENO: checking iomanip usability" >&5 |
12388 |
– |
echo $ECHO_N "checking iomanip usability... $ECHO_C" >&6; } |
12389 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12390 |
– |
/* confdefs.h. */ |
12391 |
– |
_ACEOF |
12392 |
– |
cat confdefs.h >>conftest.$ac_ext |
12393 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12394 |
– |
/* end confdefs.h. */ |
12395 |
– |
$ac_includes_default |
12396 |
– |
#include <iomanip> |
12397 |
– |
_ACEOF |
12398 |
– |
rm -f conftest.$ac_objext |
12399 |
– |
if { (ac_try="$ac_compile" |
12400 |
– |
case "(($ac_try" in |
12401 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12402 |
– |
*) ac_try_echo=$ac_try;; |
12403 |
– |
esac |
12404 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12405 |
– |
(eval "$ac_compile") 2>conftest.er1 |
12406 |
– |
ac_status=$? |
12407 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12408 |
– |
rm -f conftest.er1 |
12409 |
– |
cat conftest.err >&5 |
12410 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12411 |
– |
(exit $ac_status); } && { |
12412 |
– |
test -z "$ac_cxx_werror_flag" || |
12413 |
– |
test ! -s conftest.err |
12414 |
– |
} && test -s conftest.$ac_objext; then |
12415 |
– |
ac_header_compiler=yes |
12416 |
– |
else |
12417 |
– |
echo "$as_me: failed program was:" >&5 |
12418 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12419 |
– |
|
12420 |
– |
ac_header_compiler=no |
12421 |
– |
fi |
12422 |
– |
|
12423 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12424 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12425 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
12426 |
– |
|
12427 |
– |
# Is the header present? |
12428 |
– |
{ echo "$as_me:$LINENO: checking iomanip presence" >&5 |
12429 |
– |
echo $ECHO_N "checking iomanip presence... $ECHO_C" >&6; } |
12430 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12431 |
– |
/* confdefs.h. */ |
12432 |
– |
_ACEOF |
12433 |
– |
cat confdefs.h >>conftest.$ac_ext |
12434 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12435 |
– |
/* end confdefs.h. */ |
12436 |
– |
#include <iomanip> |
12437 |
– |
_ACEOF |
12438 |
– |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
12439 |
– |
case "(($ac_try" in |
12440 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12441 |
– |
*) ac_try_echo=$ac_try;; |
12442 |
– |
esac |
12443 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12444 |
– |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
12445 |
– |
ac_status=$? |
12446 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12447 |
– |
rm -f conftest.er1 |
12448 |
– |
cat conftest.err >&5 |
12449 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12450 |
– |
(exit $ac_status); } >/dev/null && { |
12451 |
– |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
12452 |
– |
test ! -s conftest.err |
12453 |
– |
}; then |
12454 |
– |
ac_header_preproc=yes |
12455 |
– |
else |
12456 |
– |
echo "$as_me: failed program was:" >&5 |
12457 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12458 |
– |
|
12459 |
– |
ac_header_preproc=no |
12460 |
– |
fi |
12461 |
– |
|
12462 |
– |
rm -f conftest.err conftest.$ac_ext |
12463 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12464 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
12465 |
– |
|
12466 |
– |
# So? What about this header? |
12467 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
12468 |
– |
yes:no: ) |
12469 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&5 |
12470 |
– |
echo "$as_me: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&2;} |
12471 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the compiler's result" >&5 |
12472 |
– |
echo "$as_me: WARNING: iomanip: proceeding with the compiler's result" >&2;} |
12473 |
– |
ac_header_preproc=yes |
12474 |
– |
;; |
12475 |
– |
no:yes:* ) |
12476 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: present but cannot be compiled" >&5 |
12477 |
– |
echo "$as_me: WARNING: iomanip: present but cannot be compiled" >&2;} |
12478 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: check for missing prerequisite headers?" >&5 |
12479 |
– |
echo "$as_me: WARNING: iomanip: check for missing prerequisite headers?" >&2;} |
12480 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: see the Autoconf documentation" >&5 |
12481 |
– |
echo "$as_me: WARNING: iomanip: see the Autoconf documentation" >&2;} |
12482 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: section \"Present But Cannot Be Compiled\"" >&5 |
12483 |
– |
echo "$as_me: WARNING: iomanip: section \"Present But Cannot Be Compiled\"" >&2;} |
12484 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the preprocessor's result" >&5 |
12485 |
– |
echo "$as_me: WARNING: iomanip: proceeding with the preprocessor's result" >&2;} |
12486 |
– |
{ echo "$as_me:$LINENO: WARNING: iomanip: in the future, the compiler will take precedence" >&5 |
12487 |
– |
echo "$as_me: WARNING: iomanip: in the future, the compiler will take precedence" >&2;} |
12488 |
– |
( cat <<\_ASBOX |
12489 |
– |
## ------------------------------ ## |
12490 |
– |
## Report this to gezelter@nd.edu ## |
12491 |
– |
## ------------------------------ ## |
12492 |
– |
_ASBOX |
12493 |
– |
) | sed "s/^/$as_me: WARNING: /" >&2 |
12494 |
– |
;; |
12495 |
– |
esac |
12496 |
– |
{ echo "$as_me:$LINENO: checking for iomanip" >&5 |
12497 |
– |
echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; } |
12498 |
– |
if test "${ac_cv_header_iomanip+set}" = set; then |
12499 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12500 |
– |
else |
12501 |
– |
ac_cv_header_iomanip=$ac_header_preproc |
12502 |
– |
fi |
12503 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5 |
12504 |
– |
echo "${ECHO_T}$ac_cv_header_iomanip" >&6; } |
12505 |
– |
|
12506 |
– |
fi |
12507 |
– |
if test $ac_cv_header_iomanip = yes; then |
12508 |
– |
|
12509 |
– |
|
12510 |
– |
cat >>confdefs.h <<\_ACEOF |
12511 |
– |
#define HAVE_IOMANIP 1 |
12512 |
– |
_ACEOF |
12513 |
– |
|
12514 |
– |
|
12515 |
– |
else |
12516 |
– |
|
12517 |
– |
|
12518 |
– |
for ac_header in iomanip.h |
12519 |
– |
do |
12520 |
– |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12521 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12522 |
– |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12523 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
12524 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12525 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12526 |
– |
fi |
12527 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
12528 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
12529 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
12530 |
– |
else |
12531 |
– |
# Is the header compilable? |
12532 |
– |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12533 |
– |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
12534 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12535 |
– |
/* confdefs.h. */ |
12536 |
– |
_ACEOF |
12537 |
– |
cat confdefs.h >>conftest.$ac_ext |
12538 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12539 |
– |
/* end confdefs.h. */ |
12540 |
– |
$ac_includes_default |
12541 |
– |
#include <$ac_header> |
12542 |
– |
_ACEOF |
12543 |
– |
rm -f conftest.$ac_objext |
12544 |
– |
if { (ac_try="$ac_compile" |
12545 |
– |
case "(($ac_try" in |
12546 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12547 |
– |
*) ac_try_echo=$ac_try;; |
12548 |
– |
esac |
12549 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12550 |
– |
(eval "$ac_compile") 2>conftest.er1 |
12551 |
– |
ac_status=$? |
12552 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12553 |
– |
rm -f conftest.er1 |
12554 |
– |
cat conftest.err >&5 |
12555 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12556 |
– |
(exit $ac_status); } && { |
12557 |
– |
test -z "$ac_cxx_werror_flag" || |
12558 |
– |
test ! -s conftest.err |
12559 |
– |
} && test -s conftest.$ac_objext; then |
12560 |
– |
ac_header_compiler=yes |
12561 |
– |
else |
12562 |
– |
echo "$as_me: failed program was:" >&5 |
12563 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12564 |
– |
|
12565 |
– |
ac_header_compiler=no |
12566 |
– |
fi |
12567 |
– |
|
12568 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12569 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12570 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
12571 |
– |
|
12572 |
– |
# Is the header present? |
12573 |
– |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12574 |
– |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
12575 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12576 |
– |
/* confdefs.h. */ |
12577 |
– |
_ACEOF |
12578 |
– |
cat confdefs.h >>conftest.$ac_ext |
12579 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12580 |
– |
/* end confdefs.h. */ |
12581 |
– |
#include <$ac_header> |
12582 |
– |
_ACEOF |
12583 |
– |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
12584 |
– |
case "(($ac_try" in |
12585 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12586 |
– |
*) ac_try_echo=$ac_try;; |
12587 |
– |
esac |
12588 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12589 |
– |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
12590 |
– |
ac_status=$? |
12591 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12592 |
– |
rm -f conftest.er1 |
12593 |
– |
cat conftest.err >&5 |
12594 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12595 |
– |
(exit $ac_status); } >/dev/null && { |
12596 |
– |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
12597 |
– |
test ! -s conftest.err |
12598 |
– |
}; then |
12599 |
– |
ac_header_preproc=yes |
12600 |
– |
else |
12601 |
– |
echo "$as_me: failed program was:" >&5 |
12602 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12603 |
– |
|
12604 |
– |
ac_header_preproc=no |
12605 |
– |
fi |
12606 |
– |
|
12607 |
– |
rm -f conftest.err conftest.$ac_ext |
12608 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12609 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
12610 |
– |
|
12611 |
– |
# So? What about this header? |
12612 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
12613 |
– |
yes:no: ) |
12614 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12615 |
– |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
12616 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12617 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
12618 |
– |
ac_header_preproc=yes |
12619 |
– |
;; |
12620 |
– |
no:yes:* ) |
12621 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12622 |
– |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
12623 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12624 |
– |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
12625 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
12626 |
– |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
12627 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
12628 |
– |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
12629 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12630 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
12631 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12632 |
– |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
12633 |
– |
( cat <<\_ASBOX |
12634 |
– |
## ------------------------------ ## |
12635 |
– |
## Report this to gezelter@nd.edu ## |
12636 |
– |
## ------------------------------ ## |
12637 |
– |
_ASBOX |
12638 |
– |
) | sed "s/^/$as_me: WARNING: /" >&2 |
12639 |
– |
;; |
12640 |
– |
esac |
12641 |
– |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12642 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
12643 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12644 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12645 |
– |
else |
12646 |
– |
eval "$as_ac_Header=\$ac_header_preproc" |
12647 |
– |
fi |
12648 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
12649 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
12650 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
12651 |
– |
|
12652 |
– |
fi |
12653 |
– |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12654 |
– |
cat >>confdefs.h <<_ACEOF |
12655 |
– |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12656 |
– |
_ACEOF |
12657 |
– |
|
12658 |
– |
fi |
12659 |
– |
|
12660 |
– |
done |
12661 |
– |
|
12662 |
– |
|
12663 |
– |
fi |
12664 |
– |
|
12665 |
– |
|
12666 |
– |
|
12667 |
– |
|
12668 |
– |
for ac_header in cmath |
12669 |
– |
do |
12670 |
– |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12671 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12672 |
– |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12673 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
12674 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12675 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12676 |
– |
fi |
12677 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
12678 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
12679 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
12680 |
– |
else |
12681 |
– |
# Is the header compilable? |
12682 |
– |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12683 |
– |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
12684 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12685 |
– |
/* confdefs.h. */ |
12686 |
– |
_ACEOF |
12687 |
– |
cat confdefs.h >>conftest.$ac_ext |
12688 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12689 |
– |
/* end confdefs.h. */ |
12690 |
– |
$ac_includes_default |
12691 |
– |
#include <$ac_header> |
12692 |
– |
_ACEOF |
12693 |
– |
rm -f conftest.$ac_objext |
12694 |
– |
if { (ac_try="$ac_compile" |
12695 |
– |
case "(($ac_try" in |
12696 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12697 |
– |
*) ac_try_echo=$ac_try;; |
12698 |
– |
esac |
12699 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12700 |
– |
(eval "$ac_compile") 2>conftest.er1 |
12701 |
– |
ac_status=$? |
12702 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12703 |
– |
rm -f conftest.er1 |
12704 |
– |
cat conftest.err >&5 |
12705 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12706 |
– |
(exit $ac_status); } && { |
12707 |
– |
test -z "$ac_cxx_werror_flag" || |
12708 |
– |
test ! -s conftest.err |
12709 |
– |
} && test -s conftest.$ac_objext; then |
12710 |
– |
ac_header_compiler=yes |
12711 |
– |
else |
12712 |
– |
echo "$as_me: failed program was:" >&5 |
12713 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12714 |
– |
|
12715 |
– |
ac_header_compiler=no |
12716 |
– |
fi |
12717 |
– |
|
12718 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12719 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12720 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
12721 |
– |
|
12722 |
– |
# Is the header present? |
12723 |
– |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12724 |
– |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
12725 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12726 |
– |
/* confdefs.h. */ |
12727 |
– |
_ACEOF |
12728 |
– |
cat confdefs.h >>conftest.$ac_ext |
12729 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12730 |
– |
/* end confdefs.h. */ |
12731 |
– |
#include <$ac_header> |
12732 |
– |
_ACEOF |
12733 |
– |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
12734 |
– |
case "(($ac_try" in |
12735 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12736 |
– |
*) ac_try_echo=$ac_try;; |
12737 |
– |
esac |
12738 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12739 |
– |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
12740 |
– |
ac_status=$? |
12741 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12742 |
– |
rm -f conftest.er1 |
12743 |
– |
cat conftest.err >&5 |
12744 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12745 |
– |
(exit $ac_status); } >/dev/null && { |
12746 |
– |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
12747 |
– |
test ! -s conftest.err |
12748 |
– |
}; then |
12749 |
– |
ac_header_preproc=yes |
12750 |
– |
else |
12751 |
– |
echo "$as_me: failed program was:" >&5 |
12752 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12753 |
– |
|
12754 |
– |
ac_header_preproc=no |
12755 |
– |
fi |
12756 |
– |
|
12757 |
– |
rm -f conftest.err conftest.$ac_ext |
12758 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12759 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
12760 |
– |
|
12761 |
– |
# So? What about this header? |
12762 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
12763 |
– |
yes:no: ) |
12764 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12765 |
– |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
12766 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12767 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
12768 |
– |
ac_header_preproc=yes |
12769 |
– |
;; |
12770 |
– |
no:yes:* ) |
12771 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12772 |
– |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
12773 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12774 |
– |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
12775 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
12776 |
– |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
12777 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
12778 |
– |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
12779 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12780 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
12781 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12782 |
– |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
12783 |
– |
( cat <<\_ASBOX |
12784 |
– |
## ------------------------------ ## |
12785 |
– |
## Report this to gezelter@nd.edu ## |
12786 |
– |
## ------------------------------ ## |
12787 |
– |
_ASBOX |
12788 |
– |
) | sed "s/^/$as_me: WARNING: /" >&2 |
12789 |
– |
;; |
12790 |
– |
esac |
12791 |
– |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12792 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
12793 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12794 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12795 |
– |
else |
12796 |
– |
eval "$as_ac_Header=\$ac_header_preproc" |
12797 |
– |
fi |
12798 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
12799 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
12800 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
12801 |
– |
|
12802 |
– |
fi |
12803 |
– |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12804 |
– |
cat >>confdefs.h <<_ACEOF |
12805 |
– |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12806 |
– |
_ACEOF |
12807 |
– |
|
12808 |
– |
fi |
12809 |
– |
|
12810 |
– |
done |
12811 |
– |
|
12812 |
– |
|
12813 |
– |
|
12814 |
– |
|
12815 |
– |
{ echo "$as_me:$LINENO: checking for C++ iostream in namespace std" >&5 |
12816 |
– |
echo $ECHO_N "checking for C++ iostream in namespace std... $ECHO_C" >&6; } |
12817 |
– |
if test "${ac_cv_cxx_have_std_iostream+set}" = set; then |
12818 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12819 |
– |
else |
12820 |
– |
|
12821 |
– |
ac_cv_cxx_have_std_iostream=no |
12822 |
– |
ac_cv_cxx_need_use_std_iostream=no |
12823 |
– |
if test "x$ac_cv_cxx_namespaces" = xyes; then |
12824 |
– |
|
12825 |
– |
ac_ext=cpp |
12826 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
12827 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12828 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12829 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12830 |
– |
|
12831 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12832 |
– |
/* confdefs.h. */ |
12833 |
– |
_ACEOF |
12834 |
– |
cat confdefs.h >>conftest.$ac_ext |
12835 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12836 |
– |
/* end confdefs.h. */ |
12837 |
– |
|
12838 |
– |
#ifdef HAVE_IOSTREAM |
12839 |
– |
#include <iostream> |
12840 |
– |
#else |
12841 |
– |
#include <iostream.h> |
12842 |
– |
#endif |
12843 |
– |
|
12844 |
– |
#ifdef FC_DUMMY_MAIN |
12845 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12846 |
– |
# ifdef __cplusplus |
12847 |
– |
extern "C" |
12848 |
– |
# endif |
12849 |
– |
int FC_DUMMY_MAIN() { return 1; } |
12850 |
– |
#endif |
12851 |
– |
#endif |
12852 |
– |
int |
12853 |
– |
main () |
12854 |
– |
{ |
12855 |
– |
std::cout<<"Hello World"<<std::endl;return 0; |
12856 |
– |
; |
12857 |
– |
return 0; |
12858 |
– |
} |
12859 |
– |
_ACEOF |
12860 |
– |
rm -f conftest.$ac_objext |
12861 |
– |
if { (ac_try="$ac_compile" |
12862 |
– |
case "(($ac_try" in |
12863 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12864 |
– |
*) ac_try_echo=$ac_try;; |
12865 |
– |
esac |
12866 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12867 |
– |
(eval "$ac_compile") 2>conftest.er1 |
12868 |
– |
ac_status=$? |
12869 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12870 |
– |
rm -f conftest.er1 |
12871 |
– |
cat conftest.err >&5 |
12872 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12873 |
– |
(exit $ac_status); } && { |
12874 |
– |
test -z "$ac_cxx_werror_flag" || |
12875 |
– |
test ! -s conftest.err |
12876 |
– |
} && test -s conftest.$ac_objext; then |
12877 |
– |
ac_cv_cxx_have_std_iostream=yes |
12878 |
– |
else |
12879 |
– |
echo "$as_me: failed program was:" >&5 |
12880 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12881 |
– |
|
12882 |
– |
|
12883 |
– |
fi |
12884 |
– |
|
12885 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12886 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12887 |
– |
/* confdefs.h. */ |
12888 |
– |
_ACEOF |
12889 |
– |
cat confdefs.h >>conftest.$ac_ext |
12890 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12891 |
– |
/* end confdefs.h. */ |
12892 |
– |
|
12893 |
– |
#define __USE_STD_IOSTREAM 1 |
12894 |
– |
#ifdef HAVE_IOSTREAM |
12895 |
– |
#include <iostream> |
12896 |
– |
#else |
12897 |
– |
#include <iostream.h> |
12898 |
– |
#endif |
12899 |
– |
|
12900 |
– |
#ifdef FC_DUMMY_MAIN |
12901 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12902 |
– |
# ifdef __cplusplus |
12903 |
– |
extern "C" |
12904 |
– |
# endif |
12905 |
– |
int FC_DUMMY_MAIN() { return 1; } |
12906 |
– |
#endif |
12907 |
– |
#endif |
12908 |
– |
int |
12909 |
– |
main () |
12910 |
– |
{ |
12911 |
– |
std::cout<<"Hello World"<<std::endl;return 0; |
12912 |
– |
; |
12913 |
– |
return 0; |
12914 |
– |
} |
12915 |
– |
_ACEOF |
12916 |
– |
rm -f conftest.$ac_objext |
12917 |
– |
if { (ac_try="$ac_compile" |
12918 |
– |
case "(($ac_try" in |
12919 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12920 |
– |
*) ac_try_echo=$ac_try;; |
12921 |
– |
esac |
12922 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12923 |
– |
(eval "$ac_compile") 2>conftest.er1 |
12924 |
– |
ac_status=$? |
12925 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
12926 |
– |
rm -f conftest.er1 |
12927 |
– |
cat conftest.err >&5 |
12928 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12929 |
– |
(exit $ac_status); } && { |
12930 |
– |
test -z "$ac_cxx_werror_flag" || |
12931 |
– |
test ! -s conftest.err |
12932 |
– |
} && test -s conftest.$ac_objext; then |
12933 |
– |
ac_cv_cxx_have_std_iostream=yes;ac_cv_cxx_need_use_std_iostream=yes |
12934 |
– |
else |
12935 |
– |
echo "$as_me: failed program was:" >&5 |
12936 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
12937 |
– |
|
12938 |
– |
|
12939 |
– |
fi |
12940 |
– |
|
12941 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12942 |
– |
ac_ext=cpp |
12943 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
12944 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12945 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12946 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12947 |
– |
|
12948 |
– |
fi |
12949 |
– |
|
12950 |
– |
fi |
12951 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iostream" >&5 |
12952 |
– |
echo "${ECHO_T}$ac_cv_cxx_have_std_iostream" >&6; } |
12953 |
– |
if test "$ac_cv_cxx_have_std_iostream" = yes; then |
12954 |
– |
|
12955 |
– |
cat >>confdefs.h <<\_ACEOF |
12956 |
– |
#define HAVE_STD_IOSTREAM 1 |
12957 |
– |
_ACEOF |
12958 |
– |
|
12959 |
– |
fi |
12960 |
– |
if test "$ac_cv_cxx_need_use_std_iostream" = yes; then |
12961 |
– |
|
12962 |
– |
cat >>confdefs.h <<\_ACEOF |
12963 |
– |
#define __USE_STD_IOSTREAM 1 |
12964 |
– |
_ACEOF |
12965 |
– |
|
12966 |
– |
fi |
12967 |
– |
|
12968 |
– |
|
12969 |
– |
|
12970 |
– |
|
12971 |
– |
{ echo "$as_me:$LINENO: checking for C++ Standard Template Library in namespace std." >&5 |
12972 |
– |
echo $ECHO_N "checking for C++ Standard Template Library in namespace std.... $ECHO_C" >&6; } |
12973 |
– |
if test "${ac_cv_cxx_have_std_stl+set}" = set; then |
12974 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12975 |
– |
else |
12976 |
– |
|
12977 |
– |
ac_cv_cxx_have_std_stl=no |
12978 |
– |
if test "x$ac_cv_cxx_namespaces" = xyes; then |
12979 |
– |
|
12980 |
– |
ac_ext=cpp |
12981 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
12982 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12983 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12984 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
12985 |
– |
|
12986 |
– |
cat >conftest.$ac_ext <<_ACEOF |
12987 |
– |
/* confdefs.h. */ |
12988 |
– |
_ACEOF |
12989 |
– |
cat confdefs.h >>conftest.$ac_ext |
12990 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
12991 |
– |
/* end confdefs.h. */ |
12992 |
– |
#include <list> |
12993 |
– |
|
12994 |
– |
#ifdef FC_DUMMY_MAIN |
12995 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
12996 |
– |
# ifdef __cplusplus |
12997 |
– |
extern "C" |
12998 |
– |
# endif |
12999 |
– |
int FC_DUMMY_MAIN() { return 1; } |
13000 |
– |
#endif |
13001 |
– |
#endif |
13002 |
– |
int |
13003 |
– |
main () |
13004 |
– |
{ |
13005 |
– |
std::list<int> foo;return 0; |
13006 |
– |
; |
13007 |
– |
return 0; |
13008 |
– |
} |
13009 |
– |
_ACEOF |
13010 |
– |
rm -f conftest.$ac_objext |
13011 |
– |
if { (ac_try="$ac_compile" |
13012 |
– |
case "(($ac_try" in |
13013 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13014 |
– |
*) ac_try_echo=$ac_try;; |
13015 |
– |
esac |
13016 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13017 |
– |
(eval "$ac_compile") 2>conftest.er1 |
13018 |
– |
ac_status=$? |
13019 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
13020 |
– |
rm -f conftest.er1 |
13021 |
– |
cat conftest.err >&5 |
13022 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13023 |
– |
(exit $ac_status); } && { |
13024 |
– |
test -z "$ac_cxx_werror_flag" || |
13025 |
– |
test ! -s conftest.err |
13026 |
– |
} && test -s conftest.$ac_objext; then |
13027 |
– |
ac_cv_cxx_have_std_stl=yes |
13028 |
– |
else |
13029 |
– |
echo "$as_me: failed program was:" >&5 |
13030 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13031 |
– |
|
13032 |
– |
|
13033 |
– |
fi |
13034 |
– |
|
13035 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13036 |
– |
ac_ext=cpp |
13037 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
13038 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13039 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13040 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
13041 |
– |
|
13042 |
– |
fi |
13043 |
– |
|
13044 |
– |
fi |
13045 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_stl" >&5 |
13046 |
– |
echo "${ECHO_T}$ac_cv_cxx_have_std_stl" >&6; } |
13047 |
– |
if test "$ac_cv_cxx_have_std_stl" = yes; then |
13048 |
– |
|
13049 |
– |
cat >>confdefs.h <<\_ACEOF |
13050 |
– |
#define HAVE_STD_STL 1 |
13051 |
– |
_ACEOF |
13052 |
– |
|
13053 |
– |
fi |
13054 |
– |
|
13055 |
– |
|
13056 |
– |
|
13057 |
– |
{ echo "$as_me:$LINENO: checking for fstream::attach()" >&5 |
13058 |
– |
echo $ECHO_N "checking for fstream::attach()... $ECHO_C" >&6; } |
13059 |
– |
if test "${ac_cv_cxx_have_fstream_attach+set}" = set; then |
13060 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13061 |
– |
else |
13062 |
– |
|
13063 |
– |
ac_cv_cxx_have_fstream_attach=no |
13064 |
– |
|
13065 |
– |
ac_ext=cpp |
13066 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
13067 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13068 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13069 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
13070 |
– |
|
13071 |
– |
cat >conftest.$ac_ext <<_ACEOF |
13072 |
– |
/* confdefs.h. */ |
13073 |
– |
_ACEOF |
13074 |
– |
cat confdefs.h >>conftest.$ac_ext |
13075 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
13076 |
– |
/* end confdefs.h. */ |
13077 |
– |
|
13078 |
– |
#ifdef HAVE_IOSTREAM |
13079 |
– |
#include <fstream> |
13080 |
– |
#else |
13081 |
– |
#include <fstream.h> |
13082 |
– |
#endif |
13083 |
– |
#ifdef HAVE_STD_IOSTREAM |
13084 |
– |
using namespace std; |
13085 |
– |
#endif |
13086 |
– |
|
13087 |
– |
#ifdef FC_DUMMY_MAIN |
13088 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13089 |
– |
# ifdef __cplusplus |
13090 |
– |
extern "C" |
13091 |
– |
# endif |
13092 |
– |
int FC_DUMMY_MAIN() { return 1; } |
13093 |
– |
#endif |
13094 |
– |
#endif |
13095 |
– |
int |
13096 |
– |
main () |
13097 |
– |
{ |
13098 |
– |
int fd=0;ofstream s;s.attach(fd); |
13099 |
– |
; |
13100 |
– |
return 0; |
13101 |
– |
} |
13102 |
– |
_ACEOF |
13103 |
– |
rm -f conftest.$ac_objext |
13104 |
– |
if { (ac_try="$ac_compile" |
13105 |
– |
case "(($ac_try" in |
13106 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13107 |
– |
*) ac_try_echo=$ac_try;; |
13108 |
– |
esac |
13109 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13110 |
– |
(eval "$ac_compile") 2>conftest.er1 |
13111 |
– |
ac_status=$? |
13112 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
13113 |
– |
rm -f conftest.er1 |
13114 |
– |
cat conftest.err >&5 |
13115 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13116 |
– |
(exit $ac_status); } && { |
13117 |
– |
test -z "$ac_cxx_werror_flag" || |
13118 |
– |
test ! -s conftest.err |
13119 |
– |
} && test -s conftest.$ac_objext; then |
13120 |
– |
ac_cv_cxx_have_fstream_attach=yes |
13121 |
– |
else |
13122 |
– |
echo "$as_me: failed program was:" >&5 |
13123 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13124 |
– |
|
13125 |
– |
|
13126 |
– |
fi |
13127 |
– |
|
13128 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13129 |
– |
ac_ext=cpp |
13130 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
13131 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13132 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13133 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
13134 |
– |
|
13135 |
– |
|
13136 |
– |
fi |
13137 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_attach" >&5 |
13138 |
– |
echo "${ECHO_T}$ac_cv_cxx_have_fstream_attach" >&6; } |
13139 |
– |
if test "$ac_cv_cxx_have_fstream_attach" = yes; then |
13140 |
– |
|
13141 |
– |
cat >>confdefs.h <<\_ACEOF |
13142 |
– |
#define HAVE_FSTREAM_ATTACH 1 |
13143 |
– |
_ACEOF |
13144 |
– |
|
13145 |
– |
fi |
13146 |
– |
|
13147 |
– |
|
13148 |
– |
|
13149 |
– |
{ echo "$as_me:$LINENO: checking for fstream::open()" >&5 |
13150 |
– |
echo $ECHO_N "checking for fstream::open()... $ECHO_C" >&6; } |
13151 |
– |
if test "${ac_cv_cxx_have_fstream_open+set}" = set; then |
13152 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13153 |
– |
else |
13154 |
– |
|
13155 |
– |
ac_cv_cxx_have_fstream_open=no |
13156 |
– |
ac_cv_cxx_fstream_open_prot=no |
13157 |
– |
|
13158 |
– |
ac_ext=cpp |
13159 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
13160 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13161 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13162 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
13163 |
– |
|
13164 |
– |
# Try with 2 parameters |
13165 |
– |
cat >conftest.$ac_ext <<_ACEOF |
13166 |
– |
/* confdefs.h. */ |
13167 |
– |
_ACEOF |
13168 |
– |
cat confdefs.h >>conftest.$ac_ext |
13169 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
13170 |
– |
/* end confdefs.h. */ |
13171 |
– |
|
13172 |
– |
#ifdef HAVE_IOSTREAM |
13173 |
– |
#include <fstream> |
13174 |
– |
#else |
13175 |
– |
#include <fstream.h> |
13176 |
– |
#endif |
13177 |
– |
#ifdef HAVE_STD_IOSTREAM |
13178 |
– |
using namespace std; |
13179 |
– |
#endif |
13180 |
– |
|
13181 |
– |
#ifdef FC_DUMMY_MAIN |
13182 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13183 |
– |
# ifdef __cplusplus |
13184 |
– |
extern "C" |
13185 |
– |
# endif |
13186 |
– |
int FC_DUMMY_MAIN() { return 1; } |
13187 |
– |
#endif |
13188 |
– |
#endif |
13189 |
– |
int |
13190 |
– |
main () |
13191 |
– |
{ |
13192 |
– |
ofstream s;s.open("conftest.txt",ios::out|ios::trunc); |
13193 |
– |
; |
13194 |
– |
return 0; |
13195 |
– |
} |
13196 |
– |
_ACEOF |
13197 |
– |
rm -f conftest.$ac_objext |
13198 |
– |
if { (ac_try="$ac_compile" |
13199 |
– |
case "(($ac_try" in |
13200 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13201 |
– |
*) ac_try_echo=$ac_try;; |
13202 |
– |
esac |
13203 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13204 |
– |
(eval "$ac_compile") 2>conftest.er1 |
13205 |
– |
ac_status=$? |
13206 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
13207 |
– |
rm -f conftest.er1 |
13208 |
– |
cat conftest.err >&5 |
13209 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13210 |
– |
(exit $ac_status); } && { |
13211 |
– |
test -z "$ac_cxx_werror_flag" || |
13212 |
– |
test ! -s conftest.err |
13213 |
– |
} && test -s conftest.$ac_objext; then |
13214 |
– |
ac_cv_cxx_have_fstream_open=yes |
13215 |
– |
else |
13216 |
– |
echo "$as_me: failed program was:" >&5 |
13217 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13218 |
– |
|
13219 |
– |
|
13220 |
– |
fi |
13221 |
– |
|
13222 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13223 |
– |
# Try with mode parameter |
13224 |
– |
cat >conftest.$ac_ext <<_ACEOF |
13225 |
– |
/* confdefs.h. */ |
13226 |
– |
_ACEOF |
13227 |
– |
cat confdefs.h >>conftest.$ac_ext |
13228 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
13229 |
– |
/* end confdefs.h. */ |
13230 |
– |
|
13231 |
– |
#ifdef HAVE_IOSTREAM |
13232 |
– |
#include <fstream> |
13233 |
– |
#else |
13234 |
– |
#include <fstream.h> |
13235 |
– |
#endif |
13236 |
– |
#ifdef HAVE_STD_IOSTREAM |
13237 |
– |
using namespace std; |
13238 |
– |
#endif |
13239 |
– |
|
13240 |
– |
#ifdef FC_DUMMY_MAIN |
13241 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13242 |
– |
# ifdef __cplusplus |
13243 |
– |
extern "C" |
13244 |
– |
# endif |
13245 |
– |
int FC_DUMMY_MAIN() { return 1; } |
13246 |
– |
#endif |
13247 |
– |
#endif |
13248 |
– |
int |
13249 |
– |
main () |
13250 |
– |
{ |
13251 |
– |
ofstream s;s.open("conftest.txt",ios::out|ios::trunc,0666); |
13252 |
– |
; |
13253 |
– |
return 0; |
13254 |
– |
} |
13255 |
– |
_ACEOF |
13256 |
– |
rm -f conftest.$ac_objext |
13257 |
– |
if { (ac_try="$ac_compile" |
13258 |
– |
case "(($ac_try" in |
13259 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13260 |
– |
*) ac_try_echo=$ac_try;; |
13261 |
– |
esac |
13262 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13263 |
– |
(eval "$ac_compile") 2>conftest.er1 |
13264 |
– |
ac_status=$? |
13265 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
13266 |
– |
rm -f conftest.er1 |
13267 |
– |
cat conftest.err >&5 |
13268 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13269 |
– |
(exit $ac_status); } && { |
13270 |
– |
test -z "$ac_cxx_werror_flag" || |
13271 |
– |
test ! -s conftest.err |
13272 |
– |
} && test -s conftest.$ac_objext; then |
13273 |
– |
ac_cv_cxx_fstream_open_prot=yes |
13274 |
– |
else |
13275 |
– |
echo "$as_me: failed program was:" >&5 |
13276 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13277 |
– |
|
13278 |
– |
|
13279 |
– |
fi |
13280 |
– |
|
13281 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13282 |
– |
ac_ext=cpp |
13283 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
13284 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13285 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13286 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
13287 |
– |
|
13288 |
– |
|
13289 |
– |
fi |
13290 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_open" >&5 |
13291 |
– |
echo "${ECHO_T}$ac_cv_cxx_have_fstream_open" >&6; } |
13292 |
– |
if test "$ac_cv_cxx_have_fstream_open" = yes; then |
13293 |
– |
|
13294 |
– |
cat >>confdefs.h <<\_ACEOF |
13295 |
– |
#define HAVE_FSTREAM_OPEN 1 |
13296 |
– |
_ACEOF |
13297 |
– |
|
13298 |
– |
fi |
13299 |
– |
if test "$ac_cv_cxx_fstream_open_prot" = yes; then |
13300 |
– |
|
13301 |
– |
cat >>confdefs.h <<\_ACEOF |
13302 |
– |
#define FSTREAM_OPEN_PROT 1 |
13303 |
– |
_ACEOF |
13304 |
– |
|
13305 |
– |
fi |
13306 |
– |
|
13307 |
– |
|
13308 |
– |
|
13309 |
– |
|
13310 |
– |
|
13311 |
– |
|
13312 |
– |
|
13313 |
– |
for ac_header in ctype.h iostream fstream sstream strstream |
13314 |
– |
do |
13315 |
– |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13316 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
13317 |
– |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13318 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
13319 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
13320 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13321 |
– |
fi |
13322 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
13323 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
13324 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
13325 |
– |
else |
13326 |
– |
# Is the header compilable? |
13327 |
– |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13328 |
– |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
13329 |
– |
cat >conftest.$ac_ext <<_ACEOF |
13330 |
– |
/* confdefs.h. */ |
13331 |
– |
_ACEOF |
13332 |
– |
cat confdefs.h >>conftest.$ac_ext |
13333 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
13334 |
– |
/* end confdefs.h. */ |
13335 |
– |
$ac_includes_default |
13336 |
– |
#include <$ac_header> |
13337 |
– |
_ACEOF |
13338 |
– |
rm -f conftest.$ac_objext |
13339 |
– |
if { (ac_try="$ac_compile" |
13340 |
– |
case "(($ac_try" in |
13341 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13342 |
– |
*) ac_try_echo=$ac_try;; |
13343 |
– |
esac |
13344 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13345 |
– |
(eval "$ac_compile") 2>conftest.er1 |
13346 |
– |
ac_status=$? |
13347 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
13348 |
– |
rm -f conftest.er1 |
13349 |
– |
cat conftest.err >&5 |
13350 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13351 |
– |
(exit $ac_status); } && { |
13352 |
– |
test -z "$ac_cxx_werror_flag" || |
13353 |
– |
test ! -s conftest.err |
13354 |
– |
} && test -s conftest.$ac_objext; then |
13355 |
– |
ac_header_compiler=yes |
13356 |
– |
else |
13357 |
– |
echo "$as_me: failed program was:" >&5 |
13358 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13359 |
– |
|
13360 |
– |
ac_header_compiler=no |
13361 |
– |
fi |
13362 |
– |
|
13363 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13364 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13365 |
– |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
13366 |
– |
|
13367 |
– |
# Is the header present? |
13368 |
– |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13369 |
– |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
13370 |
– |
cat >conftest.$ac_ext <<_ACEOF |
13371 |
– |
/* confdefs.h. */ |
13372 |
– |
_ACEOF |
13373 |
– |
cat confdefs.h >>conftest.$ac_ext |
13374 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
13375 |
– |
/* end confdefs.h. */ |
13376 |
– |
#include <$ac_header> |
13377 |
– |
_ACEOF |
13378 |
– |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
13379 |
– |
case "(($ac_try" in |
13380 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13381 |
– |
*) ac_try_echo=$ac_try;; |
13382 |
– |
esac |
13383 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13384 |
– |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
13385 |
– |
ac_status=$? |
13386 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
13387 |
– |
rm -f conftest.er1 |
13388 |
– |
cat conftest.err >&5 |
13389 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13390 |
– |
(exit $ac_status); } >/dev/null && { |
13391 |
– |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
13392 |
– |
test ! -s conftest.err |
13393 |
– |
}; then |
13394 |
– |
ac_header_preproc=yes |
13395 |
– |
else |
13396 |
– |
echo "$as_me: failed program was:" >&5 |
13397 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13398 |
– |
|
13399 |
– |
ac_header_preproc=no |
13400 |
– |
fi |
13401 |
– |
|
13402 |
– |
rm -f conftest.err conftest.$ac_ext |
13403 |
– |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13404 |
– |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
13405 |
– |
|
13406 |
– |
# So? What about this header? |
13407 |
– |
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
13408 |
– |
yes:no: ) |
13409 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13410 |
– |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
13411 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13412 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
13413 |
– |
ac_header_preproc=yes |
13414 |
– |
;; |
13415 |
– |
no:yes:* ) |
13416 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13417 |
– |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
13418 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13419 |
– |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
13420 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
13421 |
– |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
13422 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
13423 |
– |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
13424 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13425 |
– |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
13426 |
– |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13427 |
– |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
13428 |
– |
( cat <<\_ASBOX |
13429 |
– |
## ------------------------------ ## |
13430 |
– |
## Report this to gezelter@nd.edu ## |
13431 |
– |
## ------------------------------ ## |
13432 |
– |
_ASBOX |
13433 |
– |
) | sed "s/^/$as_me: WARNING: /" >&2 |
13434 |
– |
;; |
13435 |
– |
esac |
13436 |
– |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13437 |
– |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
13438 |
– |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
13439 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13440 |
– |
else |
13441 |
– |
eval "$as_ac_Header=\$ac_header_preproc" |
13442 |
– |
fi |
13443 |
– |
ac_res=`eval echo '${'$as_ac_Header'}'` |
13444 |
– |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
13445 |
– |
echo "${ECHO_T}$ac_res" >&6; } |
13446 |
– |
|
13447 |
– |
fi |
13448 |
– |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13449 |
– |
cat >>confdefs.h <<_ACEOF |
13450 |
– |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
13451 |
– |
_ACEOF |
13452 |
– |
|
13453 |
– |
fi |
13454 |
– |
|
13455 |
– |
done |
13456 |
– |
|
13457 |
– |
# AC_CPP_FUNC |
13458 |
– |
# ------------------ # |
13459 |
– |
# Checks to see if ANSI C99 CPP variable __func__ works. |
13460 |
– |
# If not, perhaps __FUNCTION__ works instead. |
13461 |
– |
# If not, we'll just define __func__ to "". |
13462 |
– |
# AC_CPP_FUNC |
13463 |
– |
|
13464 |
– |
case $ac_cv_prog_cc_stdc in |
13465 |
– |
no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; |
13466 |
– |
*) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 |
13467 |
– |
echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; } |
13468 |
– |
if test "${ac_cv_prog_cc_c99+set}" = set; then |
13469 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13470 |
– |
else |
13471 |
– |
ac_cv_prog_cc_c99=no |
13472 |
– |
ac_save_CC=$CC |
13473 |
– |
cat >conftest.$ac_ext <<_ACEOF |
13474 |
– |
/* confdefs.h. */ |
13475 |
– |
_ACEOF |
13476 |
– |
cat confdefs.h >>conftest.$ac_ext |
13477 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
13478 |
– |
/* end confdefs.h. */ |
13479 |
– |
#include <stdarg.h> |
13480 |
– |
#include <stdbool.h> |
13481 |
– |
#include <stdlib.h> |
13482 |
– |
#include <wchar.h> |
13483 |
– |
#include <stdio.h> |
13484 |
– |
|
13485 |
– |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
13486 |
– |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
13487 |
– |
#define showlist(...) puts (#__VA_ARGS__) |
13488 |
– |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
13489 |
– |
static void |
13490 |
– |
test_varargs_macros (void) |
13491 |
– |
{ |
13492 |
– |
int x = 1234; |
13493 |
– |
int y = 5678; |
13494 |
– |
debug ("Flag"); |
13495 |
– |
debug ("X = %d\n", x); |
13496 |
– |
showlist (The first, second, and third items.); |
13497 |
– |
report (x>y, "x is %d but y is %d", x, y); |
13498 |
– |
} |
13499 |
– |
|
13500 |
– |
// Check long long types. |
13501 |
– |
#define BIG64 18446744073709551615ull |
13502 |
– |
#define BIG32 4294967295ul |
13503 |
– |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
13504 |
– |
#if !BIG_OK |
13505 |
– |
your preprocessor is broken; |
13506 |
– |
#endif |
13507 |
– |
#if BIG_OK |
13508 |
– |
#else |
13509 |
– |
your preprocessor is broken; |
13510 |
– |
#endif |
13511 |
– |
static long long int bignum = -9223372036854775807LL; |
13512 |
– |
static unsigned long long int ubignum = BIG64; |
13513 |
– |
|
13514 |
– |
struct incomplete_array |
13515 |
– |
{ |
13516 |
– |
int datasize; |
13517 |
– |
double data[]; |
13518 |
– |
}; |
13519 |
– |
|
13520 |
– |
struct named_init { |
13521 |
– |
int number; |
13522 |
– |
const wchar_t *name; |
13523 |
– |
double average; |
13524 |
– |
}; |
13525 |
– |
|
13526 |
– |
typedef const char *ccp; |
13527 |
– |
|
13528 |
– |
static inline int |
13529 |
– |
test_restrict (ccp restrict text) |
13530 |
– |
{ |
13531 |
– |
// See if C++-style comments work. |
13532 |
– |
// Iterate through items via the restricted pointer. |
13533 |
– |
// Also check for declarations in for loops. |
13534 |
– |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
13535 |
– |
continue; |
13536 |
– |
return 0; |
13537 |
– |
} |
13538 |
– |
|
13539 |
– |
// Check varargs and va_copy. |
13540 |
– |
static void |
13541 |
– |
test_varargs (const char *format, ...) |
13542 |
– |
{ |
13543 |
– |
va_list args; |
13544 |
– |
va_start (args, format); |
13545 |
– |
va_list args_copy; |
13546 |
– |
va_copy (args_copy, args); |
13547 |
– |
|
13548 |
– |
const char *str; |
13549 |
– |
int number; |
13550 |
– |
float fnumber; |
13551 |
– |
|
13552 |
– |
while (*format) |
13553 |
– |
{ |
13554 |
– |
switch (*format++) |
13555 |
– |
{ |
13556 |
– |
case 's': // string |
13557 |
– |
str = va_arg (args_copy, const char *); |
13558 |
– |
break; |
13559 |
– |
case 'd': // int |
13560 |
– |
number = va_arg (args_copy, int); |
13561 |
– |
break; |
13562 |
– |
case 'f': // float |
13563 |
– |
fnumber = va_arg (args_copy, double); |
13564 |
– |
break; |
13565 |
– |
default: |
13566 |
– |
break; |
13567 |
– |
} |
13568 |
– |
} |
13569 |
– |
va_end (args_copy); |
13570 |
– |
va_end (args); |
13571 |
– |
} |
13572 |
– |
|
13573 |
– |
#ifdef FC_DUMMY_MAIN |
13574 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13575 |
– |
# ifdef __cplusplus |
13576 |
– |
extern "C" |
13577 |
– |
# endif |
13578 |
– |
int FC_DUMMY_MAIN() { return 1; } |
13579 |
– |
#endif |
13580 |
– |
#endif |
13581 |
– |
int |
13582 |
– |
main () |
13583 |
– |
{ |
13584 |
– |
|
13585 |
– |
// Check bool. |
13586 |
– |
_Bool success = false; |
13587 |
– |
|
13588 |
– |
// Check restrict. |
13589 |
– |
if (test_restrict ("String literal") == 0) |
13590 |
– |
success = true; |
13591 |
– |
char *restrict newvar = "Another string"; |
13592 |
– |
|
13593 |
– |
// Check varargs. |
13594 |
– |
test_varargs ("s, d' f .", "string", 65, 34.234); |
13595 |
– |
test_varargs_macros (); |
13596 |
– |
|
13597 |
– |
// Check flexible array members. |
13598 |
– |
struct incomplete_array *ia = |
13599 |
– |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
13600 |
– |
ia->datasize = 10; |
13601 |
– |
for (int i = 0; i < ia->datasize; ++i) |
13602 |
– |
ia->data[i] = i * 1.234; |
13603 |
– |
|
13604 |
– |
// Check named initializers. |
13605 |
– |
struct named_init ni = { |
13606 |
– |
.number = 34, |
13607 |
– |
.name = L"Test wide string", |
13608 |
– |
.average = 543.34343, |
13609 |
– |
}; |
13610 |
– |
|
13611 |
– |
ni.number = 58; |
13612 |
– |
|
13613 |
– |
int dynamic_array[ni.number]; |
13614 |
– |
dynamic_array[ni.number - 1] = 543; |
13615 |
– |
|
13616 |
– |
// work around unused variable warnings |
13617 |
– |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
13618 |
– |
|| dynamic_array[ni.number - 1] != 543); |
13619 |
– |
|
13620 |
– |
; |
13621 |
– |
return 0; |
13622 |
– |
} |
13623 |
– |
_ACEOF |
13624 |
– |
for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99 |
13625 |
– |
do |
13626 |
– |
CC="$ac_save_CC $ac_arg" |
13627 |
– |
rm -f conftest.$ac_objext |
13628 |
– |
if { (ac_try="$ac_compile" |
13629 |
– |
case "(($ac_try" in |
13630 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13631 |
– |
*) ac_try_echo=$ac_try;; |
13632 |
– |
esac |
13633 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13634 |
– |
(eval "$ac_compile") 2>conftest.er1 |
13635 |
– |
ac_status=$? |
13636 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
13637 |
– |
rm -f conftest.er1 |
13638 |
– |
cat conftest.err >&5 |
13639 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13640 |
– |
(exit $ac_status); } && { |
13641 |
– |
test -z "$ac_cxx_werror_flag" || |
13642 |
– |
test ! -s conftest.err |
13643 |
– |
} && test -s conftest.$ac_objext; then |
13644 |
– |
ac_cv_prog_cc_c99=$ac_arg |
13645 |
– |
else |
13646 |
– |
echo "$as_me: failed program was:" >&5 |
13647 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13648 |
– |
|
13649 |
– |
|
13650 |
– |
fi |
13651 |
– |
|
13652 |
– |
rm -f core conftest.err conftest.$ac_objext |
13653 |
– |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
13654 |
– |
done |
13655 |
– |
rm -f conftest.$ac_ext |
13656 |
– |
CC=$ac_save_CC |
13657 |
– |
|
13658 |
– |
fi |
13659 |
– |
# AC_CACHE_VAL |
13660 |
– |
case "x$ac_cv_prog_cc_c99" in |
13661 |
– |
x) |
13662 |
– |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
13663 |
– |
echo "${ECHO_T}none needed" >&6; } ;; |
13664 |
– |
xno) |
13665 |
– |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
13666 |
– |
echo "${ECHO_T}unsupported" >&6; } ;; |
13667 |
– |
*) |
13668 |
– |
CC="$CC $ac_cv_prog_cc_c99" |
13669 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 |
13670 |
– |
echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;; |
13671 |
– |
esac |
13672 |
– |
if test "x$ac_cv_prog_cc_c99" != xno; then |
13673 |
– |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
13674 |
– |
else |
13675 |
– |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
13676 |
– |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
13677 |
– |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
13678 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13679 |
– |
else |
13680 |
– |
ac_cv_prog_cc_c89=no |
13681 |
– |
ac_save_CC=$CC |
13682 |
– |
cat >conftest.$ac_ext <<_ACEOF |
13683 |
– |
/* confdefs.h. */ |
13684 |
– |
_ACEOF |
13685 |
– |
cat confdefs.h >>conftest.$ac_ext |
13686 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
13687 |
– |
/* end confdefs.h. */ |
13688 |
– |
#include <stdarg.h> |
13689 |
– |
#include <stdio.h> |
13690 |
– |
#include <sys/types.h> |
13691 |
– |
#include <sys/stat.h> |
13692 |
– |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
13693 |
– |
struct buf { int x; }; |
13694 |
– |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
13695 |
– |
static char *e (p, i) |
13696 |
– |
char **p; |
13697 |
– |
int i; |
13698 |
– |
{ |
13699 |
– |
return p[i]; |
13700 |
– |
} |
13701 |
– |
static char *f (char * (*g) (char **, int), char **p, ...) |
13702 |
– |
{ |
13703 |
– |
char *s; |
13704 |
– |
va_list v; |
13705 |
– |
va_start (v,p); |
13706 |
– |
s = g (p, va_arg (v,int)); |
13707 |
– |
va_end (v); |
13708 |
– |
return s; |
13709 |
– |
} |
13710 |
– |
|
13711 |
– |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
13712 |
– |
function prototypes and stuff, but not '\xHH' hex character constants. |
13713 |
– |
These don't provoke an error unfortunately, instead are silently treated |
13714 |
– |
as 'x'. The following induces an error, until -std is added to get |
13715 |
– |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
13716 |
– |
array size at least. It's necessary to write '\x00'==0 to get something |
13717 |
– |
that's true only with -std. */ |
13718 |
– |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
13719 |
– |
|
13720 |
– |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
13721 |
– |
inside strings and character constants. */ |
13722 |
– |
#define FOO(x) 'x' |
13723 |
– |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
13724 |
– |
|
13725 |
– |
int test (int i, double x); |
13726 |
– |
struct s1 {int (*f) (int a);}; |
13727 |
– |
struct s2 {int (*f) (double a);}; |
13728 |
– |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
13729 |
– |
int argc; |
13730 |
– |
char **argv; |
13731 |
– |
#ifdef FC_DUMMY_MAIN |
13732 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13733 |
– |
# ifdef __cplusplus |
13734 |
– |
extern "C" |
13735 |
– |
# endif |
13736 |
– |
int FC_DUMMY_MAIN() { return 1; } |
13737 |
– |
#endif |
13738 |
– |
#endif |
13739 |
– |
int |
13740 |
– |
main () |
13741 |
– |
{ |
13742 |
– |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
13743 |
– |
; |
13744 |
– |
return 0; |
13745 |
– |
} |
13746 |
– |
_ACEOF |
13747 |
– |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
13748 |
– |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
13749 |
– |
do |
13750 |
– |
CC="$ac_save_CC $ac_arg" |
13751 |
– |
rm -f conftest.$ac_objext |
13752 |
– |
if { (ac_try="$ac_compile" |
13753 |
– |
case "(($ac_try" in |
13754 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13755 |
– |
*) ac_try_echo=$ac_try;; |
13756 |
– |
esac |
13757 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13758 |
– |
(eval "$ac_compile") 2>conftest.er1 |
13759 |
– |
ac_status=$? |
13760 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
13761 |
– |
rm -f conftest.er1 |
13762 |
– |
cat conftest.err >&5 |
13763 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13764 |
– |
(exit $ac_status); } && { |
13765 |
– |
test -z "$ac_cxx_werror_flag" || |
13766 |
– |
test ! -s conftest.err |
13767 |
– |
} && test -s conftest.$ac_objext; then |
13768 |
– |
ac_cv_prog_cc_c89=$ac_arg |
13769 |
– |
else |
13770 |
– |
echo "$as_me: failed program was:" >&5 |
13771 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13772 |
– |
|
13773 |
– |
|
13774 |
– |
fi |
13775 |
– |
|
13776 |
– |
rm -f core conftest.err conftest.$ac_objext |
13777 |
– |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
13778 |
– |
done |
13779 |
– |
rm -f conftest.$ac_ext |
13780 |
– |
CC=$ac_save_CC |
13781 |
– |
|
13782 |
– |
fi |
13783 |
– |
# AC_CACHE_VAL |
13784 |
– |
case "x$ac_cv_prog_cc_c89" in |
13785 |
– |
x) |
13786 |
– |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
13787 |
– |
echo "${ECHO_T}none needed" >&6; } ;; |
13788 |
– |
xno) |
13789 |
– |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
13790 |
– |
echo "${ECHO_T}unsupported" >&6; } ;; |
13791 |
– |
*) |
13792 |
– |
CC="$CC $ac_cv_prog_cc_c89" |
13793 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
13794 |
– |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
13795 |
– |
esac |
13796 |
– |
if test "x$ac_cv_prog_cc_c89" != xno; then |
13797 |
– |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
13798 |
– |
else |
13799 |
– |
ac_cv_prog_cc_stdc=no |
13800 |
– |
fi |
13801 |
– |
|
13802 |
– |
|
13803 |
– |
fi |
13804 |
– |
|
13805 |
– |
;; |
13806 |
– |
esac |
13807 |
– |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5 |
13808 |
– |
echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; } |
13809 |
– |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
13810 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13811 |
– |
fi |
13812 |
– |
|
13813 |
– |
case $ac_cv_prog_cc_stdc in |
13814 |
– |
no) { echo "$as_me:$LINENO: result: unsupported" >&5 |
13815 |
– |
echo "${ECHO_T}unsupported" >&6; } ;; |
13816 |
– |
'') { echo "$as_me:$LINENO: result: none needed" >&5 |
13817 |
– |
echo "${ECHO_T}none needed" >&6; } ;; |
13818 |
– |
*) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
13819 |
– |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;; |
13820 |
– |
esac |
13821 |
– |
|
13822 |
– |
|
13823 |
– |
{ echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5 |
13824 |
– |
echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6; } |
13825 |
– |
if test "${ac_cv_cpp_func+set}" = set; then |
13826 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13827 |
– |
else |
13828 |
– |
cat >conftest.$ac_ext <<_ACEOF |
13829 |
– |
/* confdefs.h. */ |
13830 |
– |
_ACEOF |
13831 |
– |
cat confdefs.h >>conftest.$ac_ext |
13832 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
13833 |
– |
/* end confdefs.h. */ |
13834 |
– |
|
13835 |
– |
#ifdef FC_DUMMY_MAIN |
13836 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13837 |
– |
# ifdef __cplusplus |
13838 |
– |
extern "C" |
13839 |
– |
# endif |
13840 |
– |
int FC_DUMMY_MAIN() { return 1; } |
13841 |
– |
#endif |
13842 |
– |
#endif |
13843 |
– |
int |
13844 |
– |
main () |
13845 |
– |
{ |
13846 |
– |
const char *foo = __func__; |
13847 |
– |
; |
13848 |
– |
return 0; |
13849 |
– |
} |
13850 |
– |
_ACEOF |
13851 |
– |
rm -f conftest.$ac_objext |
13852 |
– |
if { (ac_try="$ac_compile" |
13853 |
– |
case "(($ac_try" in |
13854 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13855 |
– |
*) ac_try_echo=$ac_try;; |
13856 |
– |
esac |
13857 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13858 |
– |
(eval "$ac_compile") 2>conftest.er1 |
13859 |
– |
ac_status=$? |
13860 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
13861 |
– |
rm -f conftest.er1 |
13862 |
– |
cat conftest.err >&5 |
13863 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13864 |
– |
(exit $ac_status); } && { |
13865 |
– |
test -z "$ac_cxx_werror_flag" || |
13866 |
– |
test ! -s conftest.err |
13867 |
– |
} && test -s conftest.$ac_objext; then |
13868 |
– |
ac_cv_cpp_func=yes |
13869 |
– |
else |
13870 |
– |
echo "$as_me: failed program was:" >&5 |
13871 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13872 |
– |
|
13873 |
– |
cat >conftest.$ac_ext <<_ACEOF |
13874 |
– |
/* confdefs.h. */ |
13875 |
– |
_ACEOF |
13876 |
– |
cat confdefs.h >>conftest.$ac_ext |
13877 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
13878 |
– |
/* end confdefs.h. */ |
13879 |
– |
|
13880 |
– |
#ifdef FC_DUMMY_MAIN |
13881 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
13882 |
– |
# ifdef __cplusplus |
13883 |
– |
extern "C" |
13884 |
– |
# endif |
13885 |
– |
int FC_DUMMY_MAIN() { return 1; } |
13886 |
– |
#endif |
13887 |
– |
#endif |
13888 |
– |
int |
13889 |
– |
main () |
13890 |
– |
{ |
13891 |
– |
const char *foo = __FUNCTION__; |
13892 |
– |
; |
13893 |
– |
return 0; |
13894 |
– |
} |
13895 |
– |
_ACEOF |
13896 |
– |
rm -f conftest.$ac_objext |
13897 |
– |
if { (ac_try="$ac_compile" |
13898 |
– |
case "(($ac_try" in |
13899 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13900 |
– |
*) ac_try_echo=$ac_try;; |
13901 |
– |
esac |
13902 |
– |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13903 |
– |
(eval "$ac_compile") 2>conftest.er1 |
13904 |
– |
ac_status=$? |
13905 |
– |
grep -v '^ *+' conftest.er1 >conftest.err |
13906 |
– |
rm -f conftest.er1 |
13907 |
– |
cat conftest.err >&5 |
13908 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13909 |
– |
(exit $ac_status); } && { |
13910 |
– |
test -z "$ac_cxx_werror_flag" || |
13911 |
– |
test ! -s conftest.err |
13912 |
– |
} && test -s conftest.$ac_objext; then |
13913 |
– |
ac_cv_cpp_func=__FUNCTION__ |
13914 |
– |
else |
13915 |
– |
echo "$as_me: failed program was:" >&5 |
13916 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
13917 |
– |
|
13918 |
– |
ac_cv_cpp_func=no |
13919 |
– |
fi |
13920 |
– |
|
13921 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13922 |
– |
fi |
13923 |
– |
|
13924 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13925 |
– |
fi |
13926 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5 |
13927 |
– |
echo "${ECHO_T}$ac_cv_cpp_func" >&6; } |
13928 |
– |
if test $ac_cv_cpp_func = __FUNCTION__; then |
13929 |
– |
|
13930 |
– |
cat >>confdefs.h <<\_ACEOF |
13931 |
– |
#define __func__ __FUNCTION__ |
13932 |
– |
_ACEOF |
13933 |
– |
|
13934 |
– |
elif test $ac_cv_cpp_func = no; then |
13935 |
– |
|
13936 |
– |
cat >>confdefs.h <<\_ACEOF |
13937 |
– |
#define __func__ "" |
13938 |
– |
_ACEOF |
13939 |
– |
|
13940 |
– |
fi |
13941 |
– |
|
13942 |
– |
|
13943 |
– |
|
13944 |
– |
|
13945 |
– |
|
13946 |
– |
case $debug in |
13947 |
– |
1) |
13948 |
– |
;; |
13949 |
– |
*) |
13950 |
– |
|
13951 |
– |
|
13952 |
– |
|
13953 |
– |
|
13954 |
– |
# Try to determine "good" native compiler flags if none specified on command |
13955 |
– |
# line |
13956 |
– |
|
13957 |
– |
if test "$ac_test_FFLAGS" != "set"; then |
13958 |
– |
FCFLAGS="" |
13959 |
– |
case "${host_cpu}-${host_os}" in |
13960 |
– |
|
13961 |
– |
*linux*) if test "$FC" = ifc -o "$FC" = ifort; then |
13962 |
– |
FCFLAGS="-O3 -ip -no-prec-div" |
13963 |
– |
fi;; |
13964 |
– |
rs6000*-aix*) if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then |
13965 |
– |
FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
13966 |
– |
fi;; |
13967 |
– |
powerpc*-aix*) |
13968 |
– |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
13969 |
– |
FCFLAGS="-O3 -qarch=ppc -qansialias -w" |
13970 |
– |
echo "*******************************************************" |
13971 |
– |
echo "* You have AIX on an unknown powerpc system. It is *" |
13972 |
– |
echo "* recommended that you use *" |
13973 |
– |
echo "* *" |
13974 |
– |
echo "* FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
13975 |
– |
echo "* ^^^ *" |
13976 |
– |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
13977 |
– |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
13978 |
– |
echo "*******************************************************" |
13979 |
– |
fi;; |
13980 |
– |
*darwin*) |
13981 |
– |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
13982 |
– |
FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto" |
13983 |
– |
fi |
13984 |
– |
if test "$FC" = ifort; then |
13985 |
– |
FCFLAGS="-O3 -ip -no-prec-dev -mdynamic-no-pic" |
13986 |
– |
fi;; |
13987 |
– |
esac |
13988 |
– |
|
13989 |
– |
if test -n "$CPU_FLAGS"; then |
13990 |
– |
FCFLAGS="$FCFLAGS $CPU_FLAGS" |
13991 |
– |
fi |
13992 |
– |
|
13993 |
– |
if test -z "$FCFLAGS"; then |
13994 |
– |
echo "" |
13995 |
– |
echo "*********************************************************" |
13996 |
– |
echo "* WARNING: Don't know the best FCFLAGS for this system *" |
13997 |
– |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
13998 |
– |
echo "* (otherwise, a default of FCFLAGS=-O3 will be used) *" |
13999 |
– |
echo "*********************************************************" |
14000 |
– |
echo "" |
14001 |
– |
FCFLAGS="-O3" |
14002 |
– |
fi |
14003 |
– |
|
14004 |
– |
|
14005 |
– |
{ echo "$as_me:$LINENO: checking whether ${FC} accepts ${FCFLAGS}" >&5 |
14006 |
– |
echo $ECHO_N "checking whether ${FC} accepts ${FCFLAGS}... $ECHO_C" >&6; } |
14007 |
– |
if test "${ac_guessed_f90flags+set}" = set; then |
14008 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14009 |
– |
else |
14010 |
– |
|
14011 |
– |
|
14012 |
– |
ac_ext=${ac_fc_srcext-f} |
14013 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
14014 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
14015 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
14016 |
– |
|
14017 |
– |
echo 'program main' > conftest.$ac_ext |
14018 |
– |
echo 'end program main' >> conftest.$ac_ext |
14019 |
– |
ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5' |
14020 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14021 |
– |
(eval $ac_compile) 2>&5 |
14022 |
– |
ac_status=$? |
14023 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14024 |
– |
(exit $ac_status); }; then |
14025 |
– |
ac_guessed_f90flags=yes |
14026 |
– |
else |
14027 |
– |
ac_guessed_f90flags=no |
14028 |
– |
fi |
14029 |
– |
rm -f conftest* |
14030 |
– |
ac_ext=cpp |
14031 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
14032 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
14033 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
14034 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
14035 |
– |
|
14036 |
– |
|
14037 |
– |
fi |
14038 |
– |
{ echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 |
14039 |
– |
echo "${ECHO_T}$ac_guessed_f90flags" >&6; } |
14040 |
– |
if test "$ac_guessed_f90flags" = yes; then |
14041 |
– |
: |
14042 |
– |
|
14043 |
– |
else |
14044 |
– |
: |
14045 |
– |
|
14046 |
– |
echo "" |
14047 |
– |
echo "**********************************************************" |
14048 |
– |
echo "* WARNING: The guessed FCFLAGS don't seem to work with *" |
14049 |
– |
echo "* your compiler. *" |
14050 |
– |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
14051 |
– |
echo "*********************************************************" |
14052 |
– |
echo "" |
14053 |
– |
FCFLAGS="" |
14054 |
– |
|
14055 |
– |
fi |
14056 |
– |
|
14057 |
– |
|
14058 |
– |
fi |
14059 |
– |
|
14060 |
– |
|
14061 |
– |
|
14062 |
– |
|
14063 |
– |
|
14064 |
– |
|
14065 |
– |
|
14066 |
– |
{ echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
14067 |
– |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6; } |
14068 |
– |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
14069 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14070 |
– |
else |
14071 |
– |
|
14072 |
– |
cat > conftest.c <<EOF |
14073 |
– |
#ifdef __GNUC__ |
14074 |
– |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
14075 |
– |
no; |
14076 |
– |
#else |
14077 |
– |
yes; |
14078 |
– |
#endif |
14079 |
– |
#endif |
14080 |
– |
EOF |
14081 |
– |
if { ac_try='${CC-cc} -E conftest.c' |
14082 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14083 |
– |
(eval $ac_try) 2>&5 |
14084 |
– |
ac_status=$? |
14085 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14086 |
– |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
14087 |
– |
ac_cv_prog_really_gcc=yes |
14088 |
– |
else |
14089 |
– |
ac_cv_prog_really_gcc=no |
14090 |
– |
fi |
14091 |
– |
|
14092 |
– |
fi |
14093 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
14094 |
– |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6; } |
14095 |
– |
if test "$ac_cv_prog_really_gcc" = yes; then |
14096 |
– |
: |
14097 |
– |
|
14098 |
– |
else |
14099 |
– |
: |
14100 |
– |
|
14101 |
– |
fi |
14102 |
– |
|
14103 |
– |
|
14104 |
– |
# Try to determine "good" native compiler flags if none specified on command |
14105 |
– |
# line |
14106 |
– |
if test "$ac_test_CFLAGS" != "set"; then |
14107 |
– |
CFLAGS="" |
14108 |
– |
case "${host_cpu}-${host_os}" in |
14109 |
– |
|
14110 |
– |
*linux*) if test "$CC" = icc; then |
14111 |
– |
CFLAGS="-O" |
14112 |
– |
fi;; |
14113 |
– |
sparc-solaris2*) if test "$CC" = cc; then |
14114 |
– |
CFLAGS="-O -dalign" |
14115 |
– |
fi;; |
14116 |
– |
|
14117 |
– |
alpha*-osf*) if test "$CC" = cc; then |
14118 |
– |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
14119 |
– |
fi;; |
14120 |
– |
|
14121 |
– |
hppa*-hpux*) if test "$CC" = cc; then |
14122 |
– |
CFLAGS="-Ae +O3 +Oall" |
14123 |
– |
fi;; |
14124 |
– |
|
14125 |
– |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
14126 |
– |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
14127 |
– |
fi;; |
14128 |
– |
powerpc*-aix*) |
14129 |
– |
if test "$CC" = cc -o "$CC" = xlc; then |
14130 |
– |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
14131 |
– |
echo "*******************************************************" |
14132 |
– |
echo "* You have AIX on an unknown powerpc system. It is *" |
14133 |
– |
echo "* recommended that you use *" |
14134 |
– |
echo "* *" |
14135 |
– |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
14136 |
– |
echo "* ^^^ *" |
14137 |
– |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
14138 |
– |
echo "* PowerPC CPU you have. For more info, man cc. *" |
14139 |
– |
echo "*******************************************************" |
14140 |
– |
fi;; |
14141 |
– |
*darwin*) |
14142 |
– |
if test "$CC" = xlc -o "$CC" = cc; then |
14143 |
– |
CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
14144 |
– |
fi |
14145 |
– |
if test "$CC" = icc; then |
14146 |
– |
CFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic" |
14147 |
– |
fi;; |
14148 |
– |
esac |
14149 |
– |
|
14150 |
– |
# use default flags for gcc on all systems |
14151 |
– |
if test $ac_cv_prog_really_gcc = yes; then |
14152 |
– |
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align" |
14153 |
– |
fi |
14154 |
– |
|
14155 |
– |
# test for gcc-specific flags: |
14156 |
– |
if test $ac_cv_prog_really_gcc = yes; then |
14157 |
– |
# -malign-double for x86 systems |
14158 |
– |
|
14159 |
– |
|
14160 |
– |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -malign-double" >&5 |
14161 |
– |
echo $ECHO_N "checking whether ${CC} accepts -malign-double... $ECHO_C" >&6; } |
14162 |
– |
if test "${ac_align_double+set}" = set; then |
14163 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14164 |
– |
else |
14165 |
– |
echo 'void f(){}' > conftest.c |
14166 |
– |
if test -z "`${CC} -malign-double -c conftest.c 2>&1`"; then |
14167 |
– |
ac_align_double=yes |
14168 |
– |
else |
14169 |
– |
ac_align_double=no |
14170 |
– |
fi |
14171 |
– |
rm -f conftest* |
14172 |
– |
|
14173 |
– |
fi |
14174 |
– |
{ echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
14175 |
– |
echo "${ECHO_T}$ac_align_double" >&6; } |
14176 |
– |
if test "$ac_align_double" = yes; then |
14177 |
– |
: |
14178 |
– |
CFLAGS="$CFLAGS -malign-double" |
14179 |
– |
else |
14180 |
– |
: |
14181 |
– |
|
14182 |
– |
fi |
14183 |
– |
|
14184 |
– |
# -fstrict-aliasing for gcc-2.95+ |
14185 |
– |
|
14186 |
– |
|
14187 |
– |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -fstrict-aliasing" >&5 |
14188 |
– |
echo $ECHO_N "checking whether ${CC} accepts -fstrict-aliasing... $ECHO_C" >&6; } |
14189 |
– |
if test "${ac_fstrict_aliasing+set}" = set; then |
14190 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14191 |
– |
else |
14192 |
– |
echo 'void f(){}' > conftest.c |
14193 |
– |
if test -z "`${CC} -fstrict-aliasing -c conftest.c 2>&1`"; then |
14194 |
– |
ac_fstrict_aliasing=yes |
14195 |
– |
else |
14196 |
– |
ac_fstrict_aliasing=no |
14197 |
– |
fi |
14198 |
– |
rm -f conftest* |
14199 |
– |
|
14200 |
– |
fi |
14201 |
– |
{ echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
14202 |
– |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6; } |
14203 |
– |
if test "$ac_fstrict_aliasing" = yes; then |
14204 |
– |
: |
14205 |
– |
CFLAGS="$CFLAGS -fstrict-aliasing" |
14206 |
– |
else |
14207 |
– |
: |
14208 |
– |
|
14209 |
– |
fi |
14210 |
– |
|
14211 |
– |
fi |
14212 |
– |
|
14213 |
– |
CPU_FLAGS="" |
14214 |
– |
if test $ac_cv_prog_really_gcc = yes; then |
14215 |
– |
case "${host_cpu}" in |
14216 |
– |
i586*) |
14217 |
– |
|
14218 |
– |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentium" >&5 |
14219 |
– |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentium... $ECHO_C" >&6; } |
14220 |
– |
if test "${ac_cpu_pentium+set}" = set; then |
14221 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14222 |
– |
else |
14223 |
– |
echo 'void f(){}' > conftest.c |
14224 |
– |
if test -z "`${CC} -mcpu=pentium -c conftest.c 2>&1`"; then |
14225 |
– |
ac_cpu_pentium=yes |
14226 |
– |
else |
14227 |
– |
ac_cpu_pentium=no |
14228 |
– |
fi |
14229 |
– |
rm -f conftest* |
14230 |
– |
|
14231 |
– |
fi |
14232 |
– |
{ echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
14233 |
– |
echo "${ECHO_T}$ac_cpu_pentium" >&6; } |
14234 |
– |
if test "$ac_cpu_pentium" = yes; then |
14235 |
– |
: |
14236 |
– |
CPU_FLAGS=-mcpu=pentium |
14237 |
– |
else |
14238 |
– |
: |
14239 |
– |
|
14240 |
– |
|
14241 |
– |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentium" >&5 |
14242 |
– |
echo $ECHO_N "checking whether ${CC} accepts -mpentium... $ECHO_C" >&6; } |
14243 |
– |
if test "${ac_pentium+set}" = set; then |
14244 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14245 |
– |
else |
14246 |
– |
echo 'void f(){}' > conftest.c |
14247 |
– |
if test -z "`${CC} -mpentium -c conftest.c 2>&1`"; then |
14248 |
– |
ac_pentium=yes |
14249 |
– |
else |
14250 |
– |
ac_pentium=no |
14251 |
– |
fi |
14252 |
– |
rm -f conftest* |
14253 |
– |
|
14254 |
– |
fi |
14255 |
– |
{ echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
14256 |
– |
echo "${ECHO_T}$ac_pentium" >&6; } |
14257 |
– |
if test "$ac_pentium" = yes; then |
14258 |
– |
: |
14259 |
– |
CPU_FLAGS=-mpentium |
14260 |
– |
else |
14261 |
– |
: |
14262 |
– |
|
14263 |
– |
fi |
14264 |
– |
|
14265 |
– |
fi |
14266 |
– |
|
14267 |
– |
;; |
14268 |
– |
i686*) |
14269 |
– |
|
14270 |
– |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentiumpro" >&5 |
14271 |
– |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentiumpro... $ECHO_C" >&6; } |
14272 |
– |
if test "${ac_cpu_pentiumpro+set}" = set; then |
14273 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14274 |
– |
else |
14275 |
– |
echo 'void f(){}' > conftest.c |
14276 |
– |
if test -z "`${CC} -mcpu=pentiumpro -c conftest.c 2>&1`"; then |
14277 |
– |
ac_cpu_pentiumpro=yes |
14278 |
– |
else |
14279 |
– |
ac_cpu_pentiumpro=no |
14280 |
– |
fi |
14281 |
– |
rm -f conftest* |
14282 |
– |
|
14283 |
– |
fi |
14284 |
– |
{ echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
14285 |
– |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6; } |
14286 |
– |
if test "$ac_cpu_pentiumpro" = yes; then |
14287 |
– |
: |
14288 |
– |
CPU_FLAGS=-mcpu=pentiumpro |
14289 |
– |
else |
14290 |
– |
: |
14291 |
– |
|
14292 |
– |
|
14293 |
– |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentiumpro" >&5 |
14294 |
– |
echo $ECHO_N "checking whether ${CC} accepts -mpentiumpro... $ECHO_C" >&6; } |
14295 |
– |
if test "${ac_pentiumpro+set}" = set; then |
14296 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14297 |
– |
else |
14298 |
– |
echo 'void f(){}' > conftest.c |
14299 |
– |
if test -z "`${CC} -mpentiumpro -c conftest.c 2>&1`"; then |
14300 |
– |
ac_pentiumpro=yes |
14301 |
– |
else |
14302 |
– |
ac_pentiumpro=no |
14303 |
– |
fi |
14304 |
– |
rm -f conftest* |
14305 |
– |
|
14306 |
– |
fi |
14307 |
– |
{ echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
14308 |
– |
echo "${ECHO_T}$ac_pentiumpro" >&6; } |
14309 |
– |
if test "$ac_pentiumpro" = yes; then |
14310 |
– |
: |
14311 |
– |
CPU_FLAGS=-mpentiumpro |
14312 |
– |
else |
14313 |
– |
: |
14314 |
– |
|
14315 |
– |
fi |
14316 |
– |
|
14317 |
– |
fi |
14318 |
– |
|
14319 |
– |
;; |
14320 |
– |
powerpc*) |
14321 |
– |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
14322 |
– |
is60x=`echo $cputype | egrep "^600-9e?$"` |
14323 |
– |
if test -n "$is60x"; then |
14324 |
– |
|
14325 |
– |
|
14326 |
– |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=$cputype" >&5 |
14327 |
– |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=$cputype... $ECHO_C" >&6; } |
14328 |
– |
if test "${ac_m_cpu_60x+set}" = set; then |
14329 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14330 |
– |
else |
14331 |
– |
echo 'void f(){}' > conftest.c |
14332 |
– |
if test -z "`${CC} -mcpu=$cputype -c conftest.c 2>&1`"; then |
14333 |
– |
ac_m_cpu_60x=yes |
14334 |
– |
else |
14335 |
– |
ac_m_cpu_60x=no |
14336 |
– |
fi |
14337 |
– |
rm -f conftest* |
14338 |
– |
|
14339 |
– |
fi |
14340 |
– |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
14341 |
– |
echo "${ECHO_T}$ac_m_cpu_60x" >&6; } |
14342 |
– |
if test "$ac_m_cpu_60x" = yes; then |
14343 |
– |
: |
14344 |
– |
CPU_FLAGS=-mcpu=$cputype |
14345 |
– |
else |
14346 |
– |
: |
14347 |
– |
|
14348 |
– |
fi |
14349 |
– |
|
14350 |
– |
elif test "$cputype" = 750; then |
14351 |
– |
|
14352 |
– |
|
14353 |
– |
{ echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
14354 |
– |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6; } |
14355 |
– |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
14356 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14357 |
– |
else |
14358 |
– |
|
14359 |
– |
cat > conftest.c <<EOF |
14360 |
– |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
14361 |
– |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
14362 |
– |
yes; |
14363 |
– |
# endif |
14364 |
– |
#endif |
14365 |
– |
EOF |
14366 |
– |
if { ac_try='${CC-cc} -E conftest.c' |
14367 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14368 |
– |
(eval $ac_try) 2>&5 |
14369 |
– |
ac_status=$? |
14370 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14371 |
– |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
14372 |
– |
ac_cv_prog_gcc_2_95=yes |
14373 |
– |
else |
14374 |
– |
ac_cv_prog_gcc_2_95=no |
14375 |
– |
fi |
14376 |
– |
|
14377 |
– |
fi |
14378 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
14379 |
– |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6; } |
14380 |
– |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
14381 |
– |
: |
14382 |
– |
|
14383 |
– |
|
14384 |
– |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=750" >&5 |
14385 |
– |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=750... $ECHO_C" >&6; } |
14386 |
– |
if test "${ac_m_cpu_750+set}" = set; then |
14387 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14388 |
– |
else |
14389 |
– |
echo 'void f(){}' > conftest.c |
14390 |
– |
if test -z "`${CC} -mcpu=750 -c conftest.c 2>&1`"; then |
14391 |
– |
ac_m_cpu_750=yes |
14392 |
– |
else |
14393 |
– |
ac_m_cpu_750=no |
14394 |
– |
fi |
14395 |
– |
rm -f conftest* |
14396 |
– |
|
14397 |
– |
fi |
14398 |
– |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
14399 |
– |
echo "${ECHO_T}$ac_m_cpu_750" >&6; } |
14400 |
– |
if test "$ac_m_cpu_750" = yes; then |
14401 |
– |
: |
14402 |
– |
CPU_FLAGS=-mcpu=750 |
14403 |
– |
else |
14404 |
– |
: |
14405 |
– |
|
14406 |
– |
fi |
14407 |
– |
|
14408 |
– |
else |
14409 |
– |
: |
14410 |
– |
|
14411 |
– |
fi |
14412 |
– |
|
14413 |
– |
fi |
14414 |
– |
if test -z "$CPU_FLAGS"; then |
14415 |
– |
|
14416 |
– |
|
14417 |
– |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=powerpc" >&5 |
14418 |
– |
echo $ECHO_N "checking whether ${CC} accepts -mcpu=powerpc... $ECHO_C" >&6; } |
14419 |
– |
if test "${ac_m_cpu_powerpc+set}" = set; then |
14420 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14421 |
– |
else |
14422 |
– |
echo 'void f(){}' > conftest.c |
14423 |
– |
if test -z "`${CC} -mcpu=powerpc -c conftest.c 2>&1`"; then |
14424 |
– |
ac_m_cpu_powerpc=yes |
14425 |
– |
else |
14426 |
– |
ac_m_cpu_powerpc=no |
14427 |
– |
fi |
14428 |
– |
rm -f conftest* |
14429 |
– |
|
14430 |
– |
fi |
14431 |
– |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
14432 |
– |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6; } |
14433 |
– |
if test "$ac_m_cpu_powerpc" = yes; then |
14434 |
– |
: |
14435 |
– |
CPU_FLAGS=-mcpu=powerpc |
14436 |
– |
else |
14437 |
– |
: |
14438 |
– |
|
14439 |
– |
fi |
14440 |
– |
|
14441 |
– |
fi |
14442 |
– |
if test -z "$CPU_FLAGS"; then |
14443 |
– |
|
14444 |
– |
|
14445 |
– |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts -mpowerpc" >&5 |
14446 |
– |
echo $ECHO_N "checking whether ${CC} accepts -mpowerpc... $ECHO_C" >&6; } |
14447 |
– |
if test "${ac_m_powerpc+set}" = set; then |
14448 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14449 |
– |
else |
14450 |
– |
echo 'void f(){}' > conftest.c |
14451 |
– |
if test -z "`${CC} -mpowerpc -c conftest.c 2>&1`"; then |
14452 |
– |
ac_m_powerpc=yes |
14453 |
– |
else |
14454 |
– |
ac_m_powerpc=no |
14455 |
– |
fi |
14456 |
– |
rm -f conftest* |
14457 |
– |
|
14458 |
– |
fi |
14459 |
– |
{ echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
14460 |
– |
echo "${ECHO_T}$ac_m_powerpc" >&6; } |
14461 |
– |
if test "$ac_m_powerpc" = yes; then |
14462 |
– |
: |
14463 |
– |
CPU_FLAGS=-mpowerpc |
14464 |
– |
else |
14465 |
– |
: |
14466 |
– |
|
14467 |
– |
fi |
14468 |
– |
|
14469 |
– |
fi |
14470 |
– |
esac |
14471 |
– |
fi |
14472 |
– |
|
14473 |
– |
if test -n "$CPU_FLAGS"; then |
14474 |
– |
CFLAGS="$CFLAGS $CPU_FLAGS" |
14475 |
– |
fi |
14476 |
– |
|
14477 |
– |
if test -z "$CFLAGS"; then |
14478 |
– |
echo "" |
14479 |
– |
echo "********************************************************" |
14480 |
– |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
14481 |
– |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
14482 |
– |
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" |
14483 |
– |
echo "********************************************************" |
14484 |
– |
echo "" |
14485 |
– |
CFLAGS="-O3" |
14486 |
– |
fi |
14487 |
– |
|
14488 |
– |
|
14489 |
– |
|
14490 |
– |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts ${CFLAGS}" >&5 |
14491 |
– |
echo $ECHO_N "checking whether ${CC} accepts ${CFLAGS}... $ECHO_C" >&6; } |
14492 |
– |
if test "${ac_guessed_cflags+set}" = set; then |
14493 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14494 |
– |
else |
14495 |
– |
echo 'void f(){}' > conftest.c |
14496 |
– |
if test -z "`${CC} ${CFLAGS} -c conftest.c 2>&1`"; then |
14497 |
– |
ac_guessed_cflags=yes |
14498 |
– |
else |
14499 |
– |
ac_guessed_cflags=no |
14500 |
– |
fi |
14501 |
– |
rm -f conftest* |
14502 |
– |
|
14503 |
– |
fi |
14504 |
– |
{ echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
14505 |
– |
echo "${ECHO_T}$ac_guessed_cflags" >&6; } |
14506 |
– |
if test "$ac_guessed_cflags" = yes; then |
14507 |
– |
: |
14508 |
– |
|
14509 |
– |
else |
14510 |
– |
: |
14511 |
– |
|
14512 |
– |
echo "" |
14513 |
– |
echo "********************************************************" |
14514 |
– |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
14515 |
– |
echo "* your compiler. *" |
14516 |
– |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
14517 |
– |
echo "********************************************************" |
14518 |
– |
echo "" |
14519 |
– |
CFLAGS="" |
14520 |
– |
|
14521 |
– |
fi |
14522 |
– |
|
14523 |
– |
|
14524 |
– |
fi |
14525 |
– |
|
14526 |
– |
|
14527 |
– |
|
14528 |
– |
|
14529 |
– |
|
14530 |
– |
|
14531 |
– |
|
14532 |
– |
{ echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
14533 |
– |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6; } |
14534 |
– |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
14535 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14536 |
– |
else |
14537 |
– |
|
14538 |
– |
cat > conftest.cpp <<EOF |
14539 |
– |
#ifdef __GNUC__ |
14540 |
– |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
14541 |
– |
no; |
14542 |
– |
#else |
14543 |
– |
yes; |
14544 |
– |
#endif |
14545 |
– |
#endif |
14546 |
– |
EOF |
14547 |
– |
if { ac_try='${CXX-c++} -E conftest.cpp' |
14548 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14549 |
– |
(eval $ac_try) 2>&5 |
14550 |
– |
ac_status=$? |
14551 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14552 |
– |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
14553 |
– |
ac_cv_prog_really_gxx=yes |
14554 |
– |
else |
14555 |
– |
ac_cv_prog_really_gxx=no |
14556 |
– |
fi |
14557 |
– |
|
14558 |
– |
fi |
14559 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
14560 |
– |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6; } |
14561 |
– |
if test "$ac_cv_prog_really_gxx" = yes; then |
14562 |
– |
: |
14563 |
– |
|
14564 |
– |
else |
14565 |
– |
: |
14566 |
– |
|
14567 |
– |
fi |
14568 |
– |
|
14569 |
– |
|
14570 |
– |
# Try to determine "good" native compiler flags if none specified on command |
14571 |
– |
# line |
14572 |
– |
if test "$ac_test_CXXFLAGS" != "set"; then |
14573 |
– |
CXXFLAGS="" |
14574 |
– |
case "${host_cpu}-${host_os}" in |
14575 |
– |
|
14576 |
– |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
14577 |
– |
CXXFLAGS="-O" |
14578 |
– |
fi;; |
14579 |
– |
sparc-solaris2*) if test "$CXX" = CC; then |
14580 |
– |
CXXFLAGS="-features=extensions -O -dalign" |
14581 |
– |
fi;; |
14582 |
– |
rs6000*-aix*) if test "$CXX" = xlC; then |
14583 |
– |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
14584 |
– |
fi;; |
14585 |
– |
powerpc*-aix*) |
14586 |
– |
if test "$CXX" = xlC; then |
14587 |
– |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
14588 |
– |
echo "*******************************************************" |
14589 |
– |
echo "* You have AIX on an unknown powerpc system. It is *" |
14590 |
– |
echo "* recommended that you use *" |
14591 |
– |
echo "* *" |
14592 |
– |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
14593 |
– |
echo "* ^^^ *" |
14594 |
– |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
14595 |
– |
echo "* PowerPC CPU you have. For more info, man cc. *" |
14596 |
– |
echo "*******************************************************" |
14597 |
– |
fi;; |
14598 |
– |
*darwin*) |
14599 |
– |
if test "$CXX" = xlc++ -o "$CXX" = xlC ; then |
14600 |
– |
CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
14601 |
– |
fi |
14602 |
– |
if test "$CXX" = icpc; then |
14603 |
– |
CXXFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic" |
14604 |
– |
fi;; |
14605 |
– |
esac |
14606 |
– |
|
14607 |
– |
# use default flags for gcc on all systems |
14608 |
– |
if test $ac_cv_prog_really_gxx = yes; then |
14609 |
– |
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align" |
14610 |
– |
fi |
14611 |
– |
|
14612 |
– |
# test for gcc-specific flags: |
14613 |
– |
if test $ac_cv_prog_really_gxx = yes; then |
14614 |
– |
# -malign-double for x86 systems |
14615 |
– |
|
14616 |
– |
|
14617 |
– |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -malign-double" >&5 |
14618 |
– |
echo $ECHO_N "checking whether ${CXX} accepts -malign-double... $ECHO_C" >&6; } |
14619 |
– |
if test "${ac_align_double+set}" = set; then |
14620 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14621 |
– |
else |
14622 |
– |
echo 'void f(){}' > conftest.cpp |
14623 |
– |
if test -z "`${CXX} -malign-double -c conftest.cpp 2>&1`"; then |
14624 |
– |
ac_align_double=yes |
14625 |
– |
else |
14626 |
– |
ac_align_double=no |
14627 |
– |
fi |
14628 |
– |
rm -f conftest* |
14629 |
– |
|
14630 |
– |
fi |
14631 |
– |
{ echo "$as_me:$LINENO: result: $ac_align_double" >&5 |
14632 |
– |
echo "${ECHO_T}$ac_align_double" >&6; } |
14633 |
– |
if test "$ac_align_double" = yes; then |
14634 |
– |
: |
14635 |
– |
CXXFLAGS="$CXXFLAGS -malign-double" |
14636 |
– |
else |
14637 |
– |
: |
14638 |
– |
|
14639 |
– |
fi |
14640 |
– |
|
14641 |
– |
# -fstrict-aliasing for gcc-2.95+ |
14642 |
– |
|
14643 |
– |
|
14644 |
– |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -fstrict-aliasing" >&5 |
14645 |
– |
echo $ECHO_N "checking whether ${CXX} accepts -fstrict-aliasing... $ECHO_C" >&6; } |
14646 |
– |
if test "${ac_fstrict_aliasing+set}" = set; then |
14647 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14648 |
– |
else |
14649 |
– |
echo 'void f(){}' > conftest.cpp |
14650 |
– |
if test -z "`${CXX} -fstrict-aliasing -c conftest.cpp 2>&1`"; then |
14651 |
– |
ac_fstrict_aliasing=yes |
14652 |
– |
else |
14653 |
– |
ac_fstrict_aliasing=no |
14654 |
– |
fi |
14655 |
– |
rm -f conftest* |
14656 |
– |
|
14657 |
– |
fi |
14658 |
– |
{ echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5 |
14659 |
– |
echo "${ECHO_T}$ac_fstrict_aliasing" >&6; } |
14660 |
– |
if test "$ac_fstrict_aliasing" = yes; then |
14661 |
– |
: |
14662 |
– |
CXXFLAGS="$CXXFLAGS -fstrict-aliasing" |
14663 |
– |
else |
14664 |
– |
: |
14665 |
– |
|
14666 |
– |
fi |
14667 |
– |
|
14668 |
– |
fi |
14669 |
– |
|
14670 |
– |
CPU_FLAGS="" |
14671 |
– |
if test $ac_cv_prog_really_gxx = yes; then |
14672 |
– |
case "${host_cpu}" in |
14673 |
– |
i586*) |
14674 |
– |
|
14675 |
– |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentium" >&5 |
14676 |
– |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentium... $ECHO_C" >&6; } |
14677 |
– |
if test "${ac_cpu_pentium+set}" = set; then |
14678 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14679 |
– |
else |
14680 |
– |
echo 'void f(){}' > conftest.cpp |
14681 |
– |
if test -z "`${CXX} -mcpu=pentium -c conftest.cpp 2>&1`"; then |
14682 |
– |
ac_cpu_pentium=yes |
14683 |
– |
else |
14684 |
– |
ac_cpu_pentium=no |
14685 |
– |
fi |
14686 |
– |
rm -f conftest* |
14687 |
– |
|
14688 |
– |
fi |
14689 |
– |
{ echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5 |
14690 |
– |
echo "${ECHO_T}$ac_cpu_pentium" >&6; } |
14691 |
– |
if test "$ac_cpu_pentium" = yes; then |
14692 |
– |
: |
14693 |
– |
CPU_FLAGS=-mcpu=pentium |
14694 |
– |
else |
14695 |
– |
: |
14696 |
– |
|
14697 |
– |
|
14698 |
– |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentium" >&5 |
14699 |
– |
echo $ECHO_N "checking whether ${CXX} accepts -mpentium... $ECHO_C" >&6; } |
14700 |
– |
if test "${ac_pentium+set}" = set; then |
14701 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14702 |
– |
else |
14703 |
– |
echo 'void f(){}' > conftest.cpp |
14704 |
– |
if test -z "`${CXX} -mpentium -c conftest.cpp 2>&1`"; then |
14705 |
– |
ac_pentium=yes |
14706 |
– |
else |
14707 |
– |
ac_pentium=no |
14708 |
– |
fi |
14709 |
– |
rm -f conftest* |
14710 |
– |
|
14711 |
– |
fi |
14712 |
– |
{ echo "$as_me:$LINENO: result: $ac_pentium" >&5 |
14713 |
– |
echo "${ECHO_T}$ac_pentium" >&6; } |
14714 |
– |
if test "$ac_pentium" = yes; then |
14715 |
– |
: |
14716 |
– |
CPU_FLAGS=-mpentium |
14717 |
– |
else |
14718 |
– |
: |
14719 |
– |
|
14720 |
– |
fi |
14721 |
– |
|
14722 |
– |
fi |
14723 |
– |
|
14724 |
– |
;; |
14725 |
– |
i686*) |
14726 |
– |
|
14727 |
– |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentiumpro" >&5 |
14728 |
– |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentiumpro... $ECHO_C" >&6; } |
14729 |
– |
if test "${ac_cpu_pentiumpro+set}" = set; then |
14730 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14731 |
– |
else |
14732 |
– |
echo 'void f(){}' > conftest.cpp |
14733 |
– |
if test -z "`${CXX} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then |
14734 |
– |
ac_cpu_pentiumpro=yes |
14735 |
– |
else |
14736 |
– |
ac_cpu_pentiumpro=no |
14737 |
– |
fi |
14738 |
– |
rm -f conftest* |
14739 |
– |
|
14740 |
– |
fi |
14741 |
– |
{ echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5 |
14742 |
– |
echo "${ECHO_T}$ac_cpu_pentiumpro" >&6; } |
14743 |
– |
if test "$ac_cpu_pentiumpro" = yes; then |
14744 |
– |
: |
14745 |
– |
CPU_FLAGS=-mcpu=pentiumpro |
14746 |
– |
else |
14747 |
– |
: |
14748 |
– |
|
14749 |
– |
|
14750 |
– |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentiumpro" >&5 |
14751 |
– |
echo $ECHO_N "checking whether ${CXX} accepts -mpentiumpro... $ECHO_C" >&6; } |
14752 |
– |
if test "${ac_pentiumpro+set}" = set; then |
14753 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14754 |
– |
else |
14755 |
– |
echo 'void f(){}' > conftest.cpp |
14756 |
– |
if test -z "`${CXX} -mpentiumpro -c conftest.cpp 2>&1`"; then |
14757 |
– |
ac_pentiumpro=yes |
14758 |
– |
else |
14759 |
– |
ac_pentiumpro=no |
14760 |
– |
fi |
14761 |
– |
rm -f conftest* |
14762 |
– |
|
14763 |
– |
fi |
14764 |
– |
{ echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5 |
14765 |
– |
echo "${ECHO_T}$ac_pentiumpro" >&6; } |
14766 |
– |
if test "$ac_pentiumpro" = yes; then |
14767 |
– |
: |
14768 |
– |
CPU_FLAGS=-mpentiumpro |
14769 |
– |
else |
14770 |
– |
: |
14771 |
– |
|
14772 |
– |
fi |
14773 |
– |
|
14774 |
– |
fi |
14775 |
– |
|
14776 |
– |
;; |
14777 |
– |
powerpc*) |
14778 |
– |
cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null` |
14779 |
– |
is60x=`echo $cputype | egrep "^600-9e?$"` |
14780 |
– |
if test -n "$is60x"; then |
14781 |
– |
|
14782 |
– |
|
14783 |
– |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=$cputype" >&5 |
14784 |
– |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=$cputype... $ECHO_C" >&6; } |
14785 |
– |
if test "${ac_m_cpu_60x+set}" = set; then |
14786 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14787 |
– |
else |
14788 |
– |
echo 'void f(){}' > conftest.cpp |
14789 |
– |
if test -z "`${CXX} -mcpu=$cputype -c conftest.cpp 2>&1`"; then |
14790 |
– |
ac_m_cpu_60x=yes |
14791 |
– |
else |
14792 |
– |
ac_m_cpu_60x=no |
14793 |
– |
fi |
14794 |
– |
rm -f conftest* |
14795 |
– |
|
14796 |
– |
fi |
14797 |
– |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5 |
14798 |
– |
echo "${ECHO_T}$ac_m_cpu_60x" >&6; } |
14799 |
– |
if test "$ac_m_cpu_60x" = yes; then |
14800 |
– |
: |
14801 |
– |
CPU_FLAGS=-mcpu=$cputype |
14802 |
– |
else |
14803 |
– |
: |
14804 |
– |
|
14805 |
– |
fi |
14806 |
– |
|
14807 |
– |
elif test "$cputype" = 750; then |
14808 |
– |
|
14809 |
– |
|
14810 |
– |
{ echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5 |
14811 |
– |
echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6; } |
14812 |
– |
if test "${ac_cv_prog_gxx_2_95+set}" = set; then |
14813 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14814 |
– |
else |
14815 |
– |
|
14816 |
– |
cat > conftest.cpp <<EOF |
14817 |
– |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
14818 |
– |
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
14819 |
– |
yes; |
14820 |
– |
# endif |
14821 |
– |
#endif |
14822 |
– |
EOF |
14823 |
– |
if { ac_try='${CXX-c++} -E conftest.cpp' |
14824 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14825 |
– |
(eval $ac_try) 2>&5 |
14826 |
– |
ac_status=$? |
14827 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14828 |
– |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
14829 |
– |
ac_cv_prog_gxx_2_95=yes |
14830 |
– |
else |
14831 |
– |
ac_cv_prog_gxx_2_95=no |
14832 |
– |
fi |
14833 |
– |
|
14834 |
– |
fi |
14835 |
– |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5 |
14836 |
– |
echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6; } |
14837 |
– |
if test "$ac_cv_prog_gxx_2_95" = yes; then |
14838 |
– |
: |
14839 |
– |
|
14840 |
– |
|
14841 |
– |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=750" >&5 |
14842 |
– |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=750... $ECHO_C" >&6; } |
14843 |
– |
if test "${ac_m_cpu_750+set}" = set; then |
14844 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14845 |
– |
else |
14846 |
– |
echo 'void f(){}' > conftest.cpp |
14847 |
– |
if test -z "`${CXX} -mcpu=750 -c conftest.cpp 2>&1`"; then |
14848 |
– |
ac_m_cpu_750=yes |
14849 |
– |
else |
14850 |
– |
ac_m_cpu_750=no |
14851 |
– |
fi |
14852 |
– |
rm -f conftest* |
14853 |
– |
|
14854 |
– |
fi |
14855 |
– |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5 |
14856 |
– |
echo "${ECHO_T}$ac_m_cpu_750" >&6; } |
14857 |
– |
if test "$ac_m_cpu_750" = yes; then |
14858 |
– |
: |
14859 |
– |
CPU_FLAGS=-mcpu=750 |
14860 |
– |
else |
14861 |
– |
: |
14862 |
– |
|
14863 |
– |
fi |
14864 |
– |
|
14865 |
– |
else |
14866 |
– |
: |
14867 |
– |
|
14868 |
– |
fi |
14869 |
– |
|
14870 |
– |
fi |
14871 |
– |
if test -z "$CPU_FLAGS"; then |
14872 |
– |
|
14873 |
– |
|
14874 |
– |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=powerpc" >&5 |
14875 |
– |
echo $ECHO_N "checking whether ${CXX} accepts -mcpu=powerpc... $ECHO_C" >&6; } |
14876 |
– |
if test "${ac_m_cpu_powerpc+set}" = set; then |
14877 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14878 |
– |
else |
14879 |
– |
echo 'void f(){}' > conftest.cpp |
14880 |
– |
if test -z "`${CXX} -mcpu=powerpc -c conftest.cpp 2>&1`"; then |
14881 |
– |
ac_m_cpu_powerpc=yes |
14882 |
– |
else |
14883 |
– |
ac_m_cpu_powerpc=no |
14884 |
– |
fi |
14885 |
– |
rm -f conftest* |
14886 |
– |
|
14887 |
– |
fi |
14888 |
– |
{ echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5 |
14889 |
– |
echo "${ECHO_T}$ac_m_cpu_powerpc" >&6; } |
14890 |
– |
if test "$ac_m_cpu_powerpc" = yes; then |
14891 |
– |
: |
14892 |
– |
CPU_FLAGS=-mcpu=powerpc |
14893 |
– |
else |
14894 |
– |
: |
14895 |
– |
|
14896 |
– |
fi |
14897 |
– |
|
14898 |
– |
fi |
14899 |
– |
if test -z "$CPU_FLAGS"; then |
14900 |
– |
|
14901 |
– |
|
14902 |
– |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpowerpc" >&5 |
14903 |
– |
echo $ECHO_N "checking whether ${CXX} accepts -mpowerpc... $ECHO_C" >&6; } |
14904 |
– |
if test "${ac_m_powerpc+set}" = set; then |
14905 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14906 |
– |
else |
14907 |
– |
echo 'void f(){}' > conftest.cpp |
14908 |
– |
if test -z "`${CXX} -mpowerpc -c conftest.cpp 2>&1`"; then |
14909 |
– |
ac_m_powerpc=yes |
14910 |
– |
else |
14911 |
– |
ac_m_powerpc=no |
14912 |
– |
fi |
14913 |
– |
rm -f conftest* |
14914 |
– |
|
14915 |
– |
fi |
14916 |
– |
{ echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5 |
14917 |
– |
echo "${ECHO_T}$ac_m_powerpc" >&6; } |
14918 |
– |
if test "$ac_m_powerpc" = yes; then |
14919 |
– |
: |
14920 |
– |
CPU_FLAGS=-mpowerpc |
14921 |
– |
else |
14922 |
– |
: |
14923 |
– |
|
14924 |
– |
fi |
14925 |
– |
|
14926 |
– |
fi |
14927 |
– |
esac |
14928 |
– |
fi |
14929 |
– |
|
14930 |
– |
if test -n "$CPU_FLAGS"; then |
14931 |
– |
CXXFLAGS="$CXXFLAGS $CPU_FLAGS" |
14932 |
– |
fi |
14933 |
– |
|
14934 |
– |
if test -z "$CXXFLAGS"; then |
14935 |
– |
echo "" |
14936 |
– |
echo "**********************************************************" |
14937 |
– |
echo "* WARNING: Don't know the best CXXFLAGS for this system *" |
14938 |
– |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
14939 |
– |
echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *" |
14940 |
– |
echo "**********************************************************" |
14941 |
– |
echo "" |
14942 |
– |
CXXFLAGS="-O3" |
14943 |
– |
fi |
14944 |
– |
|
14945 |
– |
|
14946 |
– |
|
14947 |
– |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts ${CXXFLAGS}" >&5 |
14948 |
– |
echo $ECHO_N "checking whether ${CXX} accepts ${CXXFLAGS}... $ECHO_C" >&6; } |
14949 |
– |
if test "${ac_guessed_cxxflags+set}" = set; then |
14950 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
14951 |
– |
else |
14952 |
– |
echo 'void f(){}' > conftest.cpp |
14953 |
– |
if test -z "`${CXX} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then |
14954 |
– |
ac_guessed_cxxflags=yes |
14955 |
– |
else |
14956 |
– |
ac_guessed_cxxflags=no |
14957 |
– |
fi |
14958 |
– |
rm -f conftest* |
14959 |
– |
|
14960 |
– |
fi |
14961 |
– |
{ echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 |
14962 |
– |
echo "${ECHO_T}$ac_guessed_cxxflags" >&6; } |
14963 |
– |
if test "$ac_guessed_cxxflags" = yes; then |
14964 |
– |
: |
14965 |
– |
|
14966 |
– |
else |
14967 |
– |
: |
14968 |
– |
|
14969 |
– |
echo "" |
14970 |
– |
echo "**********************************************************" |
14971 |
– |
echo "* WARNING: The guessed CXXFLAGS don't seem to work with *" |
14972 |
– |
echo "* your compiler. *" |
14973 |
– |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
14974 |
– |
echo "**********************************************************" |
14975 |
– |
echo "" |
14976 |
– |
CXXFLAGS="" |
14977 |
– |
|
11175 |
|
fi |
11176 |
+ |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11177 |
+ |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11178 |
+ |
echo "${ECHO_T}$ac_res" >&6; } |
11179 |
|
|
14980 |
– |
|
11180 |
|
fi |
11181 |
< |
|
11182 |
< |
;; |
11183 |
< |
esac |
14985 |
< |
|
14986 |
< |
|
14987 |
< |
cat >>confdefs.h <<\_ACEOF |
14988 |
< |
#define OBAPI |
11181 |
> |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11182 |
> |
cat >>confdefs.h <<_ACEOF |
11183 |
> |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11184 |
|
_ACEOF |
11185 |
|
|
14991 |
– |
|
14992 |
– |
|
14993 |
– |
|
14994 |
– |
# Check whether --with-mpi was given. |
14995 |
– |
if test "${with_mpi+set}" = set; then |
14996 |
– |
withval=$with_mpi; with_mpi=$withval |
14997 |
– |
else |
14998 |
– |
with_mpi="no" |
11186 |
|
fi |
11187 |
|
|
11188 |
+ |
done |
11189 |
|
|
11190 |
< |
case "x$with_mpi" in |
11191 |
< |
xyes | "x") USE_MPI=yes;; |
11192 |
< |
xno) USE_MPI=no ;; |
15005 |
< |
*) MPI="$with_mpi"; USE_MPI=yes ;; |
15006 |
< |
esac |
15007 |
< |
if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then |
15008 |
< |
MPI="/usr/local" |
15009 |
< |
fi |
15010 |
< |
if test "$USE_MPI" = "yes"; then |
15011 |
< |
|
15012 |
< |
|
15013 |
< |
# Set variables... |
15014 |
< |
MPI_LIB_DIR="$MPI/lib" |
15015 |
< |
MPI_INC_DIR="$MPI/include" |
15016 |
< |
|
15017 |
< |
|
15018 |
< |
|
15019 |
< |
ac_ext=c |
15020 |
< |
ac_cpp='$CPP $CPPFLAGS' |
15021 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15022 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15023 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15024 |
< |
|
15025 |
< |
{ echo "$as_me:$LINENO: checking for mpi.h" >&5 |
15026 |
< |
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6; } |
15027 |
< |
have_mpi_h=0 |
15028 |
< |
rm -f conftest* |
15029 |
< |
echo '#include <mpi.h>' > conftest.c |
15030 |
< |
if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then |
15031 |
< |
{ echo "$as_me:$LINENO: result: yes" >&5 |
15032 |
< |
echo "${ECHO_T}yes" >&6; } |
15033 |
< |
have_mpi_h=1 |
15034 |
< |
else |
15035 |
< |
if test -s conftest.out ; then |
15036 |
< |
cat conftest.out >> config.log |
15037 |
< |
fi |
15038 |
< |
{ echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
15039 |
< |
echo "${ECHO_T}no! Check MPI include paths" >&6; } |
15040 |
< |
USE_MPI="no" |
15041 |
< |
fi |
15042 |
< |
rm -f conftest* |
15043 |
< |
if test "$have_mpi_h" = 1; then |
15044 |
< |
|
15045 |
< |
cat >>confdefs.h <<\_ACEOF |
15046 |
< |
#define HAVE_MPI_H 1 |
15047 |
< |
_ACEOF |
15048 |
< |
|
15049 |
< |
fi |
15050 |
< |
|
15051 |
< |
{ echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
15052 |
< |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6; } |
15053 |
< |
|
15054 |
< |
ac_ext=${ac_fc_srcext-f} |
15055 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
15056 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
15057 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
15058 |
< |
|
15059 |
< |
ac_save_ext=$ac_ext |
15060 |
< |
ac_ext=F90 |
15061 |
< |
ac_save_FCFLAGS=$FCFLAGS |
15062 |
< |
have_mpif_h=0 |
15063 |
< |
rm -f conftest* |
15064 |
< |
cat >conftest.$ac_ext <<EOF |
15065 |
< |
program main |
15066 |
< |
include 'mpif.h' |
15067 |
< |
end |
15068 |
< |
EOF |
15069 |
< |
if $FC -I$MPI_INC_DIR -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext > conftest.out 2>&1 ; then |
15070 |
< |
{ echo "$as_me:$LINENO: result: yes" >&5 |
15071 |
< |
echo "${ECHO_T}yes" >&6; } |
15072 |
< |
MPI_F90_INC="$MPI_INC_DIR" |
15073 |
< |
have_mpif_h=1 |
15074 |
< |
else |
15075 |
< |
if test -s conftest.out ; then |
15076 |
< |
cat conftest.out >> config.log |
15077 |
< |
fi |
15078 |
< |
{ echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
15079 |
< |
echo "${ECHO_T}no! Check MPI include paths" >&6; } |
15080 |
< |
USE_MPI="no" |
15081 |
< |
fi |
15082 |
< |
rm -f conftest* |
15083 |
< |
|
15084 |
< |
if test "$have_mpif_h" = 1; then |
15085 |
< |
|
15086 |
< |
cat >>confdefs.h <<\_ACEOF |
15087 |
< |
#define HAVE_MPIF_H 1 |
15088 |
< |
_ACEOF |
15089 |
< |
|
15090 |
< |
fi |
15091 |
< |
FCFLAGS=$ac_save_FCFLAGS |
15092 |
< |
ac_ext=$ac_save_ext |
15093 |
< |
ac_ext=c |
15094 |
< |
ac_cpp='$CPP $CPPFLAGS' |
15095 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15096 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15097 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15098 |
< |
|
15099 |
< |
|
15100 |
< |
ac_ext=c |
15101 |
< |
ac_cpp='$CPP $CPPFLAGS' |
15102 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15103 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15104 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15105 |
< |
|
15106 |
< |
ac_save_LDFLAGS=$LDFLAGS |
15107 |
< |
LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} " |
15108 |
< |
|
15109 |
< |
if test x = x"$MPI_LIB"; then |
15110 |
< |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
15111 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6; } |
15112 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
11190 |
> |
{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
11191 |
> |
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } |
11192 |
> |
if test "${ac_cv_func_select_args+set}" = set; then |
11193 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11194 |
|
else |
11195 |
< |
ac_check_lib_save_LIBS=$LIBS |
11196 |
< |
LIBS="-lmpich $LIBS" |
11197 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11195 |
> |
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
11196 |
> |
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
11197 |
> |
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
11198 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11199 |
|
/* confdefs.h. */ |
11200 |
|
_ACEOF |
11201 |
|
cat confdefs.h >>conftest.$ac_ext |
11202 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11203 |
|
/* end confdefs.h. */ |
11204 |
< |
|
11205 |
< |
/* Override any GCC internal prototype to avoid an error. |
11206 |
< |
Use char because int might match the return type of a GCC |
15126 |
< |
builtin and then its argument prototype would still apply. */ |
15127 |
< |
#ifdef __cplusplus |
15128 |
< |
extern "C" |
11204 |
> |
$ac_includes_default |
11205 |
> |
#ifdef HAVE_SYS_SELECT_H |
11206 |
> |
# include <sys/select.h> |
11207 |
|
#endif |
11208 |
< |
char MPI_Init (); |
11208 |
> |
#ifdef HAVE_SYS_SOCKET_H |
11209 |
> |
# include <sys/socket.h> |
11210 |
> |
#endif |
11211 |
> |
|
11212 |
|
#ifdef FC_DUMMY_MAIN |
11213 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11214 |
|
# ifdef __cplusplus |
11220 |
|
int |
11221 |
|
main () |
11222 |
|
{ |
11223 |
< |
return MPI_Init (); |
11223 |
> |
extern int select ($ac_arg1, |
11224 |
> |
$ac_arg234, $ac_arg234, $ac_arg234, |
11225 |
> |
$ac_arg5); |
11226 |
|
; |
11227 |
|
return 0; |
11228 |
|
} |
11229 |
|
_ACEOF |
11230 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
11231 |
< |
if { (ac_try="$ac_link" |
11230 |
> |
rm -f conftest.$ac_objext |
11231 |
> |
if { (ac_try="$ac_compile" |
11232 |
|
case "(($ac_try" in |
11233 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11234 |
|
*) ac_try_echo=$ac_try;; |
11235 |
|
esac |
11236 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11237 |
< |
(eval "$ac_link") 2>conftest.er1 |
11237 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11238 |
|
ac_status=$? |
11239 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11240 |
|
rm -f conftest.er1 |
11243 |
|
(exit $ac_status); } && { |
11244 |
|
test -z "$ac_c_werror_flag" || |
11245 |
|
test ! -s conftest.err |
11246 |
< |
} && test -s conftest$ac_exeext && |
11247 |
< |
$as_test_x conftest$ac_exeext; then |
15165 |
< |
ac_cv_lib_mpich_MPI_Init=yes |
11246 |
> |
} && test -s conftest.$ac_objext; then |
11247 |
> |
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
11248 |
|
else |
11249 |
|
echo "$as_me: failed program was:" >&5 |
11250 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11251 |
|
|
11252 |
< |
ac_cv_lib_mpich_MPI_Init=no |
11252 |
> |
|
11253 |
|
fi |
11254 |
|
|
11255 |
< |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11256 |
< |
conftest$ac_exeext conftest.$ac_ext |
11257 |
< |
LIBS=$ac_check_lib_save_LIBS |
11255 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11256 |
> |
done |
11257 |
> |
done |
11258 |
> |
done |
11259 |
> |
# Provide a safe default value. |
11260 |
> |
: ${ac_cv_func_select_args='int,int *,struct timeval *'} |
11261 |
> |
|
11262 |
|
fi |
11263 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
11264 |
< |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6; } |
11265 |
< |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
11266 |
< |
MPI_LIB="-lmpich" |
11263 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
11264 |
> |
echo "${ECHO_T}$ac_cv_func_select_args" >&6; } |
11265 |
> |
ac_save_IFS=$IFS; IFS=',' |
11266 |
> |
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
11267 |
> |
IFS=$ac_save_IFS |
11268 |
> |
shift |
11269 |
> |
|
11270 |
> |
cat >>confdefs.h <<_ACEOF |
11271 |
> |
#define SELECT_TYPE_ARG1 $1 |
11272 |
> |
_ACEOF |
11273 |
> |
|
11274 |
> |
|
11275 |
> |
cat >>confdefs.h <<_ACEOF |
11276 |
> |
#define SELECT_TYPE_ARG234 ($2) |
11277 |
> |
_ACEOF |
11278 |
> |
|
11279 |
> |
|
11280 |
> |
cat >>confdefs.h <<_ACEOF |
11281 |
> |
#define SELECT_TYPE_ARG5 ($3) |
11282 |
> |
_ACEOF |
11283 |
> |
|
11284 |
> |
rm -f conftest* |
11285 |
> |
|
11286 |
> |
{ echo "$as_me:$LINENO: checking for working strtod" >&5 |
11287 |
> |
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } |
11288 |
> |
if test "${ac_cv_func_strtod+set}" = set; then |
11289 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11290 |
> |
else |
11291 |
> |
if test "$cross_compiling" = yes; then |
11292 |
> |
ac_cv_func_strtod=no |
11293 |
> |
else |
11294 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11295 |
> |
/* confdefs.h. */ |
11296 |
> |
_ACEOF |
11297 |
> |
cat confdefs.h >>conftest.$ac_ext |
11298 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
11299 |
> |
/* end confdefs.h. */ |
11300 |
> |
|
11301 |
> |
$ac_includes_default |
11302 |
> |
#ifndef strtod |
11303 |
> |
double strtod (); |
11304 |
> |
#endif |
11305 |
> |
int |
11306 |
> |
main() |
11307 |
> |
{ |
11308 |
> |
{ |
11309 |
> |
/* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
11310 |
> |
char *string = " +69"; |
11311 |
> |
char *term; |
11312 |
> |
double value; |
11313 |
> |
value = strtod (string, &term); |
11314 |
> |
if (value != 69 || term != (string + 4)) |
11315 |
> |
return 1; |
11316 |
> |
} |
11317 |
> |
|
11318 |
> |
{ |
11319 |
> |
/* Under Solaris 2.4, strtod returns the wrong value for the |
11320 |
> |
terminating character under some conditions. */ |
11321 |
> |
char *string = "NaN"; |
11322 |
> |
char *term; |
11323 |
> |
strtod (string, &term); |
11324 |
> |
if (term != string && *(term - 1) == 0) |
11325 |
> |
return 1; |
11326 |
> |
} |
11327 |
> |
return 0; |
11328 |
> |
} |
11329 |
> |
|
11330 |
> |
_ACEOF |
11331 |
> |
rm -f conftest$ac_exeext |
11332 |
> |
if { (ac_try="$ac_link" |
11333 |
> |
case "(($ac_try" in |
11334 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11335 |
> |
*) ac_try_echo=$ac_try;; |
11336 |
> |
esac |
11337 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11338 |
> |
(eval "$ac_link") 2>&5 |
11339 |
> |
ac_status=$? |
11340 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11341 |
> |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
11342 |
> |
{ (case "(($ac_try" in |
11343 |
> |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11344 |
> |
*) ac_try_echo=$ac_try;; |
11345 |
> |
esac |
11346 |
> |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11347 |
> |
(eval "$ac_try") 2>&5 |
11348 |
> |
ac_status=$? |
11349 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11350 |
> |
(exit $ac_status); }; }; then |
11351 |
> |
ac_cv_func_strtod=yes |
11352 |
> |
else |
11353 |
> |
echo "$as_me: program exited with status $ac_status" >&5 |
11354 |
> |
echo "$as_me: failed program was:" >&5 |
11355 |
> |
sed 's/^/| /' conftest.$ac_ext >&5 |
11356 |
> |
|
11357 |
> |
( exit $ac_status ) |
11358 |
> |
ac_cv_func_strtod=no |
11359 |
|
fi |
11360 |
+ |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11361 |
+ |
fi |
11362 |
|
|
11363 |
+ |
|
11364 |
|
fi |
11365 |
< |
$as_unset ac_cv_lib_mpich_MPI_Init |
11366 |
< |
if test x = x"$MPI_LIB"; then |
11367 |
< |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5 |
11368 |
< |
echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6; } |
11369 |
< |
if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then |
11365 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
11366 |
> |
echo "${ECHO_T}$ac_cv_func_strtod" >&6; } |
11367 |
> |
if test $ac_cv_func_strtod = no; then |
11368 |
> |
case " $LIBOBJS " in |
11369 |
> |
*" strtod.$ac_objext "* ) ;; |
11370 |
> |
*) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
11371 |
> |
;; |
11372 |
> |
esac |
11373 |
> |
|
11374 |
> |
{ echo "$as_me:$LINENO: checking for pow" >&5 |
11375 |
> |
echo $ECHO_N "checking for pow... $ECHO_C" >&6; } |
11376 |
> |
if test "${ac_cv_func_pow+set}" = set; then |
11377 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11378 |
|
else |
11379 |
< |
ac_check_lib_save_LIBS=$LIBS |
15192 |
< |
LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS" |
15193 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11379 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11380 |
|
/* confdefs.h. */ |
11381 |
|
_ACEOF |
11382 |
|
cat confdefs.h >>conftest.$ac_ext |
11383 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11384 |
|
/* end confdefs.h. */ |
11385 |
+ |
/* Define pow to an innocuous variant, in case <limits.h> declares pow. |
11386 |
+ |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11387 |
+ |
#define pow innocuous_pow |
11388 |
|
|
11389 |
+ |
/* System header to define __stub macros and hopefully few prototypes, |
11390 |
+ |
which can conflict with char pow (); below. |
11391 |
+ |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11392 |
+ |
<limits.h> exists even on freestanding compilers. */ |
11393 |
+ |
|
11394 |
+ |
#ifdef __STDC__ |
11395 |
+ |
# include <limits.h> |
11396 |
+ |
#else |
11397 |
+ |
# include <assert.h> |
11398 |
+ |
#endif |
11399 |
+ |
|
11400 |
+ |
#undef pow |
11401 |
+ |
|
11402 |
|
/* Override any GCC internal prototype to avoid an error. |
11403 |
|
Use char because int might match the return type of a GCC |
11404 |
|
builtin and then its argument prototype would still apply. */ |
11405 |
|
#ifdef __cplusplus |
11406 |
|
extern "C" |
11407 |
|
#endif |
11408 |
< |
char MPI_Init (); |
11408 |
> |
char pow (); |
11409 |
> |
/* The GNU C library defines this for functions which it implements |
11410 |
> |
to always fail with ENOSYS. Some functions are actually named |
11411 |
> |
something starting with __ and the normal name is an alias. */ |
11412 |
> |
#if defined __stub_pow || defined __stub___pow |
11413 |
> |
choke me |
11414 |
> |
#endif |
11415 |
> |
|
11416 |
|
#ifdef FC_DUMMY_MAIN |
11417 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11418 |
|
# ifdef __cplusplus |
11424 |
|
int |
11425 |
|
main () |
11426 |
|
{ |
11427 |
< |
return MPI_Init (); |
11427 |
> |
return pow (); |
11428 |
|
; |
11429 |
|
return 0; |
11430 |
|
} |
11447 |
|
test ! -s conftest.err |
11448 |
|
} && test -s conftest$ac_exeext && |
11449 |
|
$as_test_x conftest$ac_exeext; then |
11450 |
< |
ac_cv_lib_pmpich_MPI_Init=yes |
11450 |
> |
ac_cv_func_pow=yes |
11451 |
|
else |
11452 |
|
echo "$as_me: failed program was:" >&5 |
11453 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11454 |
|
|
11455 |
< |
ac_cv_lib_pmpich_MPI_Init=no |
11455 |
> |
ac_cv_func_pow=no |
11456 |
|
fi |
11457 |
|
|
11458 |
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11459 |
|
conftest$ac_exeext conftest.$ac_ext |
15251 |
– |
LIBS=$ac_check_lib_save_LIBS |
11460 |
|
fi |
11461 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5 |
11462 |
< |
echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6; } |
15255 |
< |
if test $ac_cv_lib_pmpich_MPI_Init = yes; then |
15256 |
< |
MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich" |
15257 |
< |
fi |
11461 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
11462 |
> |
echo "${ECHO_T}$ac_cv_func_pow" >&6; } |
11463 |
|
|
11464 |
< |
fi |
11465 |
< |
if test x = x"$MPI_LIB"; then |
11466 |
< |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
11467 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; } |
15263 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
11464 |
> |
if test $ac_cv_func_pow = no; then |
11465 |
> |
{ echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
11466 |
> |
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } |
11467 |
> |
if test "${ac_cv_lib_m_pow+set}" = set; then |
11468 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11469 |
|
else |
11470 |
|
ac_check_lib_save_LIBS=$LIBS |
11471 |
< |
LIBS="-lmpi $LIBS" |
11471 |
> |
LIBS="-lm $LIBS" |
11472 |
|
cat >conftest.$ac_ext <<_ACEOF |
11473 |
|
/* confdefs.h. */ |
11474 |
|
_ACEOF |
11482 |
|
#ifdef __cplusplus |
11483 |
|
extern "C" |
11484 |
|
#endif |
11485 |
< |
char MPI_Init (); |
11485 |
> |
char pow (); |
11486 |
|
#ifdef FC_DUMMY_MAIN |
11487 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11488 |
|
# ifdef __cplusplus |
11494 |
|
int |
11495 |
|
main () |
11496 |
|
{ |
11497 |
< |
return MPI_Init (); |
11497 |
> |
return pow (); |
11498 |
|
; |
11499 |
|
return 0; |
11500 |
|
} |
11517 |
|
test ! -s conftest.err |
11518 |
|
} && test -s conftest$ac_exeext && |
11519 |
|
$as_test_x conftest$ac_exeext; then |
11520 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
11520 |
> |
ac_cv_lib_m_pow=yes |
11521 |
|
else |
11522 |
|
echo "$as_me: failed program was:" >&5 |
11523 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11524 |
|
|
11525 |
< |
ac_cv_lib_mpi_MPI_Init=no |
11525 |
> |
ac_cv_lib_m_pow=no |
11526 |
|
fi |
11527 |
|
|
11528 |
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11529 |
|
conftest$ac_exeext conftest.$ac_ext |
11530 |
|
LIBS=$ac_check_lib_save_LIBS |
11531 |
|
fi |
11532 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
11533 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; } |
11534 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
11535 |
< |
MPI_LIB="-lmpi" |
11532 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
11533 |
> |
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } |
11534 |
> |
if test $ac_cv_lib_m_pow = yes; then |
11535 |
> |
POW_LIB=-lm |
11536 |
> |
else |
11537 |
> |
{ echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
11538 |
> |
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
11539 |
|
fi |
11540 |
|
|
11541 |
|
fi |
11542 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
11543 |
< |
if test x = x"$MPI_LIB"; then |
11544 |
< |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
11545 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; } |
11546 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
11542 |
> |
|
11543 |
> |
fi |
11544 |
> |
|
11545 |
> |
|
11546 |
> |
|
11547 |
> |
|
11548 |
> |
|
11549 |
> |
|
11550 |
> |
|
11551 |
> |
|
11552 |
> |
|
11553 |
> |
|
11554 |
> |
|
11555 |
> |
|
11556 |
> |
|
11557 |
> |
|
11558 |
> |
|
11559 |
> |
|
11560 |
> |
|
11561 |
> |
|
11562 |
> |
|
11563 |
> |
|
11564 |
> |
|
11565 |
> |
|
11566 |
> |
for ac_func in floor getpagesize gettimeofday memset pow pstat_getdynamic pstat_getstatic select sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strstr strtol sysmp getsysinfo sysctl table |
11567 |
> |
do |
11568 |
> |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11569 |
> |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11570 |
> |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
11571 |
> |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
11572 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11573 |
|
else |
11574 |
< |
ac_check_lib_save_LIBS=$LIBS |
15343 |
< |
LIBS="-lmpi -llam $LIBS" |
15344 |
< |
cat >conftest.$ac_ext <<_ACEOF |
11574 |
> |
cat >conftest.$ac_ext <<_ACEOF |
11575 |
|
/* confdefs.h. */ |
11576 |
|
_ACEOF |
11577 |
|
cat confdefs.h >>conftest.$ac_ext |
11578 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11579 |
|
/* end confdefs.h. */ |
11580 |
+ |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11581 |
+ |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11582 |
+ |
#define $ac_func innocuous_$ac_func |
11583 |
|
|
11584 |
+ |
/* System header to define __stub macros and hopefully few prototypes, |
11585 |
+ |
which can conflict with char $ac_func (); below. |
11586 |
+ |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11587 |
+ |
<limits.h> exists even on freestanding compilers. */ |
11588 |
+ |
|
11589 |
+ |
#ifdef __STDC__ |
11590 |
+ |
# include <limits.h> |
11591 |
+ |
#else |
11592 |
+ |
# include <assert.h> |
11593 |
+ |
#endif |
11594 |
+ |
|
11595 |
+ |
#undef $ac_func |
11596 |
+ |
|
11597 |
|
/* Override any GCC internal prototype to avoid an error. |
11598 |
|
Use char because int might match the return type of a GCC |
11599 |
|
builtin and then its argument prototype would still apply. */ |
11600 |
|
#ifdef __cplusplus |
11601 |
|
extern "C" |
11602 |
|
#endif |
11603 |
< |
char MPI_Init (); |
11603 |
> |
char $ac_func (); |
11604 |
> |
/* The GNU C library defines this for functions which it implements |
11605 |
> |
to always fail with ENOSYS. Some functions are actually named |
11606 |
> |
something starting with __ and the normal name is an alias. */ |
11607 |
> |
#if defined __stub_$ac_func || defined __stub___$ac_func |
11608 |
> |
choke me |
11609 |
> |
#endif |
11610 |
> |
|
11611 |
|
#ifdef FC_DUMMY_MAIN |
11612 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11613 |
|
# ifdef __cplusplus |
11619 |
|
int |
11620 |
|
main () |
11621 |
|
{ |
11622 |
< |
return MPI_Init (); |
11622 |
> |
return $ac_func (); |
11623 |
|
; |
11624 |
|
return 0; |
11625 |
|
} |
11642 |
|
test ! -s conftest.err |
11643 |
|
} && test -s conftest$ac_exeext && |
11644 |
|
$as_test_x conftest$ac_exeext; then |
11645 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
11645 |
> |
eval "$as_ac_var=yes" |
11646 |
|
else |
11647 |
|
echo "$as_me: failed program was:" >&5 |
11648 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11649 |
|
|
11650 |
< |
ac_cv_lib_mpi_MPI_Init=no |
11650 |
> |
eval "$as_ac_var=no" |
11651 |
|
fi |
11652 |
|
|
11653 |
|
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11654 |
|
conftest$ac_exeext conftest.$ac_ext |
15402 |
– |
LIBS=$ac_check_lib_save_LIBS |
11655 |
|
fi |
11656 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
11657 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; } |
11658 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
11659 |
< |
MPI_LIB="-lmpi -llam" |
11660 |
< |
fi |
11656 |
> |
ac_res=`eval echo '${'$as_ac_var'}'` |
11657 |
> |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11658 |
> |
echo "${ECHO_T}$ac_res" >&6; } |
11659 |
> |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
11660 |
> |
cat >>confdefs.h <<_ACEOF |
11661 |
> |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
11662 |
> |
_ACEOF |
11663 |
|
|
11664 |
|
fi |
11665 |
< |
$as_unset ac_cv_lib_mpi_MPI_Init |
11666 |
< |
if test x = x"$MPI_LIB"; then |
11667 |
< |
{ echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
11668 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; } |
11669 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
11670 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11671 |
< |
else |
15418 |
< |
ac_check_lib_save_LIBS=$LIBS |
15419 |
< |
LIBS="-lmpi -llam -lpthread $LIBS" |
11665 |
> |
done |
11666 |
> |
|
11667 |
> |
|
11668 |
> |
# special check for _system_configuration because AIX <4.3.2 do not |
11669 |
> |
# contain the `physmem' member. |
11670 |
> |
{ echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 |
11671 |
> |
echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; } |
11672 |
|
cat >conftest.$ac_ext <<_ACEOF |
11673 |
|
/* confdefs.h. */ |
11674 |
|
_ACEOF |
11675 |
|
cat confdefs.h >>conftest.$ac_ext |
11676 |
|
cat >>conftest.$ac_ext <<_ACEOF |
11677 |
|
/* end confdefs.h. */ |
11678 |
< |
|
15427 |
< |
/* Override any GCC internal prototype to avoid an error. |
15428 |
< |
Use char because int might match the return type of a GCC |
15429 |
< |
builtin and then its argument prototype would still apply. */ |
15430 |
< |
#ifdef __cplusplus |
15431 |
< |
extern "C" |
15432 |
< |
#endif |
15433 |
< |
char MPI_Init (); |
11678 |
> |
#include <sys/systemcfg.h> |
11679 |
|
#ifdef FC_DUMMY_MAIN |
11680 |
|
#ifndef FC_DUMMY_MAIN_EQ_F77 |
11681 |
|
# ifdef __cplusplus |
11687 |
|
int |
11688 |
|
main () |
11689 |
|
{ |
11690 |
< |
return MPI_Init (); |
11690 |
> |
double x = _system_configuration.physmem; |
11691 |
|
; |
11692 |
|
return 0; |
11693 |
|
} |
11694 |
|
_ACEOF |
11695 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
11696 |
< |
if { (ac_try="$ac_link" |
11695 |
> |
rm -f conftest.$ac_objext |
11696 |
> |
if { (ac_try="$ac_compile" |
11697 |
|
case "(($ac_try" in |
11698 |
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11699 |
|
*) ac_try_echo=$ac_try;; |
11700 |
|
esac |
11701 |
|
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11702 |
< |
(eval "$ac_link") 2>conftest.er1 |
11702 |
> |
(eval "$ac_compile") 2>conftest.er1 |
11703 |
|
ac_status=$? |
11704 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
11705 |
|
rm -f conftest.er1 |
11708 |
|
(exit $ac_status); } && { |
11709 |
|
test -z "$ac_c_werror_flag" || |
11710 |
|
test ! -s conftest.err |
11711 |
< |
} && test -s conftest$ac_exeext && |
11712 |
< |
$as_test_x conftest$ac_exeext; then |
11713 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
11711 |
> |
} && test -s conftest.$ac_objext; then |
11712 |
> |
{ echo "$as_me:$LINENO: result: yes" >&5 |
11713 |
> |
echo "${ECHO_T}yes" >&6; } |
11714 |
> |
|
11715 |
> |
cat >>confdefs.h <<\_ACEOF |
11716 |
> |
#define HAVE__SYSTEM_CONFIGURATION 1 |
11717 |
> |
_ACEOF |
11718 |
> |
|
11719 |
|
else |
11720 |
|
echo "$as_me: failed program was:" >&5 |
11721 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
11722 |
|
|
11723 |
< |
ac_cv_lib_mpi_MPI_Init=no |
11723 |
> |
{ echo "$as_me:$LINENO: result: no" >&5 |
11724 |
> |
echo "${ECHO_T}no" >&6; } |
11725 |
|
fi |
11726 |
|
|
11727 |
< |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11728 |
< |
conftest$ac_exeext conftest.$ac_ext |
11729 |
< |
LIBS=$ac_check_lib_save_LIBS |
11727 |
> |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11728 |
> |
|
11729 |
> |
|
11730 |
> |
case $debug in |
11731 |
> |
1) |
11732 |
> |
;; |
11733 |
> |
*) |
11734 |
> |
|
11735 |
> |
|
11736 |
> |
|
11737 |
> |
|
11738 |
> |
|
11739 |
> |
# Try to determine "good" native compiler flags if none specified on command |
11740 |
> |
# line |
11741 |
> |
|
11742 |
> |
if test "$ac_test_FFLAGS" != "set"; then |
11743 |
> |
FCFLAGS="" |
11744 |
> |
case "${host_cpu}-${host_os}" in |
11745 |
> |
|
11746 |
> |
*linux*) if test "$FC" = ifc -o "$FC" = ifort; then |
11747 |
> |
FCFLAGS="-O2" |
11748 |
> |
fi;; |
11749 |
> |
rs6000*-aix*) if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then |
11750 |
> |
FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
11751 |
> |
fi;; |
11752 |
> |
powerpc*-aix*) |
11753 |
> |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
11754 |
> |
FCFLAGS="-O3 -qarch=ppc -qansialias -w" |
11755 |
> |
echo "*******************************************************" |
11756 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
11757 |
> |
echo "* recommended that you use *" |
11758 |
> |
echo "* *" |
11759 |
> |
echo "* FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
11760 |
> |
echo "* ^^^ *" |
11761 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
11762 |
> |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
11763 |
> |
echo "*******************************************************" |
11764 |
> |
fi;; |
11765 |
> |
*darwin*) |
11766 |
> |
if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then |
11767 |
> |
FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto" |
11768 |
> |
fi |
11769 |
> |
if test "$FC" = ifort; then |
11770 |
> |
FCFLAGS="-O2" |
11771 |
> |
fi |
11772 |
> |
if test "$FC" = gfortran; then |
11773 |
> |
FCFLAGS="-Os" |
11774 |
> |
fi;; |
11775 |
> |
esac |
11776 |
> |
|
11777 |
> |
if test -z "$FCFLAGS"; then |
11778 |
> |
echo "" |
11779 |
> |
echo "*********************************************************" |
11780 |
> |
echo "* WARNING: Don't know the best FCFLAGS for this system *" |
11781 |
> |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
11782 |
> |
echo "* (otherwise, a default of FCFLAGS=-O will be used) *" |
11783 |
> |
echo "*********************************************************" |
11784 |
> |
echo "" |
11785 |
> |
FCFLAGS="-O" |
11786 |
> |
fi |
11787 |
> |
|
11788 |
> |
|
11789 |
> |
{ echo "$as_me:$LINENO: checking whether ${FC} accepts ${FCFLAGS}" >&5 |
11790 |
> |
echo $ECHO_N "checking whether ${FC} accepts ${FCFLAGS}... $ECHO_C" >&6; } |
11791 |
> |
if test "${ac_guessed_f90flags+set}" = set; then |
11792 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11793 |
> |
else |
11794 |
> |
|
11795 |
> |
|
11796 |
> |
ac_ext=${ac_fc_srcext-f} |
11797 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
11798 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
11799 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
11800 |
> |
|
11801 |
> |
echo 'program main' > conftest.$ac_ext |
11802 |
> |
echo 'end program main' >> conftest.$ac_ext |
11803 |
> |
ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5' |
11804 |
> |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11805 |
> |
(eval $ac_compile) 2>&5 |
11806 |
> |
ac_status=$? |
11807 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11808 |
> |
(exit $ac_status); }; then |
11809 |
> |
ac_guessed_f90flags=yes |
11810 |
> |
else |
11811 |
> |
ac_guessed_f90flags=no |
11812 |
|
fi |
11813 |
< |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
11814 |
< |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; } |
11815 |
< |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
11816 |
< |
MPI_LIB="-lmpi -llam -lpthread" |
11813 |
> |
rm -f conftest* |
11814 |
> |
ac_ext=c |
11815 |
> |
ac_cpp='$CPP $CPPFLAGS' |
11816 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11817 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11818 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
11819 |
> |
|
11820 |
> |
|
11821 |
> |
fi |
11822 |
> |
{ echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5 |
11823 |
> |
echo "${ECHO_T}$ac_guessed_f90flags" >&6; } |
11824 |
> |
if test "$ac_guessed_f90flags" = yes; then |
11825 |
> |
: |
11826 |
> |
|
11827 |
|
else |
11828 |
+ |
: |
11829 |
|
|
11830 |
< |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
11831 |
< |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
11832 |
< |
{ (exit 1); exit 1; }; } |
11833 |
< |
USE_MPI="no" |
11830 |
> |
echo "" |
11831 |
> |
echo "**********************************************************" |
11832 |
> |
echo "* WARNING: The guessed FCFLAGS don't seem to work with *" |
11833 |
> |
echo "* your compiler. *" |
11834 |
> |
echo "* Use make FCFLAGS=..., or edit the top level Makefile *" |
11835 |
> |
echo "*********************************************************" |
11836 |
> |
echo "" |
11837 |
> |
FCFLAGS="" |
11838 |
|
|
11839 |
|
fi |
11840 |
|
|
11841 |
+ |
|
11842 |
|
fi |
11843 |
|
|
11844 |
|
|
11845 |
|
|
11846 |
< |
{ echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
11847 |
< |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6; } |
11848 |
< |
MPI_F90_LIB="" |
11849 |
< |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
11850 |
< |
MPI_F90_LIB="-lfmpich" |
11851 |
< |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
11852 |
< |
MPI_F90_LIB="-llamf77mpi" |
11846 |
> |
|
11847 |
> |
|
11848 |
> |
|
11849 |
> |
|
11850 |
> |
{ echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
11851 |
> |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6; } |
11852 |
> |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
11853 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11854 |
|
else |
11855 |
< |
MPI_F90_LIB=" " |
11855 |
> |
|
11856 |
> |
cat > conftest.c <<EOF |
11857 |
> |
#ifdef __GNUC__ |
11858 |
> |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
11859 |
> |
no; |
11860 |
> |
#else |
11861 |
> |
yes; |
11862 |
> |
#endif |
11863 |
> |
#endif |
11864 |
> |
EOF |
11865 |
> |
if { ac_try='${CC-cc} -E conftest.c' |
11866 |
> |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11867 |
> |
(eval $ac_try) 2>&5 |
11868 |
> |
ac_status=$? |
11869 |
> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11870 |
> |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
11871 |
> |
ac_cv_prog_really_gcc=yes |
11872 |
> |
else |
11873 |
> |
ac_cv_prog_really_gcc=no |
11874 |
|
fi |
11875 |
< |
{ echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
11876 |
< |
echo "${ECHO_T}found $MPI_F90_LIB" >&6; } |
11875 |
> |
|
11876 |
> |
fi |
11877 |
> |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
11878 |
> |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6; } |
11879 |
> |
if test "$ac_cv_prog_really_gcc" = yes; then |
11880 |
> |
: |
11881 |
> |
|
11882 |
> |
else |
11883 |
> |
: |
11884 |
> |
|
11885 |
> |
fi |
11886 |
> |
|
11887 |
> |
|
11888 |
> |
# Try to determine "good" native compiler flags if none specified on command |
11889 |
> |
# line |
11890 |
> |
if test "$ac_test_CFLAGS" != "set"; then |
11891 |
> |
CFLAGS="" |
11892 |
> |
case "${host_cpu}-${host_os}" in |
11893 |
> |
|
11894 |
> |
*linux*) if test "$CC" = icc; then |
11895 |
> |
CFLAGS="-O2" |
11896 |
> |
fi;; |
11897 |
> |
sparc-solaris2*) if test "$CC" = cc; then |
11898 |
> |
CFLAGS="-O -dalign" |
11899 |
> |
fi;; |
11900 |
> |
|
11901 |
> |
alpha*-osf*) if test "$CC" = cc; then |
11902 |
> |
CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1" |
11903 |
> |
fi;; |
11904 |
> |
|
11905 |
> |
hppa*-hpux*) if test "$CC" = cc; then |
11906 |
> |
CFLAGS="-Ae +O3 +Oall" |
11907 |
> |
fi;; |
11908 |
> |
|
11909 |
> |
rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then |
11910 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
11911 |
> |
fi;; |
11912 |
> |
powerpc*-aix*) |
11913 |
> |
if test "$CC" = cc -o "$CC" = xlc; then |
11914 |
> |
CFLAGS="-O3 -qtune=auto -qansialias -w" |
11915 |
> |
echo "*******************************************************" |
11916 |
> |
echo "* You have AIX on an unknown powerpc system. It is *" |
11917 |
> |
echo "* recommended that you use *" |
11918 |
> |
echo "* *" |
11919 |
> |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
11920 |
> |
echo "* ^^^ *" |
11921 |
> |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
11922 |
> |
echo "* PowerPC CPU you have. For more info, man cc. *" |
11923 |
> |
echo "*******************************************************" |
11924 |
> |
fi;; |
11925 |
> |
*darwin*) |
11926 |
> |
if test "$CC" = xlc; then |
11927 |
> |
CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
11928 |
> |
fi |
11929 |
> |
if test "$CC" = icc; then |
11930 |
> |
CFLAGS="-O2" |
11931 |
> |
fi |
11932 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
11933 |
> |
CFLAGS="-Os" |
11934 |
> |
fi;; |
11935 |
> |
esac |
11936 |
> |
|
11937 |
> |
# use default flags for gcc on all systems |
11938 |
> |
if test $ac_cv_prog_really_gcc = yes -a -z "$CFLAGS"; then |
11939 |
> |
CFLAGS="-O2" |
11940 |
> |
fi |
11941 |
> |
|
11942 |
> |
if test -z "$CFLAGS"; then |
11943 |
> |
echo "" |
11944 |
> |
echo "********************************************************" |
11945 |
> |
echo "* WARNING: Don't know the best CFLAGS for this system *" |
11946 |
> |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
11947 |
> |
echo "* (otherwise, a default of CFLAGS=-O will be used) *" |
11948 |
> |
echo "********************************************************" |
11949 |
> |
echo "" |
11950 |
> |
CFLAGS="-O" |
11951 |
> |
fi |
11952 |
> |
|
11953 |
> |
|
11954 |
> |
|
11955 |
> |
{ echo "$as_me:$LINENO: checking whether ${CC} accepts ${CFLAGS}" >&5 |
11956 |
> |
echo $ECHO_N "checking whether ${CC} accepts ${CFLAGS}... $ECHO_C" >&6; } |
11957 |
> |
if test "${ac_guessed_cflags+set}" = set; then |
11958 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11959 |
> |
else |
11960 |
> |
echo 'void f(){}' > conftest.c |
11961 |
> |
if test -z "`${CC} ${CFLAGS} -c conftest.c 2>&1`"; then |
11962 |
> |
ac_guessed_cflags=yes |
11963 |
> |
else |
11964 |
> |
ac_guessed_cflags=no |
11965 |
> |
fi |
11966 |
> |
rm -f conftest* |
11967 |
> |
|
11968 |
> |
fi |
11969 |
> |
{ echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5 |
11970 |
> |
echo "${ECHO_T}$ac_guessed_cflags" >&6; } |
11971 |
> |
if test "$ac_guessed_cflags" = yes; then |
11972 |
> |
: |
11973 |
|
|
11974 |
+ |
else |
11975 |
+ |
: |
11976 |
|
|
11977 |
+ |
echo "" |
11978 |
+ |
echo "********************************************************" |
11979 |
+ |
echo "* WARNING: The guessed CFLAGS don't seem to work with *" |
11980 |
+ |
echo "* your compiler. *" |
11981 |
+ |
echo "* Use make CFLAGS=..., or edit the top level Makefile *" |
11982 |
+ |
echo "********************************************************" |
11983 |
+ |
echo "" |
11984 |
+ |
CFLAGS="" |
11985 |
+ |
|
11986 |
|
fi |
11987 |
|
|
11988 |
|
|
11989 |
+ |
fi |
11990 |
|
|
11991 |
+ |
|
11992 |
+ |
|
11993 |
+ |
|
11994 |
+ |
|
11995 |
+ |
|
11996 |
+ |
|
11997 |
+ |
{ echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
11998 |
+ |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6; } |
11999 |
+ |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
12000 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12001 |
+ |
else |
12002 |
+ |
|
12003 |
+ |
cat > conftest.cpp <<EOF |
12004 |
+ |
#ifdef __GNUC__ |
12005 |
+ |
#if defined(__INTEL_COMPILER) || defined(__PATHCC__) |
12006 |
+ |
no; |
12007 |
+ |
#else |
12008 |
+ |
yes; |
12009 |
+ |
#endif |
12010 |
+ |
#endif |
12011 |
+ |
EOF |
12012 |
+ |
if { ac_try='${CXX-c++} -E conftest.cpp' |
12013 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12014 |
+ |
(eval $ac_try) 2>&5 |
12015 |
+ |
ac_status=$? |
12016 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12017 |
+ |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
12018 |
+ |
ac_cv_prog_really_gxx=yes |
12019 |
+ |
else |
12020 |
+ |
ac_cv_prog_really_gxx=no |
12021 |
+ |
fi |
12022 |
+ |
|
12023 |
+ |
fi |
12024 |
+ |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
12025 |
+ |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6; } |
12026 |
+ |
if test "$ac_cv_prog_really_gxx" = yes; then |
12027 |
+ |
: |
12028 |
+ |
|
12029 |
+ |
else |
12030 |
+ |
: |
12031 |
+ |
|
12032 |
+ |
fi |
12033 |
+ |
|
12034 |
+ |
|
12035 |
+ |
# Try to determine "good" native compiler flags if none specified on command |
12036 |
+ |
# line |
12037 |
+ |
if test "$ac_test_CXXFLAGS" != "set"; then |
12038 |
+ |
CXXFLAGS="" |
12039 |
+ |
case "${host_cpu}-${host_os}" in |
12040 |
+ |
|
12041 |
+ |
*linux*) if test "$CXX" = icc -o "$CXX" = icpc; then |
12042 |
+ |
CXXFLAGS="-O2" |
12043 |
+ |
fi;; |
12044 |
+ |
sparc-solaris2*) if test "$CXX" = CC; then |
12045 |
+ |
CXXFLAGS="-features=extensions -O -dalign" |
12046 |
+ |
fi;; |
12047 |
+ |
rs6000*-aix*) if test "$CXX" = xlC; then |
12048 |
+ |
CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w" |
12049 |
+ |
fi;; |
12050 |
+ |
powerpc*-aix*) |
12051 |
+ |
if test "$CXX" = xlC; then |
12052 |
+ |
CXXFLAGS="-O3 -qarch=ppc -qansialias -w" |
12053 |
+ |
echo "*******************************************************" |
12054 |
+ |
echo "* You have AIX on an unknown powerpc system. It is *" |
12055 |
+ |
echo "* recommended that you use *" |
12056 |
+ |
echo "* *" |
12057 |
+ |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
12058 |
+ |
echo "* ^^^ *" |
12059 |
+ |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
12060 |
+ |
echo "* PowerPC CPU you have. For more info, man cc. *" |
12061 |
+ |
echo "*******************************************************" |
12062 |
+ |
fi;; |
12063 |
+ |
*darwin*) |
12064 |
+ |
if test "$CXX" = xlc++ -o "$CXX" = xlC ; then |
12065 |
+ |
CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
12066 |
+ |
fi |
12067 |
+ |
if test "$CXX" = icpc; then |
12068 |
+ |
CXXFLAGS="-O2" |
12069 |
+ |
fi |
12070 |
+ |
if test $ac_cv_prog_really_gxx = yes; then |
12071 |
+ |
CXXFLAGS="-Os" |
12072 |
+ |
fi;; |
12073 |
+ |
esac |
12074 |
+ |
|
12075 |
+ |
# use default flags for gcc on all systems |
12076 |
+ |
if test $ac_cv_prog_really_gxx = yes -a -z "$CXXFLAGS"; then |
12077 |
+ |
CXXFLAGS="-O2" |
12078 |
+ |
fi |
12079 |
+ |
|
12080 |
+ |
if test -z "$CXXFLAGS"; then |
12081 |
+ |
echo "" |
12082 |
+ |
echo "**********************************************************" |
12083 |
+ |
echo "* WARNING: Don't know the best CXXFLAGS for this system *" |
12084 |
+ |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
12085 |
+ |
echo "* (otherwise, a default of CXXFLAGS=-O will be used) *" |
12086 |
+ |
echo "**********************************************************" |
12087 |
+ |
echo "" |
12088 |
+ |
CXXFLAGS="-O" |
12089 |
+ |
fi |
12090 |
+ |
|
12091 |
+ |
|
12092 |
+ |
|
12093 |
+ |
{ echo "$as_me:$LINENO: checking whether ${CXX} accepts ${CXXFLAGS}" >&5 |
12094 |
+ |
echo $ECHO_N "checking whether ${CXX} accepts ${CXXFLAGS}... $ECHO_C" >&6; } |
12095 |
+ |
if test "${ac_guessed_cxxflags+set}" = set; then |
12096 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12097 |
+ |
else |
12098 |
+ |
echo 'void f(){}' > conftest.cpp |
12099 |
+ |
if test -z "`${CXX} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then |
12100 |
+ |
ac_guessed_cxxflags=yes |
12101 |
+ |
else |
12102 |
+ |
ac_guessed_cxxflags=no |
12103 |
+ |
fi |
12104 |
+ |
rm -f conftest* |
12105 |
+ |
|
12106 |
+ |
fi |
12107 |
+ |
{ echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5 |
12108 |
+ |
echo "${ECHO_T}$ac_guessed_cxxflags" >&6; } |
12109 |
+ |
if test "$ac_guessed_cxxflags" = yes; then |
12110 |
+ |
: |
12111 |
+ |
|
12112 |
+ |
else |
12113 |
+ |
: |
12114 |
+ |
|
12115 |
+ |
echo "" |
12116 |
+ |
echo "**********************************************************" |
12117 |
+ |
echo "* WARNING: The guessed CXXFLAGS don't seem to work with *" |
12118 |
+ |
echo "* your compiler. *" |
12119 |
+ |
echo "* Use make CXXFLAGS=..., or edit the top level Makefile *" |
12120 |
+ |
echo "**********************************************************" |
12121 |
+ |
echo "" |
12122 |
+ |
CXXFLAGS="" |
12123 |
+ |
|
12124 |
+ |
fi |
12125 |
+ |
|
12126 |
+ |
|
12127 |
+ |
fi |
12128 |
+ |
|
12129 |
+ |
;; |
12130 |
+ |
esac |
12131 |
+ |
|
12132 |
+ |
|
12133 |
|
acx_cgal_found=no |
12134 |
|
|
12135 |
|
# Check whether --with-cgalmakefile was given. |
12942 |
|
|
12943 |
|
|
12944 |
|
|
12945 |
< |
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/applications/atom2md/Makefile scripts/filepp" |
12945 |
> |
ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp" |
12946 |
|
|
12947 |
|
|
12948 |
|
cat >confcache <<\_ACEOF |
13359 |
|
# Files that config.status was made for. |
13360 |
|
config_files="$ac_config_files" |
13361 |
|
config_headers="$ac_config_headers" |
16744 |
– |
config_links="$ac_config_links" |
13362 |
|
|
13363 |
|
_ACEOF |
13364 |
|
|
13385 |
|
Configuration headers: |
13386 |
|
$config_headers |
13387 |
|
|
16771 |
– |
Configuration links: |
16772 |
– |
$config_links |
16773 |
– |
|
13388 |
|
Report bugs to <bug-autoconf@gnu.org>." |
13389 |
|
|
13390 |
|
_ACEOF |
13499 |
|
do |
13500 |
|
case $ac_config_target in |
13501 |
|
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
16888 |
– |
"src/getopt.h") CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;; |
13502 |
|
"make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;; |
13503 |
|
"src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;; |
13504 |
|
"src/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;; |
13505 |
+ |
"src/integrators/Makefile") CONFIG_FILES="$CONFIG_FILES src/integrators/Makefile" ;; |
13506 |
|
"src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;; |
13507 |
|
"scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;; |
13508 |
|
|
13520 |
|
if $ac_need_defaults; then |
13521 |
|
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
13522 |
|
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
16909 |
– |
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
13523 |
|
fi |
13524 |
|
|
13525 |
|
# Have a temporary directory for convenience. Make it in the build tree |
13614 |
|
PROGNAME!$PROGNAME$ac_delim |
13615 |
|
debug!$debug$ac_delim |
13616 |
|
USE_SINGLE_PRECISION!$USE_SINGLE_PRECISION$ac_delim |
13617 |
+ |
ac_cc_set!$ac_cc_set$ac_delim |
13618 |
+ |
ac_cc_path!$ac_cc_path$ac_delim |
13619 |
+ |
ac_cxx_set!$ac_cxx_set$ac_delim |
13620 |
+ |
ac_cxx_path!$ac_cxx_path$ac_delim |
13621 |
+ |
ac_fc_set!$ac_fc_set$ac_delim |
13622 |
+ |
ac_fc_path!$ac_fc_path$ac_delim |
13623 |
+ |
acx_mpi_mpicc!$acx_mpi_mpicc$ac_delim |
13624 |
+ |
acx_mpi_mpicc_path!$acx_mpi_mpicc_path$ac_delim |
13625 |
+ |
acx_mpi_mpif90!$acx_mpi_mpif90$ac_delim |
13626 |
+ |
acx_mpi_mpif90_path!$acx_mpi_mpif90_path$ac_delim |
13627 |
+ |
acx_mpi_mpicxx!$acx_mpi_mpicxx$ac_delim |
13628 |
+ |
acx_mpi_mpicxx_path!$acx_mpi_mpicxx_path$ac_delim |
13629 |
+ |
MPI_CPPFLAGS!$MPI_CPPFLAGS$ac_delim |
13630 |
+ |
MPI_LIBS!$MPI_LIBS$ac_delim |
13631 |
+ |
MPI90_LIBS!$MPI90_LIBS$ac_delim |
13632 |
+ |
USE_MPI!$USE_MPI$ac_delim |
13633 |
|
CXX!$CXX$ac_delim |
13634 |
|
CXXFLAGS!$CXXFLAGS$ac_delim |
13635 |
|
LDFLAGS!$LDFLAGS$ac_delim |
13649 |
|
LN_S!$LN_S$ac_delim |
13650 |
|
SET_MAKE!$SET_MAKE$ac_delim |
13651 |
|
RANLIB!$RANLIB$ac_delim |
17023 |
– |
YACC!$YACC$ac_delim |
17024 |
– |
YFLAGS!$YFLAGS$ac_delim |
17025 |
– |
LEX!$LEX$ac_delim |
17026 |
– |
LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
17027 |
– |
LEXLIB!$LEXLIB$ac_delim |
13652 |
|
PERLINTERP!$PERLINTERP$ac_delim |
13653 |
|
PERL_SHEBANG!$PERL_SHEBANG$ac_delim |
13654 |
|
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
13663 |
|
FC_FUNC!$FC_FUNC$ac_delim |
13664 |
|
FC_FUNC_!$FC_FUNC_$ac_delim |
13665 |
|
MOD!$MOD$ac_delim |
17042 |
– |
F90_WORK_FILES_ARG!$F90_WORK_FILES_ARG$ac_delim |
17043 |
– |
MODDIRFLAG!$MODDIRFLAG$ac_delim |
17044 |
– |
F90MODINCSPEC!$F90MODINCSPEC$ac_delim |
17045 |
– |
F90_MODULE_NAMES!$F90_MODULE_NAMES$ac_delim |
17046 |
– |
ZLIB_INC_DIR!$ZLIB_INC_DIR$ac_delim |
17047 |
– |
ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim |
17048 |
– |
ZLIB!$ZLIB$ac_delim |
17049 |
– |
FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim |
17050 |
– |
FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim |
17051 |
– |
FFTW_LIBS!$FFTW_LIBS$ac_delim |
17052 |
– |
QHULL_INC_DIR!$QHULL_INC_DIR$ac_delim |
13666 |
|
_ACEOF |
13667 |
|
|
13668 |
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
13704 |
|
ac_delim='%!_!# ' |
13705 |
|
for ac_last_try in false false false false false :; do |
13706 |
|
cat >conf$$subs.sed <<_ACEOF |
13707 |
+ |
F90_WORK_FILES_ARG!$F90_WORK_FILES_ARG$ac_delim |
13708 |
+ |
MODDIRFLAG!$MODDIRFLAG$ac_delim |
13709 |
+ |
F90MODINCSPEC!$F90MODINCSPEC$ac_delim |
13710 |
+ |
F90_MODULE_NAMES!$F90_MODULE_NAMES$ac_delim |
13711 |
+ |
ZLIB_INC_DIR!$ZLIB_INC_DIR$ac_delim |
13712 |
+ |
ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim |
13713 |
+ |
ZLIB!$ZLIB$ac_delim |
13714 |
+ |
FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim |
13715 |
+ |
FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim |
13716 |
+ |
FFTW_LIBS!$FFTW_LIBS$ac_delim |
13717 |
+ |
QHULL_INC_DIR!$QHULL_INC_DIR$ac_delim |
13718 |
|
QHULL_LIB_DIR!$QHULL_LIB_DIR$ac_delim |
13719 |
|
QHULL!$QHULL$ac_delim |
13720 |
|
USE_QHULL!$USE_QHULL$ac_delim |
13725 |
|
USE_OPENBABEL!$USE_OPENBABEL$ac_delim |
13726 |
|
LIBOBJS!$LIBOBJS$ac_delim |
13727 |
|
POW_LIB!$POW_LIB$ac_delim |
17104 |
– |
__func__!$__func__$ac_delim |
17105 |
– |
MPI_LIB_DIR!$MPI_LIB_DIR$ac_delim |
17106 |
– |
MPI_INC_DIR!$MPI_INC_DIR$ac_delim |
17107 |
– |
MPI_F90_INC!$MPI_F90_INC$ac_delim |
17108 |
– |
MPI_LIB!$MPI_LIB$ac_delim |
17109 |
– |
MPI_F90_LIB!$MPI_F90_LIB$ac_delim |
17110 |
– |
USE_MPI!$USE_MPI$ac_delim |
13728 |
|
CGAL_MAKEFILE!$CGAL_MAKEFILE$ac_delim |
13729 |
|
CGAL_CXXFLAGS!$CGAL_CXXFLAGS$ac_delim |
13730 |
|
CGAL_CPPFLAGS!$CGAL_CPPFLAGS$ac_delim |
13745 |
|
LTLIBOBJS!$LTLIBOBJS$ac_delim |
13746 |
|
_ACEOF |
13747 |
|
|
13748 |
< |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then |
13748 |
> |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then |
13749 |
|
break |
13750 |
|
elif $ac_last_try; then |
13751 |
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13802 |
|
fi # test -n "$CONFIG_FILES" |
13803 |
|
|
13804 |
|
|
13805 |
< |
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS |
13805 |
> |
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
13806 |
|
do |
13807 |
|
case $ac_tag in |
13808 |
|
:[FHLC]) ac_mode=$ac_tag; continue;; |
14140 |
|
fi |
14141 |
|
rm -f "$tmp/out12" |
14142 |
|
;; |
17526 |
– |
:L) |
17527 |
– |
# |
17528 |
– |
# CONFIG_LINK |
17529 |
– |
# |
17530 |
– |
|
17531 |
– |
{ echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5 |
17532 |
– |
echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;} |
17533 |
– |
|
17534 |
– |
if test ! -r "$srcdir/$ac_source"; then |
17535 |
– |
{ { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
17536 |
– |
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
17537 |
– |
{ (exit 1); exit 1; }; } |
17538 |
– |
fi |
17539 |
– |
rm -f "$ac_file" |
14143 |
|
|
17541 |
– |
# Try a relative symlink, then a hard link, then a copy. |
17542 |
– |
case $srcdir in |
17543 |
– |
[\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
17544 |
– |
*) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;; |
17545 |
– |
esac |
17546 |
– |
ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || |
17547 |
– |
ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null || |
17548 |
– |
cp -p "$srcdir/$ac_source" "$ac_file" || |
17549 |
– |
{ { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5 |
17550 |
– |
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;} |
17551 |
– |
{ (exit 1); exit 1; }; } |
17552 |
– |
;; |
14144 |
|
|
14145 |
|
esac |
14146 |
|
|
14149 |
|
"make/Makefile":F) chmod 0755 scripts/* ;; |
14150 |
|
"src/utils/Makefile":F) chmod 0755 scripts/* ;; |
14151 |
|
"src/math/Makefile":F) chmod 0755 scripts/* ;; |
14152 |
+ |
"src/integrators/Makefile":F) chmod 0755 scripts/* ;; |
14153 |
|
"src/applications/atom2md/Makefile":F) chmod 0755 scripts/* ;; |
14154 |
|
"scripts/filepp":F) chmod 0755 scripts/* ;; |
14155 |
|
|