comparison rogue5/configure.ac @ 47:2a59cf36ae38

rogue5: Add chroot support to the autotools system.
author elwin
date Fri, 07 Oct 2011 21:19:14 +0000
parents 655c317b6237
children ea960351de17
comparison
equal deleted inserted replaced
46:af6b05e86747 47:2a59cf36ae38
38 AC_CHECK_PROG([GROFF], [groff], [groff],) 38 AC_CHECK_PROG([GROFF], [groff], [groff],)
39 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],) 39 AC_CHECK_PROG([COLCRT], [colcrt], [colcrt],)
40 AC_CHECK_PROG([TBL], [tbl], [tbl],) 40 AC_CHECK_PROG([TBL], [tbl], [tbl],)
41 AC_CHECK_PROG([SED], [sed], [sed],) 41 AC_CHECK_PROG([SED], [sed], [sed],)
42 42
43 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue"] ) 43 AC_ARG_WITH(program-name, AC_HELP_STRING([--with-program-name=NAME],[alternate executable name]),[progname="$withval" ], [progname="rogue5"] )
44 PROGRAM=$progname 44 PROGRAM=$progname
45 AC_SUBST(PROGRAM) 45 AC_SUBST(PROGRAM)
46 46
47 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@])],[],[]) 47 AC_ARG_ENABLE(setgid, AC_HELP_STRING([--enable-setgid=NAME],[install executable as setgid with group ownership of NAME @<:@default=no@:>@])],[],[])
48 AC_MSG_CHECKING([if using setgid execute bit]) 48 AC_MSG_CHECKING([if using setgid execute bit])
146 else 146 else
147 AC_MSG_RESULT([disabled]) 147 AC_MSG_RESULT([disabled])
148 fi 148 fi
149 149
150 AC_SUBST(SAVEDIR) 150 AC_SUBST(SAVEDIR)
151
152 AC_ARG_ENABLE([destdir],[AC_HELP_STRING([--enable-destdir=DESTDIR], [chroot to install into])],[],[])
153 AC_MSG_CHECKING([for chrooted install])
154 if test "x$enable_destdir" = "xno" ; then
155 DESTDIR=
156 elif test "x$enable_destdir" = "xyes" ; then
157 DESTDIR=
158 elif test "x$enable_destdir" = "x" ; then
159 DESTDIR=
160 else
161 DESTDIR=$enable_destdir
162 fi
163
164 if test "x$DESTDIR" != "x" ; then
165 AC_DEFINE_UNQUOTED([DESTDIR], ["$DESTDIR"], [Define to a chroot to install into])
166 AC_MSG_RESULT([$DESTDIR])
167 else
168 AC_MSG_RESULT([disabled])
169 fi
170
171 AC_SUBST(DESTDIR)
151 172
152 AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[]) 173 AC_ARG_ENABLE([wizardmode],[AC_HELP_STRING([--enable-wizardmode], [enable availability of wizard mode @<:@default=no@:>@])],[],[])
153 AC_MSG_CHECKING([if wizard mode is enabled]) 174 AC_MSG_CHECKING([if wizard mode is enabled])
154 if test "x$enable_wizardmode" = "xno" ; then 175 if test "x$enable_wizardmode" = "xno" ; then
155 AC_MSG_RESULT([no]) 176 AC_MSG_RESULT([no])