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.

37 lines
1.8 KiB

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -47,34 +47,6 @@ AC_GNU_SOURCE
  4. LT_INIT
  5. AC_SUBST([LIBTOOL_DEPS])
  6. -# Detect the distribution. This is used for the default configuration and
  7. -# for some distro-specific build options.
  8. -AC_MSG_CHECKING([host distribution])
  9. -AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, oracle, centos, fedora, suse, gentoo, debian, arch, slackware, plamo, paldo, openmandriva, pardus, sparclinux, altlinux.]))
  10. -if type lsb_release >/dev/null 2>&1 && test "z$with_distro" = "z"; then
  11. - with_distro=`lsb_release -is`
  12. -fi
  13. -if test "z$with_distro" = "z"; then
  14. - AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
  15. - AC_CHECK_FILE(/etc/oracle-release,with_distro="oracle")
  16. - AC_CHECK_FILE(/etc/sparclinux-release,with_distro="sparclinux")
  17. - AC_CHECK_FILE(/etc/centos-release,with_distro="centos")
  18. - AC_CHECK_FILE(/etc/fedora-release,with_distro="fedora")
  19. - AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
  20. - AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
  21. - AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
  22. - AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
  23. - AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
  24. - AC_CHECK_FILE(/etc/plamo-version,with_distro="plamo")
  25. - AC_CHECK_FILE(/etc/frugalware-release,with_distro="frugalware")
  26. - AC_CHECK_FILE(/etc/mandrakelinux-release, with_distro="openmandriva")
  27. - AC_CHECK_FILE(/etc/mandriva-release,with_distro="openmandriva")
  28. - AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
  29. - AC_CHECK_FILE(/etc/altlinux-release,with_distro="altlinux")
  30. - AC_CHECK_FILE(/etc/pld-release,with_distro="pld")
  31. -fi
  32. -with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]'`
  33. -
  34. if test "z$with_distro" = "zforsparc"; then
  35. with_distro="sparclinux"
  36. fi