source: nanoscale/trunk/configure.in @ 4790

Last change on this file since 4790 was 4584, checked in by ldelgass, 7 years ago

add configure for nanoscale

  • 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([nanoscale], [0.1], [rappture@nanohub.org])
3AC_CONFIG_AUX_DIR(cf)
4AC_CONFIG_HEADERS([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
20AC_ARG_WITH(
21    [logdir],
22    [AS_HELP_STRING([--with-logdir=DIR],
23        [Write log files in DIR])],
24    [LOGDIR=$withval],
25    [LOGDIR="/tmp"])
26
27#------------------------------------------------------------------------
28# Handle the --prefix=... option
29#------------------------------------------------------------------------
30
31if test "${prefix}" = "NONE"; then
32    prefix=/usr/local
33fi
34if test "${exec_prefix}" = "NONE"; then
35    exec_prefix=$prefix
36fi
37
38if test "x${incdir}" == "x"; then
39  incdir=${exec_prefix}/include
40fi
41libdir=${exec_prefix}/lib
42
43if test "${libdir}" != "${prefix}/lib"; then
44    LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}"
45else
46    LIB_SEARCH_DIRS="-L ${libdir}"
47fi
48
49SC_CONFIG_CFLAGS
50
51AC_PATH_X
52
53AC_PROG_INSTALL
54AC_PROG_RANLIB
55AC_PROG_LN_S
56AC_PROG_MKDIR_P
57
58dnl find and test the C compiler
59AC_PROG_CC
60AC_PROG_CPP
61AC_PROG_CXXCPP
62AC_PROG_CXX
63AC_LANG_CPLUSPLUS
64
65AC_C_BIGENDIAN
66
67# Save the values as shell variables so that we can substitute them
68# into bltHash.h for situtations where there's no bltInt.h.
69
70LD_RPATH="";
71
72#
73# Need to check for the following dependencies:
74#       Rappture headers and library (done)
75#       Tcl headers and library (done)
76#       GL headers and library
77#       GLEW header and library
78#       pthread library
79#
80
81TCL_VERSION="8.4"
82for dir in \
83 ${exec_prefix} \
84 ${exec_prefix}/lib ; do
85  tclconfig="${dir}/tclConfig.sh"
86  if test -f "$tclconfig" ; then
87    . $tclconfig
88    break
89  fi
90done
91TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
92
93if test "x$with_tcllib" != "x" ; then
94   tclconfig="${with_tcllib}/tclConfig.sh"
95   if test -f "$tclconfig" ; then
96    . $tclconfig
97   fi
98   TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
99fi
100if test "x$with_tclinclude" != "x" ; then
101   TCL_INC_SPEC="-I${with_tclinclude}"
102fi
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])
108AC_CHECK_FUNCS([mkstemps])
109
110AC_SUBST(LD_RPATH)
111AC_SUBST(LOGDIR)
112AC_SUBST(STATSDIR)
113AC_SUBST(SUBDIRS)
114AC_SUBST(TCL_INC_SPEC)
115AC_SUBST(TCL_LIB_SPEC)
116AC_SUBST(TCL_VERSION)
117
118AC_OUTPUT([
119   Makefile \
120   renderservers.tcl \
121   start_nanoscale.sh])
Note: See TracBrowser for help on using the repository browser.