"Fossies" - the Fresh Open Source Software Archive

Member "freeipmi-1.6.8/config/x_ac_expand_install_dirs.m4" (28 Mar 2021, 3322 Bytes) of package /linux/misc/freeipmi-1.6.8.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ##*****************************************************************************
    2 ## $Id: x_ac_expand_install_dirs.m4 494 2006-05-08 22:59:28Z dun $
    3 ##*****************************************************************************
    4 #  AUTHOR:
    5 #    Chris Dunlap <cdunlap@llnl.gov>
    6 #
    7 #  SYNOPSIS:
    8 #    X_AC_EXPAND_INSTALL_DIRS
    9 #
   10 #  DESCRIPTION:
   11 #    Expand the installation directory variables.
   12 ##*****************************************************************************
   13 
   14 AC_DEFUN([X_AC_EXPAND_INSTALL_DIRS], [
   15   AC_MSG_CHECKING([installation directory variables])
   16 
   17   _x_ac_expand_install_dirs_prefix="$prefix"
   18   test "$prefix" = NONE && prefix="$ac_default_prefix"
   19   _x_ac_expand_install_dirs_exec_prefix="$exec_prefix"
   20   test "$exec_prefix" = NONE && exec_prefix="$prefix"
   21 
   22   eval X_PREFIX="$prefix"
   23   AC_DEFINE_UNQUOTED([X_PREFIX], ["$X_PREFIX"],
   24     [Expansion of the "prefix" installation directory.])
   25   AC_SUBST([X_PREFIX])
   26 
   27   eval X_EXEC_PREFIX="$exec_prefix"
   28   AC_DEFINE_UNQUOTED([X_EXEC_PREFIX], ["$X_EXEC_PREFIX"],
   29     [Expansion of the "exec_prefix" installation directory.])
   30   AC_SUBST([X_EXEC_PREFIX])
   31 
   32   eval X_BINDIR="$bindir"
   33   AC_DEFINE_UNQUOTED([X_BINDIR], ["$X_BINDIR"],
   34     [Expansion of the "bindir" installation directory.])
   35   AC_SUBST([X_BINDIR])
   36 
   37   eval X_SBINDIR="$sbindir"
   38   AC_DEFINE_UNQUOTED([X_SBINDIR], ["$X_SBINDIR"],
   39     [Expansion of the "sbindir" installation directory.])
   40   AC_SUBST([X_SBINDIR])
   41 
   42   eval X_LIBEXECDIR="$libexecdir"
   43   AC_DEFINE_UNQUOTED([X_LIBEXECDIR], ["$X_LIBEXECDIR"],
   44     [Expansion of the "libexecdir" installation directory.])
   45   AC_SUBST([X_LIBEXECDIR])
   46 
   47   eval X_DATADIR="$datadir"
   48   AC_DEFINE_UNQUOTED([X_DATADIR], ["$X_DATADIR"],
   49     [Expansion of the "datadir" installation directory.])
   50   AC_SUBST([X_DATADIR])
   51 
   52   eval X_SYSCONFDIR="$sysconfdir"
   53   AC_DEFINE_UNQUOTED([X_SYSCONFDIR], ["$X_SYSCONFDIR"],
   54     [Expansion of the "sysconfdir" installation directory.])
   55   AC_SUBST([X_SYSCONFDIR])
   56 
   57   eval X_SHAREDSTATEDIR="$sharedstatedir"
   58   AC_DEFINE_UNQUOTED([X_SHAREDSTATEDIR], ["$X_SHAREDSTATEDIR"],
   59     [Expansion of the "sharedstatedir" installation directory.])
   60   AC_SUBST([X_SHAREDSTATEDIR])
   61 
   62   eval X_LOCALSTATEDIR="$localstatedir"
   63   AC_DEFINE_UNQUOTED([X_LOCALSTATEDIR], ["$X_LOCALSTATEDIR"],
   64     [Expansion of the "localstatedir" installation directory.])
   65   AC_SUBST([X_LOCALSTATEDIR])
   66 
   67   eval X_LIBDIR="$libdir"
   68   AC_DEFINE_UNQUOTED([X_LIBDIR], ["$X_LIBDIR"],
   69     [Expansion of the "libdir" installation directory.])
   70   AC_SUBST([X_LIBDIR])
   71 
   72   eval X_INCLUDEDIR="$includedir"
   73   AC_DEFINE_UNQUOTED([X_INCLUDEDIR], ["$X_INCLUDEDIR"],
   74     [Expansion of the "includedir" installation directory.])
   75   AC_SUBST([X_INCLUDEDIR])
   76 
   77   eval X_OLDINCLUDEDIR="$oldincludedir"
   78   AC_DEFINE_UNQUOTED([X_OLDINCLUDEDIR], ["$X_OLDINCLUDEDIR"],
   79     [Expansion of the "oldincludedir" installation directory.])
   80   AC_SUBST([X_OLDINCLUDEDIR])
   81 
   82   eval X_INFODIR="$infodir"
   83   AC_DEFINE_UNQUOTED([X_INFODIR], ["$X_INFODIR"],
   84     [Expansion of the "infodir" installation directory.])
   85   AC_SUBST([X_INFODIR])
   86 
   87   eval X_MANDIR="$mandir"
   88   AC_DEFINE_UNQUOTED([X_MANDIR], ["$X_MANDIR"],
   89     [Expansion of the "mandir" installation directory.])
   90   AC_SUBST([X_MANDIR])
   91 
   92   prefix="$_x_ac_expand_install_dirs_prefix"
   93   exec_prefix="$_x_ac_expand_install_dirs_exec_prefix"
   94 
   95   AC_MSG_RESULT([yes])
   96 ])