2 dnl Copied from libtool.m4
3 AC_DEFUN(AC_PROG_LD_GNU,
4 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
5 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
6 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13 dnl Removes -I/usr/include/? from given variable
14 AC_DEFUN(CFLAGS_REMOVE_USR_INCLUDE,[
18 -I/usr/include|-I/usr/include/) ;;
19 *) ac_new_flags="[$]ac_new_flags [$]i" ;;
25 dnl Removes -L/usr/lib/? from given variable
26 AC_DEFUN(LIB_REMOVE_USR_LIB,[
30 -L/usr/lib|-L/usr/lib/) ;;
31 *) ac_new_flags="[$]ac_new_flags [$]i" ;;
37 m4_include(lib/replace/libreplace.m4)
38 m4_include(build/m4/ax_cflags_gcc_option.m4)
39 m4_include(build/m4/ax_cflags_irix_option.m4)
40 m4_include(build/m4/public.m4)