|
Packit |
0848f5 |
dnl Process this file with autoconf to produce a configure script.
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
dnl aclocal_cache.m4, included by sowing/confdb/aclocal.m4, fixes
|
|
Packit |
0848f5 |
dnl bugs in autoconf caching.
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
dnl The file name here refers to a file in the source being configured
|
|
Packit |
0848f5 |
AC_INIT(pick a local file)
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
dnl Definitions will be placed in this file rather than in the DEFS variable
|
|
Packit |
0848f5 |
AC_CONFIG_HEADER(pick a headef file name)
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
dnl Set the directory that contains support scripts such as install-sh and
|
|
Packit |
0848f5 |
dnl config.guess
|
|
Packit |
0848f5 |
AC_CONFIG_AUX_DIR(refer to the confdb at the top of MPICH)
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
dnl Use AC_ARG_ENABLE to look for --enable-feature and AC_ARG_WITH to look for
|
|
Packit |
0848f5 |
dnl --with-capability
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
dnl Enable better caching control
|
|
Packit |
0848f5 |
PAC_ARG_CACHING
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
AC_ARG_ENABLE(echo,
|
|
Packit |
0848f5 |
[--enable-echo - Turn on strong echoing. The default is enable=no.] ,set -x)
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
AC_ARG_ENABLE(strict,[--enable-strict - Turn on strict debugging with gcc],
|
|
Packit |
0848f5 |
CFLAGS="$CFLAGS -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes")
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
PAC_ARG_SHAREDLIBS
|
|
Packit |
0848f5 |
dnl The recommended order for items in a configure.ac file is
|
|
Packit |
0848f5 |
dnl check for programs
|
|
Packit |
0848f5 |
dnl check for libraries
|
|
Packit |
0848f5 |
dnl check for header files
|
|
Packit |
0848f5 |
dnl check for typedefs
|
|
Packit |
0848f5 |
dnl check for structures
|
|
Packit |
0848f5 |
dnl check for compiler characteristics
|
|
Packit |
0848f5 |
dnl check for library functions
|
|
Packit |
0848f5 |
dnl check for system services
|
|
Packit |
0848f5 |
dnl Here are some sample tests
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
dnl Find a C compiler (choose gcc first)
|
|
Packit |
0848f5 |
dnl Here are some example calls. See mpich/configure.ac for others
|
|
Packit |
0848f5 |
AC_PROG_CC
|
|
Packit |
0848f5 |
AC_PATH_PROG(AR,ar)
|
|
Packit |
0848f5 |
AC_SUBST(AR_FLAGS)
|
|
Packit |
0848f5 |
AC_PATH_PROG(RANLIB,ranlib)
|
|
Packit |
0848f5 |
AC_PROG_INSTALL
|
|
Packit |
0848f5 |
dnl
|
|
Packit |
0848f5 |
dnl Generate the Makefiles from Makefile.in
|
|
Packit |
0848f5 |
AC_OUTPUT(Makefile other files )
|
|
Packit |
0848f5 |
|
|
Packit |
0848f5 |
PAC_SUBDIR_CACHE_CLEANUP
|