1# Copyright (C) 2010 Richard Hughes <richard@hughsie.com> 2AC_PREREQ(2.63) 3 4m4_define([cd_major_version], [1]) 5m4_define([cd_minor_version], [3]) 6m4_define([cd_micro_version], [5]) 7m4_define([cd_version], 8 [cd_major_version.cd_minor_version.cd_micro_version]) 9 10AC_INIT([colord],[cd_version],[http://www.freedesktop.org/software/colord/]) 11AC_CONFIG_SRCDIR(src) 12AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-xz tar-ustar foreign]) 13AC_CONFIG_HEADERS([config.h]) 14AC_CONFIG_MACRO_DIR([m4]) 15AC_PROG_LIBTOOL 16 17m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [GOBJECT_INTROSPECTION_CHECK([0.9.8])]) 18AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = xyes) 19GLIB_GSETTINGS 20 21# set up gtk-doc 22GTK_DOC_CHECK(1.9) 23 24# use this in cd-version.h 25CD_MAJOR_VERSION=cd_major_version 26CD_MINOR_VERSION=cd_minor_version 27CD_MICRO_VERSION=cd_micro_version 28AC_SUBST(VERSION) 29AC_SUBST(CD_MAJOR_VERSION) 30AC_SUBST(CD_MINOR_VERSION) 31AC_SUBST(CD_MICRO_VERSION) 32 33# libtool versioning - this applies to libcolord 34# 35# See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details 36# 37# increment; 38# CURRENT If the API or ABI interface has changed (reset REVISION to 0) 39# REVISION If the API and ABI remains the same, but bugs are fixed. 40# AGE Don't use. 41LT_CURRENT=2 42LT_REVISION=5 43LT_AGE=0 44AC_SUBST(LT_CURRENT) 45AC_SUBST(LT_REVISION) 46AC_SUBST(LT_AGE) 47 48# enable nice build output on automake1.11 49m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) 50 51AS_ALL_LINGUAS 52AC_PROG_CC_C99 53AC_PROG_INSTALL 54LT_INIT 55AM_PROG_CC_C_O 56IT_PROG_INTLTOOL([0.35.0]) 57AC_PATH_PROG(XSLTPROC, xsltproc) 58 59GNOME_COMPILE_WARNINGS([maximum],[ 60 -Wmissing-declarations 61 -Wcast-align 62 -Wwrite-strings 63 -Wreturn-type 64 -Wformat-nonliteral 65 -Wmissing-format-attribute 66 -Wclobbered 67 -Wempty-body 68 -Wignored-qualifiers 69 -Wsign-compare 70 -Wtype-limits 71 -Wuninitialized 72 -Waggregate-return 73 -Wdeclaration-after-statement 74 -Wshadow 75 -Wno-strict-aliasing 76 -Winline 77 -Wmissing-parameter-type 78 -Woverride-init 79 -Wno-discarded-qualifiers 80 -Wformat-signedness 81]) 82 83dnl --------------------------------------------------------------------------- 84dnl - gettext stuff 85dnl --------------------------------------------------------------------------- 86AM_GNU_GETTEXT_VERSION([0.17]) 87AM_GNU_GETTEXT([external]) 88 89GETTEXT_PACKAGE=AC_PACKAGE_NAME 90AC_SUBST(GETTEXT_PACKAGE) 91AC_DEFINE(GETTEXT_PACKAGE, "AC_PACKAGE_NAME", [foo]) 92 93LT_LIB_M 94AC_SUBST(LIBM) 95 96GLIB_GSETTINGS 97 98# check for PIE (position independent executable) support 99if test x$with_pic != xno; then 100 AX_CHECK_COMPILE_FLAG([-fPIE], 101 [AX_CHECK_LINK_FLAG([-fPIE -pie], 102 [PIE_CFLAGS="-fPIE" PIE_LDFLAGS="-pie"])]) 103 AC_SUBST(PIE_CFLAGS) 104 AC_SUBST(PIE_LDFLAGS) 105fi 106 107# check for full RELRO (relocation read-only) support 108AX_CHECK_LINK_FLAG([-Wl,-z,relro,-z,now], 109 [RELRO_LDFLAGS="-Wl,-z,relro,-z,now"]) 110AC_SUBST([RELRO_LDFLAGS]) 111 112dnl --------------------------------------------------------------------------- 113dnl - Check headers and functions that may not exist on all platforms 114dnl --------------------------------------------------------------------------- 115AC_CHECK_HEADERS([pwd.h]) 116AC_CHECK_HEADERS([syslog.h]) 117AC_CHECK_FUNC(getuid, AC_DEFINE([HAVE_GETUID], [], [getuid() is available])) 118 119dnl --------------------------------------------------------------------------- 120dnl - Check library dependencies 121dnl --------------------------------------------------------------------------- 122COLORD_REQUIRES_PRIVATE="lcms2" 123PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.44.0 gobject-2.0 gthread-2.0 gio-2.0 >= 2.25.9 gmodule-2.0) 124 125dnl --------------------------------------------------------------------------- 126dnl - Check Linux-specific dependencies 127dnl --------------------------------------------------------------------------- 128AC_CHECK_DEFINE([__unix__], enable_unix="yes", enable_unix="no") 129if test x$enable_unix != xno; then 130 PKG_CHECK_MODULES(GLIB_UNIX, gio-unix-2.0) 131 CD_IT8="\$(top_builddir)/client/cd-it8" 132 CD_CREATE_PROFILE="\$(top_builddir)/client/cd-create-profile" 133else 134 # look for a wine that can run our win32 and win64 client tools 135 case "$build_cpu" in 136 x86_64*) 137 AC_PATH_PROG(WINE, wine64, no);; 138 *) 139 AC_PATH_PROG(WINE, wine, no);; 140 esac 141 142 # we don't have wine, so try to use the system tools instead 143 if test $WINE = no; then 144 AC_PATH_PROG(CD_IT8, [cd-it8], no) 145 if test $CD_IT8 = no; then 146 AC_MSG_ERROR([Non-UNIX build requires either wine or colord]) 147 fi 148 AC_PATH_PROG(CD_CREATE_PROFILE, [cd-create-profile], no) 149 if test $CD_CREATE_PROFILE = no; then 150 AC_MSG_ERROR([Non-UNIX build requires either wine or colord]) 151 fi 152 else 153 CD_IT8="$WINE \$(top_builddir)/client/cd-it8\$(EXEEXT)" 154 CD_CREATE_PROFILE="$WINE \$(top_builddir)/client/cd-create-profile\$(EXEEXT)" 155 fi 156fi 157AC_SUBST([CD_IT8]) 158AC_SUBST([CD_CREATE_PROFILE]) 159 160# optional 161AC_ARG_ENABLE(session_helper, AS_HELP_STRING([--enable-session-helper],[Enable Session Helper]), 162 enable_session_helper=$enableval, enable_session_helper=$enable_unix) 163AM_CONDITIONAL(HAVE_SESSION_HELPER, test x$enable_session_helper = xyes) 164 165# optional 166AC_ARG_ENABLE(daemon, AS_HELP_STRING([--enable-daemon],[Enable daemon]), 167 enable_daemon=$enableval, enable_daemon=$enable_unix) 168AM_CONDITIONAL(HAVE_DAEMON, test x$enable_daemon = xyes) 169 170AC_ARG_ENABLE(gusb, AS_HELP_STRING([--enable-gusb],[Enable GUSB support]), 171 enable_gusb=$enableval, enable_gusb=yes) 172if test x$enable_gusb != xno; then 173 PKG_CHECK_MODULES(GUSB, gusb >= 0.2.7) 174 AC_DEFINE(HAVE_GUSB,1,[whether gusb is available]) 175fi 176AM_CONDITIONAL(HAVE_GUSB, test x$enable_gusb = xyes) 177 178PKG_CHECK_MODULES(LCMS, lcms2 >= 2.6) 179 180PKG_CHECK_MODULES(SQLITE, sqlite3) 181 182dnl **** Check for UDEV **** 183AC_ARG_ENABLE(udev, AS_HELP_STRING([--enable-udev],[Enable GUDEV support]), 184 enable_udev=$enableval, enable_udev=yes) 185if test x$enable_udev != xno; then 186 PKG_CHECK_MODULES(UDEV, libudev) 187 PKG_CHECK_MODULES(GUDEV, gudev-1.0) 188 COLORD_REQUIRES_PRIVATE+=", libudev" 189 AC_DEFINE(HAVE_UDEV,1,[Use UDEV support]) 190fi 191AM_CONDITIONAL(HAVE_UDEV, test x$enable_udev = xyes) 192 193dnl **** Bash completion **** 194AC_ARG_ENABLE(bash_completion, AS_HELP_STRING([--enable-bash-completion],[Enable bash completion]), 195 enable_bash_completion=$enableval, enable_bash_completion=yes) 196if test x$enable_bash_completion != xno; then 197 PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0]) 198 BASH_COMPLETIONS_DIR="`pkg-config --variable=completionsdir bash-completion`" 199 AC_SUBST([BASH_COMPLETIONS_DIR]) 200fi 201AM_CONDITIONAL([HAVE_BASH_COMPLETION],[test "x$enable_bash_completion" = "xyes"]) 202 203dnl --------------------------------------------------------------------------- 204dnl - Is docbook2man available? 205dnl --------------------------------------------------------------------------- 206AC_PATH_PROG(DOCBOOK2MAN, docbook2man, no) 207if test "$DOCBOOK2MAN" = "no" ; then 208 AC_MSG_WARN([docbook2man not found, will not be able to build man documentation (if tarball, pre-generated documentation will be installed)]) 209fi 210AM_CONDITIONAL(HAVE_DOCBOOK2MAN, [test "$DOCBOOK2MAN" != "no"]) 211 212dnl --------------------------------------------------------------------------- 213dnl - Build PolicyKit code 214dnl --------------------------------------------------------------------------- 215AC_ARG_ENABLE(polkit, AS_HELP_STRING([--enable-polkit],[enable PolicyKit]), 216 enable_polkit=$enableval,enable_polkit=yes) 217AM_CONDITIONAL(CD_BUILD_POLKIT, test x$enable_polkit = xyes) 218if test x$enable_polkit = xyes; then 219 PKG_CHECK_MODULES(POLKIT, polkit-gobject-1 >= 0.103) 220 AC_DEFINE(USE_POLKIT, 1, [if we should use PolicyKit]) 221 222 PKG_CHECK_EXISTS([polkit-gobject-1 >= 0.114], 223 [AC_DEFINE(POLKIT_HAS_AUTOPTR_MACROS, 1, [if PolKit has autoptr macros])], 224 []) 225fi 226 227dnl --------------------------------------------------------------------------- 228dnl - Select whether and where to install systemd system service files 229dnl --------------------------------------------------------------------------- 230 231AC_ARG_WITH([systemdsystemunitdir], 232 AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), 233 [], 234 [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) 235if test "x$with_systemdsystemunitdir" != "xno"; then 236 AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) 237fi 238AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$systemdsystemunitdir"]) 239 240dnl --------------------------------------------------------------------------- 241dnl - Where to install tmpfiles.d snippet rules 242dnl --------------------------------------------------------------------------- 243AC_ARG_WITH([tmpfilesdir], 244 AS_HELP_STRING([--with-tmpfilesdir=DIR], [Directory for tmpfiles.d snippet files]), 245 [], 246 [with_tmpfilesdir=$($PKG_CONFIG --variable=tmpfilesdir systemd)]) 247if test "x$with_tmpfilesdir" != "xno"; then 248 AC_SUBST([tmpfilesdir], [$with_tmpfilesdir]) 249fi 250 251dnl **** Check if we should build libcolordcompat **** 252AC_ARG_ENABLE(libcolordcompat, AS_HELP_STRING([--enable-libcolordcompat], 253 [Enable libcolordcompat.so which is used by ArgyllCMS]), 254 build_libcolordcompat=$enableval, build_libcolordcompat=no) 255if test x$build_libcolordcompat != xno; then 256 AC_DEFINE(BUILD_LIBCOLORDCOMPAT,1,[Build libcolordcompat.so]) 257fi 258AM_CONDITIONAL(BUILD_LIBCOLORDCOMPAT, test x$build_libcolordcompat = xyes) 259 260dnl --------------------------------------------------------------------------- 261dnl - Use systemd-login to track the process seat 262dnl --------------------------------------------------------------------------- 263AC_ARG_ENABLE(systemd-login, AS_HELP_STRING([--enable-systemd-login],[Build systemd seat-tracking support]), 264 enable_systemd_login=$enableval, enable_systemd_login=yes) 265AM_CONDITIONAL(HAVE_LIBSYSTEMD_LOGIN, test x$enable_systemd_login = xyes) 266if test x$enable_systemd_login != xno; then 267 PKG_CHECK_MODULES(LIBSYSTEMD, 268 [libsystemd], 269 [LIBSYSTEMD_LOGIN_CFLAGS=$LIBSYSTEMD_CFLAGS; 270 LIBSYSTEMD_LOGIN_LIBS=$LIBSYSTEMD_LIBS], 271 [PKG_CHECK_MODULES(LIBSYSTEMD_LOGIN, 272 [libsystemd-login >= 44])]) 273 AC_DEFINE([HAVE_LIBSYSTEMD_LOGIN], 1, [Define to 1 if systemd login is available]) 274fi 275AC_SUBST(HAVE_LIBSYSTEMD_LOGIN) 276AC_SUBST(LIBSYSTEMD_LOGIN_CFLAGS) 277AC_SUBST(LIBSYSTEMD_LOGIN_LIBS) 278 279dnl --------------------------------------------------------------------------- 280dnl - Where to install udev rules 281dnl --------------------------------------------------------------------------- 282AC_ARG_WITH([udevrulesdir], 283 AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules files]), 284 [], 285 [with_udevrulesdir=$($PKG_CONFIG --variable=udevdir udev)/rules.d]) 286AC_SUBST([udevrulesdir], [$with_udevrulesdir]) 287 288dnl --------------------------------------------------------------------------- 289dnl - Build DBus examples 290dnl --------------------------------------------------------------------------- 291AC_ARG_ENABLE(examples, AS_HELP_STRING([--enable-examples],[enable DBus example code]), 292 enable_examples=$enableval,enable_examples=yes) 293AM_CONDITIONAL(CD_BUILD_EXAMPLES, test x$enable_examples = xyes) 294if test x$enable_examples = xyes; then 295 PKG_CHECK_MODULES(DBUS, dbus-1, have_dbus=yes, have_dbus=no) 296 if test x$have_dbus = xno ; then 297 AC_MSG_ERROR([DBus examples require dbus-1 package, not found]) 298 fi 299fi 300 301dnl --------------------------------------------------------------------------- 302dnl - Build ArgyllCMS sensor 303dnl --------------------------------------------------------------------------- 304AC_ARG_ENABLE(argyllcms-sensor, AS_HELP_STRING([--enable-argyllcms-sensor],[enable ArgllCMS sensor]), 305 enable_argyllcms_sensor=$enableval,enable_argyllcms_sensor=yes) 306AM_CONDITIONAL(HAVE_ARGYLLCMS_SENSOR, test x$enable_argyllcms_sensor = xyes) 307if test x$enable_argyllcms_sensor = xyes; then 308 AC_PATH_PROG(SPOTREAD, spotread, no) 309 if test "$SPOTREAD" = "no" ; then 310 AC_MSG_ERROR([argyllcms sensor requires spotread, not found]) 311 fi 312fi 313 314dnl --------------------------------------------------------------------------- 315dnl - Build reverse engineering 316dnl --------------------------------------------------------------------------- 317AC_ARG_ENABLE(reverse, AS_HELP_STRING([--enable-reverse],[enable reverse engineering tools]), 318 enable_reverse=$enableval,enable_reverse=no) 319AM_CONDITIONAL(CD_BUILD_REVERSE, test x$enable_reverse = xyes) 320 321dnl **** Check for SANE **** 322AC_ARG_ENABLE(sane, AS_HELP_STRING([--enable-sane],[Enable SANE support]), 323 enable_sane=$enableval,enable_sane=no) 324has_sane=no 325if test x$enable_sane != xno; then 326 PKG_CHECK_MODULES(SANE, sane-backends, has_sane=yes, has_sane=no) 327 PKG_CHECK_MODULES(DBUS, dbus-1, have_dbus=yes, have_dbus=no) 328 if test $has_sane = "no"; then 329 # fall back to detecting the header for some distros 330 AC_CHECK_HEADER(sane/sane.h, has_sane=yes, has_sane=no) 331 if test $has_sane = "yes"; then 332 SANE_CFLAGS="" 333 SANE_LIBS="-lsane" 334 AC_SUBST(SANE_CFLAGS) 335 AC_SUBST(SANE_LIBS) 336 fi 337 if test x$enable_sane = xyes -a $has_sane = "no"; then 338 AC_MSG_ERROR([--enable-sane was specified and SANE was not found]) 339 fi 340 341 fi 342 if test x$enable_udev != xyes; then 343 has_sane=no 344 if test x$enable_sane = xyes; then 345 AC_MSG_ERROR([--enable-sane was specified and SANE requires udev support, not found]) 346 fi 347 AC_MSG_WARN([udev not found, SANE support will not be enabled]) 348 fi 349 if test x$have_dbus != xyes; then 350 has_sane=no 351 if test x$enable_sane = xyes; then 352 AC_MSG_ERROR([--enable-sane was specified and SANE requires dbus support, not found]) 353 fi 354 AC_MSG_WARN([dbus not found, SANE support will not be enabled]) 355 fi 356fi 357AM_CONDITIONAL(HAVE_SANE, test x$has_sane = xyes) 358if test x$has_sane = xyes; then 359 AC_DEFINE(HAVE_SANE,1,[Use SANE support for detecting scanners]) 360fi 361 362# custom daemon user 363AC_ARG_WITH( 364 [daemon_user], 365 AC_HELP_STRING([--with-daemon-user], 366 [User for running the colord daemon (root)]), 367 [daemon_user=$withval], 368 [daemon_user=root] 369) 370AC_SUBST(daemon_user) 371AC_DEFINE_UNQUOTED([DAEMON_USER], ["$daemon_user"], [Daemon user]) 372 373dnl --------------------------------------------------------------------------- 374dnl - Build VALA support 375dnl --------------------------------------------------------------------------- 376AC_ARG_ENABLE(vala, AS_HELP_STRING([--enable-vala],[build vala bindings]), 377 enable_vala=$enableval,enable_vala=no) 378if test x$found_introspection != xno -a x$enable_vala != xno; then 379 AC_PATH_PROG([VAPIGEN], [vapigen], []) 380 if test "x$VAPIGEN" = "x"; then 381 has_vapigen="no" 382 AC_MSG_WARN([vapigen not found, will not build Vala binding]) 383 else 384 has_vapigen="yes" 385 fi 386else 387 has_vapigen="no" 388 if test x$found_introspection = xno; then 389 AC_MSG_WARN([introspection not found, will not build Vala binding]) 390 fi 391fi 392AM_CONDITIONAL(HAVE_VAPIGEN, [test "x$has_vapigen" = "xyes"]) 393 394dnl --------------------------------------------------------------------------- 395dnl - Build session helper example 396dnl --------------------------------------------------------------------------- 397AC_ARG_ENABLE(session-example, AS_HELP_STRING([--enable-session-example],[Enable session example]), 398 enable_session_example=$enableval, enable_session_example=no) 399AM_CONDITIONAL(CD_BUILD_SESSION_EXAMPLE, test x$enable_session_example = xyes) 400if test x$enable_session_example != xno; then 401 PKG_CHECK_MODULES(GNOME_DESKTOP, gnome-desktop-3.0) 402 PKG_CHECK_MODULES(COLORD_GTK, colord-gtk >= 0.1.24) 403fi 404 405dnl --------------------------------------------------------------------------- 406dnl - Build extra print profiles (requires argyllcms) 407dnl --------------------------------------------------------------------------- 408AC_ARG_ENABLE(print-profiles, AS_HELP_STRING([--enable-print-profiles],[Build extra print profiles]), 409 enable_print_profiles=$enableval, enable_print_profiles=no) 410AM_CONDITIONAL(CD_BUILD_PRINT_PROFILES, test x$enable_print_profiles = xyes) 411if test x$enable_print_profiles != xno; then 412 AC_PATH_PROG(COLPROF, [colprof], false) 413 if test "$COLPROF" = "false"; then 414 AC_MSG_ERROR([colprof not found, please install argyllcms]) 415 fi 416 AC_DEFINE_UNQUOTED([TOOL_COLPROF], ["$COLPROF"], [Full path of colprof binary]) 417fi 418 419AC_ARG_ENABLE(installed_tests, 420 AS_HELP_STRING([--enable-installed-tests], 421 [Install test programs (default: no)]),, 422 [enable_installed_tests=no]) 423AM_CONDITIONAL(BUILDOPT_INSTALL_TESTS, test x$enable_installed_tests = xyes) 424 425# per-machine directory 426AC_SUBST(CD_SYSTEM_PROFILES_DIR, "\$(localstatedir)/lib/colord/icc") 427 428# only include the colord.pc Requires.private of the libraries we actually use 429AC_SUBST(COLORD_REQUIRES_PRIVATE) 430 431dnl --------------------------------------------------------------------------- 432dnl - Makefiles, etc. 433dnl --------------------------------------------------------------------------- 434AC_CONFIG_FILES([ 435Makefile 436contrib/Makefile 437contrib/session-helper/Makefile 438contrib/colord-sane/Makefile 439examples/Makefile 440man/Makefile 441doc/Makefile 442doc/api/Makefile 443doc/api/dbus/Makefile 444doc/api/version.xml 445data/Makefile 446data/cmf/Makefile 447data/illuminant/Makefile 448data/figures/Makefile 449data/profiles/Makefile 450data/ref/Makefile 451data/ti1/Makefile 452data/org.freedesktop.ColorManager.conf 453data/tests/Makefile 454policy/Makefile 455rules/Makefile 456rules/69-cd-sensors.rules 457po/Makefile.in 458src/Makefile 459src/plugins/Makefile 460src/sensors/Makefile 461client/Makefile 462lib/Makefile 463lib/colord/cd-version.h 464lib/colord/colord.pc 465lib/colord/Makefile 466lib/colorhug/Makefile 467lib/colorhug/colorhug.pc 468lib/colorhug/ch-version.h 469lib/compat/Makefile 470lib/dtp94/Makefile 471lib/huey/Makefile 472lib/munki/Makefile 473lib/ospark/Makefile 474]) 475AC_OUTPUT 476 477dnl ========================================================================== 478echo " 479 colord $VERSION 480 =================== 481 482 prefix: ${prefix} 483 datadir: ${datadir} 484 compiler: ${CC} 485 cflags: ${CFLAGS} 486 cppflags: ${CPPFLAGS} 487 cd-it8: ${CD_IT8} 488 cd-create-profile: ${CD_CREATE_PROFILE} 489 gobject-introspection: ${found_introspection} 490 PolicyKit support: ${enable_polkit} 491 Reverse engineering tools: ${enable_reverse} 492 BASH completion support: ${enable_bash_completion} 493 SANE support: ${has_sane} 494 Udev support: ${enable_udev} 495 GUsb support: ${enable_gusb} 496 Build daemon: ${enable_daemon} 497 Extra print profiles: ${enable_print_profiles} 498 Install tests: ${enable_installed_tests} 499 ArgyllCMS sensor: ${enable_argyllcms_sensor} 500 Building libcolordcompat: ${build_libcolordcompat} 501 Vala API generator: ${has_vapigen} 502 Daemon user: ${daemon_user} 503 udev rules.d dir: ${with_udevrulesdir} 504 systemd-login support: ${enable_systemd_login} 505 systemd service dir: ${with_systemdsystemunitdir} 506 tmpfiles.d dir: ${with_tmpfilesdir} 507 Session helper support: ${enable_session_helper} 508 Unix support: ${enable_unix} 509" 510 511 512# warn that dummy is basically broken 513if test x$enable_polkit = xno; then 514 echo "*******************************************************************" 515 echo "** YOU ARE NOT USING A SECURE DAEMON. ALL USERS CAN DO ANYTHING! **" 516 echo "*******************************************************************" 517fi 518 519# warn that using the default root user isn't always a good idea 520if test x$daemon_user = xroot; then 521 echo "*******************************************************************" 522 echo "** RUNNING THIS AS root ISN'T A GOOD IDEA SEE --with-daemon-user **" 523 echo "*******************************************************************" 524fi 525