/[pcre]/code/trunk/configure.in
ViewVC logotype

Diff of /code/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 52 by nigel, Sat Feb 24 21:39:37 2007 UTC revision 53 by nigel, Sat Feb 24 21:39:42 2007 UTC
# Line 17  dnl digits for minor numbers less than 1 Line 17  dnl digits for minor numbers less than 1
17  dnl that many releases anyway.  dnl that many releases anyway.
18    
19  PCRE_MAJOR=3  PCRE_MAJOR=3
20  PCRE_MINOR=4  PCRE_MINOR=5
21  PCRE_DATE=22-Aug-2000  PCRE_DATE=15-Aug-2001
22  PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}  PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
23    
24  dnl Provide versioning information for libtool shared libraries that  dnl Provide versioning information for libtool shared libraries that
# Line 30  PCRE_POSIXLIB_VERSION=0:0:0 Line 30  PCRE_POSIXLIB_VERSION=0:0:0
30  dnl Checks for programs.  dnl Checks for programs.
31    
32  AC_PROG_CC  AC_PROG_CC
33    AC_PROG_INSTALL
34  AC_PROG_RANLIB  AC_PROG_RANLIB
35    
36  dnl Checks for header files.  dnl Checks for header files.
# Line 46  dnl Checks for library functions. Line 47  dnl Checks for library functions.
47    
48  AC_CHECK_FUNCS(bcopy memmove strerror)  AC_CHECK_FUNCS(bcopy memmove strerror)
49    
 dnl Handle --enable-shared-libraries  
   
 LIBTOOL=./libtool  
 LIBSUFFIX=la  
 AC_ARG_ENABLE(shared,  
 [  --disable-shared        build PCRE as a static library],  
 if test "$enableval" = "no"; then  
   LIBTOOL=  
   LIBSUFFIX=a  
 fi  
 )  
   
50  dnl Handle --enable-utf8  dnl Handle --enable-utf8
51    
52  AC_ARG_ENABLE(utf8,  AC_ARG_ENABLE(utf8,
# Line 67  if test "$enableval" = "yes"; then Line 56  if test "$enableval" = "yes"; then
56  fi  fi
57  )  )
58    
59    dnl Handle --enable-newline-is-cr
60    
61    AC_ARG_ENABLE(newline-is-cr,
62    [  --enable-newline-is-cr  use CR as the newline character],
63    if test "$enableval" = "yes"; then
64      NEWLINE=-DNEWLINE=13
65    fi
66    )
67    
68    dnl Handle --enable-newline-is-lf
69    
70    AC_ARG_ENABLE(newline-is-lf,
71    [  --enable-newline-is-lf  use LF as the newline character],
72    if test "$enableval" = "yes"; then
73      NEWLINE=-DNEWLINE=10
74    fi
75    )
76    
77    dnl Now arrange to build libtool
78    
79    AC_PROG_LIBTOOL
80    
81  dnl "Export" these variables  dnl "Export" these variables
82    
83  AC_SUBST(HAVE_MEMMOVE)  AC_SUBST(HAVE_MEMMOVE)
84  AC_SUBST(HAVE_STRERROR)  AC_SUBST(HAVE_STRERROR)
85  AC_SUBST(LIBTOOL)  AC_SUBST(NEWLINE)
 AC_SUBST(LIBSUFFIX)  
86  AC_SUBST(UTF8)  AC_SUBST(UTF8)
87  AC_SUBST(PCRE_MAJOR)  AC_SUBST(PCRE_MAJOR)
88  AC_SUBST(PCRE_MINOR)  AC_SUBST(PCRE_MINOR)
# Line 81  AC_SUBST(PCRE_VERSION) Line 91  AC_SUBST(PCRE_VERSION)
91  AC_SUBST(PCRE_LIB_VERSION)  AC_SUBST(PCRE_LIB_VERSION)
92  AC_SUBST(PCRE_POSIXLIB_VERSION)  AC_SUBST(PCRE_POSIXLIB_VERSION)
93    
94  dnl This must be last; it determines what files are written  dnl This must be last; it determines what files are written as well as config.h
95  AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config:pcre-config.in RunTest:RunTest.in,[chmod a+x RunTest pcre-config])  AC_OUTPUT(Makefile pcre.h:pcre.in pcre-config:pcre-config.in RunTest:RunTest.in,[chmod a+x RunTest pcre-config])

Legend:
Removed from v.52  
changed lines
  Added in v.53

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12