~ubuntu-branches/ubuntu/trusty/libdbi/trusty

« back to all changes in this revision

Viewing changes to .pc/001_fix_optimization_values.patch/configure.in

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS), Laszlo Boszormenyi (GCS), Prach Pongpanich
  • Date: 2014-01-20 21:19:50 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20140120211950-zyd6ykii7rd4vm7x
Tags: 0.9.0-1
[ Laszlo Boszormenyi (GCS) ]
* Correct debian/copyright .

[ Prach Pongpanich ]
* Imported Upstream version 0.9.0 (Closes: #708115, #717437)
* Use debhelper short rules with autoreconf (Closes: #565558)
* Add -dbg package
* Update symbols file for new symbols
* Add multiarch support
* Bump Standards-Version to 3.9.5
* Change Vcs fields to point to collab-maint
* Adopt package (Closes: #635659)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Process this file with autoconf to produce a configure script.
2
 
AC_INIT(src/dbi_main.c)
3
 
AM_MAINTAINER_MODE
4
 
 
5
 
AM_INIT_AUTOMAKE(libdbi, 0.8.4)
6
 
AM_CONFIG_HEADER(config.h)
7
 
AC_CONFIG_MACRO_DIR([m4])
8
 
 
9
 
dnl Library versioning
10
 
LIB_CURRENT=1
11
 
LIB_REVISION=0
12
 
LIB_AGE=0
13
 
AC_SUBST(LIB_CURRENT)
14
 
AC_SUBST(LIB_REVISION)
15
 
AC_SUBST(LIB_AGE)
16
 
 
17
 
AC_CANONICAL_HOST
18
 
 
19
 
driverdir=$libdir/dbd
20
 
AC_SUBST(driverdir)
21
 
 
22
 
dnl ====================================
23
 
dnl Check for programs
24
 
dnl ====================================
25
 
 
26
 
AC_PROG_CC
27
 
AC_PROG_CPP
28
 
AC_PROG_LD
29
 
AC_PROG_INSTALL
30
 
AC_PROG_LIBTOOL
31
 
AC_SUBST(LIBTOOL)
32
 
dnl ====================================
33
 
dnl Set some general compile options
34
 
dnl ====================================
35
 
 
36
 
if test -z "$GCC"; then
37
 
        case $host in
38
 
        *-*-irix*)
39
 
                if test -z "$CC"; then
40
 
                        CC=cc
41
 
                fi
42
 
                DEBUG="-g -signed"
43
 
                CFLAGS="-O2 -w -signed"
44
 
                PROFILE="-p -g3 -O2 -signed" ;;
45
 
        sparc-sun-solaris*)
46
 
                DEBUG="-v -g"
47
 
                CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
48
 
                PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
49
 
        *)
50
 
                DEBUG="-g"
51
 
                CFLAGS="-O"
52
 
                PROFILE="-g -p" ;;
53
 
        esac
54
 
else
55
 
 
56
 
        case $host in
57
 
        *-*-linux*)
58
 
                DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char -std=gnu99"
59
 
                CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99"
60
 
                PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99";;
61
 
        sparc-sun-*)
62
 
                DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99"
63
 
                CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99"
64
 
                PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99" ;;
65
 
        *)
66
 
                DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -std=gnu99"
67
 
                CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char -std=gnu99"
68
 
                PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char -std=gnu99" ;;
69
 
        esac
70
 
fi
71
 
 
72
 
AC_SUBST(DEBUG)
73
 
AC_SUBST(PROFILE)
74
 
 
75
 
case $host in
76
 
        *-*-*bsd*)
77
 
                dlopen_flag="RTLD_LAZY" ;;
78
 
        *)
79
 
                dlopen_flag="RTLD_NOW" ;;
80
 
esac
81
 
 
82
 
AC_DEFINE_UNQUOTED(DLOPEN_FLAG, $dlopen_flag, [ Specifies the mode of dlopen behavior ])
83
 
 
84
 
dnl ==============================
85
 
dnl Check for libraries
86
 
dnl ==============================
87
 
 
88
 
dnl functions to load dynamic libraries
89
 
use_ltdl=no
90
 
AC_ARG_WITH(ltdl,
91
 
        [  --with-ltdl            Use libtool's libltdl to load runtime modules [no]],
92
 
        [  use_ltdl=$withval ])
93
 
        
94
 
if test "x$use_ltdl" = xyes; then
95
 
AC_CHECK_HEADERS([ltdl.h], [AC_CHECK_LIB([ltdl],[lt_dlopen],[LIBADD_DL=-lltdl])])
96
 
else
97
 
AC_CHECK_HEADERS([mach-o/dyld.h],[AC_CHECK_FUNCS([NSLinkModule], [
98
 
       LIBADD_DL=""
99
 
       dlsym_prefix=_
100
 
       ])],
101
 
[
102
 
AC_CHECK_HEADERS([dlfcn.h])
103
 
AC_CHECK_FUNCS([dlopen],[LIBADD_DL=],
104
 
                [AC_CHECK_LIB([dl],[dlopen],[LIBADD_DL=-ldl],[])])])
105
 
fi
106
 
AC_SUBST(LIBADD_DL)
107
 
dnl ==============================
108
 
dnl Check for functions
109
 
dnl ==============================
110
 
 
111
 
case $host in
112
 
        *-*-win32*)
113
 
                shlib_ext=.dll ;;
114
 
        *-*-cygwin*)
115
 
                shlib_ext=.dll ;;
116
 
        *-*-mingw32*)
117
 
                shlib_ext=.dll ;;
118
 
        *-*-darwin*)
119
 
                shlib_ext=.so ;;
120
 
        *)
121
 
                shlib_ext=.so ;;
122
 
esac
123
 
 
124
 
AC_ARG_WITH(shlib-ext,
125
 
        [  --with-shlib-ext       Specifies the filename extension of loadable modules (usually not necessary).],
126
 
        [  shlib_ext=$withval ])
127
 
AC_ARG_WITH(dlsym-prefix,
128
 
        [  --with-dlsym-prefix    Specifies a required prefix for symbol names of dynamically loaded modules (usually not necessary).],
129
 
        [  dlsym_prefix=$withval ])
130
 
 
131
 
AC_DEFINE_UNQUOTED(DRIVER_EXT, "$shlib_ext", [ Specifies the filename extension of loadable modules ])
132
 
AC_DEFINE_UNQUOTED(DLSYM_PREFIX, "$dlsym_prefix", [ Specifies a required prefix for symbol names of dynamically loaded modules ])
133
 
 
134
 
 
135
 
AC_CHECK_FUNCS(strtoll)
136
 
AC_REPLACE_FUNCS(atoll timegm)
137
 
AC_CHECK_FUNCS(vasprintf)
138
 
AC_REPLACE_FUNCS(asprintf)
139
 
 
140
 
dnl ==============================
141
 
dnl Checks for header files
142
 
dnl ==============================
143
 
 
144
 
AC_CHECK_HEADERS(string.h strings.h)
145
 
 
146
 
dnl ==============================
147
 
dnl See whether to build the docs
148
 
dnl ==============================
149
 
 
150
 
ac_docs="YES"
151
 
AC_ARG_ENABLE(docs,
152
 
        [  --disable-docs         do not build and install the documentation.],
153
 
        [  if test "$enable_docs" = "no"; then
154
 
              ac_docs="NO"
155
 
           fi ])
156
 
 
157
 
if test "$ac_docs" = "YES"; then
158
 
dnl   AC_PATH_PROGS(myjade, openjade jade)
159
 
dnl   if test "x$myjade" != "x"; then
160
 
      docs_subdirs="doc"
161
 
dnl   else
162
 
dnl      docs_subdirs=""
163
 
dnl   fi
164
 
else
165
 
   docs_subdirs=""
166
 
fi
167
 
 
168
 
AC_SUBST(docs_subdirs)
169
 
 
170
 
dnl ==============================
171
 
dnl Write output files
172
 
dnl ==============================
173
 
 
174
 
AC_CONFIG_FILES([include/dbi/dbi.h])
175
 
 
176
 
AC_OUTPUT([
177
 
        libdbi.spec
178
 
        Makefile
179
 
        src/Makefile
180
 
        doc/Makefile
181
 
        include/Makefile
182
 
        include/dbi/Makefile
183
 
        ])
184