245 |
|
if test "$ESD_CONFIG" = "no" ; then |
246 |
|
no_esd=yes |
247 |
|
else |
248 |
+ |
AC_LANG_SAVE |
249 |
+ |
AC_LANG_C |
250 |
|
ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` |
251 |
|
ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` |
252 |
|
|
323 |
|
],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) |
324 |
|
CFLAGS="$ac_save_CFLAGS" |
325 |
|
LIBS="$ac_save_LIBS" |
326 |
+ |
AC_LANG_RESTORE |
327 |
|
fi |
328 |
|
fi |
329 |
|
if test "x$no_esd" = x ; then |
343 |
|
echo "*** Could not run ESD test program, checking why..." |
344 |
|
CFLAGS="$CFLAGS $ESD_CFLAGS" |
345 |
|
LIBS="$LIBS $ESD_LIBS" |
346 |
+ |
AC_LANG_SAVE |
347 |
+ |
AC_LANG_C |
348 |
|
AC_TRY_LINK([ |
349 |
|
#include <stdio.h> |
350 |
|
#include <esd.h> |
364 |
|
echo "*** may want to edit the esd-config script: $ESD_CONFIG" ]) |
365 |
|
CFLAGS="$ac_save_CFLAGS" |
366 |
|
LIBS="$ac_save_LIBS" |
367 |
+ |
AC_LANG_RESTORE |
368 |
|
fi |
369 |
|
fi |
370 |
|
ESD_CFLAGS="" |