$OpenBSD: patch-configure_ac,v 1.8 2018/09/29 11:19:16 kn Exp $

Fix version string

libdl is not required on OpenBSD

Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -341,29 +341,9 @@ elif test "${xslstylesheetsdir}" != "no"; then
 fi
 AC_MSG_RESULT([${xslstylesheetsdir}])
 
-AC_MSG_CHECKING([git checkout])
-GIT_CHECKOUT="no"
-if test -n "${GIT}" -a -d "${srcdir}/.git"; then
-	GIT_CHECKOUT="yes"
-fi
-AC_MSG_RESULT([${GIT_CHECKOUT}])
+OPENSC_SCM_REVISION="OpenSC-0.19.0, rev: f1691fc9, commit-time: 2018-09-13 13:47:21 2018 +0200"
+OPENSC_VERSION_REVISION="0"
 
-if test "${GIT_CHECKOUT}" = "yes"; then
-	REVISION_DESCRIPTION="$(${GIT} describe || echo '<version not available>' )"
-	if test "${REVISION_DESCRIPTION}" = "<version not available>"; then
-		REVISION_DESCRIPTION="$(${GIT} describe --tags || echo '<version not available>')"
-	fi
-
-	HASH_COMMIT_DATE="$(${GIT} log -1 --pretty=format:'rev: %h, commit-time: %ci')"
-	GIT_TAG_COMMIT="$(${GIT} rev-list --tags --no-walk --max-count=1)"
-
-	OPENSC_SCM_REVISION="OpenSC-${REVISION_DESCRIPTION}, ${HASH_COMMIT_DATE}"
-	OPENSC_VERSION_REVISION="$(${GIT} rev-list ${GIT_TAG_COMMIT}..HEAD --count || echo 0)"
-else
-	OPENSC_SCM_REVISION="No Git revision info available"
-	OPENSC_VERSION_REVISION="0"
-fi
-
 dnl C Compiler features
 AC_C_INLINE
 
@@ -414,11 +394,6 @@ AC_CHECK_LIB(
 )
 
 if test "${WIN32}" = "no"; then
-	dnl dl support
-	AC_SEARCH_LIBS([dlopen], [dl dld], [], [
-		AC_MSG_ERROR([unable to find the dlopen() function])
-	])
-
 	dnl Special check for pthread support.
 	AX_PTHREAD(
 		[AC_DEFINE(
@@ -1036,7 +1011,6 @@ AM_CONDITIONAL([ENABLE_SM], [test "${enable_sm}" = "ye
 AM_CONDITIONAL([ENABLE_DNIE_UI], [test "${enable_dnie_ui}" = "yes"])
 AM_CONDITIONAL([ENABLE_NPATOOL], [test "${ENABLE_NPATOOL}" = "yes"])
 AM_CONDITIONAL([ENABLE_TESTS], [test "${enable_tests}" = "yes"])
-AM_CONDITIONAL([GIT_CHECKOUT], [test "${GIT_CHECKOUT}" = "yes"])
 
 if test "${enable_pedantic}" = "yes"; then
 	enable_strict="yes";
