summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-12-22 19:47:27 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2007-12-22 19:47:27 (GMT)
commitba189b000c4c5ab4d15c6b155a7dbf8bd46c42d4 (patch)
treefbd2ab8e240018ebd473c62145117a01b0076448 /acinclude.m4
downloadconnman-ba189b000c4c5ab4d15c6b155a7dbf8bd46c42d4.zip
connman-ba189b000c4c5ab4d15c6b155a7dbf8bd46c42d4.tar.gz
connman-ba189b000c4c5ab4d15c6b155a7dbf8bd46c42d4.tar.bz2
Initial revision
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
new file mode 100644
index 0000000..95486c3
--- /dev/null
+++ b/acinclude.m4
@@ -0,0 +1,11 @@
+AC_DEFUN([AC_PROG_CC_PIE], [
+ AC_CACHE_CHECK([whether ${CC-cc} accepts -fPIE], ac_cv_prog_cc_pie, [
+ echo 'void f(){}' > conftest.c
+ if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
+ ac_cv_prog_cc_pie=yes
+ else
+ ac_cv_prog_cc_pie=no
+ fi
+ rm -rf conftest*
+ ])
+])