File: configure.ac

package info (click to toggle)
uniutils 2.28-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,032 kB
  • sloc: ansic: 49,905; sh: 1,168; awk: 55; makefile: 18
file content (40 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
AC_PREREQ([2.71])
AC_INIT([uniutils],[2.28],[billposer@alum.mit.edu])
AC_CONFIG_SRCDIR([unidesc.c])
AM_CONFIG_HEADER([config.h])

AC_DEFUN([AC_HAVE_NUMBER_SEPARATOR],
[AC_CACHE_CHECK(for number separator, ac_numsep,
     AC_RUN_IFELSE([AC_LANG_SOURCE([[printf("%'6d",123456)]])],[ac_numsep=yes],[ac_numsep=no],[])
   if test $ac_numsep = yes; then
     AC_DEFINE(HAVE_NUMBER_GROUP_SEPARATOR, 1, [printf understands number group separator])
   fi
])

# Checks for programs.
AC_PROG_CC

# Checks for header files.
m4_warn([obsolete],
[The preprocessor macro `STDC_HEADERS' is obsolete.
  Except in unusual embedded environments, you can safely include all
  ISO C90 headers unconditionally.])dnl
# Autoupdate added the next two lines to ensure that your configure
# script's behavior did not change.  They are probably safe to remove.
AC_CHECK_INCLUDES_DEFAULT
AC_PROG_EGREP

AC_CHECK_HEADERS([fcntl.h libintl.h locale.h stdlib.h string.h unistd.h stdio.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_OFF_T
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([malloc setlocale strtol strtoul strtoull])

AC_CONFIG_FILES([Makefile])
AM_INIT_AUTOMAKE
AC_OUTPUT