diff -Naur poppler-0.5.4-orig/m4/libjpeg.m4 poppler-0.5.4/m4/libjpeg.m4 --- poppler-0.5.4-orig/m4/libjpeg.m4 2006-11-22 19:54:56.000000000 -0800 +++ poppler-0.5.4/m4/libjpeg.m4 2006-11-22 21:11:08.000000000 -0800 @@ -68,7 +68,7 @@ dnl then search the headers (can't use simply AC_TRY_xxx, as jpeglib.h dnl requires system dependent includes loaded before it) -jpeg_incdirs="$includedir /usr/include /usr/local/include " +jpeg_incdirs="`eval echo $includedir` /usr/include /usr/local/include " AC_FIND_FILE(jpeglib.h, $jpeg_incdirs, jpeg_incdir) test "x$jpeg_incdir" = xNO && jpeg_incdir=