summaryrefslogtreecommitdiffstats
path: root/config/solaris2.5
blob: 74561c223376f94dc9df53554444f85b17b4316a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#							-*- 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.


#----------------------------------------------------------------------------
# Compiler flags. The CPPFLAGS values should not include package debug
# flags like `-DH5G_DEBUG' since these are added with the
# `--enable-debug' switch of configure.

# We use gcc unless something else is specified.
CC=${CC:-gcc}

case $CC in
    *gcc*)
	CFLAGS="$CFLAGS -ansi"
	DEBUG_CFLAGS="-g -fverbose-asm"
	DEBUG_CPPFLAGS="-DH5F_LOW_DFLT=H5F_LOW_SEC2"
	PROD_CFLAGS="-O3 -finline-functions"
	PROD_CPPFLAGS=
	PROFILE_CFLAGS=-pg
	PROFILE_CPPFLAGS=
	;;

    *)
	CFLAGS="-erroff=%none"
	DEBUG_CFLAGS=-g
	DEBUG_CPPFLAGS="-DH5F_LOW_DFLT=H5F_LOW_SEC2"
	PROD_CFLAGS=-xO2
	PROD_CPPFLAGS=
	PROFILE_CFLAGS=-xpg
	PROFILE_CPPFLAGS=
	;;
esac

#----------------------------------------------------------------------------
# Values for overriding configuration tests when cross compiling.
# This includes compiling on some machines where the serial front end
# compiles for a parallel back end.

# Set this to `yes' or `no' depending on whether the target is big
# endian or little endian.
#ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}