dnl Copyright (C) 2013 Cedric Bail <cedric dot bail at samsung dot com>
dnl That code is public domain and can be freely used or copied

dnl Macro that check if -pie -rdynamic can be given to ld

dnl Usage: ELM_QUICKLAUNCH
dnl add -pie -rdynamic to LDFLAGS and -fpie to CFLAGS

AC_DEFUN([ELM_QUICKLAUNCH],
[
AC_MSG_CHECKING([If the compiler as what it takes to do quicklaunch (-pie -rdynamic)])
old_LDFLAGS="$LDFLAGS"
old_CFLAGS="$CFLAGS"

LDFLAGS="$LDFLAGS -pie -rdynamic"
CFLAGS="$CFLAGS -fpie"

AC_LINK_IFELSE([int main(){}],
        [AC_MSG_RESULT([yes])],
        [LDFLAGS="$old_LDFLAGS"
	CFLAGS="$old_CFLAGS"
        AC_MSG_RESULT([no])
        ])
])

dnl Copyright (C) 2013 Cedric Bail <cedric dot bail at samsung dot com>
dnl That code is public domain and can be freely used or copied

dnl Macro that check if -pie -rdynamic can be given to ld

dnl Usage: ELM_QUICKLAUNCH
dnl add -pie -rdynamic to LDFLAGS and -fpie to CFLAGS

AC_DEFUN([ELM_QUICKLAUNCH],
[
AC_MSG_CHECKING([If the compiler as what it takes to do quicklaunch (-pie -rdynamic)])
old_LDFLAGS="$LDFLAGS"
old_CFLAGS="$CFLAGS"

LDFLAGS="$LDFLAGS -pie -rdynamic"
CFLAGS="$CFLAGS -fpie"

AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(){}]])],
        [AC_MSG_RESULT([yes])],
        [LDFLAGS="$old_LDFLAGS"
	CFLAGS="$old_CFLAGS"
        AC_MSG_RESULT([no])
        ])
])

Add AC_LANG_SOURCE to source code
quicklaunch: Add AC_LANG_SOURCE to source code

Fixes warning:
configure.ac:217: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
m4/elm_quicklaunch.m4:9: ELM_QUICKLAUNCH is expanded from...
configure.ac:217: the top level
