1998-04-25 05:26:32 +08:00
|
|
|
# -*- shell-script -*-
|
|
|
|
#
|
|
|
|
# This file is part of the HDF5 build script. It is processed shortly
|
|
|
|
# after configure starts and defines, among other things, flags for
|
|
|
|
# the various compile modes.
|
1998-11-13 23:06:06 +08:00
|
|
|
#
|
|
|
|
# See BlankForm in this directory for details.
|
1998-04-25 05:26:32 +08:00
|
|
|
|
1999-07-11 07:15:49 +08:00
|
|
|
# This is for the ASCI RED TFLOPS machine
|
|
|
|
|
1998-11-13 23:06:06 +08:00
|
|
|
# The default compiler is `cicc'
|
2003-07-29 05:38:04 +08:00
|
|
|
if test "X-" = "X-$CC"; then
|
2003-10-29 12:26:30 +08:00
|
|
|
CC=cicc
|
|
|
|
CC_BASENAME=cicc
|
1998-11-13 23:06:06 +08:00
|
|
|
fi
|
1998-04-25 05:26:32 +08:00
|
|
|
|
1998-11-13 23:06:06 +08:00
|
|
|
# The default archiver is `xar'
|
1999-02-02 11:56:02 +08:00
|
|
|
AR=${AR:-xar}
|
1998-03-11 01:30:30 +08:00
|
|
|
|
1998-11-13 23:06:06 +08:00
|
|
|
# There is no ranlib
|
1998-04-25 05:26:32 +08:00
|
|
|
RANLIB=:
|
1998-11-13 23:06:06 +08:00
|
|
|
|
|
|
|
# Additional libraries
|
2002-02-18 23:25:43 +08:00
|
|
|
LIBS="$LIBS -lnoop_stubs"
|
1998-11-13 23:06:06 +08:00
|
|
|
|
|
|
|
# How to run serial and parallel test programs
|
2004-08-12 01:24:42 +08:00
|
|
|
# Default parallel tests can fit within 1 processor in -proc 3 mode.
|
|
|
|
# You may want to use -proc 3 to use fewer physical nodes.
|
|
|
|
RUNSERIAL=${RUNSERIAL:-"yod -sz 1"}
|
|
|
|
RUNPARALLEL=${RUNPARALLEL:-"yod -sz 8"}
|
1998-03-11 01:30:30 +08:00
|
|
|
|
2000-12-18 21:31:21 +08:00
|
|
|
# CFLAGS must be set else configure set it to -g
|
|
|
|
CFLAGS="$CFLAGS"
|
|
|
|
|
1998-04-25 05:26:32 +08:00
|
|
|
# What must *always* be present for things to compile correctly?
|
2005-08-18 02:35:29 +08:00
|
|
|
# -DH5_TFLOPS: for the Sandia Tflops machine. Had used the builtin
|
|
|
|
# __PUMAGON__ but H5_TFLOPS is more meaningful.
|
|
|
|
CPPFLAGS="$CPPFLAGS -DH5_TFLOPS"
|
1998-03-11 01:30:30 +08:00
|
|
|
|
1998-04-25 05:26:32 +08:00
|
|
|
# What compiler flags should be used for code development?
|
|
|
|
DEBUG_CFLAGS=-g
|
|
|
|
DEBUG_CPPFLAGS=
|
1998-03-11 01:30:30 +08:00
|
|
|
|
1998-04-25 05:26:32 +08:00
|
|
|
# What compiler flags should be used for building a production
|
|
|
|
# library?
|
|
|
|
PROD_CFLAGS=-O
|
|
|
|
PROD_CPPFLAGS=
|
1998-03-11 01:30:30 +08:00
|
|
|
|
1998-04-25 05:26:32 +08:00
|
|
|
# What compiler flags enable code profiling?
|
|
|
|
PROFILE_CFLAGS=-pg
|
|
|
|
PROFILE_CPPFLAGS=
|
1998-03-11 01:30:30 +08:00
|
|
|
|
1999-06-24 07:24:17 +08:00
|
|
|
# Turn off shared lib option. It does not work for TFLOPS yet.
|
|
|
|
enable_shared="${enable_shared:-no}"
|
1998-03-11 01:30:30 +08:00
|
|
|
|
2003-10-29 12:26:30 +08:00
|
|
|
# Disable stream-vfd option. It does not work for TFLOPS.
|
|
|
|
enable_stream_vfd="${enable_stream_vfd:-no}"
|
|
|
|
|
1998-04-25 05:26:32 +08:00
|
|
|
# Set this to the width required by printf() to print type `long
|
|
|
|
# long'. For instance, if the format would be `%lld' then set it to
|
|
|
|
# `ll' or if the format would be `%qd' set it to `q'.
|
1998-05-05 02:54:36 +08:00
|
|
|
hdf5_cv_printf_ll=${hdf5_cv_printf_ll='ll'}
|
1999-02-10 11:20:45 +08:00
|
|
|
|
2003-05-29 23:53:34 +08:00
|
|
|
# Cache the sizeof of the following types to save configure time.
|
|
|
|
# These are verified in test/tconfig in case they change.
|
|
|
|
ac_cv_type_char=${ac_cv_type_char=yes}
|
|
|
|
ac_cv_sizeof_char=${ac_cv_sizeof_char='1'}
|
|
|
|
ac_cv_type_short=${ac_cv_type_short=yes}
|
|
|
|
ac_cv_sizeof_short=${ac_cv_sizeof_short='2'}
|
|
|
|
ac_cv_type_int=${ac_cv_type_int=yes}
|
|
|
|
ac_cv_sizeof_int=${ac_cv_sizeof_int='4'}
|
|
|
|
ac_cv_type_long=${ac_cv_type_long=yes}
|
|
|
|
ac_cv_sizeof_long=${ac_cv_sizeof_long='4'}
|
|
|
|
ac_cv_type_float=${ac_cv_type_float=yes}
|
|
|
|
ac_cv_sizeof_float=${ac_cv_sizeof_float='4'}
|
|
|
|
ac_cv_type_double=${ac_cv_type_double=yes}
|
|
|
|
ac_cv_sizeof_double=${ac_cv_sizeof_double='8'}
|
|
|
|
ac_cv_type_long_double=${ac_cv_type_long_double=yes}
|
|
|
|
ac_cv_sizeof_long_double=${ac_cv_sizeof_long_double='8'}
|
|
|
|
ac_cv_type_long_long=${ac_cv_type_long_long=yes}
|
|
|
|
ac_cv_sizeof_long_long=${ac_cv_sizeof_long_long='8'}
|
|
|
|
ac_cv_type_size_t=${ac_cv_type_size_t=yes}
|
|
|
|
ac_cv_sizeof_size_t=${ac_cv_sizeof_size_t='4'}
|
|
|
|
ac_cv_type_ssize_t=${ac_cv_type_ssize_t=yes}
|
|
|
|
ac_cv_sizeof_ssize_t=${ac_cv_sizeof_ssize_t='4'}
|
|
|
|
ac_cv_type_off_t=${ac_cv_type_off_t=yes}
|
|
|
|
ac_cv_sizeof_off_t=${ac_cv_sizeof_off_t='4'}
|
|
|
|
|
2002-01-08 06:32:16 +08:00
|
|
|
# Hard set sizeof of the following types to 0 because they are not supported.
|
2003-05-29 23:53:34 +08:00
|
|
|
ac_cv_type___int64=${ac_cv_type___int64=no}
|
2002-01-08 06:32:16 +08:00
|
|
|
ac_cv_sizeof___int64=${ac_cv_sizeof___int64='0'}
|
|
|
|
|
2002-04-14 13:17:23 +08:00
|
|
|
# Hard set malloc of zero bytes to no because it does not work.
|
|
|
|
hdf5_cv_malloc_works=${hdf5_cv_malloc_works='no'}
|
|
|
|
|
1999-07-11 07:15:49 +08:00
|
|
|
# Hard set sizeof_intN_t to 0 because they are not supported.
|
2003-05-29 23:53:34 +08:00
|
|
|
ac_cv_type_int8_t=${ac_cv_type_int8_t=no}
|
|
|
|
ac_cv_type_int16_t=${ac_cv_type_int16_t=no}
|
|
|
|
ac_cv_type_int32_t=${ac_cv_type_int32_t=no}
|
|
|
|
ac_cv_type_int64_t=${ac_cv_type_int64_t=no}
|
|
|
|
ac_cv_type_uint8_t=${ac_cv_type_uint8_t=no}
|
|
|
|
ac_cv_type_uint16_t=${ac_cv_type_uint16_t=no}
|
|
|
|
ac_cv_type_uint32_t=${ac_cv_type_uint32_t=no}
|
|
|
|
ac_cv_type_uint64_t=${ac_cv_type_uint64_t=no}
|
1999-07-11 07:15:49 +08:00
|
|
|
ac_cv_sizeof_int8_t=${ac_cv_sizeof_int8_t='0'}
|
1999-02-10 11:20:45 +08:00
|
|
|
ac_cv_sizeof_int16_t=${ac_cv_sizeof_int16_t='0'}
|
|
|
|
ac_cv_sizeof_int32_t=${ac_cv_sizeof_int32_t='0'}
|
|
|
|
ac_cv_sizeof_int64_t=${ac_cv_sizeof_int64_t='0'}
|
1999-07-11 07:15:49 +08:00
|
|
|
ac_cv_sizeof_uint8_t=${ac_cv_sizeof_uint8_t='0'}
|
1999-02-10 11:20:45 +08:00
|
|
|
ac_cv_sizeof_uint16_t=${ac_cv_sizeof_uint16_t='0'}
|
|
|
|
ac_cv_sizeof_uint32_t=${ac_cv_sizeof_uint32_t='0'}
|
|
|
|
ac_cv_sizeof_uint64_t=${ac_cv_sizeof_uint64_t='0'}
|
1999-07-11 07:15:49 +08:00
|
|
|
|
|
|
|
# Hard set sizeof_int_leastN_t to 0 because they are not supported.
|
2003-05-29 23:53:34 +08:00
|
|
|
ac_cv_type_int_least8_t=${ac_cv_type_int_least8_t=no}
|
|
|
|
ac_cv_type_int_least16_t=${ac_cv_type_int_least16_t=no}
|
|
|
|
ac_cv_type_int_least32_t=${ac_cv_type_int_least32_t=no}
|
|
|
|
ac_cv_type_int_least64_t=${ac_cv_type_int_least64_t=no}
|
|
|
|
ac_cv_type_uint_least8_t=${ac_cv_type_uint_least8_t=no}
|
|
|
|
ac_cv_type_uint_least16_t=${ac_cv_type_uint_least16_t=no}
|
|
|
|
ac_cv_type_uint_least32_t=${ac_cv_type_uint_least32_t=no}
|
|
|
|
ac_cv_type_uint_least64_t=${ac_cv_type_uint_least64_t=no}
|
1999-07-11 07:15:49 +08:00
|
|
|
ac_cv_sizeof_int_least8_t=${ac_cv_sizeof_int_least8_t='0'}
|
|
|
|
ac_cv_sizeof_int_least16_t=${ac_cv_sizeof_int_least16_t='0'}
|
|
|
|
ac_cv_sizeof_int_least32_t=${ac_cv_sizeof_int_least32_t='0'}
|
|
|
|
ac_cv_sizeof_int_least64_t=${ac_cv_sizeof_int_least64_t='0'}
|
|
|
|
ac_cv_sizeof_uint_least8_t=${ac_cv_sizeof_uint_least8_t='0'}
|
|
|
|
ac_cv_sizeof_uint_least16_t=${ac_cv_sizeof_uint_least16_t='0'}
|
|
|
|
ac_cv_sizeof_uint_least32_t=${ac_cv_sizeof_uint_least32_t='0'}
|
|
|
|
ac_cv_sizeof_uint_least64_t=${ac_cv_sizeof_uint_least64_t='0'}
|
|
|
|
|
|
|
|
# Hard set sizeof_int_fastN_t to 0 because they are not supported.
|
2003-05-29 23:53:34 +08:00
|
|
|
ac_cv_type_int_fast8_t=${ac_cv_type_int_fast8_t=no}
|
|
|
|
ac_cv_type_int_fast16_t=${ac_cv_type_int_fast16_t=no}
|
|
|
|
ac_cv_type_int_fast32_t=${ac_cv_type_int_fast32_t=no}
|
|
|
|
ac_cv_type_int_fast64_t=${ac_cv_type_int_fast64_t=no}
|
|
|
|
ac_cv_type_uint_fast8_t=${ac_cv_type_uint_fast8_t=no}
|
|
|
|
ac_cv_type_uint_fast16_t=${ac_cv_type_uint_fast16_t=no}
|
|
|
|
ac_cv_type_uint_fast32_t=${ac_cv_type_uint_fast32_t=no}
|
|
|
|
ac_cv_type_uint_fast64_t=${ac_cv_type_uint_fast64_t=no}
|
1999-07-11 07:15:49 +08:00
|
|
|
ac_cv_sizeof_int_fast8_t=${ac_cv_sizeof_int_fast8_t='0'}
|
|
|
|
ac_cv_sizeof_int_fast16_t=${ac_cv_sizeof_int_fast16_t='0'}
|
|
|
|
ac_cv_sizeof_int_fast32_t=${ac_cv_sizeof_int_fast32_t='0'}
|
|
|
|
ac_cv_sizeof_int_fast64_t=${ac_cv_sizeof_int_fast64_t='0'}
|
|
|
|
ac_cv_sizeof_uint_fast8_t=${ac_cv_sizeof_uint_fast8_t='0'}
|
|
|
|
ac_cv_sizeof_uint_fast16_t=${ac_cv_sizeof_uint_fast16_t='0'}
|
|
|
|
ac_cv_sizeof_uint_fast32_t=${ac_cv_sizeof_uint_fast32_t='0'}
|
|
|
|
ac_cv_sizeof_uint_fast64_t=${ac_cv_sizeof_uint_fast64_t='0'}
|
|
|
|
|
2003-05-12 14:11:05 +08:00
|
|
|
hdf5_cv_system_scope_threads=${hdf5_cv_system_scope_threads="no"}
|
2003-09-17 01:33:00 +08:00
|
|
|
|
|
|
|
# Hard set MPI_File_set_size() working for files over 2GB to no
|
|
|
|
hdf5_cv_mpi_file_set_size_big=${hdf5_cv_mpi_file_set_size_big='no'}
|
|
|
|
|
2004-12-07 22:06:06 +08:00
|
|
|
# Hard set variables for v1.7 and higher.
|
2004-08-12 01:24:42 +08:00
|
|
|
# Set gettimeofday_tz to yes.
|
|
|
|
hdf5_cv_gettimeofday_tz=${hdf5_cv_gettimeofday_tz='yes'}
|
2005-03-22 05:51:52 +08:00
|
|
|
hdf5_cv_convert_denormal_float=${hdf5_cv_convert_denormal_float='no'}
|
2004-12-07 22:06:06 +08:00
|
|
|
hdf5_cv_fp_to_ullong_bottom_bit_works=${hdf5_cv_fp_to_ullong_bottom_bit_works='no'}
|
|
|
|
hdf5_cv_fp_to_ullong_right_maximum=${hdf5_cv_fp_to_ullong_right_maximum='yes'}
|
2005-03-22 05:51:52 +08:00
|
|
|
hdf5_cv_ldouble_to_uint_works=${hdf5_cv_ldouble_to_uint_works='yes'}
|
|
|
|
hdf5_cv_sw_ldouble_to_integer_works=${hdf5_cv_sw_ldouble_to_integer_works='yes'}
|
2004-12-07 22:06:06 +08:00
|
|
|
hdf5_cv_sw_ulong_to_fp_bottom_bit_works=${hdf5_cv_sw_ulong_to_fp_bottom_bit_works='no'}
|
2005-03-22 05:51:52 +08:00
|
|
|
hdf5_cv_ullong_to_fp_cast_works=${hdf5_cv_ullong_to_fp_cast_works='yes'}
|
|
|
|
hdf5_cv_ullong_to_ldouble_precision_works=${hdf5_cv_ullong_to_ldouble_precision_works='yes'}
|
2005-08-18 02:35:29 +08:00
|
|
|
hdf5_cv_fp_to_integer_overflow_works=${hdf5_cv_fp_to_integer_overflow_works='yes'}
|