File: configure.in

package info (click to toggle)
libunicode 0.4.0-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,472 kB
  • ctags: 510
  • sloc: ansic: 13,451; sh: 7,506; perl: 450; makefile: 98; cpp: 9
file content (50 lines) | stat: -rw-r--r-- 1,068 bytes parent folder | download | duplicates (2)
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
41
42
43
44
45
46
47
48
49
50
dnl Process this file with autoconf to create configure.

AC_INIT(unicode.h)
AM_INIT_AUTOMAKE(libunicode, 0.4)

AM_CONFIG_HEADER(config.h)

AC_PROG_CC
AC_PROG_CXX
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL

cflags=
if test "$GCC" = yes; then
   # Sigh: must use no-unused to avoid warning about unused parameters.
   cflags='-W -Wall -Wno-unused'
fi
AC_SUBST(cflags)

AC_CHECK_FUNCS(memmove)
AC_CHECK_HEADER(langinfo.h, AC_DEFINE(HAVE_LANGINFO_H))

UNICODE_DEFS=
AC_CHECK_FUNC(iconv, [
    AC_DEFINE(UNICODE_USE_SYSTEM_ICONV)
    UNICODE_DEFS="$UNICODE_DEFS -DUNICODE_USE_SYSTEM_ICONV"
    have_iconv=yes], have_iconv=no)
AM_CONDITIONAL(NATIVE_ICONV, test "$have_iconv" = yes)
AC_SUBST(UNICODE_DEFS)

UNICODE_LIBDIR='-L${libdir}'
UNICODE_INCLUDEDIR='-I${includedir} ${UNICODE_DEFS}'
UNICODE_LIBS='-lunicode'

AC_SUBST(UNICODE_LIBDIR)
AC_SUBST(UNICODE_INCLUDEDIR)
AC_SUBST(UNICODE_LIBS)

AC_OUTPUT(Makefile
iso/Makefile
jis/Makefile
msft/Makefile
testsuite/Makefile
libunicode.spec
unicode-config,
[case "$CONFIG_FILES" in
*unicode-config*)chmod +x unicode-config;;
esac])