[exim-cvs] build: use pkg-config for i18n

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Exim Git Commits Mailing List
Data:  
Para: exim-cvs
Asunto: [exim-cvs] build: use pkg-config for i18n
Gitweb: https://git.exim.org/exim.git/commitdiff/91c707ef9229d7ba5e17b885416761feb2fdfc46
Commit:     91c707ef9229d7ba5e17b885416761feb2fdfc46
Parent:     69be76c33eb2bdbc5c4cfb7215446d53d38534d0
Author:     Heiko Schlittermann (HS12-RIPE) <hs@???>
AuthorDate: Mon Sep 16 22:20:04 2024 +0200
Committer:  Heiko Schlittermann (HS12-RIPE) <hs@???>
CommitDate: Tue Sep 17 22:53:08 2024 +0200


    build: use pkg-config for i18n


    As a side effect: this enables pkg-config support for all
    SUPPORT_* items of the EDITME/Makefile.
---
 src/scripts/Configure-Makefile | 5 ++++-
 src/src/EDITME                 | 6 +++++-
 2 files changed, 9 insertions(+), 2 deletions(-)


diff --git a/src/scripts/Configure-Makefile b/src/scripts/Configure-Makefile
index 74f8dda47..3ba9005cf 100755
--- a/src/scripts/Configure-Makefile
+++ b/src/scripts/Configure-Makefile
@@ -159,7 +159,7 @@ rm -f ./$mftepcp ./$mftepcp2

 # handle pkg-config
 # beware portability of extended regexps with sed.
-$egrep "^[$st]*(AUTH|LOOKUP)_[A-Z0-9_]*[$st]*=[$st]*" $mft | \
+$egrep "^[$st]*(AUTH|LOOKUP|SUPPORT)_[A-Z0-9_]*[$st]*=[$st]*" $mft | \
   sed "s/[$st]*=/='/" | \
   sed "s/\$/'/" > $mftt
 $egrep "^[$st]*((USE_(OPENSSL|GNUTLS)_PC)|SUPPORT_TLS|USE_GNUTLS|PCRE2?_CONFIG|AVOID_GNUTLS_PKCS11)[$st]*=[$st]*" $mft | \
@@ -236,6 +236,9 @@ then
           elif [ "$var" != "${var#AUTH_}" ]; then
             echo "CFLAGS += $cflags"
             echo "AUTH_LIBS += $libs"
+      elif [ "$var" != "${var#SUPPORT_}" ]; then
+        echo "CFLAGS += $cflags"
+        echo "LIBS += $libs"
           else
             echo >&2 "Don't know how to handle pkg-config for $var"
           fi
diff --git a/src/src/EDITME b/src/src/EDITME
index 2cf0b3da9..6295d72d6 100644
--- a/src/src/EDITME
+++ b/src/src/EDITME
@@ -1149,11 +1149,15 @@ ZCAT_COMMAND=/usr/bin/zcat
 # You need to have the IDN library installed.
 # If you want IDNA2008 mappings per RFCs 5890, 6530 and 6533, you additionally
 # need libidn2 and SUPPORT_I18N_2008.
+# If you're using pkg-config, enable the _PC lines, otherwise the LDFLAGS ones.


# SUPPORT_I18N=yes
+# SUPPORT_I18N_PC=libidn
# LDFLAGS += -lidn
+#
# SUPPORT_I18N_2008=yes
-# LDFLAGS += -lidn -lidn2
+# SUPPORT_I18N_2008_PC=libidn2
+# LDFLAGS += -lidn2


#------------------------------------------------------------------------------

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/