mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-09-12 08:36:05 -04:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
dnl Example for use of GNU gettext.
|
|
dnl Copyright (C) 2003 Free Software Foundation, Inc.
|
|
dnl This file is in the public domain.
|
|
dnl
|
|
dnl Configuration file - processed by autoconf.
|
|
|
|
AC_INIT
|
|
AC_CONFIG_SRCDIR(hello-1.pl.in)
|
|
AM_INIT_AUTOMAKE(hello-perl, 0)
|
|
|
|
dnl Check for availability of the Perl interpreter.
|
|
AC_PATH_PROG(PERL, perl)
|
|
if test -z "$PERL"; then
|
|
echo "*** Essential program perl not found" 1>&2
|
|
exit 1
|
|
fi
|
|
AC_SUBST(PERL)
|
|
|
|
dnl The installed program must know where to find its message catalogs.
|
|
dnl Unfortunately, prefix gets only finally determined at the end of configure.
|
|
if test "X$prefix" = "XNONE"; then
|
|
final_prefix="$ac_default_prefix"
|
|
else
|
|
final_prefix="$prefix"
|
|
fi
|
|
save_prefix="$prefix"
|
|
prefix="$final_prefix"
|
|
eval "localedir=\"${datadir}/locale\""
|
|
prefix="$save_prefix"
|
|
AC_SUBST(localedir)
|
|
|
|
dnl Support for the po directory.
|
|
AM_PO_SUBDIRS
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_CONFIG_FILES([hello-1:hello-1.pl.in], [chmod a+x hello-1])
|
|
AC_CONFIG_FILES([hello-2:hello-2.pl.in], [chmod a+x hello-2])
|
|
AC_CONFIG_FILES([m4/Makefile])
|
|
AC_CONFIG_FILES([po/Makefile], [AM_POSTPROCESS_PO_MAKEFILE])
|
|
AC_OUTPUT
|