home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / configure < prev    next >
Encoding:
Text File  |  1999-11-08  |  73.6 KB  |  2,581 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  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-extras         build ICU extras [default=yes]"
  16. ac_help="$ac_help
  17.   --enable-tests          build ICU tests [default=yes]"
  18. ac_help="$ac_help
  19.   --enable-samples        build ICU samples [default=yes]"
  20.  
  21. # Initialize some variables set by options.
  22. # The variables have the same names as the options, with
  23. # dashes changed to underlines.
  24. build=NONE
  25. cache_file=./config.cache
  26. exec_prefix=NONE
  27. host=NONE
  28. no_create=
  29. nonopt=NONE
  30. no_recursion=
  31. prefix=NONE
  32. program_prefix=NONE
  33. program_suffix=NONE
  34. program_transform_name=s,x,x,
  35. silent=
  36. site=
  37. srcdir=
  38. target=NONE
  39. verbose=
  40. x_includes=NONE
  41. x_libraries=NONE
  42. bindir='${exec_prefix}/bin'
  43. sbindir='${exec_prefix}/sbin'
  44. libexecdir='${exec_prefix}/libexec'
  45. datadir='${prefix}/share'
  46. sysconfdir='${prefix}/etc'
  47. sharedstatedir='${prefix}/com'
  48. localstatedir='${prefix}/var'
  49. libdir='${exec_prefix}/lib'
  50. includedir='${prefix}/include'
  51. oldincludedir='/usr/include'
  52. infodir='${prefix}/info'
  53. guidedir='${prefix}/guide'
  54. htmldir='${prefix}/html'
  55. psdir='${prefix}/ps'
  56. dvidir='${prefix}/dvi'
  57. mandir='${prefix}/man'
  58.  
  59. # Initialize some other variables.
  60. subdirs=
  61. MFLAGS= MAKEFLAGS=
  62. SHELL=${CONFIG_SHELL-/bin/sh}
  63. # Maximum number of lines to put in a shell here document.
  64. ac_max_here_lines=12
  65.  
  66. ac_prev=
  67. for ac_option
  68. do
  69.  
  70.   # If the previous option needs an argument, assign it.
  71.   if test -n "$ac_prev"; then
  72.     eval "$ac_prev=\$ac_option"
  73.     ac_prev=
  74.     continue
  75.   fi
  76.  
  77.   case "$ac_option" in
  78.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  79.   *) ac_optarg= ;;
  80.   esac
  81.  
  82.   # Accept the important Cygnus configure options, so we can diagnose typos.
  83.  
  84.   case "$ac_option" in
  85.  
  86.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  87.     ac_prev=bindir ;;
  88.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  89.     bindir="$ac_optarg" ;;
  90.  
  91.   -build | --build | --buil | --bui | --bu)
  92.     ac_prev=build ;;
  93.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  94.     build="$ac_optarg" ;;
  95.  
  96.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  97.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  98.     ac_prev=cache_file ;;
  99.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  100.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  101.     cache_file="$ac_optarg" ;;
  102.  
  103.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  104.     ac_prev=datadir ;;
  105.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  106.   | --da=*)
  107.     datadir="$ac_optarg" ;;
  108.  
  109.   -disable-* | --disable-*)
  110.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  111.     # Reject names that are not valid shell variable names.
  112.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  113.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  114.     fi
  115.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  116.     eval "enable_${ac_feature}=no" ;;
  117.  
  118.   -enable-* | --enable-*)
  119.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  120.     # Reject names that are not valid shell variable names.
  121.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  122.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  123.     fi
  124.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  125.     case "$ac_option" in
  126.       *=*) ;;
  127.       *) ac_optarg=yes ;;
  128.     esac
  129.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  130.  
  131.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  132.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  133.   | --exec | --exe | --ex)
  134.     ac_prev=exec_prefix ;;
  135.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  136.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  137.   | --exec=* | --exe=* | --ex=*)
  138.     exec_prefix="$ac_optarg" ;;
  139.  
  140.   -gas | --gas | --ga | --g)
  141.     # Obsolete; use --with-gas.
  142.     with_gas=yes ;;
  143.  
  144.   -help | --help | --hel | --he)
  145.     # Omit some internal or obsolete options to make the list less imposing.
  146.     # This message is too long to be a string in the A/UX 3.1 sh.
  147.     cat << EOF
  148. Usage: configure [options] [host]
  149. Options: [defaults in brackets after descriptions]
  150. Configuration:
  151.   --cache-file=FILE       cache test results in FILE
  152.   --help                  print this message
  153.   --no-create             do not create output files
  154.   --quiet, --silent       do not print \`checking...' messages
  155.   --version               print the version of autoconf that created configure
  156. Directory and file names:
  157.   --prefix=PREFIX         install architecture-independent files in PREFIX
  158.                           [$ac_default_prefix]
  159.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  160.                           [same as prefix]
  161.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  162.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  163.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  164.   --datadir=DIR           read-only architecture-independent data in DIR
  165.                           [PREFIX/share]
  166.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  167.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  168.                           [PREFIX/com]
  169.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  170.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  171.   --includedir=DIR        C header files in DIR [PREFIX/include]
  172.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  173.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  174.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  175.   --htmldir=DIR           HTML documentation in DIR [PREFIX/html]
  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.  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm)
  225.    ac_prev=htmldir ;;
  226.  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* |--htm=*)+    htmldir="$ac_optarg" ;;
  227.  
  228.  -psdir | --psdir | --psdi | --psd | --ps)
  229.    ac_prev=psdir ;;
  230.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  231.  
  232.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  233.    ac_prev=dvidir ;;
  234.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  235.  
  236.   -libdir | --libdir | --libdi | --libd)
  237.     ac_prev=libdir ;;
  238.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  239.     libdir="$ac_optarg" ;;
  240.  
  241.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  242.   | --libexe | --libex | --libe)
  243.     ac_prev=libexecdir ;;
  244.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  245.   | --libexe=* | --libex=* | --libe=*)
  246.     libexecdir="$ac_optarg" ;;
  247.  
  248.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  249.   | --localstate | --localstat | --localsta | --localst \
  250.   | --locals | --local | --loca | --loc | --lo)
  251.     ac_prev=localstatedir ;;
  252.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  253.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  254.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  255.     localstatedir="$ac_optarg" ;;
  256.  
  257.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  258.     ac_prev=mandir ;;
  259.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  260.     mandir="$ac_optarg" ;;
  261.  
  262.   -nfp | --nfp | --nf)
  263.     # Obsolete; use --without-fp.
  264.     with_fp=no ;;
  265.  
  266.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  267.   | --no-cr | --no-c)
  268.     no_create=yes ;;
  269.  
  270.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  271.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  272.     no_recursion=yes ;;
  273.  
  274.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  275.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  276.   | --oldin | --oldi | --old | --ol | --o)
  277.     ac_prev=oldincludedir ;;
  278.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  279.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  280.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  281.     oldincludedir="$ac_optarg" ;;
  282.  
  283.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  284.     ac_prev=prefix ;;
  285.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  286.     prefix="$ac_optarg" ;;
  287.  
  288.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  289.   | --program-pre | --program-pr | --program-p)
  290.     ac_prev=program_prefix ;;
  291.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  292.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  293.     program_prefix="$ac_optarg" ;;
  294.  
  295.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  296.   | --program-suf | --program-su | --program-s)
  297.     ac_prev=program_suffix ;;
  298.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  299.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  300.     program_suffix="$ac_optarg" ;;
  301.  
  302.   -program-transform-name | --program-transform-name \
  303.   | --program-transform-nam | --program-transform-na \
  304.   | --program-transform-n | --program-transform- \
  305.   | --program-transform | --program-transfor \
  306.   | --program-transfo | --program-transf \
  307.   | --program-trans | --program-tran \
  308.   | --progr-tra | --program-tr | --program-t)
  309.     ac_prev=program_transform_name ;;
  310.   -program-transform-name=* | --program-transform-name=* \
  311.   | --program-transform-nam=* | --program-transform-na=* \
  312.   | --program-transform-n=* | --program-transform-=* \
  313.   | --program-transform=* | --program-transfor=* \
  314.   | --program-transfo=* | --program-transf=* \
  315.   | --program-trans=* | --program-tran=* \
  316.   | --progr-tra=* | --program-tr=* | --program-t=*)
  317.     program_transform_name="$ac_optarg" ;;
  318.  
  319.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  320.   | -silent | --silent | --silen | --sile | --sil)
  321.     silent=yes ;;
  322.  
  323.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  324.     ac_prev=sbindir ;;
  325.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  326.   | --sbi=* | --sb=*)
  327.     sbindir="$ac_optarg" ;;
  328.  
  329.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  330.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  331.   | --sharedst | --shareds | --shared | --share | --shar \
  332.   | --sha | --sh)
  333.     ac_prev=sharedstatedir ;;
  334.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  335.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  336.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  337.   | --sha=* | --sh=*)
  338.     sharedstatedir="$ac_optarg" ;;
  339.  
  340.   -site | --site | --sit)
  341.     ac_prev=site ;;
  342.   -site=* | --site=* | --sit=*)
  343.     site="$ac_optarg" ;;
  344.  
  345.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  346.     ac_prev=srcdir ;;
  347.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  348.     srcdir="$ac_optarg" ;;
  349.  
  350.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  351.   | --syscon | --sysco | --sysc | --sys | --sy)
  352.     ac_prev=sysconfdir ;;
  353.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  354.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  355.     sysconfdir="$ac_optarg" ;;
  356.  
  357.   -target | --target | --targe | --targ | --tar | --ta | --t)
  358.     ac_prev=target ;;
  359.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  360.     target="$ac_optarg" ;;
  361.  
  362.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  363.     verbose=yes ;;
  364.  
  365.   -version | --version | --versio | --versi | --vers)
  366.     echo "configure generated by autoconf version 2.13"
  367.     exit 0 ;;
  368.  
  369.   -with-* | --with-*)
  370.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  371.     # Reject names that are not valid shell variable names.
  372.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  373.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  374.     fi
  375.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  376.     case "$ac_option" in
  377.       *=*) ;;
  378.       *) ac_optarg=yes ;;
  379.     esac
  380.     eval "with_${ac_package}='$ac_optarg'" ;;
  381.  
  382.   -without-* | --without-*)
  383.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  384.     # Reject names that are not valid shell variable names.
  385.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  386.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  387.     fi
  388.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  389.     eval "with_${ac_package}=no" ;;
  390.  
  391.   --x)
  392.     # Obsolete; use --with-x.
  393.     with_x=yes ;;
  394.  
  395.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  396.   | --x-incl | --x-inc | --x-in | --x-i)
  397.     ac_prev=x_includes ;;
  398.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  399.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  400.     x_includes="$ac_optarg" ;;
  401.  
  402.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  403.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  404.     ac_prev=x_libraries ;;
  405.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  406.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  407.     x_libraries="$ac_optarg" ;;
  408.  
  409.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  410.     ;;
  411.  
  412.   *)
  413.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  414.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  415.     fi
  416.     if test "x$nonopt" != xNONE; then
  417.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  418.     fi
  419.     nonopt="$ac_option"
  420.     ;;
  421.  
  422.   esac
  423. done
  424.  
  425. if test -n "$ac_prev"; then
  426.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  427. fi
  428.  
  429. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  430.  
  431. # File descriptor usage:
  432. # 0 standard input
  433. # 1 file creation
  434. # 2 errors and warnings
  435. # 3 some systems may open it to /dev/tty
  436. # 4 used on the Kubota Titan
  437. # 6 checking for... messages and results
  438. # 5 compiler messages saved in config.log
  439. if test "$silent" = yes; then
  440.   exec 6>/dev/null
  441. else
  442.   exec 6>&1
  443. fi
  444. exec 5>./config.log
  445.  
  446. echo "\
  447. This file contains any messages produced by compilers while
  448. running configure, to aid debugging if configure makes a mistake.
  449. " 1>&5
  450.  
  451. # Strip out --no-create and --no-recursion so they do not pile up.
  452. # Also quote any args containing shell metacharacters.
  453. ac_configure_args=
  454. for ac_arg
  455. do
  456.   case "$ac_arg" in
  457.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  458.   | --no-cr | --no-c) ;;
  459.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  460.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  461.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  462.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  463.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  464.   esac
  465. done
  466.  
  467. # NLS nuisances.
  468. # Only set these to C if already set.  These must not be set unconditionally
  469. # because not all systems understand e.g. LANG=C (notably SCO).
  470. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  471. # Non-C LC_CTYPE values break the ctype check.
  472. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  473. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  474. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  475. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  476.  
  477. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  478. rm -rf conftest* confdefs.h
  479. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  480. echo > confdefs.h
  481.  
  482. # A filename unique to this package, relative to the directory that
  483. # configure is in, which we can look for to find out if srcdir is correct.
  484. ac_unique_file=common/utypes.h
  485.  
  486. # Find the source files, if location was not specified.
  487. if test -z "$srcdir"; then
  488.   ac_srcdir_defaulted=yes
  489.   # Try the directory containing this script, then its parent.
  490.   ac_prog=$0
  491.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  492.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  493.   srcdir=$ac_confdir
  494.   if test ! -r $srcdir/$ac_unique_file; then
  495.     srcdir=..
  496.   fi
  497. else
  498.   ac_srcdir_defaulted=no
  499. fi
  500. if test ! -r $srcdir/$ac_unique_file; then
  501.   if test "$ac_srcdir_defaulted" = yes; then
  502.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  503.   else
  504.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  505.   fi
  506. fi
  507. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  508.  
  509. # Prefer explicitly selected file to automatically selected ones.
  510. if test -z "$CONFIG_SITE"; then
  511.   if test "x$prefix" != xNONE; then
  512.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  513.   else
  514.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  515.   fi
  516. fi
  517. for ac_site_file in $CONFIG_SITE; do
  518.   if test -r "$ac_site_file"; then
  519.     echo "loading site script $ac_site_file"
  520.     . "$ac_site_file"
  521.   fi
  522. done
  523.  
  524. if test -r "$cache_file"; then
  525.   echo "loading cache $cache_file"
  526.   . $cache_file
  527. else
  528.   echo "creating cache $cache_file"
  529.   > $cache_file
  530. fi
  531.  
  532. ac_ext=c
  533. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  534. ac_cpp='$CPP $CPPFLAGS'
  535. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  536. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  537. cross_compiling=$ac_cv_prog_cc_cross
  538.  
  539. ac_exeext=
  540. ac_objext=o
  541. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  542.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  543.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  544.     ac_n= ac_c='
  545. ' ac_t='    '
  546.   else
  547.     ac_n=-n ac_c= ac_t=
  548.   fi
  549. else
  550.   ac_n= ac_c='\c' ac_t=
  551. fi
  552.  
  553.  
  554.  
  555. PACKAGE="icu"
  556.  
  557. VERSION="1.3.1"
  558.  
  559.  
  560. # Extract the first word of "gcc", so it can be a program name with args.
  561. set dummy gcc; ac_word=$2
  562. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  563. echo "configure:564: checking for $ac_word" >&5
  564. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  565.   echo $ac_n "(cached) $ac_c" 1>&6
  566. else
  567.   if test -n "$CC"; then
  568.   ac_cv_prog_CC="$CC" # Let the user override the test.
  569. else
  570.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  571.   ac_dummy="$PATH"
  572.   for ac_dir in $ac_dummy; do
  573.     test -z "$ac_dir" && ac_dir=.
  574.     if test -f $ac_dir/$ac_word; then
  575.       ac_cv_prog_CC="gcc"
  576.       break
  577.     fi
  578.   done
  579.   IFS="$ac_save_ifs"
  580. fi
  581. fi
  582. CC="$ac_cv_prog_CC"
  583. if test -n "$CC"; then
  584.   echo "$ac_t""$CC" 1>&6
  585. else
  586.   echo "$ac_t""no" 1>&6
  587. fi
  588.  
  589. if test -z "$CC"; then
  590.   # Extract the first word of "bcc", so it can be a program name with args.
  591. set dummy bcc; ac_word=$2
  592. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  593. echo "configure:594: checking for $ac_word" >&5
  594. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  595.   echo $ac_n "(cached) $ac_c" 1>&6
  596. else
  597.   if test -n "$CC"; then
  598.   ac_cv_prog_CC="$CC" # Let the user override the test.
  599. else
  600.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  601.   ac_dummy="$PATH"
  602.   for ac_dir in $ac_dummy; do
  603.     test -z "$ac_dir" && ac_dir=.
  604.     if test -f $ac_dir/$ac_word; then
  605.       ac_cv_prog_CC="bcc"
  606.       break
  607.     fi
  608.   done
  609.   IFS="$ac_save_ifs"
  610. fi
  611. fi
  612. CC="$ac_cv_prog_CC"
  613. if test -n "$CC"; then
  614.   echo "$ac_t""$CC" 1>&6
  615. else
  616.   echo "$ac_t""no" 1>&6
  617. fi
  618.  
  619. fi
  620. if test -z "$CC"; then
  621.   machine=`(uname -m 2>/dev/null)` || machine=unknown
  622.   case "$machine" in
  623.     BePC) # Extract the first word of "mwccx86", so it can be a program name with args.
  624. set dummy mwccx86; ac_word=$2
  625. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  626. echo "configure:627: checking for $ac_word" >&5
  627. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  628.   echo $ac_n "(cached) $ac_c" 1>&6
  629. else
  630.   if test -n "$CC"; then
  631.   ac_cv_prog_CC="$CC" # Let the user override the test.
  632. else
  633.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  634.   ac_dummy="$PATH"
  635.   for ac_dir in $ac_dummy; do
  636.     test -z "$ac_dir" && ac_dir=.
  637.     if test -f $ac_dir/$ac_word; then
  638.       ac_cv_prog_CC="mwccx86"
  639.       break
  640.     fi
  641.   done
  642.   IFS="$ac_save_ifs"
  643. fi
  644. fi
  645. CC="$ac_cv_prog_CC"
  646. if test -n "$CC"; then
  647.   echo "$ac_t""$CC" 1>&6
  648. else
  649.   echo "$ac_t""no" 1>&6
  650. fi
  651.  ;;
  652.     BeBox | BeMac ) # Extract the first word of "mwcc", so it can be a program name with args.
  653. set dummy mwcc; ac_word=$2
  654. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  655. echo "configure:656: checking for $ac_word" >&5
  656. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  657.   echo $ac_n "(cached) $ac_c" 1>&6
  658. else
  659.   if test -n "$CC"; then
  660.   ac_cv_prog_CC="$CC" # Let the user override the test.
  661. else
  662.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  663.   ac_dummy="$PATH"
  664.   for ac_dir in $ac_dummy; do
  665.     test -z "$ac_dir" && ac_dir=.
  666.     if test -f $ac_dir/$ac_word; then
  667.       ac_cv_prog_CC="mwcc"
  668.       break
  669.     fi
  670.   done
  671.   IFS="$ac_save_ifs"
  672. fi
  673. fi
  674. CC="$ac_cv_prog_CC"
  675. if test -n "$CC"; then
  676.   echo "$ac_t""$CC" 1>&6
  677. else
  678.   echo "$ac_t""no" 1>&6
  679. fi
  680.  ;;
  681.     *) ;;
  682.   esac
  683. fi
  684. if test -z "$CC"; then
  685.   # Extract the first word of "cc", so it can be a program name with args.
  686. set dummy cc; ac_word=$2
  687. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  688. echo "configure:689: checking for $ac_word" >&5
  689. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  690.   echo $ac_n "(cached) $ac_c" 1>&6
  691. else
  692.   if test -n "$CC"; then
  693.   ac_cv_prog_CC="$CC" # Let the user override the test.
  694. else
  695.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  696.   ac_prog_rejected=no
  697.   ac_dummy="$PATH"
  698.   for ac_dir in $ac_dummy; do
  699.     test -z "$ac_dir" && ac_dir=.
  700.     if test -f $ac_dir/$ac_word; then
  701.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  702.         ac_prog_rejected=yes
  703.     continue
  704.       fi
  705.       ac_cv_prog_CC="cc"
  706.       break
  707.     fi
  708.   done
  709.   IFS="$ac_save_ifs"
  710. if test $ac_prog_rejected = yes; then
  711.   # We found a bogon in the path, so make sure we never use it.
  712.   set dummy $ac_cv_prog_CC
  713.   shift
  714.   if test $# -gt 0; then
  715.     # We chose a different compiler from the bogus one.
  716.     # However, it has the same basename, so the bogon will be chosen
  717.     # first if we set CC to just the basename; use the full file name.
  718.     shift
  719.     set dummy "$ac_dir/$ac_word" "$@"
  720.     shift
  721.     ac_cv_prog_CC="$@"
  722.   fi
  723. fi
  724. fi
  725. fi
  726. CC="$ac_cv_prog_CC"
  727. if test -n "$CC"; then
  728.   echo "$ac_t""$CC" 1>&6
  729. else
  730.   echo "$ac_t""no" 1>&6
  731. fi
  732.  
  733. fi
  734. if test -z "$CC"; then
  735.   case "`uname -s`" in
  736.   *win32* | *WIN32*)
  737.     # Extract the first word of "cl", so it can be a program name with args.
  738. set dummy cl; ac_word=$2
  739. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  740. echo "configure:741: checking for $ac_word" >&5
  741. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  742.   echo $ac_n "(cached) $ac_c" 1>&6
  743. else
  744.   if test -n "$CC"; then
  745.   ac_cv_prog_CC="$CC" # Let the user override the test.
  746. else
  747.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  748.   ac_dummy="$PATH"
  749.   for ac_dir in $ac_dummy; do
  750.     test -z "$ac_dir" && ac_dir=.
  751.     if test -f $ac_dir/$ac_word; then
  752.       ac_cv_prog_CC="cl"
  753.       break
  754.     fi
  755.   done
  756.   IFS="$ac_save_ifs"
  757. fi
  758. fi
  759. CC="$ac_cv_prog_CC"
  760. if test -n "$CC"; then
  761.   echo "$ac_t""$CC" 1>&6
  762. else
  763.   echo "$ac_t""no" 1>&6
  764. fi
  765.  ;;
  766.   esac
  767. fi
  768. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  769.  
  770. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  771. echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  772.  
  773. ac_ext=c
  774. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  775. ac_cpp='$CPP $CPPFLAGS'
  776. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  777. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  778. cross_compiling=$ac_cv_prog_cc_cross
  779.  
  780. cat > conftest.$ac_ext << EOF
  781.  
  782. #line 783 "configure"
  783. #include "confdefs.h"
  784.  
  785. main(){return(0);}
  786. EOF
  787. if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  788.   ac_cv_prog_cc_works=yes
  789.   # If we can't run a trivial program, we are probably using a cross compiler.
  790.   if (./conftest; exit) 2>/dev/null; then
  791.     ac_cv_prog_cc_cross=no
  792.   else
  793.     ac_cv_prog_cc_cross=yes
  794.   fi
  795. else
  796.   echo "configure: failed program was:" >&5
  797.   cat conftest.$ac_ext >&5
  798.   ac_cv_prog_cc_works=no
  799. fi
  800. rm -fr conftest*
  801. ac_ext=c
  802. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  803. ac_cpp='$CPP $CPPFLAGS'
  804. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  805. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  806. cross_compiling=$ac_cv_prog_cc_cross
  807.  
  808. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  809. if test $ac_cv_prog_cc_works = no; then
  810.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  811. fi
  812. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  813. echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  814. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  815. cross_compiling=$ac_cv_prog_cc_cross
  816.  
  817. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  818. echo "configure:819: checking whether we are using GNU C" >&5
  819. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  820.   echo $ac_n "(cached) $ac_c" 1>&6
  821. else
  822.   cat > conftest.c <<EOF
  823. #ifdef __GNUC__
  824.   yes;
  825. #endif
  826. EOF
  827. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  828.   ac_cv_prog_gcc=yes
  829. else
  830.   ac_cv_prog_gcc=no
  831. fi
  832. fi
  833.  
  834. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  835.  
  836. if test $ac_cv_prog_gcc = yes; then
  837.   GCC=yes
  838. else
  839.   GCC=
  840. fi
  841.  
  842. ac_test_CFLAGS="${CFLAGS+set}"
  843. ac_save_CFLAGS="$CFLAGS"
  844. CFLAGS=
  845. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  846. echo "configure:847: checking whether ${CC-cc} accepts -g" >&5
  847. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  848.   echo $ac_n "(cached) $ac_c" 1>&6
  849. else
  850.   echo 'void f(){}' > conftest.c
  851. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  852.   ac_cv_prog_cc_g=yes
  853. else
  854.   ac_cv_prog_cc_g=no
  855. fi
  856. rm -f conftest*
  857.  
  858. fi
  859.  
  860. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  861. if test "$ac_test_CFLAGS" = set; then
  862.   CFLAGS="$ac_save_CFLAGS"
  863. elif test $ac_cv_prog_cc_g = yes; then
  864.   if test "$GCC" = yes; then
  865.     CFLAGS="-g -O2"
  866.   else
  867.     CFLAGS="-g"
  868.   fi
  869. else
  870.   if test "$GCC" = yes; then
  871.     CFLAGS="-O2"
  872.   else
  873.     CFLAGS=
  874.   fi
  875. fi
  876. case "$CC" in
  877.   bcc )
  878.     AR=${AR-mwld}
  879.     LD=${LD-mwld}
  880.     RANLIB=${RANLIB-true};;
  881.   mwcc )
  882.     CC="mwcc -I- -I. -I/boot/apps/GeekGadgets/include -L/boot/apps/GeekGadgets/lib -opt global -nodup"
  883.     AR=${AR-mwld}
  884.     LD=${LD-mwld}
  885.     RANLIB=${RANLIB-true};;
  886.   mwccx86 )
  887.     CC="mwccx86 -I- -I. -I/boot/apps/GeekGadgets/include -L/boot/apps/GeekGadgets/lib"
  888.     AR=${AR-mwldx86}
  889.     LD=${LD-mwldx86}
  890.     RANLIB=${RANLIB-true};;
  891.   ${host_alias}-gcc)
  892.     ;;
  893.   *)
  894.     AR=${AR-ar}
  895.     LD=${LD-ld}
  896.     RANLIB=${RANLIB-ranlib};;
  897. esac
  898.  
  899.  
  900. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  901. do
  902. # Extract the first word of "$ac_prog", so it can be a program name with args.
  903. set dummy $ac_prog; ac_word=$2
  904. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  905. echo "configure:906: checking for $ac_word" >&5
  906. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  907.   echo $ac_n "(cached) $ac_c" 1>&6
  908. else
  909.   if test -n "$CXX"; then
  910.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  911. else
  912.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  913.   ac_dummy="$PATH"
  914.   for ac_dir in $ac_dummy; do
  915.     test -z "$ac_dir" && ac_dir=.
  916.     if test -f $ac_dir/$ac_word; then
  917.       ac_cv_prog_CXX="$ac_prog"
  918.       break
  919.     fi
  920.   done
  921.   IFS="$ac_save_ifs"
  922. fi
  923. fi
  924. CXX="$ac_cv_prog_CXX"
  925. if test -n "$CXX"; then
  926.   echo "$ac_t""$CXX" 1>&6
  927. else
  928.   echo "$ac_t""no" 1>&6
  929. fi
  930.  
  931. test -n "$CXX" && break
  932. done
  933. test -n "$CXX" || CXX="gcc"
  934.  
  935.  
  936. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  937. echo "configure:938: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  938.  
  939. ac_ext=C
  940. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  941. ac_cpp='$CXXCPP $CPPFLAGS'
  942. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  943. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  944. cross_compiling=$ac_cv_prog_cxx_cross
  945.  
  946. cat > conftest.$ac_ext << EOF
  947.  
  948. #line 949 "configure"
  949. #include "confdefs.h"
  950.  
  951. int main(){return(0);}
  952. EOF
  953. if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  954.   ac_cv_prog_cxx_works=yes
  955.   # If we can't run a trivial program, we are probably using a cross compiler.
  956.   if (./conftest; exit) 2>/dev/null; then
  957.     ac_cv_prog_cxx_cross=no
  958.   else
  959.     ac_cv_prog_cxx_cross=yes
  960.   fi
  961. else
  962.   echo "configure: failed program was:" >&5
  963.   cat conftest.$ac_ext >&5
  964.   ac_cv_prog_cxx_works=no
  965. fi
  966. rm -fr conftest*
  967. ac_ext=c
  968. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  969. ac_cpp='$CPP $CPPFLAGS'
  970. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  971. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  972. cross_compiling=$ac_cv_prog_cc_cross
  973.  
  974. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  975. if test $ac_cv_prog_cxx_works = no; then
  976.   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  977. fi
  978. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  979. echo "configure:980: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  980. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  981. cross_compiling=$ac_cv_prog_cxx_cross
  982.  
  983. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  984. echo "configure:985: checking whether we are using GNU C++" >&5
  985. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  986.   echo $ac_n "(cached) $ac_c" 1>&6
  987. else
  988.   cat > conftest.C <<EOF
  989. #ifdef __GNUC__
  990.   yes;
  991. #endif
  992. EOF
  993. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  994.   ac_cv_prog_gxx=yes
  995. else
  996.   ac_cv_prog_gxx=no
  997. fi
  998. fi
  999.  
  1000. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  1001.  
  1002. if test $ac_cv_prog_gxx = yes; then
  1003.   GXX=yes
  1004. else
  1005.   GXX=
  1006. fi
  1007.  
  1008. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  1009. ac_save_CXXFLAGS="$CXXFLAGS"
  1010. CXXFLAGS=
  1011. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  1012. echo "configure:1013: checking whether ${CXX-g++} accepts -g" >&5
  1013. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  1014.   echo $ac_n "(cached) $ac_c" 1>&6
  1015. else
  1016.   echo 'void f(){}' > conftest.cc
  1017. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  1018.   ac_cv_prog_cxx_g=yes
  1019. else
  1020.   ac_cv_prog_cxx_g=no
  1021. fi
  1022. rm -f conftest*
  1023.  
  1024. fi
  1025.  
  1026. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  1027. if test "$ac_test_CXXFLAGS" = set; then
  1028.   CXXFLAGS="$ac_save_CXXFLAGS"
  1029. elif test $ac_cv_prog_cxx_g = yes; then
  1030.   if test "$GXX" = yes; then
  1031.     CXXFLAGS="-g -O2"
  1032.   else
  1033.     CXXFLAGS="-g"
  1034.   fi
  1035. else
  1036.   if test "$GXX" = yes; then
  1037.     CXXFLAGS="-O2"
  1038.   else
  1039.     CXXFLAGS=
  1040.   fi
  1041. fi
  1042.  
  1043. ac_aux_dir=
  1044. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1045.   if test -f $ac_dir/install-sh; then
  1046.     ac_aux_dir=$ac_dir
  1047.     ac_install_sh="$ac_aux_dir/install-sh -c"
  1048.     break
  1049.   elif test -f $ac_dir/install.sh; then
  1050.     ac_aux_dir=$ac_dir
  1051.     ac_install_sh="$ac_aux_dir/install.sh -c"
  1052.     break
  1053.   fi
  1054. done
  1055. if test -z "$ac_aux_dir"; then
  1056.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1057. fi
  1058. ac_config_guess=$ac_aux_dir/config.guess
  1059. ac_config_sub=$ac_aux_dir/config.sub
  1060. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1061.  
  1062. # Find a good install program.  We prefer a C program (faster),
  1063. # so one script is as good as another.  But avoid the broken or
  1064. # incompatible versions:
  1065. # SysV /etc/install, /usr/sbin/install
  1066. # SunOS /usr/etc/install
  1067. # IRIX /sbin/install
  1068. # AIX /bin/install
  1069. # AmigaOS /c/install
  1070. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1071. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1072. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1073. # ./install, which can be erroneously created by make from ./install.sh.
  1074. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1075. echo "configure:1076: checking for a BSD compatible install" >&5
  1076. if test -z "$INSTALL"; then
  1077. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1078.   echo $ac_n "(cached) $ac_c" 1>&6
  1079. else
  1080.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  1081.   for ac_dir in $PATH; do
  1082.     # Account for people who put trailing slashes in PATH elements.
  1083.     case "$ac_dir/" in
  1084.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1085.     *)
  1086.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1087.       # Don't use installbsd from OSF since it installs stuff as root
  1088.       # by default.
  1089.       for ac_prog in ginstall scoinst install; do
  1090.         if test -f $ac_dir/$ac_prog; then
  1091.       if test $ac_prog = install &&
  1092.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1093.         # AIX install.  It has an incompatible calling convention.
  1094.         :
  1095.       else
  1096.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1097.         break 2
  1098.       fi
  1099.     fi
  1100.       done
  1101.       ;;
  1102.     esac
  1103.   done
  1104.   IFS="$ac_save_IFS"
  1105.  
  1106. fi
  1107.   if test "${ac_cv_path_install+set}" = set; then
  1108.     INSTALL="$ac_cv_path_install"
  1109.   else
  1110.     # As a last resort, use the slow shell script.  We don't cache a
  1111.     # path for INSTALL within a source directory, because that will
  1112.     # break other packages using the cache if that directory is
  1113.     # removed, or if the path is relative.
  1114.     INSTALL="$ac_install_sh"
  1115.   fi
  1116. fi
  1117. echo "$ac_t""$INSTALL" 1>&6
  1118.  
  1119. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1120. # It thinks the first close brace ends the variable substitution.
  1121. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1122.  
  1123. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1124.  
  1125. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1126.  
  1127. # Extract the first word of "autoconf", so it can be a program name with args.
  1128. set dummy autoconf; ac_word=$2
  1129. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1130. echo "configure:1131: checking for $ac_word" >&5
  1131. if eval "test \"`echo '$''{'ac_cv_prog_AUTOCONF'+set}'`\" = set"; then
  1132.   echo $ac_n "(cached) $ac_c" 1>&6
  1133. else
  1134.   if test -n "$AUTOCONF"; then
  1135.   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
  1136. else
  1137.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1138.   ac_dummy="$PATH"
  1139.   for ac_dir in $ac_dummy; do
  1140.     test -z "$ac_dir" && ac_dir=.
  1141.     if test -f $ac_dir/$ac_word; then
  1142.       ac_cv_prog_AUTOCONF="autoconf"
  1143.       break
  1144.     fi
  1145.   done
  1146.   IFS="$ac_save_ifs"
  1147.   test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF="true"
  1148. fi
  1149. fi
  1150. AUTOCONF="$ac_cv_prog_AUTOCONF"
  1151. if test -n "$AUTOCONF"; then
  1152.   echo "$ac_t""$AUTOCONF" 1>&6
  1153. else
  1154.   echo "$ac_t""no" 1>&6
  1155. fi
  1156.  
  1157.  
  1158.  
  1159. # Make sure we can run config.sub.
  1160. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1161. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1162. fi
  1163.  
  1164. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1165. echo "configure:1166: checking host system type" >&5
  1166.  
  1167. host_alias=$host
  1168. case "$host_alias" in
  1169. NONE)
  1170.   case $nonopt in
  1171.   NONE)
  1172.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1173.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1174.     fi ;;
  1175.   *) host_alias=$nonopt ;;
  1176.   esac ;;
  1177. esac
  1178.  
  1179. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1180. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1181. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1182. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1183. echo "$ac_t""$host" 1>&6
  1184.  
  1185.  
  1186.     echo $ac_n "checking which Makefile fragment to use""... $ac_c" 1>&6
  1187. echo "configure:1188: checking which Makefile fragment to use" >&5
  1188. if eval "test \"`echo '$''{'icu_cv_host_frag'+set}'`\" = set"; then
  1189.   echo $ac_n "(cached) $ac_c" 1>&6
  1190. else
  1191.   
  1192. case "${host}" in
  1193. *-*-solaris*)     
  1194.     if test "$ac_cv_prog_gcc" = yes; then    
  1195.         icu_cv_host_frag=$srcdir/config/mh-solaris-gcc 
  1196.     else
  1197.         icu_cv_host_frag=$srcdir/config/mh-solaris 
  1198.     fi ;;
  1199. *-*-linux*)     icu_cv_host_frag=$srcdir/config/mh-linux ;;
  1200. *-*-aix*)     icu_cv_host_frag=$srcdir/config/mh-aix ;;
  1201. *-*-hpux*)
  1202.     case "$CXX" in 
  1203.     *aCC)    icu_cv_host_frag=$srcdir/config/mh-hpux-acc ;;
  1204.     *CC)     icu_cv_host_frag=$srcdir/config/mh-hpux-cc ;;
  1205.     esac;;
  1206. *-*-os390*)    icu_cv_host_frag=$srcdir/config/mh-os390 ;;
  1207. *-*-amigaos*)    icu_cv_host_frag=$srcdir/config/mh-amigaos ;;
  1208. *)         icu_cv_host_frag=$srcdir/config/mh-unknown ;;
  1209. esac
  1210.         
  1211.     
  1212. fi
  1213.  
  1214. echo "$ac_t""$icu_cv_host_frag" 1>&6
  1215.  
  1216.  
  1217. case "${host}" in
  1218.     *-*-hpux*)     echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
  1219. echo "configure:1220: checking for floor in -lm" >&5
  1220. ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'`
  1221. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1222.   echo $ac_n "(cached) $ac_c" 1>&6
  1223. else
  1224.   ac_save_LIBS="$LIBS"
  1225. LIBS="-lm  $LIBS"
  1226. cat > conftest.$ac_ext <<EOF
  1227. #line 1228 "configure"
  1228. #include "confdefs.h"
  1229. /* Override any gcc2 internal prototype to avoid an error.  */
  1230. /* We use char because int might match the return type of a gcc2
  1231.     builtin and then its argument prototype would still apply.  */
  1232. char floor();
  1233.  
  1234. int main() {
  1235. floor()
  1236. ; return 0; }
  1237. EOF
  1238. if { (eval echo configure:1239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1239.   rm -rf conftest*
  1240.   eval "ac_cv_lib_$ac_lib_var=yes"
  1241. else
  1242.   echo "configure: failed program was:" >&5
  1243.   cat conftest.$ac_ext >&5
  1244.   rm -rf conftest*
  1245.   eval "ac_cv_lib_$ac_lib_var=no"
  1246. fi
  1247. rm -f conftest*
  1248. LIBS="$ac_save_LIBS"
  1249.  
  1250. fi
  1251. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1252.   echo "$ac_t""yes" 1>&6
  1253.   LIB_M="-lm"
  1254. else
  1255.   echo "$ac_t""no" 1>&6
  1256. fi
  1257.  ;;
  1258.     *)         echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
  1259. echo "configure:1260: checking for floor in -lm" >&5
  1260. ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'`
  1261. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1262.   echo $ac_n "(cached) $ac_c" 1>&6
  1263. else
  1264.   ac_save_LIBS="$LIBS"
  1265. LIBS="-lm  $LIBS"
  1266. cat > conftest.$ac_ext <<EOF
  1267. #line 1268 "configure"
  1268. #include "confdefs.h"
  1269. /* Override any gcc2 internal prototype to avoid an error.  */
  1270. /* We use char because int might match the return type of a gcc2
  1271.     builtin and then its argument prototype would still apply.  */
  1272. char floor();
  1273.  
  1274. int main() {
  1275. floor()
  1276. ; return 0; }
  1277. EOF
  1278. if { (eval echo configure:1279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1279.   rm -rf conftest*
  1280.   eval "ac_cv_lib_$ac_lib_var=yes"
  1281. else
  1282.   echo "configure: failed program was:" >&5
  1283.   cat conftest.$ac_ext >&5
  1284.   rm -rf conftest*
  1285.   eval "ac_cv_lib_$ac_lib_var=no"
  1286. fi
  1287. rm -f conftest*
  1288. LIBS="$ac_save_LIBS"
  1289.  
  1290. fi
  1291. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1292.   echo "$ac_t""yes" 1>&6
  1293.     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1294.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1295.   cat >> confdefs.h <<EOF
  1296. #define $ac_tr_lib 1
  1297. EOF
  1298.  
  1299.   LIBS="-lm $LIBS"
  1300.  
  1301. else
  1302.   echo "$ac_t""no" 1>&6
  1303. fi
  1304.  
  1305.             LIB_M="" ;;
  1306. esac
  1307.  
  1308.  
  1309. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  1310. echo "configure:1311: checking for pthread_create in -lpthread" >&5
  1311. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  1312. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1313.   echo $ac_n "(cached) $ac_c" 1>&6
  1314. else
  1315.   ac_save_LIBS="$LIBS"
  1316. LIBS="-lpthread  $LIBS"
  1317. cat > conftest.$ac_ext <<EOF
  1318. #line 1319 "configure"
  1319. #include "confdefs.h"
  1320. /* Override any gcc2 internal prototype to avoid an error.  */
  1321. /* We use char because int might match the return type of a gcc2
  1322.     builtin and then its argument prototype would still apply.  */
  1323. char pthread_create();
  1324.  
  1325. int main() {
  1326. pthread_create()
  1327. ; return 0; }
  1328. EOF
  1329. if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1330.   rm -rf conftest*
  1331.   eval "ac_cv_lib_$ac_lib_var=yes"
  1332. else
  1333.   echo "configure: failed program was:" >&5
  1334.   cat conftest.$ac_ext >&5
  1335.   rm -rf conftest*
  1336.   eval "ac_cv_lib_$ac_lib_var=no"
  1337. fi
  1338. rm -f conftest*
  1339. LIBS="$ac_save_LIBS"
  1340.  
  1341. fi
  1342. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1343.   echo "$ac_t""yes" 1>&6
  1344.     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1345.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1346.   cat >> confdefs.h <<EOF
  1347. #define $ac_tr_lib 1
  1348. EOF
  1349.  
  1350.   LIBS="-lpthread $LIBS"
  1351.  
  1352. else
  1353.   echo "$ac_t""no" 1>&6
  1354. fi
  1355.  
  1356. if test $ac_cv_lib_pthread_pthread_create = no; then
  1357. echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
  1358. echo "configure:1359: checking for pthread_create in -lpthreads" >&5
  1359. ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
  1360. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1361.   echo $ac_n "(cached) $ac_c" 1>&6
  1362. else
  1363.   ac_save_LIBS="$LIBS"
  1364. LIBS="-lpthreads  $LIBS"
  1365. cat > conftest.$ac_ext <<EOF
  1366. #line 1367 "configure"
  1367. #include "confdefs.h"
  1368. /* Override any gcc2 internal prototype to avoid an error.  */
  1369. /* We use char because int might match the return type of a gcc2
  1370.     builtin and then its argument prototype would still apply.  */
  1371. char pthread_create();
  1372.  
  1373. int main() {
  1374. pthread_create()
  1375. ; return 0; }
  1376. EOF
  1377. if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1378.   rm -rf conftest*
  1379.   eval "ac_cv_lib_$ac_lib_var=yes"
  1380. else
  1381.   echo "configure: failed program was:" >&5
  1382.   cat conftest.$ac_ext >&5
  1383.   rm -rf conftest*
  1384.   eval "ac_cv_lib_$ac_lib_var=no"
  1385. fi
  1386. rm -f conftest*
  1387. LIBS="$ac_save_LIBS"
  1388.  
  1389. fi
  1390. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1391.   echo "$ac_t""yes" 1>&6
  1392.     ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1393.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1394.   cat >> confdefs.h <<EOF
  1395. #define $ac_tr_lib 1
  1396. EOF
  1397.  
  1398.   LIBS="-lpthreads $LIBS"
  1399.  
  1400. else
  1401.   echo "$ac_t""no" 1>&6
  1402. fi
  1403.  
  1404. fi
  1405. if test $ac_cv_lib_pthread_pthread_create = no; then
  1406. echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
  1407. echo "configure:1408: checking for pthread_create in -lcma" >&5
  1408. ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
  1409. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1410.   echo $ac_n "(cached) $ac_c" 1>&6
  1411. else
  1412.   ac_save_LIBS="$LIBS"
  1413. LIBS="-lcma  $LIBS"
  1414. cat > conftest.$ac_ext <<EOF
  1415. #line 1416 "configure"
  1416. #include "confdefs.h"
  1417. /* Override any gcc2 internal prototype to avoid an error.  */
  1418. /* We use char because int might match the return type of a gcc2
  1419.     builtin and then its argument prototype would still apply.  */
  1420. char pthread_create();
  1421.  
  1422. int main() {
  1423. pthread_create()
  1424. ; return 0; }
  1425. EOF
  1426. if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1427.   rm -rf conftest*
  1428.   eval "ac_cv_lib_$ac_lib_var=yes"
  1429. else
  1430.   echo "configure: failed program was:" >&5
  1431.   cat conftest.$ac_ext >&5
  1432.   rm -rf conftest*
  1433.   eval "ac_cv_lib_$ac_lib_var=no"
  1434. fi
  1435. rm -f conftest*
  1436. LIBS="$ac_save_LIBS"
  1437.  
  1438. fi
  1439. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1440.   echo "$ac_t""yes" 1>&6
  1441.     ac_tr_lib=HAVE_LIB`echo cma | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1442.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1443.   cat >> confdefs.h <<EOF
  1444. #define $ac_tr_lib 1
  1445. EOF
  1446.  
  1447.   LIBS="-lcma $LIBS"
  1448.  
  1449. else
  1450.   echo "$ac_t""no" 1>&6
  1451. fi
  1452.  
  1453. fi
  1454.  
  1455. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1456. echo "configure:1457: checking how to run the C preprocessor" >&5
  1457. # On Suns, sometimes $CPP names a directory.
  1458. if test -n "$CPP" && test -d "$CPP"; then
  1459.   CPP=
  1460. fi
  1461. if test -z "$CPP"; then
  1462. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1463.   echo $ac_n "(cached) $ac_c" 1>&6
  1464. else
  1465.     # This must be in double quotes, not single quotes, because CPP may get
  1466.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1467.   CPP="${CC-cc} -E"
  1468.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1469.   # not just through cpp.
  1470.   cat > conftest.$ac_ext <<EOF
  1471. #line 1472 "configure"
  1472. #include "confdefs.h"
  1473. #include <assert.h>
  1474. Syntax Error
  1475. EOF
  1476. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1477. { (eval echo configure:1478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1478. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1479. if test -z "$ac_err"; then
  1480.   :
  1481. else
  1482.   echo "$ac_err" >&5
  1483.   echo "configure: failed program was:" >&5
  1484.   cat conftest.$ac_ext >&5
  1485.   rm -rf conftest*
  1486.   CPP="${CC-cc} -E -traditional-cpp"
  1487.   cat > conftest.$ac_ext <<EOF
  1488. #line 1489 "configure"
  1489. #include "confdefs.h"
  1490. #include <assert.h>
  1491. Syntax Error
  1492. EOF
  1493. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1494. { (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1495. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1496. if test -z "$ac_err"; then
  1497.   :
  1498. else
  1499.   echo "$ac_err" >&5
  1500.   echo "configure: failed program was:" >&5
  1501.   cat conftest.$ac_ext >&5
  1502.   rm -rf conftest*
  1503.   CPP="${CC-cc} -nologo -E"
  1504.   cat > conftest.$ac_ext <<EOF
  1505. #line 1506 "configure"
  1506. #include "confdefs.h"
  1507. #include <assert.h>
  1508. Syntax Error
  1509. EOF
  1510. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1511. { (eval echo configure:1512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1512. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1513. if test -z "$ac_err"; then
  1514.   :
  1515. else
  1516.   echo "$ac_err" >&5
  1517.   echo "configure: failed program was:" >&5
  1518.   cat conftest.$ac_ext >&5
  1519.   rm -rf conftest*
  1520.   CPP=/lib/cpp
  1521. fi
  1522. rm -f conftest*
  1523. fi
  1524. rm -f conftest*
  1525. fi
  1526. rm -f conftest*
  1527.   ac_cv_prog_CPP="$CPP"
  1528. fi
  1529.   CPP="$ac_cv_prog_CPP"
  1530. else
  1531.   ac_cv_prog_CPP="$CPP"
  1532. fi
  1533. echo "$ac_t""$CPP" 1>&6
  1534.  
  1535. for ac_hdr in inttypes.h
  1536. do
  1537. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1538. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1539. echo "configure:1540: checking for $ac_hdr" >&5
  1540. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1541.   echo $ac_n "(cached) $ac_c" 1>&6
  1542. else
  1543.   cat > conftest.$ac_ext <<EOF
  1544. #line 1545 "configure"
  1545. #include "confdefs.h"
  1546. #include <$ac_hdr>
  1547. EOF
  1548. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1549. { (eval echo configure:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1550. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1551. if test -z "$ac_err"; then
  1552.   rm -rf conftest*
  1553.   eval "ac_cv_header_$ac_safe=yes"
  1554. else
  1555.   echo "$ac_err" >&5
  1556.   echo "configure: failed program was:" >&5
  1557.   cat conftest.$ac_ext >&5
  1558.   rm -rf conftest*
  1559.   eval "ac_cv_header_$ac_safe=no"
  1560. fi
  1561. rm -f conftest*
  1562. fi
  1563. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1564.   echo "$ac_t""yes" 1>&6
  1565.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1566.   cat >> confdefs.h <<EOF
  1567. #define $ac_tr_hdr 1
  1568. EOF
  1569.  
  1570. else
  1571.   echo "$ac_t""no" 1>&6
  1572. fi
  1573. done
  1574.  
  1575. if test $ac_cv_header_inttypes_h = no; then
  1576. HAVE_INTTYPES_H=0
  1577. else
  1578. HAVE_INTTYPES_H=1
  1579. fi
  1580.  
  1581.  
  1582. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1583. echo "configure:1584: checking whether byte ordering is bigendian" >&5
  1584. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1585.   echo $ac_n "(cached) $ac_c" 1>&6
  1586. else
  1587.   ac_cv_c_bigendian=unknown
  1588. # See if sys/param.h defines the BYTE_ORDER macro.
  1589. cat > conftest.$ac_ext <<EOF
  1590. #line 1591 "configure"
  1591. #include "confdefs.h"
  1592. #include <sys/types.h>
  1593. #include <sys/param.h>
  1594. int main() {
  1595.  
  1596. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1597.  bogus endian macros
  1598. #endif
  1599. ; return 0; }
  1600. EOF
  1601. if { (eval echo configure:1602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1602.   rm -rf conftest*
  1603.   # It does; now see whether it defined to BIG_ENDIAN or not.
  1604. cat > conftest.$ac_ext <<EOF
  1605. #line 1606 "configure"
  1606. #include "confdefs.h"
  1607. #include <sys/types.h>
  1608. #include <sys/param.h>
  1609. int main() {
  1610.  
  1611. #if BYTE_ORDER != BIG_ENDIAN
  1612.  not big endian
  1613. #endif
  1614. ; return 0; }
  1615. EOF
  1616. if { (eval echo configure:1617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1617.   rm -rf conftest*
  1618.   ac_cv_c_bigendian=yes
  1619. else
  1620.   echo "configure: failed program was:" >&5
  1621.   cat conftest.$ac_ext >&5
  1622.   rm -rf conftest*
  1623.   ac_cv_c_bigendian=no
  1624. fi
  1625. rm -f conftest*
  1626. else
  1627.   echo "configure: failed program was:" >&5
  1628.   cat conftest.$ac_ext >&5
  1629. fi
  1630. rm -f conftest*
  1631. if test $ac_cv_c_bigendian = unknown; then
  1632. if test "$cross_compiling" = yes; then
  1633.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1634. else
  1635.   cat > conftest.$ac_ext <<EOF
  1636. #line 1637 "configure"
  1637. #include "confdefs.h"
  1638. main () {
  1639.   /* Are we little or big endian?  From Harbison&Steele.  */
  1640.   union
  1641.   {
  1642.     long l;
  1643.     char c[sizeof (long)];
  1644.   } u;
  1645.   u.l = 1;
  1646.   exit (u.c[sizeof (long) - 1] == 1);
  1647. }
  1648. EOF
  1649. if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1650. then
  1651.   ac_cv_c_bigendian=no
  1652. else
  1653.   echo "configure: failed program was:" >&5
  1654.   cat conftest.$ac_ext >&5
  1655.   rm -fr conftest*
  1656.   ac_cv_c_bigendian=yes
  1657. fi
  1658. rm -fr conftest*
  1659. fi
  1660.  
  1661. fi
  1662. fi
  1663.  
  1664. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  1665. if test $ac_cv_c_bigendian = yes; then
  1666.   cat >> confdefs.h <<\EOF
  1667. #define WORDS_BIGENDIAN 1
  1668. EOF
  1669.  
  1670. fi
  1671.  
  1672. if test $ac_cv_c_bigendian = no; then
  1673. U_IS_BIG_ENDIAN=0
  1674. else
  1675. U_IS_BIG_ENDIAN=1
  1676. fi
  1677.  
  1678.  
  1679.  
  1680. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1681. echo "configure:1682: checking for ANSI C header files" >&5
  1682. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1683.   echo $ac_n "(cached) $ac_c" 1>&6
  1684. else
  1685.   cat > conftest.$ac_ext <<EOF
  1686. #line 1687 "configure"
  1687. #include "confdefs.h"
  1688. #include <stdlib.h>
  1689. #include <stdarg.h>
  1690. #include <string.h>
  1691. #include <float.h>
  1692. EOF
  1693. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1694. { (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1695. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1696. if test -z "$ac_err"; then
  1697.   rm -rf conftest*
  1698.   ac_cv_header_stdc=yes
  1699. else
  1700.   echo "$ac_err" >&5
  1701.   echo "configure: failed program was:" >&5
  1702.   cat conftest.$ac_ext >&5
  1703.   rm -rf conftest*
  1704.   ac_cv_header_stdc=no
  1705. fi
  1706. rm -f conftest*
  1707.  
  1708. if test $ac_cv_header_stdc = yes; then
  1709.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1710. cat > conftest.$ac_ext <<EOF
  1711. #line 1712 "configure"
  1712. #include "confdefs.h"
  1713. #include <string.h>
  1714. EOF
  1715. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1716.   egrep "memchr" >/dev/null 2>&1; then
  1717.   :
  1718. else
  1719.   rm -rf conftest*
  1720.   ac_cv_header_stdc=no
  1721. fi
  1722. rm -f conftest*
  1723.  
  1724. fi
  1725.  
  1726. if test $ac_cv_header_stdc = yes; then
  1727.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1728. cat > conftest.$ac_ext <<EOF
  1729. #line 1730 "configure"
  1730. #include "confdefs.h"
  1731. #include <stdlib.h>
  1732. EOF
  1733. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1734.   egrep "free" >/dev/null 2>&1; then
  1735.   :
  1736. else
  1737.   rm -rf conftest*
  1738.   ac_cv_header_stdc=no
  1739. fi
  1740. rm -f conftest*
  1741.  
  1742. fi
  1743.  
  1744. if test $ac_cv_header_stdc = yes; then
  1745.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1746. if test "$cross_compiling" = yes; then
  1747.   :
  1748. else
  1749.   cat > conftest.$ac_ext <<EOF
  1750. #line 1751 "configure"
  1751. #include "confdefs.h"
  1752. #include <ctype.h>
  1753. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1754. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1755. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1756. int main () { int i; for (i = 0; i < 256; i++)
  1757. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1758. exit (0); }
  1759.  
  1760. EOF
  1761. if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1762. then
  1763.   :
  1764. else
  1765.   echo "configure: failed program was:" >&5
  1766.   cat conftest.$ac_ext >&5
  1767.   rm -fr conftest*
  1768.   ac_cv_header_stdc=no
  1769. fi
  1770. rm -fr conftest*
  1771. fi
  1772.  
  1773. fi
  1774. fi
  1775.  
  1776. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1777. if test $ac_cv_header_stdc = yes; then
  1778.   cat >> confdefs.h <<\EOF
  1779. #define STDC_HEADERS 1
  1780. EOF
  1781.  
  1782. fi
  1783.  
  1784. echo $ac_n "checking for int8_t""... $ac_c" 1>&6
  1785. echo "configure:1786: checking for int8_t" >&5
  1786. if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then
  1787.   echo $ac_n "(cached) $ac_c" 1>&6
  1788. else
  1789.   cat > conftest.$ac_ext <<EOF
  1790. #line 1791 "configure"
  1791. #include "confdefs.h"
  1792. #include <sys/types.h>
  1793. #if STDC_HEADERS
  1794. #include <stdlib.h>
  1795. #include <stddef.h>
  1796. #endif
  1797. EOF
  1798. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1799.   egrep "(^|[^a-zA-Z_0-9])int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1800.   rm -rf conftest*
  1801.   ac_cv_type_int8_t=yes
  1802. else
  1803.   rm -rf conftest*
  1804.   ac_cv_type_int8_t=no
  1805. fi
  1806. rm -f conftest*
  1807.  
  1808. fi
  1809. echo "$ac_t""$ac_cv_type_int8_t" 1>&6
  1810. if test $ac_cv_type_int8_t = no; then
  1811.   cat >> confdefs.h <<\EOF
  1812. #define int8_t signed char
  1813. EOF
  1814.  
  1815. fi
  1816.  
  1817. echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
  1818. echo "configure:1819: checking for uint8_t" >&5
  1819. if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
  1820.   echo $ac_n "(cached) $ac_c" 1>&6
  1821. else
  1822.   cat > conftest.$ac_ext <<EOF
  1823. #line 1824 "configure"
  1824. #include "confdefs.h"
  1825. #include <sys/types.h>
  1826. #if STDC_HEADERS
  1827. #include <stdlib.h>
  1828. #include <stddef.h>
  1829. #endif
  1830. EOF
  1831. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1832.   egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1833.   rm -rf conftest*
  1834.   ac_cv_type_uint8_t=yes
  1835. else
  1836.   rm -rf conftest*
  1837.   ac_cv_type_uint8_t=no
  1838. fi
  1839. rm -f conftest*
  1840.  
  1841. fi
  1842. echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
  1843. if test $ac_cv_type_uint8_t = no; then
  1844.   cat >> confdefs.h <<\EOF
  1845. #define uint8_t unsigned char
  1846. EOF
  1847.  
  1848. fi
  1849.  
  1850. echo $ac_n "checking for int16_t""... $ac_c" 1>&6
  1851. echo "configure:1852: checking for int16_t" >&5
  1852. if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then
  1853.   echo $ac_n "(cached) $ac_c" 1>&6
  1854. else
  1855.   cat > conftest.$ac_ext <<EOF
  1856. #line 1857 "configure"
  1857. #include "confdefs.h"
  1858. #include <sys/types.h>
  1859. #if STDC_HEADERS
  1860. #include <stdlib.h>
  1861. #include <stddef.h>
  1862. #endif
  1863. EOF
  1864. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1865.   egrep "(^|[^a-zA-Z_0-9])int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1866.   rm -rf conftest*
  1867.   ac_cv_type_int16_t=yes
  1868. else
  1869.   rm -rf conftest*
  1870.   ac_cv_type_int16_t=no
  1871. fi
  1872. rm -f conftest*
  1873.  
  1874. fi
  1875. echo "$ac_t""$ac_cv_type_int16_t" 1>&6
  1876. if test $ac_cv_type_int16_t = no; then
  1877.   cat >> confdefs.h <<\EOF
  1878. #define int16_t signed short
  1879. EOF
  1880.  
  1881. fi
  1882.  
  1883. echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
  1884. echo "configure:1885: checking for uint16_t" >&5
  1885. if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
  1886.   echo $ac_n "(cached) $ac_c" 1>&6
  1887. else
  1888.   cat > conftest.$ac_ext <<EOF
  1889. #line 1890 "configure"
  1890. #include "confdefs.h"
  1891. #include <sys/types.h>
  1892. #if STDC_HEADERS
  1893. #include <stdlib.h>
  1894. #include <stddef.h>
  1895. #endif
  1896. EOF
  1897. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1898.   egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1899.   rm -rf conftest*
  1900.   ac_cv_type_uint16_t=yes
  1901. else
  1902.   rm -rf conftest*
  1903.   ac_cv_type_uint16_t=no
  1904. fi
  1905. rm -f conftest*
  1906.  
  1907. fi
  1908. echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
  1909. if test $ac_cv_type_uint16_t = no; then
  1910.   cat >> confdefs.h <<\EOF
  1911. #define uint16_t unsigned short
  1912. EOF
  1913.  
  1914. fi
  1915.  
  1916. echo $ac_n "checking for int32_t""... $ac_c" 1>&6
  1917. echo "configure:1918: checking for int32_t" >&5
  1918. if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then
  1919.   echo $ac_n "(cached) $ac_c" 1>&6
  1920. else
  1921.   cat > conftest.$ac_ext <<EOF
  1922. #line 1923 "configure"
  1923. #include "confdefs.h"
  1924. #include <sys/types.h>
  1925. #if STDC_HEADERS
  1926. #include <stdlib.h>
  1927. #include <stddef.h>
  1928. #endif
  1929. EOF
  1930. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1931.   egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1932.   rm -rf conftest*
  1933.   ac_cv_type_int32_t=yes
  1934. else
  1935.   rm -rf conftest*
  1936.   ac_cv_type_int32_t=no
  1937. fi
  1938. rm -f conftest*
  1939.  
  1940. fi
  1941. echo "$ac_t""$ac_cv_type_int32_t" 1>&6
  1942. if test $ac_cv_type_int32_t = no; then
  1943.   cat >> confdefs.h <<\EOF
  1944. #define int32_t signed long
  1945. EOF
  1946.  
  1947. fi
  1948.  
  1949. echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
  1950. echo "configure:1951: checking for uint32_t" >&5
  1951. if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
  1952.   echo $ac_n "(cached) $ac_c" 1>&6
  1953. else
  1954.   cat > conftest.$ac_ext <<EOF
  1955. #line 1956 "configure"
  1956. #include "confdefs.h"
  1957. #include <sys/types.h>
  1958. #if STDC_HEADERS
  1959. #include <stdlib.h>
  1960. #include <stddef.h>
  1961. #endif
  1962. EOF
  1963. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1964.   egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1965.   rm -rf conftest*
  1966.   ac_cv_type_uint32_t=yes
  1967. else
  1968.   rm -rf conftest*
  1969.   ac_cv_type_uint32_t=no
  1970. fi
  1971. rm -f conftest*
  1972.  
  1973. fi
  1974. echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
  1975. if test $ac_cv_type_uint32_t = no; then
  1976.   cat >> confdefs.h <<\EOF
  1977. #define uint32_t unsigned long
  1978. EOF
  1979.  
  1980. fi
  1981.  
  1982. echo $ac_n "checking for bool_t""... $ac_c" 1>&6
  1983. echo "configure:1984: checking for bool_t" >&5
  1984. if eval "test \"`echo '$''{'ac_cv_type_bool_t'+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 <sys/types.h>
  1991. #if STDC_HEADERS
  1992. #include <stdlib.h>
  1993. #include <stddef.h>
  1994. #endif
  1995. EOF
  1996. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1997.   egrep "(^|[^a-zA-Z_0-9])bool_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  1998.   rm -rf conftest*
  1999.   ac_cv_type_bool_t=yes
  2000. else
  2001.   rm -rf conftest*
  2002.   ac_cv_type_bool_t=no
  2003. fi
  2004. rm -f conftest*
  2005.  
  2006. fi
  2007. echo "$ac_t""$ac_cv_type_bool_t" 1>&6
  2008. if test $ac_cv_type_bool_t = no; then
  2009.   cat >> confdefs.h <<\EOF
  2010. #define bool_t signed char
  2011. EOF
  2012.  
  2013. fi
  2014.  
  2015.  
  2016. if test $ac_cv_type_int8_t = no; then
  2017. HAVE_INT8_T=0
  2018. else
  2019. HAVE_INT8_T=1
  2020. fi
  2021.  
  2022.  
  2023. if test $ac_cv_type_uint8_t = no; then
  2024. HAVE_UINT8_T=0
  2025. else
  2026. HAVE_UINT8_T=1
  2027. fi
  2028.  
  2029.  
  2030. if test $ac_cv_type_int16_t = no; then
  2031. HAVE_INT16_T=0
  2032. else
  2033. HAVE_INT16_T=1
  2034. fi
  2035.  
  2036.  
  2037. if test $ac_cv_type_uint16_t = no; then
  2038. HAVE_UINT16_T=0
  2039. else
  2040. HAVE_UINT16_T=1
  2041. fi
  2042.  
  2043.  
  2044. if test $ac_cv_type_int32_t = no; then
  2045. HAVE_INT32_T=0
  2046. else
  2047. HAVE_INT32_T=1
  2048. fi
  2049.  
  2050.  
  2051. if test $ac_cv_type_uint32_t = no; then
  2052. HAVE_UINT32_T=0
  2053. else
  2054. HAVE_UINT32_T=1
  2055. fi
  2056.  
  2057.  
  2058. if test $ac_cv_type_bool_t = no; then
  2059. HAVE_BOOL_T=0
  2060. else
  2061. HAVE_BOOL_T=1
  2062. fi
  2063.  
  2064.  
  2065. # Check whether --enable-extras or --disable-extras was given.
  2066. if test "${enable_extras+set}" = set; then
  2067.   enableval="$enable_extras"
  2068.   case "${enableval}" in
  2069.         yes) extras=true ;;
  2070.         no)  extras=false ;;
  2071.         *) { echo "configure: error: bad value ${enableval} for --enable-extras" 1>&2; exit 1; } ;;
  2072.         esac
  2073. else
  2074.   extras=true
  2075. fi
  2076.  
  2077.  
  2078.  
  2079. if test "$extras" = true; then
  2080.   EXTRAS_TRUE=
  2081.   EXTRAS_FALSE='#'
  2082. else
  2083.   EXTRAS_TRUE='#'
  2084.   EXTRAS_FALSE=
  2085. fi
  2086.  
  2087. # Check whether --enable-tests or --disable-tests was given.
  2088. if test "${enable_tests+set}" = set; then
  2089.   enableval="$enable_tests"
  2090.   case "${enableval}" in
  2091.         yes) tests=true ;;
  2092.         no)  tests=false ;;
  2093.         *) { echo "configure: error: bad value ${enableval} for --enable-tests" 1>&2; exit 1; } ;;
  2094.         esac
  2095. else
  2096.   tests=true
  2097. fi
  2098.  
  2099.  
  2100.  
  2101. if test "$tests" = true; then
  2102.   TESTS_TRUE=
  2103.   TESTS_FALSE='#'
  2104. else
  2105.   TESTS_TRUE='#'
  2106.   TESTS_FALSE=
  2107. fi
  2108.  
  2109. # Check whether --enable-samples or --disable-samples was given.
  2110. if test "${enable_samples+set}" = set; then
  2111.   enableval="$enable_samples"
  2112.   case "${enableval}" in
  2113.         yes) samples=true ;;
  2114.         no)  samples=false ;;
  2115.         *) { echo "configure: error: bad value ${enableval} for --enable-samples" 1>&2; exit 1; } ;;
  2116.         esac
  2117. else
  2118.   samples=true
  2119. fi
  2120.  
  2121.  
  2122.  
  2123. if test "$samples" = true; then
  2124.   SAMPLES_TRUE=
  2125.   SAMPLES_FALSE='#'
  2126. else
  2127.   SAMPLES_TRUE='#'
  2128.   SAMPLES_FALSE=
  2129. fi
  2130.  
  2131. case "${host}" in
  2132.     *-*-solaris*)     platform=SOLARIS ;;
  2133.     *-*-linux*)     platform=LINUX ;;
  2134.     *-*-aix*)     platform=AIX ;;
  2135.     *-*-hpux*)     platform=HPUX ;;
  2136.     *-*-os390*)    platform=OS390 ;;
  2137.     *)         platform=UNKNOWN ;;
  2138. esac
  2139.  
  2140. host_frag=$icu_cv_host_frag
  2141.  
  2142.  
  2143. case "${host}" in
  2144.     *-*-solaris*)     ld_rpath_suf=":" ;;
  2145.     *-*-linux*)     ld_rpath_suf=" " ;;
  2146.     *-*-aix*)     ld_rpath_suf="" ;;
  2147.     *-*-hpux*)     ld_rpath_suf=":" ;;
  2148.     *-*-os390*)    ld_rpath_suf=" " ;;
  2149.     *)         ld_rpath_suf="" ;;
  2150. esac
  2151.  
  2152.  
  2153. case "${host}" in
  2154.     *-*-hpux*)     
  2155.         for file in tools/gencol/gencol samples/date/date \
  2156.           samples/cal/cal test/cintltst/cintltst
  2157.         do
  2158.           if test -f $file.c; then
  2159.             mv $file.c $file.cpp
  2160.           fi
  2161.         done
  2162.     ;;
  2163. esac
  2164.  
  2165.  
  2166. trap '' 1 2 15
  2167. cat > confcache <<\EOF
  2168. # This file is a shell script that caches the results of configure
  2169. # tests run on this system so they can be shared between configure
  2170. # scripts and configure runs.  It is not useful on other systems.
  2171. # If it contains results you don't want to keep, you may remove or edit it.
  2172. #
  2173. # By default, configure uses ./config.cache as the cache file,
  2174. # creating it if it does not exist already.  You can give configure
  2175. # the --cache-file=FILE option to use a different cache file; that is
  2176. # what configure does when it calls configure scripts in
  2177. # subdirectories, so they share the cache.
  2178. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2179. # config.status only pays attention to the cache file if you give it the
  2180. # --recheck option to rerun configure.
  2181. #
  2182. EOF
  2183. # The following way of writing the cache mishandles newlines in values,
  2184. # but we know of no workaround that is simple, portable, and efficient.
  2185. # So, don't put newlines in cache variables' values.
  2186. # Ultrix sh set writes to stderr and can't be redirected directly,
  2187. # and sets the high bit in the cache file unless we assign to the vars.
  2188. (set) 2>&1 |
  2189.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2190.   *ac_space=\ *)
  2191.     # `set' does not quote correctly, so add quotes (double-quote substitution
  2192.     # turns \\\\ into \\, and sed turns \\ into \).
  2193.     sed -n \
  2194.       -e "s/'/'\\\\''/g" \
  2195.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2196.     ;;
  2197.   *)
  2198.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2199.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2200.     ;;
  2201.   esac >> confcache
  2202. if cmp -s $cache_file confcache; then
  2203.   :
  2204. else
  2205.   if test -w $cache_file; then
  2206.     echo "updating cache $cache_file"
  2207.     cat confcache > $cache_file
  2208.   else
  2209.     echo "not updating unwritable cache $cache_file"
  2210.   fi
  2211. fi
  2212. rm -f confcache
  2213.  
  2214. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2215.  
  2216. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2217. # Let make expand exec_prefix.
  2218. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2219.  
  2220. # Any assignment to VPATH causes Sun make to only execute
  2221. # the first set of double-colon rules, so remove it if not needed.
  2222. # If there is a colon in the path, we need to keep it.
  2223. if test "x$srcdir" = x.; then
  2224.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2225. fi
  2226.  
  2227. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2228.  
  2229. DEFS=-DHAVE_CONFIG_H
  2230.  
  2231. # Without the "./", some shells look in PATH for config.status.
  2232. : ${CONFIG_STATUS=./config.status}
  2233.  
  2234. echo creating $CONFIG_STATUS
  2235. # Some systems, like AmigaOS, won't allow you to remove a script that is
  2236. # being executed, so just move it out of the way instead.
  2237. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2238. cat > $CONFIG_STATUS <<EOF
  2239. #! /bin/sh
  2240. # Generated automatically by configure.
  2241. # Run this file to recreate the current configuration.
  2242. # This directory was configured as follows,
  2243. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2244. #
  2245. # $0 $ac_configure_args
  2246. #
  2247. # Compiler output produced by configure, useful for debugging
  2248. # configure, is in ./config.log if it exists.
  2249.  
  2250. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2251. for ac_option
  2252. do
  2253.   case "\$ac_option" in
  2254.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2255.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2256.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2257.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2258.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  2259.     exit 0 ;;
  2260.   -help | --help | --hel | --he | --h)
  2261.     echo "\$ac_cs_usage"; exit 0 ;;
  2262.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2263.   esac
  2264. done
  2265.  
  2266. ac_given_srcdir=$srcdir
  2267. ac_given_INSTALL="$INSTALL"
  2268.  
  2269. trap 'rm -fr `echo "Makefile \
  2270.         common/Makefile common/platform.h config/Makefile i18n/Makefile \
  2271.         extra/Makefile extra/ustdio/Makefile \
  2272.         tools/Makefile tools/ctestfw/Makefile tools/makeconv/Makefile \
  2273.         tools/genrb/Makefile tools/gencol/Makefile \
  2274.         tools/rbdump/Makefile \
  2275.         test/Makefile test/intltest/Makefile test/cintltst/Makefile \
  2276.         test/ieeetest/Makefile \
  2277.         samples/Makefile samples/date/Makefile samples/cal/Makefile \
  2278.         samples/XMLConverter/Makefile common/icucfg.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2279. EOF
  2280. cat >> $CONFIG_STATUS <<EOF
  2281.  
  2282. # Protect against being on the right side of a sed subst in config.status.
  2283. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2284.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2285. $ac_vpsub
  2286. $extrasub
  2287. s%@SHELL@%$SHELL%g
  2288. s%@CFLAGS@%$CFLAGS%g
  2289. s%@CPPFLAGS@%$CPPFLAGS%g
  2290. s%@CXXFLAGS@%$CXXFLAGS%g
  2291. s%@FFLAGS@%$FFLAGS%g
  2292. s%@DEFS@%$DEFS%g
  2293. s%@LDFLAGS@%$LDFLAGS%g
  2294. s%@LIBS@%$LIBS%g
  2295. s%@exec_prefix@%$exec_prefix%g
  2296. s%@prefix@%$prefix%g
  2297. s%@program_transform_name@%$program_transform_name%g
  2298. s%@bindir@%$bindir%g
  2299. s%@sbindir@%$sbindir%g
  2300. s%@libexecdir@%$libexecdir%g
  2301. s%@datadir@%$datadir%g
  2302. s%@sysconfdir@%$sysconfdir%g
  2303. s%@sharedstatedir@%$sharedstatedir%g
  2304. s%@localstatedir@%$localstatedir%g
  2305. s%@libdir@%$libdir%g
  2306. s%@includedir@%$includedir%g
  2307. s%@oldincludedir@%$oldincludedir%g
  2308. s%@infodir@%$infodir%g
  2309. s%@guidedir@%$guidedir%g
  2310. s%@htmldir@%$htmldir%g
  2311. s%@psdir@%$psdir%g
  2312. s%@dvidir@%$dvidir%g
  2313. s%@mandir@%$mandir%g
  2314. s%@PACKAGE@%$PACKAGE%g
  2315. s%@VERSION@%$VERSION%g
  2316. s%@CC@%$CC%g
  2317. s%@AR@%$AR%g
  2318. s%@RANLIB@%$RANLIB%g
  2319. s%@CXX@%$CXX%g
  2320. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2321. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  2322. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2323. s%@AUTOCONF@%$AUTOCONF%g
  2324. s%@host@%$host%g
  2325. s%@host_alias@%$host_alias%g
  2326. s%@host_cpu@%$host_cpu%g
  2327. s%@host_vendor@%$host_vendor%g
  2328. s%@host_os@%$host_os%g
  2329. s%@LIB_M@%$LIB_M%g
  2330. s%@CPP@%$CPP%g
  2331. s%@HAVE_INTTYPES_H@%$HAVE_INTTYPES_H%g
  2332. s%@U_IS_BIG_ENDIAN@%$U_IS_BIG_ENDIAN%g
  2333. s%@HAVE_INT8_T@%$HAVE_INT8_T%g
  2334. s%@HAVE_UINT8_T@%$HAVE_UINT8_T%g
  2335. s%@HAVE_INT16_T@%$HAVE_INT16_T%g
  2336. s%@HAVE_UINT16_T@%$HAVE_UINT16_T%g
  2337. s%@HAVE_INT32_T@%$HAVE_INT32_T%g
  2338. s%@HAVE_UINT32_T@%$HAVE_UINT32_T%g
  2339. s%@HAVE_BOOL_T@%$HAVE_BOOL_T%g
  2340. s%@EXTRAS_TRUE@%$EXTRAS_TRUE%g
  2341. s%@EXTRAS_FALSE@%$EXTRAS_FALSE%g
  2342. s%@TESTS_TRUE@%$TESTS_TRUE%g
  2343. s%@TESTS_FALSE@%$TESTS_FALSE%g
  2344. s%@SAMPLES_TRUE@%$SAMPLES_TRUE%g
  2345. s%@SAMPLES_FALSE@%$SAMPLES_FALSE%g
  2346. s%@platform@%$platform%g
  2347. /@host_frag@/r $host_frag
  2348. s%@host_frag@%%g
  2349. s%@ld_rpath_suf@%$ld_rpath_suf%g
  2350.  
  2351. CEOF
  2352. EOF
  2353.  
  2354. cat >> $CONFIG_STATUS <<\EOF
  2355.  
  2356. # Split the substitutions into bite-sized pieces for seds with
  2357. # small command number limits, like on Digital OSF/1 and HP-UX.
  2358. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2359. ac_file=1 # Number of current file.
  2360. ac_beg=1 # First line for current file.
  2361. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2362. ac_more_lines=:
  2363. ac_sed_cmds=""
  2364. while $ac_more_lines; do
  2365.   if test $ac_beg -gt 1; then
  2366.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2367.   else
  2368.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2369.   fi
  2370.   if test ! -s conftest.s$ac_file; then
  2371.     ac_more_lines=false
  2372.     rm -f conftest.s$ac_file
  2373.   else
  2374.     if test -z "$ac_sed_cmds"; then
  2375.       ac_sed_cmds="sed -f conftest.s$ac_file"
  2376.     else
  2377.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2378.     fi
  2379.     ac_file=`expr $ac_file + 1`
  2380.     ac_beg=$ac_end
  2381.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2382.   fi
  2383. done
  2384. if test -z "$ac_sed_cmds"; then
  2385.   ac_sed_cmds=cat
  2386. fi
  2387. EOF
  2388.  
  2389. cat >> $CONFIG_STATUS <<EOF
  2390.  
  2391. CONFIG_FILES=\${CONFIG_FILES-"Makefile \
  2392.         common/Makefile common/platform.h config/Makefile i18n/Makefile \
  2393.         extra/Makefile extra/ustdio/Makefile \
  2394.         tools/Makefile tools/ctestfw/Makefile tools/makeconv/Makefile \
  2395.         tools/genrb/Makefile tools/gencol/Makefile \
  2396.         tools/rbdump/Makefile \
  2397.         test/Makefile test/intltest/Makefile test/cintltst/Makefile \
  2398.         test/ieeetest/Makefile \
  2399.         samples/Makefile samples/date/Makefile samples/cal/Makefile \
  2400.         samples/XMLConverter/Makefile"}
  2401. EOF
  2402. cat >> $CONFIG_STATUS <<\EOF
  2403. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2404.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2405.   case "$ac_file" in
  2406.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2407.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2408.   *) ac_file_in="${ac_file}.in" ;;
  2409.   esac
  2410.  
  2411.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2412.  
  2413.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2414.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2415.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2416.     # The file is in a subdirectory.
  2417.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2418.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2419.     # A "../" for each directory in $ac_dir_suffix.
  2420.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2421.   else
  2422.     ac_dir_suffix= ac_dots=
  2423.   fi
  2424.  
  2425.   case "$ac_given_srcdir" in
  2426.   .)  srcdir=.
  2427.       if test -z "$ac_dots"; then top_srcdir=.
  2428.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2429.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2430.   *) # Relative path.
  2431.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2432.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2433.   esac
  2434.  
  2435.   case "$ac_given_INSTALL" in
  2436.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2437.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2438.   esac
  2439.  
  2440.   echo creating "$ac_file"
  2441.   rm -f "$ac_file"
  2442.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2443.   case "$ac_file" in
  2444.   *Makefile*) ac_comsub="1i\\
  2445. # $configure_input" ;;
  2446.   *) ac_comsub= ;;
  2447.   esac
  2448.  
  2449.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2450.   sed -e "$ac_comsub
  2451. s%@configure_input@%$configure_input%g
  2452. s%@srcdir@%$srcdir%g
  2453. s%@top_srcdir@%$top_srcdir%g
  2454. s%@INSTALL@%$INSTALL%g
  2455. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2456. fi; done
  2457. rm -f conftest.s*
  2458.  
  2459. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2460. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2461. #
  2462. # ac_d sets the value in "#define NAME VALUE" lines.
  2463. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2464. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2465. ac_dC='\3'
  2466. ac_dD='%g'
  2467. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2468. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2469. ac_uB='\([     ]\)%\1#\2define\3'
  2470. ac_uC=' '
  2471. ac_uD='\4%g'
  2472. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2473. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2474. ac_eB='$%\1#\2define\3'
  2475. ac_eC=' '
  2476. ac_eD='%g'
  2477.  
  2478. if test "${CONFIG_HEADERS+set}" != set; then
  2479. EOF
  2480. cat >> $CONFIG_STATUS <<EOF
  2481.   CONFIG_HEADERS="common/icucfg.h"
  2482. EOF
  2483. cat >> $CONFIG_STATUS <<\EOF
  2484. fi
  2485. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2486.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2487.   case "$ac_file" in
  2488.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2489.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2490.   *) ac_file_in="${ac_file}.in" ;;
  2491.   esac
  2492.  
  2493.   echo creating $ac_file
  2494.  
  2495.   rm -f conftest.frag conftest.in conftest.out
  2496.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2497.   cat $ac_file_inputs > conftest.in
  2498.  
  2499. EOF
  2500.  
  2501.  
  2502. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2503. # the proper values into config.h.in to produce config.h.  And first:
  2504. # Protect against being on the right side of a sed subst in config.status.
  2505. # Protect against being in an unquoted here document in config.status.
  2506. rm -f conftest.vals
  2507. cat > conftest.hdr <<\EOF
  2508. s/[\\&%]/\\&/g
  2509. s%[\\$`]%\\&%g
  2510. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2511. s%ac_d%ac_u%gp
  2512. s%ac_u%ac_e%gp
  2513. EOF
  2514. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2515. rm -f conftest.hdr
  2516.  
  2517. # This sed command replaces #undef with comments.  This is necessary, for
  2518. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2519. # on some systems where configure will not decide to define it.
  2520. cat >> conftest.vals <<\EOF
  2521. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2522. EOF
  2523.  
  2524. # Break up conftest.vals because some shells have a limit on
  2525. # the size of here documents, and old seds have small limits too.
  2526.  
  2527. rm -f conftest.tail
  2528. while :
  2529. do
  2530.   ac_lines=`grep -c . conftest.vals`
  2531.   # grep -c gives empty output for an empty file on some AIX systems.
  2532.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2533.   # Write a limited-size here document to conftest.frag.
  2534.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2535.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2536.   echo 'CEOF
  2537.   sed -f conftest.frag conftest.in > conftest.out
  2538.   rm -f conftest.in
  2539.   mv conftest.out conftest.in
  2540. ' >> $CONFIG_STATUS
  2541.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2542.   rm -f conftest.vals
  2543.   mv conftest.tail conftest.vals
  2544. done
  2545. rm -f conftest.vals
  2546.  
  2547.  
  2548. cat >> $CONFIG_STATUS <<\EOF
  2549.   rm -f conftest.frag conftest.h
  2550.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2551.   cat conftest.in >> conftest.h
  2552.   rm -f conftest.in
  2553.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2554.     echo "$ac_file is unchanged"
  2555.     rm -f conftest.h
  2556.   else
  2557.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2558.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2559.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2560.       # The file is in a subdirectory.
  2561.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2562.     fi
  2563.     rm -f $ac_file
  2564.     mv conftest.h $ac_file
  2565.   fi
  2566. fi; done
  2567.  
  2568. EOF
  2569. cat >> $CONFIG_STATUS <<EOF
  2570.  
  2571. EOF
  2572. cat >> $CONFIG_STATUS <<\EOF
  2573.  
  2574. exit 0
  2575. EOF
  2576. chmod +x $CONFIG_STATUS
  2577. rm -f CONFIG.STATUS.old
  2578. rm -fr confdefs* $ac_clean_files
  2579. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2580.  
  2581.