1 dnl -*- shell-script -*-
3 dnl Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
4 dnl University Research and Technology
5 dnl Corporation. All rights reserved.
6 dnl Copyright (c) 2004-2005 The University of Tennessee and The University
7 dnl of Tennessee Research Foundation. All rights
9 dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
10 dnl University of Stuttgart. All rights reserved.
11 dnl Copyright (c) 2004-2005 The Regents of the University of California.
12 dnl All rights reserved.
15 dnl Additional copyrights may follow
20 AC_DEFUN([OMPI_CASE_SENSITIVE_FS_SETUP],[
26 # See if we are on a case sensitive filesystem. Some filesystems
27 # (like HFS+ on MacOS X and MS Windows) are not case sensitive - mpicc
28 # and mpiCC are the same file.
30 # Sets prefix_OS_HAVE_CASE_SENSITIVE_FS to 1 if filesystem is case
31 # sensitive (ie, mpicc and mpiCC will be different files) or 0 if
32 # filesystem is not case sensitive (ie, mpicc and mpiCC will be
39 AC_MSG_CHECKING([if build filesystem is case sensitive])
40 cat > conf_fs_test.$$ <<EOF
44 cat > CONF_FS_TEST.$$ <<EOF
48 if test "`cat conf_fs_test.$$`" = "lowercase"; then
56 rm -f conf_fs_test.$$ CONF_FS_TEST.$$
59 # Now see what the user wants to do...
61 AC_MSG_CHECKING([if configuring for case sensitive filesystem])
63 AC_HELP_STRING([--with-cs-fs],
64 [Destination FS is case sensitive (default: set to value of the build FS's case sensitivity)]))
66 if test "$with_cs_fs" = "yes"; then
68 elif test -z "$with_cs_fs"; then
69 OMPI_WANT_CS_FS=$have_cs_fs
74 if test "$OMPI_WANT_CS_FS" = "1"; then
80 AM_CONDITIONAL(CASE_SENSITIVE_FS, test "$OMPI_WANT_CS_FS" = "1")
82 if test "$OMPI_WANT_CS_FS" = "0"; then
85 *******************************************************************************
86 NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
87 *******************************************************************************
89 Because Open MPI is being installed on a non-case sensitive file
90 system, the C++ wrapper compiler will be named mpic++ instead of the
93 Please update any makefiles appropriately.
95 *******************************************************************************
96 NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
97 *******************************************************************************
103 unset have_cs_fs])dnl