/[gentoo-src]/portage/configure.in
Gentoo

Contents of /portage/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Nov 20 15:16:54 2004 UTC (9 years, 8 months ago) by ferringb
Branch: MAIN
CVS Tags: portage_041204, HEAD
Branch point for: portage_2_1
Changes since 1.2: +1 -1 lines
File MIME type: text/plain
logic tweak to install just .pyc's.

1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(portage, cvs, dev-portage@gentoo.org)
3 AM_INIT_AUTOMAKE
4 dnl AM_CONFIG_HEADER(config.h)
5
6 dnl Checks for programs.
7 dnl store clfags prior, otherwise it's not propogaed.
8 if test x$CFLAGS != x
9 then
10 CFLAGS=$CFLAGS
11 fi
12
13 AC_PREFIX_DEFAULT([/usr])
14 AC_PROG_CC
15 AC_PROG_INSTALL
16
17 dnl Checks for libraries.
18 dnl Replace `main' with a function in -lc:
19 AC_CHECK_LIB(c, main)
20 dnl Replace `main' with a function in -ldl:
21 AC_CHECK_LIB(dl, main)
22 dnl Replace `main' with a function in -lgcc:
23 AC_CHECK_LIB(gcc, main)
24 dnl Replace `main' with a function in -lpthread:
25 AC_CHECK_LIB(pthread, main)
26
27 dnl Checks for header files.
28 AC_HEADER_DIRENT
29 AC_HEADER_STDC
30 AC_HEADER_SYS_WAIT
31 AC_CHECK_HEADERS(fcntl.h limits.h strings.h sys/file.h sys/time.h unistd.h)
32
33 dnl Checks for typedefs, structures, and compiler characteristics.
34 AC_C_CONST
35 AC_TYPE_UID_T
36 AC_TYPE_MODE_T
37 AC_TYPE_SIZE_T
38
39 dnl Checks for library functions.
40 AC_FUNC_ALLOCA
41 AC_TYPE_SIGNAL
42 AC_CHECK_FUNCS(getcwd mkdir regcomp rmdir strdup strerror strspn strstr)
43
44 AC_ARG_ENABLE(tbz2tool,
45 AC_HELP_STRING([--enable-tbz2tool],[build tbz2tool, tool for creating binpkgs (default yes)]),
46 [case "${enableval}" in
47 yes) enable_tbz2tool=true;;
48 no) enable_tbz2tool=false;;
49 *) AC_MSG_ERROR(bad value ${enableval} for --enable-tbz2tool);;
50 esac],
51 [enable_tbz2tool=true])
52
53 AC_ARG_ENABLE(filter-env,
54 AC_HELP_STRING([--enable-filter-env],[build filter-env, tool for filtering bash progs/env (default yes)]),
55 [case "${enableval}" in
56 yes) enable_filter_env=true;;
57 no) enable_filter_env=false;;
58 *) AC_MSG_ERROR(bad value ${enableval} for --enable-filter-env);;
59 esac],
60 [enable_filter_env=true])
61
62 AC_ARG_ENABLE(missingos,
63 AC_HELP_STRING([--enable-missingos],[build compatibility missingos code for python 2.2 (default auto)]),
64 [case "${enableval}" in
65 yes) enable_missingos=true;;
66 no) enable_missingos=false;;
67 auto) enable_missingos=auto;;
68 *) AC_MSG_ERROR(bad value ${enableval} for --enable-missingos);;
69 esac],
70 [enable_missingos=auto])
71
72 AC_ARG_ENABLE(just-compiled-sources,
73 AC_HELP_STRING([--enable-just-compiled-sources],[install just the bytecode, not the sources (default no)]),
74 [case "${enableval}" in
75 yes) enable_py_sources=false;;
76 no) enable_py_sources=true;;
77 *) AC_MSG_ERROR(bad value ${enableval} for --enable-just-compiled-sources);;
78 esac],
79 [enable_py_sources=true])
80
81 if test x$enable_missingos = xauto
82 then
83 pyver=[`python -c 'import sys;print sys.version[0:3]';`]
84 case ${pyver} in
85 2.4) ;;
86 2.3) ;;
87 2.2) enable_missingos=true;;
88 *) AC_MSG_WARN([unable to determine python version, ${pyver}]);;
89 esac
90 fi
91
92 AC_CONFIG_FILES([ Makefile ])
93 AC_CONFIG_FILES([ src/Makefile ])
94 AC_CONFIG_FILES([ src/filter-env/Makefile ])
95 AC_CONFIG_FILES([ man/Makefile ])
96 AC_CONFIG_FILES([ src/python-missingos/Makefile ])
97 AC_CONFIG_FILES([ bin/Makefile ])
98 AC_CONFIG_FILES([ pym/Makefile ])
99
100 AC_SUBST(PORTAGE_BASE,"/usr/lib/portage")
101 AM_CONDITIONAL(INSTALL_PYTHON_SOURCES, test x$enable_py_sources = xtrue)
102 AM_CONDITIONAL(BUILD_TBZ2TOOL, test x$enable_tbz2tool = xtrue)
103 AM_CONDITIONAL(BUILD_MISSINGOS, test x$enable_missingos = xtrue)
104 AM_CONDITIONAL(BUILD_FILTER_ENV, test x$enable_filter_env = xtrue)
105 AC_OUTPUT

  ViewVC Help
Powered by ViewVC 1.1.20