Annotation of Amaya/configure.in, revision 1.95

1.1       cvs         1: dnl
                      2: dnl Process this file with autoconf to produce a configure script.
                      3: dnl Autoconf script for Amaya and Thot.
1.10      cvs         4: dnl Daniel Veillard and Irene Vatton, 1997
1.1       cvs         5: dnl
                      6: 
                      7: dnl  ***************************************************************
                      8: dnl
                      9: dnl    GENERIC AUTOCONF STUFF : GUESS INFORMATIONS ON SYSTEM SETUP
                     10: dnl
                     11: dnl  ***************************************************************
                     12: 
                     13: AC_PREREQ(2.2)
                     14: AC_INIT(thotlib/internals/h/constpiv.h)
                     15: AC_REVISION
                     16: 
                     17: dnl
1.69      kahan      18: dnl Verify that configure is not being called in the Amaya directory
                     19: dnl
                     20: if test -d batch -a -f configure.in ; then
1.70      kahan      21:    echo 
                     22:    echo "****************************************************************"
1.69      kahan      23:    echo ERROR: You must invoke the configure script in a subidrectory
                     24:    echo under the Amaya tree.
                     25:    echo For example:
                     26:    echo "  cd Amaya ; mkdir obj ; cd obj ; ../configure [your options] "
1.70      kahan      27:    echo "****************************************************************"
                     28:    echo 
1.69      kahan      29:    exit 1
                     30: fi
                     31: 
                     32: dnl
1.1       cvs        33: dnl Checks for platform information
                     34: dnl
                     35: 
                     36: AC_CANONICAL_SYSTEM
                     37: AC_CONFIG_HEADER(config.h)
                     38: 
                     39: dnl
                     40: dnl Initializing Automake
                     41: dnl
                     42: 
                     43: AC_PROG_MAKE_SET
                     44: AC_ARG_PROGRAM
                     45: 
                     46: dnl
                     47: dnl Checks for programs.
                     48: dnl
                     49: 
                     50: AC_PROG_YACC
                     51: AC_PROG_CC
                     52: AC_PROG_CPP
                     53: AC_PROG_LEX
                     54: AC_PROG_AWK
                     55: AC_PROG_INSTALL
                     56: AC_PROG_LN_S
                     57: AC_PROG_MAKE_SET
                     58: AC_PROG_RANLIB
                     59: AC_PATH_PROG(CP, cp, /bin/cp, $PATH:/bin:/usr/bin:/usr/ucb/bin)
                     60: AC_PATH_PROG(MV, mv, /bin/mv, $PATH:/bin:/usr/bin:/usr/ucb/bin)
                     61: AC_PATH_PROG(RM, rm, /bin/rm, $PATH:/bin:/usr/bin:/usr/ucb/bin)
                     62: AC_PATH_PROG(MKDIR, mkdir, /bin/mkdir, $PATH:/bin:/usr/bin:/usr/ucb/bin)
                     63: AC_PATH_PROG(ECHO, echo, /bin/echo, $PATH:/bin:/usr/bin:/usr/ucb/bin)
                     64: AC_PATH_PROG(CAT, cat, /bin/cat, $PATH:/bin:/usr/bin:/usr/ucb/bin)
                     65: AC_PATH_PROG(CHMOD, chmod, /bin/chmod, $PATH:/bin:/usr/bin:/usr/ucb/bin)
                     66: AC_PATH_PROG(SED, sed, /bin/sed, $PATH:/bin:/usr/bin:/usr/ucb/bin)
                     67: AC_PATH_PROG(AR, ar, /usr/bin/ar, $PATH:/bin:/usr/bin:/usr/ucb/bin)
1.6       cvs        68: AC_PATH_PROG(DIFF, diff, /usr/bin/diff, $PATH:/bin:/usr/bin:/usr/ucb/bin)
1.1       cvs        69: 
                     70: dnl
                     71: dnl Checks for libraries.
                     72: dnl
                     73: 
                     74: AC_CHECK_LIB(socket, socket, )
                     75: AC_CHECK_LIB(inet, connect)
                     76: AC_CHECK_LIB(nsl, t_accept)
                     77: AC_CHECK_LIB(dl, dlopen)
                     78: AC_PATH_X
                     79: AC_PATH_XTRA
                     80: 
1.41      cvs        81: dnl
                     82: dnl Check for libXp
                     83: dnl
1.38      cvs        84: 
1.41      cvs        85: for ac_dir in               \
                     86:   /usr/X11R6/lib        \
                     87:   /usr/X11R5/lib        \
                     88:                             \
                     89:   /usr/lib/X11R6        \
                     90:   /usr/lib/X11R5        \
                     91:                             \
                     92:   /usr/local/X11R6/lib  \
                     93:   /usr/local/X11R5/lib  \
                     94:                             \
                     95:   /usr/local/lib/X11R6  \
                     96:   /usr/local/lib/X11R5  \
                     97:                             \
                     98:   /usr/X11/lib          \
                     99:   /usr/lib/X11          \
                    100:   /usr/local/X11/lib    \
                    101:   /usr/local/lib/X11    \
                    102:                             \
                    103:   /usr/X386/lib         \
                    104:   /usr/x386/lib         \
                    105:   /usr/XFree86/lib/X11  \
                    106:                             \
                    107:   /usr/dt/lib           \
                    108:                             \
                    109:   /usr/lib              \
                    110:   /usr/local/lib        \
                    111:   /usr/unsupported/lib  \
                    112:   /usr/athena/lib       \
                    113:   /usr/local/x11r5/lib  \
                    114:   /usr/lpp/Xamples/lib  \
                    115:                             \
                    116:   /usr/lesstif/lib      \
                    117:   /usr/local/lesstif/lib\
                    118:   /usr/gnu/lesstif/lib  \
                    119:   $HOME/lesstif/lib     \
                    120:   ; \
                    121: do
                    122:   if test -r "$ac_dir/libXp.a" -o -r "$ac_dir/libXp.so"; then
                    123:      echo "\nfound libXp.a\n"
                    124:      X_PRE_LIBS="-lXp ${X_PRE_LIBS}"
                    125:      break
                    126:   fi
                    127: done
1.1       cvs       128: dnl
1.5       cvs       129: dnl Checks for header files.
                    130: dnl
                    131: 
                    132: AC_HEADER_DIRENT
                    133: AC_HEADER_STDC
                    134: AC_HEADER_SYS_WAIT
                    135: 
                    136: AC_CHECK_HEADERS(stdio.h)
                    137: AC_CHECK_HEADERS(sys/types.h types.h)
                    138: AC_CHECK_HEADERS(sys/unistd.h unistd.h)
                    139: AC_CHECK_HEADERS(sys/fcntl.h fcntl.h)
                    140: AC_CHECK_HEADERS(sys/limits.h limits.h)
                    141: AC_CHECK_HEADERS(sys/stat.h stat.h)
                    142: AC_CHECK_HEADERS(sys/file.h)
                    143: AC_CHECK_HEADERS(sys/ioctl.h)
                    144: AC_CHECK_HEADERS(sys/time.h time.h)
                    145: AC_CHECK_HEADERS(sys/systeminfo.h)
1.46      cvs       146: AC_CHECK_HEADERS(sys/string.h strings.h)
1.34      cvs       147: AC_CHECK_HEADERS(sys/syslog.h syslog.h)
1.5       cvs       148: AC_CHECK_HEADERS(sys/socket.h socket.h)
                    149: AC_CHECK_HEADERS(appkit/appkit.h appkit.h)
1.72      vatton    150: AC_CHECK_HEADERS(apppkit/apppkit.h apppkit.h)
1.5       cvs       151: AC_CHECK_HEADERS(netinet/in.h in.h)
                    152: AC_CHECK_HEADERS(dn.h)
                    153: AC_CHECK_HEADERS(sys/ipc.h)
                    154: AC_CHECK_HEADERS(net/errno.h sys/errno.h errno.h)
                    155: AC_CHECK_HEADERS(pwd.h)
                    156: AC_CHECK_HEADERS(grp.h)
                    157: AC_CHECK_HEADERS(arpa/inet.h inet.h)
                    158: AC_CHECK_HEADERS(netdb.h)
                    159: AC_CHECK_HEADERS(manifest.h)
                    160: AC_CHECK_HEADERS(bsdtypes.h)
                    161: AC_CHECK_HEADERS(stdefs.h)
                    162: AC_CHECK_HEADERS(bsdtime.h)
                    163: AC_CHECK_HEADERS(sys/select.h select.h)
                    164: AC_CHECK_HEADERS(dnetdb.h)
                    165: AC_CHECK_HEADERS(libc.h)
                    166: AC_CHECK_HEADERS(stdlib.h)
                    167: AC_CHECK_HEADERS(malloc.h)
                    168: AC_CHECK_HEADERS(memory.h)
                    169: AC_CHECK_HEADERS(unixlib.h)
                    170: AC_CHECK_HEADERS(ctype.h)
                    171: AC_CHECK_HEADERS(cursesX.h curses.h)
                    172: AC_CHECK_HEADERS(sys/resource.h resource.h)
                    173: AC_HEADER_DIRENT
                    174: AC_CHECK_HEADERS(dir.h direct.h) dnl AC_HEADER_DIRENT only checks for some..
                    175: AC_HEADER_STDC
                    176: AC_HEADER_SYS_WAIT
                    177: AC_HEADER_TIME
                    178: AC_HEADER_STAT
                    179: 
                    180: dnl
                    181: dnl Checks for typedefs, structures, and compiler characteristics.
                    182: dnl
                    183: 
                    184: AC_C_CONST
                    185: AC_C_INLINE
                    186: AC_TYPE_MODE_T
                    187: AC_TYPE_OFF_T
                    188: AC_TYPE_SIZE_T
                    189: AC_HEADER_TIME
                    190: AC_STRUCT_TM
                    191: AC_STRUCT_TIMEZONE
                    192: AC_TYPE_UID_T
                    193: 
                    194: dnl
                    195: dnl Checks for library functions.
                    196: dnl
                    197: 
                    198: AC_FUNC_ALLOCA
                    199: AC_TYPE_GETGROUPS
                    200: AC_PROG_GCC_TRADITIONAL
                    201: AC_FUNC_MEMCMP
                    202: AC_FUNC_MMAP
                    203: AC_TYPE_SIGNAL
                    204: AC_FUNC_VPRINTF
1.58      cvs       205: AC_CHECK_FUNCS(getcwd gethostname gettimeofday getwd mkdir mktime putenv select socket strdup strerror strftime strstr strtod strtol uname lstat strcasecmp strncasecmp strchr memcpy)
1.5       cvs       206: 
1.75      cheyroul  207: 
1.85      vatton    208: 
                    209: AC_ARG_WITH(GL,              [  --with-gl               enable Opengl canvas (experimental) ])
                    210: dnl
                    211: dnl GL canvas is disabled by default
                    212: dnl
                    213: dnl needs Opengl, glu, Xft (xfree 4 font server)
                    214: dnl needs GTK
                    215: dnl text WILL need freetype2, ftgl
                    216: dnl GL is for opengl
                    217: dnl Glu is for text drawing (until we switch) 
                    218: dnl GLU is for tesselation algortihms (until we extract it from this lib)
                    219: dnl (tesselation is used for polygons with holes in it...)
                    220: dnl gtkgl is for integration of opengl in GTK
                    221: if test "$with_gl" = "" ; then
                    222:  if test "$enable_gl" = "yes" ; then
                    223:     with_gl="yes"
                    224:   else
                    225:     with_gl="no"
                    226:   fi
                    227: fi  
                    228: 
1.63      vatton    229: GTK_OPTIONS=
1.95    ! vatton    230: AC_ARG_WITH(gtk, [  --without-gtk              use Motif instead of GTK])
        !           231: if test "$withval" = "no" ; then
1.85      vatton    232:   if test "$with_gl" = "yes" ; then
                    233:     with_gtk="yes"
1.95    ! vatton    234:   else
        !           235:     with_gtk="no"
1.85      vatton    236:   fi
1.95    ! vatton    237: else
        !           238:   with_gtk="yes"
1.85      vatton    239: fi
                    240: 
                    241: if test "$with_gtk" = "yes" ; then
1.63      vatton    242:   for ac_dir in               \
1.65      cvs       243:     /usr/lib/glib/include     \
1.63      vatton    244:     /usr/X11R6/include        \
                    245:                               \
                    246:     /usr/include/X11R6        \
                    247:     /usr/local/X11R6/include  \
                    248:     /usr/local/include/X11R6  \
                    249:                               \
                    250:     /usr/X11/include          \
                    251:     /usr/include/X11          \
                    252:     /usr/local/X11/include    \
                    253:     /usr/local/include/X11    \
                    254:                               \
                    255:     /usr/X386/include         \
                    256:     /usr/x386/include         \
                    257:     /usr/XFree86/include/X11  \
                    258:     /usr/dt/include           \
                    259:     /usr/include              \
                    260:     /usr/local/include        \
                    261:     /usr/local/lib/glib/include  \
                    262:     ; \
                    263:   do
                    264:     if test -r "$ac_dir/gdk/gdk.h"; then
                    265:       no_gtk= ac_gtk_includes=$ac_dir
                    266:       break
                    267:     fi
                    268:   done
                    269: 
1.65      cvs       270: GTK_INCLUDES="`gtk-config --cflags`"
1.63      vatton    271: AC_SUBST(GTK_INCLUDES)
1.87      kahan     272: GTK_LIBRARIES="`gtk-config --libs` -lgdk_imlib"
1.63      vatton    273: AC_SUBST(GTK_LIBRARIES)
1.65      cvs       274: GTK_OPTIONS=-D_GTK
1.63      vatton    275:   no_motif=yes
1.76      vatton    276:   no_graphic=yes
1.63      vatton    277: else
1.5       cvs       278: dnl
1.4       cvs       279: dnl Checking for Motif libraries and includes
                    280: dnl
                    281: dnl Borrowed from Lesstif configure.in
                    282: dnl Lesstif is a Great Project (TM)
                    283: dnl
                    284: 
                    285: AC_DEFUN(AC_PATH_MOTIF_DIRECT,
                    286: [test -z "$motif_direct_test_library" && motif_direct_test_library=Xm
                    287: test -z "$motif_direct_test_function" && motif_direct_test_function=XmCreatePushButton
                    288: test -z "$motif_direct_test_include" && motif_direct_test_include=Xm/Xm.h
                    289:   for ac_dir in               \
                    290:     /usr/include/Motif1.2     \
                    291:     /usr/Motif1.2/include     \
1.71      vatton    292:     /sw/Lesstif/Motif2.0/include \
1.4       cvs       293:                               \
                    294:     /usr/motif/include        \
                    295:                               \
                    296:     /usr/X11R6/include        \
                    297:     /usr/X11R5/include        \
                    298:                               \
                    299:     /usr/include/X11R6        \
                    300:     /usr/include/X11R5        \
                    301:                               \
                    302:     /usr/local/X11R6/include  \
                    303:     /usr/local/X11R5/include  \
                    304:                               \
                    305:     /usr/local/include/X11R6  \
                    306:     /usr/local/include/X11R5  \
                    307:                               \
                    308:     /usr/X11/include          \
                    309:     /usr/include/X11          \
                    310:     /usr/local/X11/include    \
                    311:     /usr/local/include/X11    \
                    312:                               \
                    313:     /usr/X386/include         \
                    314:     /usr/x386/include         \
                    315:     /usr/XFree86/include/X11  \
                    316:                               \
                    317:     /usr/dt/include           \
                    318:                               \
                    319:     /usr/include              \
                    320:     /usr/local/include        \
                    321:     /usr/unsupported/include  \
                    322:     /usr/athena/include       \
                    323:     /usr/local/x11r5/include  \
                    324:     /usr/lpp/Xamples/include  \
1.14      cvs       325:                               \
                    326:     /usr/lesstif/include      \
                    327:     /usr/local/lesstif/include\
                    328:     /usr/gnu/lesstif/include  \
                    329:     $HOME/lesstif/include     \
1.4       cvs       330:     ; \
                    331:   do
                    332:     if test -r "$ac_dir/$motif_direct_test_include"; then
                    333:       no_motif= ac_motif_includes=$ac_dir
                    334:       break
                    335:     fi
                    336:   done
                    337: 
                    338: # Check for the libraries.
                    339: # See if we find them without any special options.
                    340: # Don't add to $LIBS permanently.
                    341: ac_save_LIBS="$LIBS"
                    342: LIBS="-l$motif_direct_test_library $LIBS"
                    343: # First see if replacing the include by lib works.
                    344: for ac_dir in `echo "$ac_motif_includes" | sed s/include/lib/` \
                    345:     /usr/lib/Motif1.2     \
                    346:     /usr/Motif1.2/lib     \
1.71      vatton    347:     /sw/Lesstif/Motif2.0/lib \
1.4       cvs       348:                           \
                    349:     /usr/motif/lib        \
                    350:                           \
                    351:     /usr/X11R6/lib        \
                    352:     /usr/X11R5/lib        \
                    353:                           \
                    354:     /usr/lib/X11R6        \
                    355:     /usr/lib/X11R5        \
                    356:                           \
                    357:     /usr/local/X11R6/lib  \
                    358:     /usr/local/X11R5/lib  \
                    359:                           \
                    360:     /usr/local/lib/X11R6  \
                    361:     /usr/local/lib/X11R5  \
                    362:                           \
                    363:     /usr/X11/lib          \
                    364:     /usr/lib/X11          \
                    365:     /usr/local/X11/lib    \
                    366:                           \
                    367:     /usr/X386/lib         \
                    368:     /usr/x386/lib         \
                    369:     /usr/XFree86/lib/X11  \
                    370:                           \
                    371:     /usr/lib              \
                    372:     /usr/local/lib        \
                    373:     /usr/unsupported/lib  \
                    374:     /usr/athena/lib       \
                    375:     /usr/local/x11r5/lib  \
                    376:     /usr/lpp/Xamples/lib  \
1.14      cvs       377:                           \
                    378:     /usr/lesstif/lib      \
                    379:     /usr/local/lesstif/lib\
                    380:     /usr/gnu/lesstif/lib  \
                    381:     $HOME/lesstif/lib     \
1.4       cvs       382:     ; \
                    383: do
1.71      vatton    384:   for ac_extension in a so sl la; do
1.4       cvs       385:     if test -r $ac_dir/lib${motif_direct_test_library}.$ac_extension; then
                    386:       no_motif= ac_motif_libraries=$ac_dir
                    387:       break 2
                    388:     fi
                    389:   done
1.5       cvs       390: done
                    391: LIBS="$ac_save_LIBS"
                    392: ])
1.4       cvs       393: 
                    394: AC_DEFUN(AC_PATH_MOTIF,
1.66      vatton    395: [AC_REQUIRE_CPP()
1.4       cvs       396: 
                    397: motif_includes=NONE
                    398: motif_libraries=NONE
                    399: 
                    400: AC_MSG_CHECKING(for Motif)
1.63      vatton    401: if test "x$motif_includes" != xNONE && test "x$motif_libraries" != xNONE; then
                    402:     no_motif=
1.4       cvs       403: else
                    404: AC_CACHE_VAL(ac_cv_path_motif,
                    405: [# One or both of these vars are not set, and there is no cached value.
1.63      vatton    406:   no_motif=yes
1.4       cvs       407: AC_PATH_MOTIF_DIRECT
                    408: 
                    409: if test "$no_motif" = yes; then
1.63      vatton    410:     ac_cv_path_motif="no_motif=yes"
1.4       cvs       411: else
1.63      vatton    412:     ac_cv_path_motif="no_motif= ac_motif_includes=$ac_motif_includes ac_motif_libraries=$ac_motif_libraries"
1.66      vatton    413: fi])
                    414: eval "$ac_cv_path_motif"
1.63      vatton    415: fi
1.4       cvs       416: 
                    417: if test "$no_motif" = yes; then
                    418:   AC_MSG_RESULT(no)
1.5       cvs       419:   MOTIF_INCLUDES=
                    420:   MOTIF_LIBRARIES=
1.4       cvs       421: else
                    422:   test "x$motif_includes" = xNONE && motif_includes=$ac_motif_includes
                    423:   test "x$motif_libraries" = xNONE && motif_libraries=$ac_motif_libraries
                    424:   ac_cv_path_motif="no_motif= ac_motif_includes=$motif_includes ac_motif_libraries=$motif_libraries"
                    425:   AC_MSG_RESULT([libraries $motif_libraries, headers $motif_includes])
1.5       cvs       426:   if test "$motif_includes" != "/usr/include" ; then
                    427:     MOTIF_INCLUDES="-I$motif_includes"
                    428:   fi
                    429:   if test "$motif_libraries" != "/usr/lib" ; then
1.64      cvs       430:     MOTIF_LIBRARIES="-L$motif_libraries -lXm"
1.19      cvs       431:     case "${host}" in
                    432:         *-*sun-solaris* )
                    433:          MOTIF_LIBRARIES="${MOTIF_LIBRARIES} -R$motif_libraries"
                    434:         ;;
1.65      cvs       435:     esac
                    436:   else
                    437:   MOTIF_LIBRARIES="-lXm"
1.5       cvs       438:   fi
1.4       cvs       439: fi
1.5       cvs       440: AC_SUBST(MOTIF_INCLUDES)
                    441: AC_SUBST(MOTIF_LIBRARIES)
1.4       cvs       442: ])
                    443: 
                    444: AC_PATH_MOTIF
1.66      vatton    445: fi
1.4       cvs       446: 
1.63      vatton    447: if test "${GCC}" = "yes"; then
                    448:    CPP="${CPP} -x c"
                    449: fi
                    450: 
1.1       cvs       451: dnl  ***************************************************************
                    452: dnl
1.61      cvs       453: dnl    SPECIFIC STUFF : CONFIGURATION OPTIONS FOR AMAYA
1.1       cvs       454: dnl
                    455: dnl  ***************************************************************
                    456: 
1.76      vatton    457: AC_ARG_WITH(graphic-libs, [  --without-graphic-libs    doesn't use provided libjpeg, libpng.])
                    458: if test "$withval" = "no" ; then
1.83      vatton    459:   no_graphic=yes
                    460: fi
                    461: if test "$withval" = "yes" ; then
                    462:   no_graphic=no
1.76      vatton    463: fi
                    464: 
                    465: if test "$no_graphic" = yes; then
                    466: dnl
                    467:     AC_MSG_CHECKING([for libjpeg version = 6b])
                    468:     AC_EGREP_CPP([x 62 *x],
                    469:         [#include <jpeglib.h>
                    470:          x JPEG_LIB_VERSION x],
                    471: dnl
                    472:         AC_MSG_RESULT([yes])
                    473:         LIBJPEG='-ljpeg'
                    474:         MAKEJPEG=['#'],
                    475: dnl
                    476:         AC_MSG_RESULT([no])
                    477:         LIBJPEG='../libjpeg.a'      dnl LIBJPEG goes into amaya/Makefile.in
                    478:         )
                    479: dnl    
                    480: dnl
1.95    ! vatton    481:     AC_MSG_CHECKING([for libpng version = 1.0.x or 1.2.x])
        !           482:     AC_EGREP_CPP([x \"1.[02]\..*\" *x],
1.76      vatton    483:         [#include <png.h>
                    484:        x PNG_LIBPNG_VER_STRING x],
                    485: dnl
                    486:         AC_MSG_RESULT([yes])
                    487:         LIBPNG='-lpng'
                    488:         LIBZ=''
                    489:        MAKEPNG=['#'],
                    490: dnl
                    491:         AC_MSG_RESULT([no])
                    492:         LIBPNG='../libpng.a'
                    493:         LIBZ='../libz.a'
                    494:         )
                    495: else
                    496:     LIBJPEG='../libjpeg.a'
                    497:     LIBPNG='../libpng.a'
                    498:     LIBZ='../libz.a'
                    499: fi
                    500: dnl
                    501: AC_SUBST(LIBJPEG)
                    502: AC_SUBST(LIBPNG)
                    503: AC_SUBST(LIBZ)
                    504: AC_SUBST(MAKEJPEG)
                    505: AC_SUBST(MAKEPNG)
                    506: 
1.68      vatton    507: AMAYA_VER="6.0"
1.1       cvs       508: 
                    509: dnl
1.6       cvs       510: dnl We use a special versoin of cextract patched for alignment
                    511: dnl to build the signatures of the modules functions located in f subdirs
                    512: dnl
                    513: CEXTRACT_VER="1.7"
                    514: CEXTRACT_FLAGS="+O"
                    515: 
1.3       cvs       516: 
                    517: dnl
1.9       cvs       518: dnl Adjust the some variables depending on the host and compiler
1.61      cvs       519: dnl Thotlib NEED signed chars !!!
1.7       cvs       520: dnl
                    521: 
                    522: if test "${CC}" = "gcc" ; then
1.44      cvs       523:   CFLAGS="${CFLAGS} -W "
1.7       cvs       524:   case "${host}" in
                    525:       *-*-irix5* | *-*irix6* )
                    526:          CFLAGS="${CFLAGS} -fsigned-char"
                    527:       ;;
                    528:   esac
1.14      cvs       529: fi
                    530: 
                    531: if test "$ac_cv_c_const" = "no" ; then
                    532:   CFLAGS="${CFLAGS} -DCONST= "
1.7       cvs       533: fi
                    534: 
                    535: dnl
1.61      cvs       536: dnl Check for availability of amaya sources
1.1       cvs       537: dnl
                    538: 
                    539: build_amaya="yes"
                    540: 
                    541: if test "$with_amaya" = "no" ; then
                    542:     build_amaya="no"
1.45      cvs       543: else
                    544:   if test ! -f $srcdir/amaya/Makefile.in ; then
1.1       cvs       545:     AC_MSG_WARN(Amaya browser/editor sources not found, disabling Amaya build !)
                    546:     build_amaya="no"
1.45      cvs       547:   fi
1.1       cvs       548: fi
                    549: 
                    550: dnl
1.50      cvs       551: dnl Check for additionnal packages
1.1       cvs       552: dnl use AC_CONFIG_SUBDIRS to launch configure in the subdir
                    553: dnl
1.93      kahan     554: 
1.82      vatton    555: AC_ARG_WITH(i18n,            [  --without-i18n          disable internationalization support ])
1.76      vatton    556: dnl
                    557: dnl I18N support disabled by default
                    558: dnl
1.77      kahan     559: 
                    560: if test "$with_i18n" = "" ; then
1.82      vatton    561:   if test "$enable_i18n" = "no" ; then
                    562:     with_i18n="no"
                    563:   else
1.77      kahan     564:     with_i18n="yes"
                    565:   fi
                    566: 
                    567: fi  
1.76      vatton    568: if test "$with_i18n" = "yes" ; then
                    569:    I18N_OPTIONS=-D_I18N_
                    570: else
                    571:    with_i18n="no"
                    572:    I18N_OPTIONS=""
                    573: fi
1.1       cvs       574: 
1.75      cheyroul  575: if test "$with_gl" = "yes" ; then
                    576:        AC_MSG_CHECKING([OpenGL])
                    577:        for ac_dir in                           \
                    578:                /usr/include                    \
                    579:                /usr/X11R6/include              \
                    580:                /usr/local/include              \
                    581:                ; \
1.80      cheyroul  582:        do  if test -r "$ac_dir/GL/gl.h" ; then
1.75      cheyroul  583:                 gl_inc="yes"
1.80      cheyroul  584:                GL_INC_I="$ac_dir"
                    585:                if test "$ac_dir" != "/usr/include" ; then
                    586:                   GL_INCLUDES="-I$ac_dir"
                    587:                fi
1.75      cheyroul  588:                        break   
                    589:            fi
1.80      cheyroul  590:        done    
                    591:        AC_MSG_CHECKING([GLU])  
1.75      cheyroul  592:        for ac_dir in                           \
                    593:                /usr/include/GL                 \
                    594:                /usr/include                    \
                    595:                /usr/X11R6/include/GL           \
                    596:                /usr/X11R6/include              \
                    597:                /usr/local/include              \
                    598:                /usr/local/include/GL           \
                    599:                ; \
                    600:        do  if test -r "$ac_dir/glu.h" ; then
                    601:                 glu_inc="yes"
1.80      cheyroul  602:                GL_INC_II="$ac_dir"
                    603:                if test "$ac_dir" != "/usr/include" ; then
                    604:                        if test "$ac_dir" != "$GL_INC_I" ; then
                    605:                            GL_INCLUDES="$GL_INCLUDES -I$ac_dir"
                    606:                        fi
                    607:                fi
1.75      cheyroul  608:                        break   
                    609:            fi
                    610:        done    
1.80      cheyroul  611:        AC_MSG_CHECKING([GTKGLAREA])    
1.75      cheyroul  612:        for ac_dir in                           \
                    613:                /usr/include/GL                 \
                    614:                /usr/include                    \
                    615:                /usr/X11R6/include/GL           \
                    616:                /usr/X11R6/include              \
                    617:                /usr/local/include              \
                    618:                /usr/local/include/GL           \
                    619:                ; \
                    620:        do  if test -r "$ac_dir/gtkgl/gtkglarea.h" ; then
                    621:                 gtkgl_inc="yes"
1.80      cheyroul  622:                if test "$ac_dir" != "/usr/include" ; then
                    623:                        if test "$ac_dir" != "$GL_INC_II" ; then
                    624:                                if test "$ac_dir" != "$GL_INC_I" ; then
                    625:                                        GL_INCLUDES="$GL_INCLUDES -I$ac_dir"
                    626:                                fi
                    627:                        fi
                    628:                fi
1.75      cheyroul  629:                        break   
                    630:            fi
                    631:        done    
1.80      cheyroul  632:        AC_MSG_CHECKING([freetype])     
                    633:        for ac_dir in                           \
                    634:                /usr/include                    \
                    635:                /usr/X11R6/include              \
                    636:                /usr/local/include              \
                    637:                ; \
                    638:        do  if test -r "$ac_dir/ft2build.h" ; then
                    639:                 freetype_inc="yes"
                    640:                GL_INCLUDES="$GL_INCLUDES `freetype-config --cflags`"
                    641:                        break   
                    642:            fi
                    643:        done            
1.75      cheyroul  644:        if test "$gl_inc" = "" ; then
                    645:                AC_MSG_WARN(Opengl headers (gl.h) not found !!)
                    646:                AC_MSG_WARN(Disabling opengl build !)
                    647:                with_gl="no"
                    648:                GL_OPTIONS=     
                    649:                GL_INCLUDES=    
                    650:                GL_LIBRARIES=
1.81      cheyroul  651:                exit 1;
1.75      cheyroul  652:        fi
                    653:        if test "$glu_inc" = "" ; then
                    654:                AC_MSG_WARN(Glu headers (glu.h) not found !!)
                    655:                AC_MSG_WARN(Disabling opengl build !)
1.81      cheyroul  656:        
1.75      cheyroul  657:                with_gl="no"
                    658:                GL_OPTIONS=     
                    659:                GL_INCLUDES=    
                    660:                GL_LIBRARIES=
1.81      cheyroul  661:                exit 1;
1.75      cheyroul  662:        fi
                    663:        if test "$gtkgl_inc" = "" ; then
                    664:                AC_MSG_WARN(Gtkglarea headers (gktglarea.h) not found !!)
                    665:                AC_MSG_WARN(Disabling opengl build !)
                    666:                with_gl="no"
                    667:                GL_OPTIONS=     
                    668:                GL_INCLUDES=    
                    669:                GL_LIBRARIES=
1.81      cheyroul  670:                exit 1;
1.75      cheyroul  671:        fi
1.80      cheyroul  672:        if test "$freetype_inc" = "" ; then
                    673:                AC_MSG_WARN(Freetype 2 headers (ft2build.h) not found !!)
                    674:                AC_MSG_WARN(Disabling opengl build !)
                    675:                with_gl="no"
                    676:                GL_OPTIONS=     
                    677:                GL_INCLUDES=
                    678:                GL_LIBRARIES=
1.81      cheyroul  679:                exit 1;
1.80      cheyroul  680:        fi
1.75      cheyroul  681:        if test "$gl_inc" = "yes" ; then
1.79      cheyroul  682:                if test "$glu_inc" = "yes" ; then
                    683:                        if test "$gtkgl_inc" = "yes" ; then
1.80      cheyroul  684:                            if test "$freetype_inc" = "yes" ; then      
                    685:                                GL_LIBRARIES=" -lXmu -lXft -lfreetype -lGL -lGLU -lgtkgl "
1.79      cheyroul  686:                                GL_OPTIONS=-D_GL 
                    687:                                no_motif=yes
1.80      cheyroul  688:                            fi
1.75      cheyroul  689:                        fi
                    690:                fi
                    691:        fi
                    692: AC_SUBST(GL_INCLUDES)
                    693: AC_SUBST(GL_LIBRARIES)
                    694: fi
1.76      vatton    695: 
                    696: AC_ARG_ENABLE(svg,           [  --disable-svg           remove SVG support ])
                    697: AC_ARG_ENABLE(annot,         [  --disable-annot         remove Annotations support ])
1.93      kahan     698: AC_ARG_ENABLE(raptor,        [  --disable-raptor        disable the raptor RDF parser ])
1.76      vatton    699: AC_ARG_ENABLE(generic-xml,   [  --disable-generic-xml   remove Generic XML support ])
                    700: 
1.75      cheyroul  701: dnl
1.21      cvs       702: dnl plugins support is disabled by default
1.8       cvs       703: dnl
1.13      cvs       704: 
                    705: if test "$with_plugin" = "" ; then
1.21      cvs       706:   if test "$enable_plugin" = "yes" ; then
1.55      kahan     707:     with_plugin="yes"
1.21      cvs       708:   else
1.17      cvs       709:     with_plugin="no"
                    710:   fi
1.10      cvs       711: fi  
1.1       cvs       712: 
1.8       cvs       713: dnl
1.68      vatton    714: dnl svg is enabled by default
1.26      cvs       715: dnl
1.68      vatton    716: if test "$with_svg" = "" ; then
                    717:     if test "$enable_svg" = "no" ; then
                    718:        with_svg="no"
1.49      cvs       719:     else
1.68      vatton    720:        with_svg="yes"
1.26      cvs       721:     fi
                    722: fi
                    723: 
                    724: dnl
1.56      kahan     725: dnl annotations is enabled by default
1.47      cvs       726: dnl
                    727: if test "$with_annot" = "" ; then
1.56      kahan     728:     if test "$enable_annot" = "no" ; then
                    729:        with_annot="no"
                    730:     else
1.54      cvs       731:        with_annot="yes"
1.47      cvs       732:     fi
                    733: fi
                    734: 
1.93      kahan     735: 
                    736: dnl
                    737: dnl The raptor RDF parser is enabled by default
                    738: dnl
                    739: if test "$with_raptor" = "" ; then
                    740:     if test "$enable_raptor" = "no" ; then
                    741:        with_raptor="no"
                    742:     else
                    743:        with_raptor"yes"
                    744:     fi
                    745: fi
                    746: 
1.70      kahan     747: dnl
                    748: dnl Generic XML support enabled by default
                    749: dnl
                    750: if test "$with_generic_xml" = "" ; then
                    751:     if test "$enable_generic_xml" = "no" ; then
                    752:        with_generic_xml="no"
                    753:        GENERIC_XML_OPTIONS=
                    754:     else
                    755:        with_generic_xml="yes"
                    756:        GENERIC_XML_OPTIONS=-DXML_GENERIC
                    757:     fi
                    758: fi
                    759: 
1.88      kirschpi  760: AC_ARG_WITH(dav,            [  --with-dav             enable WebDAV support (experimental) ])
                    761: dnl
                    762: dnl DAV support disabled by default
                    763: dnl
                    764: if test "$with_dav" = "" ; then
                    765:   if test "$enable_dav" = "yes" ; then
                    766:     with_dav="yes"
                    767:   else
                    768:     with_dav="no"
                    769:   fi
                    770: fi  
                    771: 
                    772: if test "$with_dav" = "yes" ; then
                    773:    DAV_OPTIONS=-DDAV
1.90      kirschpi  774:    DAVDIR="davlib"
                    775:    LIBDAV="libwwwdav"
                    776:    WITHDAV="--with-dav" 
                    777:    WWWDAV="-lwwwdav" 
1.88      kirschpi  778: else
                    779:    with_dav="no"
                    780:    DAV_OPTIONS=""
1.90      kirschpi  781:    DAVDIR=""
                    782:    LIBDAV=""
                    783:    WITHDAV="" 
                    784:    WWWDAV="" 
1.88      kirschpi  785: fi
                    786: 
1.70      kahan     787: 
1.19      cvs       788: if test "$build_amaya" = "yes" ; then
1.43      cvs       789:     if test ! -f $srcdir/../libwww/Makefile.in ; then
1.50      cvs       790:        AC_MSG_WARN(libwww sources not found !!)
                    791:        AC_MSG_WARN(Disabling Amaya build !)
                    792:        build_amaya="no"
1.1       cvs       793:     fi
1.8       cvs       794: 
                    795:     if test ! -f $srcdir/amaya/MathML.S ; then
1.10      cvs       796:        if test "$with_math" = "yes" ; then
1.8       cvs       797:            AC_MSG_WARN(MathML sources not found !!)
1.26      cvs       798:            AC_MSG_WARN(Disabling Math build !)
1.10      cvs       799:            with_math="no"
                    800:            MATH_OPTIONS=
1.8       cvs       801:        fi
                    802:     fi
1.26      cvs       803: 
1.68      vatton    804:     if test ! -f $srcdir/amaya/SVG.S ; then
                    805:        if test "$with_svg" = "yes" ; then
                    806:            AC_MSG_WARN(SVG sources not found !!)
                    807:            AC_MSG_WARN(Disabling SVG build !)
                    808:            with_svg="no"
                    809:            SVG_OPTIONS=
1.26      cvs       810:        fi
                    811:     fi
                    812: 
1.48      cvs       813:     if test ! -f $srcdir/annotlib/Makefile.in ; then
1.47      cvs       814:        if test "$with_annot" = "yes" ; then
                    815:            AC_MSG_WARN(Annotation makefile not found !!)
                    816:            AC_MSG_WARN(Disabling Annotations build !)
                    817:            with_annot="no"
                    818:        fi
                    819:     fi
1.55      kahan     820: 
1.93      kahan     821:     if test "$with_annot" = "yes" -a "$with_raptor" = "yes" ; then
                    822:        if test ! -d "$srcdir/libraptor" ; then
                    823:           AC_MSG_WARN(Raptor source dir not found !!)
                    824:          AC_MSG_WARN(Disabling raptor build !)
                    825:          MAKERAPTOR=['#']
                    826:          with_raptor="no"
                    827:        else
                    828:           AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS -DRAPTOR_RDF_PARSER -I\$(THOTDIR)/libraptor"
1.94      kahan     829:           AMAYA_RAPTOR_LIBS="../libraptor/.libs/libraptor.a"
1.93      kahan     830:           AMAYA_RAPTOR_SRC="amaya_comp_libraptor"
                    831:           AMAYA_RAPTOR_INCLUDES="-I\$(THOTDIR)/libraptor"
                    832:        fi
                    833:     else
                    834:        AC_MSG_WARN(Disabling raptor build as annotations are disabled !)
                    835:        MAKERAPTOR=['#']
                    836:        with_raptor="no"
                    837:     fi
                    838: 
                    839:     dnl control whether we should use libwww's rdf parser
                    840:     if test "$with_raptor" = "yes" ; then
                    841:        dnl not all the function calls have been cleared as of today, 
                    842:        dnl we still need libwww's rdf parser 
                    843:        MAKE_LIBWWW_RDF_PARSER="libwwwxml"
                    844:        LIBWWW_RDF_PARSER="-lwwwxml"
                    845:        dnl MAKE_LIBWWW_RDF_PARSER=
                    846:        dnl# LIBWWW_RDF_PARSER=
                    847:     else
                    848:        MAKE_LIBWWW_RDF_PARSER="libwwwxml"
                    849:        LIBWWW_RDF_PARSER="-lwwwxml"
                    850:     fi
1.70      kahan     851: 
1.55      kahan     852:     if test "$with_plugin" = "yes" ; then
                    853:         AC_MSG_WARN(The plugin library isn't supported anymore in Amaya !!)
                    854:        AC_MSG_WARN(Disabling plugin build !)
                    855:        with_plugin="no"
                    856:     fi
                    857: 
1.88      kirschpi  858: 
                    859:     if test ! -f $srcdir/davlib/Makefile.in ; then
                    860:        if test "$with_dav" = "yes" ; then
                    861:            AC_MSG_WARN(WebDAV makefile not found !!)
                    862:            AC_MSG_WARN(Disabling WebDAV build !)
                    863:            with_dav="no"
1.90      kirschpi  864:             DAVDIR=""
                    865:             LIBDAV=""
                    866:             WITHDAV="" 
                    867:             WWWDAV="" 
1.88      kirschpi  868:        fi
                    869:     fi
                    870:    
                    871: 
1.1       cvs       872: fi
                    873: 
                    874: dnl
                    875: dnl The options for each library or binary
                    876: dnl
                    877: 
1.75      cheyroul  878: THOT_OPTIONS="$GTK_OPTIONS $I18N_OPTIONS $GL_OPTIONS"
1.93      kahan     879: AMAYA_OPTIONS="$MATH_OPTIONS $SVG_OPTIONS $GTK_OPTIONS $GENERIC_XML_OPTIONS $I18N_OPTIONS $GL_OPTIONS"
1.58      cvs       880: #PLUGIN_OPTIONS="-DPLUGIN_TRACE -DXP_UNIX"
1.93      kahan     881: AMAYA_ANNOT_OPTIONS="$AMAYA_ANNOT_OPTIONS $I18N_OPTIONS"
1.1       cvs       882: IMGLIBS="-ljpeg -lpng -lz"
1.3       cvs       883: EXTRA_LIBS=
1.1       cvs       884: 
                    885: dnl
                    886: dnl Set up the PATHs needed
                    887: dnl
                    888: 
                    889: API="\$(THOTDIR)/thotlib/include"
                    890: VAR="\$(THOTDIR)/thotlib/internals/var"
                    891: INCL="\$(THOTDIR)/thotlib/internals/h"
                    892: FUNC="\$(THOTDIR)/thotlib/internals/f"
1.58      cvs       893: if test "${LIBPNG}" = "../libpng.a" ; then
1.52      cvs       894: #there is a modified header file we need
1.1       cvs       895: PNGINCL="-I\$(THOTDIR)/libpng -I\$(THOTDIR)/libpng/zlib"
1.58      cvs       896: fi
                    897: if test "${LIBJPEG}" = "../libjpeg.a" ; then
                    898: #there is a modified header file we need
                    899: JPEGINCL="-I\$(THOTDIR)/libjpeg"
                    900: fi
1.1       cvs       901: 
                    902: dnl
                    903: dnl Set up the include variables.
                    904: dnl
                    905: 
1.61      cvs       906: THOTINCLUDES="-I${API} -I${VAR} -I${INCL} -I${FUNC} ${JPEGINCL} ${PNGINCL}"
1.58      cvs       907: APIINCLUDES=-I${API}
                    908:  
                    909: if test "${VPATHOPT}" = "" ; then
1.1       cvs       910:        VPATHOPT="VPATH"
                    911: fi
                    912: 
                    913: dnl
                    914: dnl Exports the current values of the variables.
                    915: dnl
                    916: 
                    917: AC_SUBST(AMAYA_VER)
1.6       cvs       918: AC_SUBST(CEXTRACT_VER)
                    919: AC_SUBST(CEXTRACT_FLAGS)
1.1       cvs       920: 
                    921: AC_SUBST(THOTINCLUDES)
                    922: AC_SUBST(APIINCLUDES)
                    923: AC_SUBST(VPATHOPT)
                    924: 
1.63      vatton    925: AC_SUBST(GTK_OPTIONS)
1.1       cvs       926: AC_SUBST(THOT_OPTIONS)
                    927: AC_SUBST(AMAYA_OPTIONS)
                    928: AC_SUBST(PLUGIN_OPTIONS)
1.48      cvs       929: AC_SUBST(AMAYA_ANNOT_OPTIONS)
1.1       cvs       930: AC_SUBST(IMGLIBS)
1.3       cvs       931: AC_SUBST(EXTRA_LIBS)
1.90      kirschpi  932: 
                    933: AC_SUBST(DAVDIR)
                    934: AC_SUBST(LIBDAV)
                    935: AC_SUBST(WITHDAV)
                    936: AC_SUBST(WWWDAV)
1.1       cvs       937: 
1.93      kahan     938: AC_SUBST(MAKERAPTOR)
                    939: AC_SUBST(AMAYA_RAPTOR_LIBS)
                    940: AC_SUBST(AMAYA_RAPTOR_SRC)
                    941: AC_SUBST(AMAYA_RAPTOR_INCLUDES)
                    942: AC_SUBST(MAKE_LIBWWW_RDF_PARSER)
                    943: AC_SUBST(LIBWWW_RDF_PARSER)
                    944: 
                    945: AC_SUBST(SUBDIRS)
                    946: 
1.1       cvs       947: dnl
1.48      cvs       948: dnl Include the option Makefile.xxx fragment according to the configure options
1.1       cvs       949: dnl
                    950: 
                    951: if test "$with_plugin" = "yes" ; then
1.50      cvs       952:     AC_SUBST_FILE(plugin_frag)
1.1       cvs       953:     plugin_frag=$srcdir/pluginlib/Makefile.plugin
                    954: else
                    955:     AC_SUBST_FILE(plugin_frag)
                    956:     plugin_frag=/dev/null
                    957: fi
                    958: 
                    959:     AC_SUBST_FILE(www_frag)
1.49      cvs       960:     www_frag=$srcdir/amaya/Makefile.libwww
1.1       cvs       961: 
1.50      cvs       962: if test "$with_math" = "no" ; then
1.10      cvs       963:     AC_SUBST_FILE(math_frag)
1.50      cvs       964:     math_frag=/dev/null
1.8       cvs       965: else
1.10      cvs       966:     AC_SUBST_FILE(math_frag)
1.50      cvs       967:     math_frag=$srcdir/amaya/Makefile.math
1.8       cvs       968: fi
                    969: 
1.68      vatton    970: if test "$with_svg" = "no" ; then
                    971:     AC_SUBST_FILE(svg_frag)
                    972:     svg_frag=/dev/null
1.26      cvs       973: else
1.68      vatton    974:     AC_SUBST_FILE(svg_frag)
                    975:     svg_frag=$srcdir/amaya/Makefile.svg
1.26      cvs       976: fi
                    977: 
1.47      cvs       978: if test "$with_annot" = "yes" ; then
                    979:     AC_SUBST_FILE(annot_frag)
1.48      cvs       980:     annot_frag=$srcdir/annotlib/Makefile.annot
1.47      cvs       981: else
                    982:     AC_SUBST_FILE(annot_frag)
                    983:     annot_frag=/dev/null
                    984: fi
                    985: 
1.88      kirschpi  986: if test "$with_dav" = "yes" ; then
                    987:     AC_SUBST_FILE(dav_frag)
                    988:     dav_frag=$srcdir/davlib/Makefile.dav
                    989: fi
1.16      cvs       990: 
1.1       cvs       991: dnl  ***************************************************************
                    992: dnl
                    993: dnl      FINAL STEP : PRODUCE ALL THE MAKEFILES AND CONFIG FILES
                    994: dnl
                    995: dnl  ***************************************************************
                    996: 
                    997: EXTRA_MAKEFILE_IN=
1.2       cvs       998: make_output="Makefile Options.orig:Options.in tools/Makefile \
1.1       cvs       999:        libjpeg/Makefile libpng/Makefile libpng/zlib/Makefile \
1.2       cvs      1000:        tools/mkdep/Makefile \
1.1       cvs      1001:        tools/cextract-1.7/Makefile thotlib/Makefile \
1.5       cvs      1002:        thotlib/include/Makefile batch/Makefile tablelib/Makefile"
1.1       cvs      1003: 
                   1004: if test "$build_amaya" = "yes" ; then
1.2       cvs      1005: 
1.19      cvs      1006:     make_output="$make_output amaya/Makefile pluginlib/Makefile"
1.2       cvs      1007:     EXTRA_MAKEFILE_IN="$srcdir/amaya/Makefile.in \
1.93      kahan    1008:     $srcdir/amaya/Makefile.libwww"
1.27      cvs      1009: 
                   1010:     if test "$$with_plugin" = "yes" ; then
                   1011:        make_output="$make_output pluginlib/Makefile"
                   1012:        EXTRA_MAKEFILE_IN="$srcdir/pluginlib/Makefile.in \
1.93      kahan    1013:        $srcdir/pluginlib/Makefile.plugin"
1.27      cvs      1014:     fi
1.2       cvs      1015: 
1.48      cvs      1016:     if test "$with_annot" = "yes" ; then
                   1017:        make_output="$make_output annotlib/Makefile"
                   1018:        EXTRA_MAKEFILE_IN="$srcdir/annotlib/Makefile.in"
                   1019:     fi
1.88      kirschpi 1020: 
                   1021:     if test "$with_dav" = "yes" ; then
                   1022:        make_output="$make_output davlib/Makefile"
                   1023:        EXTRA_MAKEFILE_IN="$srcdir/davlib/Makefile.in"
                   1024:     fi
                   1025: 
1.1       cvs      1026: fi
                   1027: 
                   1028: AC_SUBST(EXTRA_MAKEFILE_IN)
1.6       cvs      1029: AC_OUTPUT($make_output , [
                   1030: dnl
                   1031: dnl This fragment of shell code is executed after the
                   1032: dnl Makefile(s) dump ...
                   1033: dnl
                   1034: 
                   1035: echo timestamp > stamp-h
                   1036: 
                   1037: dnl
                   1038: dnl Check for an upgrade in the Options numbers
                   1039: dnl
                   1040: 
                   1041: if test -f Options ; then
                   1042:    oldversion=`grep Version Options`
                   1043:    newversion=`grep Version Options.orig`
                   1044:    if test "$oldversion" != "$newversion" ; then
                   1045:        echo WARNING : Options files have changed, old options saved to Options.old
                   1046:        cp Options Options.old
                   1047:        cp Options.orig Options
                   1048:        exit 1
                   1049:    fi
                   1050: fi
                   1051: ])
1.1       cvs      1052: 
                   1053: if test "$build_amaya" = "yes" ; then
1.50      cvs      1054:     echo Amaya configured with libWWW
                   1055:     if test "$with_plugin" = "yes" ; then
                   1056:         echo Amaya configured with Plugins support
1.8       cvs      1057:     fi
1.10      cvs      1058:     if test "$with_math" = "yes" ; then
                   1059:        echo Amaya configured with Math support
1.26      cvs      1060:     fi
1.68      vatton   1061:     if test "$with_svg" = "yes" ; then
                   1062:        echo Amaya configured with SVG support
1.47      cvs      1063:     fi
                   1064:     if test "$with_annot" = "yes" ; then
                   1065:        echo Amaya configured with Annotations support
1.70      kahan    1066:     fi
1.93      kahan    1067:     if test "$with_raptor" = "yes" ; then
                   1068:        echo Amaya configured to use the raptor RDF parser
                   1069:     fi
1.70      kahan    1070:     if test "$with_generic_xml" = "yes" ; then
                   1071:        echo Amaya configured with generic XML suppport
                   1072:     fi
                   1073:     if test "$with_i18n" = "yes" ; then
1.82      vatton   1074:        echo Amaya configured with internationalization suppport
1.75      cheyroul 1075:     fi 
                   1076:     if test "$with_gl" = "yes" ; then
                   1077:        echo Amaya configured with Opengl Canvas Rendering \(experimental\)
1.88      kirschpi 1078:     fi
                   1079:     if test "$with_dav" = "yes" ; then
                   1080:        echo Amaya configured with WebDAV support \(experimental\)
1.1       cvs      1081:     fi
1.5       cvs      1082: fi
                   1083: 
                   1084: if test "$no_motif" = yes ; then
1.67      vatton   1085:     echo "Amaya configured with GTK"
1.76      vatton   1086:     echo "Amaya configured without static graphic libraries (libjpeg, libpng)"
1.67      vatton   1087: else
1.76      vatton   1088: if test "$no_motif" = yes ; then
                   1089:     echo "Amaya configured without static graphic libraries (libjpeg, libpng)"
                   1090: fi
1.67      vatton   1091: if test "$no_motif" = yes ; then
1.5       cvs      1092:     echo "Motif seems not installed on this machine"
1.61      cvs      1093:     echo "Amaya need Motif 1.2 or 2.0"
1.5       cvs      1094: else
                   1095: if test "$motif_includes" = "" ; then
                   1096:     echo "Motif includes were not found"
1.61      cvs      1097:     echo "Amaya might not compile"
1.5       cvs      1098:     echo "Edit your Option file"
                   1099: else
                   1100: if test "$motif_libraries" = "" ; then
                   1101:     echo "Motif libraries were not found"
1.61      cvs      1102:     echo "Amaya might not compile"
1.5       cvs      1103:     echo "Edit your Option file"
1.67      vatton   1104: fi
1.5       cvs      1105: fi
                   1106: fi
1.1       cvs      1107: fi
                   1108: 
1.78      vatton   1109: echo "Now type \"make\" (GNU make preferably) to build the binaries"
1.48      cvs      1110: 
                   1111: 
                   1112: 
1.5       cvs      1113: 

Webmaster