1dnl 2dnl GNU libtool stuff for CUPS. 3dnl 4dnl Copyright © 2020-2024 by OpenPrinting. 5dnl Copyright © 2007-2018 by Apple Inc. 6dnl Copyright © 1997-2005 by Easy Software Products, all rights reserved. 7dnl 8dnl Licensed under Apache License v2.0. See the file "LICENSE" for more 9dnl information. 10dnl 11 12AC_ARG_ENABLE([libtool_unsupported], [ 13 AS_HELP_STRING([--enable-libtool-unsupported=/path/to/libtool], [build with libtool (UNSUPPORTED)]) 14], [ 15], [ 16 enable_libtool_unsupported=no 17]) 18 19AS_IF([test x$enable_libtool_unsupported != xno], [ 20 AS_IF([test "x$enable_libtool_unsupported" = xyes], [ 21 AC_MSG_ERROR([Use '--enable-libtool-unsupported=/path/to/libtool'.]) 22 ],[ 23 AC_MSG_WARN([libtool is not supported.]) 24 ]) 25 26 LIBTOOL="$enable_libtool_unsupported" 27 enable_shared="no" 28 29 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}" 30 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" 31 32 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}" 33 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" 34 35 LIBCUPS="libcups.la" 36 LIBCUPSSTATIC="libcups.la" 37 LIBCUPSCGI="libcupscgi.la" 38 LIBCUPSIMAGE="libcupsimage.la" 39 LIBCUPSMIME="libcupsmime.la" 40 LIBCUPSPPDC="libcupsppdc.la" 41 42 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC" 43 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX" 44 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install" 45 46 LINKCUPS="../cups/\$(LIBCUPS)" 47 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)" 48], [ 49 LD_CC="\$(CC)" 50 LD_CXX="\$(CXX)" 51 52 LIBTOOL_CC="" 53 LIBTOOL_CXX="" 54 LIBTOOL_INSTALL="" 55]) 56 57AC_SUBST([LD_CC]) 58AC_SUBST([LD_CXX]) 59 60AC_SUBST([LIBTOOL]) 61AC_SUBST([LIBTOOL_CC]) 62AC_SUBST([LIBTOOL_CXX]) 63AC_SUBST([LIBTOOL_INSTALL]) 64