source: trunk/base/configure.ac @ 3640

Last change on this file since 3640 was 3640, checked in by ssen, 17 years ago

For real this time. Comment out the macro definition in aclocal.m4 as
well, since it was being processed for AC_ARG_WITH even if the
macro for OD_PATH_DPORTSDIR was not being used.

  • Property svn:eol-style set to native
File size: 2.6 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])
[3314]5AC_CONFIG_HEADERS([src/config.h])
[2805]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_PORTCONFIGDIR([/etc/ports], [$prefix])
23
24# Check for install ownership
25OD_CHECK_INSTALLUSER
26OD_CHECK_INSTALLGROUP
27
[2620]28# Check for standard header files.
29AC_HEADER_STDC
[2805]30AC_HEADER_DIRENT
31AC_HEADER_SYS_WAIT
32AC_HEADER_STAT
[2840]33AC_CHECK_HEADERS([limits.h paths.h sys/file.h crt_externs.h fcntl.h sys/fcntl.h])
[2620]34
[3402]35INCLUDES="-I.. -I. $INCLUDES"
[2805]36
37# Checks for library functions.
38AC_FUNC_CLOSEDIR_VOID
39AC_FUNC_FORK
40AC_FUNC_STRERROR_R
[2843]41AC_CHECK_FUNCS([bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock])
[2805]42
[3624]43# Load tclConfig.sh
44SC_PATH_TCLCONFIG
45SC_LOAD_TCLCONFIG
46
[2620]47# Check for Tcl public headers
48dnl XXX hardwire CYGPATH (CYGPATH must be set for SC_PUBLIC_TCL_HEADERS)
49CYGPATH=echo
50SC_PUBLIC_TCL_HEADERS
51
[3279]52# Check for tclsh binary
[3624]53OD_PROG_TCLSH
[3279]54
[2620]55# Check for Tcl package path
56OD_TCL_PACKAGE_DIR
57
58# Allows building of shared libraries
59SC_ENABLE_SHARED
60
61# Pull compiler / linker values from tclConfig.sh
62CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
63CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
64LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
65LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
66SHLIB_LD=${TCL_SHLIB_LD}
67STLIB_LD=${TCL_STLIB_LD}
68SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
69SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
70
[2805]71AC_SUBST(INCLUDES)
[2620]72AC_SUBST(CFLAGS_DEBUG)
73AC_SUBST(CFLAGS_OPTIMIZE)
[2818]74AC_SUBST(TCL_DEFS)
[2620]75AC_SUBST(STLIB_LD)
76AC_SUBST(SHLIB_LD)
77AC_SUBST(SHLIB_CFLAGS)
78AC_SUBST(SHLIB_LDFLAGS)
79AC_SUBST(SHLIB_SUFFIX)
80AC_SUBST(TCL_STUB_LIB_SPEC)
81
[2817]82#misc variables that need to be expanded for substitution into tcl
83
84oldprefix=$prefix
85if test "x$prefix" = "xNONE" ; then
86   prefix=$ac_default_prefix
87fi
88
89eval "prefix_expanded=$prefix"
90AC_SUBST(prefix_expanded)
[2821]91# do this twice, since there is a nested variable of
92# ${prefix} inside of ${sysconfdir}
[2817]93eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR"
[2821]94eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR_EXPANDED"
[2817]95AC_SUBST(PORTCONFIGDIR_EXPANDED)
96eval "localstatedir_expanded=$localstatedir"
97AC_SUBST(localstatedir_expanded)
98
99prefix=$oldprefix
100
[2620]101dnl man page settings (compressed, links, etc)
102dnl
103dnl SC_CONFIG_MANPAGES
104
105# Output
[2805]106
[2821]107AC_CONFIG_FILES([Makefile Mk/dports.autoconf.mk doc/prefix.mtree
[2941]108                doc/ports.conf src/darwinports1.0/darwinports_autoconf.tcl
[3311]109                src/programs/Makefile])
[3280]110
[2805]111AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.