1 | dnl> test to find the hard-to-find libXpm |
1 | dnl> test to find the hard-to-find libXpm |
2 | dnl> mostly copied from AC_PATH_X & AC_PATH_DIRECT, but explictly set |
2 | dnl> mostly copied from AC_PATH_X & AC_PATH_DIRECT, but explictly set |
3 | |
3 | |
4 | AC_DEFUN(VT_FIND_LIBXPM, |
4 | AC_DEFUN([VT_FIND_LIBXPM], |
5 | [ |
5 | [ |
6 | AC_REQUIRE_CPP() |
6 | AC_REQUIRE_CPP() |
7 | |
7 | |
8 | # Initialize some more variables set by options. |
8 | # Initialize some more variables set by options. |
9 | # The variables have the same names as the options, with |
9 | # The variables have the same names as the options, with |
… | |
… | |
104 | ]) |
104 | ]) |
105 | |
105 | |
106 | dnl Internal subroutine of VT_FIND_LIBXPM |
106 | dnl Internal subroutine of VT_FIND_LIBXPM |
107 | dnl Set vt_xpm_include and vt_xpm_libr |
107 | dnl Set vt_xpm_include and vt_xpm_libr |
108 | # -------------- find xpm.h and Xpm.a/Xpm.so/Xpm.sl |
108 | # -------------- find xpm.h and Xpm.a/Xpm.so/Xpm.sl |
109 | AC_DEFUN(VT_XPM_DIRECT, |
109 | AC_DEFUN([VT_XPM_DIRECT], |
110 | [if test "$vt_xpm_includes" = NO; then |
110 | [if test "$vt_xpm_includes" = NO; then |
111 | # Guess where to find xpm.h |
111 | # Guess where to find xpm.h |
112 | |
112 | |
113 | ac_save_CPPFLAGS="$CPPFLAGS" |
113 | ac_save_CPPFLAGS="$CPPFLAGS" |
114 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
114 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |