[BACK]Return to configure.in CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot

Annotation of OpenXM_contrib/gnuplot/configure.in, Revision 1.1.1.3

1.1       maekawa     1: dnl Process this file with autoconf to produce a configure script.
                      2: dnl configure.in for gnuplot 3.7 on Unix.
                      3: dnl
1.1.1.3 ! ohara       4: dnl $Id: configure.in,v 1.41.2.18 2002/10/15 19:33:49 lhecking Exp $
1.1       maekawa     5: dnl
                      6: AC_INIT(graphics.c)
1.1.1.3 ! ohara       7: AM_CONFIG_HEADER(config.h:config.hin)
1.1.1.2   maekawa     8: AC_PREREQ(2.13)
1.1.1.3 ! ohara       9:
1.1       maekawa    10: VERSION=`sed -n 's/.*version.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '`
1.1.1.2   maekawa    11: PL=`sed -n 's/.*patchlevel.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '`
                     12: AM_INIT_AUTOMAKE(gnuplot, $VERSION.$PL)
1.1       maekawa    13:
                     14: dnl Compiler characteristics
                     15: dnl Check for ANSI C prototypes, the const and inline keywords,
                     16: dnl and ANSI style stringification
                     17: AC_PROG_CC
                     18: AM_C_PROTOTYPES
                     19: AC_PROG_CPP
                     20: AC_C_CONST
                     21: AC_C_INLINE
                     22: AC_C_STRINGIZE
                     23:
                     24: AC_MSG_CHECKING(if compiler handles warn and error directives correctly)
                     25: AC_TRY_CPP([#if 0
                     26: #error "error"
                     27: #warning "warning"
                     28: #endif],
                     29:   ERRORFIX=
                     30:   AC_MSG_RESULT(yes),dnl
                     31:   ERRORFIX=errorfix
                     32:   AC_MSG_RESULT(no))
                     33: AC_SUBST(ERRORFIX)
                     34:
                     35: dnl X Window System files.
1.1.1.3 ! ohara      36: AC_SUBST(LIBRARIES_FOR_X)
1.1       maekawa    37: AC_SUBST(GNUPLOT_X11)
                     38: AC_PATH_XTRA
1.1.1.2   maekawa    39:
                     40: dnl Needed for LynxOS until AC_PATH_XTRA is fixed
1.1.1.3 ! ohara      41: if test "$ac_cv_func_gethostbyname" = no; then
        !            42:   if test "$ac_cv_lib_nsl_gethostbyname" = no; then
        !            43:     AC_CHECK_LIB(bsd, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd")
        !            44:   fi
1.1.1.2   maekawa    45: fi
                     46:
1.1       maekawa    47: if test "$no_x" != yes; then
                     48:   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
1.1.1.3 ! ohara      49:   LIBRARIES_FOR_X="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
1.1       maekawa    50:   GNUPLOT_X11=gnuplot_x11
1.1.1.2   maekawa    51:   AC_DEFINE(X11, 1,
                     52:             [ Define if you are using the X11 window system. ])
1.1       maekawa    53: fi
                     54:
                     55:
                     56: dnl Operating systems.
                     57: dnl FIXME AC_DEFINE(ISC22)
                     58: dnl FIXME AC_DEFINE(KSR)
1.1.1.3 ! ohara      59: dnl Check for MSDOS and djgpp, NeXT, Apple MacOsX (NeXT like), BeOS
1.1.1.2   maekawa    60: GP_MSDOS
                     61: GP_NEXT
1.1.1.3 ! ohara      62: GP_APPLE
        !            63: GP_BEOS
1.1       maekawa    64:
1.1.1.2   maekawa    65: dnl Apparently, -lNeXT_s is needed on NeXT
                     66: dnl _instead_ of -lm ...
                     67: AC_CHECK_FUNC(sin)
                     68: if test "$ac_cv_func_sin" = no ; then
                     69:   AC_CHECK_LIB(m,sin)
                     70: fi
1.1       maekawa    71: dnl this has to be after -lsys_s on NeXT
1.1.1.2   maekawa    72: dnlLIBS="$LIBS -lm"
1.1       maekawa    73:
                     74:
                     75: dnl Header files. ANSI first
                     76: dnl We prefer that the absense of a macro is the norm, so in syscfg.h
                     77: dnl configure's HAVE_XXXX defines are translated into NO_XXXX for ANSI
                     78: dnl headers and functions
                     79: AC_HEADER_STDC
                     80:
1.1.1.3 ! ohara      81: dnl Header files
        !            82: dnl ANSI/ISO C, POSIX, others
1.1       maekawa    83: AC_CHECK_HEADERS(errno.h float.h limits.h locale.h math.h stdlib.h string.h \
1.1.1.3 ! ohara      84:   time.h sys/time.h sys/timeb.h sys/types.h \
        !            85:   sys/bsdtypes.h sys/select.h sys/socket.h sys/stat.h \
        !            86:   sys/systeminfo.h sys/utsname.h libc.h malloc.h sgtty.h termios.h values.h
        !            87: )
        !            88:
1.1       maekawa    89: test "$ac_cv_header_sys_stat_h" = yes && AC_HEADER_STAT
                     90:
                     91: dnl check if unistd actually declares anything. On NeXT 3.2 unistd is
                     92: dnl conditionalized for _POSIX_SOURCE
                     93: AC_MSG_CHECKING(for unistd.h)
                     94: AC_EGREP_HEADER(execv, unistd.h, AC_DEFINE(HAVE_UNISTD_H) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
                     95:
                     96: dnl check if errno.h header declares errno
                     97: AC_MSG_CHECKING(if errno variable is declared)
                     98: AC_TRY_COMPILE(
                     99: [#include <stdio.h>
                    100: #ifdef HAVE_ERRNO_H
                    101: #include <errno.h>
                    102: #endif],
1.1.1.3 ! ohara     103:   errno=0,AC_MSG_RESULT(yes),
1.1.1.2   maekawa   104:   AC_DEFINE(EXTERN_ERRNO, 1,
                    105:             [ Define if <errno.h> declares errno. ])
                    106:   AC_MSG_RESULT(no)
                    107: )dnl
1.1       maekawa   108:
                    109:
                    110: dnl Types.
                    111: AC_TYPE_SIZE_T
                    112: AC_MSG_CHECKING(for time_t in time.h)
1.1.1.3 ! ohara     113: AC_EGREP_HEADER(time_t,time.h,
        !           114:   [AC_MSG_RESULT(yes)
        !           115:    AC_DEFINE(HAVE_TIME_T_IN_TIME_H, 1,
        !           116:              [ Define if time_t is declared in time.h. ])])
1.1       maekawa   117: AC_TYPE_SIGNAL
                    118:
                    119:
                    120: dnl Functions. Standard first, then others
                    121:
1.1.1.3 ! ohara     122: dnl ANSI/ISO and their predecessors
1.1       maekawa   123: dnl sunos 4 has on_exit() in place of atexit()
                    124: dnl gamma is called lgamma on apollos and linux
                    125: dnl we prefer lgamma over gamma, see specfun.c
                    126: dnl math lib is already available, see operating systems part
1.1.1.3 ! ohara     127: AC_CHECK_FUNCS(atexit memcpy memmove memset \
        !           128:   on_exit bcopy bzero \
        !           129:   setvbuf strerror strchr strrchr strstr \
        !           130:   index rindex \
        !           131:   erf erfc gamma lgamma \
        !           132:   getcwd poll pclose popen select sleep snprintf stpcpy \
        !           133:   strcspn strdup strcasecmp stricmp strncasecmp strnicmp \
        !           134:   sysinfo tcgetattr vfprintf doprnt
        !           135: )
        !           136:
        !           137: dnl check, if we have sigsetjmp and siglongjmp.
        !           138: dnl a trivial AC_CHECK_FUNCS(sigsetjmp) won't do
        !           139: dnl because sigsetjmp() might be a macro declared
        !           140: dnl in <setjmp.h>. (joze)
        !           141: AC_MSG_CHECKING(for sigsetjmp)
        !           142: AC_TRY_LINK([#include <setjmp.h>], [jmp_buf env; sigsetjmp(env, 1);],
        !           143:   [AC_MSG_RESULT(yes)
        !           144:    AC_DEFINE(HAVE_SIGSETJMP, 1,
        !           145:              [ Define if we have sigsetjmp(). ])],
        !           146:   AC_MSG_RESULT(no)
        !           147: )
        !           148:
1.1       maekawa   149: if test "$ac_cv_func_pclose" = yes && test "$ac_cv_func_popen" = yes ; then
1.1.1.2   maekawa   150:   AC_DEFINE(PIPES, 1,
                    151:             [ Define if you do have the popen and pclose functions. ])
1.1       maekawa   152: fi
                    153:
1.1.1.2   maekawa   154: dnl Argument types of select()
                    155: AC_FUNC_SELECT
1.1       maekawa   156:
                    157: dnl On SVR3.
                    158: dnl FIXME AC_DEFINE(CRIPPLED_SELECT)
                    159:
1.1.1.3 ! ohara     160: dnl Install the lasergnu printer script (default no)
        !           161: LASERGNU=lasergnu_noinstall
        !           162: AC_ARG_WITH(lasergnu,dnl
        !           163: [  --with-lasergnu         install lasergnu printer script],
        !           164:   test "$withval" = yes && LASERGNU=lasergnu_install)
        !           165:
        !           166: dnl The Linux console driver
        !           167: AC_ARG_WITH(linux-vga,dnl
        !           168: [  --with-linux-vga        use the Linux SVGA console driver
        !           169:                           (requires /usr/lib/libvga)],,
        !           170:   test -z "$with_linux_vga" && with_linux_vga=no)
        !           171:
1.1       maekawa   172: dnl check for installed linux vgalib
                    173: if test "$with_linux_vga" = yes; then
                    174:   AC_MSG_CHECKING(for linux vga library)
                    175:   AC_CHECK_LIB(vga, vga_init,
1.1.1.2   maekawa   176:     [AC_DEFINE(LINUXVGA, 1,
                    177:                [ Define if this is a Linux system with SuperVGA library. ])
1.1       maekawa   178:      LINUXSUID='chown root $(bindir)/gnuplot; chmod u+s $(bindir)/gnuplot'
1.1.1.3 ! ohara     179:      TERMLIBS="-lvga $TERMLIBS"],
1.1       maekawa   180:     with_linux_vga=no)
                    181: fi
                    182:
1.1.1.3 ! ohara     183: dnl Use builtin readline or GNU readline
        !           184: AC_ARG_WITH(readline,dnl
        !           185: [  --with-readline         use the builtin minimal readline function (default)
        !           186:   --without-readline      do not use the builtin readline function
        !           187:   --with-readline=gnu     use the GNU readline library
        !           188:   --with-readline=PATH    Specify the location of GNU readline],,
        !           189:   test -z "$with_readline" && with_readline=yes)
        !           190:
1.1       maekawa   191: dnl GNU readline and the required terminal library
1.1.1.2   maekawa   192: if test "$with_readline" != no; then
                    193:   if test "$with_readline" != yes; then
                    194:     dnl check for terminal library
                    195:     dnl this is a very cool solution from octave's configure.in
                    196:     gp_tcap=""
                    197:     for termlib in ncurses curses termcap terminfo termlib; do
                    198:       AC_CHECK_LIB(${termlib}, tputs, [gp_tcap="$gp_tcap -l$termlib"])
                    199:       case "$gp_tcap" in
                    200:         *-l${termlib}*)
                    201:           break
                    202:         ;;
                    203:       esac
                    204:     done
                    205:
                    206:     if test "$with_readline" = gnu; then
1.1.1.3 ! ohara     207:       AC_CHECK_LIB(readline, readline,
        !           208:        TERMLIBS="-lreadline $gp_tcap $TERMLIBS",, ${gp_tcap})
1.1       maekawa   209:     else
1.1.1.3 ! ohara     210:       if test -d $with_readline/include; then
        !           211:         CPPFLAGS="$CPPFLAGS -I$with_readline/include"
1.1.1.2   maekawa   212:       fi
1.1.1.3 ! ohara     213:       if test -d $with_readline/lib; then
        !           214:         LDFLAGS="$LDFLAGS -L$with_readline/lib"
        !           215:       fi
        !           216:
        !           217:       AC_CHECK_LIB(readline,readline,
        !           218:         TERMLIBS="-lreadline $gp_tcap $TERMLIBS",,[${gp_tcap}])
        !           219:
1.1       maekawa   220:     fi
                    221:
1.1.1.2   maekawa   222:     if test "$ac_cv_lib_readline_readline" = no; then
                    223:       AC_MSG_WARN([GNU readline not found - falling back to builtin readline])
                    224:       with_readline=yes
                    225:     else
                    226:       AC_DEFINE(HAVE_LIBREADLINE, 1,
                    227:                 [ Define if you are using the GNU readline library. ])
                    228:     fi # ! ac_cv_lib_readline_readline = no
                    229:
1.1.1.3 ! ohara     230:   fi # with_readline" != yes
1.1.1.2   maekawa   231:
                    232:   if test "$with_readline" = yes; then
                    233:     AC_DEFINE(READLINE, 1,
                    234:               [ Define if you want to use the included readline function. ])
1.1       maekawa   235:   fi
                    236:
1.1.1.2   maekawa   237: fi
1.1       maekawa   238: dnl end readline
                    239:
1.1.1.3 ! ohara     240: dnl The gif terminal with Tom Boutell's gd library
        !           241: AC_ARG_WITH(gd,dnl
        !           242: [  --with-gd[=PATH]        enable gif terminal with Tom Boutell's gd library
        !           243:                           (requires GD library)],
        !           244:   [if test "$withval" != no; then
        !           245:      if test -d $withval/include; then
        !           246:        CPPFLAGS="$CPPFLAGS -I$withval/include"
        !           247:      fi
        !           248:      if test -d $withval/lib; then
        !           249:        LDFLAGS="$LDFLAGS -L$withval/lib"
        !           250:      fi
        !           251:      AC_CHECK_LIB(gd,gdImageGif,
        !           252:        [TERMLIBS="-lgd $TERMLIBS"
        !           253:         AC_CHECK_HEADERS(gd.h,
        !           254:         AC_DEFINE(HAVE_LIBGD, 1, [ Define if you have Thomas Boutell's gd library. ]),
        !           255:         AC_MSG_WARN([found gd library but not gd.h
        !           256: please add path to gd.h to CPPFLAGS in Makefile])
        !           257:         )],
        !           258:         AC_MSG_RESULT([  GD library not found or cannot create gif images.
        !           259:   See term/gif.trm for download details]))
        !           260:    fi])
        !           261: dnl end gd library
1.1.1.2   maekawa   262:
1.1.1.3 ! ohara     263: dnl If no PATH argument given, use the Unix plot library
        !           264: dnl Else use either GNU libplot from plotutils,
        !           265: dnl or ancient GNU graphics libplot
        !           266: AC_ARG_WITH(plot,dnl
        !           267: [  --with-plot[=PATH]      use the Unix plot library],
        !           268:   [if test "$withval" = yes; then
        !           269:      dnl Unix plot library
        !           270:      AC_CHECK_LIB(plot,openpl,
        !           271:        [AC_DEFINE(UNIXPLOT, 1,
        !           272:                   [ Define if you want to use the standard Unix plot library. ])
        !           273:         TERMLIBS="-lplot $TERMLIBS"],
        !           274:        with_plot=no)
        !           275:    elif test "$withval" != no; then
        !           276:      dnl GNU plotutils 2.2 or better
        !           277:      if test -d $withval/include; then
        !           278:        CPPFLAGS="$CPPFLAGS -I$withval/include"
        !           279:      fi
        !           280:      if test -d $withval/lib; then
        !           281:        LDFLAGS="$LDFLAGS -L$withval/lib"
        !           282:      fi
        !           283:      TERMXLIBS="$X_LIBS -lXaw -lXmu -lXt -lXext -lX11"
        !           284:      AC_CHECK_LIB(plot,pl_textangle,
        !           285:        [TERMLIBS="-lplot $TERMLIBS"
        !           286:         AC_DEFINE(GNUGRAPH, 1,
        !           287:                   [ Define if you want to use the GNU version of the Unix plot library. ])],
        !           288:        [AC_MSG_WARN([GNU plotutils v2.2 or newer required -- disabling gnugraph terminal])
        !           289:         TERMXLIBS=
        !           290:         with_plot=no],
        !           291:        [$TERMXLIBS])
        !           292:    fi])
1.1.1.2   maekawa   293: dnl end libplot
1.1       maekawa   294:
1.1.1.3 ! ohara     295: dnl The Portable Network Graphics (png) terminal
        !           296: AC_ARG_WITH(png,dnl
        !           297: [  --with-png[=PATH]       enable png terminal
        !           298:                           (requires libpng and libz)],
        !           299:   [if test "$withval" != no; then
        !           300:      if test -d $withval/include; then
        !           301:        CPPFLAGS="$CPPFLAGS -I$withval/include"
        !           302:      fi
        !           303:      if test -d $withval/lib; then
        !           304:        LDFLAGS="$LDFLAGS -L$withval/lib"
        !           305:      fi
        !           306:      with_png=yes
        !           307:    fi],with_png=yes)
        !           308:
        !           309: if test "$with_png" = yes; then
        !           310:   AC_CHECK_LIB(png,png_init_io,
        !           311:     [TERMLIBS="-lpng -lz $TERMLIBS"
        !           312:      AC_CHECK_HEADERS(png.h,
        !           313:      [AC_CHECK_HEADERS(zlib.h,,
        !           314:       AC_MSG_WARN([found z library but not zlib.h
        !           315: please add path to zlib.h to CPPFLAGS in Makefile]))
1.1       maekawa   316:       AC_EGREP_CPP([You lose], [#include "png.h"
                    317: #if PNG_LIBPNG_VER < 89
                    318: You lose.
                    319: #endif
1.1.1.3 ! ohara     320: ],
        !           321:         AC_MSG_WARN([- libpng too old - not including png driver])
        !           322:         ac_cv_header_png_h=no)],
        !           323:      AC_MSG_WARN([found png library but not png.h
        !           324: please add path to png.h to CPPFLAGS in Makefile]))],
        !           325:     AC_MSG_RESULT([  PNG library not found.
        !           326:   See term/png.trm for download details]),
        !           327:     [-lz])
1.1.1.2   maekawa   328:
1.1.1.3 ! ohara     329:   if test "$ac_cv_header_png_h" = yes; then
1.1.1.2   maekawa   330:     AC_DEFINE(HAVE_LIBPNG, 1,
                    331:               [ Define if you have the png library. ])
                    332:   fi
1.1.1.3 ! ohara     333: fi
        !           334: dnl end png and z
1.1.1.2   maekawa   335:
1.1.1.3 ! ohara     336: dnl The Portable Document Format (PDF) terminal
        !           337: AC_ARG_WITH(pdf,dnl
        !           338: [  --with-pdf[=PATH]       enable pdf terminal
        !           339:                           (requires PDFLib)],
        !           340:   [if test "$withval" != no; then
        !           341:      if test -d $withval/include; then
        !           342:        CPPFLAGS="$CPPFLAGS -I$withval/include"
        !           343:      fi
        !           344:      if test -d $withval/lib; then
        !           345:        LDFLAGS="$LDFLAGS -L$withval/lib"
        !           346:      fi
        !           347:      with_pdf=yes
        !           348:    fi],with_pdf=no)
        !           349:
        !           350: if test "$with_pdf" = yes; then
        !           351:   AC_CHECK_LIB(pdf,PDF_get_majorversion,
        !           352:     [TERMLIBS="-lpdf $TERMLIBS"
        !           353:      AC_DEFINE(HAVE_LIBPDF,1,
        !           354:                [ Define if you have the pdf library. ])
        !           355:      AC_CHECK_HEADERS(pdflib.h,,
        !           356:        AC_MSG_WARN([found pdf library but not pdflib.h
        !           357: please add path to pdflib.h to CPPFLAGS in Makefile]))
        !           358:      AC_CHECK_HEADERS(zlib.h,,
        !           359:        AC_MSG_WARN([found z library but not zlib.h
        !           360: please add path to zlib.h to CPPFLAGS in Makefile]))],
        !           361:     AC_MSG_RESULT([  PDF library not found.
        !           362:   See term/pdf.trm for download details]))
        !           363:
        !           364:   if test "$ac_cv_header_pdflib_h" = yes; then
        !           365:     AC_DEFINE(HAVE_LIBPDF, 1,
        !           366:               [ Define if you have the pdf library. ])
1.1       maekawa   367:   fi
                    368: fi
1.1.1.3 ! ohara     369: dnl end pdf
1.1       maekawa   370:
                    371: dnl How do we detect the Ultrix X libraries?
                    372: dnl Or is it really a server (run-time) problem?
                    373: dnl FIXME AC_DEFINE(ULTRIX_KLUDGE)
                    374:
1.1.1.2   maekawa   375: dnl Removed enable options for these
                    376: dnl Just autodetect
1.1       maekawa   377:
1.1.1.2   maekawa   378: dnl SCO cgi
                    379: AC_EGREP_CPP(yes,
                    380: [#ifdef SCO
                    381: yes
                    382: #endif
1.1.1.3 ! ohara     383: ],AC_CHECK_LIB(ccgi, v_opnwk,
1.1.1.2   maekawa   384:     AC_DEFINE(CGI, 1,
1.1.1.3 ! ohara     385:               [ Define if you want to use the CGI terminal under SCO. ])
        !           386:               TERMLIBS="-lccgi $TERMLIBS"))
1.1.1.2   maekawa   387:
                    388: dnl Sun sunview
                    389: AC_EGREP_CPP(yes,
                    390: [#ifdef sun
                    391: yes
                    392: #endif
1.1.1.3 ! ohara     393: ], AC_CHECK_LIB(suntool, window_create,
        !           394:     AC_CHECK_HEADER(suntool/sunview.h,
1.1.1.2   maekawa   395:     AC_DEFINE(SUN, 1,
1.1.1.3 ! ohara     396:               [ Define if you want to use the sunview terminal (sun). ])
        !           397:     TERMLIBS="-lsuntool -lsunwindow -lpixrect $TERMLIBS"),,
1.1.1.2   maekawa   398:     [-lsunwindow -lpixrect]))
                    399:
1.1.1.3 ! ohara     400: dnl Process enable options
1.1.1.2   maekawa   401:
1.1.1.3 ! ohara     402: dnl Use .gnuplot file in current directory
        !           403: AC_ARG_WITH(cwdrc,dnl
        !           404: [  --with-cwdrc            check current directory for .gnuplot file,
        !           405:                           normally disabled for security reasons],,
        !           406:   [if test "$withval" = yes; then
        !           407:      AC_DEFINE(NOCWDRC, 1,
1.1.1.2   maekawa   408:             [ Define if you do not want to read .gnuplot in the current directory. ])
1.1.1.3 ! ohara     409:    fi])
1.1       maekawa   410:
1.1.1.3 ! ohara     411: dnl ggi driver
        !           412: AC_ARG_ENABLE(ggi,dnl
        !           413: [  --enable-ggi            enable ggi driver (EXPERIMENTAL)],
        !           414:   [AC_CHECK_LIB(ggi,ggiInit,
        !           415:     AC_CHECK_LIB(ggiwmh,ggiWmhInit,
        !           416:       AC_DEFINE(HAVE_GGI, 1,
        !           417:                 [ Define if you have the required ggi libraries. ]),
        !           418:       enable_ggi=no),
        !           419:     enable_ggi=no)
        !           420:   ]
        !           421: )dnl
        !           422:
        !           423: dnl IRIS terminal on IRIS4D series computer
        !           424: AC_ARG_ENABLE(iris,dnl
        !           425: [  --enable-iris           enable IRIS terminal (IRIS4D only)],
        !           426:   [if test "$enableval" = yes; then
        !           427:      AC_CHECK_LIB(gl_s,winopen,
        !           428:        AC_DEFINE(IRIS, 1,
1.1.1.2   maekawa   429:              [ Define if you want to use the IRIS terminal on IRIS4D series computers. ])
1.1.1.3 ! ohara     430:        TERMLIBS="-lgl_s $TERMLIBS",enable_iris=no)
        !           431:    fi])
1.1       maekawa   432:
1.1.1.3 ! ohara     433: dnl MGR Window system
        !           434: AC_ARG_ENABLE(mgr,dnl
        !           435: [  --enable-mgr            enable MGR terminal],
        !           436:   [if test "$enableval" = yes; then
        !           437:      AC_CHECK_LIB(mgr,m_getinfo,
        !           438:        AC_DEFINE(MGR, 1, [ Define if you want to use the MGR Window system. ])
        !           439:        TERMLIBS="-lmgr -lpixrect $TERMLIBS",enable_mgr=no,[-lpixrect])
        !           440:    fi])
1.1       maekawa   441:
1.1.1.3 ! ohara     442: dnl Redwood Graphics Interface Protocol
        !           443: AC_ARG_ENABLE(rgip,dnl
        !           444: [  --enable-rgip           enable Redwood Graphics Interface Protocol],
        !           445:   [if test "$enableval" = yes; then
        !           446:      AC_DEFINE(RGIP, 1,
        !           447:                [ Define if you want to use the Redwood Graphics Interface Protocol. ])
        !           448:    fi])
1.1       maekawa   449:
                    450: dnl Substitute variables
                    451: AC_SUBST(PACKAGE)
                    452: AC_SUBST(VERSION)
                    453: AC_SUBST(LASERGNU)
                    454: AC_SUBST(LINUXSUID)
                    455: AC_SUBST(TERMLIBS)
                    456: AC_SUBST(TERMXLIBS)
                    457:
                    458:
                    459: dnl Report configuration
                    460: eval gp_datadir=$datadir
                    461: test $gp_datadir = NONE/share && gp_datadir=/usr/local/share
                    462: AC_MSG_RESULT([
                    463: ** Configuration summary for $PACKAGE $VERSION:
                    464:
                    465:   Where is the help file?           $gp_datadir/gnuplot.gih
                    466: ])
1.1.1.3 ! ohara     467: if test "$ac_cv_header_gd_h" = yes; then
1.1.1.2   maekawa   468:   AC_MSG_RESULT([  Enable generation of GIF files])
1.1.1.3 ! ohara     469: fi
1.1       maekawa   470:
1.1.1.3 ! ohara     471: if test "$ac_cv_header_pdflib_h" = yes; then
        !           472:   AC_MSG_RESULT([  Enable generation of PDF files])
        !           473: fi
        !           474:
        !           475: if test "$ac_cv_header_png_h" = yes; then
1.1.1.2   maekawa   476:   AC_MSG_RESULT([  Enable generation of PNG files])
1.1.1.3 ! ohara     477: fi
1.1       maekawa   478:
1.1.1.3 ! ohara     479: if test "$with_cwdrc" = yes; then
1.1.1.2   maekawa   480:   AC_MSG_RESULT([  Check current directory for .gnuplot file])
1.1.1.3 ! ohara     481: fi
1.1       maekawa   482:
1.1.1.2   maekawa   483: if test "$with_readline" != no; then
                    484:   if test "$with_readline" != yes; then
                    485:     AC_MSG_RESULT([  Use GNU readline library])
                    486:       test -n "$gp_tcap" && AC_MSG_RESULT([    with ${gp_tcap}])
                    487:   else
                    488:     AC_MSG_RESULT([  Use builtin minimal readline])
                    489:   fi
1.1       maekawa   490: fi
                    491:
1.1.1.3 ! ohara     492: if test x"$with_plot" != x; then
        !           493:   if test "$with_plot" = yes; then
        !           494:     AC_MSG_RESULT([  Use the Unix plot library])
1.1.1.2   maekawa   495:   else
1.1.1.3 ! ohara     496:     AC_MSG_RESULT([  Use the GNU plot library v2.2 or better])
1.1.1.2   maekawa   497:   fi
1.1       maekawa   498: fi
                    499:
1.1.1.3 ! ohara     500: if test "$with_lasergnu" = yes; then
1.1.1.2   maekawa   501:   AC_MSG_RESULT([  Install lasergnu printer script])
1.1.1.3 ! ohara     502: fi
1.1       maekawa   503:
1.1.1.2   maekawa   504: if test "$with_linux_vga" = yes; then
                    505:   AC_MSG_RESULT([  Use the Linux SVGA console driver])
                    506:   AC_MSG_RESULT([    SECURITY NOTICE: SVGAlib requires that])
                    507:   AC_MSG_RESULT([    gnuplot is installed suid root!])
                    508: fi
1.1       maekawa   509:
1.1.1.3 ! ohara     510: if test "$enable_ggi" = yes; then
        !           511:   AC_MSG_RESULT([  Enable ggi terminal (EXPERIMENTAL)])
        !           512: fi
        !           513:
        !           514: if test "$enable_iris" = yes; then
1.1.1.2   maekawa   515:   AC_MSG_RESULT([  Enable IRIS terminal])
1.1.1.3 ! ohara     516: fi
1.1       maekawa   517:
1.1.1.3 ! ohara     518: if test "$enable_mgr" = yes; then
1.1.1.2   maekawa   519:   AC_MSG_RESULT([  Enable MGR terminal])
1.1.1.3 ! ohara     520: fi
1.1       maekawa   521:
1.1.1.3 ! ohara     522: if test "$enable_rgip" = yes; then
1.1.1.2   maekawa   523:   AC_MSG_RESULT([  Enable RGIP terminal])
1.1.1.3 ! ohara     524: fi
1.1       maekawa   525:
1.1.1.3 ! ohara     526: if test "$no_x" != yes; then
1.1.1.2   maekawa   527:   AC_MSG_RESULT([  Use the X Window System
1.1       maekawa   528: ])
1.1.1.3 ! ohara     529: fi
1.1       maekawa   530: dnl end config report
                    531:
                    532: dnl Write Makefiles and configuration header
                    533: AC_OUTPUT([Makefile docs/Makefile docs/latextut/Makefile], \
1.1.1.2   maekawa   534: [test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h])
1.1       maekawa   535:
                    536: dnl end configure.in

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>