File: cups-libtool.m4

package info (click to toggle)
cups 2.4.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,500 kB
  • sloc: ansic: 159,650; cpp: 8,595; sh: 5,475; makefile: 2,770; php: 17; python: 10
file content (63 lines) | stat: -rw-r--r-- 1,689 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
dnl
dnl GNU libtool stuff for CUPS.
dnl
dnl Copyright © 2020-2024 by OpenPrinting.
dnl Copyright © 2007-2018 by Apple Inc.
dnl Copyright © 1997-2005 by Easy Software Products, all rights reserved.
dnl
dnl Licensed under Apache License v2.0.  See the file "LICENSE" for more
dnl information.
dnl

AC_ARG_ENABLE([libtool_unsupported], [
    AS_HELP_STRING([--enable-libtool-unsupported=/path/to/libtool], [build with libtool (UNSUPPORTED)])
], [
], [
    enable_libtool_unsupported=no
])

AS_IF([test x$enable_libtool_unsupported != xno], [
    AS_IF([test "x$enable_libtool_unsupported" = xyes], [
        AC_MSG_ERROR([Use '--enable-libtool-unsupported=/path/to/libtool'.])
    ],[
        AC_MSG_WARN([libtool is not supported.])
    ])

    LIBTOOL="$enable_libtool_unsupported"
    enable_shared="no"

    DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
    DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"

    LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
    LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"

    LIBCUPS="libcups.la"
    LIBCUPSSTATIC="libcups.la"
    LIBCUPSCGI="libcupscgi.la"
    LIBCUPSIMAGE="libcupsimage.la"
    LIBCUPSMIME="libcupsmime.la"
    LIBCUPSPPDC="libcupsppdc.la"

    LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
    LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
    LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"

    LINKCUPS="../cups/\$(LIBCUPS)"
    LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
], [
    LD_CC="\$(CC)"
    LD_CXX="\$(CXX)"

    LIBTOOL_CC=""
    LIBTOOL_CXX=""
    LIBTOOL_INSTALL=""
])

AC_SUBST([LD_CC])
AC_SUBST([LD_CXX])

AC_SUBST([LIBTOOL])
AC_SUBST([LIBTOOL_CC])
AC_SUBST([LIBTOOL_CXX])
AC_SUBST([LIBTOOL_INSTALL])