/[pupa]/bugcomm/configure.ac
ViewVC logotype

Diff of /bugcomm/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by okuji, Fri Jul 26 12:30:17 2002 UTC revision 1.3 by okuji, Mon Jul 29 12:37:02 2002 UTC
# Line 8  AM_CONFIG_HEADER([config.h]) Line 8  AM_CONFIG_HEADER([config.h])
8  # Checks for user options.  # Checks for user options.
9  AM_MAINTAINER_MODE  AM_MAINTAINER_MODE
10    
11    AC_MSG_CHECKING([whether to build a server])
12    AC_ARG_ENABLE(server,
13            AC_HELP_STRING([--disable-server], [do not build a server]),
14            ,
15            [enable_server=yes])
16    AC_MSG_RESULT($enable_server)
17    
18  AC_MSG_CHECKING([whether to build clients])  AC_MSG_CHECKING([whether to build clients])
19  AC_ARG_ENABLE(clients,  AC_ARG_ENABLE(clients,
20          AC_HELP_STRING([--disable-clients], [do not build clients]),          AC_HELP_STRING([--disable-clients], [do not build clients]),
# Line 15  AC_ARG_ENABLE(clients, Line 22  AC_ARG_ENABLE(clients,
22          [enable_clients=yes])          [enable_clients=yes])
23  AC_MSG_RESULT($enable_clients)  AC_MSG_RESULT($enable_clients)
24    
25    AC_MSG_CHECKING([where to install CGI executables])
26    AC_ARG_WITH(cgidir,
27            AC_HELP_STRING([--with-cgidir=DIR],
28                    [install CGI executables in DIR [[]EPREFIX/lib/cgi-bin[]]]),
29            [CGIDIR=$with_cgidir],
30            [CGIDIR=\${exec_prefix}/lib/cgi-bin])
31    AC_MSG_RESULT($CGIDIR)
32    AC_SUBST(CGIDIR)
33    
34    # Server.
35    if test x$enable_server != xno; then
36       BUGCOMM_SUBDIRS="$BUGCOMM_SUBDIRS server"
37    
38       AC_PATH_PROG(RUBY, ruby, AC_MSG_ERROR([ruby not found]))
39    
40       AC_MSG_CHECKING([where to install Ruby script files])
41       RUBYDIR=[`$RUBY -rrbconfig -e 'print Config::CONFIG["sitelibdir"]'`]
42       AC_MSG_RESULT($RUBYDIR)
43       AC_SUBST(RUBYDIR)
44    
45       AC_CONFIG_FILES([server/bugcommd], [chmod +x server/bugcommd])
46    fi
47    
48    # Clients.
49  if test x$enable_clients != xno; then  if test x$enable_clients != xno; then
50     BUGCOMM_SUBDIRS="$BUGCOMM_SUBDIRS clients"     BUGCOMM_SUBDIRS="$BUGCOMM_SUBDIRS clients"
51    
# Line 56  AC_SUBST(BUGCOMM_SUBDIRS) Line 87  AC_SUBST(BUGCOMM_SUBDIRS)
87    
88  AC_CONFIG_FILES([Makefile clients/Makefile clients/lib/Makefile  AC_CONFIG_FILES([Makefile clients/Makefile clients/lib/Makefile
89                   clients/bugcomm/Makefile clients/include/Makefile                   clients/bugcomm/Makefile clients/include/Makefile
90                   clients/cgi/Makefile])                   clients/cgi/Makefile server/Makefile server/bts/Makefile])
91  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26