configure.ac
author Frank Zschockelt <lm@freakysoft.de>
Sat, 13 Feb 2016 12:16:45 +0100
changeset 705 1b455131d0f1
parent 701 bbbe2d24eea4
child 716 ec4cf766b31f
permissions -rw-r--r--
Bumped version to 1.5.3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
521
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents: 487
diff changeset
     1
AC_PREREQ(2.60)
705
1b455131d0f1 Bumped version to 1.5.3
Frank Zschockelt <lm@freakysoft.de>
parents: 701
diff changeset
     2
AC_INIT([Loudmouth], [1.5.3])
303
2b9069a3ac84 Set proper copyright notices
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 296
diff changeset
     3
AC_COPYRIGHT([
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
     4
        Copyright (C) 2003-2008 Imendio AB
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
     5
        Copyright (C) 2007 Collabora Ltd
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
     6
        Copyright (C) 2007 Nokia Corporation
303
2b9069a3ac84 Set proper copyright notices
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 296
diff changeset
     7
])
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
     8
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
     9
AC_CONFIG_SRCDIR(loudmouth/loudmouth.h)
521
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents: 487
diff changeset
    10
AC_CONFIG_HEADERS(config.h)
50294ce6587e Updated the build system to use a build directory and a common marshal Makefile.
Mikael Hallendal <micke@imendio.com>
parents: 487
diff changeset
    11
AC_CONFIG_AUX_DIR(build)
691
3091cdf27671 Fix libtoolize warnings
Frank Zschockelt <lm@freakysoft.de>
parents: 686
diff changeset
    12
AC_CONFIG_MACRO_DIR([m4])
656
7b54555425a3 Use subdir-objects option for autoconf
Johannes Wienke <languitar@semipol.de>
parents: 616
diff changeset
    13
AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-define subdir-objects -Wall])
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    14
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    15
AM_MAINTAINER_MODE
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    16
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    17
AC_CANONICAL_HOST
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    18
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    19
os_win32=no
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    20
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    21
case "$host_os" in
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    22
  *mingw32*)
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    23
    os_win32=yes
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    24
esac
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    25
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    26
if test "$os_win32" = "yes"; then
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    27
  if test "$enable_static" = "yes" -o "$enable_static" = ""; then
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    28
    AC_MSG_WARN([Disabling static library build, must build as DLL on Windows.])
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    29
    enable_static=no
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    30
  fi
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    31
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    32
  if test "$enable_shared" = "no"; then
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    33
    AC_MSG_WARN([Enabling shared library build, must build as DLL on Windows.])
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    34
  fi
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    35
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    36
  enable_shared=yes
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    37
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    38
  CFLAGS="$CFLAGS -mms-bitfields"
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    39
  LDFLAGS="$LDFLAGS -no-undefined"
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    40
fi
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    41
680
13923a5a7b89 try generic cc before testing for gcc
Christoph Moench-Tegeder <cmt@burggraben.net>
parents: 671
diff changeset
    42
AC_PROG_CC([cc gcc])
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    43
AC_ISC_POSIX
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    44
AC_HEADER_STDC
699
7cb765b626a9 Use "dnl" for configure.ac-only comments
Frank Zschockelt <lm@freakysoft.de>
parents: 698
diff changeset
    45
dnl automake warns about not using AM_PROG_AR
7cb765b626a9 Use "dnl" for configure.ac-only comments
Frank Zschockelt <lm@freakysoft.de>
parents: 698
diff changeset
    46
dnl but automake <= 1.11 doesn't recognize it
694
258b47869df5 Fix automake warning about requiring AM_PROG_AR in configure.ac
Frank Zschockelt <lm@freakysoft.de>
parents: 691
diff changeset
    47
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    48
AC_LIBTOOL_WIN32_DLL
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    49
AM_PROG_LIBTOOL
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    50
296
54393019edac Improved libtool versioning, added copyrights, cleaned up configure.ac
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 293
diff changeset
    51
LT_CURRENT=1
54393019edac Improved libtool versioning, added copyrights, cleaned up configure.ac
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 293
diff changeset
    52
LT_REVISION=0
54393019edac Improved libtool versioning, added copyrights, cleaned up configure.ac
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 293
diff changeset
    53
LT_AGE=1
54393019edac Improved libtool versioning, added copyrights, cleaned up configure.ac
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 293
diff changeset
    54
AC_SUBST([LT_CURRENT])
54393019edac Improved libtool versioning, added copyrights, cleaned up configure.ac
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 293
diff changeset
    55
AC_SUBST([LT_REVISION])
54393019edac Improved libtool versioning, added copyrights, cleaned up configure.ac
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 293
diff changeset
    56
AC_SUBST([LT_AGE])
54393019edac Improved libtool versioning, added copyrights, cleaned up configure.ac
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 293
diff changeset
    57
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    58
AM_PATH_GLIB_2_0
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    59
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
    60
AC_CHECK_HEADERS([arpa/inet.h fcntl.h memory.h netdb.h netinet/in.h netinet/in_systm.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
337
7bc0c6ad11ff Fixes LM-118 so that building on Mac OS X works again.
Richard Hult <richard@imendio.com>
parents: 335
diff changeset
    61
AC_CHECK_HEADERS([winsock2.h arpa/nameser_compat.h])
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    62
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    63
if test "$ac_cv_header_winsock2_h" = "yes"; then
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    64
  # If we have <winsock2.h>, assume we find the functions
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    65
  # in -lws2_32 (ws2_32 is winsock v2, wsock32 is v1.1)
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    66
  LIBS="-lws2_32 -lgdi32 $LIBS"
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    67
fi
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
    68
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    69
IDT_COMPILE_WARNINGS
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    70
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    71
changequote(,)dnl
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    72
if test "x$GCC" = "xyes"; then
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    73
  case " $CFLAGS " in
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    74
  *[\ \	]-Wall[\ \	]*) ;;
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    75
  *) CFLAGS="$CFLAGS -Wall" ;;
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    76
  esac
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    77
fi
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    78
changequote([,])dnl
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    79
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    80
AC_SUBST(CFLAGS)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    81
AC_SUBST(LDFLAGS)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    82
589
5ed52ee1e2d9 Made Tests Optional to Allow Older glib
Jayson Vantuyl <jvantuyl@engineyard.com>
parents: 568
diff changeset
    83
GLIB2_REQUIRED=2.12.4
5ed52ee1e2d9 Made Tests Optional to Allow Older glib
Jayson Vantuyl <jvantuyl@engineyard.com>
parents: 568
diff changeset
    84
GLIB2_TEST_REQUIRED=2.16.0
701
bbbe2d24eea4 Update required GnuTLS version number
Frank Zschockelt <lm@freakysoft.de>
parents: 699
diff changeset
    85
GNUTLS_REQUIRED=3.0.20
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    86
LIBTASN1_REQUIRED=0.2.6
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    87
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    88
AC_SUBST(GLIB2_REQUIRED)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    89
AC_SUBST(GNUTLS_REQUIRED)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    90
AC_SUBST(LIBTASN1_REQUIRED)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    91
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    92
LM_CHECK_TIMEZONE
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
    93
698
a4fe802b8f5c Add --with-pkgconfigdir ./configure option
Frank Zschockelt <lm@freakysoft.de>
parents: 696
diff changeset
    94
dnl Query for installation path of *.pc files, available with pkg-config>=0.27
a4fe802b8f5c Add --with-pkgconfigdir ./configure option
Frank Zschockelt <lm@freakysoft.de>
parents: 696
diff changeset
    95
m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR])
a4fe802b8f5c Add --with-pkgconfigdir ./configure option
Frank Zschockelt <lm@freakysoft.de>
parents: 696
diff changeset
    96
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
    97
PKG_CHECK_MODULES(LOUDMOUTH,
422
1c00df7a8b11 Depend on GObject and initialize GType
Mikael Hallendal <micke@imendio.com>
parents: 397
diff changeset
    98
                  glib-2.0 >= $GLIB2_REQUIRED
465
dcbd87ebdeed Removed soup dependencies from the build
Mikael Hallendal <micke@imendio.com>
parents: 435
diff changeset
    99
                  gobject-2.0 >= $GLIB2_REQUIRED)
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   100
589
5ed52ee1e2d9 Made Tests Optional to Allow Older glib
Jayson Vantuyl <jvantuyl@engineyard.com>
parents: 568
diff changeset
   101
PKG_CHECK_MODULES(LOUDMOUTHTEST,
663
3697251ef911 configure: make it compatible with current glib/gtk
Paul Fertser <fercerpav@gmail.com>
parents: 656
diff changeset
   102
                  glib-2.0 >= $GLIB2_TEST_REQUIRED
3697251ef911 configure: make it compatible with current glib/gtk
Paul Fertser <fercerpav@gmail.com>
parents: 656
diff changeset
   103
                  gobject-2.0 >= $GLIB2_REQUIRED,
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   104
                  enable_test=yes, enable_test=no)
589
5ed52ee1e2d9 Made Tests Optional to Allow Older glib
Jayson Vantuyl <jvantuyl@engineyard.com>
parents: 568
diff changeset
   105
if test "$enable_test" = yes; then
5ed52ee1e2d9 Made Tests Optional to Allow Older glib
Jayson Vantuyl <jvantuyl@engineyard.com>
parents: 568
diff changeset
   106
  TEST_DIRS=tests
5ed52ee1e2d9 Made Tests Optional to Allow Older glib
Jayson Vantuyl <jvantuyl@engineyard.com>
parents: 568
diff changeset
   107
else
5ed52ee1e2d9 Made Tests Optional to Allow Older glib
Jayson Vantuyl <jvantuyl@engineyard.com>
parents: 568
diff changeset
   108
  TEST_DIRS=
5ed52ee1e2d9 Made Tests Optional to Allow Older glib
Jayson Vantuyl <jvantuyl@engineyard.com>
parents: 568
diff changeset
   109
fi
5ed52ee1e2d9 Made Tests Optional to Allow Older glib
Jayson Vantuyl <jvantuyl@engineyard.com>
parents: 568
diff changeset
   110
AC_SUBST([TEST_DIRS])
5ed52ee1e2d9 Made Tests Optional to Allow Older glib
Jayson Vantuyl <jvantuyl@engineyard.com>
parents: 568
diff changeset
   111
155
d24c4392d4e3 2006-06-16 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 142
diff changeset
   112
PKG_CHECK_MODULES(LIBIDN, libidn, have_idn=yes, have_idn=no)
d24c4392d4e3 2006-06-16 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 142
diff changeset
   113
if test "x$have_idn" = "xyes"; then
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   114
        AC_DEFINE(HAVE_IDN, 1, [Define if IDN support is included])
155
d24c4392d4e3 2006-06-16 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 142
diff changeset
   115
fi
d24c4392d4e3 2006-06-16 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 142
diff changeset
   116
141
f918e888a0aa 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 140
diff changeset
   117
dnl Gtk doc
696
ffe575f5c205 Make gtk-doc.m4 optional
Frank Zschockelt <lm@freakysoft.de>
parents: 694
diff changeset
   118
m4_ifdef([GTK_DOC_CHECK], [
ffe575f5c205 Make gtk-doc.m4 optional
Frank Zschockelt <lm@freakysoft.de>
parents: 694
diff changeset
   119
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
ffe575f5c205 Make gtk-doc.m4 optional
Frank Zschockelt <lm@freakysoft.de>
parents: 694
diff changeset
   120
],[
ffe575f5c205 Make gtk-doc.m4 optional
Frank Zschockelt <lm@freakysoft.de>
parents: 694
diff changeset
   121
AM_CONDITIONAL([ENABLE_GTK_DOC], false)
ffe575f5c205 Make gtk-doc.m4 optional
Frank Zschockelt <lm@freakysoft.de>
parents: 694
diff changeset
   122
])
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   123
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   124
dnl define a MAINT-like variable REBUILD which is set if Perl
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   125
dnl and awk are found, so autogenerated sources can be rebuilt
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   126
AC_ARG_ENABLE(rebuilds,
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   127
              AS_HELP_STRING([--enable-rebuilds=@<:@no/yes/auto@:>@],
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   128
                             [Enable source autogeneration rules [[default=yes]]]), ,
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   129
              enable_rebuilds=yes)
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   130
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   131
REBUILD=\#
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   132
if test "x$enable_rebuilds" = "xyes" && \
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   133
     test -n "$PERL" && \
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   134
     $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   135
     test -n "$AWK" ; then
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   136
  REBUILD=
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   137
fi
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   138
AC_SUBST(REBUILD)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   139
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   140
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   141
dnl +--------------------------------------------------------+
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   142
dnl | Checking for libnsl and libsocket need on some systems |-
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   143
dnl +--------------------------------------------------------+
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   144
AC_CHECK_LIB(nsl,gethostbyname)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   145
AC_CHECK_LIB(socket,socket)
684
05cf9d8bf320 Check for __res_query in libresolv
Mikael Berthe <mikael@lilotux.net>
parents: 680
diff changeset
   146
AC_CHECK_LIB(resolv,__res_query)
242
b0b17385a143 Added check for resolv to configure.ac
Mikael Hallendal <micke@imendio.com>
parents: 239
diff changeset
   147
AC_CHECK_LIB(resolv,res_query)
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   148
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   149
dnl +--------------------------------------------------------+
562
1ccc33f5f91f Applied patch to check for GSSAPI during configure [#20]
Jelmer Vernooij <jelmer@samba.org>
parents: 537
diff changeset
   150
dnl | Checking for SASL GSSAPI support                       |-
1ccc33f5f91f Applied patch to check for GSSAPI during configure [#20]
Jelmer Vernooij <jelmer@samba.org>
parents: 537
diff changeset
   151
dnl +--------------------------------------------------------+
1ccc33f5f91f Applied patch to check for GSSAPI during configure [#20]
Jelmer Vernooij <jelmer@samba.org>
parents: 537
diff changeset
   152
AC_PATH_PROG(KRB5CONFIG, krb5-config, no)
1ccc33f5f91f Applied patch to check for GSSAPI during configure [#20]
Jelmer Vernooij <jelmer@samba.org>
parents: 537
diff changeset
   153
enable_gssapi=no
1ccc33f5f91f Applied patch to check for GSSAPI during configure [#20]
Jelmer Vernooij <jelmer@samba.org>
parents: 537
diff changeset
   154
if test "x$KRB5CONFIG" != "xno"
1ccc33f5f91f Applied patch to check for GSSAPI during configure [#20]
Jelmer Vernooij <jelmer@samba.org>
parents: 537
diff changeset
   155
then
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   156
        AC_CHECK_HEADERS([gssapi.h gssapi/gssapi.h])
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   157
        enable_gssapi=yes
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   158
        AC_DEFINE(HAVE_GSSAPI, 1, [whether to use GSSAPI support.])
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   159
        LIBS="$LIBS `$KRB5CONFIG --libs gssapi`"
562
1ccc33f5f91f Applied patch to check for GSSAPI during configure [#20]
Jelmer Vernooij <jelmer@samba.org>
parents: 537
diff changeset
   160
fi
1ccc33f5f91f Applied patch to check for GSSAPI during configure [#20]
Jelmer Vernooij <jelmer@samba.org>
parents: 537
diff changeset
   161
AM_CONDITIONAL(USE_GSSAPI, test x$enable_gssapi = xyes)
1ccc33f5f91f Applied patch to check for GSSAPI during configure [#20]
Jelmer Vernooij <jelmer@samba.org>
parents: 537
diff changeset
   162
1ccc33f5f91f Applied patch to check for GSSAPI during configure [#20]
Jelmer Vernooij <jelmer@samba.org>
parents: 537
diff changeset
   163
dnl +--------------------------------------------------------+
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   164
dnl | Checking for SSL support                               |-
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   165
dnl +--------------------------------------------------------+
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   166
AC_ARG_WITH(ssl,
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   167
            AS_HELP_STRING([--with-ssl=@<:@gnutls|openssl|no@:>@],
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   168
                           [Which SSL implementation to use [[default=gnutls]]]),
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   169
            ac_ssl=$withval,
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   170
            ac_ssl=gnutls)
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   171
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   172
AC_ARG_WITH(openssl-includes,
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   173
            AC_HELP_STRING([--with-openssl-includes=DIR],[OpenSSL includes]),
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   174
            [ use_openssl=yes CPPFLAGS="$CPPFLAGS -I$withval" ]
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   175
            )
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   176
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   177
AC_ARG_WITH(openssl-libs,
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   178
            AC_HELP_STRING([--with-openssl-libs=DIR],[OpenSSL libraries]),
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   179
            [ use_openssl=yes LDFLAGS="$LDFLAGS -L$withval" ]
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   180
            )
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   181
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   182
enable_ssl=no
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   183
if test "x$ac_ssl" = "xgnutls"; then
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   184
  dnl Look for GnuTLS
603
2c3812feeb76 A patch is required for loudmouth configure script to detect gnutls (by
Frank Zschockelt <lm@freakysoft.de>
parents: 597
diff changeset
   185
  PKG_CHECK_EXISTS([gnutls >= $GNUTLS_REQUIRED], have_libgnutls=yes, have_libgnutls=no)
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   186
  if test "x$have_libgnutls" = "xyes"; then
603
2c3812feeb76 A patch is required for loudmouth configure script to detect gnutls (by
Frank Zschockelt <lm@freakysoft.de>
parents: 597
diff changeset
   187
    PKG_CHECK_MODULES(LIBGNUTLS, [gnutls >= $GNUTLS_REQUIRED])
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   188
    CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   189
    LIBS="$LIBS $LIBGNUTLS_LIBS"
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   190
    AC_DEFINE(HAVE_GNUTLS, 1, [whether to use GnuTSL support.])
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   191
    enable_ssl=GnuTLS
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   192
  else
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   193
    AC_MSG_ERROR([GnuTLS was not found, use
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   194
                --with-ssl=[[no|openssl]] to build without SSL support or
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   195
                with OpenSSL])
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   196
  fi
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   197
elif test "$ac_ssl" = "openssl"; then
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   198
  dnl Look for OpenSSL
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   199
  AC_CHECK_HEADERS([openssl/ssl.h])
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   200
  OLDLIBS="$LIBS"
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   201
  AC_CHECK_LIB(crypto,
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   202
               BIO_f_base64,
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   203
               [AC_CHECK_LIB(ssl,
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   204
                             SSL_new,
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   205
                             [SSL_LIB="-lssl -lcrypto"
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   206
                             AC_DEFINE(HAVE_OPENSSL,
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   207
                                       [],
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   208
                                       [Have OpenSSL])],
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   209
                             [have_openssl=no],
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   210
                             [-lcrypto])],
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   211
               [have_openssl=no],
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   212
               [])
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   213
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   214
  if test "x$have_openssl" = "xno"; then
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   215
    AC_MSG_ERROR([OpenSSL was not found, use --with-ssl=[[no|gnutls]] to
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   216
                  build without SSL support or with GnuTLS])
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   217
  else
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   218
    LIBS="$OLDLIBS $SSL_LIB"
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   219
    enable_ssl=OpenSSL
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   220
  fi
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   221
else
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   222
        echo "Disabling SSL support"
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   223
fi
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   224
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   225
if test x$enable_ssl != xno; then
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   226
        AC_DEFINE(HAVE_SSL, 1, [whether to use SSL support.])
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   227
else
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   228
        if test x$ac_ssl != xno; then
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   229
                AC_MSG_ERROR([No SSL implementation was found, if you do not want to build with SSL use --with-ssl=no])
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   230
        fi
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   231
fi
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   232
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   233
AM_CONDITIONAL(USE_OPENSSL, test x$enable_ssl = xOpenSSL)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   234
AM_CONDITIONAL(USE_GNUTLS, test x$enable_ssl = xGnuTLS)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   235
293
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   236
dnl +-------------------------------------------------------------------+
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   237
dnl | Checking for libasyncns                                           |
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   238
dnl +-------------------------------------------------------------------+
597
1609c73adacc Applied parallel make and asyncns patches from the mailing list.
Kirk Haines <khaines@engineyard.com>
parents: 589
diff changeset
   239
AC_ARG_WITH(asyncns,
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   240
        AS_HELP_STRING([--with-asyncns],
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   241
                [define whether to use libasyncns, @<:@default=no@:>@ (yes/no)]),
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   242
        ac_asyncns=$withval,
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   243
        ac_asyncns=no)
293
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   244
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   245
enable_asyncns=no
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   246
if test x$ac_asyncns != xno; then
597
1609c73adacc Applied parallel make and asyncns patches from the mailing list.
Kirk Haines <khaines@engineyard.com>
parents: 589
diff changeset
   247
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   248
        PKG_CHECK_MODULES(ASYNCNS, [libasyncns >= 0.3],
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   249
                        [enable_asyncns=yes],
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   250
                        [enable_asyncns=no])
616
b853d91bc249 Remove internal asyncns
Frank Zschockelt <lm@freakysoft.de>
parents: 603
diff changeset
   251
fi
b853d91bc249 Remove internal asyncns
Frank Zschockelt <lm@freakysoft.de>
parents: 603
diff changeset
   252
b853d91bc249 Remove internal asyncns
Frank Zschockelt <lm@freakysoft.de>
parents: 603
diff changeset
   253
if test "x$enable_asyncns" = "xyes"; then
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   254
        AC_DEFINE(HAVE_ASYNCNS, 1, [Whether to use libasyncns])
293
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   255
else
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   256
        echo "Not using asynchronous dns lookups"
293
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   257
fi
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   258
597
1609c73adacc Applied parallel make and asyncns patches from the mailing list.
Kirk Haines <khaines@engineyard.com>
parents: 589
diff changeset
   259
AC_SUBST(ASYNCNS_CFLAGS)
1609c73adacc Applied parallel make and asyncns patches from the mailing list.
Kirk Haines <khaines@engineyard.com>
parents: 589
diff changeset
   260
AC_SUBST(ASYNCNS_LIBS)
1609c73adacc Applied parallel make and asyncns patches from the mailing list.
Kirk Haines <khaines@engineyard.com>
parents: 589
diff changeset
   261
293
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   262
dnl +-------------------------------------------------------------------+
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   263
dnl | Checking for Linux TCP/IP stack                                   |
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   264
dnl +-------------------------------------------------------------------+
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   265
AC_CHECK_DECL(TCP_KEEPCNT, [ac_use_keepalives=yes], [ac_use_keepalives=no], [
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   266
#include <sys/socket.h>
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   267
#include <netinet/in.h>
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   268
#include <netinet/ip.h>
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   269
#include <netinet/tcp.h>
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   270
])
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   271
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   272
use_keepalives=no
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   273
if test x$ac_use_keepalives != xno; then
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   274
        use_keepalives=yes
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   275
        AC_DEFINE(USE_TCP_KEEPALIVES, 1, [Whether to use Linux TCP keepalives])
293
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   276
fi
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   277
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   278
dnl +-------------+
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   279
dnl | Build Flags |--------------------------------------------
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   280
dnl +-------------+
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   281
DOC_CFLAGS="$CFLAGS"
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   282
CFLAGS="$CFLAGS $WARN_CFLAGS"
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   283
AC_SUBST(DOC_CFLAGS)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   284
AC_SUBST(CFLAGS)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   285
AC_SUBST(CPPFLAGS)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   286
AC_SUBST(LDFLAGS)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   287
dnl -----------------------------------------------------------
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   288
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   289
dnl +--------------+
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   290
dnl | Debug output |-------------------------------------------
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   291
dnl +--------------+
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   292
140
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   293
AC_ARG_ENABLE(debug,
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   294
              AS_HELP_STRING([--enable-debug=@<:@no/yes/auto@:>@],
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   295
                             [Enable debugging [[default=yes]]]), ,
103227122f45 2006-04-19 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 138
diff changeset
   296
              enable_debug=yes)
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   297
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   298
if test x$enable_debug = xno ; then
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   299
        echo "Debugging disabled"
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   300
        LOUDMOUTH_CFLAGS="$LOUDMOUTH_CFLAGS -DLM_NO_DEBUG"
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   301
else
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   302
        echo "Debugging enabled"
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   303
fi
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   304
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   305
AC_SUBST(LOUDMOUTH_CFLAGS)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   306
AC_SUBST(LOUDMOUTH_LIBS)
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   307
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   308
AC_OUTPUT([
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   309
Makefile
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   310
docs/Makefile
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   311
docs/reference/Makefile
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   312
loudmouth/Makefile
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   313
examples/Makefile
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   314
tests/Makefile
171
118ca6c4520e 2006-09-10 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents: 159
diff changeset
   315
tests/parser-tests/Makefile
568
7932b95b5211 Removed unmaintained spec-file
Mikael Hallendal <micke@imendio.com>
parents: 562
diff changeset
   316
loudmouth-1.0.pc])
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   317
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   318
dnl ==========================================================================
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   319
echo "
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   320
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   321
        Loudmouth $VERSION
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   322
        ==================
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   323
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   324
        prefix:                   ${prefix}
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   325
        compiler:                 ${CC}
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   326
        Have IDN support:         ${have_idn}
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   327
        Enable SSL:               ${enable_ssl}
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   328
        Asynchronous DNS:         ${enable_asyncns}
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   329
        Linux TCP keepalives:     ${use_keepalives}
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   330
        Enable Debug:             ${enable_debug}
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   331
        Enable GSSAPI:            ${enable_gssapi}
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   332
        Enable Documentation:     ${enable_gtk_doc}
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   333
        Enable Tests:             ${enable_test}
293
b4336dfa5b91 Enabled optional building of async DNS lookups and TCP keepalives.
Senko Rasic <senko.rasic@collabora.co.uk>
parents: 242
diff changeset
   334
664
f57b1b61e1fe Remove trailing whitespace and mixed indenting
Till Maas <opensource@till.name>
parents: 663
diff changeset
   335
        Now type 'make' to build Loudmouth
138
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   336
"
210cf8993393 2006-04-12 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
diff changeset
   337