source: trunk/base/configure.ac @ 3284

Last change on this file since 3284 was 3284, checked in by landonf (Landon Fuller), 17 years ago

Remove autoconf check for md5 binary
Add autoconf check for a working md5 library (either libmd or openssl's libcrypto)

  • Property svn:eol-style set to native
File size: 2.8 KB
RevLine 
[2620]1dnl Process this file with autoconf to produce a configure script.
[2805]2AC_PREREQ(2.52)
3AC_INIT([OpenDarwin DarwinPorts], [1.0], [darwinports@opendarwin.org], [darwinports])
4AC_CONFIG_SRCDIR([src/pextlib1.0/Pextlib.c])
5AC_CONFIG_HEADERS([src/pextlib1.0/config.h])
6AC_CANONICAL_SYSTEM
[2620]7
8# Checks for programs.
9AC_PROG_CC
10AC_PROG_INSTALL
[2805]11AC_PROG_MAKE_SET
[2620]12
[2941]13OD_PROG_MTREE
[2805]14
[2941]15AC_SUBST(REPLACEMENT_PROGS)
16
[3284]17# Check for md5 implementation
18OD_LIB_MD5
19
[2805]20# Check for paths
21AC_PREFIX_DEFAULT(/opt/local)
22OD_PATH_DPORTSDIR([/usr/dports])
23OD_PATH_PORTCONFIGDIR([/etc/ports], [$prefix])
24
25# Check for install ownership
26OD_CHECK_INSTALLUSER
27OD_CHECK_INSTALLGROUP
28
[2620]29# Check for standard header files.
30AC_HEADER_STDC
[2805]31AC_HEADER_DIRENT
32AC_HEADER_SYS_WAIT
33AC_HEADER_STAT
[2840]34AC_CHECK_HEADERS([limits.h paths.h sys/file.h crt_externs.h fcntl.h sys/fcntl.h])
[2620]35
[2805]36INCLUDES="-I. $INCLUDES"
37
38# Checks for library functions.
39AC_FUNC_CLOSEDIR_VOID
40AC_FUNC_FORK
41AC_FUNC_STRERROR_R
[2843]42AC_CHECK_FUNCS([bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock])
[2805]43
[2620]44# Check for Tcl public headers
45dnl XXX hardwire CYGPATH (CYGPATH must be set for SC_PUBLIC_TCL_HEADERS)
46CYGPATH=echo
47SC_PUBLIC_TCL_HEADERS
48
49# Load tclConfig.sh
50SC_PATH_TCLCONFIG
51SC_LOAD_TCLCONFIG
52
[3279]53# Check for tclsh binary
[3280]54AC_PATH_PROG([TCLSH], [tclsh tclsh$TCL_VERSION])
[3279]55
[2620]56# Check for Tcl package path
57OD_TCL_PACKAGE_DIR
58
59# Allows building of shared libraries
60SC_ENABLE_SHARED
61
62# Pull compiler / linker values from tclConfig.sh
63CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
64CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
65LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
66LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
67SHLIB_LD=${TCL_SHLIB_LD}
68STLIB_LD=${TCL_STLIB_LD}
69SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
70SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
71
[2805]72AC_SUBST(INCLUDES)
[2620]73AC_SUBST(CFLAGS_DEBUG)
74AC_SUBST(CFLAGS_OPTIMIZE)
[2818]75AC_SUBST(TCL_DEFS)
[2620]76AC_SUBST(STLIB_LD)
77AC_SUBST(SHLIB_LD)
78AC_SUBST(SHLIB_CFLAGS)
79AC_SUBST(SHLIB_LDFLAGS)
80AC_SUBST(SHLIB_SUFFIX)
81AC_SUBST(TCL_STUB_LIB_SPEC)
82
[2817]83#misc variables that need to be expanded for substitution into tcl
84
85oldprefix=$prefix
86if test "x$prefix" = "xNONE" ; then
87   prefix=$ac_default_prefix
88fi
89
90eval "prefix_expanded=$prefix"
91AC_SUBST(prefix_expanded)
[2821]92# do this twice, since there is a nested variable of
93# ${prefix} inside of ${sysconfdir}
[2817]94eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR"
[2821]95eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR_EXPANDED"
[2817]96AC_SUBST(PORTCONFIGDIR_EXPANDED)
97eval "localstatedir_expanded=$localstatedir"
98AC_SUBST(localstatedir_expanded)
99
100prefix=$oldprefix
101
[2620]102dnl man page settings (compressed, links, etc)
103dnl
104dnl SC_CONFIG_MANPAGES
105
106# Output
[2805]107
[2821]108AC_CONFIG_FILES([Makefile Mk/dports.autoconf.mk doc/prefix.mtree
[2941]109                doc/ports.conf src/darwinports1.0/darwinports_autoconf.tcl
[3280]110                src/programs/Makefile src/port/port:src/port/port.tcl
111                src/port/portall:src/port/portall.tcl
112                src/port/portindex:src/port/portindex.tcl])
113
[2805]114AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.