there was an #include directive missing
[openmpi-llc.git] / config / ompi_install_dirs.m4
blob9c6c330982a139f52ea6746fa79bea1844182142
1 # -*- shell-script -*-
3 # Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
4 #                         University Research and Technology
5 #                         Corporation.  All rights reserved.
6 # Copyright (c) 2004-2005 The University of Tennessee and The University
7 #                         of Tennessee Research Foundation.  All rights
8 #                         reserved.
9 # Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 
10 #                         University of Stuttgart.  All rights reserved.
11 # Copyright (c) 2004-2005 The Regents of the University of California.
12 #                         All rights reserved.
13 # $COPYRIGHT$
14
15 # Additional copyrights may follow
16
17 # $HEADER$
20 # OMPI_INSTALL_DIRS(header_file)
21 # ------------------------------
22 # Write out the installation directories into a header file that is
23 # written by AC_SUBST so that files that depend on hard-coded paths
24 # can include it and be rebuilt when paths change.  We don't AC_DEFINE
25 # because we don't want to rebuild the entire tree just because
26 # someone changed the prefix.
27 AC_DEFUN([OMPI_INSTALL_DIRS], [
28     ompi_exec_prefix_save="$exec_prefix"
29     ompi_prefix_save="$prefix"
31     # need to temporarily expand this out as almost exactly as it will
32     # be done later so that NONE doesn't show up in the
33     # {exec_}prefix-based variables.
34     test "x$prefix" = xNONE && prefix=$ac_default_prefix
35     test "x$exec_prefix" = xNONE && exec_prefix="$prefix"
37     OPAL_PREFIX="$prefix"
38     OPAL_EXEC_PREFIX="$exec_prefix"
39     eval OPAL_BINDIR="$bindir"
40     eval OPAL_SBINDIR="$sbindir"
41     eval OPAL_LIBEXECDIR="$libexecdir"
42     eval OPAL_DATADIR="$datadir"
43     eval OPAL_SYSCONFDIR="$sysconfdir"
44     eval OPAL_SHAREDSTATEDIR="$sharedstatedir"
45     eval OPAL_LOCALSTATEDIR="$localstatedir"
46     eval OPAL_LIBDIR="$libdir"
47     eval OPAL_INCLUDEDIR="$includedir"
48     eval OPAL_INFODIR="$infodir"
49     eval OPAL_MANDIR="$mandir"
51     AC_SUBST(OPAL_PREFIX)
52     AC_SUBST(OPAL_EXEC_PREFIX)
53     AC_SUBST(OPAL_BINDIR)
54     AC_SUBST(OPAL_SBINDIR)
55     AC_SUBST(OPAL_LIBEXECDIR)
56     AC_SUBST(OPAL_DATADIR)
57     AC_SUBST(OPAL_SYSCONFDIR)
58     AC_SUBST(OPAL_SHAREDSTATEDIR)
59     AC_SUBST(OPAL_LOCALSTATEDIR)
60     AC_SUBST(OPAL_LIBDIR)
61     AC_SUBST(OPAL_INCLUDEDIR)
62     AC_SUBST(OPAL_INFODIR)
63     AC_SUBST(OPAL_MANDIR)
65     prefix="$ompi_prefix_save"
66     exec_prefix="$ompi_exec_prefix_save"
68     AC_CONFIG_FILES([$1])
69 ])dnl