~ubuntu-branches/ubuntu/hardy/dash/hardy-security

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-07-18 15:38:47 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070718153847-pef1uwy72j9gs9pw
Tags: 0.5.4-1ubuntu1
* Merge with Debian; remaining changes:
  - Build against glibc instead of dietlibc
  - Change default answer for "Install dash as /bin/sh?" question to true.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT(dash, 0.5.3)
 
1
AC_INIT(dash, 0.5.4)
2
2
AM_INIT_AUTOMAKE([foreign])
3
3
AC_CONFIG_SRCDIR([src/main.c])
4
4
 
42
42
        AC_DEFINE(open64, open, [64-bit operations are the same as 32-bit])
43
43
])
44
44
 
 
45
AC_ARG_WITH(libedit, AS_HELP_STRING(--with-libedit, [Compile with libedit support]))
 
46
use_libedit=
 
47
if test "$with_libedit" = "yes"; then
 
48
        AC_CHECK_LIB(edit, history_init, [
 
49
                AC_CHECK_HEADER([histedit.h], [use_libedit="yes"],
 
50
                                AC_MSG_ERROR(
 
51
                                        [Can't find required header files.]))])
 
52
fi
 
53
if test "$use_libedit" != "yes"; then
 
54
        AC_DEFINE([SMALL], 1, [Define if you build with -DSMALL])
 
55
else
 
56
        export LIBS="$LIBS -ledit"
 
57
fi
45
58
AC_CONFIG_FILES([Makefile src/Makefile])
46
59
AC_OUTPUT