2 dnl Libtool stuff for CUPS.
4 dnl Copyright 2007-2018 by Apple Inc.
5 dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
7 dnl Licensed under Apache License v2.0. See the file "LICENSE" for more information.
10 AC_ARG_ENABLE(libtool_unsupported, [ --enable-libtool-unsupported=/path/to/libtool
11 build with libtool (UNSUPPORTED!)],
12 [if test x$enable_libtool_unsupported != xno; then
13 if test x$enable_libtool_unsupported == xyes; then
14 AC_MSG_ERROR([Use --enable-libtool-unsupported=/path/to/libtool.])
16 LIBTOOL="$enable_libtool_unsupported"
18 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
19 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
24 if test x$LIBTOOL != x; then
25 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
26 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
28 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
29 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
32 LIBCUPSSTATIC="libcups.la"
33 LIBCUPSCGI="libcupscgi.la"
34 LIBCUPSIMAGE="libcupsimage.la"
35 LIBCUPSMIME="libcupsmime.la"
36 LIBCUPSPPDC="libcupsppdc.la"
38 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
39 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
40 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
42 LINKCUPS="../cups/\$(LIBCUPS)"
43 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
60 AC_SUBST(LIBTOOL_INSTALL)