source: trunk/packages/vizservers/geovis/configure.in @ 4057

Last change on this file since 4057 was 4057, checked in by ldelgass, 11 years ago

Remove references to Rappture, as it isn't a dependency of geovis

File size: 3.0 KB
Line 
1AC_PREREQ([2.60])
2AC_INIT(geovis, 0.1, rappture@nanohub.org)
3AC_CONFIG_AUX_DIR(cf)
4
5AC_ARG_WITH(
6    [tcllib],
7    [AS_HELP_STRING([--with-tcllib[=DIR]],
8        [location of Tcl binary library libtclstubs.a @<:@default=/usr/lib@:>@])],
9    [with_tcllib=$withval],
10    [with_tcllib=""])
11
12AC_ARG_WITH(
13    [osg-includes],
14    [AS_HELP_STRING([--with-osg-includes=DIR],
15        [OSG include files are in DIR])],
16    [with_osg_includes=$withval],
17    [with_osg_includes=""])
18
19AC_ARG_WITH(
20    [osg-libs],
21    [AS_HELP_STRING([--with-osg-libs=DIR],
22        [OSG libraries are in DIR])],
23    [with_osg_libs=$withval],
24    [with_osg_libs=""])
25
26AC_ARG_WITH(
27    [statsdir],
28    [AS_HELP_STRING([--with-statsdir=DIR],
29        [Write statistics in DIR])],
30    [STATSDIR=$withval],
31    [STATSDIR="/var/tmp/visservers"])
32
33#------------------------------------------------------------------------
34# Handle the --prefix=... option
35#------------------------------------------------------------------------
36
37if test "${prefix}" = "NONE"; then
38    prefix=/usr/local
39fi
40if test "${exec_prefix}" = "NONE"; then
41    exec_prefix=$prefix
42fi
43
44if test "x${incdir}" == "x"; then
45  incdir=${exec_prefix}/include
46fi
47libdir=${exec_prefix}/lib
48
49if test "${libdir}" != "${prefix}/lib"; then
50    LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}"
51else
52    LIB_SEARCH_DIRS="-L ${libdir}"
53fi
54
55SC_CONFIG_CFLAGS
56
57
58AC_PATH_X
59
60AC_PROG_INSTALL
61AC_PROG_RANLIB
62AC_PROG_LN_S
63AC_PROG_MKDIR_P
64
65dnl find and test the C compiler
66AC_PROG_CC
67AC_PROG_CPP
68AC_PROG_CXXCPP
69AC_PROG_CXX
70AC_LANG_CPLUSPLUS
71
72LD_RPATH="";
73
74#
75# Need to check for the following dependencies:
76#       Tcl headers and library
77#       GL headers and library
78#       pthread library
79#       OpenSceneGraph libraries
80#       osgEarth libraries
81#
82
83TCL_VERSION="8.4"
84for dir in \
85 ${exec_prefix} \
86 ${exec_prefix}/lib ; do
87  tclconfig="${dir}/tclConfig.sh"
88  if test -f "$tclconfig" ; then
89    . $tclconfig
90    break
91  fi
92done
93TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
94
95if test "x$with_tcllib" != "x" ; then
96   tclconfig="${with_tcllib}/tclConfig.sh"
97   if test -f "$tclconfig" ; then
98    . $tclconfig
99   fi
100   TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
101fi
102if test "x$with_tclinclude" != "x" ; then
103   TCL_INC_SPEC="-I${with_tclinclude}"
104fi
105
106OSG_INC_SPEC=-I${incdir}
107OSG_LIB_DIR=${libdir}
108OSG_LIB_SPEC="-L${libdir}"
109
110if test "x$with_osg_includes" != "x"; then
111   OSG_INC_SPEC=-I$with_osg_includes
112fi
113
114if test "x$with_osg_libs" != "x"; then
115   OSG_LIB_DIR=$with_osg_libs
116   OSG_LIB_SPEC="-L$with_osg_libs"
117fi
118
119AC_CHECK_HEADERS([stdio.h unistd.h stdlib.h string.h sys/types.h])
120AC_CHECK_HEADERS([sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h])
121
122AC_CHECK_FUNCS([accept4])
123
124AC_SUBST(CFLAGS_DEBUG)
125AC_SUBST(CFLAGS_OPTIMIZE)
126AC_SUBST(LD_RPATH)
127AC_SUBST(SHLIB_CFLAGS)
128AC_SUBST(SHLIB_LD)
129AC_SUBST(SHLIB_LDFLAGS)
130AC_SUBST(SHLIB_SUFFIX)
131AC_SUBST(STATSDIR)
132AC_SUBST(STLIB_LD)
133AC_SUBST(TCL_INC_SPEC)
134AC_SUBST(TCL_LIB_SPEC)
135AC_SUBST(TCL_VERSION)
136AC_SUBST(OSG_INC_SPEC)
137AC_SUBST(OSG_LIB_DIR)
138AC_SUBST(OSG_LIB_SPEC)
139
140AC_OUTPUT([Makefile])
Note: See TracBrowser for help on using the repository browser.