[AMBER-Developers] sh conformity in configure

From: Jason Swails <jason.swails.gmail.com>
Date: Tue, 9 Mar 2010 14:56:13 -0500

Hello,

This is primarily aimed at those that still have commit access to the
src directory. Some of the recent changes made to configure in
regards to the cuda options fall in the area of bash-compliance but
not general sh-compliance. I've gone back to using dash as sh for my
ubuntu machine because it is one of the few systems that would catch
uses of ">&" and other minor things of that nature, since I believe
most systems use /bin/bash as /bin/sh.

The current version of configure prints the following output when I
run "./configure intel"
swails.Batman:~/newamber/03.09.10/amber11/src$ ./configure intel
Setting AMBERHOME to /home/swails/newamber/03.09.10/amber11

./configure: 363: [[: not found
./configure: 363: no: not found
./configure: 363: no: not found
./configure: 697: [[: not found
./configure: 697: no: not found
./configure: 697: no: not found
[: 697: no: unexpected operator
[: 697: no: unexpected operator
Using Intel MKL libraries in /opt/intel/Compiler/11.0/083/mkl/lib/em64t
MKL Version 10 or 11 assumed.

Testing the icc compiler:
     icc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o testp testp.c
OK

Testing the ifort compiler:
     ifort -O0 -o testp testp.f
OK

Testing mixed C/Fortran compilation:
     icc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -c -o testp.c.o testp.c
     ifort -O0 -c -o testp.f.o testp.f
     icc -o testp testp.c.o testp.f.o
-L/usr/lib/jvm/java-6-openjdk//jre/lib
-L/usr/lib/jvm/java-6-openjdk//jre/lib/amd64
-L/usr/lib/jvm/java-6-openjdk//jre/lib/amd64/server
-L/home/swails/Source/PUPIL/pupil//lib
-L/opt/intel/Compiler/11.0/083/lib/intel64
-L/opt/intel/Compiler/11.0/083/ipp/em64t/sharedlib
-L/opt/intel/Compiler/11.0/083/mkl/lib/em64t
-L/opt/intel/Compiler/11.0/083/tbb/em64t/cc4.1.0_libc2.4_kernel2.6.16.21/lib
-L/opt/intel/Compiler/11.0/083/lib/intel64
-L/opt/intel/Compiler/11.0/083/ipp/em64t/sharedlib
-L/opt/intel/Compiler/11.0/083/mkl/lib/em64t
-L/opt/intel/Compiler/11.0/083/tbb/em64t/cc4.1.0_libc2.4_kernel2.6.16.21/lib
-L/opt/intel/Compiler/11.0/083/mkl/lib/em64t -lifport -lifcore -lsvml
OK

Testing flex:
OK

Configuring NetCDF; (may be time-consuming)

    NetCDF configure succeeded.

Configuring fftw-2.1.5; (may be time-consuming)

    fftw-2.1.5 configure succeeded.

The configuration file, config.h, was successfully created.

./configure: 1311: [[: not found
./configure: 1311: no: not found
./configure: 1311: no: not found
The next step is to type 'make -f Makefile_at'

I went through and replaced all [[ with [ (and the same with ]), all
== with =, and all || with -o, and those error messages went away.
I've attached my version of the configure script to this email so that
if any of the privileged few are interested in commiting it to the
tree they may.

All the best,
Jason

-- 
---------------------------------------
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032



_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers

Received on Tue Mar 09 2010 - 12:00:04 PST
Custom Search