source: trunk/base/configure.ac @ 5637

Last change on this file since 5637 was 5637, checked in by ssen, 16 years ago

Add LN_S to autoconf script

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