100 |
CPP="cpp -traditional -P" |
CPP="cpp -traditional -P" |
101 |
fi |
fi |
102 |
|
|
103 |
# makedepend is not always available |
# The "original" makedepend is part of the Imake system that is |
104 |
|
# most often distributed with XFree86 or with an XFree86 source |
105 |
|
# package. As a result, many machines (eg. generic Linux) do not |
106 |
|
# have a system-default "makedepend" available. For those |
107 |
|
# systems, we have two fall-back options: |
108 |
|
# |
109 |
|
# 1) a makedepend implementation shipped with the cyrus-imapd |
110 |
|
# package: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ |
111 |
|
# |
112 |
|
# 2) a known-buggy xmakedpend shell script |
113 |
|
# |
114 |
|
# So the choices are, in order: |
115 |
|
# |
116 |
|
# 1) use the user-specified program |
117 |
|
# 2) use a system-wide default |
118 |
|
# 3) locally build and use the cyrus implementation |
119 |
|
# 4) fall back to the buggy local xmakedpend script |
120 |
|
# |
121 |
if test "x${MAKEDEPEND}" = x ; then |
if test "x${MAKEDEPEND}" = x ; then |
122 |
which makedepend >& /dev/null |
which makedepend >& /dev/null |
123 |
RETVAL=$? |
RETVAL=$? |
124 |
if test "x${RETVAL}" = x1 ; then |
if test ! "x${RETVAL}" = x0 ; then |
125 |
echo " makedepend was not found. Using xmakedpend instead." |
echo " a system-default makedepend was not found." |
126 |
MAKEDEPEND='$(TOOLSDIR)/xmakedepend' |
|
127 |
|
# Try to build the cyrus impl |
128 |
|
rm -f ./genmake_cy_md |
129 |
|
( |
130 |
|
cd $ROOTDIR/tools/cyrus-imapd-makedepend \ |
131 |
|
&& ./configure > /dev/null 2>&1 \ |
132 |
|
&& make > /dev/null 2>&1 \ |
133 |
|
&& ./makedepend ifparser.c > /dev/null 2>&1 \ |
134 |
|
&& echo "true" |
135 |
|
) > ./genmake_cy_md |
136 |
|
grep true ./genmake_cy_md > /dev/null 2>&1 |
137 |
|
RETVAL=$? |
138 |
|
if test "x$RETVAL" = x0 ; then |
139 |
|
MAKEDEPEND='$(TOOLSDIR)/cyrus-imapd-makedepend/makedepend' |
140 |
|
else |
141 |
|
MAKEDEPEND='$(TOOLSDIR)/xmakedepend' |
142 |
|
fi |
143 |
|
rm -f ./genmake_cy_md |
144 |
fi |
fi |
145 |
fi |
fi |
146 |
|
|
296 |
--makefile=NAME | -mf=NAME |
--makefile=NAME | -mf=NAME |
297 |
Call the makefile "NAME". The default is "Makefile". |
Call the makefile "NAME". The default is "Makefile". |
298 |
|
|
299 |
|
-makedepend NAME | -md NAME |
300 |
|
--makedepend=NAME | -md=NAME |
301 |
|
Use "NAME" for the MAKEDEPEND program. |
302 |
|
|
303 |
-rootdir NAME | --rootdir NAME | -rd NAME | --rd NAME |
-rootdir NAME | --rootdir NAME | -rd NAME | --rd NAME |
304 |
-rootdir=NAME | --rootdir=NAME | -rd=NAME | --rd=NAME |
-rootdir=NAME | --rootdir=NAME | -rd=NAME | --rd=NAME |
305 |
Specify the location of the MITgcm ROOTDIR as "NAME". |
Specify the location of the MITgcm ROOTDIR as "NAME". |
561 |
CFLAGS= |
CFLAGS= |
562 |
KFLAGS1= |
KFLAGS1= |
563 |
KFLAGS2= |
KFLAGS2= |
564 |
|
#LDADD= |
565 |
LIBS= |
LIBS= |
566 |
KPPFILES= |
KPPFILES= |
567 |
NOOPTFILES= |
NOOPTFILES= |
715 |
-make=* | --make=* | -m=* | --m=*) |
-make=* | --make=* | -m=* | --m=*) |
716 |
MAKE=$ac_optarg ;; |
MAKE=$ac_optarg ;; |
717 |
|
|
718 |
|
-makedepend | --makedepend | -md | --md) |
719 |
|
ac_prev=MAKEDEPEND ;; |
720 |
|
-makedepend=* | --makedepend=* | -md=* | --md=*) |
721 |
|
MAKEDEPEND=$ac_optarg ;; |
722 |
|
|
723 |
-makefile | --makefile | -ma | --ma) |
-makefile | --makefile | -ma | --ma) |
724 |
ac_prev=MAKEFILE ;; |
ac_prev=MAKEFILE ;; |
725 |
-makefile=* | --makefile=* | -ma=* | --ma=*) |
-makefile=* | --makefile=* | -ma=* | --ma=*) |
971 |
|
|
972 |
if test ! "x$MPI" = x ; then |
if test ! "x$MPI" = x ; then |
973 |
echo " Turning on MPI cpp macros" |
echo " Turning on MPI cpp macros" |
974 |
DEFINES="$DEFINS -DALLOW_USE_MPI -DALWAYS_USE_MPI" |
DEFINES="$DEFINES -DALLOW_USE_MPI -DALWAYS_USE_MPI" |
975 |
fi |
fi |
976 |
|
|
977 |
printf "\n=== Checking system libraries ===\n" |
printf "\n=== Checking system libraries ===\n" |
1590 |
# Fortran compiler |
# Fortran compiler |
1591 |
F90C = ${F90C} |
F90C = ${F90C} |
1592 |
# Link editor |
# Link editor |
1593 |
LINK = ${LINK} |
LINK = ${LINK} ${LDADD} |
1594 |
|
|
1595 |
# Defines for CPP |
# Defines for CPP |
1596 |
DEFINES = ${DEFINES} |
DEFINES = ${DEFINES} |