PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/config/ac_sdr.m4

https://code.google.com/
m4 | 35 lines | 13 code | 4 blank | 18 comment | 0 complexity | cd8cb81edfac2a4c1cbea07fffc92921 MD5 | raw file
 1##*****************************************************************************
 2## $Id$
 3##*****************************************************************************
 4#  AUTHOR:
 5#    Jim Garlick <garlick@llnl.gov>
 6#
 7#  SYNOPSIS:
 8#    AC_SDR
 9#
10#  DESCRIPTION:
11#    Adds support for SDR if found.
12#
13#  WARNINGS:
14#    This macro must be placed after AC_PROG_CC or equivalent.
15##*****************************************************************************
16
17AC_DEFUN([AC_SDR],
18[
19 
20  #
21  # Find path to SDRGetObjects.  SDR module is automatically build if found
22  #
23  SDRPATH="/usr/lpp/ssp/bin:/usr/sbin:$PATH"
24  AC_PATH_PROG([SDRGETOBJECTS], [SDRGetObjects], [], [$SDRPATH])
25  if test -n "$SDRGETOBJECTS"; then
26      AC_ADD_STATIC_MODULE("sdr")
27      AC_DEFINE([HAVE_SDR], [1], [Define if you have SDR])
28      AC_DEFINE_UNQUOTED(_PATH_SDRGETOBJECTS, "$SDRGETOBJECTS",
29                         [Path to SDRGetObjects])
30  fi
31
32  AC_SUBST(HAVE_SDR)
33  AC_SUBST(SDRGETOBJECTS)
34
35])