configure: commit test files
authorDylan Baker <dylan@pnwbakers.com>
Sat, 30 Sep 2017 19:14:02 +0000 (12:14 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 16 Oct 2017 23:32:43 +0000 (16:32 -0700)
These are currently auto-generated, but meson needs the same files, so
lets commit them to reduce duplication.

v3: - Rename .build to build-support

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Makefile.am
build-support/conftest.dyn [new file with mode: 0644]
build-support/conftest.map [new file with mode: 0644]
configure.ac

index a4f49d3d33256f6a6038e5b7f22fa9263fea23e3..fe1ef948918c4c2b91fbd5871733837390689b07 100644 (file)
@@ -56,7 +56,9 @@ EXTRA_DIST = \
        doxygen \
        bin/git_sha1_gen.py \
        scons \
-       SConstruct
+       SConstruct \
+       build-support/conftest.dyn \
+       build-support/conftest.map
 
 noinst_HEADERS = \
        include/c99_alloca.h \
diff --git a/build-support/conftest.dyn b/build-support/conftest.dyn
new file mode 100644 (file)
index 0000000..8d243dc
--- /dev/null
@@ -0,0 +1,3 @@
+{
+       radeon_drm_winsys_create;
+};
diff --git a/build-support/conftest.map b/build-support/conftest.map
new file mode 100644 (file)
index 0000000..7d8590f
--- /dev/null
@@ -0,0 +1,6 @@
+VERSION_1 {
+    global:
+        main;
+    local:
+        *;
+};
index 62d33a1941c3209cf3447e0888cb0a2d75bae1e7..bbabf3bed7c5557fb375c9dae166e66274c7b3cc 100644 (file)
@@ -606,16 +606,7 @@ dnl Check if linker supports version scripts
 dnl
 AC_MSG_CHECKING([if the linker supports version-scripts])
 save_LDFLAGS=$LDFLAGS
-LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
-cat > conftest.map <<EOF
-VERSION_1 {
-     global:
-         main;
-
-     local:
-         *;
-};
-EOF
+LDFLAGS="$LDFLAGS -Wl,--version-script=$srcdir/build-support/conftest.map"
 AC_LINK_IFELSE(
     [AC_LANG_SOURCE([int main() { return 0;}])],
     [have_ld_version_script=yes;AC_MSG_RESULT(yes)],
@@ -628,12 +619,7 @@ dnl Check if linker supports dynamic list files
 dnl
 AC_MSG_CHECKING([if the linker supports --dynamic-list])
 save_LDFLAGS=$LDFLAGS
-LDFLAGS="$LDFLAGS -Wl,--dynamic-list=conftest.dyn"
-cat > conftest.dyn <<EOF
-{
-       radeon_drm_winsys_create;
-};
-EOF
+LDFLAGS="$LDFLAGS -Wl,--dynamic-list=$srcdir/build-support/conftest.dyn"
 AC_LINK_IFELSE(
     [AC_LANG_SOURCE([int main() { return 0;}])],
     [have_ld_dynamic_list=yes;AC_MSG_RESULT(yes)],