[BACK]Return to configure.in CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-doc

File: [local] / OpenXM / src / asir-doc / configure.in (download)

Revision 1.3, Sat Sep 29 05:29:10 2007 UTC (16 years, 7 months ago) by takayama
Branch: MAIN
Changes since 1.2: +5 -3 lines

exit(-1) should be used to use AC_TRY_RUN.

dnl  $OpenXM: OpenXM/src/asir-doc/configure.in,v 1.3 2007/09/29 05:29:10 takayama Exp $
dnl  If you change this file, do not forget to run autoconf and rm .configure_done


AC_INIT(extract_func.c)
AC_PROG_CC

AC_TRY_RUN([#include "stdlib.h"
            main() {
              int r;
              r=system("ptex -kanji=euc -version");
              printf("ptex status=%d\n",r);
              if (r == 0) exit(0); else exit(-1);
           }],
 AC_SUBST(PTEX,["ptex -kanji=euc"]),
 AC_SUBST(PTEX,["ptex"]),
 AC_SUBST(PTEX,["ptex"])
)

AC_OUTPUT(Makefile)

make configure