~ubuntu-branches/ubuntu/utopic/kakasi/utopic

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Package Import Robot
  • Author(s): Osamu Aoki
  • Date: 2014-06-15 00:44:23 UTC
  • mfrom: (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: package-import@ubuntu.com-20140615004423-9vuxms7j28x0epxr
New upstream release. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl Process this file with autoconf to produce a configure script.
2
 
dnl $Id: configure.in,v 1.17 2014-01-18 06:47:21 knok Exp $
 
2
dnl $Id: configure.in,v 1.23 2014-03-18 06:33:20 knok Exp $
3
3
 
4
4
AC_INIT
5
5
AC_CONFIG_SRCDIR([src/kakasi.c])
6
6
AC_PREREQ([2.50])
7
 
AM_INIT_AUTOMAKE(kakasi, 2.3.5)
 
7
AM_INIT_AUTOMAKE(kakasi, 2.3.6)
8
8
 
9
9
AM_MAINTAINER_MODE
10
10
 
14
14
AC_PROG_INSTALL
15
15
AC_PROG_MAKE_SET
16
16
 
17
 
if test -n "$GCC"; then
18
 
    CFLAGS="$CFLAGS -Wall -Wunused -Wuninitialized -Wmissing-prototypes -Wmissing-declarations -pedantic -Wno-unused-result"
19
 
fi
 
17
AC_DEFUN([KAKASI_CHECK_CFLAGS],
 
18
[AS_IF([AC_TRY_COMMAND([${CC-cc} $1  -xc /dev/null -S -o /dev/null])],
 
19
                         [CFLAGS="$CFLAGS $1"])])
20
20
 
21
21
dnl OS specific.
22
22
AC_EXEEXT
80
80
  esac
81
81
fi
82
82
AC_MSG_RESULT($utf8)
83
 
if test "${utf8}" = "yes" ; then
 
83
AS_VAR_IF(utf8, "yes",[
84
84
    AM_ICONV
85
85
    LIBS="$LIBICONV $LIBS"
86
86
    AC_DEFINE(KAKASI_SUPPORT_UTF8, 1, [KAKASI_SUPPORT_UTF8])
88
88
                    [if (iconv_open("EUC-JP", "UTF-8") == -1) exit(1);])],
89
89
        [],
90
90
        [AC_MSG_ERROR([can not use EUC-JP or UTF-8 encoding on iconv])])
91
 
fi
 
91
])
 
92
 
 
93
dnl check gcc flags
 
94
KAKASI_CHECK_CFLAGS([-Wall])
 
95
KAKASI_CHECK_CFLAGS([-Wunused])
 
96
KAKASI_CHECK_CFLAGS([-Wuninitialized])
 
97
KAKASI_CHECK_CFLAGS([-Wmissing-declarations])
 
98
KAKASI_CHECK_CFLAGS([-Wmissing-prototypes])
 
99
KAKASI_CHECK_CFLAGS([-pedantic])
 
100
KAKASI_CHECK_CFLAGS([-Wno-unused-result])
92
101
 
93
102
AM_CONFIG_HEADER(config.h)
94
103
AC_CONFIG_FILES([src/Makefile
96
105
           lib/makefile.msc
97
106
           man/Makefile
98
107
           tests/Makefile
 
108
           tests/data/Makefile
99
109
           Makefile
100
110
           kakasi-config
101
111
           kakasi.spec