add yet another argument to allow specify linker flags that will be
added _before_ the library when trying to link git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7289 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -4,6 +4,6 @@ dnl | ||||
| dnl Look for function in any of the specified libraries | ||||
| dnl | ||||
|  | ||||
| dnl AC_FIND_FUNC_NO_LIBS(func, libraries, includes, arguments, extra libs) | ||||
| dnl AC_FIND_FUNC_NO_LIBS(func, libraries, includes, arguments, extra libs, extra args) | ||||
| AC_DEFUN(AC_FIND_FUNC_NO_LIBS, [ | ||||
| AC_FIND_FUNC_NO_LIBS2([$1], ["" $2], [$3], [$4], [$5])]) | ||||
| AC_FIND_FUNC_NO_LIBS2([$1], ["" $2], [$3], [$4], [$5], [$6])]) | ||||
|   | ||||
| @@ -4,7 +4,7 @@ dnl | ||||
| dnl Look for function in any of the specified libraries | ||||
| dnl | ||||
|  | ||||
| dnl AC_FIND_FUNC_NO_LIBS2(func, libraries, includes, arguments, extra libs) | ||||
| dnl AC_FIND_FUNC_NO_LIBS2(func, libraries, includes, arguments, extra libs, extra args) | ||||
| AC_DEFUN(AC_FIND_FUNC_NO_LIBS2, [ | ||||
|  | ||||
| AC_MSG_CHECKING([for $1]) | ||||
| @@ -18,7 +18,7 @@ if eval "test \"\$ac_cv_func_$1\" != yes" ; then | ||||
| 		else | ||||
| 			ac_lib="" | ||||
| 		fi | ||||
| 		LIBS="$ac_lib $5 $ac_save_LIBS" | ||||
| 		LIBS="$6 $ac_lib $5 $ac_save_LIBS" | ||||
| 		AC_TRY_LINK([$3],[$1($4)],eval "if test -n \"$ac_lib\";then ac_cv_funclib_$1=$ac_lib; else ac_cv_funclib_$1=yes; fi";break) | ||||
| 	done | ||||
| 	eval "ac_cv_funclib_$1=\${ac_cv_funclib_$1-no}" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund