Build: Change --enable-ifunc handling.
[xz.git] / m4 / tuklib_progname.m4
blob9f7d4c52e0b0ef58ae05f56525d48b0aba3d3f4a
2 # SYNOPSIS
4 #   TUKLIB_PROGNAME
6 # DESCRIPTION
8 #   Put argv[0] into a global variable progname. On DOS-like systems,
9 #   modify it so that it looks nice (no full path or .exe suffix).
11 #   This .m4 file is needed allow this module to use glibc's
12 #   program_invocation_name.
14 # COPYING
16 #   Author: Lasse Collin
18 #   This file has been put into the public domain.
19 #   You can do whatever you want with this file.
22 AC_DEFUN_ONCE([TUKLIB_PROGNAME], [
23 AC_REQUIRE([TUKLIB_COMMON])
24 AC_CHECK_DECL([program_invocation_name], [AC_DEFINE(
25         [HAVE_PROGRAM_INVOCATION_NAME], [1],
26         [Define to 1 if 'program_invocation_name' is declared in <errno.h>.])],
27         [], [#include <errno.h>])
28 ])dnl