You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
2.0 KiB

  1. From 9f550ca53801b2b9c6c1c7a4d02ad525c704b145 Mon Sep 17 00:00:00 2001
  2. From: Robert Marko <robert.marko@sartura.hr>
  3. Date: Thu, 14 May 2020 13:40:53 +0200
  4. Subject: [PATCH] Remove distro check
  5. Signed-off-by: Robert Marko <robert.marko@sartura.hr>
  6. ---
  7. --- a/configure.ac
  8. +++ b/configure.ac
  9. @@ -79,34 +79,6 @@ esac
  10. LT_INIT
  11. AC_SUBST([LIBTOOL_DEPS])
  12. -# Detect the distribution. This is used for the default configuration and
  13. -# for some distro-specific build options.
  14. -AC_MSG_CHECKING([host distribution])
  15. -AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, redhatenterpriseserver, oracle, centos, fedora, suse, gentoo, debian, arch, slackware, plamo, paldo, openmandriva, pardus, sparclinux, altlinux.]))
  16. -if type lsb_release >/dev/null 2>&1 && test "z$with_distro" = "z"; then
  17. - with_distro=$(lsb_release -is)
  18. -fi
  19. -if test "z$with_distro" = "z"; then
  20. - AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
  21. - AC_CHECK_FILE(/etc/oracle-release,with_distro="oracle")
  22. - AC_CHECK_FILE(/etc/sparclinux-release,with_distro="sparclinux")
  23. - AC_CHECK_FILE(/etc/centos-release,with_distro="centos")
  24. - AC_CHECK_FILE(/etc/fedora-release,with_distro="fedora")
  25. - AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
  26. - AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
  27. - AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
  28. - AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
  29. - AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
  30. - AC_CHECK_FILE(/etc/plamo-version,with_distro="plamo")
  31. - AC_CHECK_FILE(/etc/frugalware-release,with_distro="frugalware")
  32. - AC_CHECK_FILE(/etc/mandrakelinux-release, with_distro="openmandriva")
  33. - AC_CHECK_FILE(/etc/mandriva-release,with_distro="openmandriva")
  34. - AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
  35. - AC_CHECK_FILE(/etc/altlinux-release,with_distro="altlinux")
  36. - AC_CHECK_FILE(/etc/pld-release,with_distro="pld")
  37. -fi
  38. -with_distro=$(echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]')
  39. -
  40. if test "z$with_distro" = "zforsparc"; then
  41. with_distro="sparclinux"
  42. fi