home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gettext-0.10.24-src.tgz / tar.out / fsf / gettext / configure < prev    next >
Text File  |  1996-09-28  |  98KB  |  3,550 lines

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