]> git.pld-linux.org Git - packages/mysql.git/blob - mysql-acfix.patch
- run mysql on 84 level (before apache) and stop on 25 (after apache).
[packages/mysql.git] / mysql-acfix.patch
1 --- mysql-3.23.48/acinclude.m4.orig     Thu Feb  7 21:46:47 2002
2 +++ mysql-3.23.48/acinclude.m4  Wed Feb 13 20:07:10 2002
3 @@ -2,7 +2,7 @@
4  
5  # A local version of AC_CHECK_SIZEOF that includes sys/types.h
6  dnl MYSQL_CHECK_SIZEOF(TYPE [, CROSS-SIZE])
7 -AC_DEFUN(MYSQL_CHECK_SIZEOF,
8 +AC_DEFUN([MYSQL_CHECK_SIZEOF],
9  [changequote(<<, >>)dnl
10  dnl The name to #define.
11  define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl
12 @@ -31,7 +31,7 @@
13  ])
14  
15  #---START: Used in for client configure
16 -AC_DEFUN(MYSQL_TYPE_ACCEPT,
17 +AC_DEFUN([MYSQL_TYPE_ACCEPT],
18  [ac_save_CXXFLAGS="$CXXFLAGS"
19  AC_CACHE_CHECK([base type of last arg to accept], mysql_cv_btype_last_arg_accept,
20  AC_LANG_SAVE
21 @@ -71,7 +71,7 @@
22  #---END:
23  
24  dnl Find type of qsort
25 -AC_DEFUN(MYSQL_TYPE_QSORT,
26 +AC_DEFUN([MYSQL_TYPE_QSORT],
27  [AC_CACHE_CHECK([return type of qsort], mysql_cv_type_qsort,
28  [AC_TRY_COMPILE([#include <stdlib.h>
29  #ifdef __cplusplus
30 @@ -88,7 +88,7 @@
31  fi
32  ])
33  
34 -AC_DEFUN(MYSQL_TIMESPEC_TS,
35 +AC_DEFUN([MYSQL_TIMESPEC_TS],
36  [AC_CACHE_CHECK([if struct timespec has a ts_sec member], mysql_cv_timespec_ts,
37  [AC_TRY_COMPILE([#include <pthread.h>
38  #ifdef __cplusplus
39 @@ -106,7 +106,7 @@
40  fi
41  ])
42  
43 -AC_DEFUN(MYSQL_TZNAME,
44 +AC_DEFUN([MYSQL_TZNAME],
45  [AC_CACHE_CHECK([if we have tzname variable], mysql_cv_tzname,
46  [AC_TRY_COMPILE([#include <time.h>
47  #ifdef __cplusplus
48 @@ -122,7 +122,7 @@
49  fi
50  ])
51  
52 -AC_DEFUN(MYSQL_CHECK_ZLIB_WITH_COMPRESS, [
53 +AC_DEFUN([MYSQL_CHECK_ZLIB_WITH_COMPRESS], [
54  save_LIBS="$LIBS"
55  LIBS="-l$1 $LIBS"
56  AC_CACHE_CHECK([if libz with compress], mysql_cv_compress,
57 @@ -142,7 +142,7 @@
58  ])
59  
60  #---START: Used in for client configure
61 -AC_DEFUN(MYSQL_CHECK_ULONG,
62 +AC_DEFUN([MYSQL_CHECK_ULONG],
63  [AC_MSG_CHECKING(for type ulong)
64  AC_CACHE_VAL(ac_cv_ulong,
65  [AC_TRY_RUN([#include <stdio.h>
66 @@ -160,7 +160,7 @@
67  fi
68  ])
69  
70 -AC_DEFUN(MYSQL_CHECK_UCHAR,
71 +AC_DEFUN([MYSQL_CHECK_UCHAR],
72  [AC_MSG_CHECKING(for type uchar)
73  AC_CACHE_VAL(ac_cv_uchar,
74  [AC_TRY_RUN([#include <stdio.h>
75 @@ -178,7 +178,7 @@
76  fi
77  ])
78  
79 -AC_DEFUN(MYSQL_CHECK_UINT,
80 +AC_DEFUN([MYSQL_CHECK_UINT],
81  [AC_MSG_CHECKING(for type uint)
82  AC_CACHE_VAL(ac_cv_uint,
83  [AC_TRY_RUN([#include <stdio.h>
84 @@ -197,7 +197,7 @@
85  ])
86  
87  
88 -AC_DEFUN(MYSQL_PTHREAD_YIELD,
89 +AC_DEFUN([MYSQL_PTHREAD_YIELD],
90  [AC_CACHE_CHECK([if pthread_yield takes zero arguments], ac_cv_pthread_yield_zero_arg,
91  [AC_TRY_LINK([#define _GNU_SOURCE
92  #include <pthread.h>
93 @@ -234,7 +234,7 @@
94  
95  #---END:
96  
97 -AC_DEFUN(MYSQL_CHECK_FP_EXCEPT,
98 +AC_DEFUN([MYSQL_CHECK_FP_EXCEPT],
99  [AC_MSG_CHECKING(for type fp_except)
100  AC_CACHE_VAL(ac_cv_fp_except,
101  [AC_TRY_RUN([#include <stdio.h>
102 @@ -253,92 +253,9 @@
103  fi
104  ])
105  
106 -# From fileutils-3.14/aclocal.m4
107 -
108 -# @defmac AC_PROG_CC_STDC
109 -# @maindex PROG_CC_STDC
110 -# @ovindex CC
111 -# If the C compiler in not in ANSI C mode by default, try to add an option
112 -# to output variable @code{CC} to make it so.  This macro tries various
113 -# options that select ANSI C on some system or another.  It considers the
114 -# compiler to be in ANSI C mode if it defines @code{__STDC__} to 1 and
115 -# handles function prototypes correctly.
116 -#
117 -# Patched by monty to only check if __STDC__ is defined. With the original 
118 -# check it's impossible to get things to work with the Sunpro compiler from
119 -# Workshop 4.2
120 -#
121 -# If you use this macro, you should check after calling it whether the C
122 -# compiler has been set to accept ANSI C; if not, the shell variable
123 -# @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
124 -# code in ANSI C, you can make an un-ANSIfied copy of it by using the
125 -# program @code{ansi2knr}, which comes with Ghostscript.
126 -# @end defmac
127 -
128 -AC_DEFUN(AM_PROG_CC_STDC,
129 -[AC_REQUIRE([AC_PROG_CC])
130 -AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
131 -AC_CACHE_VAL(am_cv_prog_cc_stdc,
132 -[am_cv_prog_cc_stdc=no
133 -ac_save_CC="$CC"
134 -# Don't try gcc -ansi; that turns off useful extensions and
135 -# breaks some systems' header files.
136 -# AIX                  -qlanglvl=ansi
137 -# Ultrix and OSF/1     -std1
138 -# HP-UX                        -Aa -D_HPUX_SOURCE
139 -# SVR4                 -Xc -D__EXTENSIONS__
140 -# removed "-Xc -D__EXTENSIONS__" beacause sun c++ does not like it.
141 -for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" 
142 -do
143 -  CC="$ac_save_CC $ac_arg"
144 -  AC_TRY_COMPILE(
145 -[#if !defined(__STDC__)
146 -choke me
147 -#endif
148 -/* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
149 -#ifdef _SEQUENT_
150 -# include <sys/types.h>
151 -# include <sys/stat.h>
152 -#endif
153 -], [
154 -int test (int i, double x);
155 -struct s1 {int (*f) (int a);};
156 -struct s2 {int (*f) (double a);};],
157 -[am_cv_prog_cc_stdc="$ac_arg"; break])
158 -done
159 -CC="$ac_save_CC"
160 -])
161 -AC_MSG_RESULT($am_cv_prog_cc_stdc)
162 -case "x$am_cv_prog_cc_stdc" in
163 -  x|xno) ;;
164 -  *) CC="$CC $am_cv_prog_cc_stdc" ;;
165 -esac
166 -])
167 -
168 -#
169 -# Check to make sure that the build environment is sane.
170 -#
171 -
172 -AC_DEFUN(AM_SANITY_CHECK,
173 -[AC_MSG_CHECKING([whether build environment is sane])
174 -sleep 1
175 -echo timestamp > conftestfile
176 -# Do this in a subshell so we don't clobber the current shell's
177 -# arguments.  FIXME: maybe try `-L' hack like GETLOADAVG test?
178 -if (set X `ls -t $srcdir/configure conftestfile`; test "[$]2" = conftestfile)
179 -then
180 -   # Ok.
181 -   :
182 -else
183 -   AC_MSG_ERROR([newly created file is older than distributed files!
184 -Check your system clock])
185 -fi
186 -rm -f conftest*
187 -AC_MSG_RESULT(yes)])
188 -
189  # Orginal from bash-2.0 aclocal.m4, Changed to use termcap last by monty.
190   
191 -AC_DEFUN(MYSQL_CHECK_LIB_TERMCAP,
192 +AC_DEFUN([MYSQL_CHECK_LIB_TERMCAP],
193  [
194  AC_CACHE_VAL(mysql_cv_termcap_lib,
195  [AC_CHECK_LIB(ncurses, tgetent, mysql_cv_termcap_lib=libncurses,
196 @@ -359,7 +276,7 @@
197  ])
198  
199  dnl Check type of signal routines (posix, 4.2bsd, 4.1bsd or v7)
200 -AC_DEFUN(MYSQL_SIGNAL_CHECK,
201 +AC_DEFUN([MYSQL_SIGNAL_CHECK],
202  [AC_REQUIRE([AC_TYPE_SIGNAL])
203  AC_MSG_CHECKING(for type of signal functions)
204  AC_CACHE_VAL(mysql_cv_signal_vintage,
205 @@ -398,7 +315,7 @@
206  fi
207  ])
208  
209 -AC_DEFUN(MYSQL_CHECK_GETPW_FUNCS,
210 +AC_DEFUN([MYSQL_CHECK_GETPW_FUNCS],
211  [AC_MSG_CHECKING(whether programs are able to redeclare getpw functions)
212  AC_CACHE_VAL(mysql_cv_can_redecl_getpw,
213  [AC_TRY_COMPILE([#include <sys/types.h>
214 @@ -411,7 +328,7 @@
215  fi
216  ])
217  
218 -AC_DEFUN(MYSQL_HAVE_TIOCGWINSZ,
219 +AC_DEFUN([MYSQL_HAVE_TIOCGWINSZ],
220  [AC_MSG_CHECKING(for TIOCGWINSZ in sys/ioctl.h)
221  AC_CACHE_VAL(mysql_cv_tiocgwinsz_in_ioctl,
222  [AC_TRY_COMPILE([#include <sys/types.h>
223 @@ -423,7 +340,7 @@
224  fi
225  ])
226  
227 -AC_DEFUN(MYSQL_HAVE_FIONREAD,
228 +AC_DEFUN([MYSQL_HAVE_FIONREAD],
229  [AC_MSG_CHECKING(for FIONREAD in sys/ioctl.h)
230  AC_CACHE_VAL(mysql_cv_fionread_in_ioctl,
231  [AC_TRY_COMPILE([#include <sys/types.h>
232 @@ -435,7 +352,7 @@
233  fi
234  ])
235  
236 -AC_DEFUN(MYSQL_HAVE_TIOCSTAT,
237 +AC_DEFUN([MYSQL_HAVE_TIOCSTAT],
238  [AC_MSG_CHECKING(for TIOCSTAT in sys/ioctl.h)
239  AC_CACHE_VAL(mysql_cv_tiocstat_in_ioctl,
240  [AC_TRY_COMPILE([#include <sys/types.h>
241 @@ -447,7 +364,7 @@
242  fi
243  ])
244  
245 -AC_DEFUN(MYSQL_STRUCT_DIRENT_D_INO,
246 +AC_DEFUN([MYSQL_STRUCT_DIRENT_D_INO],
247  [AC_REQUIRE([AC_HEADER_DIRENT])
248  AC_MSG_CHECKING(if struct dirent has a d_ino member)
249  AC_CACHE_VAL(mysql_cv_dirent_has_dino,
250 @@ -480,7 +397,7 @@
251  fi
252  ])
253  
254 -AC_DEFUN(MYSQL_TYPE_SIGHANDLER,
255 +AC_DEFUN([MYSQL_TYPE_SIGHANDLER],
256  [AC_MSG_CHECKING([whether signal handlers are of type void])
257  AC_CACHE_VAL(mysql_cv_void_sighandler,
258  [AC_TRY_COMPILE([#include <sys/types.h>
259 @@ -499,7 +416,7 @@
260  fi
261  ])
262  
263 -AC_DEFUN(MYSQL_CXX_BOOL,
264 +AC_DEFUN([MYSQL_CXX_BOOL],
265  [
266  AC_REQUIRE([AC_PROG_CXX])
267  AC_MSG_CHECKING(if ${CXX} supports bool types)
268 @@ -518,7 +435,7 @@
269  fi
270  ])dnl
271  
272 -AC_DEFUN(MYSQL_STACK_DIRECTION,
273 +AC_DEFUN([MYSQL_STACK_DIRECTION],
274   [AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
275   [AC_TRY_RUN([find_stack_direction ()
276   {
277 @@ -540,7 +457,7 @@
278   AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
279  ])dnl
280  
281 -AC_DEFUN(MYSQL_FUNC_ALLOCA,
282 +AC_DEFUN([MYSQL_FUNC_ALLOCA],
283  [
284  # Since we have heard that alloca fails on IRIX never define it on a
285  # SGI machine
286 @@ -609,7 +526,7 @@
287  fi
288  ])
289  
290 -AC_DEFUN(MYSQL_CHECK_LONGLONG_TO_FLOAT,
291 +AC_DEFUN([MYSQL_CHECK_LONGLONG_TO_FLOAT],
292  [
293  AC_MSG_CHECKING(if conversion of longlong to float works)
294  AC_CACHE_VAL(ac_cv_conv_longlong_to_float,
295 @@ -1019,568 +936,3 @@
296  dnl ---------------------------------------------------------------------------
297  dnl END OF MYSQL_CHECK_GEMINI SECTION
298  dnl ---------------------------------------------------------------------------
299 -
300 -dnl ---------------------------------------------------------------------------
301 -dnl Got this from the GNU tar 1.13.11 distribution
302 -dnl by Paul Eggert <eggert@twinsun.com>
303 -dnl ---------------------------------------------------------------------------
304 -
305 -dnl By default, many hosts won't let programs access large files;
306 -dnl one must use special compiler options to get large-file access to work.
307 -dnl For more details about this brain damage please see:
308 -dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
309 -
310 -dnl Written by Paul Eggert <eggert@twinsun.com>.
311 -
312 -dnl Internal subroutine of AC_SYS_LARGEFILE.
313 -dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME)
314 -AC_DEFUN(AC_SYS_LARGEFILE_FLAGS,
315 -  [AC_CACHE_CHECK([for $1 value to request large file support],
316 -     ac_cv_sys_largefile_$1,
317 -     [if ($GETCONF LFS_$1) >conftest.1 2>conftest.2 && test ! -s conftest.2
318 -      then
319 -        ac_cv_sys_largefile_$1=`cat conftest.1`
320 -      else
321 -       ac_cv_sys_largefile_$1=no
322 -       ifelse($1, CFLAGS,
323 -         [case "$host_os" in
324 -          # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
325 -changequote(, )dnl
326 -          hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
327 -changequote([, ])dnl
328 -            if test "$GCC" = yes; then
329 -              ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__
330 -            fi
331 -            ;;
332 -          # IRIX 6.2 and later require cc -n32.
333 -changequote(, )dnl
334 -          irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
335 -changequote([, ])dnl
336 -            if test "$GCC" != yes; then
337 -              ac_cv_sys_largefile_CFLAGS=-n32
338 -            fi
339 -          esac
340 -          if test "$ac_cv_sys_largefile_CFLAGS" != no; then
341 -            ac_save_CC="$CC"
342 -            CC="$CC $ac_cv_sys_largefile_CFLAGS"
343 -            AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no)
344 -            CC="$ac_save_CC"
345 -          fi])
346 -      fi
347 -      rm -f conftest*])])
348 -
349 -dnl Internal subroutine of AC_SYS_LARGEFILE.
350 -dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL)
351 -AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND,
352 -  [case $2 in
353 -   no) ;;
354 -   ?*)
355 -     case "[$]$1" in
356 -     '') $1=$2 ;;
357 -     *) $1=[$]$1' '$2 ;;
358 -     esac ;;
359 -   esac])
360 -
361 -dnl Internal subroutine of AC_SYS_LARGEFILE.
362 -dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT)
363 -AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
364 -  [AC_CACHE_CHECK([for $1], $2,
365 -     [$2=no
366 -changequote(, )dnl
367 -      $4
368 -      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
369 -       case "$ac_flag" in
370 -       -D$1)
371 -         $2=1 ;;
372 -       -D$1=*)
373 -         $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
374 -       esac
375 -      done
376 -changequote([, ])dnl
377 -      ])
378 -   if test "[$]$2" != no; then
379 -     AC_DEFINE_UNQUOTED([$1], [$]$2, [$3])
380 -   fi])
381 -
382 -AC_DEFUN(MYSQL_SYS_LARGEFILE,
383 -  [AC_REQUIRE([AC_CANONICAL_HOST])
384 -  AC_ARG_ENABLE(largefile,
385 -     [  --disable-largefile     Omit support for large files])
386 -   if test "$enable_largefile" != no; then
387 -     AC_CHECK_TOOL(GETCONF, getconf)
388 -     AC_SYS_LARGEFILE_FLAGS(CFLAGS)
389 -     AC_SYS_LARGEFILE_FLAGS(LDFLAGS)
390 -     AC_SYS_LARGEFILE_FLAGS(LIBS)
391 -
392 -     for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
393 -       case "$ac_flag" in
394 -       no) ;;
395 -       -D_FILE_OFFSET_BITS=*) ;;
396 -       -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
397 -       -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
398 -       -D?* | -I?*)
399 -        AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;;
400 -       *)
401 -        AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;;
402 -       esac
403 -     done
404 -     AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS")
405 -     AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS")
406 -     AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS,
407 -       ac_cv_sys_file_offset_bits,
408 -       [Number of bits in a file offset, on hosts where this is settable.],
409 -       [case "$host_os" in
410 -       # HP-UX 10.20 and later
411 -       hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
412 -         ac_cv_sys_file_offset_bits=64 ;;
413 -       esac])
414 -     AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE,
415 -       ac_cv_sys_largefile_source,
416 -       [Define to make fseeko etc. visible, on some hosts.],
417 -       [case "$host_os" in
418 -       # HP-UX 10.20 and later
419 -       hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
420 -         ac_cv_sys_largefile_source=1 ;;
421 -       esac])
422 -     AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES,
423 -       ac_cv_sys_large_files,
424 -       [Define for large files, on AIX-style hosts.],
425 -       [case "$host_os" in
426 -       # AIX 4.2 and later
427 -       aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
428 -         ac_cv_sys_large_files=1 ;;
429 -       esac])
430 -   fi
431 -  ])
432 -
433 -
434 -## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
435 -## Copyright (C) 1996-1999 Free Software Foundation, Inc.
436 -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
437 -##
438 -## This program is free software; you can redistribute it and/or modify
439 -## it under the terms of the GNU General Public License as published by
440 -## the Free Software Foundation; either version 2 of the License, or
441 -## (at your option) any later version.
442 -##
443 -## This program is distributed in the hope that it will be useful, but
444 -## WITHOUT ANY WARRANTY; without even the implied warranty of
445 -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
446 -## General Public License for more details.
447 -##
448 -## You should have received a copy of the GNU General Public License
449 -## along with this program; if not, write to the Free Software
450 -## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
451 -##
452 -## As a special exception to the GNU General Public License, if you
453 -## distribute this file as part of a program that contains a
454 -## configuration script generated by Autoconf, you may include it under
455 -## the same distribution terms that you use for the rest of that program.
456 -
457 -# serial 40 AC_PROG_LIBTOOL
458 -AC_DEFUN(AC_PROG_LIBTOOL,
459 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
460 -
461 -# Save cache, so that ltconfig can load it
462 -AC_CACHE_SAVE
463 -
464 -# Actually configure libtool.  ac_aux_dir is where install-sh is found.
465 -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
466 -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
467 -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
468 -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
469 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
470 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
471 -|| AC_MSG_ERROR([libtool configure failed])
472 -
473 -# Reload cache, that may have been modified by ltconfig
474 -AC_CACHE_LOAD
475 -
476 -# This can be used to rebuild libtool when needed
477 -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
478 -
479 -# Always use our own libtool.
480 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
481 -AC_SUBST(LIBTOOL)dnl
482 -
483 -# Redirect the config.log output again, so that the ltconfig log is not
484 -# clobbered by the next message.
485 -exec 5>>./config.log
486 -])
487 -
488 -AC_DEFUN(AC_LIBTOOL_SETUP,
489 -[AC_PREREQ(2.13)dnl
490 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
491 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
492 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
493 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
494 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
495 -AC_REQUIRE([AC_PROG_RANLIB])dnl
496 -AC_REQUIRE([AC_PROG_CC])dnl
497 -AC_REQUIRE([AC_PROG_LD])dnl
498 -AC_REQUIRE([AC_PROG_NM])dnl
499 -AC_REQUIRE([AC_PROG_LN_S])dnl
500 -dnl
501 -
502 -case "$target" in
503 -NONE) lt_target="$host" ;;
504 -*) lt_target="$target" ;;
505 -esac
506 -
507 -# Check for any special flags to pass to ltconfig.
508 -libtool_flags="--cache-file=$cache_file"
509 -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
510 -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
511 -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
512 -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
513 -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
514 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
515 -[libtool_flags="$libtool_flags --enable-dlopen"])
516 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
517 -[libtool_flags="$libtool_flags --enable-win32-dll"])
518 -AC_ARG_ENABLE(libtool-lock,
519 -  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
520 -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
521 -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
522 -
523 -# Some flags need to be propagated to the compiler or linker for good
524 -# libtool support.
525 -case "$lt_target" in
526 -*-*-irix6*)
527 -  # Find out which ABI we are using.
528 -  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
529 -  if AC_TRY_EVAL(ac_compile); then
530 -    case "`/usr/bin/file conftest.o`" in
531 -    *32-bit*)
532 -      LD="${LD-ld} -32"
533 -      ;;
534 -    *N32*)
535 -      LD="${LD-ld} -n32"
536 -      ;;
537 -    *64-bit*)
538 -      LD="${LD-ld} -64"
539 -      ;;
540 -    esac
541 -  fi
542 -  rm -rf conftest*
543 -  ;;
544 -
545 -*-*-sco3.2v5*)
546 -  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
547 -  SAVE_CFLAGS="$CFLAGS"
548 -  CFLAGS="$CFLAGS -belf"
549 -  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
550 -    [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
551 -  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
552 -    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
553 -    CFLAGS="$SAVE_CFLAGS"
554 -  fi
555 -  ;;
556 -
557 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
558 -[*-*-cygwin* | *-*-mingw*)
559 -  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
560 -  AC_CHECK_TOOL(AS, as, false)
561 -  AC_CHECK_TOOL(OBJDUMP, objdump, false)
562 -  ;;
563 -])
564 -esac
565 -])
566 -
567 -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
568 -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
569 -
570 -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
571 -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
572 -
573 -# AC_ENABLE_SHARED - implement the --enable-shared flag
574 -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
575 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
576 -#   `yes'.
577 -AC_DEFUN(AC_ENABLE_SHARED, [dnl
578 -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
579 -AC_ARG_ENABLE(shared,
580 -changequote(<<, >>)dnl
581 -<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
582 -changequote([, ])dnl
583 -[p=${PACKAGE-default}
584 -case "$enableval" in
585 -yes) enable_shared=yes ;;
586 -no) enable_shared=no ;;
587 -*)
588 -  enable_shared=no
589 -  # Look at the argument we got.  We use all the common list separators.
590 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
591 -  for pkg in $enableval; do
592 -    if test "X$pkg" = "X$p"; then
593 -      enable_shared=yes
594 -    fi
595 -  done
596 -  IFS="$ac_save_ifs"
597 -  ;;
598 -esac],
599 -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
600 -])
601 -
602 -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
603 -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
604 -AC_ENABLE_SHARED(no)])
605 -
606 -# AC_ENABLE_STATIC - implement the --enable-static flag
607 -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
608 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
609 -#   `yes'.
610 -AC_DEFUN(AC_ENABLE_STATIC, [dnl
611 -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
612 -AC_ARG_ENABLE(static,
613 -changequote(<<, >>)dnl
614 -<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
615 -changequote([, ])dnl
616 -[p=${PACKAGE-default}
617 -case "$enableval" in
618 -yes) enable_static=yes ;;
619 -no) enable_static=no ;;
620 -*)
621 -  enable_static=no
622 -  # Look at the argument we got.  We use all the common list separators.
623 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
624 -  for pkg in $enableval; do
625 -    if test "X$pkg" = "X$p"; then
626 -      enable_static=yes
627 -    fi
628 -  done
629 -  IFS="$ac_save_ifs"
630 -  ;;
631 -esac],
632 -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
633 -])
634 -
635 -# AC_DISABLE_STATIC - set the default static flag to --disable-static
636 -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
637 -AC_ENABLE_STATIC(no)])
638 -
639 -
640 -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
641 -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
642 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
643 -#   `yes'.
644 -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
645 -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
646 -AC_ARG_ENABLE(fast-install,
647 -changequote(<<, >>)dnl
648 -<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
649 -changequote([, ])dnl
650 -[p=${PACKAGE-default}
651 -case "$enableval" in
652 -yes) enable_fast_install=yes ;;
653 -no) enable_fast_install=no ;;
654 -*)
655 -  enable_fast_install=no
656 -  # Look at the argument we got.  We use all the common list separators.
657 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
658 -  for pkg in $enableval; do
659 -    if test "X$pkg" = "X$p"; then
660 -      enable_fast_install=yes
661 -    fi
662 -  done
663 -  IFS="$ac_save_ifs"
664 -  ;;
665 -esac],
666 -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
667 -])
668 -
669 -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
670 -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
671 -AC_ENABLE_FAST_INSTALL(no)])
672 -
673 -# AC_PROG_LD - find the path to the GNU or non-GNU linker
674 -AC_DEFUN(AC_PROG_LD,
675 -[AC_ARG_WITH(gnu-ld,
676 -[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
677 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
678 -AC_REQUIRE([AC_PROG_CC])dnl
679 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
680 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
681 -ac_prog=ld
682 -if test "$ac_cv_prog_gcc" = yes; then
683 -  # Check if gcc -print-prog-name=ld gives a path.
684 -  AC_MSG_CHECKING([for ld used by GCC])
685 -  ac_prog=`($CC -print-prog-name=ld) 2>&5`
686 -  case "$ac_prog" in
687 -    # Accept absolute paths.
688 -changequote(,)dnl
689 -    [\\/]* | [A-Za-z]:[\\/]*)
690 -      re_direlt='/[^/][^/]*/\.\./'
691 -changequote([,])dnl
692 -      # Canonicalize the path of ld
693 -      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
694 -      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
695 -       ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
696 -      done
697 -      test -z "$LD" && LD="$ac_prog"
698 -      ;;
699 -  "")
700 -    # If it fails, then pretend we aren't using GCC.
701 -    ac_prog=ld
702 -    ;;
703 -  *)
704 -    # If it is relative, then search for the first ld in PATH.
705 -    with_gnu_ld=unknown
706 -    ;;
707 -  esac
708 -elif test "$with_gnu_ld" = yes; then
709 -  AC_MSG_CHECKING([for GNU ld])
710 -else
711 -  AC_MSG_CHECKING([for non-GNU ld])
712 -fi
713 -AC_CACHE_VAL(ac_cv_path_LD,
714 -[if test -z "$LD"; then
715 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
716 -  for ac_dir in $PATH; do
717 -    test -z "$ac_dir" && ac_dir=.
718 -    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
719 -      ac_cv_path_LD="$ac_dir/$ac_prog"
720 -      # Check to see if the program is GNU ld.  I'd rather use --version,
721 -      # but apparently some GNU ld's only accept -v.
722 -      # Break only if it was the GNU/non-GNU ld that we prefer.
723 -      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
724 -       test "$with_gnu_ld" != no && break
725 -      else
726 -       test "$with_gnu_ld" != yes && break
727 -      fi
728 -    fi
729 -  done
730 -  IFS="$ac_save_ifs"
731 -else
732 -  ac_cv_path_LD="$LD" # Let the user override the test with a path.
733 -fi])
734 -LD="$ac_cv_path_LD"
735 -if test -n "$LD"; then
736 -  AC_MSG_RESULT($LD)
737 -else
738 -  AC_MSG_RESULT(no)
739 -fi
740 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
741 -AC_PROG_LD_GNU
742 -])
743 -
744 -AC_DEFUN(AC_PROG_LD_GNU,
745 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
746 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
747 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
748 -  ac_cv_prog_gnu_ld=yes
749 -else
750 -  ac_cv_prog_gnu_ld=no
751 -fi])
752 -])
753 -
754 -# AC_PROG_NM - find the path to a BSD-compatible name lister
755 -AC_DEFUN(AC_PROG_NM,
756 -[AC_MSG_CHECKING([for BSD-compatible nm])
757 -AC_CACHE_VAL(ac_cv_path_NM,
758 -[if test -n "$NM"; then
759 -  # Let the user override the test.
760 -  ac_cv_path_NM="$NM"
761 -else
762 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
763 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
764 -    test -z "$ac_dir" && ac_dir=.
765 -    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
766 -      # Check to see if the nm accepts a BSD-compat flag.
767 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
768 -      #   nm: unknown option "B" ignored
769 -      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
770 -       ac_cv_path_NM="$ac_dir/nm -B"
771 -       break
772 -      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
773 -       ac_cv_path_NM="$ac_dir/nm -p"
774 -       break
775 -      else
776 -       ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
777 -       continue # so that we can try to find one that supports BSD flags
778 -      fi
779 -    fi
780 -  done
781 -  IFS="$ac_save_ifs"
782 -  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
783 -fi])
784 -NM="$ac_cv_path_NM"
785 -AC_MSG_RESULT([$NM])
786 -])
787 -
788 -# AC_CHECK_LIBM - check for math library
789 -AC_DEFUN(AC_CHECK_LIBM,
790 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
791 -LIBM=
792 -case "$lt_target" in
793 -*-*-beos* | *-*-cygwin*)
794 -  # These system don't have libm
795 -  ;;
796 -*-ncr-sysv4.3*)
797 -  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
798 -  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
799 -  ;;
800 -*)
801 -  AC_CHECK_LIB(m, main, LIBM="-lm")
802 -  ;;
803 -esac
804 -])
805 -
806 -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
807 -# the libltdl convenience library, adds --enable-ltdl-convenience to
808 -# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
809 -# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
810 -# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
811 -# '${top_builddir}/' (note the single quotes!) if your package is not
812 -# flat, and, if you're not using automake, define top_builddir as
813 -# appropriate in the Makefiles.
814 -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
815 -  case "$enable_ltdl_convenience" in
816 -  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
817 -  "") enable_ltdl_convenience=yes
818 -      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
819 -  esac
820 -  LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
821 -  INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
822 -])
823 -
824 -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
825 -# the libltdl installable library, and adds --enable-ltdl-install to
826 -# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
827 -# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
828 -# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
829 -# '${top_builddir}/' (note the single quotes!) if your package is not
830 -# flat, and, if you're not using automake, define top_builddir as
831 -# appropriate in the Makefiles.
832 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
833 -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
834 -  AC_CHECK_LIB(ltdl, main,
835 -  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
836 -  [if test x"$enable_ltdl_install" = xno; then
837 -     AC_MSG_WARN([libltdl not installed, but installation disabled])
838 -   else
839 -     enable_ltdl_install=yes
840 -   fi
841 -  ])
842 -  if test x"$enable_ltdl_install" = x"yes"; then
843 -    ac_configure_args="$ac_configure_args --enable-ltdl-install"
844 -    LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
845 -    INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
846 -  else
847 -    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
848 -    LIBLTDL="-lltdl"
849 -    INCLTDL=
850 -  fi
851 -])
852 -
853 -dnl old names
854 -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
855 -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
856 -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
857 -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
858 -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
859 -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
860 -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
861 -
862 -dnl This is just to silence aclocal about the macro not being used
863 -ifelse([AC_DISABLE_FAST_INSTALL])dnl
This page took 0.101462 seconds and 3 git commands to generate.