home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / OS2 / gnuinfo.zip / configure < prev    next >
Text File  |  1997-07-31  |  118KB  |  4,059 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --disable-nls           do not use Native Language Support"
  16. ac_help="$ac_help
  17.   --with-included-gettext use the GNU gettext library included here"
  18. ac_help="$ac_help
  19.   --with-catgets          use catgets functions if available"
  20.  
  21. # Initialize some variables set by options.
  22. # The variables have the same names as the options, with
  23. # dashes changed to underlines.
  24. build=NONE
  25. cache_file=./config.cache
  26. exec_prefix=NONE
  27. host=NONE
  28. no_create=
  29. nonopt=NONE
  30. no_recursion=
  31. prefix=NONE
  32. program_prefix=NONE
  33. program_suffix=NONE
  34. program_transform_name=s,x,x,
  35. silent=
  36. site=
  37. srcdir=
  38. target=NONE
  39. verbose=
  40. x_includes=NONE
  41. x_libraries=NONE
  42. bindir='${exec_prefix}/bin'
  43. sbindir='${exec_prefix}/sbin'
  44. libexecdir='${exec_prefix}/libexec'
  45. datadir='${prefix}/share'
  46. sysconfdir='${prefix}/etc'
  47. sharedstatedir='${prefix}/com'
  48. localstatedir='${prefix}/var'
  49. libdir='${exec_prefix}/lib'
  50. includedir='${prefix}/include'
  51. oldincludedir='/usr/include'
  52. infodir='${prefix}/info'
  53. mandir='${prefix}/man'
  54.  
  55. # Initialize some other variables.
  56. subdirs=
  57. MFLAGS= MAKEFLAGS=
  58. # Maximum number of lines to put in a shell here document.
  59. ac_max_here_lines=12
  60.  
  61. ac_prev=
  62. for ac_option
  63. do
  64.  
  65.   # If the previous option needs an argument, assign it.
  66.   if test -n "$ac_prev"; then
  67.     eval "$ac_prev=\$ac_option"
  68.     ac_prev=
  69.     continue
  70.   fi
  71.  
  72.   case "$ac_option" in
  73.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  74.   *) ac_optarg= ;;
  75.   esac
  76.  
  77.   # Accept the important Cygnus configure options, so we can diagnose typos.
  78.  
  79.   case "$ac_option" in
  80.  
  81.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  82.     ac_prev=bindir ;;
  83.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  84.     bindir="$ac_optarg" ;;
  85.  
  86.   -build | --build | --buil | --bui | --bu)
  87.     ac_prev=build ;;
  88.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  89.     build="$ac_optarg" ;;
  90.  
  91.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  92.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  93.     ac_prev=cache_file ;;
  94.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  95.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  96.     cache_file="$ac_optarg" ;;
  97.  
  98.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  99.     ac_prev=datadir ;;
  100.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  101.   | --da=*)
  102.     datadir="$ac_optarg" ;;
  103.  
  104.   -disable-* | --disable-*)
  105.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  106.     # Reject names that are not valid shell variable names.
  107.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  108.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  109.     fi
  110.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  111.     eval "enable_${ac_feature}=no" ;;
  112.  
  113.   -enable-* | --enable-*)
  114.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  115.     # Reject names that are not valid shell variable names.
  116.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  117.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  118.     fi
  119.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  120.     case "$ac_option" in
  121.       *=*) ;;
  122.       *) ac_optarg=yes ;;
  123.     esac
  124.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  125.  
  126.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  127.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  128.   | --exec | --exe | --ex)
  129.     ac_prev=exec_prefix ;;
  130.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  131.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  132.   | --exec=* | --exe=* | --ex=*)
  133.     exec_prefix="$ac_optarg" ;;
  134.  
  135.   -gas | --gas | --ga | --g)
  136.     # Obsolete; use --with-gas.
  137.     with_gas=yes ;;
  138.  
  139.   -help | --help | --hel | --he)
  140.     # Omit some internal or obsolete options to make the list less imposing.
  141.     # This message is too long to be a string in the A/UX 3.1 sh.
  142.     cat << EOF
  143. Usage: configure [options] [host]
  144. Options: [defaults in brackets after descriptions]
  145. Configuration:
  146.   --cache-file=FILE       cache test results in FILE
  147.   --help                  print this message
  148.   --no-create             do not create output files
  149.   --quiet, --silent       do not print \`checking...' messages
  150.   --version               print the version of autoconf that created configure
  151. Directory and file names:
  152.   --prefix=PREFIX         install architecture-independent files in PREFIX
  153.                           [$ac_default_prefix]
  154.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  155.                           [same as prefix]
  156.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  157.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  158.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  159.   --datadir=DIR           read-only architecture-independent data in DIR
  160.                           [PREFIX/share]
  161.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  162.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  163.                           [PREFIX/com]
  164.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  165.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  166.   --includedir=DIR        C header files in DIR [PREFIX/include]
  167.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  168.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  169.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  170.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  171.   --program-prefix=PREFIX prepend PREFIX to installed program names
  172.   --program-suffix=SUFFIX append SUFFIX to installed program names
  173.   --program-transform-name=PROGRAM
  174.                           run sed PROGRAM on installed program names
  175. EOF
  176.     cat << EOF
  177. Host type:
  178.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  179.   --host=HOST             configure for HOST [guessed]
  180.   --target=TARGET         configure for TARGET [TARGET=HOST]
  181. Features and packages:
  182.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  183.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  184.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  185.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  186.   --x-includes=DIR        X include files are in DIR
  187.   --x-libraries=DIR       X library files are in DIR
  188. EOF
  189.     if test -n "$ac_help"; then
  190.       echo "--enable and --with options recognized:$ac_help"
  191.     fi
  192.     exit 0 ;;
  193.  
  194.   -host | --host | --hos | --ho)
  195.     ac_prev=host ;;
  196.   -host=* | --host=* | --hos=* | --ho=*)
  197.     host="$ac_optarg" ;;
  198.  
  199.   -includedir | --includedir | --includedi | --included | --include \
  200.   | --includ | --inclu | --incl | --inc)
  201.     ac_prev=includedir ;;
  202.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  203.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  204.     includedir="$ac_optarg" ;;
  205.  
  206.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  207.     ac_prev=infodir ;;
  208.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  209.     infodir="$ac_optarg" ;;
  210.  
  211.   -libdir | --libdir | --libdi | --libd)
  212.     ac_prev=libdir ;;
  213.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  214.     libdir="$ac_optarg" ;;
  215.  
  216.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  217.   | --libexe | --libex | --libe)
  218.     ac_prev=libexecdir ;;
  219.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  220.   | --libexe=* | --libex=* | --libe=*)
  221.     libexecdir="$ac_optarg" ;;
  222.  
  223.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  224.   | --localstate | --localstat | --localsta | --localst \
  225.   | --locals | --local | --loca | --loc | --lo)
  226.     ac_prev=localstatedir ;;
  227.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  228.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  229.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  230.     localstatedir="$ac_optarg" ;;
  231.  
  232.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  233.     ac_prev=mandir ;;
  234.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  235.     mandir="$ac_optarg" ;;
  236.  
  237.   -nfp | --nfp | --nf)
  238.     # Obsolete; use --without-fp.
  239.     with_fp=no ;;
  240.  
  241.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  242.   | --no-cr | --no-c)
  243.     no_create=yes ;;
  244.  
  245.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  246.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  247.     no_recursion=yes ;;
  248.  
  249.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  250.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  251.   | --oldin | --oldi | --old | --ol | --o)
  252.     ac_prev=oldincludedir ;;
  253.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  254.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  255.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  256.     oldincludedir="$ac_optarg" ;;
  257.  
  258.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  259.     ac_prev=prefix ;;
  260.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  261.     prefix="$ac_optarg" ;;
  262.  
  263.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  264.   | --program-pre | --program-pr | --program-p)
  265.     ac_prev=program_prefix ;;
  266.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  267.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  268.     program_prefix="$ac_optarg" ;;
  269.  
  270.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  271.   | --program-suf | --program-su | --program-s)
  272.     ac_prev=program_suffix ;;
  273.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  274.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  275.     program_suffix="$ac_optarg" ;;
  276.  
  277.   -program-transform-name | --program-transform-name \
  278.   | --program-transform-nam | --program-transform-na \
  279.   | --program-transform-n | --program-transform- \
  280.   | --program-transform | --program-transfor \
  281.   | --program-transfo | --program-transf \
  282.   | --program-trans | --program-tran \
  283.   | --progr-tra | --program-tr | --program-t)
  284.     ac_prev=program_transform_name ;;
  285.   -program-transform-name=* | --program-transform-name=* \
  286.   | --program-transform-nam=* | --program-transform-na=* \
  287.   | --program-transform-n=* | --program-transform-=* \
  288.   | --program-transform=* | --program-transfor=* \
  289.   | --program-transfo=* | --program-transf=* \
  290.   | --program-trans=* | --program-tran=* \
  291.   | --progr-tra=* | --program-tr=* | --program-t=*)
  292.     program_transform_name="$ac_optarg" ;;
  293.  
  294.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  295.   | -silent | --silent | --silen | --sile | --sil)
  296.     silent=yes ;;
  297.  
  298.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  299.     ac_prev=sbindir ;;
  300.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  301.   | --sbi=* | --sb=*)
  302.     sbindir="$ac_optarg" ;;
  303.  
  304.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  305.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  306.   | --sharedst | --shareds | --shared | --share | --shar \
  307.   | --sha | --sh)
  308.     ac_prev=sharedstatedir ;;
  309.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  310.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  311.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  312.   | --sha=* | --sh=*)
  313.     sharedstatedir="$ac_optarg" ;;
  314.  
  315.   -site | --site | --sit)
  316.     ac_prev=site ;;
  317.   -site=* | --site=* | --sit=*)
  318.     site="$ac_optarg" ;;
  319.  
  320.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  321.     ac_prev=srcdir ;;
  322.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  323.     srcdir="$ac_optarg" ;;
  324.  
  325.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  326.   | --syscon | --sysco | --sysc | --sys | --sy)
  327.     ac_prev=sysconfdir ;;
  328.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  329.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  330.     sysconfdir="$ac_optarg" ;;
  331.  
  332.   -target | --target | --targe | --targ | --tar | --ta | --t)
  333.     ac_prev=target ;;
  334.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  335.     target="$ac_optarg" ;;
  336.  
  337.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  338.     verbose=yes ;;
  339.  
  340.   -version | --version | --versio | --versi | --vers)
  341.     echo "configure generated by autoconf version 2.12"
  342.     exit 0 ;;
  343.  
  344.   -with-* | --with-*)
  345.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  346.     # Reject names that are not valid shell variable names.
  347.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  348.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  349.     fi
  350.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  351.     case "$ac_option" in
  352.       *=*) ;;
  353.       *) ac_optarg=yes ;;
  354.     esac
  355.     eval "with_${ac_package}='$ac_optarg'" ;;
  356.  
  357.   -without-* | --without-*)
  358.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  359.     # Reject names that are not valid shell variable names.
  360.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  361.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  362.     fi
  363.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  364.     eval "with_${ac_package}=no" ;;
  365.  
  366.   --x)
  367.     # Obsolete; use --with-x.
  368.     with_x=yes ;;
  369.  
  370.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  371.   | --x-incl | --x-inc | --x-in | --x-i)
  372.     ac_prev=x_includes ;;
  373.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  374.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  375.     x_includes="$ac_optarg" ;;
  376.  
  377.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  378.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  379.     ac_prev=x_libraries ;;
  380.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  381.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  382.     x_libraries="$ac_optarg" ;;
  383.  
  384.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  385.     ;;
  386.  
  387.   *)
  388.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  389.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  390.     fi
  391.     if test "x$nonopt" != xNONE; then
  392.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  393.     fi
  394.     nonopt="$ac_option"
  395.     ;;
  396.  
  397.   esac
  398. done
  399.  
  400. if test -n "$ac_prev"; then
  401.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  402. fi
  403.  
  404. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  405.  
  406. # File descriptor usage:
  407. # 0 standard input
  408. # 1 file creation
  409. # 2 errors and warnings
  410. # 3 some systems may open it to /dev/tty
  411. # 4 used on the Kubota Titan
  412. # 6 checking for... messages and results
  413. # 5 compiler messages saved in config.log
  414. if test "$silent" = yes; then
  415.   exec 6>/dev/null
  416. else
  417.   exec 6>&1
  418. fi
  419. exec 5>./config.log
  420.  
  421. echo "\
  422. This file contains any messages produced by compilers while
  423. running configure, to aid debugging if configure makes a mistake.
  424. " 1>&5
  425.  
  426. # Strip out --no-create and --no-recursion so they do not pile up.
  427. # Also quote any args containing shell metacharacters.
  428. ac_configure_args=
  429. for ac_arg
  430. do
  431.   case "$ac_arg" in
  432.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  433.   | --no-cr | --no-c) ;;
  434.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  435.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  436.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  437.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  438.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  439.   esac
  440. done
  441.  
  442. # NLS nuisances.
  443. # Only set these to C if already set.  These must not be set unconditionally
  444. # because not all systems understand e.g. LANG=C (notably SCO).
  445. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  446. # Non-C LC_CTYPE values break the ctype check.
  447. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  448. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  449. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  450. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  451.  
  452. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  453. rm -rf conftest* confdefs.h
  454. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  455. echo > confdefs.h
  456.  
  457. # A filename unique to this package, relative to the directory that
  458. # configure is in, which we can look for to find out if srcdir is correct.
  459. ac_unique_file=makeinfo/makeinfo.c
  460.  
  461. # Find the source files, if location was not specified.
  462. if test -z "$srcdir"; then
  463.   ac_srcdir_defaulted=yes
  464.   # Try the directory containing this script, then its parent.
  465.   ac_prog=$0
  466.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  467.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  468.   srcdir=$ac_confdir
  469.   if test ! -r $srcdir/$ac_unique_file; then
  470.     srcdir=..
  471.   fi
  472. else
  473.   ac_srcdir_defaulted=no
  474. fi
  475. if test ! -r $srcdir/$ac_unique_file; then
  476.   if test "$ac_srcdir_defaulted" = yes; then
  477.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  478.   else
  479.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  480.   fi
  481. fi
  482. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  483.  
  484. # Prefer explicitly selected file to automatically selected ones.
  485. if test -z "$CONFIG_SITE"; then
  486.   if test "x$prefix" != xNONE; then
  487.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  488.   else
  489.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  490.   fi
  491. fi
  492. for ac_site_file in $CONFIG_SITE; do
  493.   if test -r "$ac_site_file"; then
  494.     echo "loading site script $ac_site_file"
  495.     . "$ac_site_file"
  496.   fi
  497. done
  498.  
  499. if test -r "$cache_file"; then
  500.   echo "loading cache $cache_file"
  501.   . $cache_file
  502. else
  503.   echo "creating cache $cache_file"
  504.   > $cache_file
  505. fi
  506.  
  507. ac_ext=c
  508. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  509. ac_cpp='$CPP $CPPFLAGS'
  510. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  511. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  512. cross_compiling=$ac_cv_prog_cc_cross
  513.  
  514. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  515.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  516.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  517.     ac_n= ac_c='
  518. ' ac_t='    '
  519.   else
  520.     ac_n=-n ac_c= ac_t=
  521.   fi
  522. else
  523.   ac_n= ac_c='\c' ac_t=
  524. fi
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531. ac_aux_dir=
  532. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  533.   if test -f $ac_dir/install-sh; then
  534.     ac_aux_dir=$ac_dir
  535.     ac_install_sh="$ac_aux_dir/install-sh -c"
  536.     break
  537.   elif test -f $ac_dir/install.sh; then
  538.     ac_aux_dir=$ac_dir
  539.     ac_install_sh="$ac_aux_dir/install.sh -c"
  540.     break
  541.   fi
  542. done
  543. if test -z "$ac_aux_dir"; then
  544.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  545. fi
  546. ac_config_guess=$ac_aux_dir/config.guess
  547. ac_config_sub=$ac_aux_dir/config.sub
  548. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  549.  
  550. # Find a good install program.  We prefer a C program (faster),
  551. # so one script is as good as another.  But avoid the broken or
  552. # incompatible versions:
  553. # SysV /etc/install, /usr/sbin/install
  554. # SunOS /usr/etc/install
  555. # IRIX /sbin/install
  556. # AIX /bin/install
  557. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  558. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  559. # ./install, which can be erroneously created by make from ./install.sh.
  560. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  561. echo "configure:562: checking for a BSD compatible install" >&5
  562. if test -z "$INSTALL"; then
  563. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  564.   echo $ac_n "(cached) $ac_c" 1>&6
  565. else
  566.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  567.   for ac_dir in $PATH; do
  568.     # Account for people who put trailing slashes in PATH elements.
  569.     case "$ac_dir/" in
  570.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  571.     *)
  572.       # OSF1 and SCO ODT 3.0 have their own names for install.
  573.       for ac_prog in ginstall installbsd scoinst install; do
  574.         if test -f $ac_dir/$ac_prog; then
  575.       if test $ac_prog = install &&
  576.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  577.         # AIX install.  It has an incompatible calling convention.
  578.         # OSF/1 installbsd also uses dspmsg, but is usable.
  579.         :
  580.       else
  581.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  582.         break 2
  583.       fi
  584.     fi
  585.       done
  586.       ;;
  587.     esac
  588.   done
  589.   IFS="$ac_save_IFS"
  590.  
  591. fi
  592.   if test "${ac_cv_path_install+set}" = set; then
  593.     INSTALL="$ac_cv_path_install"
  594.   else
  595.     # As a last resort, use the slow shell script.  We don't cache a
  596.     # path for INSTALL within a source directory, because that will
  597.     # break other packages using the cache if that directory is
  598.     # removed, or if the path is relative.
  599.     INSTALL="$ac_install_sh"
  600.   fi
  601. fi
  602. echo "$ac_t""$INSTALL" 1>&6
  603.  
  604. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  605. # It thinks the first close brace ends the variable substitution.
  606. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  607.  
  608. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  609.  
  610.  
  611. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  612.  
  613.  
  614. PACKAGE=texinfo
  615.  
  616. VERSION=3.11
  617.  
  618. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  619.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  620. fi
  621. cat >> confdefs.h <<EOF
  622. #define PACKAGE "$PACKAGE"
  623. EOF
  624.  
  625. cat >> confdefs.h <<EOF
  626. #define VERSION "$VERSION"
  627. EOF
  628.  
  629. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  630. echo "configure:631: checking whether build environment is sane" >&5
  631. # Just in case
  632. sleep 1
  633. echo timestamp > conftestfile
  634. # Do `set' in a subshell so we don't clobber the current shell's
  635. # arguments.  Must try -L first in case configure is actually a
  636. # symlink; some systems play weird games with the mod time of symlinks
  637. # (eg FreeBSD returns the mod time of the symlink's containing
  638. # directory).
  639. if (
  640.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  641.    if test "" = "X"; then
  642.       # -L didn't work.
  643.       set X `ls -t $srcdir/configure conftestfile`
  644.    fi
  645.    test "$2" = conftestfile
  646.    )
  647. then
  648.    # Ok.
  649.    :
  650. else
  651.    { echo "configure: error: newly created file is older than distributed files!
  652. Check your system clock" 1>&2; exit 1; }
  653. fi
  654. rm -f conftest*
  655. echo "$ac_t""yes" 1>&6
  656. if test "$program_transform_name" = s,x,x,; then
  657.   program_transform_name=
  658. else
  659.   # Double any \ or $.  echo might interpret backslashes.
  660.   cat <<\EOF_SED > conftestsed
  661. s,\\,\\\\,g; s,\$,$$,g
  662. EOF_SED
  663.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  664.   rm -f conftestsed
  665. fi
  666. test "$program_prefix" != NONE &&
  667.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  668. # Use a double $ so make ignores it.
  669. test "$program_suffix" != NONE &&
  670.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  671.  
  672. # sed with no file args requires a program.
  673. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  674.  
  675. missing_dir=`cd $ac_aux_dir && pwd`
  676. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  677. echo "configure:678: checking for working aclocal" >&5
  678. # Run test in a subshell; some versions of sh will print an error if
  679. # an executable is not found, even if stderr is redirected.
  680. # Redirect stdin to placate older versions of autoconf.  Sigh.
  681. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  682.    ACLOCAL=aclocal
  683.    echo "$ac_t""found" 1>&6
  684. else
  685.    ACLOCAL="$missing_dir/missing aclocal"
  686.    echo "$ac_t""missing" 1>&6
  687. fi
  688.  
  689. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  690. echo "configure:691: checking for working autoconf" >&5
  691. # Run test in a subshell; some versions of sh will print an error if
  692. # an executable is not found, even if stderr is redirected.
  693. # Redirect stdin to placate older versions of autoconf.  Sigh.
  694. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  695.    AUTOCONF=autoconf
  696.    echo "$ac_t""found" 1>&6
  697. else
  698.    AUTOCONF="$missing_dir/missing autoconf"
  699.    echo "$ac_t""missing" 1>&6
  700. fi
  701.  
  702. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  703. echo "configure:704: checking for working automake" >&5
  704. # Run test in a subshell; some versions of sh will print an error if
  705. # an executable is not found, even if stderr is redirected.
  706. # Redirect stdin to placate older versions of autoconf.  Sigh.
  707. if (automake --version) < /dev/null > /dev/null 2>&1; then
  708.    AUTOMAKE=automake
  709.    echo "$ac_t""found" 1>&6
  710. else
  711.    AUTOMAKE="$missing_dir/missing automake"
  712.    echo "$ac_t""missing" 1>&6
  713. fi
  714.  
  715. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  716. echo "configure:717: checking for working autoheader" >&5
  717. # Run test in a subshell; some versions of sh will print an error if
  718. # an executable is not found, even if stderr is redirected.
  719. # Redirect stdin to placate older versions of autoconf.  Sigh.
  720. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  721.    AUTOHEADER=autoheader
  722.    echo "$ac_t""found" 1>&6
  723. else
  724.    AUTOHEADER="$missing_dir/missing autoheader"
  725.    echo "$ac_t""missing" 1>&6
  726. fi
  727.  
  728. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  729. echo "configure:730: checking for working makeinfo" >&5
  730. # Run test in a subshell; some versions of sh will print an error if
  731. # an executable is not found, even if stderr is redirected.
  732. # Redirect stdin to placate older versions of autoconf.  Sigh.
  733. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  734.    MAKEINFO=makeinfo
  735.    echo "$ac_t""found" 1>&6
  736. else
  737.    MAKEINFO="$missing_dir/missing makeinfo"
  738.    echo "$ac_t""missing" 1>&6
  739. fi
  740.  
  741. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  742. echo "configure:743: checking whether ${MAKE-make} sets \${MAKE}" >&5
  743. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  744. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  745.   echo $ac_n "(cached) $ac_c" 1>&6
  746. else
  747.   cat > conftestmake <<\EOF
  748. all:
  749.     @echo 'ac_maketemp="${MAKE}"'
  750. EOF
  751. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  752. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  753. if test -n "$ac_maketemp"; then
  754.   eval ac_cv_prog_make_${ac_make}_set=yes
  755. else
  756.   eval ac_cv_prog_make_${ac_make}_set=no
  757. fi
  758. rm -f conftestmake
  759. fi
  760. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  761.   echo "$ac_t""yes" 1>&6
  762.   SET_MAKE=
  763. else
  764.   echo "$ac_t""no" 1>&6
  765.   SET_MAKE="MAKE=${MAKE-make}"
  766. fi
  767.  
  768.  
  769. # Extract the first word of "gcc", so it can be a program name with args.
  770. set dummy gcc; ac_word=$2
  771. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  772. echo "configure:773: checking for $ac_word" >&5
  773. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  774.   echo $ac_n "(cached) $ac_c" 1>&6
  775. else
  776.   if test -n "$CC"; then
  777.   ac_cv_prog_CC="$CC" # Let the user override the test.
  778. else
  779.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  780.   for ac_dir in $PATH; do
  781.     test -z "$ac_dir" && ac_dir=.
  782.     if test -f $ac_dir/$ac_word; then
  783.       ac_cv_prog_CC="gcc"
  784.       break
  785.     fi
  786.   done
  787.   IFS="$ac_save_ifs"
  788. fi
  789. fi
  790. CC="$ac_cv_prog_CC"
  791. if test -n "$CC"; then
  792.   echo "$ac_t""$CC" 1>&6
  793. else
  794.   echo "$ac_t""no" 1>&6
  795. fi
  796.  
  797. if test -z "$CC"; then
  798.   # Extract the first word of "cc", so it can be a program name with args.
  799. set dummy cc; ac_word=$2
  800. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  801. echo "configure:802: checking for $ac_word" >&5
  802. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  803.   echo $ac_n "(cached) $ac_c" 1>&6
  804. else
  805.   if test -n "$CC"; then
  806.   ac_cv_prog_CC="$CC" # Let the user override the test.
  807. else
  808.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  809.   ac_prog_rejected=no
  810.   for ac_dir in $PATH; do
  811.     test -z "$ac_dir" && ac_dir=.
  812.     if test -f $ac_dir/$ac_word; then
  813.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  814.         ac_prog_rejected=yes
  815.     continue
  816.       fi
  817.       ac_cv_prog_CC="cc"
  818.       break
  819.     fi
  820.   done
  821.   IFS="$ac_save_ifs"
  822. if test $ac_prog_rejected = yes; then
  823.   # We found a bogon in the path, so make sure we never use it.
  824.   set dummy $ac_cv_prog_CC
  825.   shift
  826.   if test $# -gt 0; then
  827.     # We chose a different compiler from the bogus one.
  828.     # However, it has the same basename, so the bogon will be chosen
  829.     # first if we set CC to just the basename; use the full file name.
  830.     shift
  831.     set dummy "$ac_dir/$ac_word" "$@"
  832.     shift
  833.     ac_cv_prog_CC="$@"
  834.   fi
  835. fi
  836. fi
  837. fi
  838. CC="$ac_cv_prog_CC"
  839. if test -n "$CC"; then
  840.   echo "$ac_t""$CC" 1>&6
  841. else
  842.   echo "$ac_t""no" 1>&6
  843. fi
  844.  
  845.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  846. fi
  847.  
  848. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  849. echo "configure:850: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  850.  
  851. ac_ext=c
  852. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  853. ac_cpp='$CPP $CPPFLAGS'
  854. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  855. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  856. cross_compiling=$ac_cv_prog_cc_cross
  857.  
  858. cat > conftest.$ac_ext <<EOF
  859. #line 860 "configure"
  860. #include "confdefs.h"
  861. main(){return(0);}
  862. EOF
  863. if { (eval echo configure:864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  864.   ac_cv_prog_cc_works=yes
  865.   # If we can't run a trivial program, we are probably using a cross compiler.
  866.   if (./conftest; exit) 2>/dev/null; then
  867.     ac_cv_prog_cc_cross=no
  868.   else
  869.     ac_cv_prog_cc_cross=yes
  870.   fi
  871. else
  872.   echo "configure: failed program was:" >&5
  873.   cat conftest.$ac_ext >&5
  874.   ac_cv_prog_cc_works=no
  875. fi
  876. rm -fr conftest*
  877.  
  878. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  879. if test $ac_cv_prog_cc_works = no; then
  880.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  881. fi
  882. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  883. echo "configure:884: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  884. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  885. cross_compiling=$ac_cv_prog_cc_cross
  886.  
  887. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  888. echo "configure:889: checking whether we are using GNU C" >&5
  889. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  890.   echo $ac_n "(cached) $ac_c" 1>&6
  891. else
  892.   cat > conftest.c <<EOF
  893. #ifdef __GNUC__
  894.   yes;
  895. #endif
  896. EOF
  897. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  898.   ac_cv_prog_gcc=yes
  899. else
  900.   ac_cv_prog_gcc=no
  901. fi
  902. fi
  903.  
  904. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  905.  
  906. if test $ac_cv_prog_gcc = yes; then
  907.   GCC=yes
  908.   ac_test_CFLAGS="${CFLAGS+set}"
  909.   ac_save_CFLAGS="$CFLAGS"
  910.   CFLAGS=
  911.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  912. echo "configure:913: checking whether ${CC-cc} accepts -g" >&5
  913. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  914.   echo $ac_n "(cached) $ac_c" 1>&6
  915. else
  916.   echo 'void f(){}' > conftest.c
  917. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  918.   ac_cv_prog_cc_g=yes
  919. else
  920.   ac_cv_prog_cc_g=no
  921. fi
  922. rm -f conftest*
  923.  
  924. fi
  925.  
  926. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  927.   if test "$ac_test_CFLAGS" = set; then
  928.     CFLAGS="$ac_save_CFLAGS"
  929.   elif test $ac_cv_prog_cc_g = yes; then
  930.     CFLAGS="-g -O2"
  931.   else
  932.     CFLAGS="-O2"
  933.   fi
  934. else
  935.   GCC=
  936.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  937. fi
  938.  
  939. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  940. echo "configure:941: checking how to run the C preprocessor" >&5
  941. # On Suns, sometimes $CPP names a directory.
  942. if test -n "$CPP" && test -d "$CPP"; then
  943.   CPP=
  944. fi
  945. if test -z "$CPP"; then
  946. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  947.   echo $ac_n "(cached) $ac_c" 1>&6
  948. else
  949.     # This must be in double quotes, not single quotes, because CPP may get
  950.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  951.   CPP="${CC-cc} -E"
  952.   # On the NeXT, cc -E runs the code through the compiler's parser,
  953.   # not just through cpp.
  954.   cat > conftest.$ac_ext <<EOF
  955. #line 956 "configure"
  956. #include "confdefs.h"
  957. #include <assert.h>
  958. Syntax Error
  959. EOF
  960. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  961. { (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  962. ac_err=`grep -v '^ *+' conftest.out`
  963. if test -z "$ac_err"; then
  964.   :
  965. else
  966.   echo "$ac_err" >&5
  967.   echo "configure: failed program was:" >&5
  968.   cat conftest.$ac_ext >&5
  969.   rm -rf conftest*
  970.   CPP="${CC-cc} -E -traditional-cpp"
  971.   cat > conftest.$ac_ext <<EOF
  972. #line 973 "configure"
  973. #include "confdefs.h"
  974. #include <assert.h>
  975. Syntax Error
  976. EOF
  977. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  978. { (eval echo configure:979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  979. ac_err=`grep -v '^ *+' conftest.out`
  980. if test -z "$ac_err"; then
  981.   :
  982. else
  983.   echo "$ac_err" >&5
  984.   echo "configure: failed program was:" >&5
  985.   cat conftest.$ac_ext >&5
  986.   rm -rf conftest*
  987.   CPP=/lib/cpp
  988. fi
  989. rm -f conftest*
  990. fi
  991. rm -f conftest*
  992.   ac_cv_prog_CPP="$CPP"
  993. fi
  994.   CPP="$ac_cv_prog_CPP"
  995. else
  996.   ac_cv_prog_CPP="$CPP"
  997. fi
  998. echo "$ac_t""$CPP" 1>&6
  999.  
  1000. if test $ac_cv_prog_gcc = yes; then
  1001.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  1002. echo "configure:1003: checking whether ${CC-cc} needs -traditional" >&5
  1003. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  1004.   echo $ac_n "(cached) $ac_c" 1>&6
  1005. else
  1006.     ac_pattern="Autoconf.*'x'"
  1007.   cat > conftest.$ac_ext <<EOF
  1008. #line 1009 "configure"
  1009. #include "confdefs.h"
  1010. #include <sgtty.h>
  1011. Autoconf TIOCGETP
  1012. EOF
  1013. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1014.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1015.   rm -rf conftest*
  1016.   ac_cv_prog_gcc_traditional=yes
  1017. else
  1018.   rm -rf conftest*
  1019.   ac_cv_prog_gcc_traditional=no
  1020. fi
  1021. rm -f conftest*
  1022.  
  1023.  
  1024.   if test $ac_cv_prog_gcc_traditional = no; then
  1025.     cat > conftest.$ac_ext <<EOF
  1026. #line 1027 "configure"
  1027. #include "confdefs.h"
  1028. #include <termio.h>
  1029. Autoconf TCGETA
  1030. EOF
  1031. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1032.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1033.   rm -rf conftest*
  1034.   ac_cv_prog_gcc_traditional=yes
  1035. fi
  1036. rm -f conftest*
  1037.  
  1038.   fi
  1039. fi
  1040.  
  1041. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  1042.   if test $ac_cv_prog_gcc_traditional = yes; then
  1043.     CC="$CC -traditional"
  1044.   fi
  1045. fi
  1046.  
  1047. # Find a good install program.  We prefer a C program (faster),
  1048. # so one script is as good as another.  But avoid the broken or
  1049. # incompatible versions:
  1050. # SysV /etc/install, /usr/sbin/install
  1051. # SunOS /usr/etc/install
  1052. # IRIX /sbin/install
  1053. # AIX /bin/install
  1054. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1055. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1056. # ./install, which can be erroneously created by make from ./install.sh.
  1057. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1058. echo "configure:1059: checking for a BSD compatible install" >&5
  1059. if test -z "$INSTALL"; then
  1060. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1061.   echo $ac_n "(cached) $ac_c" 1>&6
  1062. else
  1063.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  1064.   for ac_dir in $PATH; do
  1065.     # Account for people who put trailing slashes in PATH elements.
  1066.     case "$ac_dir/" in
  1067.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1068.     *)
  1069.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1070.       for ac_prog in ginstall installbsd scoinst install; do
  1071.         if test -f $ac_dir/$ac_prog; then
  1072.       if test $ac_prog = install &&
  1073.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1074.         # AIX install.  It has an incompatible calling convention.
  1075.         # OSF/1 installbsd also uses dspmsg, but is usable.
  1076.         :
  1077.       else
  1078.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1079.         break 2
  1080.       fi
  1081.     fi
  1082.       done
  1083.       ;;
  1084.     esac
  1085.   done
  1086.   IFS="$ac_save_IFS"
  1087.  
  1088. fi
  1089.   if test "${ac_cv_path_install+set}" = set; then
  1090.     INSTALL="$ac_cv_path_install"
  1091.   else
  1092.     # As a last resort, use the slow shell script.  We don't cache a
  1093.     # path for INSTALL within a source directory, because that will
  1094.     # break other packages using the cache if that directory is
  1095.     # removed, or if the path is relative.
  1096.     INSTALL="$ac_install_sh"
  1097.   fi
  1098. fi
  1099. echo "$ac_t""$INSTALL" 1>&6
  1100.  
  1101. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1102. # It thinks the first close brace ends the variable substitution.
  1103. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1104.  
  1105. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1106.  
  1107. # Extract the first word of "ranlib", so it can be a program name with args.
  1108. set dummy ranlib; ac_word=$2
  1109. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1110. echo "configure:1111: checking for $ac_word" >&5
  1111. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1112.   echo $ac_n "(cached) $ac_c" 1>&6
  1113. else
  1114.   if test -n "$RANLIB"; then
  1115.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1116. else
  1117.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1118.   for ac_dir in $PATH; do
  1119.     test -z "$ac_dir" && ac_dir=.
  1120.     if test -f $ac_dir/$ac_word; then
  1121.       ac_cv_prog_RANLIB="ranlib"
  1122.       break
  1123.     fi
  1124.   done
  1125.   IFS="$ac_save_ifs"
  1126.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1127. fi
  1128. fi
  1129. RANLIB="$ac_cv_prog_RANLIB"
  1130. if test -n "$RANLIB"; then
  1131.   echo "$ac_t""$RANLIB" 1>&6
  1132. else
  1133.   echo "$ac_t""no" 1>&6
  1134. fi
  1135.  
  1136.  
  1137. # We do this for the sake of a more helpful warning in doc/Makefile.
  1138. TEXMF='$(datadir)/texmf'
  1139. # Extract the first word of "texconfig", so it can be a program name with args.
  1140. set dummy texconfig; ac_word=$2
  1141. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1142. echo "configure:1143: checking for $ac_word" >&5
  1143. if eval "test \"`echo '$''{'ac_cv_prog_TEXCONFIG'+set}'`\" = set"; then
  1144.   echo $ac_n "(cached) $ac_c" 1>&6
  1145. else
  1146.   if test -n "$TEXCONFIG"; then
  1147.   ac_cv_prog_TEXCONFIG="$TEXCONFIG" # Let the user override the test.
  1148. else
  1149.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1150.   for ac_dir in $PATH; do
  1151.     test -z "$ac_dir" && ac_dir=.
  1152.     if test -f $ac_dir/$ac_word; then
  1153.       ac_cv_prog_TEXCONFIG="true"
  1154.       break
  1155.     fi
  1156.   done
  1157.   IFS="$ac_save_ifs"
  1158.   test -z "$ac_cv_prog_TEXCONFIG" && ac_cv_prog_TEXCONFIG="false"
  1159. fi
  1160. fi
  1161. TEXCONFIG="$ac_cv_prog_TEXCONFIG"
  1162. if test -n "$TEXCONFIG"; then
  1163.   echo "$ac_t""$TEXCONFIG" 1>&6
  1164. else
  1165.   echo "$ac_t""no" 1>&6
  1166. fi
  1167.  
  1168. $TEXCONFIG && eval `texconfig confall | grep '^TEXMF='`
  1169.  
  1170.  
  1171. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1172. echo "configure:1173: checking for POSIXized ISC" >&5
  1173. if test -d /etc/conf/kconfig.d &&
  1174.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1175. then
  1176.   echo "$ac_t""yes" 1>&6
  1177.   ISC=yes # If later tests want to check for ISC.
  1178.   cat >> confdefs.h <<\EOF
  1179. #define _POSIX_SOURCE 1
  1180. EOF
  1181.  
  1182.   if test "$GCC" = yes; then
  1183.     CC="$CC -posix"
  1184.   else
  1185.     CC="$CC -Xp"
  1186.   fi
  1187. else
  1188.   echo "$ac_t""no" 1>&6
  1189.   ISC=
  1190. fi
  1191.  
  1192. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  1193. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1194. echo "configure:1195: checking for minix/config.h" >&5
  1195. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1196.   echo $ac_n "(cached) $ac_c" 1>&6
  1197. else
  1198.   cat > conftest.$ac_ext <<EOF
  1199. #line 1200 "configure"
  1200. #include "confdefs.h"
  1201. #include <minix/config.h>
  1202. EOF
  1203. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1204. { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1205. ac_err=`grep -v '^ *+' conftest.out`
  1206. if test -z "$ac_err"; then
  1207.   rm -rf conftest*
  1208.   eval "ac_cv_header_$ac_safe=yes"
  1209. else
  1210.   echo "$ac_err" >&5
  1211.   echo "configure: failed program was:" >&5
  1212.   cat conftest.$ac_ext >&5
  1213.   rm -rf conftest*
  1214.   eval "ac_cv_header_$ac_safe=no"
  1215. fi
  1216. rm -f conftest*
  1217. fi
  1218. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1219.   echo "$ac_t""yes" 1>&6
  1220.   MINIX=yes
  1221. else
  1222.   echo "$ac_t""no" 1>&6
  1223. MINIX=
  1224. fi
  1225.  
  1226. if test "$MINIX" = yes; then
  1227.   cat >> confdefs.h <<\EOF
  1228. #define _POSIX_SOURCE 1
  1229. EOF
  1230.  
  1231.   cat >> confdefs.h <<\EOF
  1232. #define _POSIX_1_SOURCE 2
  1233. EOF
  1234.  
  1235.   cat >> confdefs.h <<\EOF
  1236. #define _MINIX 1
  1237. EOF
  1238.  
  1239. fi
  1240.  
  1241.  
  1242. # Needed on sysV68 for sigblock, sigsetmask.
  1243. echo $ac_n "checking for sigblock in -lbsd""... $ac_c" 1>&6
  1244. echo "configure:1245: checking for sigblock in -lbsd" >&5
  1245. ac_lib_var=`echo bsd'_'sigblock | sed 'y%./+-%__p_%'`
  1246. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1247.   echo $ac_n "(cached) $ac_c" 1>&6
  1248. else
  1249.   ac_save_LIBS="$LIBS"
  1250. LIBS="-lbsd  $LIBS"
  1251. cat > conftest.$ac_ext <<EOF
  1252. #line 1253 "configure"
  1253. #include "confdefs.h"
  1254. /* Override any gcc2 internal prototype to avoid an error.  */
  1255. /* We use char because int might match the return type of a gcc2
  1256.     builtin and then its argument prototype would still apply.  */
  1257. char sigblock();
  1258.  
  1259. int main() {
  1260. sigblock()
  1261. ; return 0; }
  1262. EOF
  1263. if { (eval echo configure:1264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1264.   rm -rf conftest*
  1265.   eval "ac_cv_lib_$ac_lib_var=yes"
  1266. else
  1267.   echo "configure: failed program was:" >&5
  1268.   cat conftest.$ac_ext >&5
  1269.   rm -rf conftest*
  1270.   eval "ac_cv_lib_$ac_lib_var=no"
  1271. fi
  1272. rm -f conftest*
  1273. LIBS="$ac_save_LIBS"
  1274.  
  1275. fi
  1276. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1277.   echo "$ac_t""yes" 1>&6
  1278.     ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1279.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1280.   cat >> confdefs.h <<EOF
  1281. #define $ac_tr_lib 1
  1282. EOF
  1283.  
  1284.   LIBS="-lbsd $LIBS"
  1285.  
  1286. else
  1287.   echo "$ac_t""no" 1>&6
  1288. fi
  1289.  
  1290.  
  1291. # Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
  1292. # rather ncurses.  So we check for it.
  1293. TERMLIBS=
  1294. for termlib in ncurses curses termcap terminfo termlib ; do
  1295.    echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
  1296. echo "configure:1297: checking for tputs in -l${termlib}" >&5
  1297. ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
  1298. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1299.   echo $ac_n "(cached) $ac_c" 1>&6
  1300. else
  1301.   ac_save_LIBS="$LIBS"
  1302. LIBS="-l${termlib}  $LIBS"
  1303. cat > conftest.$ac_ext <<EOF
  1304. #line 1305 "configure"
  1305. #include "confdefs.h"
  1306. /* Override any gcc2 internal prototype to avoid an error.  */
  1307. /* We use char because int might match the return type of a gcc2
  1308.     builtin and then its argument prototype would still apply.  */
  1309. char tputs();
  1310.  
  1311. int main() {
  1312. tputs()
  1313. ; return 0; }
  1314. EOF
  1315. if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1316.   rm -rf conftest*
  1317.   eval "ac_cv_lib_$ac_lib_var=yes"
  1318. else
  1319.   echo "configure: failed program was:" >&5
  1320.   cat conftest.$ac_ext >&5
  1321.   rm -rf conftest*
  1322.   eval "ac_cv_lib_$ac_lib_var=no"
  1323. fi
  1324. rm -f conftest*
  1325. LIBS="$ac_save_LIBS"
  1326.  
  1327. fi
  1328. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1329.   echo "$ac_t""yes" 1>&6
  1330.   TERMLIBS="${TERMLIBS} -l${termlib}"; break
  1331. else
  1332.   echo "$ac_t""no" 1>&6
  1333. fi
  1334.  
  1335. done
  1336.  
  1337.  
  1338. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1339. echo "configure:1340: checking for ANSI C header files" >&5
  1340. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1341.   echo $ac_n "(cached) $ac_c" 1>&6
  1342. else
  1343.   cat > conftest.$ac_ext <<EOF
  1344. #line 1345 "configure"
  1345. #include "confdefs.h"
  1346. #include <stdlib.h>
  1347. #include <stdarg.h>
  1348. #include <string.h>
  1349. #include <float.h>
  1350. EOF
  1351. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1352. { (eval echo configure:1353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1353. ac_err=`grep -v '^ *+' conftest.out`
  1354. if test -z "$ac_err"; then
  1355.   rm -rf conftest*
  1356.   ac_cv_header_stdc=yes
  1357. else
  1358.   echo "$ac_err" >&5
  1359.   echo "configure: failed program was:" >&5
  1360.   cat conftest.$ac_ext >&5
  1361.   rm -rf conftest*
  1362.   ac_cv_header_stdc=no
  1363. fi
  1364. rm -f conftest*
  1365.  
  1366. if test $ac_cv_header_stdc = yes; then
  1367.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1368. cat > conftest.$ac_ext <<EOF
  1369. #line 1370 "configure"
  1370. #include "confdefs.h"
  1371. #include <string.h>
  1372. EOF
  1373. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1374.   egrep "memchr" >/dev/null 2>&1; then
  1375.   :
  1376. else
  1377.   rm -rf conftest*
  1378.   ac_cv_header_stdc=no
  1379. fi
  1380. rm -f conftest*
  1381.  
  1382. fi
  1383.  
  1384. if test $ac_cv_header_stdc = yes; then
  1385.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1386. cat > conftest.$ac_ext <<EOF
  1387. #line 1388 "configure"
  1388. #include "confdefs.h"
  1389. #include <stdlib.h>
  1390. EOF
  1391. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1392.   egrep "free" >/dev/null 2>&1; then
  1393.   :
  1394. else
  1395.   rm -rf conftest*
  1396.   ac_cv_header_stdc=no
  1397. fi
  1398. rm -f conftest*
  1399.  
  1400. fi
  1401.  
  1402. if test $ac_cv_header_stdc = yes; then
  1403.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1404. if test "$cross_compiling" = yes; then
  1405.   :
  1406. else
  1407.   cat > conftest.$ac_ext <<EOF
  1408. #line 1409 "configure"
  1409. #include "confdefs.h"
  1410. #include <ctype.h>
  1411. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1412. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1413. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1414. int main () { int i; for (i = 0; i < 256; i++)
  1415. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1416. exit (0); }
  1417.  
  1418. EOF
  1419. if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1420. then
  1421.   :
  1422. else
  1423.   echo "configure: failed program was:" >&5
  1424.   cat conftest.$ac_ext >&5
  1425.   rm -fr conftest*
  1426.   ac_cv_header_stdc=no
  1427. fi
  1428. rm -fr conftest*
  1429. fi
  1430.  
  1431. fi
  1432. fi
  1433.  
  1434. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1435. if test $ac_cv_header_stdc = yes; then
  1436.   cat >> confdefs.h <<\EOF
  1437. #define STDC_HEADERS 1
  1438. EOF
  1439.  
  1440. fi
  1441.  
  1442. for ac_hdr in fcntl.h pwd.h string.h strings.h termcap.h termio.h \
  1443.   termios.h unistd.h \
  1444.   sys/fcntl.h sys/file.h sys/ptem.h sys/time.h sys/ttold.h sys/wait.h
  1445. do
  1446. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1447. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1448. echo "configure:1449: checking for $ac_hdr" >&5
  1449. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1450.   echo $ac_n "(cached) $ac_c" 1>&6
  1451. else
  1452.   cat > conftest.$ac_ext <<EOF
  1453. #line 1454 "configure"
  1454. #include "confdefs.h"
  1455. #include <$ac_hdr>
  1456. EOF
  1457. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1458. { (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1459. ac_err=`grep -v '^ *+' conftest.out`
  1460. if test -z "$ac_err"; then
  1461.   rm -rf conftest*
  1462.   eval "ac_cv_header_$ac_safe=yes"
  1463. else
  1464.   echo "$ac_err" >&5
  1465.   echo "configure: failed program was:" >&5
  1466.   cat conftest.$ac_ext >&5
  1467.   rm -rf conftest*
  1468.   eval "ac_cv_header_$ac_safe=no"
  1469. fi
  1470. rm -f conftest*
  1471. fi
  1472. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1473.   echo "$ac_t""yes" 1>&6
  1474.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1475.   cat >> confdefs.h <<EOF
  1476. #define $ac_tr_hdr 1
  1477. EOF
  1478.  
  1479. else
  1480.   echo "$ac_t""no" 1>&6
  1481. fi
  1482. done
  1483.  
  1484.  
  1485. if test "x$termlib" = xncurses; then
  1486.   ac_safe=`echo "ncurses/termcap.h" | sed 'y%./+-%__p_%'`
  1487. echo $ac_n "checking for ncurses/termcap.h""... $ac_c" 1>&6
  1488. echo "configure:1489: checking for ncurses/termcap.h" >&5
  1489. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1490.   echo $ac_n "(cached) $ac_c" 1>&6
  1491. else
  1492.   cat > conftest.$ac_ext <<EOF
  1493. #line 1494 "configure"
  1494. #include "confdefs.h"
  1495. #include <ncurses/termcap.h>
  1496. EOF
  1497. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1498. { (eval echo configure:1499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1499. ac_err=`grep -v '^ *+' conftest.out`
  1500. if test -z "$ac_err"; then
  1501.   rm -rf conftest*
  1502.   eval "ac_cv_header_$ac_safe=yes"
  1503. else
  1504.   echo "$ac_err" >&5
  1505.   echo "configure: failed program was:" >&5
  1506.   cat conftest.$ac_ext >&5
  1507.   rm -rf conftest*
  1508.   eval "ac_cv_header_$ac_safe=no"
  1509. fi
  1510. rm -f conftest*
  1511. fi
  1512. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1513.   echo "$ac_t""yes" 1>&6
  1514.   :
  1515. else
  1516.   echo "$ac_t""no" 1>&6
  1517. fi
  1518.  
  1519. fi
  1520.  
  1521. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  1522. echo "configure:1523: checking for off_t" >&5
  1523. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  1524.   echo $ac_n "(cached) $ac_c" 1>&6
  1525. else
  1526.   cat > conftest.$ac_ext <<EOF
  1527. #line 1528 "configure"
  1528. #include "confdefs.h"
  1529. #include <sys/types.h>
  1530. #if STDC_HEADERS
  1531. #include <stdlib.h>
  1532. #include <stddef.h>
  1533. #endif
  1534. EOF
  1535. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1536.   egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1537.   rm -rf conftest*
  1538.   ac_cv_type_off_t=yes
  1539. else
  1540.   rm -rf conftest*
  1541.   ac_cv_type_off_t=no
  1542. fi
  1543. rm -f conftest*
  1544.  
  1545. fi
  1546. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  1547. if test $ac_cv_type_off_t = no; then
  1548.   cat >> confdefs.h <<\EOF
  1549. #define off_t long
  1550. EOF
  1551.  
  1552. fi
  1553.  
  1554. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1555. echo "configure:1556: checking return type of signal handlers" >&5
  1556. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1557.   echo $ac_n "(cached) $ac_c" 1>&6
  1558. else
  1559.   cat > conftest.$ac_ext <<EOF
  1560. #line 1561 "configure"
  1561. #include "confdefs.h"
  1562. #include <sys/types.h>
  1563. #include <signal.h>
  1564. #ifdef signal
  1565. #undef signal
  1566. #endif
  1567. #ifdef __cplusplus
  1568. extern "C" void (*signal (int, void (*)(int)))(int);
  1569. #else
  1570. void (*signal ()) ();
  1571. #endif
  1572.  
  1573. int main() {
  1574. int i;
  1575. ; return 0; }
  1576. EOF
  1577. if { (eval echo configure:1578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1578.   rm -rf conftest*
  1579.   ac_cv_type_signal=void
  1580. else
  1581.   echo "configure: failed program was:" >&5
  1582.   cat conftest.$ac_ext >&5
  1583.   rm -rf conftest*
  1584.   ac_cv_type_signal=int
  1585. fi
  1586. rm -f conftest*
  1587. fi
  1588.  
  1589. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1590. cat >> confdefs.h <<EOF
  1591. #define RETSIGTYPE $ac_cv_type_signal
  1592. EOF
  1593.  
  1594.  
  1595. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1596. echo "configure:1597: checking for working const" >&5
  1597. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1598.   echo $ac_n "(cached) $ac_c" 1>&6
  1599. else
  1600.   cat > conftest.$ac_ext <<EOF
  1601. #line 1602 "configure"
  1602. #include "confdefs.h"
  1603.  
  1604. int main() {
  1605.  
  1606. /* Ultrix mips cc rejects this.  */
  1607. typedef int charset[2]; const charset x;
  1608. /* SunOS 4.1.1 cc rejects this.  */
  1609. char const *const *ccp;
  1610. char **p;
  1611. /* NEC SVR4.0.2 mips cc rejects this.  */
  1612. struct point {int x, y;};
  1613. static struct point const zero = {0,0};
  1614. /* AIX XL C 1.02.0.0 rejects this.
  1615.    It does not let you subtract one const X* pointer from another in an arm
  1616.    of an if-expression whose if-part is not a constant expression */
  1617. const char *g = "string";
  1618. ccp = &g + (g ? g-g : 0);
  1619. /* HPUX 7.0 cc rejects these. */
  1620. ++ccp;
  1621. p = (char**) ccp;
  1622. ccp = (char const *const *) p;
  1623. { /* SCO 3.2v4 cc rejects this.  */
  1624.   char *t;
  1625.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1626.  
  1627.   *t++ = 0;
  1628. }
  1629. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1630.   int x[] = {25, 17};
  1631.   const int *foo = &x[0];
  1632.   ++foo;
  1633. }
  1634. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1635.   typedef const int *iptr;
  1636.   iptr p = 0;
  1637.   ++p;
  1638. }
  1639. { /* AIX XL C 1.02.0.0 rejects this saying
  1640.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1641.   struct s { int j; const int *ap[3]; };
  1642.   struct s *b; b->j = 5;
  1643. }
  1644. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1645.   const int foo = 10;
  1646. }
  1647.  
  1648. ; return 0; }
  1649. EOF
  1650. if { (eval echo configure:1651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1651.   rm -rf conftest*
  1652.   ac_cv_c_const=yes
  1653. else
  1654.   echo "configure: failed program was:" >&5
  1655.   cat conftest.$ac_ext >&5
  1656.   rm -rf conftest*
  1657.   ac_cv_c_const=no
  1658. fi
  1659. rm -f conftest*
  1660. fi
  1661.  
  1662. echo "$ac_t""$ac_cv_c_const" 1>&6
  1663. if test $ac_cv_c_const = no; then
  1664.   cat >> confdefs.h <<\EOF
  1665. #define const 
  1666. EOF
  1667.  
  1668. fi
  1669.  
  1670. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  1671. echo "configure:1672: checking whether struct tm is in sys/time.h or time.h" >&5
  1672. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  1673.   echo $ac_n "(cached) $ac_c" 1>&6
  1674. else
  1675.   cat > conftest.$ac_ext <<EOF
  1676. #line 1677 "configure"
  1677. #include "confdefs.h"
  1678. #include <sys/types.h>
  1679. #include <time.h>
  1680. int main() {
  1681. struct tm *tp; tp->tm_sec;
  1682. ; return 0; }
  1683. EOF
  1684. if { (eval echo configure:1685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1685.   rm -rf conftest*
  1686.   ac_cv_struct_tm=time.h
  1687. else
  1688.   echo "configure: failed program was:" >&5
  1689.   cat conftest.$ac_ext >&5
  1690.   rm -rf conftest*
  1691.   ac_cv_struct_tm=sys/time.h
  1692. fi
  1693. rm -f conftest*
  1694. fi
  1695.  
  1696. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  1697. if test $ac_cv_struct_tm = sys/time.h; then
  1698.   cat >> confdefs.h <<\EOF
  1699. #define TM_IN_SYS_TIME 1
  1700. EOF
  1701.  
  1702. fi
  1703.  
  1704.  
  1705. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1706. # for constant arguments.  Useless!
  1707. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1708. echo "configure:1709: checking for working alloca.h" >&5
  1709. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1710.   echo $ac_n "(cached) $ac_c" 1>&6
  1711. else
  1712.   cat > conftest.$ac_ext <<EOF
  1713. #line 1714 "configure"
  1714. #include "confdefs.h"
  1715. #include <alloca.h>
  1716. int main() {
  1717. char *p = alloca(2 * sizeof(int));
  1718. ; return 0; }
  1719. EOF
  1720. if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1721.   rm -rf conftest*
  1722.   ac_cv_header_alloca_h=yes
  1723. else
  1724.   echo "configure: failed program was:" >&5
  1725.   cat conftest.$ac_ext >&5
  1726.   rm -rf conftest*
  1727.   ac_cv_header_alloca_h=no
  1728. fi
  1729. rm -f conftest*
  1730. fi
  1731.  
  1732. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1733. if test $ac_cv_header_alloca_h = yes; then
  1734.   cat >> confdefs.h <<\EOF
  1735. #define HAVE_ALLOCA_H 1
  1736. EOF
  1737.  
  1738. fi
  1739.  
  1740. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1741. echo "configure:1742: checking for alloca" >&5
  1742. if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  1743.   echo $ac_n "(cached) $ac_c" 1>&6
  1744. else
  1745.   cat > conftest.$ac_ext <<EOF
  1746. #line 1747 "configure"
  1747. #include "confdefs.h"
  1748.  
  1749. #ifdef __GNUC__
  1750. # define alloca __builtin_alloca
  1751. #else
  1752. # if HAVE_ALLOCA_H
  1753. #  include <alloca.h>
  1754. # else
  1755. #  ifdef _AIX
  1756.  #pragma alloca
  1757. #  else
  1758. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1759. char *alloca ();
  1760. #   endif
  1761. #  endif
  1762. # endif
  1763. #endif
  1764.  
  1765. int main() {
  1766. char *p = (char *) alloca(1);
  1767. ; return 0; }
  1768. EOF
  1769. if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1770.   rm -rf conftest*
  1771.   ac_cv_func_alloca_works=yes
  1772. else
  1773.   echo "configure: failed program was:" >&5
  1774.   cat conftest.$ac_ext >&5
  1775.   rm -rf conftest*
  1776.   ac_cv_func_alloca_works=no
  1777. fi
  1778. rm -f conftest*
  1779. fi
  1780.  
  1781. echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
  1782. if test $ac_cv_func_alloca_works = yes; then
  1783.   cat >> confdefs.h <<\EOF
  1784. #define HAVE_ALLOCA 1
  1785. EOF
  1786.  
  1787. fi
  1788.  
  1789. if test $ac_cv_func_alloca_works = no; then
  1790.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1791.   # that cause trouble.  Some versions do not even contain alloca or
  1792.   # contain a buggy version.  If you still want to use their alloca,
  1793.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1794.   ALLOCA=alloca.o
  1795.   cat >> confdefs.h <<\EOF
  1796. #define C_ALLOCA 1
  1797. EOF
  1798.  
  1799.  
  1800. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1801. echo "configure:1802: checking whether alloca needs Cray hooks" >&5
  1802. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1803.   echo $ac_n "(cached) $ac_c" 1>&6
  1804. else
  1805.   cat > conftest.$ac_ext <<EOF
  1806. #line 1807 "configure"
  1807. #include "confdefs.h"
  1808. #if defined(CRAY) && ! defined(CRAY2)
  1809. webecray
  1810. #else
  1811. wenotbecray
  1812. #endif
  1813.  
  1814. EOF
  1815. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1816.   egrep "webecray" >/dev/null 2>&1; then
  1817.   rm -rf conftest*
  1818.   ac_cv_os_cray=yes
  1819. else
  1820.   rm -rf conftest*
  1821.   ac_cv_os_cray=no
  1822. fi
  1823. rm -f conftest*
  1824.  
  1825. fi
  1826.  
  1827. echo "$ac_t""$ac_cv_os_cray" 1>&6
  1828. if test $ac_cv_os_cray = yes; then
  1829. for ac_func in _getb67 GETB67 getb67; do
  1830.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1831. echo "configure:1832: checking for $ac_func" >&5
  1832. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1833.   echo $ac_n "(cached) $ac_c" 1>&6
  1834. else
  1835.   cat > conftest.$ac_ext <<EOF
  1836. #line 1837 "configure"
  1837. #include "confdefs.h"
  1838. /* System header to define __stub macros and hopefully few prototypes,
  1839.     which can conflict with char $ac_func(); below.  */
  1840. #include <assert.h>
  1841. /* Override any gcc2 internal prototype to avoid an error.  */
  1842. /* We use char because int might match the return type of a gcc2
  1843.     builtin and then its argument prototype would still apply.  */
  1844. char $ac_func();
  1845.  
  1846. int main() {
  1847.  
  1848. /* The GNU C library defines this for functions which it implements
  1849.     to always fail with ENOSYS.  Some functions are actually named
  1850.     something starting with __ and the normal name is an alias.  */
  1851. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1852. choke me
  1853. #else
  1854. $ac_func();
  1855. #endif
  1856.  
  1857. ; return 0; }
  1858. EOF
  1859. if { (eval echo configure:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1860.   rm -rf conftest*
  1861.   eval "ac_cv_func_$ac_func=yes"
  1862. else
  1863.   echo "configure: failed program was:" >&5
  1864.   cat conftest.$ac_ext >&5
  1865.   rm -rf conftest*
  1866.   eval "ac_cv_func_$ac_func=no"
  1867. fi
  1868. rm -f conftest*
  1869. fi
  1870.  
  1871. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1872.   echo "$ac_t""yes" 1>&6
  1873.   cat >> confdefs.h <<EOF
  1874. #define CRAY_STACKSEG_END $ac_func
  1875. EOF
  1876.  
  1877.   break
  1878. else
  1879.   echo "$ac_t""no" 1>&6
  1880. fi
  1881.  
  1882. done
  1883. fi
  1884.  
  1885. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1886. echo "configure:1887: checking stack direction for C alloca" >&5
  1887. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1888.   echo $ac_n "(cached) $ac_c" 1>&6
  1889. else
  1890.   if test "$cross_compiling" = yes; then
  1891.   ac_cv_c_stack_direction=0
  1892. else
  1893.   cat > conftest.$ac_ext <<EOF
  1894. #line 1895 "configure"
  1895. #include "confdefs.h"
  1896. find_stack_direction ()
  1897. {
  1898.   static char *addr = 0;
  1899.   auto char dummy;
  1900.   if (addr == 0)
  1901.     {
  1902.       addr = &dummy;
  1903.       return find_stack_direction ();
  1904.     }
  1905.   else
  1906.     return (&dummy > addr) ? 1 : -1;
  1907. }
  1908. main ()
  1909. {
  1910.   exit (find_stack_direction() < 0);
  1911. }
  1912. EOF
  1913. if { (eval echo configure:1914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1914. then
  1915.   ac_cv_c_stack_direction=1
  1916. else
  1917.   echo "configure: failed program was:" >&5
  1918.   cat conftest.$ac_ext >&5
  1919.   rm -fr conftest*
  1920.   ac_cv_c_stack_direction=-1
  1921. fi
  1922. rm -fr conftest*
  1923. fi
  1924.  
  1925. fi
  1926.  
  1927. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1928. cat >> confdefs.h <<EOF
  1929. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1930. EOF
  1931.  
  1932. fi
  1933.  
  1934. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1935. echo "configure:1936: checking for vprintf" >&5
  1936. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1937.   echo $ac_n "(cached) $ac_c" 1>&6
  1938. else
  1939.   cat > conftest.$ac_ext <<EOF
  1940. #line 1941 "configure"
  1941. #include "confdefs.h"
  1942. /* System header to define __stub macros and hopefully few prototypes,
  1943.     which can conflict with char vprintf(); below.  */
  1944. #include <assert.h>
  1945. /* Override any gcc2 internal prototype to avoid an error.  */
  1946. /* We use char because int might match the return type of a gcc2
  1947.     builtin and then its argument prototype would still apply.  */
  1948. char vprintf();
  1949.  
  1950. int main() {
  1951.  
  1952. /* The GNU C library defines this for functions which it implements
  1953.     to always fail with ENOSYS.  Some functions are actually named
  1954.     something starting with __ and the normal name is an alias.  */
  1955. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  1956. choke me
  1957. #else
  1958. vprintf();
  1959. #endif
  1960.  
  1961. ; return 0; }
  1962. EOF
  1963. if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1964.   rm -rf conftest*
  1965.   eval "ac_cv_func_vprintf=yes"
  1966. else
  1967.   echo "configure: failed program was:" >&5
  1968.   cat conftest.$ac_ext >&5
  1969.   rm -rf conftest*
  1970.   eval "ac_cv_func_vprintf=no"
  1971. fi
  1972. rm -f conftest*
  1973. fi
  1974.  
  1975. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1976.   echo "$ac_t""yes" 1>&6
  1977.   cat >> confdefs.h <<\EOF
  1978. #define HAVE_VPRINTF 1
  1979. EOF
  1980.  
  1981. else
  1982.   echo "$ac_t""no" 1>&6
  1983. fi
  1984.  
  1985. if test "$ac_cv_func_vprintf" != yes; then
  1986. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  1987. echo "configure:1988: checking for _doprnt" >&5
  1988. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  1989.   echo $ac_n "(cached) $ac_c" 1>&6
  1990. else
  1991.   cat > conftest.$ac_ext <<EOF
  1992. #line 1993 "configure"
  1993. #include "confdefs.h"
  1994. /* System header to define __stub macros and hopefully few prototypes,
  1995.     which can conflict with char _doprnt(); below.  */
  1996. #include <assert.h>
  1997. /* Override any gcc2 internal prototype to avoid an error.  */
  1998. /* We use char because int might match the return type of a gcc2
  1999.     builtin and then its argument prototype would still apply.  */
  2000. char _doprnt();
  2001.  
  2002. int main() {
  2003.  
  2004. /* The GNU C library defines this for functions which it implements
  2005.     to always fail with ENOSYS.  Some functions are actually named
  2006.     something starting with __ and the normal name is an alias.  */
  2007. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2008. choke me
  2009. #else
  2010. _doprnt();
  2011. #endif
  2012.  
  2013. ; return 0; }
  2014. EOF
  2015. if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2016.   rm -rf conftest*
  2017.   eval "ac_cv_func__doprnt=yes"
  2018. else
  2019.   echo "configure: failed program was:" >&5
  2020.   cat conftest.$ac_ext >&5
  2021.   rm -rf conftest*
  2022.   eval "ac_cv_func__doprnt=no"
  2023. fi
  2024. rm -f conftest*
  2025. fi
  2026.  
  2027. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2028.   echo "$ac_t""yes" 1>&6
  2029.   cat >> confdefs.h <<\EOF
  2030. #define HAVE_DOPRNT 1
  2031. EOF
  2032.  
  2033. else
  2034.   echo "$ac_t""no" 1>&6
  2035. fi
  2036.  
  2037. fi
  2038.  
  2039. echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
  2040. echo "configure:2041: checking whether setvbuf arguments are reversed" >&5
  2041. if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
  2042.   echo $ac_n "(cached) $ac_c" 1>&6
  2043. else
  2044.   if test "$cross_compiling" = yes; then
  2045.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2046. else
  2047.   cat > conftest.$ac_ext <<EOF
  2048. #line 2049 "configure"
  2049. #include "confdefs.h"
  2050. #include <stdio.h>
  2051. /* If setvbuf has the reversed format, exit 0. */
  2052. main () {
  2053.   /* This call has the arguments reversed.
  2054.      A reversed system may check and see that the address of main
  2055.      is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  2056.   if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
  2057.     exit(1);
  2058.   putc('\r', stdout);
  2059.   exit(0);            /* Non-reversed systems segv here.  */
  2060. }
  2061. EOF
  2062. if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2063. then
  2064.   ac_cv_func_setvbuf_reversed=yes
  2065. else
  2066.   echo "configure: failed program was:" >&5
  2067.   cat conftest.$ac_ext >&5
  2068.   rm -fr conftest*
  2069.   ac_cv_func_setvbuf_reversed=no
  2070. fi
  2071. rm -fr conftest*
  2072. fi
  2073.  
  2074. rm -f core core.* *.core
  2075. fi
  2076.  
  2077. echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
  2078. if test $ac_cv_func_setvbuf_reversed = yes; then
  2079.   cat >> confdefs.h <<\EOF
  2080. #define SETVBUF_REVERSED 1
  2081. EOF
  2082.  
  2083. fi
  2084.  
  2085. for ac_func in setvbuf getcwd memset bzero strchr strcasecmp \
  2086.   sigprocmask sigsetmask
  2087. do
  2088. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2089. echo "configure:2090: checking for $ac_func" >&5
  2090. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2091.   echo $ac_n "(cached) $ac_c" 1>&6
  2092. else
  2093.   cat > conftest.$ac_ext <<EOF
  2094. #line 2095 "configure"
  2095. #include "confdefs.h"
  2096. /* System header to define __stub macros and hopefully few prototypes,
  2097.     which can conflict with char $ac_func(); below.  */
  2098. #include <assert.h>
  2099. /* Override any gcc2 internal prototype to avoid an error.  */
  2100. /* We use char because int might match the return type of a gcc2
  2101.     builtin and then its argument prototype would still apply.  */
  2102. char $ac_func();
  2103.  
  2104. int main() {
  2105.  
  2106. /* The GNU C library defines this for functions which it implements
  2107.     to always fail with ENOSYS.  Some functions are actually named
  2108.     something starting with __ and the normal name is an alias.  */
  2109. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2110. choke me
  2111. #else
  2112. $ac_func();
  2113. #endif
  2114.  
  2115. ; return 0; }
  2116. EOF
  2117. if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2118.   rm -rf conftest*
  2119.   eval "ac_cv_func_$ac_func=yes"
  2120. else
  2121.   echo "configure: failed program was:" >&5
  2122.   cat conftest.$ac_ext >&5
  2123.   rm -rf conftest*
  2124.   eval "ac_cv_func_$ac_func=no"
  2125. fi
  2126. rm -f conftest*
  2127. fi
  2128.  
  2129. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2130.   echo "$ac_t""yes" 1>&6
  2131.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2132.   cat >> confdefs.h <<EOF
  2133. #define $ac_tr_func 1
  2134. EOF
  2135.  
  2136. else
  2137.   echo "$ac_t""no" 1>&6
  2138. fi
  2139. done
  2140.  
  2141. for ac_func in memcpy memmove strdup strerror
  2142. do
  2143. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2144. echo "configure:2145: checking for $ac_func" >&5
  2145. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2146.   echo $ac_n "(cached) $ac_c" 1>&6
  2147. else
  2148.   cat > conftest.$ac_ext <<EOF
  2149. #line 2150 "configure"
  2150. #include "confdefs.h"
  2151. /* System header to define __stub macros and hopefully few prototypes,
  2152.     which can conflict with char $ac_func(); below.  */
  2153. #include <assert.h>
  2154. /* Override any gcc2 internal prototype to avoid an error.  */
  2155. /* We use char because int might match the return type of a gcc2
  2156.     builtin and then its argument prototype would still apply.  */
  2157. char $ac_func();
  2158.  
  2159. int main() {
  2160.  
  2161. /* The GNU C library defines this for functions which it implements
  2162.     to always fail with ENOSYS.  Some functions are actually named
  2163.     something starting with __ and the normal name is an alias.  */
  2164. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2165. choke me
  2166. #else
  2167. $ac_func();
  2168. #endif
  2169.  
  2170. ; return 0; }
  2171. EOF
  2172. if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2173.   rm -rf conftest*
  2174.   eval "ac_cv_func_$ac_func=yes"
  2175. else
  2176.   echo "configure: failed program was:" >&5
  2177.   cat conftest.$ac_ext >&5
  2178.   rm -rf conftest*
  2179.   eval "ac_cv_func_$ac_func=no"
  2180. fi
  2181. rm -f conftest*
  2182. fi
  2183.  
  2184. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2185.   echo "$ac_t""yes" 1>&6
  2186.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2187.   cat >> confdefs.h <<EOF
  2188. #define $ac_tr_func 1
  2189. EOF
  2190.  
  2191. else
  2192.   echo "$ac_t""no" 1>&6
  2193. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2194. fi
  2195. done
  2196.  
  2197.  
  2198.  
  2199. ALL_LINGUAS="de fr"
  2200. echo $ac_n "checking for inline""... $ac_c" 1>&6
  2201. echo "configure:2202: checking for inline" >&5
  2202. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  2203.   echo $ac_n "(cached) $ac_c" 1>&6
  2204. else
  2205.   ac_cv_c_inline=no
  2206. for ac_kw in inline __inline__ __inline; do
  2207.   cat > conftest.$ac_ext <<EOF
  2208. #line 2209 "configure"
  2209. #include "confdefs.h"
  2210.  
  2211. int main() {
  2212. } $ac_kw foo() {
  2213. ; return 0; }
  2214. EOF
  2215. if { (eval echo configure:2216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2216.   rm -rf conftest*
  2217.   ac_cv_c_inline=$ac_kw; break
  2218. else
  2219.   echo "configure: failed program was:" >&5
  2220.   cat conftest.$ac_ext >&5
  2221. fi
  2222. rm -f conftest*
  2223. done
  2224.  
  2225. fi
  2226.  
  2227. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2228. case "$ac_cv_c_inline" in
  2229.   inline | yes) ;;
  2230.   no) cat >> confdefs.h <<\EOF
  2231. #define inline 
  2232. EOF
  2233.  ;;
  2234.   *)  cat >> confdefs.h <<EOF
  2235. #define inline $ac_cv_c_inline
  2236. EOF
  2237.  ;;
  2238. esac
  2239.  
  2240. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  2241. echo "configure:2242: checking for size_t" >&5
  2242. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  2243.   echo $ac_n "(cached) $ac_c" 1>&6
  2244. else
  2245.   cat > conftest.$ac_ext <<EOF
  2246. #line 2247 "configure"
  2247. #include "confdefs.h"
  2248. #include <sys/types.h>
  2249. #if STDC_HEADERS
  2250. #include <stdlib.h>
  2251. #include <stddef.h>
  2252. #endif
  2253. EOF
  2254. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2255.   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2256.   rm -rf conftest*
  2257.   ac_cv_type_size_t=yes
  2258. else
  2259.   rm -rf conftest*
  2260.   ac_cv_type_size_t=no
  2261. fi
  2262. rm -f conftest*
  2263.  
  2264. fi
  2265. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  2266. if test $ac_cv_type_size_t = no; then
  2267.   cat >> confdefs.h <<\EOF
  2268. #define size_t unsigned
  2269. EOF
  2270.  
  2271. fi
  2272.  
  2273. for ac_hdr in unistd.h
  2274. do
  2275. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2276. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2277. echo "configure:2278: checking for $ac_hdr" >&5
  2278. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2279.   echo $ac_n "(cached) $ac_c" 1>&6
  2280. else
  2281.   cat > conftest.$ac_ext <<EOF
  2282. #line 2283 "configure"
  2283. #include "confdefs.h"
  2284. #include <$ac_hdr>
  2285. EOF
  2286. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2287. { (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2288. ac_err=`grep -v '^ *+' conftest.out`
  2289. if test -z "$ac_err"; then
  2290.   rm -rf conftest*
  2291.   eval "ac_cv_header_$ac_safe=yes"
  2292. else
  2293.   echo "$ac_err" >&5
  2294.   echo "configure: failed program was:" >&5
  2295.   cat conftest.$ac_ext >&5
  2296.   rm -rf conftest*
  2297.   eval "ac_cv_header_$ac_safe=no"
  2298. fi
  2299. rm -f conftest*
  2300. fi
  2301. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2302.   echo "$ac_t""yes" 1>&6
  2303.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2304.   cat >> confdefs.h <<EOF
  2305. #define $ac_tr_hdr 1
  2306. EOF
  2307.  
  2308. else
  2309.   echo "$ac_t""no" 1>&6
  2310. fi
  2311. done
  2312.  
  2313. for ac_func in getpagesize
  2314. do
  2315. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2316. echo "configure:2317: checking for $ac_func" >&5
  2317. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2318.   echo $ac_n "(cached) $ac_c" 1>&6
  2319. else
  2320.   cat > conftest.$ac_ext <<EOF
  2321. #line 2322 "configure"
  2322. #include "confdefs.h"
  2323. /* System header to define __stub macros and hopefully few prototypes,
  2324.     which can conflict with char $ac_func(); below.  */
  2325. #include <assert.h>
  2326. /* Override any gcc2 internal prototype to avoid an error.  */
  2327. /* We use char because int might match the return type of a gcc2
  2328.     builtin and then its argument prototype would still apply.  */
  2329. char $ac_func();
  2330.  
  2331. int main() {
  2332.  
  2333. /* The GNU C library defines this for functions which it implements
  2334.     to always fail with ENOSYS.  Some functions are actually named
  2335.     something starting with __ and the normal name is an alias.  */
  2336. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2337. choke me
  2338. #else
  2339. $ac_func();
  2340. #endif
  2341.  
  2342. ; return 0; }
  2343. EOF
  2344. if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2345.   rm -rf conftest*
  2346.   eval "ac_cv_func_$ac_func=yes"
  2347. else
  2348.   echo "configure: failed program was:" >&5
  2349.   cat conftest.$ac_ext >&5
  2350.   rm -rf conftest*
  2351.   eval "ac_cv_func_$ac_func=no"
  2352. fi
  2353. rm -f conftest*
  2354. fi
  2355.  
  2356. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2357.   echo "$ac_t""yes" 1>&6
  2358.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2359.   cat >> confdefs.h <<EOF
  2360. #define $ac_tr_func 1
  2361. EOF
  2362.  
  2363. else
  2364.   echo "$ac_t""no" 1>&6
  2365. fi
  2366. done
  2367.  
  2368. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  2369. echo "configure:2370: checking for working mmap" >&5
  2370. if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  2371.   echo $ac_n "(cached) $ac_c" 1>&6
  2372. else
  2373.   if test "$cross_compiling" = yes; then
  2374.   ac_cv_func_mmap_fixed_mapped=no
  2375. else
  2376.   cat > conftest.$ac_ext <<EOF
  2377. #line 2378 "configure"
  2378. #include "confdefs.h"
  2379.  
  2380. /* Thanks to Mike Haertel and Jim Avera for this test.
  2381.    Here is a matrix of mmap possibilities:
  2382.     mmap private not fixed
  2383.     mmap private fixed at somewhere currently unmapped
  2384.     mmap private fixed at somewhere already mapped
  2385.     mmap shared not fixed
  2386.     mmap shared fixed at somewhere currently unmapped
  2387.     mmap shared fixed at somewhere already mapped
  2388.    For private mappings, we should verify that changes cannot be read()
  2389.    back from the file, nor mmap's back from the file at a different
  2390.    address.  (There have been systems where private was not correctly
  2391.    implemented like the infamous i386 svr4.0, and systems where the
  2392.    VM page cache was not coherent with the filesystem buffer cache
  2393.    like early versions of FreeBSD and possibly contemporary NetBSD.)
  2394.    For shared mappings, we should conversely verify that changes get
  2395.    propogated back to all the places they're supposed to be.
  2396.  
  2397.    Grep wants private fixed already mapped.
  2398.    The main things grep needs to know about mmap are:
  2399.    * does it exist and is it safe to write into the mmap'd area
  2400.    * how to use it (BSD variants)  */
  2401. #include <sys/types.h>
  2402. #include <fcntl.h>
  2403. #include <sys/mman.h>
  2404.  
  2405. /* This mess was copied from the GNU getpagesize.h.  */
  2406. #ifndef HAVE_GETPAGESIZE
  2407. # ifdef HAVE_UNISTD_H
  2408. #  include <unistd.h>
  2409. # endif
  2410.  
  2411. /* Assume that all systems that can run configure have sys/param.h.  */
  2412. # ifndef HAVE_SYS_PARAM_H
  2413. #  define HAVE_SYS_PARAM_H 1
  2414. # endif
  2415.  
  2416. # ifdef _SC_PAGESIZE
  2417. #  define getpagesize() sysconf(_SC_PAGESIZE)
  2418. # else /* no _SC_PAGESIZE */
  2419. #  ifdef HAVE_SYS_PARAM_H
  2420. #   include <sys/param.h>
  2421. #   ifdef EXEC_PAGESIZE
  2422. #    define getpagesize() EXEC_PAGESIZE
  2423. #   else /* no EXEC_PAGESIZE */
  2424. #    ifdef NBPG
  2425. #     define getpagesize() NBPG * CLSIZE
  2426. #     ifndef CLSIZE
  2427. #      define CLSIZE 1
  2428. #     endif /* no CLSIZE */
  2429. #    else /* no NBPG */
  2430. #     ifdef NBPC
  2431. #      define getpagesize() NBPC
  2432. #     else /* no NBPC */
  2433. #      ifdef PAGESIZE
  2434. #       define getpagesize() PAGESIZE
  2435. #      endif /* PAGESIZE */
  2436. #     endif /* no NBPC */
  2437. #    endif /* no NBPG */
  2438. #   endif /* no EXEC_PAGESIZE */
  2439. #  else /* no HAVE_SYS_PARAM_H */
  2440. #   define getpagesize() 8192    /* punt totally */
  2441. #  endif /* no HAVE_SYS_PARAM_H */
  2442. # endif /* no _SC_PAGESIZE */
  2443.  
  2444. #endif /* no HAVE_GETPAGESIZE */
  2445.  
  2446. #ifdef __cplusplus
  2447. extern "C" { void *malloc(unsigned); }
  2448. #else
  2449. char *malloc();
  2450. #endif
  2451.  
  2452. int
  2453. main()
  2454. {
  2455.     char *data, *data2, *data3;
  2456.     int i, pagesize;
  2457.     int fd;
  2458.  
  2459.     pagesize = getpagesize();
  2460.  
  2461.     /*
  2462.      * First, make a file with some known garbage in it.
  2463.      */
  2464.     data = malloc(pagesize);
  2465.     if (!data)
  2466.         exit(1);
  2467.     for (i = 0; i < pagesize; ++i)
  2468.         *(data + i) = rand();
  2469.     umask(0);
  2470.     fd = creat("conftestmmap", 0600);
  2471.     if (fd < 0)
  2472.         exit(1);
  2473.     if (write(fd, data, pagesize) != pagesize)
  2474.         exit(1);
  2475.     close(fd);
  2476.  
  2477.     /*
  2478.      * Next, try to mmap the file at a fixed address which
  2479.      * already has something else allocated at it.  If we can,
  2480.      * also make sure that we see the same garbage.
  2481.      */
  2482.     fd = open("conftestmmap", O_RDWR);
  2483.     if (fd < 0)
  2484.         exit(1);
  2485.     data2 = malloc(2 * pagesize);
  2486.     if (!data2)
  2487.         exit(1);
  2488.     data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
  2489.     if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
  2490.         MAP_PRIVATE | MAP_FIXED, fd, 0L))
  2491.         exit(1);
  2492.     for (i = 0; i < pagesize; ++i)
  2493.         if (*(data + i) != *(data2 + i))
  2494.             exit(1);
  2495.  
  2496.     /*
  2497.      * Finally, make sure that changes to the mapped area
  2498.      * do not percolate back to the file as seen by read().
  2499.      * (This is a bug on some variants of i386 svr4.0.)
  2500.      */
  2501.     for (i = 0; i < pagesize; ++i)
  2502.         *(data2 + i) = *(data2 + i) + 1;
  2503.     data3 = malloc(pagesize);
  2504.     if (!data3)
  2505.         exit(1);
  2506.     if (read(fd, data3, pagesize) != pagesize)
  2507.         exit(1);
  2508.     for (i = 0; i < pagesize; ++i)
  2509.         if (*(data + i) != *(data3 + i))
  2510.             exit(1);
  2511.     close(fd);
  2512.     unlink("conftestmmap");
  2513.     exit(0);
  2514. }
  2515.  
  2516. EOF
  2517. if { (eval echo configure:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2518. then
  2519.   ac_cv_func_mmap_fixed_mapped=yes
  2520. else
  2521.   echo "configure: failed program was:" >&5
  2522.   cat conftest.$ac_ext >&5
  2523.   rm -fr conftest*
  2524.   ac_cv_func_mmap_fixed_mapped=no
  2525. fi
  2526. rm -fr conftest*
  2527. fi
  2528.  
  2529. fi
  2530.  
  2531. echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
  2532. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  2533.   cat >> confdefs.h <<\EOF
  2534. #define HAVE_MMAP 1
  2535. EOF
  2536.  
  2537. fi
  2538.  
  2539.                            
  2540.    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
  2541. unistd.h values.h
  2542. do
  2543. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2544. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2545. echo "configure:2546: checking for $ac_hdr" >&5
  2546. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2547.   echo $ac_n "(cached) $ac_c" 1>&6
  2548. else
  2549.   cat > conftest.$ac_ext <<EOF
  2550. #line 2551 "configure"
  2551. #include "confdefs.h"
  2552. #include <$ac_hdr>
  2553. EOF
  2554. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2555. { (eval echo configure:2556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2556. ac_err=`grep -v '^ *+' conftest.out`
  2557. if test -z "$ac_err"; then
  2558.   rm -rf conftest*
  2559.   eval "ac_cv_header_$ac_safe=yes"
  2560. else
  2561.   echo "$ac_err" >&5
  2562.   echo "configure: failed program was:" >&5
  2563.   cat conftest.$ac_ext >&5
  2564.   rm -rf conftest*
  2565.   eval "ac_cv_header_$ac_safe=no"
  2566. fi
  2567. rm -f conftest*
  2568. fi
  2569. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2570.   echo "$ac_t""yes" 1>&6
  2571.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2572.   cat >> confdefs.h <<EOF
  2573. #define $ac_tr_hdr 1
  2574. EOF
  2575.  
  2576. else
  2577.   echo "$ac_t""no" 1>&6
  2578. fi
  2579. done
  2580.  
  2581.    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
  2582. __argz_count __argz_stringify __argz_next
  2583. do
  2584. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2585. echo "configure:2586: checking for $ac_func" >&5
  2586. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2587.   echo $ac_n "(cached) $ac_c" 1>&6
  2588. else
  2589.   cat > conftest.$ac_ext <<EOF
  2590. #line 2591 "configure"
  2591. #include "confdefs.h"
  2592. /* System header to define __stub macros and hopefully few prototypes,
  2593.     which can conflict with char $ac_func(); below.  */
  2594. #include <assert.h>
  2595. /* Override any gcc2 internal prototype to avoid an error.  */
  2596. /* We use char because int might match the return type of a gcc2
  2597.     builtin and then its argument prototype would still apply.  */
  2598. char $ac_func();
  2599.  
  2600. int main() {
  2601.  
  2602. /* The GNU C library defines this for functions which it implements
  2603.     to always fail with ENOSYS.  Some functions are actually named
  2604.     something starting with __ and the normal name is an alias.  */
  2605. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2606. choke me
  2607. #else
  2608. $ac_func();
  2609. #endif
  2610.  
  2611. ; return 0; }
  2612. EOF
  2613. if { (eval echo configure:2614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2614.   rm -rf conftest*
  2615.   eval "ac_cv_func_$ac_func=yes"
  2616. else
  2617.   echo "configure: failed program was:" >&5
  2618.   cat conftest.$ac_ext >&5
  2619.   rm -rf conftest*
  2620.   eval "ac_cv_func_$ac_func=no"
  2621. fi
  2622. rm -f conftest*
  2623. fi
  2624.  
  2625. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2626.   echo "$ac_t""yes" 1>&6
  2627.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2628.   cat >> confdefs.h <<EOF
  2629. #define $ac_tr_func 1
  2630. EOF
  2631.  
  2632. else
  2633.   echo "$ac_t""no" 1>&6
  2634. fi
  2635. done
  2636.  
  2637.  
  2638.    if test "${ac_cv_func_stpcpy+set}" != "set"; then
  2639.      for ac_func in stpcpy
  2640. do
  2641. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2642. echo "configure:2643: checking for $ac_func" >&5
  2643. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2644.   echo $ac_n "(cached) $ac_c" 1>&6
  2645. else
  2646.   cat > conftest.$ac_ext <<EOF
  2647. #line 2648 "configure"
  2648. #include "confdefs.h"
  2649. /* System header to define __stub macros and hopefully few prototypes,
  2650.     which can conflict with char $ac_func(); below.  */
  2651. #include <assert.h>
  2652. /* Override any gcc2 internal prototype to avoid an error.  */
  2653. /* We use char because int might match the return type of a gcc2
  2654.     builtin and then its argument prototype would still apply.  */
  2655. char $ac_func();
  2656.  
  2657. int main() {
  2658.  
  2659. /* The GNU C library defines this for functions which it implements
  2660.     to always fail with ENOSYS.  Some functions are actually named
  2661.     something starting with __ and the normal name is an alias.  */
  2662. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2663. choke me
  2664. #else
  2665. $ac_func();
  2666. #endif
  2667.  
  2668. ; return 0; }
  2669. EOF
  2670. if { (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2671.   rm -rf conftest*
  2672.   eval "ac_cv_func_$ac_func=yes"
  2673. else
  2674.   echo "configure: failed program was:" >&5
  2675.   cat conftest.$ac_ext >&5
  2676.   rm -rf conftest*
  2677.   eval "ac_cv_func_$ac_func=no"
  2678. fi
  2679. rm -f conftest*
  2680. fi
  2681.  
  2682. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2683.   echo "$ac_t""yes" 1>&6
  2684.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2685.   cat >> confdefs.h <<EOF
  2686. #define $ac_tr_func 1
  2687. EOF
  2688.  
  2689. else
  2690.   echo "$ac_t""no" 1>&6
  2691. fi
  2692. done
  2693.  
  2694.    fi
  2695.    if test "${ac_cv_func_stpcpy}" = "yes"; then
  2696.      cat >> confdefs.h <<\EOF
  2697. #define HAVE_STPCPY 1
  2698. EOF
  2699.  
  2700.    fi
  2701.  
  2702.    if test $ac_cv_header_locale_h = yes; then
  2703.     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  2704. echo "configure:2705: checking for LC_MESSAGES" >&5
  2705. if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  2706.   echo $ac_n "(cached) $ac_c" 1>&6
  2707. else
  2708.   cat > conftest.$ac_ext <<EOF
  2709. #line 2710 "configure"
  2710. #include "confdefs.h"
  2711. #include <locale.h>
  2712. int main() {
  2713. return LC_MESSAGES
  2714. ; return 0; }
  2715. EOF
  2716. if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2717.   rm -rf conftest*
  2718.   am_cv_val_LC_MESSAGES=yes
  2719. else
  2720.   echo "configure: failed program was:" >&5
  2721.   cat conftest.$ac_ext >&5
  2722.   rm -rf conftest*
  2723.   am_cv_val_LC_MESSAGES=no
  2724. fi
  2725. rm -f conftest*
  2726. fi
  2727.  
  2728. echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
  2729.     if test $am_cv_val_LC_MESSAGES = yes; then
  2730.       cat >> confdefs.h <<\EOF
  2731. #define HAVE_LC_MESSAGES 1
  2732. EOF
  2733.  
  2734.     fi
  2735.   fi
  2736.    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  2737. echo "configure:2738: checking whether NLS is requested" >&5
  2738.         # Check whether --enable-nls or --disable-nls was given.
  2739. if test "${enable_nls+set}" = set; then
  2740.   enableval="$enable_nls"
  2741.   USE_NLS=$enableval
  2742. else
  2743.   USE_NLS=yes
  2744. fi
  2745.  
  2746.     echo "$ac_t""$USE_NLS" 1>&6
  2747.     
  2748.  
  2749.     USE_INCLUDED_LIBINTL=no
  2750.  
  2751.         if test "$USE_NLS" = "yes"; then
  2752.       cat >> confdefs.h <<\EOF
  2753. #define ENABLE_NLS 1
  2754. EOF
  2755.  
  2756.       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
  2757. echo "configure:2758: checking whether included gettext is requested" >&5
  2758.       # Check whether --with-included-gettext or --without-included-gettext was given.
  2759. if test "${with_included_gettext+set}" = set; then
  2760.   withval="$with_included_gettext"
  2761.   nls_cv_force_use_gnu_gettext=$withval
  2762. else
  2763.   nls_cv_force_use_gnu_gettext=no
  2764. fi
  2765.  
  2766.       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
  2767.  
  2768.       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  2769.       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  2770.                                 nls_cv_header_intl=
  2771.     nls_cv_header_libgt=
  2772.     CATOBJEXT=NONE
  2773.  
  2774.     ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
  2775. echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
  2776. echo "configure:2777: checking for libintl.h" >&5
  2777. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2778.   echo $ac_n "(cached) $ac_c" 1>&6
  2779. else
  2780.   cat > conftest.$ac_ext <<EOF
  2781. #line 2782 "configure"
  2782. #include "confdefs.h"
  2783. #include <libintl.h>
  2784. EOF
  2785. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2786. { (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2787. ac_err=`grep -v '^ *+' conftest.out`
  2788. if test -z "$ac_err"; then
  2789.   rm -rf conftest*
  2790.   eval "ac_cv_header_$ac_safe=yes"
  2791. else
  2792.   echo "$ac_err" >&5
  2793.   echo "configure: failed program was:" >&5
  2794.   cat conftest.$ac_ext >&5
  2795.   rm -rf conftest*
  2796.   eval "ac_cv_header_$ac_safe=no"
  2797. fi
  2798. rm -f conftest*
  2799. fi
  2800. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2801.   echo "$ac_t""yes" 1>&6
  2802.   echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
  2803. echo "configure:2804: checking for gettext in libc" >&5
  2804. if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
  2805.   echo $ac_n "(cached) $ac_c" 1>&6
  2806. else
  2807.   cat > conftest.$ac_ext <<EOF
  2808. #line 2809 "configure"
  2809. #include "confdefs.h"
  2810. #include <libintl.h>
  2811. int main() {
  2812. return (int) gettext ("")
  2813. ; return 0; }
  2814. EOF
  2815. if { (eval echo configure:2816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2816.   rm -rf conftest*
  2817.   gt_cv_func_gettext_libc=yes
  2818. else
  2819.   echo "configure: failed program was:" >&5
  2820.   cat conftest.$ac_ext >&5
  2821.   rm -rf conftest*
  2822.   gt_cv_func_gettext_libc=no
  2823. fi
  2824. rm -f conftest*
  2825. fi
  2826.  
  2827. echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
  2828.  
  2829.        if test "$gt_cv_func_gettext_libc" != "yes"; then
  2830.          echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
  2831. echo "configure:2832: checking for bindtextdomain in -lintl" >&5
  2832. ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
  2833. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2834.   echo $ac_n "(cached) $ac_c" 1>&6
  2835. else
  2836.   ac_save_LIBS="$LIBS"
  2837. LIBS="-lintl  $LIBS"
  2838. cat > conftest.$ac_ext <<EOF
  2839. #line 2840 "configure"
  2840. #include "confdefs.h"
  2841. /* Override any gcc2 internal prototype to avoid an error.  */
  2842. /* We use char because int might match the return type of a gcc2
  2843.     builtin and then its argument prototype would still apply.  */
  2844. char bindtextdomain();
  2845.  
  2846. int main() {
  2847. bindtextdomain()
  2848. ; return 0; }
  2849. EOF
  2850. if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2851.   rm -rf conftest*
  2852.   eval "ac_cv_lib_$ac_lib_var=yes"
  2853. else
  2854.   echo "configure: failed program was:" >&5
  2855.   cat conftest.$ac_ext >&5
  2856.   rm -rf conftest*
  2857.   eval "ac_cv_lib_$ac_lib_var=no"
  2858. fi
  2859. rm -f conftest*
  2860. LIBS="$ac_save_LIBS"
  2861.  
  2862. fi
  2863. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2864.   echo "$ac_t""yes" 1>&6
  2865.   echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
  2866. echo "configure:2867: checking for gettext in libintl" >&5
  2867. if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
  2868.   echo $ac_n "(cached) $ac_c" 1>&6
  2869. else
  2870.   cat > conftest.$ac_ext <<EOF
  2871. #line 2872 "configure"
  2872. #include "confdefs.h"
  2873.  
  2874. int main() {
  2875. return (int) gettext ("")
  2876. ; return 0; }
  2877. EOF
  2878. if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2879.   rm -rf conftest*
  2880.   gt_cv_func_gettext_libintl=yes
  2881. else
  2882.   echo "configure: failed program was:" >&5
  2883.   cat conftest.$ac_ext >&5
  2884.   rm -rf conftest*
  2885.   gt_cv_func_gettext_libintl=no
  2886. fi
  2887. rm -f conftest*
  2888. fi
  2889.  
  2890. echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
  2891. else
  2892.   echo "$ac_t""no" 1>&6
  2893. fi
  2894.  
  2895.        fi
  2896.  
  2897.        if test "$gt_cv_func_gettext_libc" = "yes" \
  2898.           || test "$gt_cv_func_gettext_libintl" = "yes"; then
  2899.           cat >> confdefs.h <<\EOF
  2900. #define HAVE_GETTEXT 1
  2901. EOF
  2902.  
  2903.           # Extract the first word of "msgfmt", so it can be a program name with args.
  2904. set dummy msgfmt; ac_word=$2
  2905. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2906. echo "configure:2907: checking for $ac_word" >&5
  2907. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  2908.   echo $ac_n "(cached) $ac_c" 1>&6
  2909. else
  2910.   case "$MSGFMT" in
  2911.   /*)
  2912.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  2913.   ;;
  2914.   *)
  2915.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2916.   for ac_dir in $PATH; do
  2917.     test -z "$ac_dir" && ac_dir=.
  2918.     if test -f $ac_dir/$ac_word; then
  2919.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  2920.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  2921.     break
  2922.       fi
  2923.     fi
  2924.   done
  2925.   IFS="$ac_save_ifs"
  2926.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  2927.   ;;
  2928. esac
  2929. fi
  2930. MSGFMT="$ac_cv_path_MSGFMT"
  2931. if test -n "$MSGFMT"; then
  2932.   echo "$ac_t""$MSGFMT" 1>&6
  2933. else
  2934.   echo "$ac_t""no" 1>&6
  2935. fi
  2936.           if test "$MSGFMT" != "no"; then
  2937.         for ac_func in dcgettext
  2938. do
  2939. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2940. echo "configure:2941: checking for $ac_func" >&5
  2941. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2942.   echo $ac_n "(cached) $ac_c" 1>&6
  2943. else
  2944.   cat > conftest.$ac_ext <<EOF
  2945. #line 2946 "configure"
  2946. #include "confdefs.h"
  2947. /* System header to define __stub macros and hopefully few prototypes,
  2948.     which can conflict with char $ac_func(); below.  */
  2949. #include <assert.h>
  2950. /* Override any gcc2 internal prototype to avoid an error.  */
  2951. /* We use char because int might match the return type of a gcc2
  2952.     builtin and then its argument prototype would still apply.  */
  2953. char $ac_func();
  2954.  
  2955. int main() {
  2956.  
  2957. /* The GNU C library defines this for functions which it implements
  2958.     to always fail with ENOSYS.  Some functions are actually named
  2959.     something starting with __ and the normal name is an alias.  */
  2960. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2961. choke me
  2962. #else
  2963. $ac_func();
  2964. #endif
  2965.  
  2966. ; return 0; }
  2967. EOF
  2968. if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2969.   rm -rf conftest*
  2970.   eval "ac_cv_func_$ac_func=yes"
  2971. else
  2972.   echo "configure: failed program was:" >&5
  2973.   cat conftest.$ac_ext >&5
  2974.   rm -rf conftest*
  2975.   eval "ac_cv_func_$ac_func=no"
  2976. fi
  2977. rm -f conftest*
  2978. fi
  2979.  
  2980. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2981.   echo "$ac_t""yes" 1>&6
  2982.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2983.   cat >> confdefs.h <<EOF
  2984. #define $ac_tr_func 1
  2985. EOF
  2986.  
  2987. else
  2988.   echo "$ac_t""no" 1>&6
  2989. fi
  2990. done
  2991.  
  2992.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  2993. set dummy gmsgfmt; ac_word=$2
  2994. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2995. echo "configure:2996: checking for $ac_word" >&5
  2996. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  2997.   echo $ac_n "(cached) $ac_c" 1>&6
  2998. else
  2999.   case "$GMSGFMT" in
  3000.   /*)
  3001.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3002.   ;;
  3003.   *)
  3004.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3005.   for ac_dir in $PATH; do
  3006.     test -z "$ac_dir" && ac_dir=.
  3007.     if test -f $ac_dir/$ac_word; then
  3008.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3009.       break
  3010.     fi
  3011.   done
  3012.   IFS="$ac_save_ifs"
  3013.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3014.   ;;
  3015. esac
  3016. fi
  3017. GMSGFMT="$ac_cv_path_GMSGFMT"
  3018. if test -n "$GMSGFMT"; then
  3019.   echo "$ac_t""$GMSGFMT" 1>&6
  3020. else
  3021.   echo "$ac_t""no" 1>&6
  3022. fi
  3023.  
  3024.         # Extract the first word of "xgettext", so it can be a program name with args.
  3025. set dummy xgettext; ac_word=$2
  3026. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3027. echo "configure:3028: checking for $ac_word" >&5
  3028. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3029.   echo $ac_n "(cached) $ac_c" 1>&6
  3030. else
  3031.   case "$XGETTEXT" in
  3032.   /*)
  3033.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3034.   ;;
  3035.   *)
  3036.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3037.   for ac_dir in $PATH; do
  3038.     test -z "$ac_dir" && ac_dir=.
  3039.     if test -f $ac_dir/$ac_word; then
  3040.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3041.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3042.     break
  3043.       fi
  3044.     fi
  3045.   done
  3046.   IFS="$ac_save_ifs"
  3047.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3048.   ;;
  3049. esac
  3050. fi
  3051. XGETTEXT="$ac_cv_path_XGETTEXT"
  3052. if test -n "$XGETTEXT"; then
  3053.   echo "$ac_t""$XGETTEXT" 1>&6
  3054. else
  3055.   echo "$ac_t""no" 1>&6
  3056. fi
  3057.  
  3058.         cat > conftest.$ac_ext <<EOF
  3059. #line 3060 "configure"
  3060. #include "confdefs.h"
  3061.  
  3062. int main() {
  3063. extern int _nl_msg_cat_cntr;
  3064.                    return _nl_msg_cat_cntr
  3065. ; return 0; }
  3066. EOF
  3067. if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3068.   rm -rf conftest*
  3069.   CATOBJEXT=.gmo
  3070.            DATADIRNAME=share
  3071. else
  3072.   echo "configure: failed program was:" >&5
  3073.   cat conftest.$ac_ext >&5
  3074.   rm -rf conftest*
  3075.   CATOBJEXT=.mo
  3076.            DATADIRNAME=lib
  3077. fi
  3078. rm -f conftest*
  3079.         INSTOBJEXT=.mo
  3080.           fi
  3081.         fi
  3082.     
  3083. else
  3084.   echo "$ac_t""no" 1>&6
  3085. fi
  3086.  
  3087.  
  3088.         if test "$CATOBJEXT" = "NONE"; then
  3089.       echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
  3090. echo "configure:3091: checking whether catgets can be used" >&5
  3091.       # Check whether --with-catgets or --without-catgets was given.
  3092. if test "${with_catgets+set}" = set; then
  3093.   withval="$with_catgets"
  3094.   nls_cv_use_catgets=$withval
  3095. else
  3096.   nls_cv_use_catgets=no
  3097. fi
  3098.  
  3099.       echo "$ac_t""$nls_cv_use_catgets" 1>&6
  3100.  
  3101.       if test "$nls_cv_use_catgets" = "yes"; then
  3102.                 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
  3103. echo "configure:3104: checking for main in -li" >&5
  3104. ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
  3105. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3106.   echo $ac_n "(cached) $ac_c" 1>&6
  3107. else
  3108.   ac_save_LIBS="$LIBS"
  3109. LIBS="-li  $LIBS"
  3110. cat > conftest.$ac_ext <<EOF
  3111. #line 3112 "configure"
  3112. #include "confdefs.h"
  3113.  
  3114. int main() {
  3115. main()
  3116. ; return 0; }
  3117. EOF
  3118. if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3119.   rm -rf conftest*
  3120.   eval "ac_cv_lib_$ac_lib_var=yes"
  3121. else
  3122.   echo "configure: failed program was:" >&5
  3123.   cat conftest.$ac_ext >&5
  3124.   rm -rf conftest*
  3125.   eval "ac_cv_lib_$ac_lib_var=no"
  3126. fi
  3127. rm -f conftest*
  3128. LIBS="$ac_save_LIBS"
  3129.  
  3130. fi
  3131. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3132.   echo "$ac_t""yes" 1>&6
  3133.     ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  3134.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  3135.   cat >> confdefs.h <<EOF
  3136. #define $ac_tr_lib 1
  3137. EOF
  3138.  
  3139.   LIBS="-li $LIBS"
  3140.  
  3141. else
  3142.   echo "$ac_t""no" 1>&6
  3143. fi
  3144.  
  3145.         echo $ac_n "checking for catgets""... $ac_c" 1>&6
  3146. echo "configure:3147: checking for catgets" >&5
  3147. if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
  3148.   echo $ac_n "(cached) $ac_c" 1>&6
  3149. else
  3150.   cat > conftest.$ac_ext <<EOF
  3151. #line 3152 "configure"
  3152. #include "confdefs.h"
  3153. /* System header to define __stub macros and hopefully few prototypes,
  3154.     which can conflict with char catgets(); below.  */
  3155. #include <assert.h>
  3156. /* Override any gcc2 internal prototype to avoid an error.  */
  3157. /* We use char because int might match the return type of a gcc2
  3158.     builtin and then its argument prototype would still apply.  */
  3159. char catgets();
  3160.  
  3161. int main() {
  3162.  
  3163. /* The GNU C library defines this for functions which it implements
  3164.     to always fail with ENOSYS.  Some functions are actually named
  3165.     something starting with __ and the normal name is an alias.  */
  3166. #if defined (__stub_catgets) || defined (__stub___catgets)
  3167. choke me
  3168. #else
  3169. catgets();
  3170. #endif
  3171.  
  3172. ; return 0; }
  3173. EOF
  3174. if { (eval echo configure:3175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  3175.   rm -rf conftest*
  3176.   eval "ac_cv_func_catgets=yes"
  3177. else
  3178.   echo "configure: failed program was:" >&5
  3179.   cat conftest.$ac_ext >&5
  3180.   rm -rf conftest*
  3181.   eval "ac_cv_func_catgets=no"
  3182. fi
  3183. rm -f conftest*
  3184. fi
  3185.  
  3186. if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
  3187.   echo "$ac_t""yes" 1>&6
  3188.   cat >> confdefs.h <<\EOF
  3189. #define HAVE_CATGETS 1
  3190. EOF
  3191.  
  3192.            INTLOBJS="\$(CATOBJS)"
  3193.            # Extract the first word of "gencat", so it can be a program name with args.
  3194. set dummy gencat; ac_word=$2
  3195. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3196. echo "configure:3197: checking for $ac_word" >&5
  3197. if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  3198.   echo $ac_n "(cached) $ac_c" 1>&6
  3199. else
  3200.   case "$GENCAT" in
  3201.   /*)
  3202.   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  3203.   ;;
  3204.   *)
  3205.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3206.   for ac_dir in $PATH; do
  3207.     test -z "$ac_dir" && ac_dir=.
  3208.     if test -f $ac_dir/$ac_word; then
  3209.       ac_cv_path_GENCAT="$ac_dir/$ac_word"
  3210.       break
  3211.     fi
  3212.   done
  3213.   IFS="$ac_save_ifs"
  3214.   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  3215.   ;;
  3216. esac
  3217. fi
  3218. GENCAT="$ac_cv_path_GENCAT"
  3219. if test -n "$GENCAT"; then
  3220.   echo "$ac_t""$GENCAT" 1>&6
  3221. else
  3222.   echo "$ac_t""no" 1>&6
  3223. fi
  3224.            if test "$GENCAT" != "no"; then
  3225.          # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3226. set dummy gmsgfmt; ac_word=$2
  3227. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3228. echo "configure:3229: checking for $ac_word" >&5
  3229. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3230.   echo $ac_n "(cached) $ac_c" 1>&6
  3231. else
  3232.   case "$GMSGFMT" in
  3233.   /*)
  3234.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3235.   ;;
  3236.   *)
  3237.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3238.   for ac_dir in $PATH; do
  3239.     test -z "$ac_dir" && ac_dir=.
  3240.     if test -f $ac_dir/$ac_word; then
  3241.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3242.       break
  3243.     fi
  3244.   done
  3245.   IFS="$ac_save_ifs"
  3246.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  3247.   ;;
  3248. esac
  3249. fi
  3250. GMSGFMT="$ac_cv_path_GMSGFMT"
  3251. if test -n "$GMSGFMT"; then
  3252.   echo "$ac_t""$GMSGFMT" 1>&6
  3253. else
  3254.   echo "$ac_t""no" 1>&6
  3255. fi
  3256.  
  3257.          if test "$GMSGFMT" = "no"; then
  3258.            # Extract the first word of "msgfmt", so it can be a program name with args.
  3259. set dummy msgfmt; ac_word=$2
  3260. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3261. echo "configure:3262: checking for $ac_word" >&5
  3262. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3263.   echo $ac_n "(cached) $ac_c" 1>&6
  3264. else
  3265.   case "$GMSGFMT" in
  3266.   /*)
  3267.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3268.   ;;
  3269.   *)
  3270.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3271.   for ac_dir in $PATH; do
  3272.     test -z "$ac_dir" && ac_dir=.
  3273.     if test -f $ac_dir/$ac_word; then
  3274.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3275.     ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3276.     break
  3277.       fi
  3278.     fi
  3279.   done
  3280.   IFS="$ac_save_ifs"
  3281.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  3282.   ;;
  3283. esac
  3284. fi
  3285. GMSGFMT="$ac_cv_path_GMSGFMT"
  3286. if test -n "$GMSGFMT"; then
  3287.   echo "$ac_t""$GMSGFMT" 1>&6
  3288. else
  3289.   echo "$ac_t""no" 1>&6
  3290. fi
  3291.  
  3292.          fi
  3293.          # Extract the first word of "xgettext", so it can be a program name with args.
  3294. set dummy xgettext; ac_word=$2
  3295. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3296. echo "configure:3297: checking for $ac_word" >&5
  3297. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3298.   echo $ac_n "(cached) $ac_c" 1>&6
  3299. else
  3300.   case "$XGETTEXT" in
  3301.   /*)
  3302.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3303.   ;;
  3304.   *)
  3305.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3306.   for ac_dir in $PATH; do
  3307.     test -z "$ac_dir" && ac_dir=.
  3308.     if test -f $ac_dir/$ac_word; then
  3309.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3310.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3311.     break
  3312.       fi
  3313.     fi
  3314.   done
  3315.   IFS="$ac_save_ifs"
  3316.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3317.   ;;
  3318. esac
  3319. fi
  3320. XGETTEXT="$ac_cv_path_XGETTEXT"
  3321. if test -n "$XGETTEXT"; then
  3322.   echo "$ac_t""$XGETTEXT" 1>&6
  3323. else
  3324.   echo "$ac_t""no" 1>&6
  3325. fi
  3326.  
  3327.          USE_INCLUDED_LIBINTL=yes
  3328.          CATOBJEXT=.cat
  3329.          INSTOBJEXT=.cat
  3330.          DATADIRNAME=lib
  3331.          INTLDEPS="../intl/libintl.a"
  3332.          INTLLIBS=$INTLDEPS
  3333.          LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3334.          nls_cv_header_intl=intl/libintl.h
  3335.          nls_cv_header_libgt=intl/libgettext.h
  3336.            fi
  3337. else
  3338.   echo "$ac_t""no" 1>&6
  3339. fi
  3340.  
  3341.       fi
  3342.         fi
  3343.  
  3344.         if test "$CATOBJEXT" = "NONE"; then
  3345.                   nls_cv_use_gnu_gettext=yes
  3346.         fi
  3347.       fi
  3348.  
  3349.       if test "$nls_cv_use_gnu_gettext" = "yes"; then
  3350.                 INTLOBJS="\$(GETTOBJS)"
  3351.         # Extract the first word of "msgfmt", so it can be a program name with args.
  3352. set dummy msgfmt; ac_word=$2
  3353. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3354. echo "configure:3355: checking for $ac_word" >&5
  3355. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3356.   echo $ac_n "(cached) $ac_c" 1>&6
  3357. else
  3358.   case "$MSGFMT" in
  3359.   /*)
  3360.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3361.   ;;
  3362.   *)
  3363.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3364.   for ac_dir in $PATH; do
  3365.     test -z "$ac_dir" && ac_dir=.
  3366.     if test -f $ac_dir/$ac_word; then
  3367.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3368.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3369.     break
  3370.       fi
  3371.     fi
  3372.   done
  3373.   IFS="$ac_save_ifs"
  3374.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  3375.   ;;
  3376. esac
  3377. fi
  3378. MSGFMT="$ac_cv_path_MSGFMT"
  3379. if test -n "$MSGFMT"; then
  3380.   echo "$ac_t""$MSGFMT" 1>&6
  3381. else
  3382.   echo "$ac_t""no" 1>&6
  3383. fi
  3384.  
  3385.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3386. set dummy gmsgfmt; ac_word=$2
  3387. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3388. echo "configure:3389: checking for $ac_word" >&5
  3389. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3390.   echo $ac_n "(cached) $ac_c" 1>&6
  3391. else
  3392.   case "$GMSGFMT" in
  3393.   /*)
  3394.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3395.   ;;
  3396.   *)
  3397.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3398.   for ac_dir in $PATH; do
  3399.     test -z "$ac_dir" && ac_dir=.
  3400.     if test -f $ac_dir/$ac_word; then
  3401.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3402.       break
  3403.     fi
  3404.   done
  3405.   IFS="$ac_save_ifs"
  3406.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3407.   ;;
  3408. esac
  3409. fi
  3410. GMSGFMT="$ac_cv_path_GMSGFMT"
  3411. if test -n "$GMSGFMT"; then
  3412.   echo "$ac_t""$GMSGFMT" 1>&6
  3413. else
  3414.   echo "$ac_t""no" 1>&6
  3415. fi
  3416.  
  3417.         # Extract the first word of "xgettext", so it can be a program name with args.
  3418. set dummy xgettext; ac_word=$2
  3419. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3420. echo "configure:3421: checking for $ac_word" >&5
  3421. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3422.   echo $ac_n "(cached) $ac_c" 1>&6
  3423. else
  3424.   case "$XGETTEXT" in
  3425.   /*)
  3426.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3427.   ;;
  3428.   *)
  3429.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3430.   for ac_dir in $PATH; do
  3431.     test -z "$ac_dir" && ac_dir=.
  3432.     if test -f $ac_dir/$ac_word; then
  3433.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3434.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3435.     break
  3436.       fi
  3437.     fi
  3438.   done
  3439.   IFS="$ac_save_ifs"
  3440.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3441.   ;;
  3442. esac
  3443. fi
  3444. XGETTEXT="$ac_cv_path_XGETTEXT"
  3445. if test -n "$XGETTEXT"; then
  3446.   echo "$ac_t""$XGETTEXT" 1>&6
  3447. else
  3448.   echo "$ac_t""no" 1>&6
  3449. fi
  3450.  
  3451.         
  3452.     USE_INCLUDED_LIBINTL=yes
  3453.         CATOBJEXT=.gmo
  3454.         INSTOBJEXT=.mo
  3455.         DATADIRNAME=share
  3456.     INTLDEPS="../intl/libintl.a"
  3457.     INTLLIBS=$INTLDEPS
  3458.     LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3459.         nls_cv_header_intl=intl/libintl.h
  3460.         nls_cv_header_libgt=intl/libgettext.h
  3461.       fi
  3462.  
  3463.             if test "$XGETTEXT" != ":"; then
  3464.             if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  3465.       : ;
  3466.     else
  3467.       echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
  3468.       XGETTEXT=":"
  3469.     fi
  3470.       fi
  3471.  
  3472.       # We need to process the po/ directory.
  3473.       POSUB=po
  3474.     else
  3475.       DATADIRNAME=share
  3476.       nls_cv_header_intl=intl/libintl.h
  3477.       nls_cv_header_libgt=intl/libgettext.h
  3478.     fi
  3479.  
  3480.     # If this is used in GNU gettext we have to set USE_NLS to `yes'
  3481.     # because some of the sources are only built for this goal.
  3482.     if test "$PACKAGE" = gettext; then
  3483.       USE_NLS=yes
  3484.       USE_INCLUDED_LIBINTL=yes
  3485.     fi
  3486.  
  3487.                 for lang in $ALL_LINGUAS; do
  3488.       GMOFILES="$GMOFILES $lang.gmo"
  3489.       POFILES="$POFILES $lang.po"
  3490.     done
  3491.  
  3492.         
  3493.     
  3494.     
  3495.     
  3496.     
  3497.     
  3498.     
  3499.     
  3500.     
  3501.     
  3502.     
  3503.   
  3504.  
  3505.    if test "x$CATOBJEXT" != "x"; then
  3506.      if test "x$ALL_LINGUAS" = "x"; then
  3507.        LINGUAS=
  3508.      else
  3509.        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
  3510. echo "configure:3511: checking for catalogs to be installed" >&5
  3511.        NEW_LINGUAS=
  3512.        for lang in ${LINGUAS=$ALL_LINGUAS}; do
  3513.          case "$ALL_LINGUAS" in
  3514.           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
  3515.          esac
  3516.        done
  3517.        LINGUAS=$NEW_LINGUAS
  3518.        echo "$ac_t""$LINGUAS" 1>&6
  3519.      fi
  3520.  
  3521.           if test -n "$LINGUAS"; then
  3522.        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  3523.      fi
  3524.    fi
  3525.  
  3526.             test -d intl || mkdir intl
  3527.    if test "$CATOBJEXT" = ".cat"; then
  3528.      ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
  3529. echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
  3530. echo "configure:3531: checking for linux/version.h" >&5
  3531. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3532.   echo $ac_n "(cached) $ac_c" 1>&6
  3533. else
  3534.   cat > conftest.$ac_ext <<EOF
  3535. #line 3536 "configure"
  3536. #include "confdefs.h"
  3537. #include <linux/version.h>
  3538. EOF
  3539. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3540. { (eval echo configure:3541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3541. ac_err=`grep -v '^ *+' conftest.out`
  3542. if test -z "$ac_err"; then
  3543.   rm -rf conftest*
  3544.   eval "ac_cv_header_$ac_safe=yes"
  3545. else
  3546.   echo "$ac_err" >&5
  3547.   echo "configure: failed program was:" >&5
  3548.   cat conftest.$ac_ext >&5
  3549.   rm -rf conftest*
  3550.   eval "ac_cv_header_$ac_safe=no"
  3551. fi
  3552. rm -f conftest*
  3553. fi
  3554. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3555.   echo "$ac_t""yes" 1>&6
  3556.   msgformat=linux
  3557. else
  3558.   echo "$ac_t""no" 1>&6
  3559. msgformat=xopen
  3560. fi
  3561.  
  3562.  
  3563.                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
  3564.    fi
  3565.       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
  3566.      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
  3567.  
  3568.             if test "$PACKAGE" = "gettext"; then
  3569.      GT_NO="#NO#"
  3570.      GT_YES=
  3571.    else
  3572.      GT_NO=
  3573.      GT_YES="#YES#"
  3574.    fi
  3575.    
  3576.    
  3577.  
  3578.             MKINSTALLDIRS=
  3579.    if test $ac_aux_dir; then
  3580.      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  3581.    fi
  3582.    if test -z $MKINSTALLDIRS; then
  3583.      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  3584.    fi
  3585.    
  3586.  
  3587.       l=
  3588.    
  3589.  
  3590.          test -d po || mkdir po
  3591.    if test "x$srcdir" != "x."; then
  3592.      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  3593.        posrcprefix="$srcdir/"
  3594.      else
  3595.        posrcprefix="../$srcdir/"
  3596.      fi
  3597.    else
  3598.      posrcprefix="../"
  3599.    fi
  3600.    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,    $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  3601.     < $srcdir/po/POTFILES.in > po/POTFILES
  3602.   
  3603.  
  3604.  
  3605. trap '' 1 2 15
  3606. cat > confcache <<\EOF
  3607. # This file is a shell script that caches the results of configure
  3608. # tests run on this system so they can be shared between configure
  3609. # scripts and configure runs.  It is not useful on other systems.
  3610. # If it contains results you don't want to keep, you may remove or edit it.
  3611. #
  3612. # By default, configure uses ./config.cache as the cache file,
  3613. # creating it if it does not exist already.  You can give configure
  3614. # the --cache-file=FILE option to use a different cache file; that is
  3615. # what configure does when it calls configure scripts in
  3616. # subdirectories, so they share the cache.
  3617. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3618. # config.status only pays attention to the cache file if you give it the
  3619. # --recheck option to rerun configure.
  3620. #
  3621. EOF
  3622. # The following way of writing the cache mishandles newlines in values,
  3623. # but we know of no workaround that is simple, portable, and efficient.
  3624. # So, don't put newlines in cache variables' values.
  3625. # Ultrix sh set writes to stderr and can't be redirected directly,
  3626. # and sets the high bit in the cache file unless we assign to the vars.
  3627. (set) 2>&1 |
  3628.   case `(ac_space=' '; set) 2>&1` in
  3629.   *ac_space=\ *)
  3630.     # `set' does not quote correctly, so add quotes (double-quote substitution
  3631.     # turns \\\\ into \\, and sed turns \\ into \).
  3632.     sed -n \
  3633.       -e "s/'/'\\\\''/g" \
  3634.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  3635.     ;;
  3636.   *)
  3637.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  3638.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  3639.     ;;
  3640.   esac >> confcache
  3641. if cmp -s $cache_file confcache; then
  3642.   :
  3643. else
  3644.   if test -w $cache_file; then
  3645.     echo "updating cache $cache_file"
  3646.     cat confcache > $cache_file
  3647.   else
  3648.     echo "not updating unwritable cache $cache_file"
  3649.   fi
  3650. fi
  3651. rm -f confcache
  3652.  
  3653. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3654.  
  3655. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3656. # Let make expand exec_prefix.
  3657. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3658.  
  3659. # Any assignment to VPATH causes Sun make to only execute
  3660. # the first set of double-colon rules, so remove it if not needed.
  3661. # If there is a colon in the path, we need to keep it.
  3662. if test "x$srcdir" = x.; then
  3663.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3664. fi
  3665.  
  3666. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3667.  
  3668. DEFS=-DHAVE_CONFIG_H
  3669.  
  3670. # Without the "./", some shells look in PATH for config.status.
  3671. : ${CONFIG_STATUS=./config.status}
  3672.  
  3673. echo creating $CONFIG_STATUS
  3674. rm -f $CONFIG_STATUS
  3675. cat > $CONFIG_STATUS <<EOF
  3676. #! /bin/sh
  3677. # Generated automatically by configure.
  3678. # Run this file to recreate the current configuration.
  3679. # This directory was configured as follows,
  3680. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3681. #
  3682. # $0 $ac_configure_args
  3683. #
  3684. # Compiler output produced by configure, useful for debugging
  3685. # configure, is in ./config.log if it exists.
  3686.  
  3687. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3688. for ac_option
  3689. do
  3690.   case "\$ac_option" in
  3691.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3692.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3693.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3694.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3695.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  3696.     exit 0 ;;
  3697.   -help | --help | --hel | --he | --h)
  3698.     echo "\$ac_cs_usage"; exit 0 ;;
  3699.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3700.   esac
  3701. done
  3702.  
  3703. ac_given_srcdir=$srcdir
  3704. ac_given_INSTALL="$INSTALL"
  3705.  
  3706. trap 'rm -fr `echo "Makefile             \
  3707.            doc/Makefile         \
  3708.            emacs/Makefile       \
  3709.            info/Makefile        \
  3710.            intl/Makefile        \
  3711.            lib/Makefile         \
  3712.            makeinfo/Makefile    \
  3713.            po/Makefile.in       \
  3714.            util/Makefile        \
  3715.             config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3716. EOF
  3717. cat >> $CONFIG_STATUS <<EOF
  3718.  
  3719. # Protect against being on the right side of a sed subst in config.status.
  3720. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3721.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3722. $ac_vpsub
  3723. $extrasub
  3724. s%@CFLAGS@%$CFLAGS%g
  3725. s%@CPPFLAGS@%$CPPFLAGS%g
  3726. s%@CXXFLAGS@%$CXXFLAGS%g
  3727. s%@DEFS@%$DEFS%g
  3728. s%@LDFLAGS@%$LDFLAGS%g
  3729. s%@LIBS@%$LIBS%g
  3730. s%@exec_prefix@%$exec_prefix%g
  3731. s%@prefix@%$prefix%g
  3732. s%@program_transform_name@%$program_transform_name%g
  3733. s%@bindir@%$bindir%g
  3734. s%@sbindir@%$sbindir%g
  3735. s%@libexecdir@%$libexecdir%g
  3736. s%@datadir@%$datadir%g
  3737. s%@sysconfdir@%$sysconfdir%g
  3738. s%@sharedstatedir@%$sharedstatedir%g
  3739. s%@localstatedir@%$localstatedir%g
  3740. s%@libdir@%$libdir%g
  3741. s%@includedir@%$includedir%g
  3742. s%@oldincludedir@%$oldincludedir%g
  3743. s%@infodir@%$infodir%g
  3744. s%@mandir@%$mandir%g
  3745. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3746. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3747. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  3748. s%@PACKAGE@%$PACKAGE%g
  3749. s%@VERSION@%$VERSION%g
  3750. s%@ACLOCAL@%$ACLOCAL%g
  3751. s%@AUTOCONF@%$AUTOCONF%g
  3752. s%@AUTOMAKE@%$AUTOMAKE%g
  3753. s%@AUTOHEADER@%$AUTOHEADER%g
  3754. s%@MAKEINFO@%$MAKEINFO%g
  3755. s%@SET_MAKE@%$SET_MAKE%g
  3756. s%@CC@%$CC%g
  3757. s%@CPP@%$CPP%g
  3758. s%@RANLIB@%$RANLIB%g
  3759. s%@TEXCONFIG@%$TEXCONFIG%g
  3760. s%@TEXMF@%$TEXMF%g
  3761. s%@TERMLIBS@%$TERMLIBS%g
  3762. s%@ALLOCA@%$ALLOCA%g
  3763. s%@LIBOBJS@%$LIBOBJS%g
  3764. s%@USE_NLS@%$USE_NLS%g
  3765. s%@MSGFMT@%$MSGFMT%g
  3766. s%@GMSGFMT@%$GMSGFMT%g
  3767. s%@XGETTEXT@%$XGETTEXT%g
  3768. s%@GENCAT@%$GENCAT%g
  3769. s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
  3770. s%@CATALOGS@%$CATALOGS%g
  3771. s%@CATOBJEXT@%$CATOBJEXT%g
  3772. s%@DATADIRNAME@%$DATADIRNAME%g
  3773. s%@GMOFILES@%$GMOFILES%g
  3774. s%@INSTOBJEXT@%$INSTOBJEXT%g
  3775. s%@INTLDEPS@%$INTLDEPS%g
  3776. s%@INTLLIBS@%$INTLLIBS%g
  3777. s%@INTLOBJS@%$INTLOBJS%g
  3778. s%@POFILES@%$POFILES%g
  3779. s%@POSUB@%$POSUB%g
  3780. s%@GT_NO@%$GT_NO%g
  3781. s%@GT_YES@%$GT_YES%g
  3782. s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
  3783. s%@l@%$l%g
  3784.  
  3785. CEOF
  3786. EOF
  3787.  
  3788. cat >> $CONFIG_STATUS <<\EOF
  3789.  
  3790. # Split the substitutions into bite-sized pieces for seds with
  3791. # small command number limits, like on Digital OSF/1 and HP-UX.
  3792. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  3793. ac_file=1 # Number of current file.
  3794. ac_beg=1 # First line for current file.
  3795. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  3796. ac_more_lines=:
  3797. ac_sed_cmds=""
  3798. while $ac_more_lines; do
  3799.   if test $ac_beg -gt 1; then
  3800.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  3801.   else
  3802.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  3803.   fi
  3804.   if test ! -s conftest.s$ac_file; then
  3805.     ac_more_lines=false
  3806.     rm -f conftest.s$ac_file
  3807.   else
  3808.     if test -z "$ac_sed_cmds"; then
  3809.       ac_sed_cmds="sed -f conftest.s$ac_file"
  3810.     else
  3811.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  3812.     fi
  3813.     ac_file=`expr $ac_file + 1`
  3814.     ac_beg=$ac_end
  3815.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  3816.   fi
  3817. done
  3818. if test -z "$ac_sed_cmds"; then
  3819.   ac_sed_cmds=cat
  3820. fi
  3821. EOF
  3822.  
  3823. cat >> $CONFIG_STATUS <<EOF
  3824.  
  3825. CONFIG_FILES=\${CONFIG_FILES-"Makefile             \
  3826.            doc/Makefile         \
  3827.            emacs/Makefile       \
  3828.            info/Makefile        \
  3829.            intl/Makefile        \
  3830.            lib/Makefile         \
  3831.            makeinfo/Makefile    \
  3832.            po/Makefile.in       \
  3833.            util/Makefile        \
  3834.            "}
  3835. EOF
  3836. cat >> $CONFIG_STATUS <<\EOF
  3837. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3838.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3839.   case "$ac_file" in
  3840.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3841.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3842.   *) ac_file_in="${ac_file}.in" ;;
  3843.   esac
  3844.  
  3845.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  3846.  
  3847.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3848.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3849.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3850.     # The file is in a subdirectory.
  3851.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3852.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3853.     # A "../" for each directory in $ac_dir_suffix.
  3854.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3855.   else
  3856.     ac_dir_suffix= ac_dots=
  3857.   fi
  3858.  
  3859.   case "$ac_given_srcdir" in
  3860.   .)  srcdir=.
  3861.       if test -z "$ac_dots"; then top_srcdir=.
  3862.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3863.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3864.   *) # Relative path.
  3865.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3866.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3867.   esac
  3868.  
  3869.   case "$ac_given_INSTALL" in
  3870.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3871.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3872.   esac
  3873.  
  3874.   echo creating "$ac_file"
  3875.   rm -f "$ac_file"
  3876.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3877.   case "$ac_file" in
  3878.   *Makefile*) ac_comsub="1i\\
  3879. # $configure_input" ;;
  3880.   *) ac_comsub= ;;
  3881.   esac
  3882.  
  3883.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3884.   sed -e "$ac_comsub
  3885. s%@configure_input@%$configure_input%g
  3886. s%@srcdir@%$srcdir%g
  3887. s%@top_srcdir@%$top_srcdir%g
  3888. s%@INSTALL@%$INSTALL%g
  3889. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  3890. fi; done
  3891. rm -f conftest.s*
  3892.  
  3893. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3894. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3895. #
  3896. # ac_d sets the value in "#define NAME VALUE" lines.
  3897. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3898. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3899. ac_dC='\3'
  3900. ac_dD='%g'
  3901. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3902. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3903. ac_uB='\([     ]\)%\1#\2define\3'
  3904. ac_uC=' '
  3905. ac_uD='\4%g'
  3906. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3907. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3908. ac_eB='$%\1#\2define\3'
  3909. ac_eC=' '
  3910. ac_eD='%g'
  3911.  
  3912. if test "${CONFIG_HEADERS+set}" != set; then
  3913. EOF
  3914. cat >> $CONFIG_STATUS <<EOF
  3915.   CONFIG_HEADERS="config.h"
  3916. EOF
  3917. cat >> $CONFIG_STATUS <<\EOF
  3918. fi
  3919. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3920.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3921.   case "$ac_file" in
  3922.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3923.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3924.   *) ac_file_in="${ac_file}.in" ;;
  3925.   esac
  3926.  
  3927.   echo creating $ac_file
  3928.  
  3929.   rm -f conftest.frag conftest.in conftest.out
  3930.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3931.   cat $ac_file_inputs > conftest.in
  3932.  
  3933. EOF
  3934.  
  3935. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3936. # the proper values into config.h.in to produce config.h.  And first:
  3937. # Protect against being on the right side of a sed subst in config.status.
  3938. # Protect against being in an unquoted here document in config.status.
  3939. rm -f conftest.vals
  3940. cat > conftest.hdr <<\EOF
  3941. s/[\\&%]/\\&/g
  3942. s%[\\$`]%\\&%g
  3943. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3944. s%ac_d%ac_u%gp
  3945. s%ac_u%ac_e%gp
  3946. EOF
  3947. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3948. rm -f conftest.hdr
  3949.  
  3950. # This sed command replaces #undef with comments.  This is necessary, for
  3951. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3952. # on some systems where configure will not decide to define it.
  3953. cat >> conftest.vals <<\EOF
  3954. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3955. EOF
  3956.  
  3957. # Break up conftest.vals because some shells have a limit on
  3958. # the size of here documents, and old seds have small limits too.
  3959.  
  3960. rm -f conftest.tail
  3961. while :
  3962. do
  3963.   ac_lines=`grep -c . conftest.vals`
  3964.   # grep -c gives empty output for an empty file on some AIX systems.
  3965.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3966.   # Write a limited-size here document to conftest.frag.
  3967.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3968.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3969.   echo 'CEOF
  3970.   sed -f conftest.frag conftest.in > conftest.out
  3971.   rm -f conftest.in
  3972.   mv conftest.out conftest.in
  3973. ' >> $CONFIG_STATUS
  3974.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3975.   rm -f conftest.vals
  3976.   mv conftest.tail conftest.vals
  3977. done
  3978. rm -f conftest.vals
  3979.  
  3980. cat >> $CONFIG_STATUS <<\EOF
  3981.   rm -f conftest.frag conftest.h
  3982.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3983.   cat conftest.in >> conftest.h
  3984.   rm -f conftest.in
  3985.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3986.     echo "$ac_file is unchanged"
  3987.     rm -f conftest.h
  3988.   else
  3989.     # Remove last slash and all that follows it.  Not all systems have dirname.
  3990.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3991.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3992.       # The file is in a subdirectory.
  3993.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  3994.     fi
  3995.     rm -f $ac_file
  3996.     mv conftest.h $ac_file
  3997.   fi
  3998. fi; done
  3999.  
  4000. EOF
  4001.  
  4002. cat >> $CONFIG_STATUS <<EOF
  4003. ac_sources="$nls_cv_header_libgt"
  4004. ac_dests="$nls_cv_header_intl"
  4005. EOF
  4006.  
  4007. cat >> $CONFIG_STATUS <<\EOF
  4008. srcdir=$ac_given_srcdir
  4009. while test -n "$ac_sources"; do
  4010.   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  4011.   set $ac_sources; ac_source=$1; shift; ac_sources=$*
  4012.  
  4013.   echo "linking $srcdir/$ac_source to $ac_dest"
  4014.  
  4015.   if test ! -r $srcdir/$ac_source; then
  4016.     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  4017.   fi
  4018.   rm -f $ac_dest
  4019.  
  4020.   # Make relative symlinks.
  4021.   # Remove last slash and all that follows it.  Not all systems have dirname.
  4022.   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  4023.   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  4024.     # The dest file is in a subdirectory.
  4025.     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  4026.     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  4027.     # A "../" for each directory in $ac_dest_dir_suffix.
  4028.     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  4029.   else
  4030.     ac_dest_dir_suffix= ac_dots=
  4031.   fi
  4032.  
  4033.   case "$srcdir" in
  4034.   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  4035.   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  4036.   esac
  4037.  
  4038.   # Make a symlink if possible; otherwise try a hard link.
  4039.   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  4040.     ln $srcdir/$ac_source $ac_dest; then :
  4041.   else
  4042.     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  4043.   fi
  4044. done
  4045. EOF
  4046. cat >> $CONFIG_STATUS <<EOF
  4047.  
  4048.  
  4049. EOF
  4050. cat >> $CONFIG_STATUS <<\EOF
  4051. test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  4052. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile
  4053. exit 0
  4054. EOF
  4055. chmod +x $CONFIG_STATUS
  4056. rm -fr confdefs* $ac_clean_files
  4057. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  4058.  
  4059.