source: trunk/packages/vizservers/configure.in @ 4063

Last change on this file since 4063 was 4060, checked in by ldelgass, 10 years ago

Add separate configure scripts for nanovis and vtkvis, remove them from the
vizservers configure (which now only configures nanoscale and pymolproxy).

File size: 2.7 KB
Line 
1AC_PREREQ([2.60])
2AC_INIT([vizservers], [0.1], [rappture@nanohub.org])
3AC_CONFIG_AUX_DIR(cf)
4AC_CONFIG_HEADERS([nanoscale/config.h])
5
6AC_ARG_WITH(
7    [tcllib],
8    [AS_HELP_STRING([--with-tcllib[=DIR]],
9        [location of Tcl binary library libtclstubs.a @<:@default=/usr/lib@:>@])],
10    [with_tcllib=$withval],
11    [with_tcllib=""])
12
13AC_ARG_WITH(
14    [statsdir],
15    [AS_HELP_STRING([--with-statsdir=DIR],
16        [Write statistics in DIR])],
17    [STATSDIR=$withval],
18    [STATSDIR="/var/tmp/visservers"])
19
20RP_LANG_PYTHON
21
22#------------------------------------------------------------------------
23# Handle the --prefix=... option
24#------------------------------------------------------------------------
25
26if test "${prefix}" = "NONE"; then
27    prefix=/usr/local
28fi
29if test "${exec_prefix}" = "NONE"; then
30    exec_prefix=$prefix
31fi
32
33if test "x${incdir}" == "x"; then
34  incdir=${exec_prefix}/include
35fi
36libdir=${exec_prefix}/lib
37
38if test "${libdir}" != "${prefix}/lib"; then
39    LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}"
40else
41    LIB_SEARCH_DIRS="-L ${libdir}"
42fi
43
44SC_CONFIG_CFLAGS
45
46AC_PATH_X
47
48AC_PROG_INSTALL
49AC_PROG_RANLIB
50AC_PROG_LN_S
51AC_PROG_MKDIR_P
52
53dnl find and test the C compiler
54AC_PROG_CC
55AC_PROG_CPP
56AC_PROG_CXXCPP
57AC_PROG_CXX
58AC_LANG_CPLUSPLUS
59
60AC_C_BIGENDIAN
61
62# Save the values as shell variables so that we can substitute them
63# into bltHash.h for situtations where there's no bltInt.h.
64
65LD_RPATH="";
66
67#
68# Need to check for the following dependencies:
69#       Rappture headers and library (done)
70#       Tcl headers and library (done)
71#       GL headers and library
72#       GLuT headers and library
73#       GLEW header and library
74#       Cg headers and library
75#       CgGL headers and library
76#       pthread library
77#
78
79TCL_VERSION="8.4"
80for dir in \
81 ${exec_prefix} \
82 ${exec_prefix}/lib ; do
83  tclconfig="${dir}/tclConfig.sh"
84  if test -f "$tclconfig" ; then
85    . $tclconfig
86    break
87  fi
88done
89TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
90
91if test "x$with_tcllib" != "x" ; then
92   tclconfig="${with_tcllib}/tclConfig.sh"
93   if test -f "$tclconfig" ; then
94    . $tclconfig
95   fi
96   TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
97fi
98if test "x$with_tclinclude" != "x" ; then
99   TCL_INC_SPEC="-I${with_tclinclude}"
100fi
101
102AC_CHECK_HEADER([GL/glew.h])
103
104AC_CHECK_HEADERS([stdio.h unistd.h stdlib.h string.h sys/types.h])
105AC_CHECK_HEADERS([sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h])
106
107AC_CHECK_FUNCS([accept4])
108
109SUBDIRS="nanoscale pymolproxy"
110
111AC_SUBST(LD_RPATH)
112AC_SUBST(STATSDIR)
113AC_SUBST(SUBDIRS)
114AC_SUBST(PYTHON)
115AC_SUBST(TCL_INC_SPEC)
116AC_SUBST(TCL_LIB_SPEC)
117AC_SUBST(TCL_VERSION)
118
119AC_OUTPUT([
120   Makefile \
121   nanoscale/Makefile \
122   nanoscale/renderservers.tcl \
123   pymolproxy/Makefile \
124   start_nanoscale.sh])
Note: See TracBrowser for help on using the repository browser.