home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / id-utils-3.2-src.tgz / tar.out / fsf / id-utils / configure < prev    next >
Text File  |  1996-10-01  |  118KB  |  4,274 lines

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