… | |
… | |
144 | |
144 | |
145 | AC_SUBST(PYTHON_LIB) |
145 | AC_SUBST(PYTHON_LIB) |
146 | AC_SUBST(PY_LIBS) |
146 | AC_SUBST(PY_LIBS) |
147 | AC_SUBST(PY_INCLUDES) |
147 | AC_SUBST(PY_INCLUDES) |
148 | ]) |
148 | ]) |
|
|
149 | |
|
|
150 | dnl CF_CHECK_CROSSEDIT(X11LIBS, ACTION-IF-FOUND , ACTION-IF-NOT-FOUND) |
|
|
151 | dnl check if a sample X test code can compile |
|
|
152 | dnl |
|
|
153 | |
|
|
154 | AC_DEFUN([CF_CHECK_CROSSEDIT],[ |
|
|
155 | |
|
|
156 | ac_save_LIBS="$LIBS" |
|
|
157 | |
|
|
158 | LIBS="$1 $LIBS" |
|
|
159 | AC_MSG_CHECKING(for crossedit required headers) |
|
|
160 | AC_TRY_LINK([ |
|
|
161 | #include <X11/Xaw/AllWidgets.h> |
|
|
162 | ], , |
|
|
163 | AC_MSG_RESULT(yes) |
|
|
164 | [$2], |
|
|
165 | AC_MSG_RESULT(no) |
|
|
166 | [$3]) |
|
|
167 | LIBS="$ac_save_LIBS" |
|
|
168 | ]) |