diff options
| author | Lennart Poettering <lennart@poettering.net> | 2005-08-23 17:25:05 +0000 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2005-08-23 17:25:05 +0000 | 
| commit | 64064fb2d79d7b8539a5e1c2c13592b74da03544 (patch) | |
| tree | 3f77fe252d2a6680be51410245f27322750e2827 /configure.ac | |
| parent | 07a81966419eeabdcf69c29644e92aa8d99d6b6e (diff) | |
Some configure cleanups
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@423 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 13 | 
1 files changed, 6 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 2300100..be62e38 100644 --- a/configure.ac +++ b/configure.ac @@ -47,7 +47,7 @@ AC_PROG_GCC_TRADITIONAL  AC_PROG_LIBTOOL  # -# Detecting the linux distro for specific things like initscripts. +# Detecting the linux distribution for specific things like init scripts.  #  AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the Linux distribution to target: One of debian, gentoo, archlinux or none]))  if test "z$with_distro" = "z"; then @@ -59,14 +59,14 @@ fi  with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `  if test "z$with_distro" = "z"; then -   echo "Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO" +   AC_MSG_ERROR([Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO])     exit 1  else  case $with_distro in     debian|gentoo|archlinux)       ;;     *) -     echo "Your distribution (${with_distro}) is not yet supported, init scripts and dbus configuration will not be installed! (patches welcome)" +     AC_MSG_ERROR([Your distribution (${with_distro}) is not yet supported, init scripts and dbus configuration will not be installed! (patches welcome)])       ;;  esac  fi @@ -76,7 +76,6 @@ AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)  AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)  AM_CONDITIONAL(TARGET_ARCHLINUX, test x"$with_distro" = xarchlinux) -  test_gcc_flag() {     AC_LANG_CONFTEST([int main() {}])     $CC -c conftest.c $CFLAGS $@ > /dev/null 2> /dev/null @@ -93,7 +92,7 @@ if test "x$GCC" = "xyes" ; then      # Test whether rtnetlink.h can be included when compiled with -std=c99      # some distributions (e.g. archlinux) have broken headers that dont      # define __u64 with -std=c99 -    echo -n "checking whether rtnetlink.h can be included with -std=c99... " +    AC_MSG_CHECKING([checking whether rtnetlink.h can be included with -std=c99])      OLDCFLAGS="$CFLAGS"      CFLAGS="-std=c99"      AC_TRY_COMPILE([#include <linux/rtnetlink.h>], [], @@ -101,9 +100,9 @@ if test "x$GCC" = "xyes" ; then      if test x"$use_stdc99" = xyes; then          DESIRED_FLAGS="-std=c99 $DESIRED_FLAGS" -        echo "yes" +        AC_MSG_RESULT([yes])      else -        echo "no" +        AC_MSG_RESULT([no])      fi      CFLAGS="$OLDCFLAGS"  | 
