diff options
author | Bruno Haible <bruno@clisp.org> | 2010-04-02 18:09:43 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-04-02 18:12:09 +0200 |
commit | 1fe927756ca51f3e7efd868b29a8d4299e91a331 (patch) | |
tree | 72d20a4c97394e8b885b0a1b7f3b572f4665e5e0 /tests/havelib/rpathlx | |
parent | 078dac83a231a9cac7d7d38f28f0bdace52111a6 (diff) | |
download | gnulib-1fe927756ca51f3e7efd868b29a8d4299e91a331.tar.gz |
Tests for module 'havelib', moved here from GNU gettext.
Diffstat (limited to 'tests/havelib/rpathlx')
-rw-r--r-- | tests/havelib/rpathlx/Makefile.am | 7 | ||||
-rw-r--r-- | tests/havelib/rpathlx/configure.ac | 24 | ||||
-rw-r--r-- | tests/havelib/rpathlx/usex.c | 2 |
3 files changed, 33 insertions, 0 deletions
diff --git a/tests/havelib/rpathlx/Makefile.am b/tests/havelib/rpathlx/Makefile.am new file mode 100644 index 0000000000..da6a22c516 --- /dev/null +++ b/tests/havelib/rpathlx/Makefile.am @@ -0,0 +1,7 @@ +AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies +bin_PROGRAMS = usex +usex_SOURCES = usex.c +LDADD = @LIBRPATHX@ + +check: all + ./usex diff --git a/tests/havelib/rpathlx/configure.ac b/tests/havelib/rpathlx/configure.ac new file mode 100644 index 0000000000..0ccd1429e9 --- /dev/null +++ b/tests/havelib/rpathlx/configure.ac @@ -0,0 +1,24 @@ +dnl Configuration of a program that links with librpathx. +dnl +dnl Copyright (C) 2002-2003, 2005, 2010 Free Software Foundation, Inc. +dnl +dnl This program is free software: you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 3 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program. If not, see <http://www.gnu.org/licenses/>. + +AC_INIT([configure.ac]) +AC_CONFIG_AUX_DIR([../../../build-aux]) +AM_INIT_AUTOMAKE([gettext_rpathlx], [0]) +AC_PROG_CC +AC_LIB_LINKFLAGS([rpathx]) +AC_SUBST([global_top_auxdir]) +AC_OUTPUT([Makefile]) diff --git a/tests/havelib/rpathlx/usex.c b/tests/havelib/rpathlx/usex.c new file mode 100644 index 0000000000..d09b111766 --- /dev/null +++ b/tests/havelib/rpathlx/usex.c @@ -0,0 +1,2 @@ +extern int rpathx_value (void); +int main () { return !(rpathx_value () == 5); } |