home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / amiga / ed-0.1-src.lha / ed-0.1 / configure < prev    next >
Encoding:
Text File  |  1994-04-29  |  31.3 KB  |  1,123 lines

  1. #!/bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 1.9 
  4. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  5.  
  6. # This configure script is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU General Public License as published
  8. # by the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This script is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  14. # Public License for more details.
  15.  
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. # Save the original args to write them into config.status later.
  21. configure_args="$*"
  22.  
  23. # Only options that might do something get documented.
  24. ac_usage="Usage: configure [options] [host]
  25. Options: [defaults in brackets after descriptions]
  26. --build=BUILD        configure for building on BUILD [BUILD=HOST]
  27. --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  28. --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  29. --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  30. --help            print this message
  31. --host=HOST        configure for HOST [guessed]
  32. --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  33. --quiet, --silent    do not print \`checking for...' messages
  34. --srcdir=DIR        find the sources in DIR [configure dir or ..]
  35. --target=TARGET        configure for TARGET [TARGET=HOST]
  36. --verbose        print results of checks
  37. --version        print the version of autoconf that created configure
  38. --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  39. --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  40. --x-includes=DIR    X include files are in DIR
  41. --x-libraries=DIR    X library files are in DIR"
  42.  
  43. # Initialize some variables set by options.
  44. # The variables have the same names as the options, with
  45. # dashes changed to underlines.
  46. build=NONE
  47. exec_prefix=
  48. host=NONE
  49. no_create=
  50. nonopt=NONE
  51. norecursion=
  52. prefix=
  53. program_prefix=
  54. program_suffix=
  55. program_transform_name=
  56. silent=
  57. srcdir=
  58. target=NONE
  59. verbose=
  60. x_includes=
  61. x_libraries=
  62.  
  63. ac_prev=
  64. for ac_option
  65. do
  66.  
  67.   # If the previous option needs an argument, assign it.
  68.   if test -n "$ac_prev"; then
  69.     eval "$ac_prev=\$ac_option"
  70.     ac_prev=
  71.     continue
  72.   fi
  73.  
  74.   # Accept (but ignore some of) the important Cygnus configure
  75.   # options, so we can diagnose typos.
  76.  
  77.   case "$ac_option" in
  78.   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  79.   *) ac_optarg= ;;
  80.   esac
  81.  
  82.   case "$ac_option" in
  83.  
  84.   -build | --build | --buil | --bui | --bu | --b)
  85.     ac_prev=build ;;
  86.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  87.     build="$ac_optarg" ;;
  88.  
  89.   -disable-* | --disable-*)
  90.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  91.     # Reject names that aren't valid shell variable names.
  92.     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  93.       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  94.     fi
  95.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  96.     eval "enable_${ac_feature}=no" ;;
  97.  
  98.   -enable-* | --enable-*)
  99.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  100.     # Reject names that aren't valid shell variable names.
  101.     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  102.       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  103.     fi
  104.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  105.     case "$ac_option" in
  106.       *=*) ;;
  107.       *) ac_optarg=yes ;;
  108.     esac
  109.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  110.  
  111.   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  112.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  113.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  114.   | --exec | --exe | --ex)
  115.     ac_prev=exec_prefix ;;
  116.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  117.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  118.   | --exec=* | --exe=* | --ex=*)
  119.     exec_prefix="$ac_optarg" ;;
  120.  
  121.   -gas | --gas | --ga | --g)
  122.     with_gas=yes ;; # Obsolete; use --with-gas.
  123.  
  124.   -help | --help | --hel | --he)
  125.     cat << EOF
  126. $ac_usage
  127. EOF
  128.     exit 0 ;;
  129.  
  130.   -host | --host | --hos | --ho)
  131.     ac_prev=host ;;
  132.   -host=* | --host=* | --hos=* | --ho=*)
  133.     host="$ac_optarg" ;;
  134.  
  135.   -nfp | --nfp | --nf)
  136.     with_fp=no ;; # Obsolete; use --without-fp.
  137.  
  138.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  139.   | --no-cr | --no-c)
  140.     no_create=yes ;;
  141.  
  142.   -norecursion | --norecursion | --norecursio | --norecursi \
  143.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  144.     norecursion=yes ;;
  145.  
  146.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  147.     ac_prev=prefix ;;
  148.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  149.     prefix="$ac_optarg" ;;
  150.  
  151.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  152.   | --program-pre | --program-pr | --program-p)
  153.     ac_prev=program_prefix ;;
  154.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  155.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  156.     program_prefix="$ac_optarg" ;;
  157.  
  158.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  159.   | --program-suf | --program-su | --program-s)
  160.     ac_prev=program_suffix ;;
  161.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  162.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  163.     program_suffix="$ac_optarg" ;;
  164.  
  165.   -program-transform-name | --program-transform-name \
  166.   | --program-transform-nam | --program-transform-na \
  167.   | --program-transform-n | --program-transform- \
  168.   | --program-transform | --program-transfor \
  169.   | --program-transfo | --program-transf \
  170.   | --program-trans | --program-tran \
  171.   | --progr-tra | --program-tr | --program-t)
  172.     ac_prev=program_transform_name ;;
  173.   -program-transform-name=* | --program-transform-name=* \
  174.   | --program-transform-nam=* | --program-transform-na=* \
  175.   | --program-transform-n=* | --program-transform-=* \
  176.   | --program-transform=* | --program-transfor=* \
  177.   | --program-transfo=* | --program-transf=* \
  178.   | --program-trans=* | --program-tran=* \
  179.   | --progr-tra=* | --program-tr=* | --program-t=*)
  180.     program_transform_name="$ac_optarg" ;;
  181.  
  182.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  183.   | -silent | --silent | --silen | --sile | --sil)
  184.     silent=yes ;;
  185.  
  186.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  187.     ac_prev=srcdir ;;
  188.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  189.     srcdir="$ac_optarg" ;;
  190.  
  191.   -target | --target | --targe | --targ | --tar | --ta | --t)
  192.     ac_prev=target ;;
  193.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  194.     target="$ac_optarg" ;;
  195.  
  196.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  197.     verbose=yes ;;
  198.  
  199.   -version | --version | --versio | --versi | --vers)
  200.     /bin/echo "configure generated by autoconf version 1.9"
  201.     exit 0 ;;
  202.  
  203.   -with-* | --with-*)
  204.     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  205.     # Reject names that aren't valid shell variable names.
  206.     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  207.       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  208.     fi
  209.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  210.     case "$ac_option" in
  211.       *=*) ;;
  212.       *) ac_optarg=yes ;;
  213.     esac
  214.     eval "with_${ac_package}='$ac_optarg'" ;;
  215.  
  216.   -without-* | --without-*)
  217.     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  218.     # Reject names that aren't valid shell variable names.
  219.     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  220.       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  221.     fi
  222.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  223.     eval "with_${ac_package}=no" ;;
  224.  
  225.   --x) with_x=yes ;; # Obsolete; use --with-x.
  226.  
  227.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  228.   | --x-incl | --x-inc | --x-in | --x-i)
  229.     ac_prev=x_includes ;;
  230.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  231.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  232.     x_includes="$ac_optarg" ;;
  233.  
  234.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  235.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  236.     ac_prev=x_libraries ;;
  237.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  238.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  239.     x_libraries="$ac_optarg" ;;
  240.  
  241.   -*) /bin/echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  242.     ;;
  243.  
  244.   *) 
  245.     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  246.       /bin/echo "configure: warning: $ac_option: invalid host type" >&2
  247.     fi
  248.     if test "x$nonopt" != xNONE; then
  249.       /bin/echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  250.     fi
  251.     nonopt="$ac_option"
  252.     ;;
  253.  
  254.   esac
  255. done
  256.  
  257. if test -n "$ac_prev"; then
  258.   /bin/echo "configure: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  259. fi
  260.  
  261. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  262. trap 'rm -fr confdefs* $ac_clean_files' 0
  263.  
  264. # Save the original args if we used an alternate arg parser.
  265. ac_configure_temp="${configure_args-$*}"
  266. # Strip out --no-create and --norecursion so they don't pile up.
  267. configure_args=
  268. for ac_arg in $ac_configure_temp; do
  269.   case "$ac_arg" in
  270.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  271.   | --no-cr | --no-c) ;;
  272.   -norecursion | --norecursion | --norecursio | --norecursi \
  273.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  274.   *) configure_args="$configure_args $ac_arg" ;;
  275.   esac
  276. done
  277.  
  278. # NLS nuisances.
  279. # These must not be set unconditionally because not all systems understand
  280. # e.g. LANG=C (notably SCO).
  281. if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  282. if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  283.  
  284. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  285. rm -rf conftest* confdefs.h
  286. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  287. /bin/echo > confdefs.h
  288.  
  289. # A filename unique to this package, relative to the directory that
  290. # configure is in, which we can look for to find out if srcdir is correct.
  291. ac_unique_file=ed.h
  292.  
  293. # Find the source files, if location was not specified.
  294. if test -z "$srcdir"; then
  295.   ac_srcdir_defaulted=yes
  296.   # Try the directory containing this script, then `..'.
  297.   ac_prog=$0
  298.   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  299.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  300.   srcdir=$ac_confdir
  301.   if test ! -r $srcdir/$ac_unique_file; then
  302.     srcdir=..
  303.   fi
  304. fi
  305. if test ! -r $srcdir/$ac_unique_file; then
  306.   if test x$ac_srcdir_defaulted = xyes; then
  307.     /bin/echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  308.   else
  309.     /bin/echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  310.   fi
  311. fi
  312. ac_ext=c
  313. ac_cpp='${CPP} $CFLAGS'
  314. ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  315.  
  316.  
  317.  
  318. test -n "$silent" || /bin/echo "checking for ln -s"
  319. rm -f conftestdata
  320. if ln -s X conftestdata 2>/dev/null
  321. then
  322.   rm -f conftestdata
  323.   LN_S="ln -s"
  324. else
  325.   LN_S=ln
  326. fi
  327.  
  328.  
  329. if test -z "$RANLIB"; then
  330.   # Extract the first word of `ranlib', so it can be a program name with args.
  331.   set ac_dummy ranlib; ac_word=$2
  332.   test -n "$silent" || /bin/echo "checking for $ac_word"
  333.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  334.   for ac_dir in $PATH; do
  335.     test -z "$ac_dir" && ac_dir=.
  336.     if test -f $ac_dir/$ac_word; then
  337.       RANLIB="ranlib"
  338.       break
  339.     fi
  340.   done
  341.   IFS="$ac_save_ifs"
  342. fi
  343. test -z "$RANLIB" && RANLIB=":"
  344. test -n "$RANLIB" && test -n "$verbose" && /bin/echo "    setting RANLIB to $RANLIB"
  345.  
  346. # Make sure to not get the incompatible SysV /etc/install and
  347. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  348. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  349. # or the AFS install, which mishandles nonexistent args, or
  350. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  351. # `staff', or /sbin/install on IRIX which has incompatible command-line
  352. # syntax.  Sigh.
  353. #
  354. #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  355. #     anyway.
  356. # This turns out not to be true, so the mere pathname isn't an indication
  357. # of whether the program works.  What we really need is a set of tests for
  358. # the install program to see if it actually works in all the required ways.
  359. #
  360. # Avoid using ./install, which might have been erroneously created
  361. # by make from ./install.sh.
  362. if test "z${INSTALL}" = "z" ; then
  363.   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  364.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  365.   for ac_dir in $PATH; do
  366.     case "$ac_dir" in
  367.     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  368.     *)
  369.       # OSF1 and SCO ODT 3.0 have their own names for install.
  370.       for ac_prog in installbsd scoinst install; do
  371.         if test -f $ac_dir/$ac_prog; then
  372.       if test $ac_prog = install &&
  373.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  374.         # AIX install.  It has an incompatible calling convention.
  375.         # OSF/1 installbsd also uses dspmsg, but is usable.
  376.         :
  377.       else
  378.         INSTALL="$ac_dir/$ac_prog -c"
  379.         INSTALL_PROGRAM='${INSTALL}'
  380.         INSTALL_DATA='${INSTALL} -m 644'
  381.         break 2
  382.       fi
  383.     fi
  384.       done
  385.       ;;
  386.     esac
  387.   done
  388.   IFS="$ac_save_ifs"
  389. fi
  390. if test -z "$INSTALL"; then
  391.   if test -f ${srcdir}/install.sh; then
  392.     # As a last resort, use the slow shell script.
  393.     INSTALL='@top_srcdir@/install.sh -c'
  394.   else
  395.     /bin/echo "configure: warning: ${srcdir}/install.sh not found; using cp" >&2
  396.     INSTALL=cp
  397.   fi
  398. fi
  399. test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  400. # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  401. # It thinks the first close brace ends the variable substitution.
  402. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  403. test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  404. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL}'
  405. test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  406.  
  407. test -n "$silent" || /bin/echo "checking for POSIXized ISC"
  408. if test -d /gnu/etc/conf/kconfig.d &&
  409.   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  410. then
  411.   ISC=1 # If later tests want to check for ISC.
  412.   
  413. {
  414. test -n "$verbose" && \
  415. /bin/echo "    defining _POSIX_SOURCE"
  416. /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  417. DEFS="$DEFS -D_POSIX_SOURCE=1"
  418. }
  419.  
  420.   if test -n "$GCC"; then
  421.     CC="$CC -posix"
  422.   else
  423.     CC="$CC -Xp"
  424.   fi
  425. fi
  426.  
  427. if test -z "$CC"; then
  428.   # Extract the first word of `gcc', so it can be a program name with args.
  429.   set ac_dummy gcc; ac_word=$2
  430.   test -n "$silent" || /bin/echo "checking for $ac_word"
  431.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  432.   for ac_dir in $PATH; do
  433.     test -z "$ac_dir" && ac_dir=.
  434.     if test -f $ac_dir/$ac_word; then
  435.       CC="gcc"
  436.       break
  437.     fi
  438.   done
  439.   IFS="$ac_save_ifs"
  440. fi
  441. test -z "$CC" && CC="cc"
  442. test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  443.  
  444. # Find out if we are using GNU C, under whatever name.
  445. cat > conftest.c <<EOF
  446. #ifdef __GNUC__
  447.   yes
  448. #endif
  449. EOF
  450. ${CC-cc} -E conftest.c > conftest.out 2>&1
  451. if egrep yes conftest.out >/dev/null 2>&1; then
  452.   GCC=1 # For later tests.
  453. fi
  454. rm -f conftest*
  455.  
  456. ac_prog='/* Ultrix mips cc rejects this.  */
  457. typedef int charset[2]; const charset x;
  458. /* SunOS 4.1.1 cc rejects this.  */
  459. char const *const *ccp;
  460. char **p;
  461. /* AIX XL C 1.02.0.0 rejects this.
  462.    It does not let you subtract one const X* pointer from another in an arm
  463.    of an if-expression whose if-part is not a constant expression */
  464. const char *g = "string";
  465. ccp = &g + (g ? g-g : 0);
  466. /* HPUX 7.0 cc rejects these. */
  467. ++ccp;
  468. p = (char**) ccp;
  469. ccp = (char const *const *) p;
  470. { /* SCO 3.2v4 cc rejects this.  */
  471.   char *t;
  472.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  473.  
  474.   *t++ = 0;
  475. }
  476. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  477.   int x[] = {25,17};
  478.   const int *foo = &x[0];
  479.   ++foo;
  480. }
  481. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  482.   typedef const int *iptr;
  483.   iptr p = 0;
  484.   ++p;
  485. }
  486. { /* AIX XL C 1.02.0.0 rejects this saying
  487.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  488.   struct s { int j; const int *ap[3]; };
  489.   struct s *b; b->j = 5;
  490. }
  491. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  492.   const int foo = 10;
  493. }'
  494. test -n "$silent" || /bin/echo "checking for lack of working const"
  495. cat > conftest.${ac_ext} <<EOF
  496. #include "confdefs.h"
  497.  
  498. int main() { return 0; }
  499. int t() { $ac_prog; return 0; }
  500. EOF
  501. if eval $ac_compile; then
  502.   :
  503. else
  504.   rm -rf conftest*
  505.   
  506. {
  507. test -n "$verbose" && \
  508. /bin/echo "    defining" const to be empty
  509. /bin/echo "#define" const "" >> confdefs.h
  510. DEFS="$DEFS -Dconst="
  511. }
  512.  
  513. fi
  514. rm -f conftest*
  515.  
  516. test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  517. if test -z "$CPP"; then
  518.   # This must be in double quotes, not single quotes, because CPP may get
  519.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  520.   # make.  It must be expanded now.
  521.   CPP="${CC-cc} -E"
  522.   cat > conftest.${ac_ext} <<EOF
  523. #include "confdefs.h"
  524. #include <stdio.h>
  525. Syntax Error
  526. EOF
  527. # Some shells (Coherent) do redirections in the wrong order, so need
  528. # the parens.
  529. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  530. if test -z "$ac_err"; then
  531.   :
  532. else
  533.   rm -rf conftest*
  534.   CPP="${CC-cc} -E -traditional-cpp"
  535.   cat > conftest.${ac_ext} <<EOF
  536. #include "confdefs.h"
  537. #include <stdio.h>
  538. Syntax Error
  539. EOF
  540. # Some shells (Coherent) do redirections in the wrong order, so need
  541. # the parens.
  542. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  543. if test -z "$ac_err"; then
  544.   :
  545. else
  546.   rm -rf conftest*
  547.   CPP=/lib/cpp
  548. fi
  549. rm -f conftest*
  550. fi
  551. rm -f conftest*
  552. fi
  553. test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  554.  
  555. test -n "$silent" || /bin/echo "checking for ANSI C header files"
  556. cat > conftest.${ac_ext} <<EOF
  557. #include "confdefs.h"
  558. #include <stdlib.h>
  559. #include <stdarg.h>
  560. #include <string.h>
  561. #include <float.h>
  562. EOF
  563. # Some shells (Coherent) do redirections in the wrong order, so need
  564. # the parens.
  565. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  566. if test -z "$ac_err"; then
  567.   rm -rf conftest*
  568.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  569. /bin/echo '#include "confdefs.h"
  570. #include <string.h>' > conftest.${ac_ext}
  571. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  572. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  573.   rm -rf conftest*
  574.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  575. cat > conftest.${ac_ext} <<EOF
  576. #include "confdefs.h"
  577. #include <ctype.h>
  578. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  579. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  580. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  581. int main () { int i; for (i = 0; i < 256; i++)
  582. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  583. exit (0); }
  584.  
  585. EOF
  586. eval $ac_compile
  587. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  588.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  589. /bin/echo '#include "confdefs.h"
  590. #include <stdlib.h>' > conftest.${ac_ext}
  591. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  592. if egrep "free" conftest.out >/dev/null 2>&1; then
  593.   rm -rf conftest*
  594.   
  595. {
  596. test -n "$verbose" && \
  597. /bin/echo "    defining STDC_HEADERS"
  598. /bin/echo "#define" STDC_HEADERS "1" >> confdefs.h
  599. DEFS="$DEFS -DSTDC_HEADERS=1"
  600. }
  601.  
  602.  
  603. fi
  604. rm -f conftest*
  605.  
  606.  
  607. fi
  608. rm -fr conftest*
  609.  
  610. fi
  611. rm -f conftest*
  612.  
  613.  
  614. fi
  615. rm -f conftest*
  616.  
  617. for ac_hdr in limits.h memory.h string.h unistd.h
  618. do
  619. ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  620. test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  621. cat > conftest.${ac_ext} <<EOF
  622. #include "confdefs.h"
  623. #include <${ac_hdr}>
  624. EOF
  625. # Some shells (Coherent) do redirections in the wrong order, so need
  626. # the parens.
  627. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  628. if test -z "$ac_err"; then
  629.   rm -rf conftest*
  630.   
  631. {
  632. test -n "$verbose" && \
  633. /bin/echo "    defining ${ac_tr_hdr}"
  634. /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  635. DEFS="$DEFS -D${ac_tr_hdr}=1"
  636. }
  637.  
  638.  
  639. fi
  640. rm -f conftest*
  641. done
  642.  
  643. for ac_func in setbuffer sigsetjmp sigaction strerror
  644. do
  645. ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  646. test -n "$silent" || /bin/echo "checking for ${ac_func}"
  647. cat > conftest.${ac_ext} <<EOF
  648. #include "confdefs.h"
  649. #include <ctype.h>
  650. int main() { return 0; }
  651. int t() { 
  652. /* The GNU C library defines this for functions which it implements
  653.     to always fail with ENOSYS.  Some functions are actually named
  654.     something starting with __ and the normal name is an alias.  */
  655. #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  656. choke me
  657. #else
  658. /* Override any gcc2 internal prototype to avoid an error.  */
  659. extern char ${ac_func}(); ${ac_func}();
  660. #endif
  661. ; return 0; }
  662. EOF
  663. if eval $ac_compile; then
  664.   rm -rf conftest*
  665.   {
  666. test -n "$verbose" && \
  667. /bin/echo "    defining ${ac_tr_func}"
  668. /bin/echo "#define" ${ac_tr_func} "1" >> confdefs.h
  669. DEFS="$DEFS -D${ac_tr_func}=1"
  670. }
  671.  
  672.  
  673. fi
  674. rm -f conftest*
  675. done
  676.  
  677. test -n "$silent" || /bin/echo "checking for vprintf"
  678. cat > conftest.${ac_ext} <<EOF
  679. #include "confdefs.h"
  680.  
  681. int main() { return 0; }
  682. int t() { vprintf();; return 0; }
  683. EOF
  684. if eval $ac_compile; then
  685.   rm -rf conftest*
  686.   
  687. {
  688. test -n "$verbose" && \
  689. /bin/echo "    defining HAVE_VPRINTF"
  690. /bin/echo "#define" HAVE_VPRINTF "1" >> confdefs.h
  691. DEFS="$DEFS -DHAVE_VPRINTF=1"
  692. }
  693.  
  694.  
  695. else
  696.   rm -rf conftest*
  697.   ac_vprintf_missing=1
  698. fi
  699. rm -f conftest*
  700.  
  701. if test -n "$ac_vprintf_missing"; then
  702. test -n "$silent" || /bin/echo "checking for _doprnt"
  703. cat > conftest.${ac_ext} <<EOF
  704. #include "confdefs.h"
  705.  
  706. int main() { return 0; }
  707. int t() { _doprnt();; return 0; }
  708. EOF
  709. if eval $ac_compile; then
  710.   rm -rf conftest*
  711.   
  712. {
  713. test -n "$verbose" && \
  714. /bin/echo "    defining HAVE_DOPRNT"
  715. /bin/echo "#define" HAVE_DOPRNT "1" >> confdefs.h
  716. DEFS="$DEFS -DHAVE_DOPRNT=1"
  717. }
  718.  
  719.  
  720. fi
  721. rm -f conftest*
  722.  
  723. fi
  724.  
  725. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  726. # for constant arguments.  Useless!
  727. test -n "$silent" || /bin/echo "checking for working alloca.h"
  728. cat > conftest.${ac_ext} <<EOF
  729. #include "confdefs.h"
  730. #include <alloca.h>
  731. int main() { return 0; }
  732. int t() { char *p = alloca(2 * sizeof(int));; return 0; }
  733. EOF
  734. if eval $ac_compile; then
  735.   rm -rf conftest*
  736.   
  737. {
  738. test -n "$verbose" && \
  739. /bin/echo "    defining HAVE_ALLOCA_H"
  740. /bin/echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
  741. DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  742. }
  743.  
  744.  
  745. fi
  746. rm -f conftest*
  747.  
  748. ac_decl="#ifdef __GNUC__
  749. #define alloca __builtin_alloca
  750. #else
  751. #if HAVE_ALLOCA_H
  752. #include <alloca.h>
  753. #else
  754. #ifdef _AIX
  755.  #pragma alloca
  756. #else
  757. char *alloca ();
  758. #endif
  759. #endif
  760. #endif
  761. "
  762. test -n "$silent" || /bin/echo "checking for alloca"
  763. cat > conftest.${ac_ext} <<EOF
  764. #include "confdefs.h"
  765. $ac_decl
  766. int main() { return 0; }
  767. int t() { char *p = (char *) alloca(1);; return 0; }
  768. EOF
  769. if eval $ac_compile; then
  770.   rm -rf conftest*
  771.   
  772. {
  773. test -n "$verbose" && \
  774. /bin/echo "    defining HAVE_ALLOCA"
  775. /bin/echo "#define" HAVE_ALLOCA "1" >> confdefs.h
  776. DEFS="$DEFS -DHAVE_ALLOCA=1"
  777. }
  778.  
  779.  
  780. else
  781.   rm -rf conftest*
  782.   ac_alloca_missing=1
  783. cat > conftest.${ac_ext} <<EOF
  784. #include "confdefs.h"
  785.  
  786. #if defined(CRAY) && ! defined(CRAY2)
  787. winnitude
  788. #else
  789. lossage
  790. #endif
  791.  
  792. EOF
  793. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  794. if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  795.   rm -rf conftest*
  796.   test -n "$silent" || /bin/echo "checking for _getb67"
  797. cat > conftest.${ac_ext} <<EOF
  798. #include "confdefs.h"
  799. #include <ctype.h>
  800. int main() { return 0; }
  801. int t() { 
  802. /* The GNU C library defines this for functions which it implements
  803.     to always fail with ENOSYS.  Some functions are actually named
  804.     something starting with __ and the normal name is an alias.  */
  805. #if defined (__stub__getb67) || defined (__stub____getb67)
  806. choke me
  807. #else
  808. /* Override any gcc2 internal prototype to avoid an error.  */
  809. extern char _getb67(); _getb67();
  810. #endif
  811. ; return 0; }
  812. EOF
  813. if eval $ac_compile; then
  814.   rm -rf conftest*
  815.   {
  816. test -n "$verbose" && \
  817. /bin/echo "    defining" CRAY_STACKSEG_END to be "_getb67"
  818. /bin/echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
  819. DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  820. }
  821.  
  822.  
  823. else
  824.   rm -rf conftest*
  825.   test -n "$silent" || /bin/echo "checking for GETB67"
  826. cat > conftest.${ac_ext} <<EOF
  827. #include "confdefs.h"
  828. #include <ctype.h>
  829. int main() { return 0; }
  830. int t() { 
  831. /* The GNU C library defines this for functions which it implements
  832.     to always fail with ENOSYS.  Some functions are actually named
  833.     something starting with __ and the normal name is an alias.  */
  834. #if defined (__stub_GETB67) || defined (__stub___GETB67)
  835. choke me
  836. #else
  837. /* Override any gcc2 internal prototype to avoid an error.  */
  838. extern char GETB67(); GETB67();
  839. #endif
  840. ; return 0; }
  841. EOF
  842. if eval $ac_compile; then
  843.   rm -rf conftest*
  844.   {
  845. test -n "$verbose" && \
  846. /bin/echo "    defining" CRAY_STACKSEG_END to be "GETB67"
  847. /bin/echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
  848. DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  849. }
  850.  
  851.  
  852. else
  853.   rm -rf conftest*
  854.   test -n "$silent" || /bin/echo "checking for getb67"
  855. cat > conftest.${ac_ext} <<EOF
  856. #include "confdefs.h"
  857. #include <ctype.h>
  858. int main() { return 0; }
  859. int t() { 
  860. /* The GNU C library defines this for functions which it implements
  861.     to always fail with ENOSYS.  Some functions are actually named
  862.     something starting with __ and the normal name is an alias.  */
  863. #if defined (__stub_getb67) || defined (__stub___getb67)
  864. choke me
  865. #else
  866. /* Override any gcc2 internal prototype to avoid an error.  */
  867. extern char getb67(); getb67();
  868. #endif
  869. ; return 0; }
  870. EOF
  871. if eval $ac_compile; then
  872.   rm -rf conftest*
  873.   {
  874. test -n "$verbose" && \
  875. /bin/echo "    defining" CRAY_STACKSEG_END to be "getb67"
  876. /bin/echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
  877. DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  878. }
  879.  
  880.  
  881. fi
  882. rm -f conftest*
  883.  
  884. fi
  885. rm -f conftest*
  886.  
  887. fi
  888. rm -f conftest*
  889.  
  890.  
  891. fi
  892. rm -f conftest*
  893.  
  894.  
  895. fi
  896. rm -f conftest*
  897.  
  898. if test -n "$ac_alloca_missing"; then
  899.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  900.   # that cause trouble.  Some versions do not even contain alloca or
  901.   # contain a buggy version.  If you still want to use their alloca,
  902.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  903.   ALLOCA=alloca.o
  904.   
  905. {
  906. test -n "$verbose" && \
  907. /bin/echo "    defining C_ALLOCA"
  908. /bin/echo "#define" C_ALLOCA "1" >> confdefs.h
  909. DEFS="$DEFS -DC_ALLOCA=1"
  910. }
  911.  
  912.  
  913.   test -n "$silent" || /bin/echo "checking stack direction for C alloca"
  914.   test -n "$silent" || /bin/echo "checking whether cross-compiling"
  915. # If we cannot run a trivial program, we must be cross compiling.
  916. cat > conftest.${ac_ext} <<EOF
  917. #include "confdefs.h"
  918. main(){exit(0);}
  919. EOF
  920. eval $ac_compile
  921. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  922.   :
  923. else
  924.   cross_compiling=1
  925. fi
  926. rm -fr conftest*
  927.  
  928. if test -n "$cross_compiling"
  929. then
  930.   
  931. {
  932. test -n "$verbose" && \
  933. /bin/echo "    defining" STACK_DIRECTION to be "0"
  934. /bin/echo "#define" STACK_DIRECTION "0" >> confdefs.h
  935. DEFS="$DEFS -DSTACK_DIRECTION=0"
  936. }
  937.  
  938. else
  939. cat > conftest.${ac_ext} <<EOF
  940. #include "confdefs.h"
  941. find_stack_direction ()
  942. {
  943.   static char *addr = 0;
  944.   auto char dummy;
  945.   if (addr == 0)
  946.     {
  947.       addr = &dummy;
  948.       return find_stack_direction ();
  949.     }
  950.   else
  951.     return (&dummy > addr) ? 1 : -1;
  952. }
  953. main ()
  954. {
  955.   exit (find_stack_direction() < 0);
  956. }
  957. EOF
  958. eval $ac_compile
  959. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  960.   
  961. {
  962. test -n "$verbose" && \
  963. /bin/echo "    defining" STACK_DIRECTION to be "1"
  964. /bin/echo "#define" STACK_DIRECTION "1" >> confdefs.h
  965. DEFS="$DEFS -DSTACK_DIRECTION=1"
  966. }
  967.  
  968.  
  969. else
  970.   
  971. {
  972. test -n "$verbose" && \
  973. /bin/echo "    defining" STACK_DIRECTION to be "-1"
  974. /bin/echo "#define" STACK_DIRECTION "-1" >> confdefs.h
  975. DEFS="$DEFS -DSTACK_DIRECTION=-1"
  976. }
  977.  
  978. fi
  979. fi
  980. rm -fr conftest*
  981. fi
  982.  
  983. if test "$ALLOCA" = alloca.o; then
  984.   LIBOBJS="$LIBOBJS xmalloc.o error.o"
  985. fi
  986.  
  987. # Set default prefixes.
  988. if test -n "$prefix"; then
  989.   test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  990.   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  991. fi
  992. if test -n "$exec_prefix"; then
  993.   ac_prsub="$ac_prsub
  994. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  995. fi
  996. # Any assignment to VPATH causes Sun make to only execute
  997. # the first set of double-colon rules, so remove it if not needed.
  998. # If there is a colon in the path, we need to keep it.
  999. if test "x$srcdir" = x.; then
  1000.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1001. fi
  1002.  
  1003. # Quote sed substitution magic chars in DEFS.
  1004. cat >conftest.def <<EOF
  1005. $DEFS
  1006. EOF
  1007. ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  1008. DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  1009. rm -f conftest.def
  1010. # Substitute for predefined variables.
  1011.  
  1012. trap 'rm -f config.status; exit 1' 1 2 15
  1013. /bin/echo creating config.status
  1014. rm -f config.status
  1015. cat > config.status <<EOF
  1016. #!/bin/sh
  1017. # Generated automatically by configure.
  1018. # Run this file to recreate the current configuration.
  1019. # This directory was configured as follows,
  1020. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1021. #
  1022. # $0 $configure_args
  1023.  
  1024. ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  1025. for ac_option
  1026. do
  1027.   case "\$ac_option" in
  1028.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1029.     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  1030.     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  1031.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1032.     /bin/echo "config.status generated by autoconf version 1.9"
  1033.     exit 0 ;;
  1034.   -help | --help | --hel | --he | --h)
  1035.     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  1036.   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  1037.   esac
  1038. done
  1039.  
  1040. trap 'rm -f Makefile; exit 1' 1 2 15
  1041. LN_S='$LN_S'
  1042. RANLIB='$RANLIB'
  1043. INSTALL='$INSTALL'
  1044. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  1045. INSTALL_DATA='$INSTALL_DATA'
  1046. CC='$CC'
  1047. CPP='$CPP'
  1048. ALLOCA='$ALLOCA'
  1049. LIBOBJS='$LIBOBJS'
  1050. LIBS='$LIBS'
  1051. srcdir='$srcdir'
  1052. top_srcdir='$top_srcdir'
  1053. prefix='$prefix'
  1054. exec_prefix='$exec_prefix'
  1055. DEFS='$DEFS'
  1056. ac_prsub='$ac_prsub'
  1057. ac_vpsub='$ac_vpsub'
  1058. extrasub='$extrasub'
  1059. EOF
  1060. cat >> config.status <<\EOF
  1061.  
  1062. ac_given_srcdir=$srcdir
  1063.  
  1064. CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  1065. for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  1066.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1067.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1068.   if test "$ac_dir" != "$ac_file"; then
  1069.     # The file is in a subdirectory.
  1070.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1071.     ac_dir_suffix="/$ac_dir"
  1072.   else
  1073.     ac_dir_suffix=
  1074.   fi
  1075.  
  1076.   # A "../" for each directory in $ac_dir_suffix.
  1077.   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1078.   case "$ac_given_srcdir" in
  1079.   .)  srcdir=.; top_srcdir="$ac_dots." ;;
  1080.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1081.   *) # Relative path.
  1082.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1083.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1084.   esac
  1085.  
  1086.   /bin/echo creating "$ac_file"
  1087.   rm -f "$ac_file"
  1088.   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  1089.   case "$ac_file" in
  1090.     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  1091.     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  1092.   esac
  1093.   sed -e "
  1094. $ac_prsub
  1095. $ac_vpsub
  1096. $extrasub
  1097. s%@LN_S@%$LN_S%g
  1098. s%@RANLIB@%$RANLIB%g
  1099. s%@INSTALL@%$INSTALL%g
  1100. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1101. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1102. s%@CC@%$CC%g
  1103. s%@CPP@%$CPP%g
  1104. s%@ALLOCA@%$ALLOCA%g
  1105. s%@LIBOBJS@%$LIBOBJS%g
  1106. s%@LIBS@%$LIBS%g
  1107. s%@srcdir@%$srcdir%g
  1108. s%@top_srcdir@%$top_srcdir%g
  1109. s%@prefix@%$prefix%g
  1110. s%@exec_prefix@%$exec_prefix%g
  1111. s%@DEFS@%$DEFS%
  1112. " $ac_given_srcdir/${ac_file}.in >> $ac_file
  1113. fi; done
  1114.  
  1115.  
  1116. exit 0
  1117. EOF
  1118. chmod +x config.status
  1119. test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status
  1120.  
  1121.  
  1122.  
  1123.