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, 9 months ago) by douglas
Content type: text/x-m4
File size: 1594 byte(s)
Log Message:
Fixes for clang.


File Contents

# Content
1 # Douglas Thrift's Search Engine Autoconf Script
2 #
3 # Douglas Thrift
4 #
5 # $Id$
6
7 AC_INIT()
8 AC_CONFIG_SRCDIR(Search.cpp)
9 AC_PREFIX_DEFAULT(/usr/local/dtse)
10 AC_PROG_INSTALL
11
12 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 AC_PROG_CXX
19 mingw=`$CXX --version 2>&1 | grep mingw\ special`
20 if test "x$mingw" = "x"; then
21 AX_LIB_SOCKET_NSL
22 LIBS="$LIBS $ETR_SOCKET_LIBS"
23 else
24 LIBS="$LIBS -lws2_32"
25 fi
26 AC_MSG_CHECKING([if OpenSSL is wanted])
27 AC_ARG_WITH([openssl], [[ --with-openssl[=DIR] enable OpenSSL [DIR=path]]
28 ], [
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 LDFLAGS="$LDFLAGS -L$openssl_dir/lib -Wl,--rpath -Wl,$openssl_dir/lib";
43 if test "x$mingw" = "x"; then
44 LIBS="$LIBS -lssl -lcrypto";
45 else
46 LIBS="$LIBS -lssl32 -leay32";
47 fi
48 AC_SUBST(OpenSSL, -D_OpenSSL_)
49 else
50 AC_MSG_RESULT(not found);
51 AC_MSG_ERROR(could not find OpenSSL)
52 fi
53 ], [ AC_MSG_RESULT(no) ])
54 if ! test x$openssl = x; then
55 if test "x$mingw" = "x"; then
56 AC_CHECK_FILE(/dev/urandom, AC_SUBST(urandomdev, -D_urandomdev_),
57 AC_SUBST(urandomdev,))
58 fi
59 fi
60
61 AC_CONFIG_FILES([GNUmakefile search.cgi])
62 AC_OUTPUT

Properties

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