/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Diff of /cvsgraph/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.15, Sat Dec 4 02:18:13 2004 UTC revision 1.15.4.1, Mon Nov 13 20:42:23 2006 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated by GNU Autoconf 2.59.  # Generated by GNU Autoconf 2.59 for cvsgraph 1.7.0.
4    #
5    # Report bugs to <cvsgraph@akhphd.au.dk>.
6  #  #
7  # Copyright (C) 2003 Free Software Foundation, Inc.  # Copyright (C) 2003 Free Software Foundation, Inc.
8  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
# Line 265  Line 267 
267  : ${ac_max_here_lines=38}  : ${ac_max_here_lines=38}
268    
269  # Identity of this package.  # Identity of this package.
270  PACKAGE_NAME=  PACKAGE_NAME='cvsgraph'
271  PACKAGE_TARNAME=  PACKAGE_TARNAME='cvsgraph'
272  PACKAGE_VERSION=  PACKAGE_VERSION='1.7.0'
273  PACKAGE_STRING=  PACKAGE_STRING='cvsgraph 1.7.0'
274  PACKAGE_BUGREPORT=  PACKAGE_BUGREPORT='cvsgraph@akhphd.au.dk'
275    
276  ac_unique_file="cvsgraph.c"  ac_unique_file="README"
277  # Factoring default headers for most tests.  # Factoring default headers for most tests.
278  ac_includes_default="\  ac_includes_default="\
279  #include <stdio.h>  #include <stdio.h>
# Line 309  Line 311 
311  # include <unistd.h>  # include <unistd.h>
312  #endif"  #endif"
313    
314  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LEX LEXLIB LEX_OUTPUT_ROOT YACC CPP EGREP LEXFLAGS INTTYPE LIBOBJS LTLIBOBJS'  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LEX LEXLIB LEX_OUTPUT_ROOT YACC ac_prog_pkg_config GDLIB_CONFIG GD_CFLAGS GD_LDFLAGS GD_LIBS CPP EGREP LIBOBJS LTLIBOBJS'
315  ac_subst_files=''  ac_subst_files=''
316    
317  # Initialize some variables set by options.  # Initialize some variables set by options.
# Line 778  Line 780 
780    # Omit some internal or obsolete options to make the list less imposing.    # Omit some internal or obsolete options to make the list less imposing.
781    # This message is too long to be a string in the A/UX 3.1 sh.    # This message is too long to be a string in the A/UX 3.1 sh.
782    cat <<_ACEOF    cat <<_ACEOF
783  \`configure' configures this package to adapt to many kinds of systems.  \`configure' configures cvsgraph 1.7.0 to adapt to many kinds of systems.
784    
785  Usage: $0 [OPTION]... [VAR=VALUE]...  Usage: $0 [OPTION]... [VAR=VALUE]...
786    
# Line 830  Line 832 
832  _ACEOF  _ACEOF
833    
834    cat <<\_ACEOF    cat <<\_ACEOF
835    
836    Program names:
837      --program-prefix=PREFIX            prepend PREFIX to installed program names
838      --program-suffix=SUFFIX            append SUFFIX to installed program names
839      --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840  _ACEOF  _ACEOF
841  fi  fi
842    
843  if test -n "$ac_init_help"; then  if test -n "$ac_init_help"; then
844      case $ac_init_help in
845         short | recursive ) echo "Configuration of cvsgraph 1.7.0:";;
846       esac
847    cat <<\_ACEOF    cat <<\_ACEOF
848    
849  Optional Features:  Optional Features:
850    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852    --disable-speed         Turn off lex table optimization reducing speed and size of executable    --disable-dependency-tracking  speeds up one-time build
853      --enable-dependency-tracking   do not reject slow dependency extractors
854    
855  Optional Packages:  Optional Packages:
856    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
857    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
858    --with-gd-inc=DIR       location of the gd includes    --with-gd(=DIR)         use the gd library (in DIR)
   --with-gd-lib=DIR       location of the gd library  
   --with-freetype-lib=DIR    location of freetype library  
   --with-freetype2-lib=DIR    location of freetype2 library  
   --with-png-inc=DIR      location of png includes  
   --with-png-lib=DIR      location of png library  
   --with-jpeg-inc=DIR    location of jpeg includes  
   --with-jpeg-lib=DIR    location of jpeg library  
   --with-z-inc=DIR        location of zlib includes  
   --with-z-lib=DIR        location of zlib library  
859    
860  Some influential environment variables:  Some influential environment variables:
861    CC          C compiler command    CC          C compiler command
# Line 868  Line 869 
869  Use these variables to override the choices made by `configure' or to help  Use these variables to override the choices made by `configure' or to help
870  it to find libraries and programs with nonstandard names/locations.  it to find libraries and programs with nonstandard names/locations.
871    
872    Report bugs to <cvsgraph@akhphd.au.dk>.
873  _ACEOF  _ACEOF
874  fi  fi
875    
# Line 963  Line 965 
965  test -n "$ac_init_help" && exit 0  test -n "$ac_init_help" && exit 0
966  if $ac_init_version; then  if $ac_init_version; then
967    cat <<\_ACEOF    cat <<\_ACEOF
968    cvsgraph configure 1.7.0
969    generated by GNU Autoconf 2.59
970    
971  Copyright (C) 2003 Free Software Foundation, Inc.  Copyright (C) 2003 Free Software Foundation, Inc.
972  This configure script is free software; the Free Software Foundation  This configure script is free software; the Free Software Foundation
# Line 975  Line 979 
979  This file contains any messages produced by compilers while  This file contains any messages produced by compilers while
980  running configure, to aid debugging if configure makes a mistake.  running configure, to aid debugging if configure makes a mistake.
981    
982  It was created by $as_me, which was  It was created by cvsgraph $as_me 1.7.0, which was
983  generated by GNU Autoconf 2.59.  Invocation command line was  generated by GNU Autoconf 2.59.  Invocation command line was
984    
985    $ $0 $@    $ $0 $@
# Line 1303  Line 1307 
1307    
1308    
1309    
1310    
1311    
1312    
1313    
1314    
1315    
1316    
1317    
1318    am__api_version="1.9"
1319    ac_aux_dir=
1320    for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321      if test -f $ac_dir/install-sh; then
1322        ac_aux_dir=$ac_dir
1323        ac_install_sh="$ac_aux_dir/install-sh -c"
1324        break
1325      elif test -f $ac_dir/install.sh; then
1326        ac_aux_dir=$ac_dir
1327        ac_install_sh="$ac_aux_dir/install.sh -c"
1328        break
1329      elif test -f $ac_dir/shtool; then
1330        ac_aux_dir=$ac_dir
1331        ac_install_sh="$ac_aux_dir/shtool install -c"
1332        break
1333      fi
1334    done
1335    if test -z "$ac_aux_dir"; then
1336      { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337    echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338       { (exit 1); exit 1; }; }
1339    fi
1340    ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343    
1344    # Find a good install program.  We prefer a C program (faster),
1345    # so one script is as good as another.  But avoid the broken or
1346    # incompatible versions:
1347    # SysV /etc/install, /usr/sbin/install
1348    # SunOS /usr/etc/install
1349    # IRIX /sbin/install
1350    # AIX /bin/install
1351    # AmigaOS /C/install, which installs bootblocks on floppy discs
1352    # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1353    # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1354    # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1355    # OS/2's system install, which has a completely different semantic
1356    # ./install, which can be erroneously created by make from ./install.sh.
1357    echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1358    echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1359    if test -z "$INSTALL"; then
1360    if test "${ac_cv_path_install+set}" = set; then
1361      echo $ECHO_N "(cached) $ECHO_C" >&6
1362    else
1363      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364    for as_dir in $PATH
1365    do
1366      IFS=$as_save_IFS
1367      test -z "$as_dir" && as_dir=.
1368      # Account for people who put trailing slashes in PATH elements.
1369    case $as_dir/ in
1370      ./ | .// | /cC/* | \
1371      /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1372      ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1373      /usr/ucb/* ) ;;
1374      *)
1375        # OSF1 and SCO ODT 3.0 have their own names for install.
1376        # Don't use installbsd from OSF since it installs stuff as root
1377        # by default.
1378        for ac_prog in ginstall scoinst install; do
1379          for ac_exec_ext in '' $ac_executable_extensions; do
1380            if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1381              if test $ac_prog = install &&
1382                grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383                # AIX install.  It has an incompatible calling convention.
1384                :
1385              elif test $ac_prog = install &&
1386                grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1387                # program-specific install script used by HP pwplus--don't use.
1388                :
1389              else
1390                ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1391                break 3
1392              fi
1393            fi
1394          done
1395        done
1396        ;;
1397    esac
1398    done
1399    
1400    
1401    fi
1402      if test "${ac_cv_path_install+set}" = set; then
1403        INSTALL=$ac_cv_path_install
1404      else
1405        # As a last resort, use the slow shell script.  We don't cache a
1406        # path for INSTALL within a source directory, because that will
1407        # break other packages using the cache if that directory is
1408        # removed, or if the path is relative.
1409        INSTALL=$ac_install_sh
1410      fi
1411    fi
1412    echo "$as_me:$LINENO: result: $INSTALL" >&5
1413    echo "${ECHO_T}$INSTALL" >&6
1414    
1415    # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416    # It thinks the first close brace ends the variable substitution.
1417    test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1418    
1419    test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1420    
1421    test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1422    
1423    echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1424    echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1425    # Just in case
1426    sleep 1
1427    echo timestamp > conftest.file
1428    # Do `set' in a subshell so we don't clobber the current shell's
1429    # arguments.  Must try -L first in case configure is actually a
1430    # symlink; some systems play weird games with the mod time of symlinks
1431    # (eg FreeBSD returns the mod time of the symlink's containing
1432    # directory).
1433    if (
1434       set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1435       if test "$*" = "X"; then
1436          # -L didn't work.
1437          set X `ls -t $srcdir/configure conftest.file`
1438       fi
1439       rm -f conftest.file
1440       if test "$*" != "X $srcdir/configure conftest.file" \
1441          && test "$*" != "X conftest.file $srcdir/configure"; then
1442    
1443          # If neither matched, then we have a broken ls.  This can happen
1444          # if, for instance, CONFIG_SHELL is bash and it inherits a
1445          # broken ls alias from the environment.  This has actually
1446          # happened.  Such a system could not be considered "sane".
1447          { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1448    alias in your environment" >&5
1449    echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1450    alias in your environment" >&2;}
1451       { (exit 1); exit 1; }; }
1452       fi
1453    
1454       test "$2" = conftest.file
1455       )
1456    then
1457       # Ok.
1458       :
1459    else
1460       { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1461    Check your system clock" >&5
1462    echo "$as_me: error: newly created file is older than distributed files!
1463    Check your system clock" >&2;}
1464       { (exit 1); exit 1; }; }
1465    fi
1466    echo "$as_me:$LINENO: result: yes" >&5
1467    echo "${ECHO_T}yes" >&6
1468    test "$program_prefix" != NONE &&
1469      program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470    # Use a double $ so make ignores it.
1471    test "$program_suffix" != NONE &&
1472      program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473    # Double any \ or $.  echo might interpret backslashes.
1474    # By default was `s,x,x', remove it if useless.
1475    cat <<\_ACEOF >conftest.sed
1476    s/[\\$]/&&/g;s/;s,x,x,$//
1477    _ACEOF
1478    program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1479    rm conftest.sed
1480    
1481    # expand $ac_aux_dir to an absolute path
1482    am_aux_dir=`cd $ac_aux_dir && pwd`
1483    
1484    test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1485    # Use eval to expand $SHELL
1486    if eval "$MISSING --run true"; then
1487      am_missing_run="$MISSING --run "
1488    else
1489      am_missing_run=
1490      { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1491    echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1492    fi
1493    
1494    if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1495      # We used to keeping the `.' as first argument, in order to
1496      # allow $(mkdir_p) to be used without argument.  As in
1497      #   $(mkdir_p) $(somedir)
1498      # where $(somedir) is conditionally defined.  However this is wrong
1499      # for two reasons:
1500      #  1. if the package is installed by a user who cannot write `.'
1501      #     make install will fail,
1502      #  2. the above comment should most certainly read
1503      #     $(mkdir_p) $(DESTDIR)$(somedir)
1504      #     so it does not work when $(somedir) is undefined and
1505      #     $(DESTDIR) is not.
1506      #  To support the latter case, we have to write
1507      #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1508      #  so the `.' trick is pointless.
1509      mkdir_p='mkdir -p --'
1510    else
1511      # On NextStep and OpenStep, the `mkdir' command does not
1512      # recognize any option.  It will interpret all options as
1513      # directories to create, and then abort because `.' already
1514      # exists.
1515      for d in ./-p ./--version;
1516      do
1517        test -d $d && rmdir $d
1518      done
1519      # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1520      if test -f "$ac_aux_dir/mkinstalldirs"; then
1521        mkdir_p='$(mkinstalldirs)'
1522      else
1523        mkdir_p='$(install_sh) -d'
1524      fi
1525    fi
1526    
1527    for ac_prog in gawk mawk nawk awk
1528    do
1529      # Extract the first word of "$ac_prog", so it can be a program name with args.
1530    set dummy $ac_prog; ac_word=$2
1531    echo "$as_me:$LINENO: checking for $ac_word" >&5
1532    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533    if test "${ac_cv_prog_AWK+set}" = set; then
1534      echo $ECHO_N "(cached) $ECHO_C" >&6
1535    else
1536      if test -n "$AWK"; then
1537      ac_cv_prog_AWK="$AWK" # Let the user override the test.
1538    else
1539    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540    for as_dir in $PATH
1541    do
1542      IFS=$as_save_IFS
1543      test -z "$as_dir" && as_dir=.
1544      for ac_exec_ext in '' $ac_executable_extensions; do
1545      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546        ac_cv_prog_AWK="$ac_prog"
1547        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548        break 2
1549      fi
1550    done
1551    done
1552    
1553    fi
1554    fi
1555    AWK=$ac_cv_prog_AWK
1556    if test -n "$AWK"; then
1557      echo "$as_me:$LINENO: result: $AWK" >&5
1558    echo "${ECHO_T}$AWK" >&6
1559    else
1560      echo "$as_me:$LINENO: result: no" >&5
1561    echo "${ECHO_T}no" >&6
1562    fi
1563    
1564      test -n "$AWK" && break
1565    done
1566    
1567    echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1568    echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1569    set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1570    if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1571      echo $ECHO_N "(cached) $ECHO_C" >&6
1572    else
1573      cat >conftest.make <<\_ACEOF
1574    all:
1575            @echo 'ac_maketemp="$(MAKE)"'
1576    _ACEOF
1577    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1578    eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1579    if test -n "$ac_maketemp"; then
1580      eval ac_cv_prog_make_${ac_make}_set=yes
1581    else
1582      eval ac_cv_prog_make_${ac_make}_set=no
1583    fi
1584    rm -f conftest.make
1585    fi
1586    if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1587      echo "$as_me:$LINENO: result: yes" >&5
1588    echo "${ECHO_T}yes" >&6
1589      SET_MAKE=
1590    else
1591      echo "$as_me:$LINENO: result: no" >&5
1592    echo "${ECHO_T}no" >&6
1593      SET_MAKE="MAKE=${MAKE-make}"
1594    fi
1595    
1596    rm -rf .tst 2>/dev/null
1597    mkdir .tst 2>/dev/null
1598    if test -d .tst; then
1599      am__leading_dot=.
1600    else
1601      am__leading_dot=_
1602    fi
1603    rmdir .tst 2>/dev/null
1604    
1605    # test to see if srcdir already configured
1606    if test "`cd $srcdir && pwd`" != "`pwd`" &&
1607       test -f $srcdir/config.status; then
1608      { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1609    echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1610       { (exit 1); exit 1; }; }
1611    fi
1612    
1613    # test whether we have cygpath
1614    if test -z "$CYGPATH_W"; then
1615      if (cygpath --version) >/dev/null 2>/dev/null; then
1616        CYGPATH_W='cygpath -w'
1617      else
1618        CYGPATH_W=echo
1619      fi
1620    fi
1621    
1622    
1623    # Define the identity of the package.
1624     PACKAGE='cvsgraph'
1625     VERSION='1.7.0'
1626    
1627    
1628    cat >>confdefs.h <<_ACEOF
1629    #define PACKAGE "$PACKAGE"
1630    _ACEOF
1631    
1632    
1633    cat >>confdefs.h <<_ACEOF
1634    #define VERSION "$VERSION"
1635    _ACEOF
1636    
1637    # Some tools Automake needs.
1638    
1639    ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1640    
1641    
1642    AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1643    
1644    
1645    AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1646    
1647    
1648    AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1649    
1650    
1651    MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1652    
1653    install_sh=${install_sh-"$am_aux_dir/install-sh"}
1654    
1655    # Installed binaries are usually stripped using `strip' when the user
1656    # run `make install-strip'.  However `strip' might not be the right
1657    # tool to use in cross-compilation environments, therefore Automake
1658    # will honor the `STRIP' environment variable to overrule this program.
1659    if test "$cross_compiling" != no; then
1660      if test -n "$ac_tool_prefix"; then
1661      # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1662    set dummy ${ac_tool_prefix}strip; ac_word=$2
1663    echo "$as_me:$LINENO: checking for $ac_word" >&5
1664    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665    if test "${ac_cv_prog_STRIP+set}" = set; then
1666      echo $ECHO_N "(cached) $ECHO_C" >&6
1667    else
1668      if test -n "$STRIP"; then
1669      ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1670    else
1671    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672    for as_dir in $PATH
1673    do
1674      IFS=$as_save_IFS
1675      test -z "$as_dir" && as_dir=.
1676      for ac_exec_ext in '' $ac_executable_extensions; do
1677      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678        ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1679        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680        break 2
1681      fi
1682    done
1683    done
1684    
1685    fi
1686    fi
1687    STRIP=$ac_cv_prog_STRIP
1688    if test -n "$STRIP"; then
1689      echo "$as_me:$LINENO: result: $STRIP" >&5
1690    echo "${ECHO_T}$STRIP" >&6
1691    else
1692      echo "$as_me:$LINENO: result: no" >&5
1693    echo "${ECHO_T}no" >&6
1694    fi
1695    
1696    fi
1697    if test -z "$ac_cv_prog_STRIP"; then
1698      ac_ct_STRIP=$STRIP
1699      # Extract the first word of "strip", so it can be a program name with args.
1700    set dummy strip; ac_word=$2
1701    echo "$as_me:$LINENO: checking for $ac_word" >&5
1702    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703    if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1704      echo $ECHO_N "(cached) $ECHO_C" >&6
1705    else
1706      if test -n "$ac_ct_STRIP"; then
1707      ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1708    else
1709    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710    for as_dir in $PATH
1711    do
1712      IFS=$as_save_IFS
1713      test -z "$as_dir" && as_dir=.
1714      for ac_exec_ext in '' $ac_executable_extensions; do
1715      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716        ac_cv_prog_ac_ct_STRIP="strip"
1717        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718        break 2
1719      fi
1720    done
1721    done
1722    
1723      test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1724    fi
1725    fi
1726    ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1727    if test -n "$ac_ct_STRIP"; then
1728      echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1729    echo "${ECHO_T}$ac_ct_STRIP" >&6
1730    else
1731      echo "$as_me:$LINENO: result: no" >&5
1732    echo "${ECHO_T}no" >&6
1733    fi
1734    
1735      STRIP=$ac_ct_STRIP
1736    else
1737      STRIP="$ac_cv_prog_STRIP"
1738    fi
1739    
1740    fi
1741    INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1742    
1743    # We need awk for the "check" target.  The system "awk" is bad on
1744    # some platforms.
1745    # Always define AMTAR for backward compatibility.
1746    
1747    AMTAR=${AMTAR-"${am_missing_run}tar"}
1748    
1749    am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1750    
1751    
1752    
1753    
1754    
1755    
1756            ac_config_headers="$ac_config_headers config.h"            ac_config_headers="$ac_config_headers config.h"
1757    
1758                                                                          ac_config_files="$ac_config_files Makefile contrib/Makefile cvsgraph.1 cvsgraph.conf.5 cvsgraph.spec contrib/mkimage.php contrib/cvsgraphwrapper.php"
1759    
1760    
1761    with_gd=yes
1762    
1763    
1764    
1765    # Checks for programs.
1766  ac_ext=c  ac_ext=c
1767  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
1768  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 2235  Line 2692 
2692  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2693  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2694  ac_compiler_gnu=$ac_cv_c_compiler_gnu  ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695    DEPDIR="${am__leading_dot}deps"
2696    
2697              ac_config_commands="$ac_config_commands depfiles"
2698    
2699    
2700    am_make=${MAKE-make}
2701    cat > confinc << 'END'
2702    am__doit:
2703            @echo done
2704    .PHONY: am__doit
2705    END
2706    # If we don't find an include directive, just comment out the code.
2707    echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2708    echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2709    am__include="#"
2710    am__quote=
2711    _am_result=none
2712    # First try GNU make style include.
2713    echo "include confinc" > confmf
2714    # We grep out `Entering directory' and `Leaving directory'
2715    # messages which can occur if `w' ends up in MAKEFLAGS.
2716    # In particular we don't look at `^make:' because GNU make might
2717    # be invoked under some other name (usually "gmake"), in which
2718    # case it prints its new name instead of `make'.
2719    if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2720       am__include=include
2721       am__quote=
2722       _am_result=GNU
2723    fi
2724    # Now try BSD make style include.
2725    if test "$am__include" = "#"; then
2726       echo '.include "confinc"' > confmf
2727       if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2728          am__include=.include
2729          am__quote="\""
2730          _am_result=BSD
2731       fi
2732    fi
2733    
2734    
2735    echo "$as_me:$LINENO: result: $_am_result" >&5
2736    echo "${ECHO_T}$_am_result" >&6
2737    rm -f confinc confmf
2738    
2739    # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2740    if test "${enable_dependency_tracking+set}" = set; then
2741      enableval="$enable_dependency_tracking"
2742    
2743    fi;
2744    if test "x$enable_dependency_tracking" != xno; then
2745      am_depcomp="$ac_aux_dir/depcomp"
2746      AMDEPBACKSLASH='\'
2747    fi
2748    
2749    
2750    if test "x$enable_dependency_tracking" != xno; then
2751      AMDEP_TRUE=
2752      AMDEP_FALSE='#'
2753    else
2754      AMDEP_TRUE='#'
2755      AMDEP_FALSE=
2756    fi
2757    
2758    
2759    
2760    
2761    depcc="$CC"   am_compiler_list=
2762    
2763    echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2764    echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2765    if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2766      echo $ECHO_N "(cached) $ECHO_C" >&6
2767    else
2768      if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2769      # We make a subdir and do the tests there.  Otherwise we can end up
2770      # making bogus files that we don't know about and never remove.  For
2771      # instance it was reported that on HP-UX the gcc test will end up
2772      # making a dummy file named `D' -- because `-MD' means `put the output
2773      # in D'.
2774      mkdir conftest.dir
2775      # Copy depcomp to subdir because otherwise we won't find it if we're
2776      # using a relative directory.
2777      cp "$am_depcomp" conftest.dir
2778      cd conftest.dir
2779      # We will build objects and dependencies in a subdirectory because
2780      # it helps to detect inapplicable dependency modes.  For instance
2781      # both Tru64's cc and ICC support -MD to output dependencies as a
2782      # side effect of compilation, but ICC will put the dependencies in
2783      # the current directory while Tru64 will put them in the object
2784      # directory.
2785      mkdir sub
2786    
2787      am_cv_CC_dependencies_compiler_type=none
2788      if test "$am_compiler_list" = ""; then
2789         am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2790      fi
2791      for depmode in $am_compiler_list; do
2792        # Setup a source with many dependencies, because some compilers
2793        # like to wrap large dependency lists on column 80 (with \), and
2794        # we should not choose a depcomp mode which is confused by this.
2795        #
2796        # We need to recreate these files for each test, as the compiler may
2797        # overwrite some of them when testing with obscure command lines.
2798        # This happens at least with the AIX C compiler.
2799        : > sub/conftest.c
2800        for i in 1 2 3 4 5 6; do
2801          echo '#include "conftst'$i'.h"' >> sub/conftest.c
2802          # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2803          # Solaris 8's {/usr,}/bin/sh.
2804          touch sub/conftst$i.h
2805        done
2806        echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2807    
2808        case $depmode in
2809        nosideeffect)
2810          # after this tag, mechanisms are not by side-effect, so they'll
2811          # only be used when explicitly requested
2812          if test "x$enable_dependency_tracking" = xyes; then
2813            continue
2814          else
2815            break
2816          fi
2817          ;;
2818        none) break ;;
2819        esac
2820        # We check with `-c' and `-o' for the sake of the "dashmstdout"
2821        # mode.  It turns out that the SunPro C++ compiler does not properly
2822        # handle `-M -o', and we need to detect this.
2823        if depmode=$depmode \
2824           source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2825           depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2826           $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2827             >/dev/null 2>conftest.err &&
2828           grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2829           grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2830           ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2831          # icc doesn't choke on unknown options, it will just issue warnings
2832          # or remarks (even with -Werror).  So we grep stderr for any message
2833          # that says an option was ignored or not supported.
2834          # When given -MP, icc 7.0 and 7.1 complain thusly:
2835          #   icc: Command line warning: ignoring option '-M'; no argument required
2836          # The diagnosis changed in icc 8.0:
2837          #   icc: Command line remark: option '-MP' not supported
2838          if (grep 'ignoring option' conftest.err ||
2839              grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2840            am_cv_CC_dependencies_compiler_type=$depmode
2841            break
2842          fi
2843        fi
2844      done
2845    
2846      cd ..
2847      rm -rf conftest.dir
2848    else
2849      am_cv_CC_dependencies_compiler_type=none
2850    fi
2851    
2852    fi
2853    echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2854    echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2855    CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2856    
2857    
2858    
2859    if
2860      test "x$enable_dependency_tracking" != xno \
2861      && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2862      am__fastdepCC_TRUE=
2863      am__fastdepCC_FALSE='#'
2864    else
2865      am__fastdepCC_TRUE='#'
2866      am__fastdepCC_FALSE=
2867    fi
2868    
2869    
2870    
2871  for ac_prog in flex lex  for ac_prog in flex lex
# Line 2552  Line 3183 
3183  done  done
3184  test -n "$YACC" || YACC="yacc"  test -n "$YACC" || YACC="yacc"
3185    
3186    # Extract the first word of "pkg-config", so it can be a program name with args.
3187    set dummy pkg-config; ac_word=$2
3188    echo "$as_me:$LINENO: checking for $ac_word" >&5
3189    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190    if test "${ac_cv_path_ac_prog_pkg_config+set}" = set; then
3191      echo $ECHO_N "(cached) $ECHO_C" >&6
3192    else
3193      case $ac_prog_pkg_config in
3194      [\\/]* | ?:[\\/]*)
3195      ac_cv_path_ac_prog_pkg_config="$ac_prog_pkg_config" # Let the user override the test with a path.
3196      ;;
3197      *)
3198      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199    for as_dir in $PATH
3200    do
3201      IFS=$as_save_IFS
3202      test -z "$as_dir" && as_dir=.
3203      for ac_exec_ext in '' $ac_executable_extensions; do
3204      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205        ac_cv_path_ac_prog_pkg_config="$as_dir/$ac_word$ac_exec_ext"
3206        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207        break 2
3208      fi
3209    done
3210    done
3211    
3212  LEXFLAGS="-8"    ;;
3213  LEXSPEED="-Cf"  esac
3214  INCL=""  fi
3215    ac_prog_pkg_config=$ac_cv_path_ac_prog_pkg_config
   
 # Check whether --with-gd-inc or --without-gd-inc was given.  
 if test "${with_gd_inc+set}" = set; then  
   withval="$with_gd_inc"  
   INCL="${INCL} -I${withval}"  
   
 fi;  
   
   
 # Check whether --with-gd-lib or --without-gd-lib was given.  
 if test "${with_gd_lib+set}" = set; then  
   withval="$with_gd_lib"  
   LIBS="${LIBS} -L${withval}"  
   
 fi;  
   
 LIBS="$LIBS -lgd"  
 LIBPATH=""  
   
   
 # Check whether --with-freetype-lib or --without-freetype-lib was given.  
 if test "${with_freetype_lib+set}" = set; then  
   withval="$with_freetype_lib"  
   LIBS="${LIBS} -L${withval}"  
3216    
3217  fi;  if test -n "$ac_prog_pkg_config"; then
3218      echo "$as_me:$LINENO: result: $ac_prog_pkg_config" >&5
3219    echo "${ECHO_T}$ac_prog_pkg_config" >&6
3220    else
3221      echo "$as_me:$LINENO: result: no" >&5
3222    echo "${ECHO_T}no" >&6
3223    fi
3224    
3225    
 # Check whether --with-freetype2-lib or --without-freetype2-lib was given.  
 if test "${with_freetype2_lib+set}" = set; then  
   withval="$with_freetype2_lib"  
   LIBS="${LIBS} -L${withval}"  
3226    
3227  fi;  echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3228    echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3229    if test "${ac_cv_lib_m_sqrt+set}" = set; then
 # Check whether --with-png-inc or --without-png-inc was given.  
 if test "${with_png_inc+set}" = set; then  
   withval="$with_png_inc"  
   INCL="${INCL} -I${withval}"  
   
 fi;  
   
   
 # Check whether --with-png-lib or --without-png-lib was given.  
 if test "${with_png_lib+set}" = set; then  
   withval="$with_png_lib"  
   LIBS="${LIBS} -L${withval}"  
   
 fi;  
   
   
 # Check whether --with-jpeg-inc or --without-jpeg-inc was given.  
 if test "${with_jpeg_inc+set}" = set; then  
   withval="$with_jpeg_inc"  
   INCL="${INCL} -I${withval}"  
   
 fi;  
   
   
 # Check whether --with-jpeg-lib or --without-jpeg-lib was given.  
 if test "${with_jpeg_lib+set}" = set; then  
   withval="$with_jpeg_lib"  
   LIBS="${LIBS} -L${withval}"  
   
 fi;  
   
   
 # Check whether --with-z-inc or --without-z-inc was given.  
 if test "${with_z_inc+set}" = set; then  
   withval="$with_z_inc"  
   INCL="${INCL} -I${withval}"  
   
 fi;  
   
   
 # Check whether --with-z-lib or --without-z-lib was given.  
 if test "${with_z_lib+set}" = set; then  
   withval="$with_z_lib"  
   LIBS="${LIBS} -L${withval}"  
   
 fi;  
   
 # Check whether --enable-speed or --disable-speed was given.  
 if test "${enable_speed+set}" = set; then  
   enableval="$enable_speed"  
   if test "$enableval" = "no"; then LEXSPEED=""; fi  
 fi;  
   
 if test "x$LEXSPEED" != "x"  
 then  
   LEXFLAGS="$LEXFLAGS $LEXSPEED"  
 fi  
   
 CPPFLAGS="$CPPFLAGS $INCL"  
 CFLAGS="$CFLAGS $INCL"  
   
 if test "x${GCC}" = "xyes"  
 then  
   CFLAGS="$CFLAGS -Wall"  
   echo "$as_me:$LINENO: checking \"for gcc strength-reduce bug\"" >&5  
 echo $ECHO_N "checking \"for gcc strength-reduce bug\"... $ECHO_C" >&6  
 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then  
3230    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3231  else  else
3232    if test "$cross_compiling" = yes; then    ac_check_lib_save_LIBS=$LIBS
3233    ac_cv_c_gcc_strength_bug="yes"  LIBS="-lm  $LIBS"
3234  else  cat >conftest.$ac_ext <<_ACEOF
   cat >conftest.$ac_ext <<_ACEOF  
3235  /* confdefs.h.  */  /* confdefs.h.  */
3236  _ACEOF  _ACEOF
3237  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
3238  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
3239  /* end confdefs.h.  */  /* end confdefs.h.  */
3240    
3241  int main(void) {  /* Override any gcc2 internal prototype to avoid an error.  */
3242    static int Array[3];  #ifdef __cplusplus
3243    unsigned int B = 3;  extern "C"
3244    int i;  #endif
3245    for(i=0; i<B; i++) Array[i] = i - 3;  /* We use char because int might match the return type of a gcc2
3246    exit( Array[1] != -2 );     builtin and then its argument prototype would still apply.  */
3247    char sqrt ();
3248    int
3249    main ()
3250    {
3251    sqrt ();
3252      ;
3253      return 0;
3254  }  }
3255  _ACEOF  _ACEOF
3256  rm -f conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
3257  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3258    (eval $ac_link) 2>&5    (eval $ac_link) 2>conftest.er1
3259    ac_status=$?    ac_status=$?
3260      grep -v '^ *+' conftest.er1 >conftest.err
3261      rm -f conftest.er1
3262      cat conftest.err >&5
3263    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); } &&
3265             { ac_try='test -z "$ac_c_werror_flag"
3266                             || test ! -s conftest.err'
3267      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268      (eval $ac_try) 2>&5
3269      ac_status=$?
3270      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271      (exit $ac_status); }; } &&
3272             { ac_try='test -s conftest$ac_exeext'
3273    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3275    ac_status=$?    ac_status=$?
3276    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3278    ac_cv_c_gcc_strength_bug="no"    ac_cv_lib_m_sqrt=yes
3279  else  else
3280    echo "$as_me: program exited with status $ac_status" >&5    echo "$as_me: failed program was:" >&5
 echo "$as_me: failed program was:" >&5  
3281  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3282    
3283  ( exit $ac_status )  ac_cv_lib_m_sqrt=no
 ac_cv_c_gcc_strength_bug="yes"  
 fi  
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
3284  fi  fi
3285    rm -f conftest.err conftest.$ac_objext \
3286          conftest$ac_exeext conftest.$ac_ext
3287    LIBS=$ac_check_lib_save_LIBS
3288  fi  fi
3289  echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3290  echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6  echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3291    if test "$ac_cv_c_gcc_strength_bug" = "yes"  if test $ac_cv_lib_m_sqrt = yes; then
3292    then    cat >>confdefs.h <<_ACEOF
3293      CFLAGS="$CFLAGS -fno-strength-reduce"  #define HAVE_LIBM 1
3294    fi  _ACEOF
3295    
3296      LIBS="-lm $LIBS"
3297    
3298  fi  fi
3299    
3300  echo "$as_me:$LINENO: checking \"sizes of int and void *\"" >&5  
3301  echo $ECHO_N "checking \"sizes of int and void *\"... $ECHO_C" >&6  
3302  if test "${ac_cv_c_size_int_ptr+set}" = set; then  echo "$as_me:$LINENO: checking for FT_Load_Glyph in -lfreetype" >&5
3303    echo $ECHO_N "checking for FT_Load_Glyph in -lfreetype... $ECHO_C" >&6
3304    if test "${ac_cv_lib_freetype_FT_Load_Glyph+set}" = set; then
3305    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3306  else  else
3307    if test "$cross_compiling" = yes; then    ac_check_lib_save_LIBS=$LIBS
3308    ac_cv_c_size_int_ptr="yes"  LIBS="-lfreetype  $LIBS"
3309  else  cat >conftest.$ac_ext <<_ACEOF
   cat >conftest.$ac_ext <<_ACEOF  
3310  /* confdefs.h.  */  /* confdefs.h.  */
3311  _ACEOF  _ACEOF
3312  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
3313  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
3314  /* end confdefs.h.  */  /* end confdefs.h.  */
3315    
3316  int main(void) {  /* Override any gcc2 internal prototype to avoid an error.  */
3317    return sizeof(int) == sizeof(void *);  #ifdef __cplusplus
3318    extern "C"
3319    #endif
3320    /* We use char because int might match the return type of a gcc2
3321       builtin and then its argument prototype would still apply.  */
3322    char FT_Load_Glyph ();
3323    int
3324    main ()
3325    {
3326    FT_Load_Glyph ();
3327      ;
3328      return 0;
3329  }  }
3330  _ACEOF  _ACEOF
3331  rm -f conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
3332  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3333    (eval $ac_link) 2>&5    (eval $ac_link) 2>conftest.er1
3334    ac_status=$?    ac_status=$?
3335      grep -v '^ *+' conftest.er1 >conftest.err
3336      rm -f conftest.er1
3337      cat conftest.err >&5
3338    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); } &&
3340             { ac_try='test -z "$ac_c_werror_flag"
3341                             || test ! -s conftest.err'
3342      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343      (eval $ac_try) 2>&5
3344      ac_status=$?
3345      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346      (exit $ac_status); }; } &&
3347             { ac_try='test -s conftest$ac_exeext'
3348    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3350    ac_status=$?    ac_status=$?
3351    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3353    ac_cv_c_size_int_ptr="no"    ac_cv_lib_freetype_FT_Load_Glyph=yes
3354  else  else
3355    echo "$as_me: program exited with status $ac_status" >&5    echo "$as_me: failed program was:" >&5
 echo "$as_me: failed program was:" >&5  
3356  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3357    
3358  ( exit $ac_status )  ac_cv_lib_freetype_FT_Load_Glyph=no
 ac_cv_c_size_int_ptr="yes"  
3359  fi  fi
3360  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -f conftest.err conftest.$ac_objext \
3361          conftest$ac_exeext conftest.$ac_ext
3362    LIBS=$ac_check_lib_save_LIBS
3363  fi  fi
3364    echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Load_Glyph" >&5
3365    echo "${ECHO_T}$ac_cv_lib_freetype_FT_Load_Glyph" >&6
3366    if test $ac_cv_lib_freetype_FT_Load_Glyph = yes; then
3367      cat >>confdefs.h <<_ACEOF
3368    #define HAVE_LIBFREETYPE 1
3369    _ACEOF
3370    
3371      LIBS="-lfreetype $LIBS"
3372    
3373  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_c_size_int_ptr" >&5  
 echo "${ECHO_T}$ac_cv_c_size_int_ptr" >&6  
3374    
3375  echo "$as_me:$LINENO: checking \"sizes of long and void *\"" >&5  if test "$ac_cv_lib_freetype_FT_Load_Glyph" != "yes"
3376  echo $ECHO_N "checking \"sizes of long and void *\"... $ECHO_C" >&6  then
3377  if test "${ac_cv_c_size_long_ptr+set}" = set; then  
3378    echo "$as_me:$LINENO: checking for TT_Load_Glyph in -lttf" >&5
3379    echo $ECHO_N "checking for TT_Load_Glyph in -lttf... $ECHO_C" >&6
3380    if test "${ac_cv_lib_ttf_TT_Load_Glyph+set}" = set; then
3381    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3382  else  else
3383    if test "$cross_compiling" = yes; then    ac_check_lib_save_LIBS=$LIBS
3384    ac_cv_c_size_long_ptr="yes"  LIBS="-lttf  $LIBS"
3385  else  cat >conftest.$ac_ext <<_ACEOF
   cat >conftest.$ac_ext <<_ACEOF  
3386  /* confdefs.h.  */  /* confdefs.h.  */
3387  _ACEOF  _ACEOF
3388  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
3389  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
3390  /* end confdefs.h.  */  /* end confdefs.h.  */
3391    
3392  int main(void) {  /* Override any gcc2 internal prototype to avoid an error.  */
3393    return sizeof(long) == sizeof(void *);  #ifdef __cplusplus
3394    extern "C"
3395    #endif
3396    /* We use char because int might match the return type of a gcc2
3397       builtin and then its argument prototype would still apply.  */
3398    char TT_Load_Glyph ();
3399    int
3400    main ()
3401    {
3402    TT_Load_Glyph ();
3403      ;
3404      return 0;
3405  }  }
3406  _ACEOF  _ACEOF
3407  rm -f conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
3408  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3409    (eval $ac_link) 2>&5    (eval $ac_link) 2>conftest.er1
3410      ac_status=$?
3411      grep -v '^ *+' conftest.er1 >conftest.err
3412      rm -f conftest.er1
3413      cat conftest.err >&5
3414      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415      (exit $ac_status); } &&
3416             { ac_try='test -z "$ac_c_werror_flag"
3417                             || test ! -s conftest.err'
3418      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419      (eval $ac_try) 2>&5
3420    ac_status=$?    ac_status=$?
3421    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'    (exit $ac_status); }; } &&
3423             { ac_try='test -s conftest$ac_exeext'
3424    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3426    ac_status=$?    ac_status=$?
3427    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3429    ac_cv_c_size_long_ptr="no"    ac_cv_lib_ttf_TT_Load_Glyph=yes
3430  else  else
3431    echo "$as_me: program exited with status $ac_status" >&5    echo "$as_me: failed program was:" >&5
 echo "$as_me: failed program was:" >&5  
3432  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3433    
3434  ( exit $ac_status )  ac_cv_lib_ttf_TT_Load_Glyph=no
 ac_cv_c_size_long_ptr="yes"  
3435  fi  fi
3436  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  rm -f conftest.err conftest.$ac_objext \
3437          conftest$ac_exeext conftest.$ac_ext
3438    LIBS=$ac_check_lib_save_LIBS
3439    fi
3440    echo "$as_me:$LINENO: result: $ac_cv_lib_ttf_TT_Load_Glyph" >&5
3441    echo "${ECHO_T}$ac_cv_lib_ttf_TT_Load_Glyph" >&6
3442    if test $ac_cv_lib_ttf_TT_Load_Glyph = yes; then
3443      cat >>confdefs.h <<_ACEOF
3444    #define HAVE_LIBTTF 1
3445    _ACEOF
3446    
3447      LIBS="-lttf $LIBS"
3448    
3449  fi  fi
3450    
3451  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_c_size_long_ptr" >&5  
 echo "${ECHO_T}$ac_cv_c_size_long_ptr" >&6  
3452    
3453  echo "$as_me:$LINENO: checking \"sizes of long long and void *\"" >&5  # find out what the GD library uses
3454  echo $ECHO_N "checking \"sizes of long long and void *\"... $ECHO_C" >&6  
3455  if test "${ac_cv_c_size_longlong_ptr+set}" = set; then  
3456    # Check whether --with-gd or --without-gd was given.
3457    if test "${with_gd+set}" = set; then
3458      withval="$with_gd"
3459    
3460    else
3461      with_gd=yes
3462    fi;
3463    
3464    
3465            # Extract the first word of "gdlib-config", so it can be a program name with args.
3466    set dummy gdlib-config; ac_word=$2
3467    echo "$as_me:$LINENO: checking for $ac_word" >&5
3468    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3469    if test "${ac_cv_path_GDLIB_CONFIG+set}" = set; then
3470    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3471  else  else
3472    if test "$cross_compiling" = yes; then    case $GDLIB_CONFIG in
3473    ac_cv_c_size_longlong_ptr="yes"    [\\/]* | ?:[\\/]*)
3474      ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
3475      ;;
3476      *)
3477      as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478    as_dummy="$with_gd/bin:$PATH"
3479    for as_dir in $as_dummy
3480    do
3481      IFS=$as_save_IFS
3482      test -z "$as_dir" && as_dir=.
3483      for ac_exec_ext in '' $ac_executable_extensions; do
3484      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485        ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3486        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487        break 2
3488      fi
3489    done
3490    done
3491    
3492      ;;
3493    esac
3494    fi
3495    GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
3496    
3497    if test -n "$GDLIB_CONFIG"; then
3498      echo "$as_me:$LINENO: result: $GDLIB_CONFIG" >&5
3499    echo "${ECHO_T}$GDLIB_CONFIG" >&6
3500  else  else
3501    cat >conftest.$ac_ext <<_ACEOF    echo "$as_me:$LINENO: result: no" >&5
3502    echo "${ECHO_T}no" >&6
3503    fi
3504    
3505            if test -n "$GDLIB_CONFIG"; then
3506                    GD_CFLAGS=`$GDLIB_CONFIG --cflags`
3507                    GD_LDFLAGS=`$GDLIB_CONFIG --ldflags`
3508                    GD_LIBS=`$GDLIB_CONFIG --libs`
3509            elif test -d "$with_gd"; then
3510                    GD_CFLAGS="-I$with_gd/include"
3511                    GD_LDFLAGS="-L$with_gd/lib"
3512                    echo "$as_me:$LINENO: checking for inflateReset in -lz" >&5
3513    echo $ECHO_N "checking for inflateReset in -lz... $ECHO_C" >&6
3514    if test "${ac_cv_lib_z_inflateReset+set}" = set; then
3515      echo $ECHO_N "(cached) $ECHO_C" >&6
3516    else
3517      ac_check_lib_save_LIBS=$LIBS
3518    LIBS="-lz  $LIBS"
3519    cat >conftest.$ac_ext <<_ACEOF
3520  /* confdefs.h.  */  /* confdefs.h.  */
3521  _ACEOF  _ACEOF
3522  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
3523  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
3524  /* end confdefs.h.  */  /* end confdefs.h.  */
3525    
3526  int main(void) {  /* Override any gcc2 internal prototype to avoid an error.  */
3527    return sizeof(long long) == sizeof(void *);  #ifdef __cplusplus
3528    extern "C"
3529    #endif
3530    /* We use char because int might match the return type of a gcc2
3531       builtin and then its argument prototype would still apply.  */
3532    char inflateReset ();
3533    int
3534    main ()
3535    {
3536    inflateReset ();
3537      ;
3538      return 0;
3539  }  }
3540  _ACEOF  _ACEOF
3541  rm -f conftest$ac_exeext  rm -f conftest.$ac_objext conftest$ac_exeext
3542  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3543    (eval $ac_link) 2>&5    (eval $ac_link) 2>conftest.er1
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_c_size_longlong_ptr="no"  
 else  
   echo "$as_me: program exited with status $ac_status" >&5  
 echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ( exit $ac_status )  
 ac_cv_c_size_longlong_ptr="yes"  
 fi  
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
 fi  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_c_size_longlong_ptr" >&5  
 echo "${ECHO_T}$ac_cv_c_size_longlong_ptr" >&6  
   
 if test "$ac_cv_c_size_int_ptr" = "no"  
 then  
         if test "$ac_cv_c_size_long_ptr" = "no"  
         then  
                 if test "$ac_cv_c_size_longlong_ptr" = "no"  
                 then  
                         echo "** The size of an integer is not equal to a pointer."  
                         echo "   There are currently assumtions in the app that"  
                         echo "   prevents it from running if these sizes are not"  
                         echo "   equal."  
                         echo "   Please configure with a compiler that uses the"  
                         echo "   same sizes for ints and pointers."  
                         exit 1  
                 else  
                         INTTYPE="long long"  
                 fi  
         else  
                 INTTYPE="long"  
         fi  
 else  
         INTTYPE="int"  
 fi  
   
 ac_ext=c  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5  
 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6  
 # On Suns, sometimes $CPP names a directory.  
 if test -n "$CPP" && test -d "$CPP"; then  
   CPP=  
 fi  
 if test -z "$CPP"; then  
   if test "${ac_cv_prog_CPP+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
       # Double quotes because CPP needs to be expanded  
     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"  
     do  
       ac_preproc_ok=false  
 for ac_c_preproc_warn_flag in '' yes  
 do  
   # Use a header file that comes with gcc, so configuring glibc  
   # with a fresh cross-compiler works.  
   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
   # <limits.h> exists even on freestanding compilers.  
   # On the NeXT, cc -E runs the code through the compiler's parser,  
   # not just through cpp. "Syntax error" is here to catch this case.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
                      Syntax error  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   :  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   # Broken: fails on valid input.  
 continue  
 fi  
 rm -f conftest.err conftest.$ac_ext  
   
   # OK, works on sane cases.  Now check whether non-existent headers  
   # can be detected and how.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <ac_nonexistent.h>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   # Broken: success on invalid input.  
 continue  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   # Passes both tests.  
 ac_preproc_ok=:  
 break  
 fi  
 rm -f conftest.err conftest.$ac_ext  
   
 done  
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.  
 rm -f conftest.err conftest.$ac_ext  
 if $ac_preproc_ok; then  
   break  
 fi  
   
     done  
     ac_cv_prog_CPP=$CPP  
   
 fi  
   CPP=$ac_cv_prog_CPP  
 else  
   ac_cv_prog_CPP=$CPP  
 fi  
 echo "$as_me:$LINENO: result: $CPP" >&5  
 echo "${ECHO_T}$CPP" >&6  
 ac_preproc_ok=false  
 for ac_c_preproc_warn_flag in '' yes  
 do  
   # Use a header file that comes with gcc, so configuring glibc  
   # with a fresh cross-compiler works.  
   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
   # <limits.h> exists even on freestanding compilers.  
   # On the NeXT, cc -E runs the code through the compiler's parser,  
   # not just through cpp. "Syntax error" is here to catch this case.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
                      Syntax error  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   :  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   # Broken: fails on valid input.  
 continue  
 fi  
 rm -f conftest.err conftest.$ac_ext  
   
   # OK, works on sane cases.  Now check whether non-existent headers  
   # can be detected and how.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <ac_nonexistent.h>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   # Broken: success on invalid input.  
 continue  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   # Passes both tests.  
 ac_preproc_ok=:  
 break  
 fi  
 rm -f conftest.err conftest.$ac_ext  
   
 done  
 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.  
 rm -f conftest.err conftest.$ac_ext  
 if $ac_preproc_ok; then  
   :  
 else  
   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check  
 See \`config.log' for more details." >&5  
 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check  
 See \`config.log' for more details." >&2;}  
    { (exit 1); exit 1; }; }  
 fi  
   
 ac_ext=c  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
   
   
 echo "$as_me:$LINENO: checking for egrep" >&5  
 echo $ECHO_N "checking for egrep... $ECHO_C" >&6  
 if test "${ac_cv_prog_egrep+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if echo a | (grep -E '(a|b)') >/dev/null 2>&1  
     then ac_cv_prog_egrep='grep -E'  
     else ac_cv_prog_egrep='egrep'  
     fi  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5  
 echo "${ECHO_T}$ac_cv_prog_egrep" >&6  
  EGREP=$ac_cv_prog_egrep  
   
   
 echo "$as_me:$LINENO: checking for ANSI C header files" >&5  
 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6  
 if test "${ac_cv_header_stdc+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <stdlib.h>  
 #include <stdarg.h>  
 #include <string.h>  
 #include <float.h>  
   
 int  
 main ()  
 {  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_header_stdc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_header_stdc=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
   
 if test $ac_cv_header_stdc = yes; then  
   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <string.h>  
   
 _ACEOF  
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  
   $EGREP "memchr" >/dev/null 2>&1; then  
   :  
 else  
   ac_cv_header_stdc=no  
 fi  
 rm -f conftest*  
   
 fi  
   
 if test $ac_cv_header_stdc = yes; then  
   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <stdlib.h>  
   
 _ACEOF  
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  
   $EGREP "free" >/dev/null 2>&1; then  
   :  
 else  
   ac_cv_header_stdc=no  
 fi  
 rm -f conftest*  
   
 fi  
   
 if test $ac_cv_header_stdc = yes; then  
   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.  
   if test "$cross_compiling" = yes; then  
   :  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <ctype.h>  
 #if ((' ' & 0x0FF) == 0x020)  
 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  
 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))  
 #else  
 # define ISLOWER(c) \  
                    (('a' <= (c) && (c) <= 'i') \  
                      || ('j' <= (c) && (c) <= 'r') \  
                      || ('s' <= (c) && (c) <= 'z'))  
 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))  
 #endif  
   
 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))  
 int  
 main ()  
 {  
   int i;  
   for (i = 0; i < 256; i++)  
     if (XOR (islower (i), ISLOWER (i))  
         || toupper (i) != TOUPPER (i))  
       exit(2);  
   exit (0);  
 }  
 _ACEOF  
 rm -f conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   :  
 else  
   echo "$as_me: program exited with status $ac_status" >&5  
 echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ( exit $ac_status )  
 ac_cv_header_stdc=no  
 fi  
 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext  
 fi  
 fi  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5  
 echo "${ECHO_T}$ac_cv_header_stdc" >&6  
 if test $ac_cv_header_stdc = yes; then  
   
 cat >>confdefs.h <<\_ACEOF  
 #define STDC_HEADERS 1  
 _ACEOF  
   
 fi  
   
 # On IRIX 5.3, sys/types and inttypes.h are conflicting.  
   
   
   
   
   
   
   
   
   
 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \  
                   inttypes.h stdint.h unistd.h  
 do  
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`  
 echo "$as_me:$LINENO: checking for $ac_header" >&5  
 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6  
 if eval "test \"\${$as_ac_Header+set}\" = set"; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
   
 #include <$ac_header>  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   eval "$as_ac_Header=yes"  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 eval "$as_ac_Header=no"  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5  
 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6  
 if test `eval echo '${'$as_ac_Header'}'` = yes; then  
   cat >>confdefs.h <<_ACEOF  
 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1  
 _ACEOF  
   
 fi  
   
 done  
   
   
 if test "${ac_cv_header_getopt_h+set}" = set; then  
   echo "$as_me:$LINENO: checking for getopt.h" >&5  
 echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6  
 if test "${ac_cv_header_getopt_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5  
 echo "${ECHO_T}$ac_cv_header_getopt_h" >&6  
 else  
   # Is the header compilable?  
 echo "$as_me:$LINENO: checking getopt.h usability" >&5  
 echo $ECHO_N "checking getopt.h usability... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 #include <getopt.h>  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_header_compiler=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking getopt.h presence" >&5  
 echo $ECHO_N "checking getopt.h presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <getopt.h>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   ac_header_preproc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   ac_header_preproc=no  
 fi  
 rm -f conftest.err conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: getopt.h: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: getopt.h: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: getopt.h: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: getopt.h:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: getopt.h:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: getopt.h: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: getopt.h: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: getopt.h:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: getopt.h:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: getopt.h: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: getopt.h: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for getopt.h" >&5  
 echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6  
 if test "${ac_cv_header_getopt_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_header_getopt_h=$ac_header_preproc  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5  
 echo "${ECHO_T}$ac_cv_header_getopt_h" >&6  
   
 fi  
 if test $ac_cv_header_getopt_h = yes; then  
    cat >>confdefs.h <<\_ACEOF  
 #define HAVE_GETOPT_H 1  
 _ACEOF  
   
 fi  
   
   
   
 if test "${ac_cv_header_sys_wait_h+set}" = set; then  
   echo "$as_me:$LINENO: checking for sys/wait.h" >&5  
 echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6  
 if test "${ac_cv_header_sys_wait_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5  
 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6  
 else  
   # Is the header compilable?  
 echo "$as_me:$LINENO: checking sys/wait.h usability" >&5  
 echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 $ac_includes_default  
 #include <sys/wait.h>  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
3544    ac_status=$?    ac_status=$?
3545    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
3546    rm -f conftest.er1    rm -f conftest.er1
# Line 3540  Line 3554 
3554    ac_status=$?    ac_status=$?
3555    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556    (exit $ac_status); }; } &&    (exit $ac_status); }; } &&
3557           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest$ac_exeext'
3558    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3560    ac_status=$?    ac_status=$?
3561    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3563    ac_header_compiler=yes    ac_cv_lib_z_inflateReset=yes
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_header_compiler=no  
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
   
 # Is the header present?  
 echo "$as_me:$LINENO: checking sys/wait.h presence" >&5  
 echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 #include <sys/wait.h>  
 _ACEOF  
 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  
   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } >/dev/null; then  
   if test -s conftest.err; then  
     ac_cpp_err=$ac_c_preproc_warn_flag  
     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag  
   else  
     ac_cpp_err=  
   fi  
 else  
   ac_cpp_err=yes  
 fi  
 if test -z "$ac_cpp_err"; then  
   ac_header_preproc=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
   ac_header_preproc=no  
 fi  
 rm -f conftest.err conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for sys/wait.h" >&5  
 echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6  
 if test "${ac_cv_header_sys_wait_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
3564  else  else
3565    ac_cv_header_sys_wait_h=$ac_header_preproc    echo "$as_me: failed program was:" >&5
3566  fi  sed 's/^/| /' conftest.$ac_ext >&5
 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5  
 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6  
3567    
3568    ac_cv_lib_z_inflateReset=no
3569  fi  fi
3570  if test $ac_cv_header_sys_wait_h = yes; then  rm -f conftest.err conftest.$ac_objext \
3571     cat >>confdefs.h <<\_ACEOF        conftest$ac_exeext conftest.$ac_ext
3572  #define HAVE_SYS_WAIT_H 1  LIBS=$ac_check_lib_save_LIBS
3573  _ACEOF  fi
3574    echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateReset" >&5
3575    echo "${ECHO_T}$ac_cv_lib_z_inflateReset" >&6
3576    if test $ac_cv_lib_z_inflateReset = yes; then
3577      GD_LIBS="-lz"
3578  fi  fi
3579    
3580                    echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
3581    echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
3582  if test "${ac_cv_header_gd_h+set}" = set; then  if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
   echo "$as_me:$LINENO: checking for gd.h" >&5  
 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6  
 if test "${ac_cv_header_gd_h+set}" = set; then  
3583    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5  
 echo "${ECHO_T}$ac_cv_header_gd_h" >&6  
3584  else  else
3585    # Is the header compilable?    ac_check_lib_save_LIBS=$LIBS
3586  echo "$as_me:$LINENO: checking gd.h usability" >&5  LIBS="-lpng $GD_LIBS $LIBS"
 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6  
3587  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
3588  /* confdefs.h.  */  /* confdefs.h.  */
3589  _ACEOF  _ACEOF
3590  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
3591  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
3592  /* end confdefs.h.  */  /* end confdefs.h.  */
3593  $ac_includes_default  
3594  #include <gd.h>  /* Override any gcc2 internal prototype to avoid an error.  */
3595    #ifdef __cplusplus
3596    extern "C"
3597    #endif
3598    /* We use char because int might match the return type of a gcc2
3599       builtin and then its argument prototype would still apply.  */
3600    char png_check_sig ();
3601    int
3602    main ()
3603    {
3604    png_check_sig ();
3605      ;
3606      return 0;
3607    }
3608  _ACEOF  _ACEOF
3609  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext conftest$ac_exeext
3610  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3611    (eval $ac_compile) 2>conftest.er1    (eval $ac_link) 2>conftest.er1
3612    ac_status=$?    ac_status=$?
3613    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
3614    rm -f conftest.er1    rm -f conftest.er1
# Line 3686  Line 3622 
3622    ac_status=$?    ac_status=$?
3623    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624    (exit $ac_status); }; } &&    (exit $ac_status); }; } &&
3625           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest$ac_exeext'
3626    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
3628    ac_status=$?    ac_status=$?
3629    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3631    ac_header_compiler=yes    ac_cv_lib_png_png_check_sig=yes
3632  else  else
3633    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3634  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3635    
3636  ac_header_compiler=no  ac_cv_lib_png_png_check_sig=no
3637    fi
3638    rm -f conftest.err conftest.$ac_objext \
3639          conftest$ac_exeext conftest.$ac_ext
3640    LIBS=$ac_check_lib_save_LIBS
3641    fi
3642    echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
3643    echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
3644    if test $ac_cv_lib_png_png_check_sig = yes; then
3645      GD_LIBS="-lpng $GD_LIBS"
3646  fi  fi
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5  
 echo "${ECHO_T}$ac_header_compiler" >&6  
3647    
3648  # Is the header present?          fi
3649  echo "$as_me:$LINENO: checking gd.h presence" >&5  
3650  echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6          save_CFLAGS="$CFLAGS"
3651            CFLAGS="$GD_CFLAGS $CFLAGS"
3652            save_LDFLAGS="$LDFLAGS"
3653            LDFLAGS="$GD_LDFLAGS $LDFLAGS"
3654            save_LIBS="$LIBS"
3655            LIBS="$GD_LIBS $LIBS"
3656    
3657            echo "$as_me:$LINENO: checking for gdImageCreate in -lgd" >&5
3658    echo $ECHO_N "checking for gdImageCreate in -lgd... $ECHO_C" >&6
3659    if test "${ac_cv_lib_gd_gdImageCreate+set}" = set; then
3660      echo $ECHO_N "(cached) $ECHO_C" >&6
3661    else
3662      ac_check_lib_save_LIBS=$LIBS
3663    LIBS="-lgd $GD_LIBS $LIBS"
3664  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
3665  /* confdefs.h.  */  /* confdefs.h.  */
3666  _ACEOF  _ACEOF
3667  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
3668  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
3669  /* end confdefs.h.  */  /* end confdefs.h.  */
3670  #include <gd.h>  
3671    /* Override any gcc2 internal prototype to avoid an error.  */
3672    #ifdef __cplusplus
3673    extern "C"
3674    #endif
3675    /* We use char because int might match the return type of a gcc2
3676       builtin and then its argument prototype would still apply.  */
3677    char gdImageCreate ();
3678    int
3679    main ()
3680    {
3681    gdImageCreate ();
3682      ;
3683      return 0;
3684    }
3685  _ACEOF  _ACEOF
3686  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5  rm -f conftest.$ac_objext conftest$ac_exeext
3687    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3688      (eval $ac_link) 2>conftest.er1
3689    ac_status=$?    ac_status=$?
3690    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
3691    rm -f conftest.er1    rm -f conftest.er1
3692    cat conftest.err >&5    cat conftest.err >&5
3693    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694    (exit $ac_status); } >/dev/null; then    (exit $ac_status); } &&
3695    if test -s conftest.err; then           { ac_try='test -z "$ac_c_werror_flag"
3696      ac_cpp_err=$ac_c_preproc_warn_flag                           || test ! -s conftest.err'
3697      ac_cpp_err=$ac_cpp_err$ac_c_werror_flag    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698    else    (eval $ac_try) 2>&5
3699      ac_cpp_err=    ac_status=$?
3700    fi    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701  else    (exit $ac_status); }; } &&
3702    ac_cpp_err=yes           { ac_try='test -s conftest$ac_exeext'
3703  fi    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704  if test -z "$ac_cpp_err"; then    (eval $ac_try) 2>&5
3705    ac_header_preproc=yes    ac_status=$?
3706      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707      (exit $ac_status); }; }; then
3708      ac_cv_lib_gd_gdImageCreate=yes
3709  else  else
3710    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3711  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3712    
3713    ac_header_preproc=no  ac_cv_lib_gd_gdImageCreate=no
 fi  
 rm -f conftest.err conftest.$ac_ext  
 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5  
 echo "${ECHO_T}$ac_header_preproc" >&6  
   
 # So?  What about this header?  
 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in  
   yes:no: )  
     { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5  
 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5  
 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}  
     ac_header_preproc=yes  
     ;;  
   no:yes:* )  
     { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5  
 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gd.h:     check for missing prerequisite headers?" >&5  
 echo "$as_me: WARNING: gd.h:     check for missing prerequisite headers?" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5  
 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gd.h:     section \"Present But Cannot Be Compiled\"" >&5  
 echo "$as_me: WARNING: gd.h:     section \"Present But Cannot Be Compiled\"" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5  
 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}  
     { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5  
 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}  
     (  
       cat <<\_ASBOX  
 ## ------------------------------------------ ##  
 ## Report this to the AC_PACKAGE_NAME lists.  ##  
 ## ------------------------------------------ ##  
 _ASBOX  
     ) |  
       sed "s/^/$as_me: WARNING:     /" >&2  
     ;;  
 esac  
 echo "$as_me:$LINENO: checking for gd.h" >&5  
 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6  
 if test "${ac_cv_header_gd_h+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_cv_header_gd_h=$ac_header_preproc  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5  
 echo "${ECHO_T}$ac_cv_header_gd_h" >&6  
   
3714  fi  fi
3715  if test $ac_cv_header_gd_h = yes; then  rm -f conftest.err conftest.$ac_objext \
3716     have_gd_h="yes"        conftest$ac_exeext conftest.$ac_ext
3717  else  LIBS=$ac_check_lib_save_LIBS
    have_gd_h="no"  
3718  fi  fi
3719    echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreate" >&5
3720    echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreate" >&6
3721    if test $ac_cv_lib_gd_gdImageCreate = yes; then
3722    
3723    
3724    cat >>confdefs.h <<\_ACEOF
3725    #define HAVE_GD 1
3726    _ACEOF
3727    
3728  if test "$have_gd_h" != "yes"; then                  echo "$as_me:$LINENO: checking for gdImageGif in -lgd" >&5
3729  echo  echo $ECHO_N "checking for gdImageGif in -lgd... $ECHO_C" >&6
3730          echo "** The GD library is required for CvsGraph to function."  if test "${ac_cv_lib_gd_gdImageGif+set}" = set; then
         echo "   Get it from http://www.boutell.com, compile it and"  
         echo "   use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify"  
         echo "   its location. You might also have to use --with-z-inc, --with-z-lib"  
         echo "   and --with-png-inc, --with-png-lib for gd versions 1.6 and higher."  
         echo "   Check config.log for more information on the problem. If your system"  
         echo "   has libgd installed, you probably mis the gd.h header file."  
         exit 1  
 fi  
   
 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5  
 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6  
 if test "${ac_cv_lib_m_sqrt+set}" = set; then  
3731    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3732  else  else
3733    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
3734  LIBS="-lm  $LIBS"  LIBS="-lgd "$GD_LIBS" $LIBS"
3735  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
3736  /* confdefs.h.  */  /* confdefs.h.  */
3737  _ACEOF  _ACEOF
# Line 3826  Line 3745 
3745  #endif  #endif
3746  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3747     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3748  char sqrt ();  char gdImageGif ();
3749  int  int
3750  main ()  main ()
3751  {  {
3752  sqrt ();  gdImageGif ();
3753    ;    ;
3754    return 0;    return 0;
3755  }  }
# Line 3857  Line 3776 
3776    ac_status=$?    ac_status=$?
3777    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3779    ac_cv_lib_m_sqrt=yes    ac_cv_lib_gd_gdImageGif=yes
3780  else  else
3781    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3782  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3783    
3784  ac_cv_lib_m_sqrt=no  ac_cv_lib_gd_gdImageGif=no
3785  fi  fi
3786  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext \
3787        conftest$ac_exeext conftest.$ac_ext        conftest$ac_exeext conftest.$ac_ext
3788  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
3789  fi  fi
3790  echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGif" >&5
3791  echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6  echo "${ECHO_T}$ac_cv_lib_gd_gdImageGif" >&6
3792  if test $ac_cv_lib_m_sqrt = yes; then  if test $ac_cv_lib_gd_gdImageGif = yes; then
3793    
3794          cat >>confdefs.h <<\_ACEOF  cat >>confdefs.h <<\_ACEOF
3795  #define LIBM 1  #define HAVE_GD_GIF 1
3796  _ACEOF  _ACEOF
3797    
         MATHLIBS="-lm"  
   
3798  fi  fi
3799    
3800                    echo "$as_me:$LINENO: checking for gdImageJpeg in -lgd" >&5
3801  echo "$as_me:$LINENO: checking for compress in -lz" >&5  echo $ECHO_N "checking for gdImageJpeg in -lgd... $ECHO_C" >&6
3802  echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6  if test "${ac_cv_lib_gd_gdImageJpeg+set}" = set; then
 if test "${ac_cv_lib_z_compress+set}" = set; then  
3803    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3804  else  else
3805    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
3806  LIBS="-lz ${LIBPATH} ${MATHLIBS}  $LIBS"  LIBS="-lgd "$GD_LIBS" $LIBS"
3807  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
3808  /* confdefs.h.  */  /* confdefs.h.  */
3809  _ACEOF  _ACEOF
# Line 3901  Line 3817 
3817  #endif  #endif
3818  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3819     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3820  char compress ();  char gdImageJpeg ();
3821  int  int
3822  main ()  main ()
3823  {  {
3824  compress ();  gdImageJpeg ();
3825    ;    ;
3826    return 0;    return 0;
3827  }  }
# Line 3932  Line 3848 
3848    ac_status=$?    ac_status=$?
3849    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3851    ac_cv_lib_z_compress=yes    ac_cv_lib_gd_gdImageJpeg=yes
3852  else  else
3853    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3854  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3855    
3856  ac_cv_lib_z_compress=no  ac_cv_lib_gd_gdImageJpeg=no
3857  fi  fi
3858  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext \
3859        conftest$ac_exeext conftest.$ac_ext        conftest$ac_exeext conftest.$ac_ext
3860  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
3861  fi  fi
3862  echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageJpeg" >&5
3863  echo "${ECHO_T}$ac_cv_lib_z_compress" >&6  echo "${ECHO_T}$ac_cv_lib_gd_gdImageJpeg" >&6
3864  if test $ac_cv_lib_z_compress = yes; then  if test $ac_cv_lib_gd_gdImageJpeg = yes; then
   
         ac_have_libz="yes"  
         LIBZ="-lz"  
   
 else  
3865    
3866          ac_have_libz="no"  cat >>confdefs.h <<\_ACEOF
3867    #define HAVE_GD_JPEG 1
3868    _ACEOF
3869    
3870  fi  fi
3871    
3872                    echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
3873  echo "$as_me:$LINENO: checking for FT_Load_Glyph in -lfreetype" >&5  echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6
3874  echo $ECHO_N "checking for FT_Load_Glyph in -lfreetype... $ECHO_C" >&6  if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
 if test "${ac_cv_lib_freetype_FT_Load_Glyph+set}" = set; then  
3875    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3876  else  else
3877    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
3878  LIBS="-lfreetype ${LIBPATH} ${MATHLIBS}  $LIBS"  LIBS="-lgd "$GD_LIBS" $LIBS"
3879  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
3880  /* confdefs.h.  */  /* confdefs.h.  */
3881  _ACEOF  _ACEOF
# Line 3977  Line 3889 
3889  #endif  #endif
3890  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3891     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3892  char FT_Load_Glyph ();  char gdImagePng ();
3893  int  int
3894  main ()  main ()
3895  {  {
3896  FT_Load_Glyph ();  gdImagePng ();
3897    ;    ;
3898    return 0;    return 0;
3899  }  }
# Line 4008  Line 3920 
3920    ac_status=$?    ac_status=$?
3921    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3923    ac_cv_lib_freetype_FT_Load_Glyph=yes    ac_cv_lib_gd_gdImagePng=yes
3924  else  else
3925    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3926  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3927    
3928  ac_cv_lib_freetype_FT_Load_Glyph=no  ac_cv_lib_gd_gdImagePng=no
3929  fi  fi
3930  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext \
3931        conftest$ac_exeext conftest.$ac_ext        conftest$ac_exeext conftest.$ac_ext
3932  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
3933  fi  fi
3934  echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Load_Glyph" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
3935  echo "${ECHO_T}$ac_cv_lib_freetype_FT_Load_Glyph" >&6  echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6
3936  if test $ac_cv_lib_freetype_FT_Load_Glyph = yes; then  if test $ac_cv_lib_gd_gdImagePng = yes; then
   
         ac_have_libfreetype="yes"  
         LIBFT="-lfreetype"  
   
 else  
3937    
3938          ac_have_libfreetype="no"  cat >>confdefs.h <<\_ACEOF
3939    #define HAVE_GD_PNG 1
3940    _ACEOF
3941    
3942  fi  fi
3943    
3944                    echo "$as_me:$LINENO: checking for gdImagePngEx in -lgd" >&5
3945  echo "$as_me:$LINENO: checking for TT_Load_Glyph in -lttf" >&5  echo $ECHO_N "checking for gdImagePngEx in -lgd... $ECHO_C" >&6
3946  echo $ECHO_N "checking for TT_Load_Glyph in -lttf... $ECHO_C" >&6  if test "${ac_cv_lib_gd_gdImagePngEx+set}" = set; then
 if test "${ac_cv_lib_ttf_TT_Load_Glyph+set}" = set; then  
3947    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3948  else  else
3949    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
3950  LIBS="-lttf ${LIBPATH} ${MATHLIBS}  $LIBS"  LIBS="-lgd "$GD_LIBS" $LIBS"
3951  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
3952  /* confdefs.h.  */  /* confdefs.h.  */
3953  _ACEOF  _ACEOF
# Line 4053  Line 3961 
3961  #endif  #endif
3962  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
3963     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
3964  char TT_Load_Glyph ();  char gdImagePngEx ();
3965  int  int
3966  main ()  main ()
3967  {  {
3968  TT_Load_Glyph ();  gdImagePngEx ();
3969    ;    ;
3970    return 0;    return 0;
3971  }  }
# Line 4084  Line 3992 
3992    ac_status=$?    ac_status=$?
3993    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
3995    ac_cv_lib_ttf_TT_Load_Glyph=yes    ac_cv_lib_gd_gdImagePngEx=yes
3996  else  else
3997    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
3998  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
3999    
4000  ac_cv_lib_ttf_TT_Load_Glyph=no  ac_cv_lib_gd_gdImagePngEx=no
4001  fi  fi
4002  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext \
4003        conftest$ac_exeext conftest.$ac_ext        conftest$ac_exeext conftest.$ac_ext
4004  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
4005  fi  fi
4006  echo "$as_me:$LINENO: result: $ac_cv_lib_ttf_TT_Load_Glyph" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePngEx" >&5
4007  echo "${ECHO_T}$ac_cv_lib_ttf_TT_Load_Glyph" >&6  echo "${ECHO_T}$ac_cv_lib_gd_gdImagePngEx" >&6
4008  if test $ac_cv_lib_ttf_TT_Load_Glyph = yes; then  if test $ac_cv_lib_gd_gdImagePngEx = yes; then
   
         ac_have_libttf="yes"  
         LIBTT="-lttf"  
   
 else  
4009    
4010          ac_have_libttf="no"  cat >>confdefs.h <<\_ACEOF
4011    #define HAVE_GD_PNGEX 1
4012    _ACEOF
4013    
4014  fi  fi
4015    
4016                    echo "$as_me:$LINENO: checking for gdImageFilledArc in -lgd" >&5
4017  echo "$as_me:$LINENO: checking for png_create_read_struct  in -lpng" >&5  echo $ECHO_N "checking for gdImageFilledArc in -lgd... $ECHO_C" >&6
4018  echo $ECHO_N "checking for png_create_read_struct  in -lpng... $ECHO_C" >&6  if test "${ac_cv_lib_gd_gdImageFilledArc+set}" = set; then
 if test "${ac_cv_lib_png_png_create_read_struct_+set}" = set; then  
4019    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4020  else  else
4021    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
4022  LIBS="-lpng ${LIBPATH} ${LIBZ} ${MATHLIBS}  $LIBS"  LIBS="-lgd "$GD_LIBS" $LIBS"
4023  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
4024  /* confdefs.h.  */  /* confdefs.h.  */
4025  _ACEOF  _ACEOF
# Line 4129  Line 4033 
4033  #endif  #endif
4034  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4035     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4036  char png_create_read_struct  ();  char gdImageFilledArc ();
4037  int  int
4038  main ()  main ()
4039  {  {
4040  png_create_read_struct  ();  gdImageFilledArc ();
4041    ;    ;
4042    return 0;    return 0;
4043  }  }
# Line 4160  Line 4064 
4064    ac_status=$?    ac_status=$?
4065    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4067    ac_cv_lib_png_png_create_read_struct_=yes    ac_cv_lib_gd_gdImageFilledArc=yes
4068  else  else
4069    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4070  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4071    
4072  ac_cv_lib_png_png_create_read_struct_=no  ac_cv_lib_gd_gdImageFilledArc=no
4073  fi  fi
4074  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext \
4075        conftest$ac_exeext conftest.$ac_ext        conftest$ac_exeext conftest.$ac_ext
4076  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
4077  fi  fi
4078  echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_read_struct_" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageFilledArc" >&5
4079  echo "${ECHO_T}$ac_cv_lib_png_png_create_read_struct_" >&6  echo "${ECHO_T}$ac_cv_lib_gd_gdImageFilledArc" >&6
4080  if test $ac_cv_lib_png_png_create_read_struct_ = yes; then  if test $ac_cv_lib_gd_gdImageFilledArc = yes; then
   
         ac_have_libpng="yes"  
         LIBPNG="-lpng"  
   
 else  
4081    
4082          ac_have_libpng="no"  cat >>confdefs.h <<\_ACEOF
4083    #define HAVE_GD_FILLEDARC 1
4084    _ACEOF
4085    
4086  fi  fi
4087    
4088    
4089  echo "$as_me:$LINENO: checking for jpeg_CreateCompress in -ljpeg" >&5                  if test "$ac_cv_lib_freetype_FT_Load_Glyph" = "yes"
4090  echo $ECHO_N "checking for jpeg_CreateCompress in -ljpeg... $ECHO_C" >&6                  then
4091  if test "${ac_cv_lib_jpeg_jpeg_CreateCompress+set}" = set; then                          echo "$as_me:$LINENO: checking for gdImageStringFT in -lgd" >&5
4092    echo $ECHO_N "checking for gdImageStringFT in -lgd... $ECHO_C" >&6
4093    if test "${ac_cv_lib_gd_gdImageStringFT+set}" = set; then
4094    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4095  else  else
4096    ac_check_lib_save_LIBS=$LIBS    ac_check_lib_save_LIBS=$LIBS
4097  LIBS="-ljpeg ${LIBPATH} ${MATHLIBS}  $LIBS"  LIBS="-lgd "$GD_LIBS" $LIBS"
4098  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
4099  /* confdefs.h.  */  /* confdefs.h.  */
4100  _ACEOF  _ACEOF
# Line 4205  Line 4108 
4108  #endif  #endif
4109  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4110     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4111  char jpeg_CreateCompress ();  char gdImageStringFT ();
4112  int  int
4113  main ()  main ()
4114  {  {
4115  jpeg_CreateCompress ();  gdImageStringFT ();
4116    ;    ;
4117    return 0;    return 0;
4118  }  }
# Line 4236  Line 4139 
4139    ac_status=$?    ac_status=$?
4140    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4142    ac_cv_lib_jpeg_jpeg_CreateCompress=yes    ac_cv_lib_gd_gdImageStringFT=yes
4143  else  else
4144    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4145  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4146    
4147  ac_cv_lib_jpeg_jpeg_CreateCompress=no  ac_cv_lib_gd_gdImageStringFT=no
4148  fi  fi
4149  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext \
4150        conftest$ac_exeext conftest.$ac_ext        conftest$ac_exeext conftest.$ac_ext
4151  LIBS=$ac_check_lib_save_LIBS  LIBS=$ac_check_lib_save_LIBS
4152  fi  fi
4153  echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringFT" >&5
4154  echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6  echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringFT" >&6
4155  if test $ac_cv_lib_jpeg_jpeg_CreateCompress = yes; then  if test $ac_cv_lib_gd_gdImageStringFT = yes; then
   
         ac_have_libjpeg="yes"  
         LIBJPEG="-ljpeg"  
   
 else  
4156    
4157          ac_have_libjpeg="no"  cat >>confdefs.h <<\_ACEOF
4158    #define HAVE_GD_STRINGFT 1
4159    _ACEOF
4160    
4161  fi  fi
4162    
4163                    fi
4164  OLIBS="${LIBS}"                  if test "$ac_cv_lib_ttf_TT_Load_Glyph" = "yes"
4165  LIBS="${LIBS} ${MATHLIB}"                  then
4166  echo "$as_me:$LINENO: checking \"whether libpng needs -lz\"" >&5                          echo "$as_me:$LINENO: checking for gdImageStringTTF in -lgd" >&5
4167  echo $ECHO_N "checking \"whether libpng needs -lz\"... $ECHO_C" >&6  echo $ECHO_N "checking for gdImageStringTTF in -lgd... $ECHO_C" >&6
4168  if test "${ac_cv_png_needs_z+set}" = set; then  if test "${ac_cv_lib_gd_gdImageStringTTF+set}" = set; then
4169    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4170  else  else
4171    cat >conftest.$ac_ext <<_ACEOF    ac_check_lib_save_LIBS=$LIBS
4172    LIBS="-lgd "$GD_LIBS" $LIBS"
4173    cat >conftest.$ac_ext <<_ACEOF
4174  /* confdefs.h.  */  /* confdefs.h.  */
4175  _ACEOF  _ACEOF
4176  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
# Line 4281  Line 4183 
4183  #endif  #endif
4184  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
4185     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
4186  char png_create_read_struct ();  char gdImageStringTTF ();
4187  int  int
4188  main ()  main ()
4189  {  {
4190  png_create_read_struct ();  gdImageStringTTF ();
4191    ;    ;
4192    return 0;    return 0;
4193  }  }
# Line 4312  Line 4214 
4214    ac_status=$?    ac_status=$?
4215    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4217      ac_cv_lib_gd_gdImageStringTTF=yes
         ac_cv_png_needs_z="no"  
   
4218  else  else
4219    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4220  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4221    
4222    ac_cv_lib_gd_gdImageStringTTF=no
         ac_cv_png_needs_z="yes"  
   
4223  fi  fi
4224  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext \
4225        conftest$ac_exeext conftest.$ac_ext        conftest$ac_exeext conftest.$ac_ext
4226    LIBS=$ac_check_lib_save_LIBS
4227    fi
4228    echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringTTF" >&5
4229    echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringTTF" >&6
4230    if test $ac_cv_lib_gd_gdImageStringTTF = yes; then
4231    
4232    cat >>confdefs.h <<\_ACEOF
4233    #define HAVE_GD_STRINGTTF 1
4234    _ACEOF
4235    
4236    fi
4237    
4238                    fi
4239                    GD_LIBS="-lgd $GD_LIBS"
4240    
4241  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_png_needs_z" >&5  
 echo "${ECHO_T}$ac_cv_png_needs_z" >&6  
 LIBS="${OLIBS}"  
4242    
4243    
4244  OLIBS="${LIBS}"          CFLAGS="$save_CFLAGS"
4245  LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBJPEG} ${MATHLIB}"          LDFLAGS="$save_LDFLAGS"
4246  echo "$as_me:$LINENO: checking \"whether libgd needs -lpng\"" >&5          if test -n "$GDLIB_CONFIG"; then
4247  echo $ECHO_N "checking \"whether libgd needs -lpng\"... $ECHO_C" >&6                  LIBS="$GD_LIBS"
4248  if test "${ac_cv_gd_needs_png+set}" = set; then          else
4249                    LIBS="$GD_LIBS $LIBS"
4250            fi
4251    
4252    
4253    
4254    
4255    
4256    # Checks for header files.
4257    ac_ext=c
4258    ac_cpp='$CPP $CPPFLAGS'
4259    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261    ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262    echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4263    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4264    # On Suns, sometimes $CPP names a directory.
4265    if test -n "$CPP" && test -d "$CPP"; then
4266      CPP=
4267    fi
4268    if test -z "$CPP"; then
4269      if test "${ac_cv_prog_CPP+set}" = set; then
4270    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4271  else  else
4272          # Double quotes because CPP needs to be expanded
4273        for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4274        do
4275          ac_preproc_ok=false
4276    for ac_c_preproc_warn_flag in '' yes
4277    do
4278      # Use a header file that comes with gcc, so configuring glibc
4279      # with a fresh cross-compiler works.
4280      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4281      # <limits.h> exists even on freestanding compilers.
4282      # On the NeXT, cc -E runs the code through the compiler's parser,
4283      # not just through cpp. "Syntax error" is here to catch this case.
4284    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4285  /* confdefs.h.  */  /* confdefs.h.  */
4286  _ACEOF  _ACEOF
4287  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4288  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4289  /* end confdefs.h.  */  /* end confdefs.h.  */
4290    #ifdef __STDC__
4291  /* Override any gcc2 internal prototype to avoid an error.  */  # include <limits.h>
4292  #ifdef __cplusplus  #else
4293  extern "C"  # include <assert.h>
4294  #endif  #endif
4295  /* We use char because int might match the return type of a gcc2                       Syntax error
    builtin and then its argument prototype would still apply.  */  
 char gdImagePng ();  
 int  
 main ()  
 {  
 gdImagePng ();  
   ;  
   return 0;  
 }  
4296  _ACEOF  _ACEOF
4297  rm -f conftest.$ac_objext conftest$ac_exeext  if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4298  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
   (eval $ac_link) 2>conftest.er1  
4299    ac_status=$?    ac_status=$?
4300    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
4301    rm -f conftest.er1    rm -f conftest.er1
4302    cat conftest.err >&5    cat conftest.err >&5
4303    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304    (exit $ac_status); } &&    (exit $ac_status); } >/dev/null; then
4305           { ac_try='test -z "$ac_c_werror_flag"    if test -s conftest.err; then
4306                           || test ! -s conftest.err'      ac_cpp_err=$ac_c_preproc_warn_flag
4307    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5      ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4308    (eval $ac_try) 2>&5    else
4309        ac_cpp_err=
4310      fi
4311    else
4312      ac_cpp_err=yes
4313    fi
4314    if test -z "$ac_cpp_err"; then
4315      :
4316    else
4317      echo "$as_me: failed program was:" >&5
4318    sed 's/^/| /' conftest.$ac_ext >&5
4319    
4320      # Broken: fails on valid input.
4321    continue
4322    fi
4323    rm -f conftest.err conftest.$ac_ext
4324    
4325      # OK, works on sane cases.  Now check whether non-existent headers
4326      # can be detected and how.
4327      cat >conftest.$ac_ext <<_ACEOF
4328    /* confdefs.h.  */
4329    _ACEOF
4330    cat confdefs.h >>conftest.$ac_ext
4331    cat >>conftest.$ac_ext <<_ACEOF
4332    /* end confdefs.h.  */
4333    #include <ac_nonexistent.h>
4334    _ACEOF
4335    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4336      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4337    ac_status=$?    ac_status=$?
4338      grep -v '^ *+' conftest.er1 >conftest.err
4339      rm -f conftest.er1
4340      cat conftest.err >&5
4341    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342    (exit $ac_status); }; } &&    (exit $ac_status); } >/dev/null; then
4343           { ac_try='test -s conftest$ac_exeext'    if test -s conftest.err; then
4344    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5      ac_cpp_err=$ac_c_preproc_warn_flag
4345    (eval $ac_try) 2>&5      ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4346      else
4347        ac_cpp_err=
4348      fi
4349    else
4350      ac_cpp_err=yes
4351    fi
4352    if test -z "$ac_cpp_err"; then
4353      # Broken: success on invalid input.
4354    continue
4355    else
4356      echo "$as_me: failed program was:" >&5
4357    sed 's/^/| /' conftest.$ac_ext >&5
4358    
4359      # Passes both tests.
4360    ac_preproc_ok=:
4361    break
4362    fi
4363    rm -f conftest.err conftest.$ac_ext
4364    
4365    done
4366    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4367    rm -f conftest.err conftest.$ac_ext
4368    if $ac_preproc_ok; then
4369      break
4370    fi
4371    
4372        done
4373        ac_cv_prog_CPP=$CPP
4374    
4375    fi
4376      CPP=$ac_cv_prog_CPP
4377    else
4378      ac_cv_prog_CPP=$CPP
4379    fi
4380    echo "$as_me:$LINENO: result: $CPP" >&5
4381    echo "${ECHO_T}$CPP" >&6
4382    ac_preproc_ok=false
4383    for ac_c_preproc_warn_flag in '' yes
4384    do
4385      # Use a header file that comes with gcc, so configuring glibc
4386      # with a fresh cross-compiler works.
4387      # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4388      # <limits.h> exists even on freestanding compilers.
4389      # On the NeXT, cc -E runs the code through the compiler's parser,
4390      # not just through cpp. "Syntax error" is here to catch this case.
4391      cat >conftest.$ac_ext <<_ACEOF
4392    /* confdefs.h.  */
4393    _ACEOF
4394    cat confdefs.h >>conftest.$ac_ext
4395    cat >>conftest.$ac_ext <<_ACEOF
4396    /* end confdefs.h.  */
4397    #ifdef __STDC__
4398    # include <limits.h>
4399    #else
4400    # include <assert.h>
4401    #endif
4402                         Syntax error
4403    _ACEOF
4404    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4405      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4406    ac_status=$?    ac_status=$?
4407      grep -v '^ *+' conftest.er1 >conftest.err
4408      rm -f conftest.er1
4409      cat conftest.err >&5
4410    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411    (exit $ac_status); }; }; then    (exit $ac_status); } >/dev/null; then
4412      if test -s conftest.err; then
4413        ac_cpp_err=$ac_c_preproc_warn_flag
4414        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4415      else
4416        ac_cpp_err=
4417      fi
4418    else
4419      ac_cpp_err=yes
4420    fi
4421    if test -z "$ac_cpp_err"; then
4422      :
4423    else
4424      echo "$as_me: failed program was:" >&5
4425    sed 's/^/| /' conftest.$ac_ext >&5
4426    
4427      # Broken: fails on valid input.
4428    continue
4429    fi
4430    rm -f conftest.err conftest.$ac_ext
4431    
4432      # OK, works on sane cases.  Now check whether non-existent headers
4433      # can be detected and how.
4434      cat >conftest.$ac_ext <<_ACEOF
4435    /* confdefs.h.  */
4436    _ACEOF
4437    cat confdefs.h >>conftest.$ac_ext
4438    cat >>conftest.$ac_ext <<_ACEOF
4439    /* end confdefs.h.  */
4440    #include <ac_nonexistent.h>
4441    _ACEOF
4442    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4443      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4444      ac_status=$?
4445      grep -v '^ *+' conftest.er1 >conftest.err
4446      rm -f conftest.er1
4447      cat conftest.err >&5
4448      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449      (exit $ac_status); } >/dev/null; then
4450      if test -s conftest.err; then
4451        ac_cpp_err=$ac_c_preproc_warn_flag
4452        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4453      else
4454        ac_cpp_err=
4455      fi
4456    else
4457      ac_cpp_err=yes
4458    fi
4459    if test -z "$ac_cpp_err"; then
4460      # Broken: success on invalid input.
4461    continue
4462    else
4463      echo "$as_me: failed program was:" >&5
4464    sed 's/^/| /' conftest.$ac_ext >&5
4465    
4466          ac_cv_gd_needs_png="no"    # Passes both tests.
4467    ac_preproc_ok=:
4468    break
4469    fi
4470    rm -f conftest.err conftest.$ac_ext
4471    
4472    done
4473    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4474    rm -f conftest.err conftest.$ac_ext
4475    if $ac_preproc_ok; then
4476      :
4477  else  else
4478    echo "$as_me: failed program was:" >&5    { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4479  sed 's/^/| /' conftest.$ac_ext >&5  See \`config.log' for more details." >&5
4480    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4481    See \`config.log' for more details." >&2;}
4482       { (exit 1); exit 1; }; }
4483    fi
4484    
4485    ac_ext=c
4486    ac_cpp='$CPP $CPPFLAGS'
4487    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489    ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490    
         ac_cv_gd_needs_png="yes"  
4491    
4492    echo "$as_me:$LINENO: checking for egrep" >&5
4493    echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4494    if test "${ac_cv_prog_egrep+set}" = set; then
4495      echo $ECHO_N "(cached) $ECHO_C" >&6
4496    else
4497      if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4498        then ac_cv_prog_egrep='grep -E'
4499        else ac_cv_prog_egrep='egrep'
4500        fi
4501  fi  fi
4502  rm -f conftest.err conftest.$ac_objext \  echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4503        conftest$ac_exeext conftest.$ac_ext  echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4504  fi   EGREP=$ac_cv_prog_egrep
4505  echo "$as_me:$LINENO: result: $ac_cv_gd_needs_png" >&5  
4506  echo "${ECHO_T}$ac_cv_gd_needs_png" >&6  
4507  LIBS="${OLIBS}"  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4508    echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4509  OLIBS="${LIBS}"  if test "${ac_cv_header_stdc+set}" = set; then
 LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBPNG} ${LIBZ} ${MATHLIB}"  
 echo "$as_me:$LINENO: checking \"whether libgd needs -ljpeg\"" >&5  
 echo $ECHO_N "checking \"whether libgd needs -ljpeg\"... $ECHO_C" >&6  
 if test "${ac_cv_gd_needs_jpeg+set}" = set; then  
4510    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4511  else  else
4512    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
# Line 4413  Line 4515 
4515  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4516  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4517  /* end confdefs.h.  */  /* end confdefs.h.  */
4518    #include <stdlib.h>
4519    #include <stdarg.h>
4520    #include <string.h>
4521    #include <float.h>
4522    
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char gdImageJpeg ();  
4523  int  int
4524  main ()  main ()
4525  {  {
4526  gdImageJpeg ();  
4527    ;    ;
4528    return 0;    return 0;
4529  }  }
4530  _ACEOF  _ACEOF
4531  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext
4532  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533    (eval $ac_link) 2>conftest.er1    (eval $ac_compile) 2>conftest.er1
4534    ac_status=$?    ac_status=$?
4535    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
4536    rm -f conftest.er1    rm -f conftest.er1
# Line 4445  Line 4544 
4544    ac_status=$?    ac_status=$?
4545    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546    (exit $ac_status); }; } &&    (exit $ac_status); }; } &&
4547           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest.$ac_objext'
4548    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4550    ac_status=$?    ac_status=$?
4551    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4553      ac_cv_header_stdc=yes
         ac_cv_gd_needs_jpeg="no"  
   
4554  else  else
4555    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4556  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4557    
4558    ac_cv_header_stdc=no
         ac_cv_gd_needs_jpeg="yes"  
   
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
4559  fi  fi
4560  echo "$as_me:$LINENO: result: $ac_cv_gd_needs_jpeg" >&5  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4561  echo "${ECHO_T}$ac_cv_gd_needs_jpeg" >&6  
4562  LIBS="${OLIBS}"  if test $ac_cv_header_stdc = yes; then
4563      # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 OLIBS="${LIBS}"  
 LIBS="${LIBS} ${LIBFT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"  
 echo "$as_me:$LINENO: checking \"whether libgd needs -lttf\"" >&5  
 echo $ECHO_N "checking \"whether libgd needs -lttf\"... $ECHO_C" >&6  
 if test "${ac_cv_gd_needs_ttf+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
4564    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4565  /* confdefs.h.  */  /* confdefs.h.  */
4566  _ACEOF  _ACEOF
4567  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4568  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4569  /* end confdefs.h.  */  /* end confdefs.h.  */
4570    #include <string.h>
4571    
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char gdImageStringTTF ();  
 int  
 main ()  
 {  
 gdImageStringTTF ();  
   ;  
   return 0;  
 }  
4572  _ACEOF  _ACEOF
4573  rm -f conftest.$ac_objext conftest$ac_exeext  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4574  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5    $EGREP "memchr" >/dev/null 2>&1; then
4575    (eval $ac_link) 2>conftest.er1    :
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   
         ac_cv_gd_needs_ttf="no"  
   
4576  else  else
4577    echo "$as_me: failed program was:" >&5    ac_cv_header_stdc=no
4578  sed 's/^/| /' conftest.$ac_ext >&5  fi
4579    rm -f conftest*
4580    
4581    fi
4582    
4583          ac_cv_gd_needs_ttf="yes"  if test $ac_cv_header_stdc = yes; then
4584      # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4585      cat >conftest.$ac_ext <<_ACEOF
4586    /* confdefs.h.  */
4587    _ACEOF
4588    cat confdefs.h >>conftest.$ac_ext
4589    cat >>conftest.$ac_ext <<_ACEOF
4590    /* end confdefs.h.  */
4591    #include <stdlib.h>
4592    
4593    _ACEOF
4594    if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4595      $EGREP "free" >/dev/null 2>&1; then
4596      :
4597    else
4598      ac_cv_header_stdc=no
4599  fi  fi
4600  rm -f conftest.err conftest.$ac_objext \  rm -f conftest*
4601        conftest$ac_exeext conftest.$ac_ext  
4602  fi  fi
4603  echo "$as_me:$LINENO: result: $ac_cv_gd_needs_ttf" >&5  
4604  echo "${ECHO_T}$ac_cv_gd_needs_ttf" >&6  if test $ac_cv_header_stdc = yes; then
4605  LIBS="${OLIBS}"    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4606      if test "$cross_compiling" = yes; then
4607  OLIBS="${LIBS}"    :
 LIBS="${LIBS} ${LIBTT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"  
 echo "$as_me:$LINENO: checking \"whether libgd needs -lfreetype\"" >&5  
 echo $ECHO_N "checking \"whether libgd needs -lfreetype\"... $ECHO_C" >&6  
 if test "${ac_cv_gd_needs_freetype+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
4608  else  else
4609    cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
4610  /* confdefs.h.  */  /* confdefs.h.  */
# Line 4551  Line 4612 
4612  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4613  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4614  /* end confdefs.h.  */  /* end confdefs.h.  */
4615    #include <ctype.h>
4616  /* Override any gcc2 internal prototype to avoid an error.  */  #if ((' ' & 0x0FF) == 0x020)
4617  #ifdef __cplusplus  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4618  extern "C"  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4619    #else
4620    # define ISLOWER(c) \
4621                       (('a' <= (c) && (c) <= 'i') \
4622                         || ('j' <= (c) && (c) <= 'r') \
4623                         || ('s' <= (c) && (c) <= 'z'))
4624    # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4625  #endif  #endif
4626  /* We use char because int might match the return type of a gcc2  
4627     builtin and then its argument prototype would still apply.  */  #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 char gdImageStringFT ();  
4628  int  int
4629  main ()  main ()
4630  {  {
4631  gdImageStringFT ();    int i;
4632    ;    for (i = 0; i < 256; i++)
4633    return 0;      if (XOR (islower (i), ISLOWER (i))
4634            || toupper (i) != TOUPPER (i))
4635          exit(2);
4636      exit (0);
4637  }  }
4638  _ACEOF  _ACEOF
4639  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest$ac_exeext
4640  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4641    (eval $ac_link) 2>conftest.er1    (eval $ac_link) 2>&5
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
4642    ac_status=$?    ac_status=$?
4643    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644    (exit $ac_status); }; } &&    (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
          { ac_try='test -s conftest$ac_exeext'  
4645    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4647    ac_status=$?    ac_status=$?
4648    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4650      :
         ac_cv_gd_needs_freetype="no"  
   
4651  else  else
4652    echo "$as_me: failed program was:" >&5    echo "$as_me: program exited with status $ac_status" >&5
4653    echo "$as_me: failed program was:" >&5
4654  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4655    
4656    ( exit $ac_status )
4657          ac_cv_gd_needs_freetype="yes"  ac_cv_header_stdc=no
   
4658  fi  fi
4659  rm -f conftest.err conftest.$ac_objext \  rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
       conftest$ac_exeext conftest.$ac_ext  
4660  fi  fi
 echo "$as_me:$LINENO: result: $ac_cv_gd_needs_freetype" >&5  
 echo "${ECHO_T}$ac_cv_gd_needs_freetype" >&6  
 LIBS="${OLIBS}"  
   
 if test "$ac_cv_gd_needs_freetype" = "yes"  
 then  
         if test "$ac_have_libfreetype" != "yes" -a "$ac_have_libttf" != "yes"  
         then  
                 echo "** WARNING: Required library libfreetype not found"  
         fi  
         LIBS="${LIBS} ${LIBFT}"  
4661  fi  fi
   
 if test "$ac_cv_gd_needs_ttf" = "yes"  
 then  
         if test "$ac_have_libttf" != "yes" -a "$ac_have_libfreetype" != "yes"  
         then  
                 echo "** WARNING: Required library libttf not found"  
         fi  
         LIBS="${LIBS} ${LIBTT}"  
4662  fi  fi
4663    echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4664    echo "${ECHO_T}$ac_cv_header_stdc" >&6
4665    if test $ac_cv_header_stdc = yes; then
4666    
4667  if test "$ac_cv_gd_needs_jpeg" = "yes"  cat >>confdefs.h <<\_ACEOF
4668  then  #define STDC_HEADERS 1
4669          if test "$ac_have_libjpeg" != "yes"  _ACEOF
         then  
                 echo "** WARNING: Required library libjpeg not found"  
         fi  
         LIBS="${LIBS} ${LIBJPEG}"  
 fi  
4670    
 if test "$ac_cv_gd_needs_png" = "yes"  
 then  
         if test "$ac_have_libpng" != "yes"  
         then  
                 echo "** WARNING: Required library libpng not found"  
         fi  
         LIBS="${LIBS} ${LIBPNG}"  
         if test "$ac_cv_png_needs_z" = "yes"  
         then  
                 if test "$ac_have_libz" != "yes"  
                 then  
                         echo "** WARNING: Required library libz not found"  
                 fi  
                 LIBS="${LIBS} ${LIBZ}"  
         fi  
4671  fi  fi
4672    
4673  LIBS="${LIBS} ${MATHLIBS}"  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4674    
4675  echo "$as_me:$LINENO: checking for gdImageGif in -lgd" >&5  
4676  echo $ECHO_N "checking for gdImageGif in -lgd... $ECHO_C" >&6  
4677  if test "${ac_cv_lib_gd_gdImageGif+set}" = set; then  
4678    
4679    
4680    
4681    
4682    
4683    for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4684                      inttypes.h stdint.h unistd.h
4685    do
4686    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4687    echo "$as_me:$LINENO: checking for $ac_header" >&5
4688    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4689    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4690    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4691  else  else
4692    ac_check_lib_save_LIBS=$LIBS    cat >conftest.$ac_ext <<_ACEOF
 LIBS="-lgd  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
4693  /* confdefs.h.  */  /* confdefs.h.  */
4694  _ACEOF  _ACEOF
4695  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4696  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4697  /* end confdefs.h.  */  /* end confdefs.h.  */
4698    $ac_includes_default
4699  /* Override any gcc2 internal prototype to avoid an error.  */  
4700  #ifdef __cplusplus  #include <$ac_header>
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char gdImageGif ();  
 int  
 main ()  
 {  
 gdImageGif ();  
   ;  
   return 0;  
 }  
4701  _ACEOF  _ACEOF
4702  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext
4703  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704    (eval $ac_link) 2>conftest.er1    (eval $ac_compile) 2>conftest.er1
4705    ac_status=$?    ac_status=$?
4706    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
4707    rm -f conftest.er1    rm -f conftest.er1
# Line 4698  Line 4715 
4715    ac_status=$?    ac_status=$?
4716    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717    (exit $ac_status); }; } &&    (exit $ac_status); }; } &&
4718           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest.$ac_objext'
4719    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4721    ac_status=$?    ac_status=$?
4722    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4724    ac_cv_lib_gd_gdImageGif=yes    eval "$as_ac_Header=yes"
4725  else  else
4726    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4727  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4728    
4729  ac_cv_lib_gd_gdImageGif=no  eval "$as_ac_Header=no"
4730  fi  fi
4731  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
4732  fi  fi
4733  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGif" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4734  echo "${ECHO_T}$ac_cv_lib_gd_gdImageGif" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4735  if test $ac_cv_lib_gd_gdImageGif = yes; then  if test `eval echo '${'$as_ac_Header'}'` = yes; then
4736      cat >>confdefs.h <<_ACEOF
4737          cat >>confdefs.h <<\_ACEOF  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 #define HAVE_IMAGE_GIF 1  
4738  _ACEOF  _ACEOF
4739    
4740          have_gifs="yes"  fi
4741    
4742  else  done
   have_gifs="no"  
4743    
 fi  
4744    
4745    
4746    
4747  echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5  
4748  echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6  for ac_header in getopt.h sys/wait.h gd.h
4749  if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then  do
4750    as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4751    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4752      echo "$as_me:$LINENO: checking for $ac_header" >&5
4753    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4754    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4755    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4756    fi
4757    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4758    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4759  else  else
4760    ac_check_lib_save_LIBS=$LIBS    # Is the header compilable?
4761  LIBS="-lgd  $LIBS"  echo "$as_me:$LINENO: checking $ac_header usability" >&5
4762    echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4763  cat >conftest.$ac_ext <<_ACEOF  cat >conftest.$ac_ext <<_ACEOF
4764  /* confdefs.h.  */  /* confdefs.h.  */
4765  _ACEOF  _ACEOF
4766  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4767  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4768  /* end confdefs.h.  */  /* end confdefs.h.  */
4769    $ac_includes_default
4770  /* Override any gcc2 internal prototype to avoid an error.  */  #include <$ac_header>
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char gdImagePng ();  
 int  
 main ()  
 {  
 gdImagePng ();  
   ;  
   return 0;  
 }  
4771  _ACEOF  _ACEOF
4772  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext
4773  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774    (eval $ac_link) 2>conftest.er1    (eval $ac_compile) 2>conftest.er1
4775    ac_status=$?    ac_status=$?
4776    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
4777    rm -f conftest.er1    rm -f conftest.er1
# Line 4777  Line 4785 
4785    ac_status=$?    ac_status=$?
4786    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787    (exit $ac_status); }; } &&    (exit $ac_status); }; } &&
4788           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest.$ac_objext'
4789    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4791    ac_status=$?    ac_status=$?
4792    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4794    ac_cv_lib_gd_gdImagePng=yes    ac_header_compiler=yes
4795  else  else
4796    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4797  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4798    
4799  ac_cv_lib_gd_gdImagePng=no  ac_header_compiler=no
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
4800  fi  fi
4801  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4802  echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6  echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4803  if test $ac_cv_lib_gd_gdImagePng = yes; then  echo "${ECHO_T}$ac_header_compiler" >&6
4804    
4805          cat >>confdefs.h <<\_ACEOF  # Is the header present?
4806  #define HAVE_IMAGE_PNG 1  echo "$as_me:$LINENO: checking $ac_header presence" >&5
4807    echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4808    cat >conftest.$ac_ext <<_ACEOF
4809    /* confdefs.h.  */
4810    _ACEOF
4811    cat confdefs.h >>conftest.$ac_ext
4812    cat >>conftest.$ac_ext <<_ACEOF
4813    /* end confdefs.h.  */
4814    #include <$ac_header>
4815  _ACEOF  _ACEOF
4816    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4817      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4818      ac_status=$?
4819      grep -v '^ *+' conftest.er1 >conftest.err
4820      rm -f conftest.er1
4821      cat conftest.err >&5
4822      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823      (exit $ac_status); } >/dev/null; then
4824      if test -s conftest.err; then
4825        ac_cpp_err=$ac_c_preproc_warn_flag
4826        ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4827      else
4828        ac_cpp_err=
4829      fi
4830    else
4831      ac_cpp_err=yes
4832    fi
4833    if test -z "$ac_cpp_err"; then
4834      ac_header_preproc=yes
4835    else
4836      echo "$as_me: failed program was:" >&5
4837    sed 's/^/| /' conftest.$ac_ext >&5
4838    
4839      ac_header_preproc=no
4840    fi
4841    rm -f conftest.err conftest.$ac_ext
4842    echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4843    echo "${ECHO_T}$ac_header_preproc" >&6
4844    
4845    # So?  What about this header?
4846    case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4847      yes:no: )
4848        { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4849    echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4850        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4851    echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4852        ac_header_preproc=yes
4853        ;;
4854      no:yes:* )
4855        { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4856    echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4857        { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4858    echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4859        { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4860    echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4861        { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4862    echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4863        { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4864    echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4865        { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4866    echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4867        (
4868          cat <<\_ASBOX
4869    ## ------------------------------------ ##
4870    ## Report this to cvsgraph@akhphd.au.dk ##
4871    ## ------------------------------------ ##
4872    _ASBOX
4873        ) |
4874          sed "s/^/$as_me: WARNING:     /" >&2
4875        ;;
4876    esac
4877    echo "$as_me:$LINENO: checking for $ac_header" >&5
4878    echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4879    if eval "test \"\${$as_ac_Header+set}\" = set"; then
4880      echo $ECHO_N "(cached) $ECHO_C" >&6
4881    else
4882      eval "$as_ac_Header=\$ac_header_preproc"
4883    fi
4884    echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4885    echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4886    
4887    fi
4888    if test `eval echo '${'$as_ac_Header'}'` = yes; then
4889      cat >>confdefs.h <<_ACEOF
4890    #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4891    _ACEOF
4892    
4893  fi  fi
4894    
4895  echo "$as_me:$LINENO: checking for gdImagePngEx in -lgd" >&5  done
4896  echo $ECHO_N "checking for gdImagePngEx in -lgd... $ECHO_C" >&6  
4897  if test "${ac_cv_lib_gd_gdImagePngEx+set}" = set; then  
4898    # Checks for typedefs, structures, and compiler characteristics.
4899    echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4900    echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4901    if test "${ac_cv_c_const+set}" = set; then
4902    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4903  else  else
4904    ac_check_lib_save_LIBS=$LIBS    cat >conftest.$ac_ext <<_ACEOF
 LIBS="-lgd  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
4905  /* confdefs.h.  */  /* confdefs.h.  */
4906  _ACEOF  _ACEOF
4907  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
4908  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
4909  /* end confdefs.h.  */  /* end confdefs.h.  */
4910    
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char gdImagePngEx ();  
4911  int  int
4912  main ()  main ()
4913  {  {
4914  gdImagePngEx ();  /* FIXME: Include the comments suggested by Paul. */
4915    #ifndef __cplusplus
4916      /* Ultrix mips cc rejects this.  */
4917      typedef int charset[2];
4918      const charset x;
4919      /* SunOS 4.1.1 cc rejects this.  */
4920      char const *const *ccp;
4921      char **p;
4922      /* NEC SVR4.0.2 mips cc rejects this.  */
4923      struct point {int x, y;};
4924      static struct point const zero = {0,0};
4925      /* AIX XL C 1.02.0.0 rejects this.
4926         It does not let you subtract one const X* pointer from another in
4927         an arm of an if-expression whose if-part is not a constant
4928         expression */
4929      const char *g = "string";
4930      ccp = &g + (g ? g-g : 0);
4931      /* HPUX 7.0 cc rejects these. */
4932      ++ccp;
4933      p = (char**) ccp;
4934      ccp = (char const *const *) p;
4935      { /* SCO 3.2v4 cc rejects this.  */
4936        char *t;
4937        char const *s = 0 ? (char *) 0 : (char const *) 0;
4938    
4939        *t++ = 0;
4940      }
4941      { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4942        int x[] = {25, 17};
4943        const int *foo = &x[0];
4944        ++foo;
4945      }
4946      { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4947        typedef const int *iptr;
4948        iptr p = 0;
4949        ++p;
4950      }
4951      { /* AIX XL C 1.02.0.0 rejects this saying
4952           "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4953        struct s { int j; const int *ap[3]; };
4954        struct s *b; b->j = 5;
4955      }
4956      { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4957        const int foo = 10;
4958      }
4959    #endif
4960    
4961    ;    ;
4962    return 0;    return 0;
4963  }  }
4964  _ACEOF  _ACEOF
4965  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext
4966  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967    (eval $ac_link) 2>conftest.er1    (eval $ac_compile) 2>conftest.er1
4968    ac_status=$?    ac_status=$?
4969    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
4970    rm -f conftest.er1    rm -f conftest.er1
# Line 4850  Line 4978 
4978    ac_status=$?    ac_status=$?
4979    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980    (exit $ac_status); }; } &&    (exit $ac_status); }; } &&
4981           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest.$ac_objext'
4982    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
4984    ac_status=$?    ac_status=$?
4985    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
4987    ac_cv_lib_gd_gdImagePngEx=yes    ac_cv_c_const=yes
4988  else  else
4989    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
4990  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
4991    
4992  ac_cv_lib_gd_gdImagePngEx=no  ac_cv_c_const=no
4993  fi  fi
4994  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
4995  fi  fi
4996  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePngEx" >&5  echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4997  echo "${ECHO_T}$ac_cv_lib_gd_gdImagePngEx" >&6  echo "${ECHO_T}$ac_cv_c_const" >&6
4998  if test $ac_cv_lib_gd_gdImagePngEx = yes; then  if test $ac_cv_c_const = no; then
4999    
5000          cat >>confdefs.h <<\_ACEOF  cat >>confdefs.h <<\_ACEOF
5001  #define HAVE_GDIMAGEPNGEX 1  #define const
5002  _ACEOF  _ACEOF
5003    
   
5004  fi  fi
5005    
5006  echo "$as_me:$LINENO: checking for gdImageJpeg in -lgd" >&5  echo "$as_me:$LINENO: checking for inline" >&5
5007  echo $ECHO_N "checking for gdImageJpeg in -lgd... $ECHO_C" >&6  echo $ECHO_N "checking for inline... $ECHO_C" >&6
5008  if test "${ac_cv_lib_gd_gdImageJpeg+set}" = set; then  if test "${ac_cv_c_inline+set}" = set; then
5009    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5010  else  else
5011    ac_check_lib_save_LIBS=$LIBS    ac_cv_c_inline=no
5012  LIBS="-lgd  $LIBS"  for ac_kw in inline __inline__ __inline; do
5013  cat >conftest.$ac_ext <<_ACEOF    cat >conftest.$ac_ext <<_ACEOF
5014  /* confdefs.h.  */  /* confdefs.h.  */
5015  _ACEOF  _ACEOF
5016  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
5017  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
5018  /* end confdefs.h.  */  /* end confdefs.h.  */
5019    #ifndef __cplusplus
5020  /* Override any gcc2 internal prototype to avoid an error.  */  typedef int foo_t;
5021  #ifdef __cplusplus  static $ac_kw foo_t static_foo () {return 0; }
5022  extern "C"  $ac_kw foo_t foo () {return 0; }
5023  #endif  #endif
5024  /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char gdImageJpeg ();  
 int  
 main ()  
 {  
 gdImageJpeg ();  
   ;  
   return 0;  
 }  
5025  _ACEOF  _ACEOF
5026  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext
5027  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028    (eval $ac_link) 2>conftest.er1    (eval $ac_compile) 2>conftest.er1
5029    ac_status=$?    ac_status=$?
5030    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
5031    rm -f conftest.er1    rm -f conftest.er1
# Line 4923  Line 5039 
5039    ac_status=$?    ac_status=$?
5040    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041    (exit $ac_status); }; } &&    (exit $ac_status); }; } &&
5042           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest.$ac_objext'
5043    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5045    ac_status=$?    ac_status=$?
5046    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5048    ac_cv_lib_gd_gdImageJpeg=yes    ac_cv_c_inline=$ac_kw; break
5049  else  else
5050    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
5051  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
5052    
 ac_cv_lib_gd_gdImageJpeg=no  
5053  fi  fi
5054  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5055        conftest$ac_exeext conftest.$ac_ext  done
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageJpeg" >&5  
 echo "${ECHO_T}$ac_cv_lib_gd_gdImageJpeg" >&6  
 if test $ac_cv_lib_gd_gdImageJpeg = yes; then  
5056    
5057          cat >>confdefs.h <<\_ACEOF  fi
5058  #define HAVE_IMAGE_JPEG 1  echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5059  _ACEOF  echo "${ECHO_T}$ac_cv_c_inline" >&6
5060    
5061    
5062  fi  case $ac_cv_c_inline in
5063      inline | yes) ;;
5064      *)
5065        case $ac_cv_c_inline in
5066          no) ac_val=;;
5067          *) ac_val=$ac_cv_c_inline;;
5068        esac
5069        cat >>confdefs.h <<_ACEOF
5070    #ifndef __cplusplus
5071    #define inline $ac_val
5072    #endif
5073    _ACEOF
5074        ;;
5075    esac
5076    
5077  echo "$as_me:$LINENO: checking for gdImageStringTTF in -lgd" >&5  echo "$as_me:$LINENO: checking for size_t" >&5
5078  echo $ECHO_N "checking for gdImageStringTTF in -lgd... $ECHO_C" >&6  echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5079  if test "${ac_cv_lib_gd_gdImageStringTTF+set}" = set; then  if test "${ac_cv_type_size_t+set}" = set; then
5080    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5081  else  else
5082    ac_check_lib_save_LIBS=$LIBS    cat >conftest.$ac_ext <<_ACEOF
 LIBS="-lgd  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
5083  /* confdefs.h.  */  /* confdefs.h.  */
5084  _ACEOF  _ACEOF
5085  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
5086  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
5087  /* end confdefs.h.  */  /* end confdefs.h.  */
5088    $ac_includes_default
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char gdImageStringTTF ();  
5089  int  int
5090  main ()  main ()
5091  {  {
5092  gdImageStringTTF ();  if ((size_t *) 0)
5093      return 0;
5094    if (sizeof (size_t))
5095      return 0;
5096    ;    ;
5097    return 0;    return 0;
5098  }  }
5099  _ACEOF  _ACEOF
5100  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext
5101  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5102    (eval $ac_link) 2>conftest.er1    (eval $ac_compile) 2>conftest.er1
5103    ac_status=$?    ac_status=$?
5104    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
5105    rm -f conftest.er1    rm -f conftest.er1
# Line 4996  Line 5113 
5113    ac_status=$?    ac_status=$?
5114    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115    (exit $ac_status); }; } &&    (exit $ac_status); }; } &&
5116           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest.$ac_objext'
5117    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5119    ac_status=$?    ac_status=$?
5120    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5122    ac_cv_lib_gd_gdImageStringTTF=yes    ac_cv_type_size_t=yes
5123  else  else
5124    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
5125  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
5126    
5127  ac_cv_lib_gd_gdImageStringTTF=no  ac_cv_type_size_t=no
5128  fi  fi
5129  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
5130  fi  fi
5131  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringTTF" >&5  echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5132  echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringTTF" >&6  echo "${ECHO_T}$ac_cv_type_size_t" >&6
5133  if test $ac_cv_lib_gd_gdImageStringTTF = yes; then  if test $ac_cv_type_size_t = yes; then
5134      :
5135    else
5136    
5137          if test "$ac_have_libttf" = "yes"  cat >>confdefs.h <<_ACEOF
5138          then  #define size_t unsigned
                 cat >>confdefs.h <<\_ACEOF  
 #define HAVE_GDIMAGESTRINGTTF 1  
5139  _ACEOF  _ACEOF
5140    
         fi  
   
5141  fi  fi
5142    
5143  echo "$as_me:$LINENO: checking for gdImageStringFT in -lgd" >&5  echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5144  echo $ECHO_N "checking for gdImageStringFT in -lgd... $ECHO_C" >&6  echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5145  if test "${ac_cv_lib_gd_gdImageStringFT+set}" = set; then  if test "${ac_cv_header_time+set}" = set; then
5146    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5147  else  else
5148    ac_check_lib_save_LIBS=$LIBS    cat >conftest.$ac_ext <<_ACEOF
 LIBS="-lgd  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
5149  /* confdefs.h.  */  /* confdefs.h.  */
5150  _ACEOF  _ACEOF
5151  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
5152  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
5153  /* end confdefs.h.  */  /* end confdefs.h.  */
5154    #include <sys/types.h>
5155    #include <sys/time.h>
5156    #include <time.h>
5157    
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char gdImageStringFT ();  
5158  int  int
5159  main ()  main ()
5160  {  {
5161  gdImageStringFT ();  if ((struct tm *) 0)
5162    return 0;
5163    ;    ;
5164    return 0;    return 0;
5165  }  }
5166  _ACEOF  _ACEOF
5167  rm -f conftest.$ac_objext conftest$ac_exeext  rm -f conftest.$ac_objext
5168  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5169    (eval $ac_link) 2>conftest.er1    (eval $ac_compile) 2>conftest.er1
5170    ac_status=$?    ac_status=$?
5171    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
5172    rm -f conftest.er1    rm -f conftest.er1
# Line 5072  Line 5180 
5180    ac_status=$?    ac_status=$?
5181    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182    (exit $ac_status); }; } &&    (exit $ac_status); }; } &&
5183           { ac_try='test -s conftest$ac_exeext'           { ac_try='test -s conftest.$ac_objext'
5184    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
5186    ac_status=$?    ac_status=$?
5187    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5189    ac_cv_lib_gd_gdImageStringFT=yes    ac_cv_header_time=yes
5190  else  else
5191    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
5192  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
5193    
5194  ac_cv_lib_gd_gdImageStringFT=no  ac_cv_header_time=no
5195  fi  fi
5196  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
5197  fi  fi
5198  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringFT" >&5  echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5199  echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringFT" >&6  echo "${ECHO_T}$ac_cv_header_time" >&6
5200  if test $ac_cv_lib_gd_gdImageStringFT = yes; then  if test $ac_cv_header_time = yes; then
5201    
5202          if test "$ac_have_libfreetype" = "yes"  cat >>confdefs.h <<\_ACEOF
5203          then  #define TIME_WITH_SYS_TIME 1
                 cat >>confdefs.h <<\_ACEOF  
 #define HAVE_GDIMAGESTRINGFT 1  
5204  _ACEOF  _ACEOF
5205    
         fi  
   
5206  fi  fi
5207    
5208  echo "$as_me:$LINENO: checking for gdImageFilledArc in -lgd" >&5  
5209  echo $ECHO_N "checking for gdImageFilledArc in -lgd... $ECHO_C" >&6  # Checks for library functions.
5210  if test "${ac_cv_lib_gd_gdImageFilledArc+set}" = set; then  
5211    
5212    
5213    for ac_func in memset strdup strtol
5214    do
5215    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5216    echo "$as_me:$LINENO: checking for $ac_func" >&5
5217    echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5218    if eval "test \"\${$as_ac_var+set}\" = set"; then
5219    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5220  else  else
5221    ac_check_lib_save_LIBS=$LIBS    cat >conftest.$ac_ext <<_ACEOF
 LIBS="-lgd  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
5222  /* confdefs.h.  */  /* confdefs.h.  */
5223  _ACEOF  _ACEOF
5224  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
5225  cat >>conftest.$ac_ext <<_ACEOF  cat >>conftest.$ac_ext <<_ACEOF
5226  /* end confdefs.h.  */  /* end confdefs.h.  */
5227    /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5228       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5229    #define $ac_func innocuous_$ac_func
5230    
5231    /* System header to define __stub macros and hopefully few prototypes,
5232        which can conflict with char $ac_func (); below.
5233        Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234        <limits.h> exists even on freestanding compilers.  */
5235    
5236    #ifdef __STDC__
5237    # include <limits.h>
5238    #else
5239    # include <assert.h>
5240    #endif
5241    
5242    #undef $ac_func
5243    
5244  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5245  #ifdef __cplusplus  #ifdef __cplusplus
5246  extern "C"  extern "C"
5247    {
5248  #endif  #endif
5249  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
5250     builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
5251  char gdImageFilledArc ();  char $ac_func ();
5252    /* The GNU C library defines this for functions which it implements
5253        to always fail with ENOSYS.  Some functions are actually named
5254        something starting with __ and the normal name is an alias.  */
5255    #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5256    choke me
5257    #else
5258    char (*f) () = $ac_func;
5259    #endif
5260    #ifdef __cplusplus
5261    }
5262    #endif
5263    
5264  int  int
5265  main ()  main ()
5266  {  {
5267  gdImageFilledArc ();  return f != $ac_func;
5268    ;    ;
5269    return 0;    return 0;
5270  }  }
# Line 5154  Line 5291 
5291    ac_status=$?    ac_status=$?
5292    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
5294    ac_cv_lib_gd_gdImageFilledArc=yes    eval "$as_ac_var=yes"
5295  else  else
5296    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
5297  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
5298    
5299  ac_cv_lib_gd_gdImageFilledArc=no  eval "$as_ac_var=no"
5300  fi  fi
5301  rm -f conftest.err conftest.$ac_objext \  rm -f conftest.err conftest.$ac_objext \
5302        conftest$ac_exeext conftest.$ac_ext        conftest$ac_exeext conftest.$ac_ext
 LIBS=$ac_check_lib_save_LIBS  
5303  fi  fi
5304  echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageFilledArc" >&5  echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5305  echo "${ECHO_T}$ac_cv_lib_gd_gdImageFilledArc" >&6  echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5306  if test $ac_cv_lib_gd_gdImageFilledArc = yes; then  if test `eval echo '${'$as_ac_var'}'` = yes; then
5307      cat >>confdefs.h <<_ACEOF
5308          cat >>confdefs.h <<\_ACEOF  #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 #define HAVE_GDIMAGEFILLEDARC 1  
5309  _ACEOF  _ACEOF
5310    
   
5311  fi  fi
5312    done
5313    
5314    
   
   
   
   
           ac_config_files="$ac_config_files Makefile"  
5315  cat >confcache <<\_ACEOF  cat >confcache <<\_ACEOF
5316  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
5317  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
# Line 5273  Line 5403 
5403  LTLIBOBJS=$ac_ltlibobjs  LTLIBOBJS=$ac_ltlibobjs
5404    
5405    
5406    if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5407      { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5408    Usually this means the macro was only invoked conditionally." >&5
5409    echo "$as_me: error: conditional \"AMDEP\" was never defined.
5410    Usually this means the macro was only invoked conditionally." >&2;}
5411       { (exit 1); exit 1; }; }
5412    fi
5413    if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5414      { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5415    Usually this means the macro was only invoked conditionally." >&5
5416    echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5417    Usually this means the macro was only invoked conditionally." >&2;}
5418       { (exit 1); exit 1; }; }
5419    fi
5420    
5421  : ${CONFIG_STATUS=./config.status}  : ${CONFIG_STATUS=./config.status}
5422  ac_clean_files_save=$ac_clean_files  ac_clean_files_save=$ac_clean_files
# Line 5544  Line 5688 
5688  } >&5  } >&5
5689  cat >&5 <<_CSEOF  cat >&5 <<_CSEOF
5690    
5691  This file was extended by $as_me, which was  This file was extended by cvsgraph $as_me 1.7.0, which was
5692  generated by GNU Autoconf 2.59.  Invocation command line was  generated by GNU Autoconf 2.59.  Invocation command line was
5693    
5694    CONFIG_FILES    = $CONFIG_FILES    CONFIG_FILES    = $CONFIG_FILES
# Line 5599  Line 5743 
5743  Configuration headers:  Configuration headers:
5744  $config_headers  $config_headers
5745    
5746    Configuration commands:
5747    $config_commands
5748    
5749  Report bugs to <bug-autoconf@gnu.org>."  Report bugs to <bug-autoconf@gnu.org>."
5750  _ACEOF  _ACEOF
5751    
5752  cat >>$CONFIG_STATUS <<_ACEOF  cat >>$CONFIG_STATUS <<_ACEOF
5753  ac_cs_version="\\  ac_cs_version="\\
5754  config.status  cvsgraph config.status 1.7.0
5755  configured by $0, generated by GNU Autoconf 2.59,  configured by $0, generated by GNU Autoconf 2.59,
5756    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5757    
# Line 5612  Line 5759 
5759  This config.status script is free software; the Free Software Foundation  This config.status script is free software; the Free Software Foundation
5760  gives unlimited permission to copy, distribute and modify it."  gives unlimited permission to copy, distribute and modify it."
5761  srcdir=$srcdir  srcdir=$srcdir
5762    INSTALL="$INSTALL"
5763  _ACEOF  _ACEOF
5764    
5765  cat >>$CONFIG_STATUS <<\_ACEOF  cat >>$CONFIG_STATUS <<\_ACEOF
# Line 5697  Line 5845 
5845    
5846  _ACEOF  _ACEOF
5847    
5848    cat >>$CONFIG_STATUS <<_ACEOF
5849    #
5850    # INIT-COMMANDS section.
5851    #
5852    
5853    AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5854    
5855    _ACEOF
5856    
5857    
5858    
# Line 5707  Line 5862 
5862    case "$ac_config_target" in    case "$ac_config_target" in
5863    # Handling of arguments.    # Handling of arguments.
5864    "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;    "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5865      "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
5866      "cvsgraph.1" ) CONFIG_FILES="$CONFIG_FILES cvsgraph.1" ;;
5867      "cvsgraph.conf.5" ) CONFIG_FILES="$CONFIG_FILES cvsgraph.conf.5" ;;
5868      "cvsgraph.spec" ) CONFIG_FILES="$CONFIG_FILES cvsgraph.spec" ;;
5869      "contrib/mkimage.php" ) CONFIG_FILES="$CONFIG_FILES contrib/mkimage.php" ;;
5870      "contrib/cvsgraphwrapper.php" ) CONFIG_FILES="$CONFIG_FILES contrib/cvsgraphwrapper.php" ;;
5871      "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5872    "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;    "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5873    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5874  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
# Line 5721  Line 5883 
5883  if $ac_need_defaults; then  if $ac_need_defaults; then
5884    test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files    test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5885    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5886      test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5887  fi  fi
5888    
5889  # Have a temporary directory for convenience.  Make it in the build tree  # Have a temporary directory for convenience.  Make it in the build tree
# Line 5792  Line 5955 
5955  s,@ECHO_N@,$ECHO_N,;t t  s,@ECHO_N@,$ECHO_N,;t t
5956  s,@ECHO_T@,$ECHO_T,;t t  s,@ECHO_T@,$ECHO_T,;t t
5957  s,@LIBS@,$LIBS,;t t  s,@LIBS@,$LIBS,;t t
5958    s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5959    s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5960    s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5961    s,@CYGPATH_W@,$CYGPATH_W,;t t
5962    s,@PACKAGE@,$PACKAGE,;t t
5963    s,@VERSION@,$VERSION,;t t
5964    s,@ACLOCAL@,$ACLOCAL,;t t
5965    s,@AUTOCONF@,$AUTOCONF,;t t
5966    s,@AUTOMAKE@,$AUTOMAKE,;t t
5967    s,@AUTOHEADER@,$AUTOHEADER,;t t
5968    s,@MAKEINFO@,$MAKEINFO,;t t
5969    s,@install_sh@,$install_sh,;t t
5970    s,@STRIP@,$STRIP,;t t
5971    s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5972    s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5973    s,@mkdir_p@,$mkdir_p,;t t
5974    s,@AWK@,$AWK,;t t
5975    s,@SET_MAKE@,$SET_MAKE,;t t
5976    s,@am__leading_dot@,$am__leading_dot,;t t
5977    s,@AMTAR@,$AMTAR,;t t
5978    s,@am__tar@,$am__tar,;t t
5979    s,@am__untar@,$am__untar,;t t
5980  s,@CC@,$CC,;t t  s,@CC@,$CC,;t t
5981  s,@CFLAGS@,$CFLAGS,;t t  s,@CFLAGS@,$CFLAGS,;t t
5982  s,@LDFLAGS@,$LDFLAGS,;t t  s,@LDFLAGS@,$LDFLAGS,;t t
# Line 5799  Line 5984 
5984  s,@ac_ct_CC@,$ac_ct_CC,;t t  s,@ac_ct_CC@,$ac_ct_CC,;t t
5985  s,@EXEEXT@,$EXEEXT,;t t  s,@EXEEXT@,$EXEEXT,;t t
5986  s,@OBJEXT@,$OBJEXT,;t t  s,@OBJEXT@,$OBJEXT,;t t
5987    s,@DEPDIR@,$DEPDIR,;t t
5988    s,@am__include@,$am__include,;t t
5989    s,@am__quote@,$am__quote,;t t
5990    s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5991    s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5992    s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5993    s,@CCDEPMODE@,$CCDEPMODE,;t t
5994    s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5995    s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5996  s,@LEX@,$LEX,;t t  s,@LEX@,$LEX,;t t
5997  s,@LEXLIB@,$LEXLIB,;t t  s,@LEXLIB@,$LEXLIB,;t t
5998  s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t  s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
5999  s,@YACC@,$YACC,;t t  s,@YACC@,$YACC,;t t
6000    s,@ac_prog_pkg_config@,$ac_prog_pkg_config,;t t
6001    s,@GDLIB_CONFIG@,$GDLIB_CONFIG,;t t
6002    s,@GD_CFLAGS@,$GD_CFLAGS,;t t
6003    s,@GD_LDFLAGS@,$GD_LDFLAGS,;t t
6004    s,@GD_LIBS@,$GD_LIBS,;t t
6005  s,@CPP@,$CPP,;t t  s,@CPP@,$CPP,;t t
6006  s,@EGREP@,$EGREP,;t t  s,@EGREP@,$EGREP,;t t
 s,@LEXFLAGS@,$LEXFLAGS,;t t  
 s,@INTTYPE@,$INTTYPE,;t t  
6007  s,@LIBOBJS@,$LIBOBJS,;t t  s,@LIBOBJS@,$LIBOBJS,;t t
6008  s,@LTLIBOBJS@,$LTLIBOBJS,;t t  s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6009  CEOF  CEOF
# Line 5970  Line 6167 
6167  esac  esac
6168    
6169    
6170      case $INSTALL in
6171      [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6172      *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6173      esac
6174    
6175    if test x"$ac_file" != x-; then    if test x"$ac_file" != x-; then
6176      { echo "$as_me:$LINENO: creating $ac_file" >&5      { echo "$as_me:$LINENO: creating $ac_file" >&5
# Line 6031  Line 6232 
6232  s,@abs_builddir@,$ac_abs_builddir,;t t  s,@abs_builddir@,$ac_abs_builddir,;t t
6233  s,@top_builddir@,$ac_top_builddir,;t t  s,@top_builddir@,$ac_top_builddir,;t t
6234  s,@abs_top_builddir@,$ac_abs_top_builddir,;t t  s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6235    s,@INSTALL@,$ac_INSTALL,;t t
6236  " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out  " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6237    rm -f $tmp/stdin    rm -f $tmp/stdin
6238    if test x"$ac_file" != x-; then    if test x"$ac_file" != x-; then
# Line 6263  Line 6465 
6465      cat $tmp/config.h      cat $tmp/config.h
6466      rm -f $tmp/config.h      rm -f $tmp/config.h
6467    fi    fi
6468    # Compute $ac_file's index in $config_headers.
6469    _am_stamp_count=1
6470    for _am_header in $config_headers :; do
6471      case $_am_header in
6472        $ac_file | $ac_file:* )
6473          break ;;
6474        * )
6475          _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6476      esac
6477    done
6478    echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6479    $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6480             X$ac_file : 'X\(//\)[^/]' \| \
6481             X$ac_file : 'X\(//\)$' \| \
6482             X$ac_file : 'X\(/\)' \| \
6483             .     : '\(.\)' 2>/dev/null ||
6484    echo X$ac_file |
6485        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6486              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6487              /^X\(\/\/\)$/{ s//\1/; q; }
6488              /^X\(\/\).*/{ s//\1/; q; }
6489              s/.*/./; q'`/stamp-h$_am_stamp_count
6490    done
6491    _ACEOF
6492    cat >>$CONFIG_STATUS <<\_ACEOF
6493    
6494    #
6495    # CONFIG_COMMANDS section.
6496    #
6497    for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6498      ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6499      ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6500      ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6501    $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6502             X"$ac_dest" : 'X\(//\)[^/]' \| \
6503             X"$ac_dest" : 'X\(//\)$' \| \
6504             X"$ac_dest" : 'X\(/\)' \| \
6505             .     : '\(.\)' 2>/dev/null ||
6506    echo X"$ac_dest" |
6507        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6508              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6509              /^X\(\/\/\)$/{ s//\1/; q; }
6510              /^X\(\/\).*/{ s//\1/; q; }
6511              s/.*/./; q'`
6512      { if $as_mkdir_p; then
6513        mkdir -p "$ac_dir"
6514      else
6515        as_dir="$ac_dir"
6516        as_dirs=
6517        while test ! -d "$as_dir"; do
6518          as_dirs="$as_dir $as_dirs"
6519          as_dir=`(dirname "$as_dir") 2>/dev/null ||
6520    $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6521             X"$as_dir" : 'X\(//\)[^/]' \| \
6522             X"$as_dir" : 'X\(//\)$' \| \
6523             X"$as_dir" : 'X\(/\)' \| \
6524             .     : '\(.\)' 2>/dev/null ||
6525    echo X"$as_dir" |
6526        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6527              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6528              /^X\(\/\/\)$/{ s//\1/; q; }
6529              /^X\(\/\).*/{ s//\1/; q; }
6530              s/.*/./; q'`
6531        done
6532        test ! -n "$as_dirs" || mkdir $as_dirs
6533      fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6534    echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6535       { (exit 1); exit 1; }; }; }
6536    
6537      ac_builddir=.
6538    
6539    if test "$ac_dir" != .; then
6540      ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6541      # A "../" for each directory in $ac_dir_suffix.
6542      ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6543    else
6544      ac_dir_suffix= ac_top_builddir=
6545    fi
6546    
6547    case $srcdir in
6548      .)  # No --srcdir option.  We ar