1 dnl configure.in.srm --
2 dnl
3 dnl autoconf file for standalone SRM library
4 dnl
5 dnl Copyright (c) 2000-2002 The Regents of the University of California.
6 dnl All rights reserved.
7 dnl
8 dnl Redistribution and use in source and binary forms, with or without
9 dnl modification, are permitted provided that the following conditions are met:
10 dnl
11 dnl A. Redistributions of source code must retain the above copyright notice,
12 dnl this list of conditions and the following disclaimer.
13 dnl B. Redistributions in binary form must reproduce the above copyright
14 dnl notice, this list of conditions and the following disclaimer in the
15 dnl documentation and/or other materials provided with the distribution.
16 dnl C. Neither the names of the copyright holders nor the names of its
17 dnl contributors may be used to endorse or promote products derived from
18 dnl this software without specific prior written permission.
19 dnl
20 dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
21 dnl IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 dnl THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 dnl PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
24 dnl LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 dnl CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 dnl SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 dnl CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 dnl ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 dnl POSSIBILITY OF SUCH DAMAGE.
31 dnl
32 dnl @(#) $Header: /usr/mash/src/repository/conf/configure.in.srm,v 1.5 2005/01/16 02:31:19 aswan Exp $
33
34
35 AC_ARG_ENABLE(mb, [ --disable-mb do not build mediabord], build_mb=$enableval, build_mb="")
36 AC_ARG_WITH(srm, [ --with-srm[=path] specify a pathname for the standalone SRM library], srm=$withval, srm="")
37
38 V_MB_OBJ_CC=""
39 V_MB_OBJ_TK_CC=""
40 V_MB_OBJ_NOTK_CC=""
41
42 if test -z "$build_mb" ; then
43 if test $macosx = "yes" ; then
44 AC_MSG_WARN(not building mediaboard on OSX)
45 build_mb=no
46 else
47 build_mb=yes
48 fi
49 fi
50
51 if test $build_mb = "yes" ; then
52 V_MB_OBJ_CC="\$(MB_OBJ_CC)"
53 V_MB_OBJ_TK_CC="\$(MB_OBJ_TK_CC)"
54 V_MB_OBJ_NOTK_CC="\$(MB_OBJ_NOTK_CC)"
55 V_DEFINE="$V_DEFINE -DMASH_POSTSCRIPT_CMDS"
56
57 SRM_H_PLACES_D="$srm \
58 $srm/include \
59 $srm/srmv2"
60 SRM_LIB_PLACES_D="$srm \
61 $srm/lib \
62 $srm/bin"
63 SRM_H_PLACES="../srm \
64 ../srm/include \
65 ../srm/srmv2 \
66 /usr/local/include \
67 /usr/local/include/srm \
68 /usr/local/srm \
69 /usr/local/srm/include \
70 /usr/local/srm/srmv2"
71 SRM_LIB_PLACES="../srm \
72 ../srm/lib \
73 ../srm/bin \
74 /usr/local/lib \
75 /usr/local/bin \
76 /usr/local/lib/srm \
77 /usr/local/srm \
78 /usr/local/srm/lib \
79 /usr/local/srm/bin"
80
81 dnl
82 dnl If the --with-srm argument points to a build directory that
83 dnl is separate from the source directory, try to read
84 dnl srmConfig.sh to find the original source directory.
85 dnl
86
87 if test -r $srm/srmConfig.sh ; then
88 d2=`(. $srm/srmConfig.sh ; echo $SRM_SRC_DIR)`
89 SRM_H_PLACES_D="${SRM_H_PLACES_D} $d2/srmv2"
90 fi
91
92 if test "$enable_mashsrm" = "yes" ; then
93 V_MASH_SRMV2_OBJ="\$(SRMv2_OBJ)"
94 V_INCLUDE_SRM="-I./srmv2"
95 V_LIB_SRM=""
96 V_INCLUDES="$V_INCLUDE_SRM $V_INCLUDES"
97 echo "Compiling in mash SRMv2; not checking for standalone SRM"
98 else
99 dnl SRM is always required unless the user specifies "no"
100
101 if test "x$srm" != "xno" ; then
102 reqd="yes"
103
104 NS_BEGIN_PACKAGE(srm)
105 NS_CHECK_HEADER_PATH(srmv2-api.h,$SRM_H_PLACES,$srm,$SRM_H_PLACES_D,V_INCLUDE_SRM,srm)
106 NS_CHECK_LIB_PATH(srm,$SRM_LIB_PLACES,$srm,$SRM_LIB_PLACES_D,V_LIB_SRM,srm)
107 NS_END_PACKAGE(srm,$reqd)
108 if test "x$V_LIB_SRM" != "x" ; then
109 V_MB_OBJ_CC="$V_MB_OBJ_CC \$(MBV2_OBJ_CC)"
110 V_MB_OBJ_TK_CC="$V_MB_OBJ_TK_CC \$(MBV2_OBJ_TK_CC)"
111 fi
112 fi
113
114 V_MASH_SRMV2_OBJ=""
115 fi
116 fi
117
118 AC_SUBST(V_MASH_SRMV2_OBJ)
119 AC_SUBST(V_INCLUDE_SRM)
120 AC_SUBST(V_LIB_SRM)
121
122 AC_SUBST(V_MB_OBJ_CC)
123 AC_SUBST(V_MB_OBJ_TK_CC)
124 AC_SUBST(V_MB_OBJ_NOTK_CC)
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.