1
1
# $Id$
2
2
#
3
3
# BEGIN COPYRIGHT BLOCK
4
- # Copyright (C) 2005 Red Hat, Inc.
4
+ # Copyright (C) 2005-2013 Red Hat, Inc.
5
5
# All rights reserved.
6
6
#
7
7
# This library is free software; you can redistribute it and/or
18
18
# License along with this library; if not, write to the Free Software
19
19
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
20
# END COPYRIGHT BLOCK
21
-
22
- # Require autoconf 2.52
23
- AC_PREREQ(2.52)
21
+ AC_PREREQ ( [ 2.69] )
24
22
25
23
# Process this file with autoconf to produce a configure script.
26
- AC_INIT(coolkey,[1.2.0])
24
+ AC_INIT ( [ coolkey] ,[ 1.2.0] )
27
25
AC_CONFIG_SRCDIR ( [ src/coolkey/coolkey.cpp] )
26
+ AC_CONFIG_MACRO_DIR ( [ m4] )
28
27
AC_CANONICAL_TARGET ([ ] )
29
- AM_INIT_AUTOMAKE()
28
+ AM_INIT_AUTOMAKE ( [ 1.11 dist-xz no-dist-gzip tar-ustar foreign -Wall ] )
30
29
AC_CONFIG_HEADERS ( [ config.h] )
31
30
32
- AM_MAINTAINER_MODE
31
+ AM_MAINTAINER_MODE ([ enable] )
32
+ AM_SILENT_RULES ([ yes] )
33
33
34
34
# Add argument for debuging
35
- AC_ARG_ENABLE(debug,
36
- AC_HELP_STRING ([--enable-debug],[add debugging code (default=yes)]))
35
+ AC_ARG_ENABLE ( debug ,
36
+ AS_HELP_STRING ( [ --enable-debug] ,[ add debugging code (default=yes)] ) )
37
37
if test "$enable_debug" = "no" -o "$enable_debug" = "false"
38
38
then
39
39
AC_MSG_WARN ( [ Debugging support is completely disabled!] )
@@ -52,51 +52,52 @@ UNIX=0
52
52
AC_MSG_CHECKING ( [ platform type: ] )
53
53
case "$host" in
54
54
*-*-win*|*-*-cygwin*)
55
- AC_MSG_RESULT([Windows])
56
- WINDOWS=1
57
- ZLIB_CFLAGS=-I${ZLIB_INCLUDE}
58
- ZLIB_LIBS=${ZLIB_LIB}/zdll.dll
59
- #OS_FLAGS=`echo $INCLUDE | tr '[[:upper:]]' '[[:lower:]]' | sed -e 's;\\\\;/;g' -e 's;.:;/cygdrive/&/;g' -e 's;:;;g' -e 's;//;/;g' -e 's/;/\" -I\"/g' -e 's;^;-I\";' -e 's;$;\";'`
60
- CPPFLAGS="$CPPFLAGS $OS_FLAGS -DWIN32"
61
- LDFLAGS="$LDFLAGS"
62
- AC_MSG_WARN([changing CPPFLAGS = $CPPFLAGS ] );
63
- SCARD_LIB_NAME="winscard.dll"
64
- # override config defaults for windows
65
- CC=cl
66
- CXX=cl
67
- CXXFLAGS="$CXXFLAGS /EHsc"
68
- #
69
- # Sigh, prevents us from overriding it with --libdir= in the config
70
- * line, but we can still override it in the make line.
71
- #
72
- libdir=`cygpath ${WINDIR}/system32`
73
- ;;
55
+ AC_MSG_RESULT ( [ Windows] )
56
+ WINDOWS=1
57
+ ZLIB_CFLAGS=-I${ZLIB_INCLUDE}
58
+ ZLIB_LIBS=${ZLIB_LIB}/zdll.dll
59
+ # OS_FLAGS=`echo $INCLUDE | tr '[[:upper:]]' '[[:lower:]]' | sed -e 's;\\\\;/;g' -e 's;.:;/cygdrive/&/;g' -e 's;:;;g' -e 's;//;/;g' -e 's/;/\" -I\"/g' -e 's;^;-I\";' -e 's;$;\";'`
60
+ CPPFLAGS="$CPPFLAGS $OS_FLAGS -DWIN32"
61
+ LDFLAGS="$LDFLAGS"
62
+ AC_MSG_WARN ( [ changing CPPFLAGS = $CPPFLAGS ] ) ;
63
+ SCARD_LIB_NAME="winscard.dll"
64
+ # override config defaults for windows
65
+ CC=cl
66
+ CXX=cl
67
+ CXXFLAGS="$CXXFLAGS /EHsc"
68
+ #
69
+ # Sigh, prevents us from overriding it with --libdir= in the config
70
+ * line, but we can still override it in the make line.
71
+ #
72
+ libdir=`cygpath ${WINDIR}/system32`
73
+ ;;
74
74
*-*-darwin*)
75
- AC_MSG_RESULT([MAC])
76
- MAC=1
77
- SCARD_LIB_NAME="PCSC.Framework/PCSC"
78
- PCSC_MSG=yes
79
- PCSC_CFLAGS="-I/System/Library/Frameworks/PCSC.framework/Versions/Current/Headers"
80
- PCSC_LIBS="-Wl,-framework,PCSC"
81
- CFLAGS="-DMAC -I/System/Library/Frameworks/Security.framework/Versions/Current/Headers -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
82
- LDFLAGS="-L/System/Library/Frameworks/Security.framework/Versions/Current/Security -arch ppc -arch i386"
83
- CXXFLAGS="-DMAC -I/System/Library/Frameworks/Security.framework/Versions/Current/Headers -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
84
- ;;
75
+ AC_MSG_RESULT ( [ MAC] )
76
+ MAC=1
77
+ SCARD_LIB_NAME="PCSC.Framework/PCSC"
78
+ PCSC_MSG=yes
79
+ PCSC_CFLAGS="-I/System/Library/Frameworks/PCSC.framework/Versions/Current/Headers"
80
+ PCSC_LIBS="-Wl,-framework,PCSC"
81
+ CFLAGS="-DMAC -I/System/Library/Frameworks/Security.framework/Versions/Current/Headers -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
82
+ LDFLAGS="-L/System/Library/Frameworks/Security.framework/Versions/Current/Security -arch ppc -arch i386"
83
+ CXXFLAGS="-DMAC -I/System/Library/Frameworks/Security.framework/Versions/Current/Headers -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
84
+ ;;
85
85
*)
86
- AC_MSG_RESULT([UNIX/LINUX])
87
- UNIX=1
86
+ AC_MSG_RESULT ( [ UNIX/LINUX] )
87
+ UNIX=1
88
88
# should look it up on the local system
89
- SCARD_LIB_NAME="libpcsclite.so.1"
90
- ;;
89
+ SCARD_LIB_NAME="libpcsclite.so.1"
90
+ ;;
91
91
esac
92
92
93
93
94
94
# Checks for programs.
95
95
AC_PROG_CC
96
96
AC_PROG_CXX
97
- AC_PROG_LIBTOOL
98
97
AC_PROG_INSTALL
99
98
AC_PROG_LN_S
99
+ AM_PROG_AR
100
+ LT_INIT
100
101
101
102
# Checks for libraries.
102
103
if test $WINDOWS -ne 1; then
@@ -117,8 +118,8 @@ PKG_CHECK_MODULES(PCSC, libpcsclite, true,
117
118
] )
118
119
119
120
# Add argument for pk11install
120
- AC_ARG_ENABLE(pk11install,
121
- AC_HELP_STRING ([--enable-pk11install], [build an installer for legacy user apps(default=no)]))
121
+ AC_ARG_ENABLE ( pk11install ,
122
+ AS_HELP_STRING ( [ --enable-pk11install] ,[ build an installer for legacy user apps(default=no)] ) )
122
123
if test "$enable_pk11install" = "yes" -o "$enable_pk11install" = "true"
123
124
then
124
125
if test $WINDOWS -ne 1; then
@@ -158,7 +159,7 @@ AC_FUNC_VPRINTF
158
159
AC_CHECK_FUNCS ( [ memset strdup strerror] )
159
160
160
161
161
- AC_CONFIG_FILES([
162
+ AC_CONFIG_FILES ( [
162
163
Makefile
163
164
src/libckyapplet/Makefile
164
165
src/libckyapplet/libckyapplet.pc
0 commit comments