diff options
Diffstat (limited to 'tests/havelib/rpathlzyx')
-rw-r--r-- | tests/havelib/rpathlzyx/Makefile.am | 7 | ||||
-rw-r--r-- | tests/havelib/rpathlzyx/configure.ac | 27 | ||||
-rw-r--r-- | tests/havelib/rpathlzyx/usez.c | 2 |
3 files changed, 36 insertions, 0 deletions
diff --git a/tests/havelib/rpathlzyx/Makefile.am b/tests/havelib/rpathlzyx/Makefile.am new file mode 100644 index 0000000000..ff0e6027ad --- /dev/null +++ b/tests/havelib/rpathlzyx/Makefile.am @@ -0,0 +1,7 @@ +AUTOMAKE_OPTIONS = 1.5 foreign no-dependencies +bin_PROGRAMS = usez +usez_SOURCES = usez.c +LDADD = @LIBRPATHZ@ + +check: all + ./usez diff --git a/tests/havelib/rpathlzyx/configure.ac b/tests/havelib/rpathlzyx/configure.ac new file mode 100644 index 0000000000..29c45a33c1 --- /dev/null +++ b/tests/havelib/rpathlzyx/configure.ac @@ -0,0 +1,27 @@ +dnl Configuration of a program that links with librpathz. +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_rpathlzyx], [0]) +AC_PROG_CC +AC_LIB_LINKFLAGS([rpathx]) +AC_LIB_LINKFLAGS([rpathy],[rpathx]) +AC_LIB_LINKFLAGS([rpathz],[rpathx rpathy]) +LIBRPATHZ="$LIBRPATHZ $LIBRPATHY $LIBRPATHX" +AC_SUBST([global_top_auxdir]) +AC_OUTPUT([Makefile]) diff --git a/tests/havelib/rpathlzyx/usez.c b/tests/havelib/rpathlzyx/usez.c new file mode 100644 index 0000000000..18d86897b0 --- /dev/null +++ b/tests/havelib/rpathlzyx/usez.c @@ -0,0 +1,2 @@ +extern int rpathz_value (void); +int main () { return !(rpathz_value () == 5171); } |