]> git.pld-linux.org Git - packages/amanda.git/blob - amanda-no_private_libtool.m4.patch
- bah, senbackup patch is not needed for this version
[packages/amanda.git] / amanda-no_private_libtool.m4.patch
1 --- amanda-2.4.2p2/acinclude.m4~        Wed Jul 19 01:12:26 2000
2 +++ amanda-2.4.2p2/acinclude.m4 Fri Jun  1 15:06:23 2001
3 @@ -439,430 +439,3 @@
4         AC_DEFINE(WAIT_USES_UNION,1,[Defined if wait() puts the status in a union wait instead of int. ])
5  fi
6  ])dnl
7 -## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
8 -## Copyright (C) 1996-1999 Free Software Foundation, Inc.
9 -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10 -##
11 -## This program is free software; you can redistribute it and/or modify
12 -## it under the terms of the GNU General Public License as published by
13 -## the Free Software Foundation; either version 2 of the License, or
14 -## (at your option) any later version.
15 -##
16 -## This program is distributed in the hope that it will be useful, but
17 -## WITHOUT ANY WARRANTY; without even the implied warranty of
18 -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 -## General Public License for more details.
20 -##
21 -## You should have received a copy of the GNU General Public License
22 -## along with this program; if not, write to the Free Software
23 -## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 -##
25 -## As a special exception to the GNU General Public License, if you
26 -## distribute this file as part of a program that contains a
27 -## configuration script generated by Autoconf, you may include it under
28 -## the same distribution terms that you use for the rest of that program.
29 -
30 -# serial 40 AC_PROG_LIBTOOL
31 -AC_DEFUN(AC_PROG_LIBTOOL,
32 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
33 -
34 -# Save cache, so that ltconfig can load it
35 -AC_CACHE_SAVE
36 -
37 -# Actually configure libtool.  ac_aux_dir is where install-sh is found.
38 -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
39 -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
40 -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
41 -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
42 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
43 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
44 -|| AC_MSG_ERROR([libtool configure failed])
45 -
46 -# Reload cache, that may have been modified by ltconfig
47 -AC_CACHE_LOAD
48 -
49 -# This can be used to rebuild libtool when needed
50 -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
51 -
52 -# Always use our own libtool.
53 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
54 -AC_SUBST(LIBTOOL)dnl
55 -
56 -# Redirect the config.log output again, so that the ltconfig log is not
57 -# clobbered by the next message.
58 -exec 5>>./config.log
59 -])
60 -
61 -AC_DEFUN(AC_LIBTOOL_SETUP,
62 -[AC_PREREQ(2.13)dnl
63 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
64 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
65 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
66 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
67 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
68 -AC_REQUIRE([AC_PROG_RANLIB])dnl
69 -AC_REQUIRE([AC_PROG_CC])dnl
70 -AC_REQUIRE([AC_PROG_LD])dnl
71 -AC_REQUIRE([AC_PROG_NM])dnl
72 -AC_REQUIRE([AC_PROG_LN_S])dnl
73 -dnl
74 -
75 -# Check for any special flags to pass to ltconfig.
76 -libtool_flags="--cache-file=$cache_file"
77 -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
78 -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
79 -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
80 -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
81 -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
82 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
83 -[libtool_flags="$libtool_flags --enable-dlopen"])
84 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
85 -[libtool_flags="$libtool_flags --enable-win32-dll"])
86 -AC_ARG_ENABLE(libtool-lock,
87 -  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
88 -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
89 -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
90 -
91 -# Some flags need to be propagated to the compiler or linker for good
92 -# libtool support.
93 -case "$host" in
94 -*-*-irix6*)
95 -  # Find out which ABI we are using.
96 -  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
97 -  if AC_TRY_EVAL(ac_compile); then
98 -    case "`/usr/bin/file conftest.o`" in
99 -    *32-bit*)
100 -      LD="${LD-ld} -32"
101 -      ;;
102 -    *N32*)
103 -      LD="${LD-ld} -n32"
104 -      ;;
105 -    *64-bit*)
106 -      LD="${LD-ld} -64"
107 -      ;;
108 -    esac
109 -  fi
110 -  rm -rf conftest*
111 -  ;;
112 -
113 -*-*-sco3.2v5*)
114 -  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
115 -  SAVE_CFLAGS="$CFLAGS"
116 -  CFLAGS="$CFLAGS -belf"
117 -  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
118 -    [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
119 -  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
120 -    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
121 -    CFLAGS="$SAVE_CFLAGS"
122 -  fi
123 -  ;;
124 -
125 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
126 -[*-*-cygwin* | *-*-mingw*)
127 -  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
128 -  AC_CHECK_TOOL(AS, as, false)
129 -  AC_CHECK_TOOL(OBJDUMP, objdump, false)
130 -  ;;
131 -])
132 -esac
133 -])
134 -
135 -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
136 -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
137 -
138 -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
139 -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
140 -
141 -# AC_ENABLE_SHARED - implement the --enable-shared flag
142 -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
143 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
144 -#   `yes'.
145 -AC_DEFUN(AC_ENABLE_SHARED, [dnl
146 -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
147 -AC_ARG_ENABLE(shared,
148 -changequote(<<, >>)dnl
149 -<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
150 -changequote([, ])dnl
151 -[p=${PACKAGE-default}
152 -case "$enableval" in
153 -yes) enable_shared=yes ;;
154 -no) enable_shared=no ;;
155 -*)
156 -  enable_shared=no
157 -  # Look at the argument we got.  We use all the common list separators.
158 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
159 -  for pkg in $enableval; do
160 -    if test "X$pkg" = "X$p"; then
161 -      enable_shared=yes
162 -    fi
163 -  done
164 -  IFS="$ac_save_ifs"
165 -  ;;
166 -esac],
167 -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
168 -])
169 -
170 -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
171 -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
172 -AC_ENABLE_SHARED(no)])
173 -
174 -# AC_ENABLE_STATIC - implement the --enable-static flag
175 -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
176 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
177 -#   `yes'.
178 -AC_DEFUN(AC_ENABLE_STATIC, [dnl
179 -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
180 -AC_ARG_ENABLE(static,
181 -changequote(<<, >>)dnl
182 -<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
183 -changequote([, ])dnl
184 -[p=${PACKAGE-default}
185 -case "$enableval" in
186 -yes) enable_static=yes ;;
187 -no) enable_static=no ;;
188 -*)
189 -  enable_static=no
190 -  # Look at the argument we got.  We use all the common list separators.
191 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
192 -  for pkg in $enableval; do
193 -    if test "X$pkg" = "X$p"; then
194 -      enable_static=yes
195 -    fi
196 -  done
197 -  IFS="$ac_save_ifs"
198 -  ;;
199 -esac],
200 -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
201 -])
202 -
203 -# AC_DISABLE_STATIC - set the default static flag to --disable-static
204 -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
205 -AC_ENABLE_STATIC(no)])
206 -
207 -
208 -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
209 -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
210 -#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
211 -#   `yes'.
212 -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
213 -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
214 -AC_ARG_ENABLE(fast-install,
215 -changequote(<<, >>)dnl
216 -<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
217 -changequote([, ])dnl
218 -[p=${PACKAGE-default}
219 -case "$enableval" in
220 -yes) enable_fast_install=yes ;;
221 -no) enable_fast_install=no ;;
222 -*)
223 -  enable_fast_install=no
224 -  # Look at the argument we got.  We use all the common list separators.
225 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
226 -  for pkg in $enableval; do
227 -    if test "X$pkg" = "X$p"; then
228 -      enable_fast_install=yes
229 -    fi
230 -  done
231 -  IFS="$ac_save_ifs"
232 -  ;;
233 -esac],
234 -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
235 -])
236 -
237 -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
238 -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
239 -AC_ENABLE_FAST_INSTALL(no)])
240 -
241 -# AC_PROG_LD - find the path to the GNU or non-GNU linker
242 -AC_DEFUN(AC_PROG_LD,
243 -[AC_ARG_WITH(gnu-ld,
244 -[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
245 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
246 -AC_REQUIRE([AC_PROG_CC])dnl
247 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
248 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
249 -ac_prog=ld
250 -if test "$ac_cv_prog_gcc" = yes; then
251 -  # Check if gcc -print-prog-name=ld gives a path.
252 -  AC_MSG_CHECKING([for ld used by GCC])
253 -  ac_prog=`($CC -print-prog-name=ld) 2>&5`
254 -  case "$ac_prog" in
255 -    # Accept absolute paths.
256 -changequote(,)dnl
257 -    [\\/]* | [A-Za-z]:[\\/]*)
258 -      re_direlt='/[^/][^/]*/\.\./'
259 -changequote([,])dnl
260 -      # Canonicalize the path of ld
261 -      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
262 -      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
263 -       ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
264 -      done
265 -      test -z "$LD" && LD="$ac_prog"
266 -      ;;
267 -  "")
268 -    # If it fails, then pretend we aren't using GCC.
269 -    ac_prog=ld
270 -    ;;
271 -  *)
272 -    # If it is relative, then search for the first ld in PATH.
273 -    with_gnu_ld=unknown
274 -    ;;
275 -  esac
276 -elif test "$with_gnu_ld" = yes; then
277 -  AC_MSG_CHECKING([for GNU ld])
278 -else
279 -  AC_MSG_CHECKING([for non-GNU ld])
280 -fi
281 -AC_CACHE_VAL(ac_cv_path_LD,
282 -[if test -z "$LD"; then
283 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
284 -  for ac_dir in $PATH; do
285 -    test -z "$ac_dir" && ac_dir=.
286 -    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
287 -      ac_cv_path_LD="$ac_dir/$ac_prog"
288 -      # Check to see if the program is GNU ld.  I'd rather use --version,
289 -      # but apparently some GNU ld's only accept -v.
290 -      # Break only if it was the GNU/non-GNU ld that we prefer.
291 -      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
292 -       test "$with_gnu_ld" != no && break
293 -      else
294 -       test "$with_gnu_ld" != yes && break
295 -      fi
296 -    fi
297 -  done
298 -  IFS="$ac_save_ifs"
299 -else
300 -  ac_cv_path_LD="$LD" # Let the user override the test with a path.
301 -fi])
302 -LD="$ac_cv_path_LD"
303 -if test -n "$LD"; then
304 -  AC_MSG_RESULT($LD)
305 -else
306 -  AC_MSG_RESULT(no)
307 -fi
308 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
309 -AC_SUBST(LD)
310 -AC_PROG_LD_GNU
311 -])
312 -
313 -AC_DEFUN(AC_PROG_LD_GNU,
314 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
315 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
316 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
317 -  ac_cv_prog_gnu_ld=yes
318 -else
319 -  ac_cv_prog_gnu_ld=no
320 -fi])
321 -])
322 -
323 -# AC_PROG_NM - find the path to a BSD-compatible name lister
324 -AC_DEFUN(AC_PROG_NM,
325 -[AC_MSG_CHECKING([for BSD-compatible nm])
326 -AC_CACHE_VAL(ac_cv_path_NM,
327 -[if test -n "$NM"; then
328 -  # Let the user override the test.
329 -  ac_cv_path_NM="$NM"
330 -else
331 -  IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
332 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
333 -    test -z "$ac_dir" && ac_dir=.
334 -    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
335 -      # Check to see if the nm accepts a BSD-compat flag.
336 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
337 -      #   nm: unknown option "B" ignored
338 -      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
339 -       ac_cv_path_NM="$ac_dir/nm -B"
340 -       break
341 -      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
342 -       ac_cv_path_NM="$ac_dir/nm -p"
343 -       break
344 -      else
345 -       ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
346 -       continue # so that we can try to find one that supports BSD flags
347 -      fi
348 -    fi
349 -  done
350 -  IFS="$ac_save_ifs"
351 -  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
352 -fi])
353 -NM="$ac_cv_path_NM"
354 -AC_MSG_RESULT([$NM])
355 -AC_SUBST(NM)
356 -])
357 -
358 -# AC_CHECK_LIBM - check for math library
359 -AC_DEFUN(AC_CHECK_LIBM,
360 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
361 -LIBM=
362 -case "$host" in
363 -*-*-beos* | *-*-cygwin*)
364 -  # These system don't have libm
365 -  ;;
366 -*-ncr-sysv4.3*)
367 -  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
368 -  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
369 -  ;;
370 -*)
371 -  AC_CHECK_LIB(m, main, LIBM="-lm")
372 -  ;;
373 -esac
374 -])
375 -
376 -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
377 -# the libltdl convenience library, adds --enable-ltdl-convenience to
378 -# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
379 -# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
380 -# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
381 -# '${top_builddir}/' (note the single quotes!) if your package is not
382 -# flat, and, if you're not using automake, define top_builddir as
383 -# appropriate in the Makefiles.
384 -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
385 -  case "$enable_ltdl_convenience" in
386 -  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
387 -  "") enable_ltdl_convenience=yes
388 -      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
389 -  esac
390 -  LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
391 -  INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
392 -])
393 -
394 -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
395 -# the libltdl installable library, and adds --enable-ltdl-install to
396 -# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
397 -# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
398 -# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
399 -# '${top_builddir}/' (note the single quotes!) if your package is not
400 -# flat, and, if you're not using automake, define top_builddir as
401 -# appropriate in the Makefiles.
402 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
403 -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
404 -  AC_CHECK_LIB(ltdl, main,
405 -  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
406 -  [if test x"$enable_ltdl_install" = xno; then
407 -     AC_MSG_WARN([libltdl not installed, but installation disabled])
408 -   else
409 -     enable_ltdl_install=yes
410 -   fi
411 -  ])
412 -  if test x"$enable_ltdl_install" = x"yes"; then
413 -    ac_configure_args="$ac_configure_args --enable-ltdl-install"
414 -    LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
415 -    INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
416 -  else
417 -    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
418 -    LIBLTDL="-lltdl"
419 -    INCLTDL=
420 -  fi
421 -])
422 -
423 -dnl old names
424 -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
425 -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
426 -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
427 -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
428 -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
429 -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
430 -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
431 -
432 -dnl This is just to silence aclocal about the macro not being used
433 -ifelse([AC_DISABLE_FAST_INSTALL])dnl
This page took 0.056272 seconds and 3 git commands to generate.