~ubuntu-branches/ubuntu/oneiric/squid3/oneiric-security

« back to all changes in this revision

Viewing changes to helpers/negotiate_auth/squid_kerb_auth/configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Mahyuddin Susanto
  • Date: 2011-02-15 18:46:13 UTC
  • mfrom: (21.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110215184613-1u3dh5sz4i055flk
Tags: 3.1.10-1ubuntu1
* Merge from debian unstable. (LP: #719283)  Remaining changes:
  - debian/patches/18-fix-ftbfs-binutils-gold.dpatch: Add library linker into
    LIBS instead to LDFLAGS to fixing FTBFS binutils-gold.
* Drop Ubuntu configuration for ufw which landed in Debian and sync it: 
  - debian/squid3.ufw.profile.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl This program is free software; you can redistribute it and/or modify
 
2
dnl it under the terms of the GNU General Public License as published by
 
3
dnl the Free Software Foundation; either version 2 of the License, or
 
4
dnl (at your option) any later version.
 
5
dnl
 
6
dnl This program is distributed in the hope that it will be useful,
 
7
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
 
8
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
9
dnl GNU General Public License for more details.
 
10
dnl
 
11
dnl You should have received a copy of the GNU General Public License
 
12
dnl along with this program; if not, write to the Free Software
 
13
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
 
14
dnl
 
15
dnl Process this file with autoconf to produce a configure script.
 
16
 
 
17
 
 
18
AC_INIT([squid_kerb_auth],[1.0.5],[markus_moeller@compuserve.com])
 
19
AM_INIT_AUTOMAKE(squid_kerb_auth,1.0.5)
 
20
AC_CONFIG_SRCDIR([squid_kerb_auth.c])
 
21
 
 
22
AC_PROG_CC
 
23
AC_PROG_CPP
 
24
 
 
25
AC_TRY_COMPILE([int main()
 
26
  { 
 
27
     return; 
 
28
  } 
 
29
])
 
30
 
 
31
SPARCV9=""
 
32
sys=`uname`
 
33
case $sys in
 
34
         Linux) w_flag="-Wl,-R"
 
35
                w_flag_2=""
 
36
                ;;
 
37
         AIX) w_flag="-Wl,-blibpath:"
 
38
              w_flag_2=":/usr/lib:/lib"
 
39
              ;;
 
40
         SunOS) w_flag="-R"
 
41
                w_flag_2=""
 
42
                rel=`uname -r`
 
43
                case $rel in
 
44
                         5.10|5.11) AC_DEFINE(HAVE_NEW_SEAM_KERBEROS,1,[Define to 1 if you have New Solaris 10/OpenSolaris Kerberos])
 
45
                           ;;
 
46
                        *) ;;
 
47
                esac
 
48
                  ;;
 
49
         FreeBSD) w_flag="-Wl,-R"
 
50
                w_flag_2=""
 
51
                ;;
 
52
         *) w_flag="-Wl,-rpath"
 
53
            w_flag_2=""
 
54
            ;;
 
55
esac
 
56
 
 
57
 
 
58
enable_arg="no"
 
59
check_mit() {
 
60
       if test "x$ac_krb5_config" = "xyes" ; then
 
61
           ac_heimdal=`krb5-config --version 2>/dev/null | grep heimdal`
 
62
           if test "x$ac_heimdal" != "x" ; then
 
63
               check_heimdal
 
64
               return
 
65
           fi   
 
66
       fi
 
67
       AC_DEFINE(HAVE_MIT_KERBEROS,1,[Define to 1 if you have MIT Kerberos])
 
68
       ac_gss_libs="resolv com_err des425 k5crypto krb5 gssapi_krb5"
 
69
       ac_includedir=""
 
70
       ac_libdir=""
 
71
       case $sys in
 
72
                Linux) if test "x$enableval" != "xyes" -a "x$enableval" != "x" -a "x$enableval" != "xno" ; then
 
73
                         ac_libdir=$enableval/lib
 
74
                         ac_includedir=$enableval/include
 
75
                       else
 
76
                         ac_libdir=`rpm -q -l  krb5 2>/dev/null | grep "/libgssapi_krb5" |  sed -e 's/\/libgssapi_krb5.*//' | head -1`
 
77
                         ac_includedir=`rpm -q -l krb5-devel 2>/dev/null | grep /krb5.h$ | sed -e 's/\/krb5.h//' | head -1`
 
78
                       fi
 
79
                       if test "x$ac_includedir" != "x" ; then
 
80
                         CPPFLAGS="$CPPFLAGS -I$ac_includedir"
 
81
                       else
 
82
                         ac_gssapi_cflags=`krb5-config --cflags gssapi 2>/dev/null`
 
83
                         if test "x$ac_gssapi_cflags" != "x" ; then
 
84
                           CPPFLAGS="$CPPFLAGS $ac_gssapi_cflags"
 
85
                         fi
 
86
                       fi
 
87
                       AC_CHECK_HEADERS(gssapi.h gssapi/gssapi.h gssapi/gssapi_krb5.h gssapi/gssapi_generic.h)
 
88
                       if test "x$ac_libdir" != "x" ; then
 
89
                         LDFLAGS="$LDFLAGS -L$ac_libdir $w_flag$ac_libdir$w_flag_2"
 
90
                         for lib in $ac_gss_libs; do
 
91
                           AC_CHECK_LIB($lib,main)
 
92
                         done
 
93
                       else
 
94
                         ac_gssapi_libs=`krb5-config --libs gssapi 2>/dev/null`
 
95
                         if test "x$ac_gssapi_libs" != "x" ; then
 
96
                           LDFLAGS="$LDFLAGS $ac_gssapi_libs"
 
97
                         else
 
98
                           for lib in $ac_gss_libs; do
 
99
                             AC_CHECK_LIB($lib,main)
 
100
                           done
 
101
                         fi
 
102
                       fi
 
103
                       ;;
 
104
                *) if test "x$enableval" != "xyes" -a "x$enableval" != "x" -a "x$enableval" != "xno" ; then
 
105
                     ac_libdir=$enableval/lib
 
106
                     ac_includedir=$enableval/include
 
107
                     CPPFLAGS="$CPPFLAGS -I$ac_includedir"
 
108
                     AC_CHECK_HEADERS(gssapi.h gssapi/gssapi.h gssapi/gssapi_krb5.h gssapi/gssapi_generic.h)
 
109
                     LDFLAGS="$LDFLAGS -L$ac_libdir $w_flag$ac_libdir$w_flag_2"
 
110
                     for lib in $ac_gss_libs; do
 
111
                        AC_CHECK_LIB($lib,main)
 
112
                     done
 
113
                   else
 
114
                     ac_gssapi_cflags=`krb5-config --cflags gssapi 2>/dev/null`
 
115
                     if test "x$ac_gssapi_cflags" != "x" ; then
 
116
                         CPPFLAGS="$CPPFLAGS $ac_gssapi_cflags"
 
117
                     fi
 
118
                     ac_gssapi_libs=`krb5-config --libs gssapi 2>/dev/null`
 
119
                     if test "x$ac_gssapi_libs" != "x" ; then
 
120
                         LDFLAGS="$LDFLAGS $ac_gssapi_libs"
 
121
                     else
 
122
                         for lib in $ac_gss_libs; do
 
123
                            AC_CHECK_LIB($lib,main)
 
124
                         done
 
125
                     fi
 
126
                     AC_CHECK_HEADERS(gssapi.h gssapi/gssapi.h gssapi/gssapi_krb5.h gssapi/gssapi_generic.h)
 
127
                   fi
 
128
                   ;;
 
129
       esac
 
130
       enable_arg="mit"
 
131
}
 
132
check_heimdal(){
 
133
       if test "x$ac_krb5_config" = "xyes" ; then
 
134
           ac_heimdal=`krb5-config --version 2>/dev/null | grep heimdal`
 
135
           if test "x$ac_heimdal" = "x" ; then
 
136
               check_mit
 
137
               return
 
138
           fi
 
139
       fi
 
140
       AC_DEFINE(HAVE_HEIMDAL_KERBEROS,1,[Define to 1 if you have Heimdal Kerberos])
 
141
       ac_gss_libs="resolv crypto des crypt roken com_err asn1 krb5 gssapi"
 
142
       ac_includedir=""
 
143
       ac_libdir=""
 
144
       case $sys in
 
145
                Linux) if test "x$enableval" != "xyes" -a "x$enableval" != "x" -a "x$enableval" != "xno" ; then
 
146
                         ac_libdir=$enableval/lib
 
147
                         ac_includedir=$enableval/include
 
148
                       else
 
149
                         ac_libdir=`rpm -q -l  heimdal-devel 2>/dev/null | grep "/libroken" |  sed -e 's/\/libroken.*//' | head -1`
 
150
                         ac_includedir=`rpm -q -l heimdal-devel 2>/dev/null | grep /krb5.h$ | sed -e 's/\/krb5.h//' | head -1`
 
151
                       fi
 
152
                       if test "x$ac_includedir" != "x" ; then
 
153
                          CPPFLAGS="$CPPFLAGS -I$ac_includedir"
 
154
                       else
 
155
                         ac_gssapi_cflags=`krb5-config --cflags gssapi 2>/dev/null`
 
156
                         if test "x$ac_gssapi_cflags" != "x" ; then
 
157
                           CPPFLAGS="$CPPFLAGS $ac_gssapi_cflags"
 
158
                         fi
 
159
                       fi
 
160
                       AC_CHECK_HEADERS(gssapi.h gssapi/gssapi.h)
 
161
                       if test "x$ac_libdir" != "x" ; then
 
162
                         LDFLAGS="$LDFLAGS -L$ac_libdir $w_flag$ac_libdir$w_flag_2"
 
163
                         for lib in $ac_gss_libs; do
 
164
                           AC_CHECK_LIB($lib,main)
 
165
                         done
 
166
                       else
 
167
                         ac_gssapi_libs=`krb5-config --libs gssapi 2>/dev/null`
 
168
                         if test "x$ac_gssapi_libs" != "x" ; then
 
169
                           ac_libdir=`echo $ac_gssapi_libs | grep "\-L"`
 
170
                           if test "x$ac_libdir" != "x" ; then
 
171
                             ac_libdir=`echo $ac_gssapi_libs | sed -e 's/.*-L//' | sed -e 's/ .*//'`  
 
172
                             LDFLAGS="$LDFLAGS $w_flag$ac_libdir$w_flag_2"
 
173
                           fi
 
174
                           LDFLAGS="$LDFLAGS $ac_gssapi_libs"
 
175
                         else
 
176
                           for lib in $ac_gss_libs; do
 
177
                             AC_CHECK_LIB($lib,main)
 
178
                           done
 
179
                         fi
 
180
                       fi
 
181
                       ;;
 
182
                *) if test "x$enableval" != "xyes" -a "x$enableval" != "x" -a "x$enableval" != "xno" ; then
 
183
                     ac_libdir=$enableval/lib
 
184
                     ac_includedir=$enableval/include
 
185
                     CPPFLAGS="$CPPFLAGS -I$ac_includedir"
 
186
                     AC_CHECK_HEADERS(gssapi.h gssapi/gssapi.h)
 
187
                     LDFLAGS="$LDFLAGS -L$ac_libdir $w_flag$ac_libdir$w_flag_2"
 
188
                     for lib in $ac_gss_libs; do
 
189
                        AC_CHECK_LIB($lib,main)
 
190
                     done
 
191
                   else
 
192
                     ac_gssapi_cflags=`krb5-config --cflags gssapi 2>/dev/null`
 
193
                     if test "x$ac_gssapi_cflags" != "x" ; then
 
194
                         CPPFLAGS="$CPPFLAGS $ac_gssapi_cflags"
 
195
                     fi
 
196
                     ac_gssapi_libs=`krb5-config --libs gssapi 2>/dev/null`
 
197
                     if test "x$ac_gssapi_libs" != "x" ; then
 
198
                         ac_libdir=`echo $ac_gssapi_libs | grep "\-L"`
 
199
                         if test "x$ac_libdir" != "x" ; then
 
200
                           ac_libdir=`echo $ac_gssapi_libs | sed -e 's/.*-L//' | sed -e 's/ .*//'`  
 
201
                           LDFLAGS="$LDFLAGS $w_flag$ac_libdir$w_flag_2"
 
202
                         fi
 
203
                         LDFLAGS="$LDFLAGS $ac_gssapi_libs"
 
204
                     else
 
205
                         for lib in $ac_gss_libs; do
 
206
                            AC_CHECK_LIB($lib,main)
 
207
                         done
 
208
                     fi
 
209
                     AC_CHECK_HEADERS(gssapi.h gssapi/gssapi.h)
 
210
                   fi
 
211
                   ;;
 
212
       esac
 
213
       enable_arg="heimdal"
 
214
}
 
215
check_nas(){
 
216
       AC_DEFINE(HAVE_NAS_KERBEROS,1,[Define to 1 if you have NAS Kerberos])
 
217
       AC_CHECK_HEADERS(gssapi.h gssapi/gssapi.h gssapi/gssapi_krb5.h gssapi/gssapi_generic.h)
 
218
       LDFLAGS="$LDFLAGS -L/usr/lib"
 
219
       ac_gss_libs="krb5 gssapi_krb5 ksvc";
 
220
       for lib in $ac_gss_libs; do
 
221
          AC_CHECK_LIB($lib,main)
 
222
       done
 
223
       enable_arg="nas"
 
224
}
 
225
 
 
226
check_seam_64(){
 
227
       SPARCV9s="/sparcv9"
 
228
       check_seam
 
229
       enable_arg="seam64"
 
230
}
 
231
 
 
232
check_seam(){
 
233
       AC_DEFINE(HAVE_SEAM_KERBEROS,1,[Define to 1 if you have SEAM Kerberos])
 
234
       AC_CHECK_HEADERS(gssapi.h gssapi/gssapi.h gssapi/gssapi_ext.h)
 
235
       ac_sol_libs="nsl socket resolv gss"
 
236
       for lib in $ac_sol_libs; do
 
237
          AC_CHECK_LIB($lib,main)
 
238
       done
 
239
       enable_arg="seam"
 
240
}
 
241
 
 
242
dnl Define MIT libraries
 
243
AC_ARG_ENABLE(mit,
 
244
  [  --enable-mit[=DIR]   enable use of MIT package (default=yes) ],
 
245
  [
 
246
    if test "x$enableval" != "xno" ; then
 
247
       check_mit
 
248
    fi ])
 
249
 
 
250
dnl Define Heimdal libraries
 
251
AC_ARG_ENABLE(heimdal,
 
252
  [  --enable-heimdal[=DIR]       enable use of Heimdal package (default=no) ],
 
253
  [
 
254
    if test "x$enableval" != "xno" ; then
 
255
       check_heimdal
 
256
    fi ])
 
257
 
 
258
dnl Define NAS libraries
 
259
AC_ARG_ENABLE(nas,
 
260
  [  --enable-nas                 enable use of NAS(AIX) package (default=no) ],
 
261
  [
 
262
    if test "x$enableval" != "xno" ; then
 
263
       check_nas
 
264
    fi ])
 
265
 
 
266
dnl Define SEAM libraries
 
267
AC_ARG_ENABLE(seam,
 
268
  [  --enable-seam[=SRC]          enable use of SEAM(Solaris) package (default=no) ],
 
269
  [
 
270
    if test "x$enableval" != "xno" ; then
 
271
       check_seam
 
272
    fi ])
 
273
 
 
274
dnl Define SEAM libraries
 
275
AC_ARG_ENABLE(seam-64,
 
276
  [  --enable-seam-64[=SRC]       enable use of 64bit SEAM(Solaris) package (default=no) ],
 
277
  [
 
278
    if test "x$enableval" != "xno" ; then
 
279
       check_seam_64
 
280
    fi ])
 
281
 
 
282
dnl Define system default
 
283
if test "$enable_arg" = "no"; then
 
284
  dnl Autodetect system
 
285
  dnl Check krb5-config first
 
286
  AC_CHECK_PROG(ac_krb5_config,krb5-config,yes,no)
 
287
  case $sys in
 
288
           Linux) rpm -q heimdal-lib >/dev/null 2>&1
 
289
                  if test $? = 0 ; then
 
290
                    check_heimdal
 
291
                  else 
 
292
                    check_mit
 
293
                  fi 
 
294
                  ;;
 
295
           AIX)   lslpp -L krb5.client.rte >/dev/null 2>&1
 
296
                  if test $? = 0 ; then
 
297
                    check_nas
 
298
                  else 
 
299
                    check_mit
 
300
                  fi
 
301
                  ;;
 
302
           SunOS) pkginfo SUNWgss >/dev/null 2>&1
 
303
                  if test $? = 0 ; then
 
304
                    check_seam
 
305
                  else 
 
306
                    check_mit
 
307
                  fi
 
308
                  ;;
 
309
           FreeBSD) check_heimdal
 
310
                    ;;
 
311
           *) check_mit
 
312
              ;;
 
313
  esac
 
314
fi
 
315
 
 
316
AC_C_BIGENDIAN
 
317
 
 
318
AC_CHECK_HEADERS( \
 
319
        errno.h \
 
320
        netdb.h \
 
321
        stdio.h \
 
322
        stdlib.h \
 
323
        string.h \
 
324
        sys/time.h\
 
325
        time.h \
 
326
        unistd.h \
 
327
)
 
328
 
 
329
AC_CONFIG_HEADER(ska_config.h)
 
330
 
 
331
AH_TOP([/*
 
332
 * -----------------------------------------------------------------------------
 
333
 *
 
334
 * Author: Markus Moeller (|MAIL|)
 
335
 *
 
336
 * Copyright (C) 2007 Markus Moeller. All rights reserved.
 
337
 *
 
338
 *   This program is free software; you can redistribute it and/or modify
 
339
 *   it under the terms of the GNU General Public License as published by
 
340
 *   the Free Software Foundation; either version 2 of the License, or
 
341
 *   (at your option) any later version.
 
342
 *
 
343
 *   This program is distributed in the hope that it will be useful,
 
344
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
345
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
346
 *   GNU General Public License for more details.
 
347
 *
 
348
 *   You should have received a copy of the GNU General Public License
 
349
 *   along with this program; if not, write to the Free Software
 
350
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
 
351
 *
 
352
 *   As a special exemption, M Moeller gives permission to link this program
 
353
 *   with MIT, Heimdal or other GSS/Kerberos libraries, and distribute
 
354
 *   the resulting executable, without including the source code for
 
355
 *   the Libraries in the source distribution.
 
356
 *
 
357
 * -----------------------------------------------------------------------------
 
358
 */
 
359
])
 
360
 
 
361
squid_dir=
 
362
AC_ARG_WITH([squid],
 
363
  AC_HELP_STRING([--with-squid=PATH],
 
364
        [Special option for building bundled inside Squid. Do not define manually.]),
 
365
  [ squid_dir=$withval ]
 
366
)
 
367
 
 
368
CPPFLAGS="$CPPFLAGS -I../../../ -I../../../include/ -I$squid_dir/include -I$squid_dir/src -I$squid_dir"
 
369
AC_CACHE_CHECK([for SQUID at '$squid_dir' ],ac_cv_have_squid,[
 
370
AC_TRY_RUN([
 
371
#include <config.h>
 
372
int main(int argc, char *argv[]) {
 
373
#ifdef SQUID_CONFIG_H
 
374
return 0;
 
375
#else
 
376
return 1;
 
377
#endif
 
378
}],
 
379
  ac_cv_have_squid=yes,
 
380
  ac_cv_have_squid=no)
 
381
])
 
382
LDFLAGS="$LDFLAGS -L../../../lib"
 
383
if test "x$ac_cv_have_squid" = "xyes"; then
 
384
  AC_DEFINE(HAVE_SQUID,1, [Define to 1 if you have SQUID])
 
385
  AC_CHECK_HEADERS(getaddrinfo.h getnameinfo.h util.h)
 
386
  AC_CHECK_DECLS([xgetaddrinfo], [], [], [[#include <getaddrinfo.h>]])
 
387
  AC_CHECK_DECLS([xfreeaddrinfo], [], [], [[#include <getaddrinfo.h>]])
 
388
  AC_CHECK_DECLS([xgai_strerror], [], [], [[#include <getaddrinfo.h>]])
 
389
  AC_CHECK_DECLS([xgetnameinfo], [], [], [[#include <getnameinfo.h>]])
 
390
  AC_CHECK_DECLS([xstrdup], [], [], [[#include <util.h>]])
 
391
  AC_CHECK_DECLS([xmalloc], [], [], [[#include <util.h>]])
 
392
  AC_CHECK_DECLS([xfree], [], [], [[#include <util.h>]])
 
393
  AC_CHECK_LIB(m,main)
 
394
  AC_CHECK_LIB(mw,main)
 
395
  LIBS="-lmiscutil $LIBS"
 
396
AH_TOP([ /* This is building inside Squid. We need their config as well. */
 
397
/* bit of autoconf magic hack */
 
398
#undef HAVE_SQUID
 
399
 
 
400
#if HAVE_SQUID
 
401
#include "squid_compat.h"
 
402
#endif /* HAVE_SQUID */
 
403
])
 
404
AH_BOTTOM([
 
405
/* Squid provides a few compat libraries */
 
406
#ifdef HAVE_SQUID
 
407
#ifdef HAVE_GETADDRINFO_H
 
408
#include "getaddrinfo.h"
 
409
#endif
 
410
#ifdef HAVE_GETNAMEINFO_H
 
411
#include "getnameinfo.h"
 
412
#endif
 
413
#ifdef HAVE_UTIL_H
 
414
#include "util.h"
 
415
#endif
 
416
#endif /* HAVE_SQUID */
 
417
])
 
418
 
 
419
fi
 
420
 
 
421
 
 
422
AH_BOTTOM([
 
423
#ifdef HAVE_HEIMDAL_KERBEROS
 
424
#ifdef HAVE_GSSAPI_GSSAPI_H
 
425
#include <gssapi/gssapi.h>
 
426
#elif defined(HAVE_GSSAPI_H)
 
427
#include <gssapi.h>
 
428
#else
 
429
#error "GSSAPI header required"
 
430
#endif
 
431
#define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE
 
432
#else
 
433
#ifdef HAVE_SEAM_KERBEROS
 
434
#ifdef HAVE_GSSAPI_GSSAPI_H
 
435
#include <gssapi/gssapi.h>
 
436
#elif defined(HAVE_GSSAPI_H)
 
437
#include <gssapi.h>
 
438
#else
 
439
#error "GSSAPI header required"
 
440
#endif
 
441
#ifdef HAVE_GSSAPI_GSSAPI_EXT_H
 
442
#include <gssapi/gssapi_ext.h>
 
443
#endif
 
444
#define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE
 
445
#else /*MIT*/
 
446
#ifdef HAVE_GSSAPI_GSSAPI_H
 
447
#include <gssapi/gssapi.h>
 
448
#elif defined(HAVE_GSSAPI_H)
 
449
#include <gssapi.h>
 
450
#else
 
451
#error "GSSAPI header required"
 
452
#endif
 
453
#ifdef HAVE_GSSAPI_GSSAPI_KRB5_H
 
454
#include <gssapi/gssapi_krb5.h>
 
455
#endif
 
456
#ifdef HAVE_GSSAPI_GSSAPI_GENERIC_H
 
457
#include <gssapi/gssapi_generic.h>
 
458
#endif
 
459
#endif
 
460
#endif
 
461
 
 
462
])
 
463
 
 
464
echo "configure: ## -----------------------------##"
 
465
echo "configure: ##"
 
466
echo "configure: ## $enable_arg has been selected"
 
467
echo "configure: ##"
 
468
echo "configure: ## -----------------------------##"
 
469
 
 
470
MY_CFLAGS="-Wall -Wextra -Werror -Wcomment -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wshadow"
 
471
for ac_cv_my_cflag in $MY_CFLAGS; do
 
472
echo "int main()
 
473
  {
 
474
     return 0;
 
475
  };" > conftest.c
 
476
${CC} $ac_cv_my_cflag -c conftest.c 2>/dev/null
 
477
res=$?
 
478
rm -f conftest.*
 
479
if test "$res" = "0"; then
 
480
 CFLAGS="$CFLAGS $ac_cv_my_cflag"
 
481
fi
 
482
done
 
483
 
 
484
AC_OUTPUT(Makefile)
 
485
 
 
486
echo "configure: updating ska_config.h"
 
487
sed -e "s/|MAIL|/"$PACKAGE_BUGREPORT"/" ska_config.h > .ska_config.h.tmp
 
488
mv .ska_config.h.tmp ska_config.h