source: branches/1.3/packages/vizservers/configure.in @ 4530

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

Merge r4024,4049,4051-4052,4060 from trunk

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