ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/Search/trunk/configure.ac
Revision: 387
Committed: 2011-12-30T16:21:06-08:00 (10 years, 11 months ago) by douglas
Content type: text/x-m4
File size: 1594 byte(s)
Log Message:
Fixes for clang.


File Contents

# User Rev Content
1 douglas 296 # Douglas Thrift's Search Engine Autoconf Script
2 douglas 194 #
3     # Douglas Thrift
4     #
5 Douglas Thrift 331 # $Id$
6 douglas 194
7 douglas 214 AC_INIT()
8 douglas 188 AC_CONFIG_SRCDIR(Search.cpp)
9 douglas 189 AC_PREFIX_DEFAULT(/usr/local/dtse)
10 douglas 221 AC_PROG_INSTALL
11 douglas 187
12 douglas 387 AX_CHECK_GNU_MAKE
13     AC_SUBST([GNUMAKE], [$_cv_gnu_make_command])
14     AS_IF([test "x$GNUMAKE" = x], [AC_MSG_ERROR([You need GNU make])])
15     AX_WITH_PERL
16     AX_PROG_PERL_MODULES([File::Temp], [], [AC_MSG_ERROR([You need File::Temp.])])
17     AC_LANG([C++])
18 douglas 182 AC_PROG_CXX
19 douglas 275 mingw=`$CXX --version 2>&1 | grep mingw\ special`
20     if test "x$mingw" = "x"; then
21 douglas 387 AX_LIB_SOCKET_NSL
22 douglas 275 LIBS="$LIBS $ETR_SOCKET_LIBS"
23     else
24     LIBS="$LIBS -lws2_32"
25     fi
26 douglas 387 AC_MSG_CHECKING([if OpenSSL is wanted])
27     AC_ARG_WITH([openssl], [[ --with-openssl[=DIR] enable OpenSSL [DIR=path]]
28 douglas 249 ], [
29     AC_MSG_RESULT(yes)
30     AC_MSG_CHECKING(for OpenSSL)
31     for dir in $withval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg \
32     /usr/local /usr; do
33     openssl_dir="$dir"
34     if test -f "$dir/include/openssl/ssl.h"; then
35     openssl="yes";
36     break;
37     fi
38     done
39     if ! test x$openssl = x; then
40     AC_MSG_RESULT($openssl_dir);
41     CPPFLAGS="$CPPFLAGS -I$openssl_dir/include";
42 Douglas Thrift 346 LDFLAGS="$LDFLAGS -L$openssl_dir/lib -Wl,--rpath -Wl,$openssl_dir/lib";
43 douglas 276 if test "x$mingw" = "x"; then
44 douglas 275 LIBS="$LIBS -lssl -lcrypto";
45     else
46     LIBS="$LIBS -lssl32 -leay32";
47     fi
48 douglas 249 AC_SUBST(OpenSSL, -D_OpenSSL_)
49     else
50     AC_MSG_RESULT(not found);
51 douglas 387 AC_MSG_ERROR(could not find OpenSSL)
52 douglas 249 fi
53     ], [ AC_MSG_RESULT(no) ])
54     if ! test x$openssl = x; then
55 douglas 275 if test "x$mingw" = "x"; then
56     AC_CHECK_FILE(/dev/urandom, AC_SUBST(urandomdev, -D_urandomdev_),
57     AC_SUBST(urandomdev,))
58     fi
59 douglas 214 fi
60 douglas 187
61 douglas 222 AC_CONFIG_FILES([GNUmakefile search.cgi])
62 douglas 187 AC_OUTPUT

Properties

Name Value
svn:eol-style native
svn:keywords Id
svn:mime-type text/x-m4