source: pymolproxy/branches/1.0/configure.in @ 4618

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

Update version numbers in configure

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