~ubuntu-branches/ubuntu/maverick/sysstat/maverick

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Robert Luberda
  • Date: 2009-06-07 21:37:20 UTC
  • mfrom: (1.1.15 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090607213720-4sixxpv1y32q27qn
Tags: 9.0.3-2
Remove some debugging cruft left by accident.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# Modified by Sebastien Godard (sysstat <at> orange.fr)
5
5
 
6
6
# Initialization of $PACKAGE_VERSION and $PACKAGE_NAME variables
7
 
AC_INIT(sysstat, 9.0.1)
 
7
AC_INIT(sysstat, 9.0.3)
8
8
 
9
9
# Ensure that a recent enough version of Autoconf is being used
10
10
AC_PREREQ(2.53)
12
12
# Check whether the configure script is in the right dir
13
13
AC_CONFIG_SRCDIR(ioconf.h)
14
14
 
15
 
# Set directories
16
 
if test -d /etc/init.d; then
17
 
   if test -d /etc/init.d/rc2.d; then
18
 
      RC_DIR=/etc/init.d
19
 
      INITD_DIR=.
20
 
   else
21
 
      RC_DIR=/etc
22
 
      INITD_DIR=init.d
23
 
   fi
24
 
   INIT_DIR=/etc/init.d
25
 
elif test -d /sbin/init.d; then
26
 
   RC_DIR=/sbin/init.d
27
 
   INIT_DIR=/sbin/init.d
28
 
   INITD_DIR=.
29
 
else
30
 
   RC_DIR=/etc/rc.d
31
 
   INIT_DIR=/etc/rc.d/init.d
32
 
   INITD_DIR=init.d
33
 
fi
34
 
AC_SUBST(RC_DIR)
35
 
AC_SUBST(INIT_DIR)
36
 
AC_SUBST(INITD_DIR)
37
 
 
38
15
# Check programs
39
16
echo .
40
17
echo Check programs:
121
98
#  --disable-documentation do not install documentation (man pages...)
122
99
#
123
100
# Some influential environment variables:
 
101
#  rcdir         directory where startup scripts are installed
124
102
#  sa_lib_dir    sadc, sa1 and sa2 directory
125
103
#  sa_dir        system activity daily datafiles directory
126
104
#  conf_dir      sysstat configuration directory (default is /etc/sysconfig)
128
106
#  compressafter number of days after which datafiles are compressed
129
107
#  man_group     group for man pages
130
108
#  cron_owner    crontab owner
131
 
#  cron_interval crontab sampling interval.
 
109
#  cron_interval crontab sampling interval
132
110
#
133
111
# Fine tuning the installation directories:
134
112
#  --mandir=DIR           man documentation directory [PREFIX/man]
 
113
#  --docdir=DIR           other documentation directory [PREFIX/share/doc]
135
114
#
136
115
# Installation directories:
137
116
#  --prefix=PREFIX         install architecture-independent files in PREFIX
139
118
#  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
140
119
#                            [PREFIX]
141
120
 
 
121
# Set directories
 
122
if test -d /etc/init.d && test ! -L /etc/init.d; then
 
123
   if test -d /etc/init.d/rc2.d; then
 
124
      RC_DIR=/etc/init.d
 
125
      INITD_DIR=.
 
126
   else
 
127
      RC_DIR=/etc
 
128
      INITD_DIR=init.d
 
129
   fi
 
130
   INIT_DIR=/etc/init.d
 
131
elif test -d /sbin/init.d; then
 
132
   RC_DIR=/sbin/init.d
 
133
   INIT_DIR=/sbin/init.d
 
134
   INITD_DIR=.
 
135
else
 
136
   RC_DIR=/etc/rc.d
 
137
   INIT_DIR=/etc/rc.d/init.d
 
138
   INITD_DIR=init.d
 
139
fi
 
140
 
 
141
AC_MSG_CHECKING(run-commands directory)
 
142
AC_ARG_VAR([rcdir],[run-commands directory])
 
143
if test x$rcdir != x""; then
 
144
        # Override previous rc directories values
 
145
        RC_DIR=$rcdir
 
146
        INIT_DIR=$rcdir/init.d
 
147
        INITD_DIR=init.d
 
148
fi
 
149
AC_MSG_RESULT($RC_DIR)
 
150
if test ! -d $RC_DIR; then
 
151
        echo "INFO: Directory ${RC_DIR} doesn't exist."
 
152
        echo "INFO: Startup scripts won't be installed."
 
153
fi
 
154
 
 
155
AC_SUBST(RC_DIR)
 
156
AC_SUBST(INIT_DIR)
 
157
AC_SUBST(INITD_DIR)
 
158
 
142
159
# Set sadc directory
143
160
if test $prefix != "NONE"; then
144
161
   AuxPrefix=$prefix
201
218
              AC_HELP_STRING([--disable-nls],
202
219
                             [disable National Language Support]),
203
220
                             AUX_NLS=$enableval,AUX_NLS=yes)
204
 
if  test  $AUX_NLS !=  "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
 
221
if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
205
222
   AUX_NLS="yes"
206
223
   NLS="y"
207
224
else
466
483
AC_MSG_RESULT($AUX_DOC)
467
484
AC_SUBST(INSTALL_DOC)
468
485
 
 
486
# Set directory for installing manual pages (see comment in Makefile)
 
487
if test $mandir != "\${datarootdir}/man"; then
 
488
        AuxMandir=$mandir
 
489
else
 
490
        AuxMandir=$AuxPrefix/man
 
491
fi
 
492
AC_SUBST(AuxMandir)
 
493
 
469
494
# Create files
470
495
echo .
471
496
echo Now create files:
496
521
   rc directory:                ${RC_DIR}
497
522
   Init directory:              ${INIT_DIR}
498
523
   Configuration directory:     ${SYSCONFIG_DIR}
 
524
   Man pages directory:         $AuxMandir
499
525
   Compiler:                    $CC
500
526
   Compiler flags:              $CFLAGS
501
527
"