Linux standards offer an /etc/os-release file containing
information about the operating system.
Parse that file and print an identifier of the Linux version at
configure time.
AC_MSG_RESULT($squid_host_os (version $squid_host_os_version))
# on windows squid_host_os is either mingw or cygwin, version is 32
+AS_IF([test -e /etc/os-release],[
+ squid_build_os_release_name=`grep '^PRETTY_NAME=' /etc/os-release | sed 's/^[[^"]]*"//;s/".*$//'`
+ AS_IF([test "x$squid_build_os_release_name" = "x"],[
+ squid_build_os_release_name=`grep '^NAME=' /etc/os-release | sed 's/^[[^"]]*"//;s/".*$//'`
+ ])
+ AS_IF([test "x$squid_build_os_release_name" != "x"],[
+ AC_MSG_NOTICE([Building on $squid_build_os_release_name])
+ ])
+])
+
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX