Skip to content

Commit

Permalink
Cleanup for libtool fixes (Issue #394)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Jul 25, 2022
1 parent 5584bc0 commit cbfd606
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 23 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changes in CUPS v2.4.3 (TBA)
----------------------------

- Added a title with device uri for found network printers (Issues #402, #393)
- Fixed `--enable-libtool-unsupported` (Issue #394)
- Fixed configuration on RISC-V machines (Issue #404)
- Fixed the `device_uri` invalid pointer for driverless printers with `.local`
hostname (Issue #419)
Expand Down
16 changes: 9 additions & 7 deletions config-scripts/cups-libtool.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dnl
dnl Libtool stuff for CUPS.
dnl GNU libtool stuff for CUPS.
dnl
dnl Copyright © 2021-2022 by OpenPrinting.
dnl Copyright © 2007-2018 by Apple Inc.
Expand All @@ -9,14 +9,16 @@ 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])
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.])
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.])
])
Expand Down
34 changes: 18 additions & 16 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1586,8 +1586,10 @@ Optional Features:
--enable-acl build with POSIX ACL support
--disable-dbus build without DBUS support
--disable-shared do not create shared libraries
--enable-libtool-unsupported=/path/to/libtool
--enable-libtool-unsupported=/path/to/libtool
build with libtool (UNSUPPORTED)
--enable-debug build with debugging symbols
--enable-debug-guards build with memory allocation guards
--enable-debug-printfs build with CUPS_DEBUG_LOG support
Expand Down Expand Up @@ -7856,31 +7858,31 @@ fi
if test ${enable_libtool_unsupported+y}
then :
enableval=$enable_libtool_unsupported;
if test x$enable_libtool_unsupported != xno
then :

if test x$enable_libtool_unsupported = xyes
then :
else $as_nop

as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
enable_libtool_unsupported=no

fi
LIBTOOL="$enable_libtool_unsupported"
enable_shared="no"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: libtool is not supported." >&5
printf "%s\n" "$as_me: WARNING: WARNING: libtool is not supported." >&2;}

else $as_nop

LIBTOOL=""
if test x$enable_libtool_unsupported != xno
then :

fi
if test "x$enable_libtool_unsupported" = xyes
then :

fi
as_fn_error $? "Use '--enable-libtool-unsupported=/path/to/libtool'." "$LINENO" 5

else $as_nop

if test x$LIBTOOL != x
then :
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libtool is not supported." >&5
printf "%s\n" "$as_me: WARNING: libtool is not supported." >&2;}

fi

LIBTOOL="$enable_libtool_unsupported"
enable_shared="no"

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

0 comments on commit cbfd606

Please sign in to comment.