home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Utilities / BasiliskII / src / Unix / configure < prev    next >
Encoding:
Text File  |  2001-05-31  |  164.4 KB  |  5,604 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-xf86-dga       use the XFree86 DGA extension [default=yes]"
  16. ac_help="$ac_help
  17.   --enable-xf86-vidmode   use the XFree86 VidMode extension [default=yes]"
  18. ac_help="$ac_help
  19.   --enable-fbdev-dga      use direct frame buffer access via /dev/fb [default=yes]"
  20. ac_help="$ac_help
  21.   --enable-vosf           enable video on SEGV signals [default=yes]"
  22. ac_help="$ac_help
  23.   --enable-fpe=which      specify which fpu emulator to use [default=opt]"
  24. ac_help="$ac_help
  25.   --enable-addressing=AM  specify the addressing mode to use [default=fastest]"
  26. ac_help="$ac_help
  27.   --with-esd              support ESD for sound under Linux/FreeBSD [default=yes]"
  28. ac_help="$ac_help
  29.   --with-gtk              use GTK user interface [default=yes]"
  30. ac_help="$ac_help
  31.   --with-mon              use mon as debugger [default=yes]"
  32. ac_help="$ac_help
  33.   --with-x                use the X Window System"
  34. ac_help="$ac_help
  35.   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
  36. ac_help="$ac_help
  37.   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
  38. ac_help="$ac_help
  39.   --disable-gtktest       Do not try to compile and run a test GTK program"
  40. ac_help="$ac_help
  41.   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)"
  42. ac_help="$ac_help
  43.   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)"
  44. ac_help="$ac_help
  45.   --disable-esdtest       Do not try to compile and run a test ESD program"
  46.  
  47. # Initialize some variables set by options.
  48. # The variables have the same names as the options, with
  49. # dashes changed to underlines.
  50. build=NONE
  51. cache_file=./config.cache
  52. exec_prefix=NONE
  53. host=NONE
  54. no_create=
  55. nonopt=NONE
  56. no_recursion=
  57. prefix=NONE
  58. program_prefix=NONE
  59. program_suffix=NONE
  60. program_transform_name=s,x,x,
  61. silent=
  62. site=
  63. srcdir=
  64. target=NONE
  65. verbose=
  66. x_includes=NONE
  67. x_libraries=NONE
  68. bindir='${exec_prefix}/bin'
  69. sbindir='${exec_prefix}/sbin'
  70. libexecdir='${exec_prefix}/libexec'
  71. datadir='${prefix}/share'
  72. sysconfdir='${prefix}/etc'
  73. sharedstatedir='${prefix}/com'
  74. localstatedir='${prefix}/var'
  75. libdir='${exec_prefix}/lib'
  76. includedir='${prefix}/include'
  77. oldincludedir='/usr/include'
  78. infodir='${prefix}/info'
  79. mandir='${prefix}/man'
  80.  
  81. # Initialize some other variables.
  82. subdirs=
  83. MFLAGS= MAKEFLAGS=
  84. SHELL=${CONFIG_SHELL-/bin/sh}
  85. # Maximum number of lines to put in a shell here document.
  86. ac_max_here_lines=12
  87.  
  88. ac_prev=
  89. for ac_option
  90. do
  91.  
  92.   # If the previous option needs an argument, assign it.
  93.   if test -n "$ac_prev"; then
  94.     eval "$ac_prev=\$ac_option"
  95.     ac_prev=
  96.     continue
  97.   fi
  98.  
  99.   case "$ac_option" in
  100.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  101.   *) ac_optarg= ;;
  102.   esac
  103.  
  104.   # Accept the important Cygnus configure options, so we can diagnose typos.
  105.  
  106.   case "$ac_option" in
  107.  
  108.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  109.     ac_prev=bindir ;;
  110.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  111.     bindir="$ac_optarg" ;;
  112.  
  113.   -build | --build | --buil | --bui | --bu)
  114.     ac_prev=build ;;
  115.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  116.     build="$ac_optarg" ;;
  117.  
  118.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  119.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  120.     ac_prev=cache_file ;;
  121.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  122.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  123.     cache_file="$ac_optarg" ;;
  124.  
  125.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  126.     ac_prev=datadir ;;
  127.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  128.   | --da=*)
  129.     datadir="$ac_optarg" ;;
  130.  
  131.   -disable-* | --disable-*)
  132.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  133.     # Reject names that are not valid shell variable names.
  134.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  135.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  136.     fi
  137.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  138.     eval "enable_${ac_feature}=no" ;;
  139.  
  140.   -enable-* | --enable-*)
  141.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  142.     # Reject names that are not valid shell variable names.
  143.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  144.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  145.     fi
  146.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  147.     case "$ac_option" in
  148.       *=*) ;;
  149.       *) ac_optarg=yes ;;
  150.     esac
  151.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  152.  
  153.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  154.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  155.   | --exec | --exe | --ex)
  156.     ac_prev=exec_prefix ;;
  157.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  158.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  159.   | --exec=* | --exe=* | --ex=*)
  160.     exec_prefix="$ac_optarg" ;;
  161.  
  162.   -gas | --gas | --ga | --g)
  163.     # Obsolete; use --with-gas.
  164.     with_gas=yes ;;
  165.  
  166.   -help | --help | --hel | --he)
  167.     # Omit some internal or obsolete options to make the list less imposing.
  168.     # This message is too long to be a string in the A/UX 3.1 sh.
  169.     cat << EOF
  170. Usage: configure [options] [host]
  171. Options: [defaults in brackets after descriptions]
  172. Configuration:
  173.   --cache-file=FILE       cache test results in FILE
  174.   --help                  print this message
  175.   --no-create             do not create output files
  176.   --quiet, --silent       do not print \`checking...' messages
  177.   --version               print the version of autoconf that created configure
  178. Directory and file names:
  179.   --prefix=PREFIX         install architecture-independent files in PREFIX
  180.                           [$ac_default_prefix]
  181.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  182.                           [same as prefix]
  183.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  184.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  185.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  186.   --datadir=DIR           read-only architecture-independent data in DIR
  187.                           [PREFIX/share]
  188.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  189.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  190.                           [PREFIX/com]
  191.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  192.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  193.   --includedir=DIR        C header files in DIR [PREFIX/include]
  194.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  195.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  196.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  197.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  198.   --program-prefix=PREFIX prepend PREFIX to installed program names
  199.   --program-suffix=SUFFIX append SUFFIX to installed program names
  200.   --program-transform-name=PROGRAM
  201.                           run sed PROGRAM on installed program names
  202. EOF
  203.     cat << EOF
  204. Host type:
  205.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  206.   --host=HOST             configure for HOST [guessed]
  207.   --target=TARGET         configure for TARGET [TARGET=HOST]
  208. Features and packages:
  209.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  210.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  211.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  212.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  213.   --x-includes=DIR        X include files are in DIR
  214.   --x-libraries=DIR       X library files are in DIR
  215. EOF
  216.     if test -n "$ac_help"; then
  217.       echo "--enable and --with options recognized:$ac_help"
  218.     fi
  219.     exit 0 ;;
  220.  
  221.   -host | --host | --hos | --ho)
  222.     ac_prev=host ;;
  223.   -host=* | --host=* | --hos=* | --ho=*)
  224.     host="$ac_optarg" ;;
  225.  
  226.   -includedir | --includedir | --includedi | --included | --include \
  227.   | --includ | --inclu | --incl | --inc)
  228.     ac_prev=includedir ;;
  229.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  230.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  231.     includedir="$ac_optarg" ;;
  232.  
  233.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  234.     ac_prev=infodir ;;
  235.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  236.     infodir="$ac_optarg" ;;
  237.  
  238.   -libdir | --libdir | --libdi | --libd)
  239.     ac_prev=libdir ;;
  240.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  241.     libdir="$ac_optarg" ;;
  242.  
  243.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  244.   | --libexe | --libex | --libe)
  245.     ac_prev=libexecdir ;;
  246.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  247.   | --libexe=* | --libex=* | --libe=*)
  248.     libexecdir="$ac_optarg" ;;
  249.  
  250.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  251.   | --localstate | --localstat | --localsta | --localst \
  252.   | --locals | --local | --loca | --loc | --lo)
  253.     ac_prev=localstatedir ;;
  254.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  255.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  256.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  257.     localstatedir="$ac_optarg" ;;
  258.  
  259.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  260.     ac_prev=mandir ;;
  261.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  262.     mandir="$ac_optarg" ;;
  263.  
  264.   -nfp | --nfp | --nf)
  265.     # Obsolete; use --without-fp.
  266.     with_fp=no ;;
  267.  
  268.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  269.   | --no-cr | --no-c)
  270.     no_create=yes ;;
  271.  
  272.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  273.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  274.     no_recursion=yes ;;
  275.  
  276.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  277.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  278.   | --oldin | --oldi | --old | --ol | --o)
  279.     ac_prev=oldincludedir ;;
  280.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  281.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  282.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  283.     oldincludedir="$ac_optarg" ;;
  284.  
  285.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  286.     ac_prev=prefix ;;
  287.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  288.     prefix="$ac_optarg" ;;
  289.  
  290.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  291.   | --program-pre | --program-pr | --program-p)
  292.     ac_prev=program_prefix ;;
  293.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  294.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  295.     program_prefix="$ac_optarg" ;;
  296.  
  297.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  298.   | --program-suf | --program-su | --program-s)
  299.     ac_prev=program_suffix ;;
  300.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  301.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  302.     program_suffix="$ac_optarg" ;;
  303.  
  304.   -program-transform-name | --program-transform-name \
  305.   | --program-transform-nam | --program-transform-na \
  306.   | --program-transform-n | --program-transform- \
  307.   | --program-transform | --program-transfor \
  308.   | --program-transfo | --program-transf \
  309.   | --program-trans | --program-tran \
  310.   | --progr-tra | --program-tr | --program-t)
  311.     ac_prev=program_transform_name ;;
  312.   -program-transform-name=* | --program-transform-name=* \
  313.   | --program-transform-nam=* | --program-transform-na=* \
  314.   | --program-transform-n=* | --program-transform-=* \
  315.   | --program-transform=* | --program-transfor=* \
  316.   | --program-transfo=* | --program-transf=* \
  317.   | --program-trans=* | --program-tran=* \
  318.   | --progr-tra=* | --program-tr=* | --program-t=*)
  319.     program_transform_name="$ac_optarg" ;;
  320.  
  321.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  322.   | -silent | --silent | --silen | --sile | --sil)
  323.     silent=yes ;;
  324.  
  325.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  326.     ac_prev=sbindir ;;
  327.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  328.   | --sbi=* | --sb=*)
  329.     sbindir="$ac_optarg" ;;
  330.  
  331.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  332.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  333.   | --sharedst | --shareds | --shared | --share | --shar \
  334.   | --sha | --sh)
  335.     ac_prev=sharedstatedir ;;
  336.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  337.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  338.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  339.   | --sha=* | --sh=*)
  340.     sharedstatedir="$ac_optarg" ;;
  341.  
  342.   -site | --site | --sit)
  343.     ac_prev=site ;;
  344.   -site=* | --site=* | --sit=*)
  345.     site="$ac_optarg" ;;
  346.  
  347.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  348.     ac_prev=srcdir ;;
  349.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  350.     srcdir="$ac_optarg" ;;
  351.  
  352.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  353.   | --syscon | --sysco | --sysc | --sys | --sy)
  354.     ac_prev=sysconfdir ;;
  355.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  356.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  357.     sysconfdir="$ac_optarg" ;;
  358.  
  359.   -target | --target | --targe | --targ | --tar | --ta | --t)
  360.     ac_prev=target ;;
  361.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  362.     target="$ac_optarg" ;;
  363.  
  364.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  365.     verbose=yes ;;
  366.  
  367.   -version | --version | --versio | --versi | --vers)
  368.     echo "configure generated by autoconf version 2.13"
  369.     exit 0 ;;
  370.  
  371.   -with-* | --with-*)
  372.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  373.     # Reject names that are not valid shell variable names.
  374.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  375.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  376.     fi
  377.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  378.     case "$ac_option" in
  379.       *=*) ;;
  380.       *) ac_optarg=yes ;;
  381.     esac
  382.     eval "with_${ac_package}='$ac_optarg'" ;;
  383.  
  384.   -without-* | --without-*)
  385.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  386.     # Reject names that are not valid shell variable names.
  387.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  388.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  389.     fi
  390.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  391.     eval "with_${ac_package}=no" ;;
  392.  
  393.   --x)
  394.     # Obsolete; use --with-x.
  395.     with_x=yes ;;
  396.  
  397.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  398.   | --x-incl | --x-inc | --x-in | --x-i)
  399.     ac_prev=x_includes ;;
  400.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  401.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  402.     x_includes="$ac_optarg" ;;
  403.  
  404.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  405.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  406.     ac_prev=x_libraries ;;
  407.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  408.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  409.     x_libraries="$ac_optarg" ;;
  410.  
  411.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  412.     ;;
  413.  
  414.   *)
  415.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  416.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  417.     fi
  418.     if test "x$nonopt" != xNONE; then
  419.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  420.     fi
  421.     nonopt="$ac_option"
  422.     ;;
  423.  
  424.   esac
  425. done
  426.  
  427. if test -n "$ac_prev"; then
  428.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  429. fi
  430.  
  431. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  432.  
  433. # File descriptor usage:
  434. # 0 standard input
  435. # 1 file creation
  436. # 2 errors and warnings
  437. # 3 some systems may open it to /dev/tty
  438. # 4 used on the Kubota Titan
  439. # 6 checking for... messages and results
  440. # 5 compiler messages saved in config.log
  441. if test "$silent" = yes; then
  442.   exec 6>/dev/null
  443. else
  444.   exec 6>&1
  445. fi
  446. exec 5>./config.log
  447.  
  448. echo "\
  449. This file contains any messages produced by compilers while
  450. running configure, to aid debugging if configure makes a mistake.
  451. " 1>&5
  452.  
  453. # Strip out --no-create and --no-recursion so they do not pile up.
  454. # Also quote any args containing shell metacharacters.
  455. ac_configure_args=
  456. for ac_arg
  457. do
  458.   case "$ac_arg" in
  459.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  460.   | --no-cr | --no-c) ;;
  461.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  462.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  463.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  464.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  465.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  466.   esac
  467. done
  468.  
  469. # NLS nuisances.
  470. # Only set these to C if already set.  These must not be set unconditionally
  471. # because not all systems understand e.g. LANG=C (notably SCO).
  472. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  473. # Non-C LC_CTYPE values break the ctype check.
  474. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  475. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  476. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  477. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  478.  
  479. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  480. rm -rf conftest* confdefs.h
  481. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  482. echo > confdefs.h
  483.  
  484. # A filename unique to this package, relative to the directory that
  485. # configure is in, which we can look for to find out if srcdir is correct.
  486. ac_unique_file=main_unix.cpp
  487.  
  488. # Find the source files, if location was not specified.
  489. if test -z "$srcdir"; then
  490.   ac_srcdir_defaulted=yes
  491.   # Try the directory containing this script, then its parent.
  492.   ac_prog=$0
  493.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  494.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  495.   srcdir=$ac_confdir
  496.   if test ! -r $srcdir/$ac_unique_file; then
  497.     srcdir=..
  498.   fi
  499. else
  500.   ac_srcdir_defaulted=no
  501. fi
  502. if test ! -r $srcdir/$ac_unique_file; then
  503.   if test "$ac_srcdir_defaulted" = yes; then
  504.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  505.   else
  506.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  507.   fi
  508. fi
  509. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  510.  
  511. # Prefer explicitly selected file to automatically selected ones.
  512. if test -z "$CONFIG_SITE"; then
  513.   if test "x$prefix" != xNONE; then
  514.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  515.   else
  516.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  517.   fi
  518. fi
  519. for ac_site_file in $CONFIG_SITE; do
  520.   if test -r "$ac_site_file"; then
  521.     echo "loading site script $ac_site_file"
  522.     . "$ac_site_file"
  523.   fi
  524. done
  525.  
  526. if test -r "$cache_file"; then
  527.   echo "loading cache $cache_file"
  528.   . $cache_file
  529. else
  530.   echo "creating cache $cache_file"
  531.   > $cache_file
  532. fi
  533.  
  534. ac_ext=c
  535. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  536. ac_cpp='$CPP $CPPFLAGS'
  537. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  538. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  539. cross_compiling=$ac_cv_prog_cc_cross
  540.  
  541. ac_exeext=
  542. ac_objext=o
  543. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  544.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  545.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  546.     ac_n= ac_c='
  547. ' ac_t='    '
  548.   else
  549.     ac_n=-n ac_c= ac_t=
  550.   fi
  551. else
  552.   ac_n= ac_c='\c' ac_t=
  553. fi
  554.  
  555.  
  556.  
  557.  
  558.  
  559. # Check whether --enable-xf86-dga or --disable-xf86-dga was given.
  560. if test "${enable_xf86_dga+set}" = set; then
  561.   enableval="$enable_xf86_dga"
  562.   WANT_XF86_DGA=$enableval
  563. else
  564.   WANT_XF86_DGA=yes
  565. fi
  566.  
  567. # Check whether --enable-xf86-vidmode or --disable-xf86-vidmode was given.
  568. if test "${enable_xf86_vidmode+set}" = set; then
  569.   enableval="$enable_xf86_vidmode"
  570.   WANT_XF86_VIDMODE=$enableval
  571. else
  572.   WANT_XF86_VIDMODE=yes
  573. fi
  574.  
  575. # Check whether --enable-fbdev-dga or --disable-fbdev-dga was given.
  576. if test "${enable_fbdev_dga+set}" = set; then
  577.   enableval="$enable_fbdev_dga"
  578.   WANT_FBDEV_DGA=$enableval
  579. else
  580.   WANT_FBDEV_DGA=yes
  581. fi
  582.  
  583. # Check whether --enable-vosf or --disable-vosf was given.
  584. if test "${enable_vosf+set}" = set; then
  585.   enableval="$enable_vosf"
  586.   WANT_VOSF=$enableval
  587. else
  588.   WANT_VOSF=yes
  589. fi
  590.  
  591.  
  592. # Check whether --enable-fpe or --disable-fpe was given.
  593. if test "${enable_fpe+set}" = set; then
  594.   enableval="$enable_fpe"
  595.    case "$enableval" in
  596.     default)    FPE_CORE="default";;     uae)        FPE_CORE="uae";;
  597.     *)            { echo "configure: error: --enable-fpe takes only one of the following values: default, uae" 1>&2; exit 1; };;
  598.   esac
  599.  
  600. else
  601.    FPE_CORE="default"
  602.  
  603. fi
  604.  
  605.  
  606. # Check whether --enable-addressing or --disable-addressing was given.
  607. if test "${enable_addressing+set}" = set; then
  608.   enableval="$enable_addressing"
  609.    case "$enableval" in
  610.     real)     ADDRESSING_TEST_ORDER="real";;
  611.     direct)    ADDRESSING_TEST_ORDER="direct";;
  612.     banks)    ADDRESSING_TEST_ORDER="banks";;
  613.     fastest)ADDRESSING_TEST_ORDER="direct banks";;
  614.     *)        { echo "configure: error: --enable-addressing takes only one of the following values: fastest, real, direct, banks" 1>&2; exit 1; };;
  615.   esac
  616.  
  617. else
  618.    ADDRESSING_TEST_ORDER="direct banks"
  619.  
  620. fi
  621.  
  622.  
  623. # Check whether --with-esd or --without-esd was given.
  624. if test "${with_esd+set}" = set; then
  625.   withval="$with_esd"
  626.   WANT_ESD=$withval
  627. else
  628.   WANT_ESD=yes
  629. fi
  630.  
  631. # Check whether --with-gtk or --without-gtk was given.
  632. if test "${with_gtk+set}" = set; then
  633.   withval="$with_gtk"
  634.   WANT_GTK=$withval
  635. else
  636.   WANT_GTK=yes
  637. fi
  638.  
  639. # Check whether --with-mon or --without-mon was given.
  640. if test "${with_mon+set}" = set; then
  641.   withval="$with_mon"
  642.   WANT_MON=$withval
  643. else
  644.   WANT_MON=yes
  645. fi
  646.  
  647.  
  648. ac_aux_dir=
  649. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  650.   if test -f $ac_dir/install-sh; then
  651.     ac_aux_dir=$ac_dir
  652.     ac_install_sh="$ac_aux_dir/install-sh -c"
  653.     break
  654.   elif test -f $ac_dir/install.sh; then
  655.     ac_aux_dir=$ac_dir
  656.     ac_install_sh="$ac_aux_dir/install.sh -c"
  657.     break
  658.   fi
  659. done
  660. if test -z "$ac_aux_dir"; then
  661.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  662. fi
  663. ac_config_guess=$ac_aux_dir/config.guess
  664. ac_config_sub=$ac_aux_dir/config.sub
  665. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  666.  
  667.  
  668. # Make sure we can run config.sub.
  669. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  670. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  671. fi
  672.  
  673. echo $ac_n "checking host system type""... $ac_c" 1>&6
  674. echo "configure:675: checking host system type" >&5
  675.  
  676. host_alias=$host
  677. case "$host_alias" in
  678. NONE)
  679.   case $nonopt in
  680.   NONE)
  681.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  682.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  683.     fi ;;
  684.   *) host_alias=$nonopt ;;
  685.   esac ;;
  686. esac
  687.  
  688. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  689. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  690. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  691. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  692. echo "$ac_t""$host" 1>&6
  693.  
  694. echo $ac_n "checking target system type""... $ac_c" 1>&6
  695. echo "configure:696: checking target system type" >&5
  696.  
  697. target_alias=$target
  698. case "$target_alias" in
  699. NONE)
  700.   case $nonopt in
  701.   NONE) target_alias=$host_alias ;;
  702.   *) target_alias=$nonopt ;;
  703.   esac ;;
  704. esac
  705.  
  706. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  707. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  708. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  709. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  710. echo "$ac_t""$target" 1>&6
  711.  
  712.  
  713. case "$target_os" in
  714.   linux*)    OS_TYPE=linux;;
  715.   netbsd*)    OS_TYPE=netbsd;;
  716.   freebsd*)    OS_TYPE=freebsd;;
  717.   solaris*)    OS_TYPE=solaris;;
  718.   *)        OS_TYPE=`echo $target_os | sed -e 's/-/_/' | sed -e 's/\./_/'`;;
  719. esac
  720. DEFINES="$DEFINES -DOS_$OS_TYPE"
  721.  
  722. HAVE_I386=no
  723. HAVE_M68K=no
  724. HAVE_SPARC=no
  725. HAVE_POWERPC=no
  726. case "$target_cpu" in
  727.   i386* | i486* | i586* | i686* | i786* ) CPU_TYPE=i386 HAVE_I386=yes;;
  728.   m68k* ) CPU_TYPE=m68k HAVE_M68K=yes;;
  729.   sparc* ) CPU_TYPE=sparc HAVE_SPARC=yes;;
  730.   powerpc* ) CPU_TYPE=powerpc HAVE_POWERPC=yes;;
  731.   *) CPU_TYPE=`echo $target_cpu | sed -e 's/-/_/'`;;
  732. esac
  733. DEFINES="$DEFINES -DCPU_$CPU_TYPE"
  734.  
  735. # Extract the first word of "gcc", so it can be a program name with args.
  736. set dummy gcc; ac_word=$2
  737. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  738. echo "configure:739: checking for $ac_word" >&5
  739. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  740.   echo $ac_n "(cached) $ac_c" 1>&6
  741. else
  742.   if test -n "$CC"; then
  743.   ac_cv_prog_CC="$CC" # Let the user override the test.
  744. else
  745.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  746.   ac_dummy="$PATH"
  747.   for ac_dir in $ac_dummy; do
  748.     test -z "$ac_dir" && ac_dir=.
  749.     if test -f $ac_dir/$ac_word; then
  750.       ac_cv_prog_CC="gcc"
  751.       break
  752.     fi
  753.   done
  754.   IFS="$ac_save_ifs"
  755. fi
  756. fi
  757. CC="$ac_cv_prog_CC"
  758. if test -n "$CC"; then
  759.   echo "$ac_t""$CC" 1>&6
  760. else
  761.   echo "$ac_t""no" 1>&6
  762. fi
  763.  
  764. if test -z "$CC"; then
  765.   # Extract the first word of "cc", so it can be a program name with args.
  766. set dummy cc; ac_word=$2
  767. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  768. echo "configure:769: checking for $ac_word" >&5
  769. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  770.   echo $ac_n "(cached) $ac_c" 1>&6
  771. else
  772.   if test -n "$CC"; then
  773.   ac_cv_prog_CC="$CC" # Let the user override the test.
  774. else
  775.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  776.   ac_prog_rejected=no
  777.   ac_dummy="$PATH"
  778.   for ac_dir in $ac_dummy; do
  779.     test -z "$ac_dir" && ac_dir=.
  780.     if test -f $ac_dir/$ac_word; then
  781.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  782.         ac_prog_rejected=yes
  783.     continue
  784.       fi
  785.       ac_cv_prog_CC="cc"
  786.       break
  787.     fi
  788.   done
  789.   IFS="$ac_save_ifs"
  790. if test $ac_prog_rejected = yes; then
  791.   # We found a bogon in the path, so make sure we never use it.
  792.   set dummy $ac_cv_prog_CC
  793.   shift
  794.   if test $# -gt 0; then
  795.     # We chose a different compiler from the bogus one.
  796.     # However, it has the same basename, so the bogon will be chosen
  797.     # first if we set CC to just the basename; use the full file name.
  798.     shift
  799.     set dummy "$ac_dir/$ac_word" "$@"
  800.     shift
  801.     ac_cv_prog_CC="$@"
  802.   fi
  803. fi
  804. fi
  805. fi
  806. CC="$ac_cv_prog_CC"
  807. if test -n "$CC"; then
  808.   echo "$ac_t""$CC" 1>&6
  809. else
  810.   echo "$ac_t""no" 1>&6
  811. fi
  812.  
  813.   if test -z "$CC"; then
  814.     case "`uname -s`" in
  815.     *win32* | *WIN32*)
  816.       # Extract the first word of "cl", so it can be a program name with args.
  817. set dummy cl; ac_word=$2
  818. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  819. echo "configure:820: checking for $ac_word" >&5
  820. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  821.   echo $ac_n "(cached) $ac_c" 1>&6
  822. else
  823.   if test -n "$CC"; then
  824.   ac_cv_prog_CC="$CC" # Let the user override the test.
  825. else
  826.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  827.   ac_dummy="$PATH"
  828.   for ac_dir in $ac_dummy; do
  829.     test -z "$ac_dir" && ac_dir=.
  830.     if test -f $ac_dir/$ac_word; then
  831.       ac_cv_prog_CC="cl"
  832.       break
  833.     fi
  834.   done
  835.   IFS="$ac_save_ifs"
  836. fi
  837. fi
  838. CC="$ac_cv_prog_CC"
  839. if test -n "$CC"; then
  840.   echo "$ac_t""$CC" 1>&6
  841. else
  842.   echo "$ac_t""no" 1>&6
  843. fi
  844.  ;;
  845.     esac
  846.   fi
  847.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  848. fi
  849.  
  850. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  851. echo "configure:852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  852.  
  853. ac_ext=c
  854. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  855. ac_cpp='$CPP $CPPFLAGS'
  856. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  857. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  858. cross_compiling=$ac_cv_prog_cc_cross
  859.  
  860. cat > conftest.$ac_ext << EOF
  861.  
  862. #line 863 "configure"
  863. #include "confdefs.h"
  864.  
  865. main(){return(0);}
  866. EOF
  867. if { (eval echo configure:868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  868.   ac_cv_prog_cc_works=yes
  869.   # If we can't run a trivial program, we are probably using a cross compiler.
  870.   if (./conftest; exit) 2>/dev/null; then
  871.     ac_cv_prog_cc_cross=no
  872.   else
  873.     ac_cv_prog_cc_cross=yes
  874.   fi
  875. else
  876.   echo "configure: failed program was:" >&5
  877.   cat conftest.$ac_ext >&5
  878.   ac_cv_prog_cc_works=no
  879. fi
  880. rm -fr conftest*
  881. ac_ext=c
  882. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  883. ac_cpp='$CPP $CPPFLAGS'
  884. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  885. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  886. cross_compiling=$ac_cv_prog_cc_cross
  887.  
  888. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  889. if test $ac_cv_prog_cc_works = no; then
  890.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  891. fi
  892. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  893. echo "configure:894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  894. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  895. cross_compiling=$ac_cv_prog_cc_cross
  896.  
  897. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  898. echo "configure:899: checking whether we are using GNU C" >&5
  899. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  900.   echo $ac_n "(cached) $ac_c" 1>&6
  901. else
  902.   cat > conftest.c <<EOF
  903. #ifdef __GNUC__
  904.   yes;
  905. #endif
  906. EOF
  907. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  908.   ac_cv_prog_gcc=yes
  909. else
  910.   ac_cv_prog_gcc=no
  911. fi
  912. fi
  913.  
  914. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  915.  
  916. if test $ac_cv_prog_gcc = yes; then
  917.   GCC=yes
  918. else
  919.   GCC=
  920. fi
  921.  
  922. ac_test_CFLAGS="${CFLAGS+set}"
  923. ac_save_CFLAGS="$CFLAGS"
  924. CFLAGS=
  925. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  926. echo "configure:927: checking whether ${CC-cc} accepts -g" >&5
  927. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  928.   echo $ac_n "(cached) $ac_c" 1>&6
  929. else
  930.   echo 'void f(){}' > conftest.c
  931. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  932.   ac_cv_prog_cc_g=yes
  933. else
  934.   ac_cv_prog_cc_g=no
  935. fi
  936. rm -f conftest*
  937.  
  938. fi
  939.  
  940. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  941. if test "$ac_test_CFLAGS" = set; then
  942.   CFLAGS="$ac_save_CFLAGS"
  943. elif test $ac_cv_prog_cc_g = yes; then
  944.   if test "$GCC" = yes; then
  945.     CFLAGS="-g -O2"
  946.   else
  947.     CFLAGS="-g"
  948.   fi
  949. else
  950.   if test "$GCC" = yes; then
  951.     CFLAGS="-O2"
  952.   else
  953.     CFLAGS=
  954.   fi
  955. fi
  956.  
  957. if test "x$CC" != xcc; then
  958.   echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
  959. echo "configure:960: checking whether $CC and cc understand -c and -o together" >&5
  960. else
  961.   echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
  962. echo "configure:963: checking whether cc understands -c and -o together" >&5
  963. fi
  964. set dummy $CC; ac_cc="`echo $2 |
  965.                sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
  966. if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
  967.   echo $ac_n "(cached) $ac_c" 1>&6
  968. else
  969.   echo 'foo(){}' > conftest.c
  970. # Make sure it works both with $CC and with simple cc.
  971. # We do the test twice because some compilers refuse to overwrite an
  972. # existing .o file with -o, though they will create one.
  973. ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
  974. if { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
  975.    test -f conftest.o && { (eval echo configure:976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
  976. then
  977.   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  978.   if test "x$CC" != xcc; then
  979.     # Test first that cc exists at all.
  980.     if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
  981.       ac_try='cc -c conftest.c -o conftest.o 1>&5'
  982.       if { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
  983.      test -f conftest.o && { (eval echo configure:984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
  984.       then
  985.         # cc works too.
  986.         :
  987.       else
  988.         # cc exists but doesn't like -o.
  989.         eval ac_cv_prog_cc_${ac_cc}_c_o=no
  990.       fi
  991.     fi
  992.   fi
  993. else
  994.   eval ac_cv_prog_cc_${ac_cc}_c_o=no
  995. fi
  996. rm -f conftest*
  997.  
  998. fi
  999. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  1000.   echo "$ac_t""yes" 1>&6
  1001. else
  1002.   echo "$ac_t""no" 1>&6
  1003.   cat >> confdefs.h <<\EOF
  1004. #define NO_MINUS_C_MINUS_O 1
  1005. EOF
  1006.  
  1007. fi
  1008.  
  1009. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1010. echo "configure:1011: checking how to run the C preprocessor" >&5
  1011. # On Suns, sometimes $CPP names a directory.
  1012. if test -n "$CPP" && test -d "$CPP"; then
  1013.   CPP=
  1014. fi
  1015. if test -z "$CPP"; then
  1016. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1017.   echo $ac_n "(cached) $ac_c" 1>&6
  1018. else
  1019.     # This must be in double quotes, not single quotes, because CPP may get
  1020.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1021.   CPP="${CC-cc} -E"
  1022.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1023.   # not just through cpp.
  1024.   cat > conftest.$ac_ext <<EOF
  1025. #line 1026 "configure"
  1026. #include "confdefs.h"
  1027. #include <assert.h>
  1028. Syntax Error
  1029. EOF
  1030. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1031. { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1032. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1033. if test -z "$ac_err"; then
  1034.   :
  1035. else
  1036.   echo "$ac_err" >&5
  1037.   echo "configure: failed program was:" >&5
  1038.   cat conftest.$ac_ext >&5
  1039.   rm -rf conftest*
  1040.   CPP="${CC-cc} -E -traditional-cpp"
  1041.   cat > conftest.$ac_ext <<EOF
  1042. #line 1043 "configure"
  1043. #include "confdefs.h"
  1044. #include <assert.h>
  1045. Syntax Error
  1046. EOF
  1047. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1048. { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1049. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1050. if test -z "$ac_err"; then
  1051.   :
  1052. else
  1053.   echo "$ac_err" >&5
  1054.   echo "configure: failed program was:" >&5
  1055.   cat conftest.$ac_ext >&5
  1056.   rm -rf conftest*
  1057.   CPP="${CC-cc} -nologo -E"
  1058.   cat > conftest.$ac_ext <<EOF
  1059. #line 1060 "configure"
  1060. #include "confdefs.h"
  1061. #include <assert.h>
  1062. Syntax Error
  1063. EOF
  1064. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1065. { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1066. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1067. if test -z "$ac_err"; then
  1068.   :
  1069. else
  1070.   echo "$ac_err" >&5
  1071.   echo "configure: failed program was:" >&5
  1072.   cat conftest.$ac_ext >&5
  1073.   rm -rf conftest*
  1074.   CPP=/lib/cpp
  1075. fi
  1076. rm -f conftest*
  1077. fi
  1078. rm -f conftest*
  1079. fi
  1080. rm -f conftest*
  1081.   ac_cv_prog_CPP="$CPP"
  1082. fi
  1083.   CPP="$ac_cv_prog_CPP"
  1084. else
  1085.   ac_cv_prog_CPP="$CPP"
  1086. fi
  1087. echo "$ac_t""$CPP" 1>&6
  1088.  
  1089. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  1090. do
  1091. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1092. set dummy $ac_prog; ac_word=$2
  1093. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1094. echo "configure:1095: checking for $ac_word" >&5
  1095. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1096.   echo $ac_n "(cached) $ac_c" 1>&6
  1097. else
  1098.   if test -n "$CXX"; then
  1099.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1100. else
  1101.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1102.   ac_dummy="$PATH"
  1103.   for ac_dir in $ac_dummy; do
  1104.     test -z "$ac_dir" && ac_dir=.
  1105.     if test -f $ac_dir/$ac_word; then
  1106.       ac_cv_prog_CXX="$ac_prog"
  1107.       break
  1108.     fi
  1109.   done
  1110.   IFS="$ac_save_ifs"
  1111. fi
  1112. fi
  1113. CXX="$ac_cv_prog_CXX"
  1114. if test -n "$CXX"; then
  1115.   echo "$ac_t""$CXX" 1>&6
  1116. else
  1117.   echo "$ac_t""no" 1>&6
  1118. fi
  1119.  
  1120. test -n "$CXX" && break
  1121. done
  1122. test -n "$CXX" || CXX="gcc"
  1123.  
  1124.  
  1125. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1126. echo "configure:1127: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  1127.  
  1128. ac_ext=C
  1129. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1130. ac_cpp='$CXXCPP $CPPFLAGS'
  1131. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1132. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1133. cross_compiling=$ac_cv_prog_cxx_cross
  1134.  
  1135. cat > conftest.$ac_ext << EOF
  1136.  
  1137. #line 1138 "configure"
  1138. #include "confdefs.h"
  1139.  
  1140. int main(){return(0);}
  1141. EOF
  1142. if { (eval echo configure:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1143.   ac_cv_prog_cxx_works=yes
  1144.   # If we can't run a trivial program, we are probably using a cross compiler.
  1145.   if (./conftest; exit) 2>/dev/null; then
  1146.     ac_cv_prog_cxx_cross=no
  1147.   else
  1148.     ac_cv_prog_cxx_cross=yes
  1149.   fi
  1150. else
  1151.   echo "configure: failed program was:" >&5
  1152.   cat conftest.$ac_ext >&5
  1153.   ac_cv_prog_cxx_works=no
  1154. fi
  1155. rm -fr conftest*
  1156. ac_ext=c
  1157. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1158. ac_cpp='$CPP $CPPFLAGS'
  1159. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1160. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1161. cross_compiling=$ac_cv_prog_cc_cross
  1162.  
  1163. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  1164. if test $ac_cv_prog_cxx_works = no; then
  1165.   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  1166. fi
  1167. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1168. echo "configure:1169: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  1169. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  1170. cross_compiling=$ac_cv_prog_cxx_cross
  1171.  
  1172. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  1173. echo "configure:1174: checking whether we are using GNU C++" >&5
  1174. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  1175.   echo $ac_n "(cached) $ac_c" 1>&6
  1176. else
  1177.   cat > conftest.C <<EOF
  1178. #ifdef __GNUC__
  1179.   yes;
  1180. #endif
  1181. EOF
  1182. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1183.   ac_cv_prog_gxx=yes
  1184. else
  1185.   ac_cv_prog_gxx=no
  1186. fi
  1187. fi
  1188.  
  1189. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  1190.  
  1191. if test $ac_cv_prog_gxx = yes; then
  1192.   GXX=yes
  1193. else
  1194.   GXX=
  1195. fi
  1196.  
  1197. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  1198. ac_save_CXXFLAGS="$CXXFLAGS"
  1199. CXXFLAGS=
  1200. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  1201. echo "configure:1202: checking whether ${CXX-g++} accepts -g" >&5
  1202. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  1203.   echo $ac_n "(cached) $ac_c" 1>&6
  1204. else
  1205.   echo 'void f(){}' > conftest.cc
  1206. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  1207.   ac_cv_prog_cxx_g=yes
  1208. else
  1209.   ac_cv_prog_cxx_g=no
  1210. fi
  1211. rm -f conftest*
  1212.  
  1213. fi
  1214.  
  1215. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  1216. if test "$ac_test_CXXFLAGS" = set; then
  1217.   CXXFLAGS="$ac_save_CXXFLAGS"
  1218. elif test $ac_cv_prog_cxx_g = yes; then
  1219.   if test "$GXX" = yes; then
  1220.     CXXFLAGS="-g -O2"
  1221.   else
  1222.     CXXFLAGS="-g"
  1223.   fi
  1224. else
  1225.   if test "$GXX" = yes; then
  1226.     CXXFLAGS="-O2"
  1227.   else
  1228.     CXXFLAGS=
  1229.   fi
  1230. fi
  1231.  
  1232. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1233. echo "configure:1234: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1234. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  1235. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1236.   echo $ac_n "(cached) $ac_c" 1>&6
  1237. else
  1238.   cat > conftestmake <<\EOF
  1239. all:
  1240.     @echo 'ac_maketemp="${MAKE}"'
  1241. EOF
  1242. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1243. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1244. if test -n "$ac_maketemp"; then
  1245.   eval ac_cv_prog_make_${ac_make}_set=yes
  1246. else
  1247.   eval ac_cv_prog_make_${ac_make}_set=no
  1248. fi
  1249. rm -f conftestmake
  1250. fi
  1251. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1252.   echo "$ac_t""yes" 1>&6
  1253.   SET_MAKE=
  1254. else
  1255.   echo "$ac_t""no" 1>&6
  1256.   SET_MAKE="MAKE=${MAKE-make}"
  1257. fi
  1258.  
  1259. # Find a good install program.  We prefer a C program (faster),
  1260. # so one script is as good as another.  But avoid the broken or
  1261. # incompatible versions:
  1262. # SysV /etc/install, /usr/sbin/install
  1263. # SunOS /usr/etc/install
  1264. # IRIX /sbin/install
  1265. # AIX /bin/install
  1266. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1267. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1268. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1269. # ./install, which can be erroneously created by make from ./install.sh.
  1270. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1271. echo "configure:1272: checking for a BSD compatible install" >&5
  1272. if test -z "$INSTALL"; then
  1273. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1274.   echo $ac_n "(cached) $ac_c" 1>&6
  1275. else
  1276.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  1277.   for ac_dir in $PATH; do
  1278.     # Account for people who put trailing slashes in PATH elements.
  1279.     case "$ac_dir/" in
  1280.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1281.     *)
  1282.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1283.       # Don't use installbsd from OSF since it installs stuff as root
  1284.       # by default.
  1285.       for ac_prog in ginstall scoinst install; do
  1286.         if test -f $ac_dir/$ac_prog; then
  1287.       if test $ac_prog = install &&
  1288.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1289.         # AIX install.  It has an incompatible calling convention.
  1290.         :
  1291.       else
  1292.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1293.         break 2
  1294.       fi
  1295.     fi
  1296.       done
  1297.       ;;
  1298.     esac
  1299.   done
  1300.   IFS="$ac_save_IFS"
  1301.  
  1302. fi
  1303.   if test "${ac_cv_path_install+set}" = set; then
  1304.     INSTALL="$ac_cv_path_install"
  1305.   else
  1306.     # As a last resort, use the slow shell script.  We don't cache a
  1307.     # path for INSTALL within a source directory, because that will
  1308.     # break other packages using the cache if that directory is
  1309.     # removed, or if the path is relative.
  1310.     INSTALL="$ac_install_sh"
  1311.   fi
  1312. fi
  1313. echo "$ac_t""$INSTALL" 1>&6
  1314.  
  1315. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1316. # It thinks the first close brace ends the variable substitution.
  1317. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1318.  
  1319. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1320.  
  1321. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1322.  
  1323.  
  1324. MONSRCS=
  1325. if [ "x$WANT_MON" = "xyes" ]; then
  1326.   echo $ac_n "checking for mon""... $ac_c" 1>&6
  1327. echo "configure:1328: checking for mon" >&5
  1328.   mon_srcdir=../../../mon/src
  1329.   if grep mon_init $mon_srcdir/mon.h >/dev/null 2>/dev/null; then
  1330.     echo "$ac_t""yes" 1>&6
  1331.     cat >> confdefs.h <<\EOF
  1332. #define ENABLE_MON 1
  1333. EOF
  1334.  
  1335.     MONSRCS="$mon_srcdir/mon.cpp $mon_srcdir/mon_6502.cpp $mon_srcdir/mon_z80.cpp $mon_srcdir/mon_cmd.cpp $mon_srcdir/mon_disass.cpp $mon_srcdir/mon_ppc.cpp $mon_srcdir/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c"
  1336.     CXXFLAGS="$CXXFLAGS -I$mon_srcdir -I$mon_srcdir/disass"
  1337.     echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
  1338. echo "configure:1339: checking for readline in -lreadline" >&5
  1339. ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
  1340. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1341.   echo $ac_n "(cached) $ac_c" 1>&6
  1342. else
  1343.   ac_save_LIBS="$LIBS"
  1344. LIBS="-lreadline  $LIBS"
  1345. cat > conftest.$ac_ext <<EOF
  1346. #line 1347 "configure"
  1347. #include "confdefs.h"
  1348. /* Override any gcc2 internal prototype to avoid an error.  */
  1349. /* We use char because int might match the return type of a gcc2
  1350.     builtin and then its argument prototype would still apply.  */
  1351. char readline();
  1352.  
  1353. int main() {
  1354. readline()
  1355. ; return 0; }
  1356. EOF
  1357. if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1358.   rm -rf conftest*
  1359.   eval "ac_cv_lib_$ac_lib_var=yes"
  1360. else
  1361.   echo "configure: failed program was:" >&5
  1362.   cat conftest.$ac_ext >&5
  1363.   rm -rf conftest*
  1364.   eval "ac_cv_lib_$ac_lib_var=no"
  1365. fi
  1366. rm -f conftest*
  1367. LIBS="$ac_save_LIBS"
  1368.  
  1369. fi
  1370. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1371.   echo "$ac_t""yes" 1>&6
  1372.     ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1373.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1374.   cat >> confdefs.h <<EOF
  1375. #define $ac_tr_lib 1
  1376. EOF
  1377.  
  1378.   LIBS="-lreadline $LIBS"
  1379.  
  1380. else
  1381.   echo "$ac_t""no" 1>&6
  1382. fi
  1383.  
  1384.     echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
  1385. echo "configure:1386: checking for tputs in -ltermcap" >&5
  1386. ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
  1387. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1388.   echo $ac_n "(cached) $ac_c" 1>&6
  1389. else
  1390.   ac_save_LIBS="$LIBS"
  1391. LIBS="-ltermcap  $LIBS"
  1392. cat > conftest.$ac_ext <<EOF
  1393. #line 1394 "configure"
  1394. #include "confdefs.h"
  1395. /* Override any gcc2 internal prototype to avoid an error.  */
  1396. /* We use char because int might match the return type of a gcc2
  1397.     builtin and then its argument prototype would still apply.  */
  1398. char tputs();
  1399.  
  1400. int main() {
  1401. tputs()
  1402. ; return 0; }
  1403. EOF
  1404. if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1405.   rm -rf conftest*
  1406.   eval "ac_cv_lib_$ac_lib_var=yes"
  1407. else
  1408.   echo "configure: failed program was:" >&5
  1409.   cat conftest.$ac_ext >&5
  1410.   rm -rf conftest*
  1411.   eval "ac_cv_lib_$ac_lib_var=no"
  1412. fi
  1413. rm -f conftest*
  1414. LIBS="$ac_save_LIBS"
  1415.  
  1416. fi
  1417. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1418.   echo "$ac_t""yes" 1>&6
  1419.     ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1420.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1421.   cat >> confdefs.h <<EOF
  1422. #define $ac_tr_lib 1
  1423. EOF
  1424.  
  1425.   LIBS="-ltermcap $LIBS"
  1426.  
  1427. else
  1428.   echo "$ac_t""no" 1>&6
  1429. fi
  1430.  
  1431.     for ac_hdr in readline.h history.h readline/readline.h readline/history.h
  1432. do
  1433. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1434. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1435. echo "configure:1436: checking for $ac_hdr" >&5
  1436. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1437.   echo $ac_n "(cached) $ac_c" 1>&6
  1438. else
  1439.   cat > conftest.$ac_ext <<EOF
  1440. #line 1441 "configure"
  1441. #include "confdefs.h"
  1442. #include <$ac_hdr>
  1443. EOF
  1444. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1445. { (eval echo configure:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1446. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1447. if test -z "$ac_err"; then
  1448.   rm -rf conftest*
  1449.   eval "ac_cv_header_$ac_safe=yes"
  1450. else
  1451.   echo "$ac_err" >&5
  1452.   echo "configure: failed program was:" >&5
  1453.   cat conftest.$ac_ext >&5
  1454.   rm -rf conftest*
  1455.   eval "ac_cv_header_$ac_safe=no"
  1456. fi
  1457. rm -f conftest*
  1458. fi
  1459. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1460.   echo "$ac_t""yes" 1>&6
  1461.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1462.   cat >> confdefs.h <<EOF
  1463. #define $ac_tr_hdr 1
  1464. EOF
  1465.  
  1466. else
  1467.   echo "$ac_t""no" 1>&6
  1468. fi
  1469. done
  1470.  
  1471.   else
  1472.     echo "$ac_t""no" 1>&6
  1473.     echo "configure: warning: Could not find mon, ignoring --with-mon." 1>&2
  1474.     WANT_MON=no
  1475.   fi
  1476. fi
  1477.  
  1478. echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
  1479. echo "configure:1480: checking for sem_init in -lposix4" >&5
  1480. ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
  1481. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1482.   echo $ac_n "(cached) $ac_c" 1>&6
  1483. else
  1484.   ac_save_LIBS="$LIBS"
  1485. LIBS="-lposix4  $LIBS"
  1486. cat > conftest.$ac_ext <<EOF
  1487. #line 1488 "configure"
  1488. #include "confdefs.h"
  1489. /* Override any gcc2 internal prototype to avoid an error.  */
  1490. /* We use char because int might match the return type of a gcc2
  1491.     builtin and then its argument prototype would still apply.  */
  1492. char sem_init();
  1493.  
  1494. int main() {
  1495. sem_init()
  1496. ; return 0; }
  1497. EOF
  1498. if { (eval echo configure:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1499.   rm -rf conftest*
  1500.   eval "ac_cv_lib_$ac_lib_var=yes"
  1501. else
  1502.   echo "configure: failed program was:" >&5
  1503.   cat conftest.$ac_ext >&5
  1504.   rm -rf conftest*
  1505.   eval "ac_cv_lib_$ac_lib_var=no"
  1506. fi
  1507. rm -f conftest*
  1508. LIBS="$ac_save_LIBS"
  1509.  
  1510. fi
  1511. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1512.   echo "$ac_t""yes" 1>&6
  1513.     ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1514.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1515.   cat >> confdefs.h <<EOF
  1516. #define $ac_tr_lib 1
  1517. EOF
  1518.  
  1519.   LIBS="-lposix4 $LIBS"
  1520.  
  1521. else
  1522.   echo "$ac_t""no" 1>&6
  1523. fi
  1524.  
  1525.  
  1526. # If we find X, set shell vars x_includes and x_libraries to the
  1527. # paths, otherwise set no_x=yes.
  1528. # Uses ac_ vars as temps to allow command line to override cache and checks.
  1529. # --without-x overrides everything else, but does not touch the cache.
  1530. echo $ac_n "checking for X""... $ac_c" 1>&6
  1531. echo "configure:1532: checking for X" >&5
  1532.  
  1533. # Check whether --with-x or --without-x was given.
  1534. if test "${with_x+set}" = set; then
  1535.   withval="$with_x"
  1536.   :
  1537. fi
  1538.  
  1539. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  1540. if test "x$with_x" = xno; then
  1541.   # The user explicitly disabled X.
  1542.   have_x=disabled
  1543. else
  1544.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  1545.     # Both variables are already set.
  1546.     have_x=yes
  1547.   else
  1548. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  1549.   echo $ac_n "(cached) $ac_c" 1>&6
  1550. else
  1551.   # One or both of the vars are not set, and there is no cached value.
  1552. ac_x_includes=NO ac_x_libraries=NO
  1553. rm -fr conftestdir
  1554. if mkdir conftestdir; then
  1555.   cd conftestdir
  1556.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  1557.   cat > Imakefile <<'EOF'
  1558. acfindx:
  1559.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  1560. EOF
  1561.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  1562.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1563.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  1564.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  1565.     for ac_extension in a so sl; do
  1566.       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  1567.         test -f $ac_im_libdir/libX11.$ac_extension; then
  1568.         ac_im_usrlibdir=$ac_im_libdir; break
  1569.       fi
  1570.     done
  1571.     # Screen out bogus values from the imake configuration.  They are
  1572.     # bogus both because they are the default anyway, and because
  1573.     # using them would break gcc on systems where it needs fixed includes.
  1574.     case "$ac_im_incroot" in
  1575.     /usr/include) ;;
  1576.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  1577.     esac
  1578.     case "$ac_im_usrlibdir" in
  1579.     /usr/lib | /lib) ;;
  1580.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  1581.     esac
  1582.   fi
  1583.   cd ..
  1584.   rm -fr conftestdir
  1585. fi
  1586.  
  1587. if test "$ac_x_includes" = NO; then
  1588.   # Guess where to find include files, by looking for this one X11 .h file.
  1589.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  1590.  
  1591.   # First, try using that file with no special directory specified.
  1592. cat > conftest.$ac_ext <<EOF
  1593. #line 1594 "configure"
  1594. #include "confdefs.h"
  1595. #include <$x_direct_test_include>
  1596. EOF
  1597. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1598. { (eval echo configure:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1599. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1600. if test -z "$ac_err"; then
  1601.   rm -rf conftest*
  1602.   # We can compile using X headers with no special include directory.
  1603. ac_x_includes=
  1604. else
  1605.   echo "$ac_err" >&5
  1606.   echo "configure: failed program was:" >&5
  1607.   cat conftest.$ac_ext >&5
  1608.   rm -rf conftest*
  1609.   # Look for the header file in a standard set of common directories.
  1610. # Check X11 before X11Rn because it is often a symlink to the current release.
  1611.   for ac_dir in               \
  1612.     /usr/X11/include          \
  1613.     /usr/X11R6/include        \
  1614.     /usr/X11R5/include        \
  1615.     /usr/X11R4/include        \
  1616.                               \
  1617.     /usr/include/X11          \
  1618.     /usr/include/X11R6        \
  1619.     /usr/include/X11R5        \
  1620.     /usr/include/X11R4        \
  1621.                               \
  1622.     /usr/local/X11/include    \
  1623.     /usr/local/X11R6/include  \
  1624.     /usr/local/X11R5/include  \
  1625.     /usr/local/X11R4/include  \
  1626.                               \
  1627.     /usr/local/include/X11    \
  1628.     /usr/local/include/X11R6  \
  1629.     /usr/local/include/X11R5  \
  1630.     /usr/local/include/X11R4  \
  1631.                               \
  1632.     /usr/X386/include         \
  1633.     /usr/x386/include         \
  1634.     /usr/XFree86/include/X11  \
  1635.                               \
  1636.     /usr/include              \
  1637.     /usr/local/include        \
  1638.     /usr/unsupported/include  \
  1639.     /usr/athena/include       \
  1640.     /usr/local/x11r5/include  \
  1641.     /usr/lpp/Xamples/include  \
  1642.                               \
  1643.     /usr/openwin/include      \
  1644.     /usr/openwin/share/include \
  1645.     ; \
  1646.   do
  1647.     if test -r "$ac_dir/$x_direct_test_include"; then
  1648.       ac_x_includes=$ac_dir
  1649.       break
  1650.     fi
  1651.   done
  1652. fi
  1653. rm -f conftest*
  1654. fi # $ac_x_includes = NO
  1655.  
  1656. if test "$ac_x_libraries" = NO; then
  1657.   # Check for the libraries.
  1658.  
  1659.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  1660.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  1661.  
  1662.   # See if we find them without any special options.
  1663.   # Don't add to $LIBS permanently.
  1664.   ac_save_LIBS="$LIBS"
  1665.   LIBS="-l$x_direct_test_library $LIBS"
  1666. cat > conftest.$ac_ext <<EOF
  1667. #line 1668 "configure"
  1668. #include "confdefs.h"
  1669.  
  1670. int main() {
  1671. ${x_direct_test_function}()
  1672. ; return 0; }
  1673. EOF
  1674. if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1675.   rm -rf conftest*
  1676.   LIBS="$ac_save_LIBS"
  1677. # We can link X programs with no special library path.
  1678. ac_x_libraries=
  1679. else
  1680.   echo "configure: failed program was:" >&5
  1681.   cat conftest.$ac_ext >&5
  1682.   rm -rf conftest*
  1683.   LIBS="$ac_save_LIBS"
  1684. # First see if replacing the include by lib works.
  1685. # Check X11 before X11Rn because it is often a symlink to the current release.
  1686. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  1687.     /usr/X11/lib          \
  1688.     /usr/X11R6/lib        \
  1689.     /usr/X11R5/lib        \
  1690.     /usr/X11R4/lib        \
  1691.                           \
  1692.     /usr/lib/X11          \
  1693.     /usr/lib/X11R6        \
  1694.     /usr/lib/X11R5        \
  1695.     /usr/lib/X11R4        \
  1696.                           \
  1697.     /usr/local/X11/lib    \
  1698.     /usr/local/X11R6/lib  \
  1699.     /usr/local/X11R5/lib  \
  1700.     /usr/local/X11R4/lib  \
  1701.                           \
  1702.     /usr/local/lib/X11    \
  1703.     /usr/local/lib/X11R6  \
  1704.     /usr/local/lib/X11R5  \
  1705.     /usr/local/lib/X11R4  \
  1706.                           \
  1707.     /usr/X386/lib         \
  1708.     /usr/x386/lib         \
  1709.     /usr/XFree86/lib/X11  \
  1710.                           \
  1711.     /usr/lib              \
  1712.     /usr/local/lib        \
  1713.     /usr/unsupported/lib  \
  1714.     /usr/athena/lib       \
  1715.     /usr/local/x11r5/lib  \
  1716.     /usr/lpp/Xamples/lib  \
  1717.     /lib/usr/lib/X11      \
  1718.                           \
  1719.     /usr/openwin/lib      \
  1720.     /usr/openwin/share/lib \
  1721.     ; \
  1722. do
  1723.   for ac_extension in a so sl; do
  1724.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  1725.       ac_x_libraries=$ac_dir
  1726.       break 2
  1727.     fi
  1728.   done
  1729. done
  1730. fi
  1731. rm -f conftest*
  1732. fi # $ac_x_libraries = NO
  1733.  
  1734. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  1735.   # Didn't find X anywhere.  Cache the known absence of X.
  1736.   ac_cv_have_x="have_x=no"
  1737. else
  1738.   # Record where we found X for the cache.
  1739.   ac_cv_have_x="have_x=yes \
  1740.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  1741. fi
  1742. fi
  1743.   fi
  1744.   eval "$ac_cv_have_x"
  1745. fi # $with_x != no
  1746.  
  1747. if test "$have_x" != yes; then
  1748.   echo "$ac_t""$have_x" 1>&6
  1749.   no_x=yes
  1750. else
  1751.   # If each of the values was on the command line, it overrides each guess.
  1752.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  1753.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  1754.   # Update the cache value to reflect the command line values.
  1755.   ac_cv_have_x="have_x=yes \
  1756.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  1757.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  1758. fi
  1759.  
  1760. if test "$no_x" = yes; then
  1761.   # Not all programs may use this symbol, but it does not hurt to define it.
  1762.   cat >> confdefs.h <<\EOF
  1763. #define X_DISPLAY_MISSING 1
  1764. EOF
  1765.  
  1766.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  1767. else
  1768.   if test -n "$x_includes"; then
  1769.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  1770.   fi
  1771.  
  1772.   # It would also be nice to do this for all -L options, not just this one.
  1773.   if test -n "$x_libraries"; then
  1774.     X_LIBS="$X_LIBS -L$x_libraries"
  1775.     # For Solaris; some versions of Sun CC require a space after -R and
  1776.     # others require no space.  Words are not sufficient . . . .
  1777.     case "`(uname -sr) 2>/dev/null`" in
  1778.     "SunOS 5"*)
  1779.       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  1780. echo "configure:1781: checking whether -R must be followed by a space" >&5
  1781.       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  1782.       cat > conftest.$ac_ext <<EOF
  1783. #line 1784 "configure"
  1784. #include "confdefs.h"
  1785.  
  1786. int main() {
  1787.  
  1788. ; return 0; }
  1789. EOF
  1790. if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1791.   rm -rf conftest*
  1792.   ac_R_nospace=yes
  1793. else
  1794.   echo "configure: failed program was:" >&5
  1795.   cat conftest.$ac_ext >&5
  1796.   rm -rf conftest*
  1797.   ac_R_nospace=no
  1798. fi
  1799. rm -f conftest*
  1800.       if test $ac_R_nospace = yes; then
  1801.     echo "$ac_t""no" 1>&6
  1802.     X_LIBS="$X_LIBS -R$x_libraries"
  1803.       else
  1804.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  1805.     cat > conftest.$ac_ext <<EOF
  1806. #line 1807 "configure"
  1807. #include "confdefs.h"
  1808.  
  1809. int main() {
  1810.  
  1811. ; return 0; }
  1812. EOF
  1813. if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1814.   rm -rf conftest*
  1815.   ac_R_space=yes
  1816. else
  1817.   echo "configure: failed program was:" >&5
  1818.   cat conftest.$ac_ext >&5
  1819.   rm -rf conftest*
  1820.   ac_R_space=no
  1821. fi
  1822. rm -f conftest*
  1823.     if test $ac_R_space = yes; then
  1824.       echo "$ac_t""yes" 1>&6
  1825.       X_LIBS="$X_LIBS -R $x_libraries"
  1826.     else
  1827.       echo "$ac_t""neither works" 1>&6
  1828.     fi
  1829.       fi
  1830.       LIBS="$ac_xsave_LIBS"
  1831.     esac
  1832.   fi
  1833.  
  1834.   # Check for system-dependent libraries X programs must link with.
  1835.   # Do this before checking for the system-independent R6 libraries
  1836.   # (-lICE), since we may need -lsocket or whatever for X linking.
  1837.  
  1838.   if test "$ISC" = yes; then
  1839.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  1840.   else
  1841.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  1842.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  1843.     # the Alpha needs dnet_stub (dnet does not exist).
  1844.     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  1845. echo "configure:1846: checking for dnet_ntoa in -ldnet" >&5
  1846. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  1847. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1848.   echo $ac_n "(cached) $ac_c" 1>&6
  1849. else
  1850.   ac_save_LIBS="$LIBS"
  1851. LIBS="-ldnet  $LIBS"
  1852. cat > conftest.$ac_ext <<EOF
  1853. #line 1854 "configure"
  1854. #include "confdefs.h"
  1855. /* Override any gcc2 internal prototype to avoid an error.  */
  1856. /* We use char because int might match the return type of a gcc2
  1857.     builtin and then its argument prototype would still apply.  */
  1858. char dnet_ntoa();
  1859.  
  1860. int main() {
  1861. dnet_ntoa()
  1862. ; return 0; }
  1863. EOF
  1864. if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1865.   rm -rf conftest*
  1866.   eval "ac_cv_lib_$ac_lib_var=yes"
  1867. else
  1868.   echo "configure: failed program was:" >&5
  1869.   cat conftest.$ac_ext >&5
  1870.   rm -rf conftest*
  1871.   eval "ac_cv_lib_$ac_lib_var=no"
  1872. fi
  1873. rm -f conftest*
  1874. LIBS="$ac_save_LIBS"
  1875.  
  1876. fi
  1877. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1878.   echo "$ac_t""yes" 1>&6
  1879.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  1880. else
  1881.   echo "$ac_t""no" 1>&6
  1882. fi
  1883.  
  1884.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  1885.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  1886. echo "configure:1887: checking for dnet_ntoa in -ldnet_stub" >&5
  1887. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  1888. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1889.   echo $ac_n "(cached) $ac_c" 1>&6
  1890. else
  1891.   ac_save_LIBS="$LIBS"
  1892. LIBS="-ldnet_stub  $LIBS"
  1893. cat > conftest.$ac_ext <<EOF
  1894. #line 1895 "configure"
  1895. #include "confdefs.h"
  1896. /* Override any gcc2 internal prototype to avoid an error.  */
  1897. /* We use char because int might match the return type of a gcc2
  1898.     builtin and then its argument prototype would still apply.  */
  1899. char dnet_ntoa();
  1900.  
  1901. int main() {
  1902. dnet_ntoa()
  1903. ; return 0; }
  1904. EOF
  1905. if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1906.   rm -rf conftest*
  1907.   eval "ac_cv_lib_$ac_lib_var=yes"
  1908. else
  1909.   echo "configure: failed program was:" >&5
  1910.   cat conftest.$ac_ext >&5
  1911.   rm -rf conftest*
  1912.   eval "ac_cv_lib_$ac_lib_var=no"
  1913. fi
  1914. rm -f conftest*
  1915. LIBS="$ac_save_LIBS"
  1916.  
  1917. fi
  1918. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1919.   echo "$ac_t""yes" 1>&6
  1920.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  1921. else
  1922.   echo "$ac_t""no" 1>&6
  1923. fi
  1924.  
  1925.     fi
  1926.  
  1927.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  1928.     # to get the SysV transport functions.
  1929.     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  1930.     # needs -lnsl.
  1931.     # The nsl library prevents programs from opening the X display
  1932.     # on Irix 5.2, according to dickey@clark.net.
  1933.     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  1934. echo "configure:1935: checking for gethostbyname" >&5
  1935. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  1936.   echo $ac_n "(cached) $ac_c" 1>&6
  1937. else
  1938.   cat > conftest.$ac_ext <<EOF
  1939. #line 1940 "configure"
  1940. #include "confdefs.h"
  1941. /* System header to define __stub macros and hopefully few prototypes,
  1942.     which can conflict with char gethostbyname(); below.  */
  1943. #include <assert.h>
  1944. /* Override any gcc2 internal prototype to avoid an error.  */
  1945. /* We use char because int might match the return type of a gcc2
  1946.     builtin and then its argument prototype would still apply.  */
  1947. char gethostbyname();
  1948.  
  1949. int main() {
  1950.  
  1951. /* The GNU C library defines this for functions which it implements
  1952.     to always fail with ENOSYS.  Some functions are actually named
  1953.     something starting with __ and the normal name is an alias.  */
  1954. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  1955. choke me
  1956. #else
  1957. gethostbyname();
  1958. #endif
  1959.  
  1960. ; return 0; }
  1961. EOF
  1962. if { (eval echo configure:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1963.   rm -rf conftest*
  1964.   eval "ac_cv_func_gethostbyname=yes"
  1965. else
  1966.   echo "configure: failed program was:" >&5
  1967.   cat conftest.$ac_ext >&5
  1968.   rm -rf conftest*
  1969.   eval "ac_cv_func_gethostbyname=no"
  1970. fi
  1971. rm -f conftest*
  1972. fi
  1973.  
  1974. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  1975.   echo "$ac_t""yes" 1>&6
  1976.   :
  1977. else
  1978.   echo "$ac_t""no" 1>&6
  1979. fi
  1980.  
  1981.     if test $ac_cv_func_gethostbyname = no; then
  1982.       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  1983. echo "configure:1984: checking for gethostbyname in -lnsl" >&5
  1984. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  1985. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1986.   echo $ac_n "(cached) $ac_c" 1>&6
  1987. else
  1988.   ac_save_LIBS="$LIBS"
  1989. LIBS="-lnsl  $LIBS"
  1990. cat > conftest.$ac_ext <<EOF
  1991. #line 1992 "configure"
  1992. #include "confdefs.h"
  1993. /* Override any gcc2 internal prototype to avoid an error.  */
  1994. /* We use char because int might match the return type of a gcc2
  1995.     builtin and then its argument prototype would still apply.  */
  1996. char gethostbyname();
  1997.  
  1998. int main() {
  1999. gethostbyname()
  2000. ; return 0; }
  2001. EOF
  2002. if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2003.   rm -rf conftest*
  2004.   eval "ac_cv_lib_$ac_lib_var=yes"
  2005. else
  2006.   echo "configure: failed program was:" >&5
  2007.   cat conftest.$ac_ext >&5
  2008.   rm -rf conftest*
  2009.   eval "ac_cv_lib_$ac_lib_var=no"
  2010. fi
  2011. rm -f conftest*
  2012. LIBS="$ac_save_LIBS"
  2013.  
  2014. fi
  2015. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2016.   echo "$ac_t""yes" 1>&6
  2017.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  2018. else
  2019.   echo "$ac_t""no" 1>&6
  2020. fi
  2021.  
  2022.     fi
  2023.  
  2024.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  2025.     # socket/setsockopt and other routines are undefined under SCO ODT
  2026.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  2027.     # on later versions), says simon@lia.di.epfl.ch: it contains
  2028.     # gethostby* variants that don't use the nameserver (or something).
  2029.     # -lsocket must be given before -lnsl if both are needed.
  2030.     # We assume that if connect needs -lnsl, so does gethostbyname.
  2031.     echo $ac_n "checking for connect""... $ac_c" 1>&6
  2032. echo "configure:2033: checking for connect" >&5
  2033. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  2034.   echo $ac_n "(cached) $ac_c" 1>&6
  2035. else
  2036.   cat > conftest.$ac_ext <<EOF
  2037. #line 2038 "configure"
  2038. #include "confdefs.h"
  2039. /* System header to define __stub macros and hopefully few prototypes,
  2040.     which can conflict with char connect(); below.  */
  2041. #include <assert.h>
  2042. /* Override any gcc2 internal prototype to avoid an error.  */
  2043. /* We use char because int might match the return type of a gcc2
  2044.     builtin and then its argument prototype would still apply.  */
  2045. char connect();
  2046.  
  2047. int main() {
  2048.  
  2049. /* The GNU C library defines this for functions which it implements
  2050.     to always fail with ENOSYS.  Some functions are actually named
  2051.     something starting with __ and the normal name is an alias.  */
  2052. #if defined (__stub_connect) || defined (__stub___connect)
  2053. choke me
  2054. #else
  2055. connect();
  2056. #endif
  2057.  
  2058. ; return 0; }
  2059. EOF
  2060. if { (eval echo configure:2061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2061.   rm -rf conftest*
  2062.   eval "ac_cv_func_connect=yes"
  2063. else
  2064.   echo "configure: failed program was:" >&5
  2065.   cat conftest.$ac_ext >&5
  2066.   rm -rf conftest*
  2067.   eval "ac_cv_func_connect=no"
  2068. fi
  2069. rm -f conftest*
  2070. fi
  2071.  
  2072. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  2073.   echo "$ac_t""yes" 1>&6
  2074.   :
  2075. else
  2076.   echo "$ac_t""no" 1>&6
  2077. fi
  2078.  
  2079.     if test $ac_cv_func_connect = no; then
  2080.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  2081. echo "configure:2082: checking for connect in -lsocket" >&5
  2082. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  2083. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2084.   echo $ac_n "(cached) $ac_c" 1>&6
  2085. else
  2086.   ac_save_LIBS="$LIBS"
  2087. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  2088. cat > conftest.$ac_ext <<EOF
  2089. #line 2090 "configure"
  2090. #include "confdefs.h"
  2091. /* Override any gcc2 internal prototype to avoid an error.  */
  2092. /* We use char because int might match the return type of a gcc2
  2093.     builtin and then its argument prototype would still apply.  */
  2094. char connect();
  2095.  
  2096. int main() {
  2097. connect()
  2098. ; return 0; }
  2099. EOF
  2100. if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2101.   rm -rf conftest*
  2102.   eval "ac_cv_lib_$ac_lib_var=yes"
  2103. else
  2104.   echo "configure: failed program was:" >&5
  2105.   cat conftest.$ac_ext >&5
  2106.   rm -rf conftest*
  2107.   eval "ac_cv_lib_$ac_lib_var=no"
  2108. fi
  2109. rm -f conftest*
  2110. LIBS="$ac_save_LIBS"
  2111.  
  2112. fi
  2113. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2114.   echo "$ac_t""yes" 1>&6
  2115.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  2116. else
  2117.   echo "$ac_t""no" 1>&6
  2118. fi
  2119.  
  2120.     fi
  2121.  
  2122.     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  2123.     echo $ac_n "checking for remove""... $ac_c" 1>&6
  2124. echo "configure:2125: checking for remove" >&5
  2125. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  2126.   echo $ac_n "(cached) $ac_c" 1>&6
  2127. else
  2128.   cat > conftest.$ac_ext <<EOF
  2129. #line 2130 "configure"
  2130. #include "confdefs.h"
  2131. /* System header to define __stub macros and hopefully few prototypes,
  2132.     which can conflict with char remove(); below.  */
  2133. #include <assert.h>
  2134. /* Override any gcc2 internal prototype to avoid an error.  */
  2135. /* We use char because int might match the return type of a gcc2
  2136.     builtin and then its argument prototype would still apply.  */
  2137. char remove();
  2138.  
  2139. int main() {
  2140.  
  2141. /* The GNU C library defines this for functions which it implements
  2142.     to always fail with ENOSYS.  Some functions are actually named
  2143.     something starting with __ and the normal name is an alias.  */
  2144. #if defined (__stub_remove) || defined (__stub___remove)
  2145. choke me
  2146. #else
  2147. remove();
  2148. #endif
  2149.  
  2150. ; return 0; }
  2151. EOF
  2152. if { (eval echo configure:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2153.   rm -rf conftest*
  2154.   eval "ac_cv_func_remove=yes"
  2155. else
  2156.   echo "configure: failed program was:" >&5
  2157.   cat conftest.$ac_ext >&5
  2158.   rm -rf conftest*
  2159.   eval "ac_cv_func_remove=no"
  2160. fi
  2161. rm -f conftest*
  2162. fi
  2163.  
  2164. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  2165.   echo "$ac_t""yes" 1>&6
  2166.   :
  2167. else
  2168.   echo "$ac_t""no" 1>&6
  2169. fi
  2170.  
  2171.     if test $ac_cv_func_remove = no; then
  2172.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  2173. echo "configure:2174: checking for remove in -lposix" >&5
  2174. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  2175. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2176.   echo $ac_n "(cached) $ac_c" 1>&6
  2177. else
  2178.   ac_save_LIBS="$LIBS"
  2179. LIBS="-lposix  $LIBS"
  2180. cat > conftest.$ac_ext <<EOF
  2181. #line 2182 "configure"
  2182. #include "confdefs.h"
  2183. /* Override any gcc2 internal prototype to avoid an error.  */
  2184. /* We use char because int might match the return type of a gcc2
  2185.     builtin and then its argument prototype would still apply.  */
  2186. char remove();
  2187.  
  2188. int main() {
  2189. remove()
  2190. ; return 0; }
  2191. EOF
  2192. if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2193.   rm -rf conftest*
  2194.   eval "ac_cv_lib_$ac_lib_var=yes"
  2195. else
  2196.   echo "configure: failed program was:" >&5
  2197.   cat conftest.$ac_ext >&5
  2198.   rm -rf conftest*
  2199.   eval "ac_cv_lib_$ac_lib_var=no"
  2200. fi
  2201. rm -f conftest*
  2202. LIBS="$ac_save_LIBS"
  2203.  
  2204. fi
  2205. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2206.   echo "$ac_t""yes" 1>&6
  2207.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  2208. else
  2209.   echo "$ac_t""no" 1>&6
  2210. fi
  2211.  
  2212.     fi
  2213.  
  2214.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  2215.     echo $ac_n "checking for shmat""... $ac_c" 1>&6
  2216. echo "configure:2217: checking for shmat" >&5
  2217. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  2218.   echo $ac_n "(cached) $ac_c" 1>&6
  2219. else
  2220.   cat > conftest.$ac_ext <<EOF
  2221. #line 2222 "configure"
  2222. #include "confdefs.h"
  2223. /* System header to define __stub macros and hopefully few prototypes,
  2224.     which can conflict with char shmat(); below.  */
  2225. #include <assert.h>
  2226. /* Override any gcc2 internal prototype to avoid an error.  */
  2227. /* We use char because int might match the return type of a gcc2
  2228.     builtin and then its argument prototype would still apply.  */
  2229. char shmat();
  2230.  
  2231. int main() {
  2232.  
  2233. /* The GNU C library defines this for functions which it implements
  2234.     to always fail with ENOSYS.  Some functions are actually named
  2235.     something starting with __ and the normal name is an alias.  */
  2236. #if defined (__stub_shmat) || defined (__stub___shmat)
  2237. choke me
  2238. #else
  2239. shmat();
  2240. #endif
  2241.  
  2242. ; return 0; }
  2243. EOF
  2244. if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2245.   rm -rf conftest*
  2246.   eval "ac_cv_func_shmat=yes"
  2247. else
  2248.   echo "configure: failed program was:" >&5
  2249.   cat conftest.$ac_ext >&5
  2250.   rm -rf conftest*
  2251.   eval "ac_cv_func_shmat=no"
  2252. fi
  2253. rm -f conftest*
  2254. fi
  2255.  
  2256. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  2257.   echo "$ac_t""yes" 1>&6
  2258.   :
  2259. else
  2260.   echo "$ac_t""no" 1>&6
  2261. fi
  2262.  
  2263.     if test $ac_cv_func_shmat = no; then
  2264.       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  2265. echo "configure:2266: checking for shmat in -lipc" >&5
  2266. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  2267. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2268.   echo $ac_n "(cached) $ac_c" 1>&6
  2269. else
  2270.   ac_save_LIBS="$LIBS"
  2271. LIBS="-lipc  $LIBS"
  2272. cat > conftest.$ac_ext <<EOF
  2273. #line 2274 "configure"
  2274. #include "confdefs.h"
  2275. /* Override any gcc2 internal prototype to avoid an error.  */
  2276. /* We use char because int might match the return type of a gcc2
  2277.     builtin and then its argument prototype would still apply.  */
  2278. char shmat();
  2279.  
  2280. int main() {
  2281. shmat()
  2282. ; return 0; }
  2283. EOF
  2284. if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2285.   rm -rf conftest*
  2286.   eval "ac_cv_lib_$ac_lib_var=yes"
  2287. else
  2288.   echo "configure: failed program was:" >&5
  2289.   cat conftest.$ac_ext >&5
  2290.   rm -rf conftest*
  2291.   eval "ac_cv_lib_$ac_lib_var=no"
  2292. fi
  2293. rm -f conftest*
  2294. LIBS="$ac_save_LIBS"
  2295.  
  2296. fi
  2297. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2298.   echo "$ac_t""yes" 1>&6
  2299.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  2300. else
  2301.   echo "$ac_t""no" 1>&6
  2302. fi
  2303.  
  2304.     fi
  2305.   fi
  2306.  
  2307.   # Check for libraries that X11R6 Xt/Xaw programs need.
  2308.   ac_save_LDFLAGS="$LDFLAGS"
  2309.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  2310.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  2311.   # check for ICE first), but we must link in the order -lSM -lICE or
  2312.   # we get undefined symbols.  So assume we have SM if we have ICE.
  2313.   # These have to be linked with before -lX11, unlike the other
  2314.   # libraries we check for below, so use a different variable.
  2315.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  2316.   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  2317. echo "configure:2318: checking for IceConnectionNumber in -lICE" >&5
  2318. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  2319. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2320.   echo $ac_n "(cached) $ac_c" 1>&6
  2321. else
  2322.   ac_save_LIBS="$LIBS"
  2323. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  2324. cat > conftest.$ac_ext <<EOF
  2325. #line 2326 "configure"
  2326. #include "confdefs.h"
  2327. /* Override any gcc2 internal prototype to avoid an error.  */
  2328. /* We use char because int might match the return type of a gcc2
  2329.     builtin and then its argument prototype would still apply.  */
  2330. char IceConnectionNumber();
  2331.  
  2332. int main() {
  2333. IceConnectionNumber()
  2334. ; return 0; }
  2335. EOF
  2336. if { (eval echo configure:2337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2337.   rm -rf conftest*
  2338.   eval "ac_cv_lib_$ac_lib_var=yes"
  2339. else
  2340.   echo "configure: failed program was:" >&5
  2341.   cat conftest.$ac_ext >&5
  2342.   rm -rf conftest*
  2343.   eval "ac_cv_lib_$ac_lib_var=no"
  2344. fi
  2345. rm -f conftest*
  2346. LIBS="$ac_save_LIBS"
  2347.  
  2348. fi
  2349. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2350.   echo "$ac_t""yes" 1>&6
  2351.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  2352. else
  2353.   echo "$ac_t""no" 1>&6
  2354. fi
  2355.  
  2356.   LDFLAGS="$ac_save_LDFLAGS"
  2357.  
  2358. fi
  2359.  
  2360. if [ "x$no_x" = "xyes" ]; then
  2361.   { echo "configure: error: You need X11 to run Basilisk II." 1>&2; exit 1; }
  2362. fi
  2363. CFLAGS="$CFLAGS $X_CFLAGS"
  2364. CXXFLAGS="$CXXFLAGS $X_CFLAGS"
  2365. LIBS="$LIBS $X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
  2366.  
  2367. HAVE_PTHREADS=yes
  2368. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  2369. echo "configure:2370: checking for pthread_create in -lpthread" >&5
  2370. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  2371. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2372.   echo $ac_n "(cached) $ac_c" 1>&6
  2373. else
  2374.   ac_save_LIBS="$LIBS"
  2375. LIBS="-lpthread  $LIBS"
  2376. cat > conftest.$ac_ext <<EOF
  2377. #line 2378 "configure"
  2378. #include "confdefs.h"
  2379. /* Override any gcc2 internal prototype to avoid an error.  */
  2380. /* We use char because int might match the return type of a gcc2
  2381.     builtin and then its argument prototype would still apply.  */
  2382. char pthread_create();
  2383.  
  2384. int main() {
  2385. pthread_create()
  2386. ; return 0; }
  2387. EOF
  2388. if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2389.   rm -rf conftest*
  2390.   eval "ac_cv_lib_$ac_lib_var=yes"
  2391. else
  2392.   echo "configure: failed program was:" >&5
  2393.   cat conftest.$ac_ext >&5
  2394.   rm -rf conftest*
  2395.   eval "ac_cv_lib_$ac_lib_var=no"
  2396. fi
  2397. rm -f conftest*
  2398. LIBS="$ac_save_LIBS"
  2399.  
  2400. fi
  2401. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2402.   echo "$ac_t""yes" 1>&6
  2403.     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  2404.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  2405.   cat >> confdefs.h <<EOF
  2406. #define $ac_tr_lib 1
  2407. EOF
  2408.  
  2409.   LIBS="-lpthread $LIBS"
  2410.  
  2411. else
  2412.   echo "$ac_t""no" 1>&6
  2413.  
  2414.   echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
  2415. echo "configure:2416: checking for pthread_create in -lc_r" >&5
  2416. ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
  2417. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2418.   echo $ac_n "(cached) $ac_c" 1>&6
  2419. else
  2420.   ac_save_LIBS="$LIBS"
  2421. LIBS="-lc_r  $LIBS"
  2422. cat > conftest.$ac_ext <<EOF
  2423. #line 2424 "configure"
  2424. #include "confdefs.h"
  2425. /* Override any gcc2 internal prototype to avoid an error.  */
  2426. /* We use char because int might match the return type of a gcc2
  2427.     builtin and then its argument prototype would still apply.  */
  2428. char pthread_create();
  2429.  
  2430. int main() {
  2431. pthread_create()
  2432. ; return 0; }
  2433. EOF
  2434. if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2435.   rm -rf conftest*
  2436.   eval "ac_cv_lib_$ac_lib_var=yes"
  2437. else
  2438.   echo "configure: failed program was:" >&5
  2439.   cat conftest.$ac_ext >&5
  2440.   rm -rf conftest*
  2441.   eval "ac_cv_lib_$ac_lib_var=no"
  2442. fi
  2443. rm -f conftest*
  2444. LIBS="$ac_save_LIBS"
  2445.  
  2446. fi
  2447. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2448.   echo "$ac_t""yes" 1>&6
  2449.     ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  2450.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  2451.   cat >> confdefs.h <<EOF
  2452. #define $ac_tr_lib 1
  2453. EOF
  2454.  
  2455.   LIBS="-lc_r $LIBS"
  2456.  
  2457. else
  2458.   echo "$ac_t""no" 1>&6
  2459.  
  2460.     echo $ac_n "checking for pthread_create in -lPTL""... $ac_c" 1>&6
  2461. echo "configure:2462: checking for pthread_create in -lPTL" >&5
  2462. ac_lib_var=`echo PTL'_'pthread_create | sed 'y%./+-%__p_%'`
  2463. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2464.   echo $ac_n "(cached) $ac_c" 1>&6
  2465. else
  2466.   ac_save_LIBS="$LIBS"
  2467. LIBS="-lPTL  $LIBS"
  2468. cat > conftest.$ac_ext <<EOF
  2469. #line 2470 "configure"
  2470. #include "confdefs.h"
  2471. /* Override any gcc2 internal prototype to avoid an error.  */
  2472. /* We use char because int might match the return type of a gcc2
  2473.     builtin and then its argument prototype would still apply.  */
  2474. char pthread_create();
  2475.  
  2476. int main() {
  2477. pthread_create()
  2478. ; return 0; }
  2479. EOF
  2480. if { (eval echo configure:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2481.   rm -rf conftest*
  2482.   eval "ac_cv_lib_$ac_lib_var=yes"
  2483. else
  2484.   echo "configure: failed program was:" >&5
  2485.   cat conftest.$ac_ext >&5
  2486.   rm -rf conftest*
  2487.   eval "ac_cv_lib_$ac_lib_var=no"
  2488. fi
  2489. rm -f conftest*
  2490. LIBS="$ac_save_LIBS"
  2491.  
  2492. fi
  2493. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2494.   echo "$ac_t""yes" 1>&6
  2495.     ac_tr_lib=HAVE_LIB`echo PTL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  2496.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  2497.   cat >> confdefs.h <<EOF
  2498. #define $ac_tr_lib 1
  2499. EOF
  2500.  
  2501.   LIBS="-lPTL $LIBS"
  2502.  
  2503. else
  2504.   echo "$ac_t""no" 1>&6
  2505.  
  2506.       HAVE_PTHREADS=no
  2507.     
  2508. fi
  2509.  
  2510.   
  2511. fi
  2512.  
  2513.  
  2514. fi
  2515.  
  2516. if [ "x$HAVE_PTHREADS" = "xyes" ]; then
  2517.   cat >> confdefs.h <<\EOF
  2518. #define HAVE_PTHREADS 1
  2519. EOF
  2520.  
  2521. fi
  2522. for ac_func in pthread_cancel
  2523. do
  2524. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2525. echo "configure:2526: checking for $ac_func" >&5
  2526. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2527.   echo $ac_n "(cached) $ac_c" 1>&6
  2528. else
  2529.   cat > conftest.$ac_ext <<EOF
  2530. #line 2531 "configure"
  2531. #include "confdefs.h"
  2532. /* System header to define __stub macros and hopefully few prototypes,
  2533.     which can conflict with char $ac_func(); below.  */
  2534. #include <assert.h>
  2535. /* Override any gcc2 internal prototype to avoid an error.  */
  2536. /* We use char because int might match the return type of a gcc2
  2537.     builtin and then its argument prototype would still apply.  */
  2538. char $ac_func();
  2539.  
  2540. int main() {
  2541.  
  2542. /* The GNU C library defines this for functions which it implements
  2543.     to always fail with ENOSYS.  Some functions are actually named
  2544.     something starting with __ and the normal name is an alias.  */
  2545. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2546. choke me
  2547. #else
  2548. $ac_func();
  2549. #endif
  2550.  
  2551. ; return 0; }
  2552. EOF
  2553. if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2554.   rm -rf conftest*
  2555.   eval "ac_cv_func_$ac_func=yes"
  2556. else
  2557.   echo "configure: failed program was:" >&5
  2558.   cat conftest.$ac_ext >&5
  2559.   rm -rf conftest*
  2560.   eval "ac_cv_func_$ac_func=no"
  2561. fi
  2562. rm -f conftest*
  2563. fi
  2564.  
  2565. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2566.   echo "$ac_t""yes" 1>&6
  2567.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2568.   cat >> confdefs.h <<EOF
  2569. #define $ac_tr_func 1
  2570. EOF
  2571.  
  2572. else
  2573.   echo "$ac_t""no" 1>&6
  2574. fi
  2575. done
  2576.  
  2577.  
  2578. SEMSRC=
  2579. for ac_func in sem_init
  2580. do
  2581. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2582. echo "configure:2583: checking for $ac_func" >&5
  2583. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2584.   echo $ac_n "(cached) $ac_c" 1>&6
  2585. else
  2586.   cat > conftest.$ac_ext <<EOF
  2587. #line 2588 "configure"
  2588. #include "confdefs.h"
  2589. /* System header to define __stub macros and hopefully few prototypes,
  2590.     which can conflict with char $ac_func(); below.  */
  2591. #include <assert.h>
  2592. /* Override any gcc2 internal prototype to avoid an error.  */
  2593. /* We use char because int might match the return type of a gcc2
  2594.     builtin and then its argument prototype would still apply.  */
  2595. char $ac_func();
  2596.  
  2597. int main() {
  2598.  
  2599. /* The GNU C library defines this for functions which it implements
  2600.     to always fail with ENOSYS.  Some functions are actually named
  2601.     something starting with __ and the normal name is an alias.  */
  2602. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2603. choke me
  2604. #else
  2605. $ac_func();
  2606. #endif
  2607.  
  2608. ; return 0; }
  2609. EOF
  2610. if { (eval echo configure:2611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2611.   rm -rf conftest*
  2612.   eval "ac_cv_func_$ac_func=yes"
  2613. else
  2614.   echo "configure: failed program was:" >&5
  2615.   cat conftest.$ac_ext >&5
  2616.   rm -rf conftest*
  2617.   eval "ac_cv_func_$ac_func=no"
  2618. fi
  2619. rm -f conftest*
  2620. fi
  2621.  
  2622. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2623.   echo "$ac_t""yes" 1>&6
  2624.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2625.   cat >> confdefs.h <<EOF
  2626. #define $ac_tr_func 1
  2627. EOF
  2628.  
  2629. else
  2630.   echo "$ac_t""no" 1>&6
  2631. if test "x$HAVE_PTHREADS" = "xyes"; then
  2632.     SEMSRC=posix_sem.cpp
  2633.   fi
  2634.  
  2635. fi
  2636. done
  2637.  
  2638.  
  2639. if [ "x$WANT_XF86_DGA" = "xyes" ]; then
  2640.   echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
  2641. echo "configure:2642: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
  2642. ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
  2643. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2644.   echo $ac_n "(cached) $ac_c" 1>&6
  2645. else
  2646.   ac_save_LIBS="$LIBS"
  2647. LIBS="-lXxf86dga  $LIBS"
  2648. cat > conftest.$ac_ext <<EOF
  2649. #line 2650 "configure"
  2650. #include "confdefs.h"
  2651. /* Override any gcc2 internal prototype to avoid an error.  */
  2652. /* We use char because int might match the return type of a gcc2
  2653.     builtin and then its argument prototype would still apply.  */
  2654. char XF86DGAQueryExtension();
  2655.  
  2656. int main() {
  2657. XF86DGAQueryExtension()
  2658. ; return 0; }
  2659. EOF
  2660. if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2661.   rm -rf conftest*
  2662.   eval "ac_cv_lib_$ac_lib_var=yes"
  2663. else
  2664.   echo "configure: failed program was:" >&5
  2665.   cat conftest.$ac_ext >&5
  2666.   rm -rf conftest*
  2667.   eval "ac_cv_lib_$ac_lib_var=no"
  2668. fi
  2669. rm -f conftest*
  2670. LIBS="$ac_save_LIBS"
  2671.  
  2672. fi
  2673. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2674.   echo "$ac_t""yes" 1>&6
  2675.   
  2676.     cat >> confdefs.h <<\EOF
  2677. #define ENABLE_XF86_DGA 1
  2678. EOF
  2679.  
  2680.     LIBS="$LIBS -lXxf86dga"
  2681.     if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then
  2682.       echo "configure: warning: Cannot have both --enable-xf86-dga and --enable-fbdev-dga, ignoring --enable-fbdev-dga." 1>&2
  2683.       WANT_FBDEV_DGA=no
  2684.     fi
  2685.   
  2686. else
  2687.   echo "$ac_t""no" 1>&6
  2688.  
  2689.     echo "configure: warning: Could not find XFree86 DGA extension, ignoring --enable-xf86-dga." 1>&2
  2690.     WANT_XF86_DGA=no
  2691.   
  2692. fi
  2693.  
  2694. fi
  2695. if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then
  2696.   cat >> confdefs.h <<\EOF
  2697. #define ENABLE_FBDEV_DGA 1
  2698. EOF
  2699.  
  2700. fi
  2701.  
  2702. if [ "x$WANT_XF86_VIDMODE" = "xyes" ]; then
  2703.   echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
  2704. echo "configure:2705: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
  2705. ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
  2706. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2707.   echo $ac_n "(cached) $ac_c" 1>&6
  2708. else
  2709.   ac_save_LIBS="$LIBS"
  2710. LIBS="-lXxf86vm  $LIBS"
  2711. cat > conftest.$ac_ext <<EOF
  2712. #line 2713 "configure"
  2713. #include "confdefs.h"
  2714. /* Override any gcc2 internal prototype to avoid an error.  */
  2715. /* We use char because int might match the return type of a gcc2
  2716.     builtin and then its argument prototype would still apply.  */
  2717. char XF86VidModeQueryExtension();
  2718.  
  2719. int main() {
  2720. XF86VidModeQueryExtension()
  2721. ; return 0; }
  2722. EOF
  2723. if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2724.   rm -rf conftest*
  2725.   eval "ac_cv_lib_$ac_lib_var=yes"
  2726. else
  2727.   echo "configure: failed program was:" >&5
  2728.   cat conftest.$ac_ext >&5
  2729.   rm -rf conftest*
  2730.   eval "ac_cv_lib_$ac_lib_var=no"
  2731. fi
  2732. rm -f conftest*
  2733. LIBS="$ac_save_LIBS"
  2734.  
  2735. fi
  2736. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2737.   echo "$ac_t""yes" 1>&6
  2738.   
  2739.     cat >> confdefs.h <<\EOF
  2740. #define ENABLE_XF86_VIDMODE 1
  2741. EOF
  2742.  
  2743.     LIBS="$LIBS -lXxf86vm"
  2744.   
  2745. else
  2746.   echo "$ac_t""no" 1>&6
  2747.  
  2748.     echo "configure: warning: Could not find XFree86 VidMode extension, ignoring --enable-xf86-vidmode." 1>&2
  2749.     WANT_XF86_VIDMODE=no
  2750.   
  2751. fi
  2752.  
  2753. fi
  2754.  
  2755. UISRCS=../dummy/prefs_editor_dummy.cpp
  2756. if [ "x$WANT_GTK" = "xyes" ]; then
  2757.   # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
  2758. if test "${with_gtk_prefix+set}" = set; then
  2759.   withval="$with_gtk_prefix"
  2760.   gtk_config_prefix="$withval"
  2761. else
  2762.   gtk_config_prefix=""
  2763. fi
  2764.  
  2765. # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
  2766. if test "${with_gtk_exec_prefix+set}" = set; then
  2767.   withval="$with_gtk_exec_prefix"
  2768.   gtk_config_exec_prefix="$withval"
  2769. else
  2770.   gtk_config_exec_prefix=""
  2771. fi
  2772.  
  2773. # Check whether --enable-gtktest or --disable-gtktest was given.
  2774. if test "${enable_gtktest+set}" = set; then
  2775.   enableval="$enable_gtktest"
  2776.   :
  2777. else
  2778.   enable_gtktest=yes
  2779. fi
  2780.  
  2781.  
  2782.   for module in . 
  2783.   do
  2784.       case "$module" in
  2785.          gthread) 
  2786.              gtk_config_args="$gtk_config_args gthread"
  2787.          ;;
  2788.       esac
  2789.   done
  2790.  
  2791.   if test x$gtk_config_exec_prefix != x ; then
  2792.      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  2793.      if test x${GTK_CONFIG+set} != xset ; then
  2794.         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  2795.      fi
  2796.   fi
  2797.   if test x$gtk_config_prefix != x ; then
  2798.      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  2799.      if test x${GTK_CONFIG+set} != xset ; then
  2800.         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  2801.      fi
  2802.   fi
  2803.  
  2804.   # Extract the first word of "gtk-config", so it can be a program name with args.
  2805. set dummy gtk-config; ac_word=$2
  2806. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2807. echo "configure:2808: checking for $ac_word" >&5
  2808. if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  2809.   echo $ac_n "(cached) $ac_c" 1>&6
  2810. else
  2811.   case "$GTK_CONFIG" in
  2812.   /*)
  2813.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  2814.   ;;
  2815.   ?:/*)             
  2816.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  2817.   ;;
  2818.   *)
  2819.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2820.   ac_dummy="$PATH"
  2821.   for ac_dir in $ac_dummy; do 
  2822.     test -z "$ac_dir" && ac_dir=.
  2823.     if test -f $ac_dir/$ac_word; then
  2824.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
  2825.       break
  2826.     fi
  2827.   done
  2828.   IFS="$ac_save_ifs"
  2829.   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  2830.   ;;
  2831. esac
  2832. fi
  2833. GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
  2834. if test -n "$GTK_CONFIG"; then
  2835.   echo "$ac_t""$GTK_CONFIG" 1>&6
  2836. else
  2837.   echo "$ac_t""no" 1>&6
  2838. fi
  2839.  
  2840.   min_gtk_version=1.2.0
  2841.   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  2842. echo "configure:2843: checking for GTK - version >= $min_gtk_version" >&5
  2843.   no_gtk=""
  2844.   if test "$GTK_CONFIG" = "no" ; then
  2845.     no_gtk=yes
  2846.   else
  2847.     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  2848.     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  2849.     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  2850.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2851.     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  2852.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2853.     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  2854.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2855.     if test "x$enable_gtktest" = "xyes" ; then
  2856.       ac_save_CFLAGS="$CFLAGS"
  2857.       ac_save_LIBS="$LIBS"
  2858.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  2859.       LIBS="$GTK_LIBS $LIBS"
  2860.       rm -f conf.gtktest
  2861.       if test "$cross_compiling" = yes; then
  2862.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  2863. else
  2864.   cat > conftest.$ac_ext <<EOF
  2865. #line 2866 "configure"
  2866. #include "confdefs.h"
  2867.  
  2868. #include <gtk/gtk.h>
  2869. #include <stdio.h>
  2870. #include <stdlib.h>
  2871.  
  2872. int 
  2873. main ()
  2874. {
  2875.   int major, minor, micro;
  2876.   char *tmp_version;
  2877.  
  2878.   system ("touch conf.gtktest");
  2879.  
  2880.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  2881.   tmp_version = g_strdup("$min_gtk_version");
  2882.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  2883.      printf("%s, bad version string\n", "$min_gtk_version");
  2884.      exit(1);
  2885.    }
  2886.  
  2887.   if ((gtk_major_version != $gtk_config_major_version) ||
  2888.       (gtk_minor_version != $gtk_config_minor_version) ||
  2889.       (gtk_micro_version != $gtk_config_micro_version))
  2890.     {
  2891.       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
  2892.              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  2893.              gtk_major_version, gtk_minor_version, gtk_micro_version);
  2894.       printf ("*** was found! If gtk-config was correct, then it is best\n");
  2895.       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  2896.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  2897.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  2898.       printf("*** required on your system.\n");
  2899.       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
  2900.       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
  2901.       printf("*** before re-running configure\n");
  2902.     } 
  2903. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  2904.   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  2905.        (gtk_minor_version != GTK_MINOR_VERSION) ||
  2906.            (gtk_micro_version != GTK_MICRO_VERSION))
  2907.     {
  2908.       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  2909.          GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  2910.       printf("*** library (version %d.%d.%d)\n",
  2911.          gtk_major_version, gtk_minor_version, gtk_micro_version);
  2912.     }
  2913. #endif /* defined (GTK_MAJOR_VERSION) ... */
  2914.   else
  2915.     {
  2916.       if ((gtk_major_version > major) ||
  2917.         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  2918.         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  2919.       {
  2920.         return 0;
  2921.        }
  2922.      else
  2923.       {
  2924.         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  2925.                gtk_major_version, gtk_minor_version, gtk_micro_version);
  2926.         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  2927.            major, minor, micro);
  2928.         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  2929.         printf("***\n");
  2930.         printf("*** If you have already installed a sufficiently new version, this error\n");
  2931.         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
  2932.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  2933.         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
  2934.         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
  2935.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  2936.         printf("*** so that the correct libraries are found at run-time))\n");
  2937.       }
  2938.     }
  2939.   return 1;
  2940. }
  2941.  
  2942. EOF
  2943. if { (eval echo configure:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2944. then
  2945.   :
  2946. else
  2947.   echo "configure: failed program was:" >&5
  2948.   cat conftest.$ac_ext >&5
  2949.   rm -fr conftest*
  2950.   no_gtk=yes
  2951. fi
  2952. rm -fr conftest*
  2953. fi
  2954.  
  2955.        CFLAGS="$ac_save_CFLAGS"
  2956.        LIBS="$ac_save_LIBS"
  2957.      fi
  2958.   fi
  2959.   if test "x$no_gtk" = x ; then
  2960.      echo "$ac_t""yes" 1>&6
  2961.      
  2962.     cat >> confdefs.h <<\EOF
  2963. #define ENABLE_GTK 1
  2964. EOF
  2965.  
  2966.     CFLAGS="$CFLAGS $GTK_CFLAGS"
  2967.     CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
  2968.     LIBS="$LIBS $GTK_LIBS"
  2969.     UISRCS=prefs_editor_gtk.cpp
  2970.        
  2971.   else
  2972.      echo "$ac_t""no" 1>&6
  2973.      if test "$GTK_CONFIG" = "no" ; then
  2974.        echo "*** The gtk-config script installed by GTK could not be found"
  2975.        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  2976.        echo "*** your path, or set the GTK_CONFIG environment variable to the"
  2977.        echo "*** full path to gtk-config."
  2978.      else
  2979.        if test -f conf.gtktest ; then
  2980.         :
  2981.        else
  2982.           echo "*** Could not run GTK test program, checking why..."
  2983.           CFLAGS="$CFLAGS $GTK_CFLAGS"
  2984.           LIBS="$LIBS $GTK_LIBS"
  2985.           cat > conftest.$ac_ext <<EOF
  2986. #line 2987 "configure"
  2987. #include "confdefs.h"
  2988.  
  2989. #include <gtk/gtk.h>
  2990. #include <stdio.h>
  2991.  
  2992. int main() {
  2993.  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
  2994. ; return 0; }
  2995. EOF
  2996. if { (eval echo configure:2997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2997.   rm -rf conftest*
  2998.    echo "*** The test program compiled, but did not run. This usually means"
  2999.           echo "*** that the run-time linker is not finding GTK or finding the wrong"
  3000.           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  3001.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3002.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  3003.           echo "*** is required on your system"
  3004.       echo "***"
  3005.           echo "*** If you have an old version installed, it is best to remove it, although"
  3006.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3007.           echo "***"
  3008.           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  3009.           echo "*** came with the system with the command"
  3010.           echo "***"
  3011.           echo "***    rpm --erase --nodeps gtk gtk-devel" 
  3012. else
  3013.   echo "configure: failed program was:" >&5
  3014.   cat conftest.$ac_ext >&5
  3015.   rm -rf conftest*
  3016.    echo "*** The test program failed to compile or link. See the file config.log for the"
  3017.           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  3018.           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  3019.           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
  3020. fi
  3021. rm -f conftest*
  3022.           CFLAGS="$ac_save_CFLAGS"
  3023.           LIBS="$ac_save_LIBS"
  3024.        fi
  3025.      fi
  3026.      GTK_CFLAGS=""
  3027.      GTK_LIBS=""
  3028.      
  3029.     echo "configure: warning: Could not find GTK+, disabling user interface." 1>&2
  3030.     WANT_GTK=no
  3031.   
  3032.   fi
  3033.   
  3034.   
  3035.   rm -f conf.gtktest
  3036.  
  3037. fi
  3038.  
  3039. if [ "x$WANT_ESD" = "xyes" ]; then
  3040.   # Check whether --with-esd-prefix or --without-esd-prefix was given.
  3041. if test "${with_esd_prefix+set}" = set; then
  3042.   withval="$with_esd_prefix"
  3043.   esd_prefix="$withval"
  3044. else
  3045.   esd_prefix=""
  3046. fi
  3047.  
  3048. # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
  3049. if test "${with_esd_exec_prefix+set}" = set; then
  3050.   withval="$with_esd_exec_prefix"
  3051.   esd_exec_prefix="$withval"
  3052. else
  3053.   esd_exec_prefix=""
  3054. fi
  3055.  
  3056. # Check whether --enable-esdtest or --disable-esdtest was given.
  3057. if test "${enable_esdtest+set}" = set; then
  3058.   enableval="$enable_esdtest"
  3059.   :
  3060. else
  3061.   enable_esdtest=yes
  3062. fi
  3063.  
  3064.  
  3065.   if test x$esd_exec_prefix != x ; then
  3066.      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  3067.      if test x${ESD_CONFIG+set} != xset ; then
  3068.         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  3069.      fi
  3070.   fi
  3071.   if test x$esd_prefix != x ; then
  3072.      esd_args="$esd_args --prefix=$esd_prefix"
  3073.      if test x${ESD_CONFIG+set} != xset ; then
  3074.         ESD_CONFIG=$esd_prefix/bin/esd-config
  3075.      fi
  3076.   fi
  3077.  
  3078.   # Extract the first word of "esd-config", so it can be a program name with args.
  3079. set dummy esd-config; ac_word=$2
  3080. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3081. echo "configure:3082: checking for $ac_word" >&5
  3082. if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
  3083.   echo $ac_n "(cached) $ac_c" 1>&6
  3084. else
  3085.   case "$ESD_CONFIG" in
  3086.   /*)
  3087.   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  3088.   ;;
  3089.   ?:/*)             
  3090.   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
  3091.   ;;
  3092.   *)
  3093.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  3094.   ac_dummy="$PATH"
  3095.   for ac_dir in $ac_dummy; do 
  3096.     test -z "$ac_dir" && ac_dir=.
  3097.     if test -f $ac_dir/$ac_word; then
  3098.       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
  3099.       break
  3100.     fi
  3101.   done
  3102.   IFS="$ac_save_ifs"
  3103.   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  3104.   ;;
  3105. esac
  3106. fi
  3107. ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
  3108. if test -n "$ESD_CONFIG"; then
  3109.   echo "$ac_t""$ESD_CONFIG" 1>&6
  3110. else
  3111.   echo "$ac_t""no" 1>&6
  3112. fi
  3113.  
  3114.   min_esd_version=0.2.8
  3115.   echo $ac_n "checking for ESD - version >= $min_esd_version""... $ac_c" 1>&6
  3116. echo "configure:3117: checking for ESD - version >= $min_esd_version" >&5
  3117.   no_esd=""
  3118.   if test "$ESD_CONFIG" = "no" ; then
  3119.     no_esd=yes
  3120.   else
  3121.     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  3122.     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  3123.  
  3124.     esd_major_version=`$ESD_CONFIG $esd_args --version | \
  3125.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3126.     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  3127.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3128.     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  3129.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3130.     if test "x$enable_esdtest" = "xyes" ; then
  3131.       ac_save_CFLAGS="$CFLAGS"
  3132.       ac_save_LIBS="$LIBS"
  3133.       CFLAGS="$CFLAGS $ESD_CFLAGS"
  3134.       LIBS="$LIBS $ESD_LIBS"
  3135.       rm -f conf.esdtest
  3136.       if test "$cross_compiling" = yes; then
  3137.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  3138. else
  3139.   cat > conftest.$ac_ext <<EOF
  3140. #line 3141 "configure"
  3141. #include "confdefs.h"
  3142.  
  3143. #include <stdio.h>
  3144. #include <stdlib.h>
  3145. #include <string.h>
  3146. #include <esd.h>
  3147.  
  3148. char*
  3149. my_strdup (char *str)
  3150. {
  3151.   char *new_str;
  3152.   
  3153.   if (str)
  3154.     {
  3155.       new_str = malloc ((strlen (str) + 1) * sizeof(char));
  3156.       strcpy (new_str, str);
  3157.     }
  3158.   else
  3159.     new_str = NULL;
  3160.   
  3161.   return new_str;
  3162. }
  3163.  
  3164. int main ()
  3165. {
  3166.   int major, minor, micro;
  3167.   char *tmp_version;
  3168.  
  3169.   system ("touch conf.esdtest");
  3170.  
  3171.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  3172.   tmp_version = my_strdup("$min_esd_version");
  3173.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  3174.      printf("%s, bad version string\n", "$min_esd_version");
  3175.      exit(1);
  3176.    }
  3177.  
  3178.    if (($esd_major_version > major) ||
  3179.       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  3180.       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  3181.     {
  3182.       return 0;
  3183.     }
  3184.   else
  3185.     {
  3186.       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  3187.       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  3188.       printf("*** best to upgrade to the required version.\n");
  3189.       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  3190.       printf("*** to point to the correct copy of esd-config, and remove the file\n");
  3191.       printf("*** config.cache before re-running configure\n");
  3192.       return 1;
  3193.     }
  3194. }
  3195.  
  3196.  
  3197. EOF
  3198. if { (eval echo configure:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3199. then
  3200.   :
  3201. else
  3202.   echo "configure: failed program was:" >&5
  3203.   cat conftest.$ac_ext >&5
  3204.   rm -fr conftest*
  3205.   no_esd=yes
  3206. fi
  3207. rm -fr conftest*
  3208. fi
  3209.  
  3210.        CFLAGS="$ac_save_CFLAGS"
  3211.        LIBS="$ac_save_LIBS"
  3212.      fi
  3213.   fi
  3214.   if test "x$no_esd" = x ; then
  3215.      echo "$ac_t""yes" 1>&6
  3216.      
  3217.     cat >> confdefs.h <<\EOF
  3218. #define ENABLE_ESD 1
  3219. EOF
  3220.  
  3221.     CFLAGS="$CFLAGS $ESD_CFLAGS"
  3222.     CXXFLAGS="$CXXFLAGS $ESD_CFLAGS"
  3223.     LIBS="$LIBS $ESD_LIBS"
  3224.        
  3225.   else
  3226.      echo "$ac_t""no" 1>&6
  3227.      if test "$ESD_CONFIG" = "no" ; then
  3228.        echo "*** The esd-config script installed by ESD could not be found"
  3229.        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  3230.        echo "*** your path, or set the ESD_CONFIG environment variable to the"
  3231.        echo "*** full path to esd-config."
  3232.      else
  3233.        if test -f conf.esdtest ; then
  3234.         :
  3235.        else
  3236.           echo "*** Could not run ESD test program, checking why..."
  3237.           CFLAGS="$CFLAGS $ESD_CFLAGS"
  3238.           LIBS="$LIBS $ESD_LIBS"
  3239.           cat > conftest.$ac_ext <<EOF
  3240. #line 3241 "configure"
  3241. #include "confdefs.h"
  3242.  
  3243. #include <stdio.h>
  3244. #include <esd.h>
  3245.  
  3246. int main() {
  3247.  return 0; 
  3248. ; return 0; }
  3249. EOF
  3250. if { (eval echo configure:3251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3251.   rm -rf conftest*
  3252.    echo "*** The test program compiled, but did not run. This usually means"
  3253.           echo "*** that the run-time linker is not finding ESD or finding the wrong"
  3254.           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  3255.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3256.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  3257.           echo "*** is required on your system"
  3258.       echo "***"
  3259.           echo "*** If you have an old version installed, it is best to remove it, although"
  3260.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3261. else
  3262.   echo "configure: failed program was:" >&5
  3263.   cat conftest.$ac_ext >&5
  3264.   rm -rf conftest*
  3265.    echo "*** The test program failed to compile or link. See the file config.log for the"
  3266.           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  3267.           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  3268.           echo "*** may want to edit the esd-config script: $ESD_CONFIG" 
  3269. fi
  3270. rm -f conftest*
  3271.           CFLAGS="$ac_save_CFLAGS"
  3272.           LIBS="$ac_save_LIBS"
  3273.        fi
  3274.      fi
  3275.      ESD_CFLAGS=""
  3276.      ESD_LIBS=""
  3277.      
  3278.     echo "configure: warning: Could not find ESD, disabling ESD support." 1>&2
  3279.     WANT_ESD=no
  3280.   
  3281.   fi
  3282.   
  3283.   
  3284.   rm -f conf.esdtest
  3285.  
  3286. fi
  3287.  
  3288. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  3289. echo "configure:3290: checking for ANSI C header files" >&5
  3290. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  3291.   echo $ac_n "(cached) $ac_c" 1>&6
  3292. else
  3293.   cat > conftest.$ac_ext <<EOF
  3294. #line 3295 "configure"
  3295. #include "confdefs.h"
  3296. #include <stdlib.h>
  3297. #include <stdarg.h>
  3298. #include <string.h>
  3299. #include <float.h>
  3300. EOF
  3301. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3302. { (eval echo configure:3303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3303. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3304. if test -z "$ac_err"; then
  3305.   rm -rf conftest*
  3306.   ac_cv_header_stdc=yes
  3307. else
  3308.   echo "$ac_err" >&5
  3309.   echo "configure: failed program was:" >&5
  3310.   cat conftest.$ac_ext >&5
  3311.   rm -rf conftest*
  3312.   ac_cv_header_stdc=no
  3313. fi
  3314. rm -f conftest*
  3315.  
  3316. if test $ac_cv_header_stdc = yes; then
  3317.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3318. cat > conftest.$ac_ext <<EOF
  3319. #line 3320 "configure"
  3320. #include "confdefs.h"
  3321. #include <string.h>
  3322. EOF
  3323. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3324.   egrep "memchr" >/dev/null 2>&1; then
  3325.   :
  3326. else
  3327.   rm -rf conftest*
  3328.   ac_cv_header_stdc=no
  3329. fi
  3330. rm -f conftest*
  3331.  
  3332. fi
  3333.  
  3334. if test $ac_cv_header_stdc = yes; then
  3335.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3336. cat > conftest.$ac_ext <<EOF
  3337. #line 3338 "configure"
  3338. #include "confdefs.h"
  3339. #include <stdlib.h>
  3340. EOF
  3341. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3342.   egrep "free" >/dev/null 2>&1; then
  3343.   :
  3344. else
  3345.   rm -rf conftest*
  3346.   ac_cv_header_stdc=no
  3347. fi
  3348. rm -f conftest*
  3349.  
  3350. fi
  3351.  
  3352. if test $ac_cv_header_stdc = yes; then
  3353.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3354. if test "$cross_compiling" = yes; then
  3355.   :
  3356. else
  3357.   cat > conftest.$ac_ext <<EOF
  3358. #line 3359 "configure"
  3359. #include "confdefs.h"
  3360. #include <ctype.h>
  3361. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3362. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3363. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3364. int main () { int i; for (i = 0; i < 256; i++)
  3365. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  3366. exit (0); }
  3367.  
  3368. EOF
  3369. if { (eval echo configure:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3370. then
  3371.   :
  3372. else
  3373.   echo "configure: failed program was:" >&5
  3374.   cat conftest.$ac_ext >&5
  3375.   rm -fr conftest*
  3376.   ac_cv_header_stdc=no
  3377. fi
  3378. rm -fr conftest*
  3379. fi
  3380.  
  3381. fi
  3382. fi
  3383.  
  3384. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  3385. if test $ac_cv_header_stdc = yes; then
  3386.   cat >> confdefs.h <<\EOF
  3387. #define STDC_HEADERS 1
  3388. EOF
  3389.  
  3390. fi
  3391.  
  3392. for ac_hdr in unistd.h fcntl.h sys/time.h
  3393. do
  3394. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  3395. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  3396. echo "configure:3397: checking for $ac_hdr" >&5
  3397. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3398.   echo $ac_n "(cached) $ac_c" 1>&6
  3399. else
  3400.   cat > conftest.$ac_ext <<EOF
  3401. #line 3402 "configure"
  3402. #include "confdefs.h"
  3403. #include <$ac_hdr>
  3404. EOF
  3405. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3406. { (eval echo configure:3407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3407. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3408. if test -z "$ac_err"; then
  3409.   rm -rf conftest*
  3410.   eval "ac_cv_header_$ac_safe=yes"
  3411. else
  3412.   echo "$ac_err" >&5
  3413.   echo "configure: failed program was:" >&5
  3414.   cat conftest.$ac_ext >&5
  3415.   rm -rf conftest*
  3416.   eval "ac_cv_header_$ac_safe=no"
  3417. fi
  3418. rm -f conftest*
  3419. fi
  3420. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3421.   echo "$ac_t""yes" 1>&6
  3422.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  3423.   cat >> confdefs.h <<EOF
  3424. #define $ac_tr_hdr 1
  3425. EOF
  3426.  
  3427. else
  3428.   echo "$ac_t""no" 1>&6
  3429. fi
  3430. done
  3431.  
  3432.  
  3433. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  3434. echo "configure:3435: checking whether byte ordering is bigendian" >&5
  3435. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  3436.   echo $ac_n "(cached) $ac_c" 1>&6
  3437. else
  3438.   ac_cv_c_bigendian=unknown
  3439. # See if sys/param.h defines the BYTE_ORDER macro.
  3440. cat > conftest.$ac_ext <<EOF
  3441. #line 3442 "configure"
  3442. #include "confdefs.h"
  3443. #include <sys/types.h>
  3444. #include <sys/param.h>
  3445. int main() {
  3446.  
  3447. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  3448.  bogus endian macros
  3449. #endif
  3450. ; return 0; }
  3451. EOF
  3452. if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3453.   rm -rf conftest*
  3454.   # It does; now see whether it defined to BIG_ENDIAN or not.
  3455. cat > conftest.$ac_ext <<EOF
  3456. #line 3457 "configure"
  3457. #include "confdefs.h"
  3458. #include <sys/types.h>
  3459. #include <sys/param.h>
  3460. int main() {
  3461.  
  3462. #if BYTE_ORDER != BIG_ENDIAN
  3463.  not big endian
  3464. #endif
  3465. ; return 0; }
  3466. EOF
  3467. if { (eval echo configure:3468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3468.   rm -rf conftest*
  3469.   ac_cv_c_bigendian=yes
  3470. else
  3471.   echo "configure: failed program was:" >&5
  3472.   cat conftest.$ac_ext >&5
  3473.   rm -rf conftest*
  3474.   ac_cv_c_bigendian=no
  3475. fi
  3476. rm -f conftest*
  3477. else
  3478.   echo "configure: failed program was:" >&5
  3479.   cat conftest.$ac_ext >&5
  3480. fi
  3481. rm -f conftest*
  3482. if test $ac_cv_c_bigendian = unknown; then
  3483. if test "$cross_compiling" = yes; then
  3484.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  3485. else
  3486.   cat > conftest.$ac_ext <<EOF
  3487. #line 3488 "configure"
  3488. #include "confdefs.h"
  3489. main () {
  3490.   /* Are we little or big endian?  From Harbison&Steele.  */
  3491.   union
  3492.   {
  3493.     long l;
  3494.     char c[sizeof (long)];
  3495.   } u;
  3496.   u.l = 1;
  3497.   exit (u.c[sizeof (long) - 1] == 1);
  3498. }
  3499. EOF
  3500. if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3501. then
  3502.   ac_cv_c_bigendian=no
  3503. else
  3504.   echo "configure: failed program was:" >&5
  3505.   cat conftest.$ac_ext >&5
  3506.   rm -fr conftest*
  3507.   ac_cv_c_bigendian=yes
  3508. fi
  3509. rm -fr conftest*
  3510. fi
  3511.  
  3512. fi
  3513. fi
  3514.  
  3515. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  3516. if test $ac_cv_c_bigendian = yes; then
  3517.   cat >> confdefs.h <<\EOF
  3518. #define WORDS_BIGENDIAN 1
  3519. EOF
  3520.  
  3521. fi
  3522.  
  3523. echo $ac_n "checking for working const""... $ac_c" 1>&6
  3524. echo "configure:3525: checking for working const" >&5
  3525. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  3526.   echo $ac_n "(cached) $ac_c" 1>&6
  3527. else
  3528.   cat > conftest.$ac_ext <<EOF
  3529. #line 3530 "configure"
  3530. #include "confdefs.h"
  3531.  
  3532. int main() {
  3533.  
  3534. /* Ultrix mips cc rejects this.  */
  3535. typedef int charset[2]; const charset x;
  3536. /* SunOS 4.1.1 cc rejects this.  */
  3537. char const *const *ccp;
  3538. char **p;
  3539. /* NEC SVR4.0.2 mips cc rejects this.  */
  3540. struct point {int x, y;};
  3541. static struct point const zero = {0,0};
  3542. /* AIX XL C 1.02.0.0 rejects this.
  3543.    It does not let you subtract one const X* pointer from another in an arm
  3544.    of an if-expression whose if-part is not a constant expression */
  3545. const char *g = "string";
  3546. ccp = &g + (g ? g-g : 0);
  3547. /* HPUX 7.0 cc rejects these. */
  3548. ++ccp;
  3549. p = (char**) ccp;
  3550. ccp = (char const *const *) p;
  3551. { /* SCO 3.2v4 cc rejects this.  */
  3552.   char *t;
  3553.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  3554.  
  3555.   *t++ = 0;
  3556. }
  3557. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  3558.   int x[] = {25, 17};
  3559.   const int *foo = &x[0];
  3560.   ++foo;
  3561. }
  3562. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3563.   typedef const int *iptr;
  3564.   iptr p = 0;
  3565.   ++p;
  3566. }
  3567. { /* AIX XL C 1.02.0.0 rejects this saying
  3568.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3569.   struct s { int j; const int *ap[3]; };
  3570.   struct s *b; b->j = 5;
  3571. }
  3572. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3573.   const int foo = 10;
  3574. }
  3575.  
  3576. ; return 0; }
  3577. EOF
  3578. if { (eval echo configure:3579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3579.   rm -rf conftest*
  3580.   ac_cv_c_const=yes
  3581. else
  3582.   echo "configure: failed program was:" >&5
  3583.   cat conftest.$ac_ext >&5
  3584.   rm -rf conftest*
  3585.   ac_cv_c_const=no
  3586. fi
  3587. rm -f conftest*
  3588. fi
  3589.  
  3590. echo "$ac_t""$ac_cv_c_const" 1>&6
  3591. if test $ac_cv_c_const = no; then
  3592.   cat >> confdefs.h <<\EOF
  3593. #define const 
  3594. EOF
  3595.  
  3596. fi
  3597.  
  3598. echo $ac_n "checking for inline""... $ac_c" 1>&6
  3599. echo "configure:3600: checking for inline" >&5
  3600. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  3601.   echo $ac_n "(cached) $ac_c" 1>&6
  3602. else
  3603.   ac_cv_c_inline=no
  3604. for ac_kw in inline __inline__ __inline; do
  3605.   cat > conftest.$ac_ext <<EOF
  3606. #line 3607 "configure"
  3607. #include "confdefs.h"
  3608.  
  3609. int main() {
  3610. } $ac_kw foo() {
  3611. ; return 0; }
  3612. EOF
  3613. if { (eval echo configure:3614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3614.   rm -rf conftest*
  3615.   ac_cv_c_inline=$ac_kw; break
  3616. else
  3617.   echo "configure: failed program was:" >&5
  3618.   cat conftest.$ac_ext >&5
  3619. fi
  3620. rm -f conftest*
  3621. done
  3622.  
  3623. fi
  3624.  
  3625. echo "$ac_t""$ac_cv_c_inline" 1>&6
  3626. case "$ac_cv_c_inline" in
  3627.   inline | yes) ;;
  3628.   no) cat >> confdefs.h <<\EOF
  3629. #define inline 
  3630. EOF
  3631.  ;;
  3632.   *)  cat >> confdefs.h <<EOF
  3633. #define inline $ac_cv_c_inline
  3634. EOF
  3635.  ;;
  3636. esac
  3637.  
  3638. echo $ac_n "checking size of short""... $ac_c" 1>&6
  3639. echo "configure:3640: checking size of short" >&5
  3640. if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
  3641.   echo $ac_n "(cached) $ac_c" 1>&6
  3642. else
  3643.   if test "$cross_compiling" = yes; then
  3644.   ac_cv_sizeof_short=2
  3645. else
  3646.   cat > conftest.$ac_ext <<EOF
  3647. #line 3648 "configure"
  3648. #include "confdefs.h"
  3649. #include <stdio.h>
  3650. main()
  3651. {
  3652.   FILE *f=fopen("conftestval", "w");
  3653.   if (!f) exit(1);
  3654.   fprintf(f, "%d\n", sizeof(short));
  3655.   exit(0);
  3656. }
  3657. EOF
  3658. if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3659. then
  3660.   ac_cv_sizeof_short=`cat conftestval`
  3661. else
  3662.   echo "configure: failed program was:" >&5
  3663.   cat conftest.$ac_ext >&5
  3664.   rm -fr conftest*
  3665.   ac_cv_sizeof_short=0
  3666. fi
  3667. rm -fr conftest*
  3668. fi
  3669.  
  3670. fi
  3671. echo "$ac_t""$ac_cv_sizeof_short" 1>&6
  3672. cat >> confdefs.h <<EOF
  3673. #define SIZEOF_SHORT $ac_cv_sizeof_short
  3674. EOF
  3675.  
  3676.  
  3677. echo $ac_n "checking size of int""... $ac_c" 1>&6
  3678. echo "configure:3679: checking size of int" >&5
  3679. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  3680.   echo $ac_n "(cached) $ac_c" 1>&6
  3681. else
  3682.   if test "$cross_compiling" = yes; then
  3683.   ac_cv_sizeof_int=4
  3684. else
  3685.   cat > conftest.$ac_ext <<EOF
  3686. #line 3687 "configure"
  3687. #include "confdefs.h"
  3688. #include <stdio.h>
  3689. main()
  3690. {
  3691.   FILE *f=fopen("conftestval", "w");
  3692.   if (!f) exit(1);
  3693.   fprintf(f, "%d\n", sizeof(int));
  3694.   exit(0);
  3695. }
  3696. EOF
  3697. if { (eval echo configure:3698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3698. then
  3699.   ac_cv_sizeof_int=`cat conftestval`
  3700. else
  3701.   echo "configure: failed program was:" >&5
  3702.   cat conftest.$ac_ext >&5
  3703.   rm -fr conftest*
  3704.   ac_cv_sizeof_int=0
  3705. fi
  3706. rm -fr conftest*
  3707. fi
  3708.  
  3709. fi
  3710. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  3711. cat >> confdefs.h <<EOF
  3712. #define SIZEOF_INT $ac_cv_sizeof_int
  3713. EOF
  3714.  
  3715.  
  3716. echo $ac_n "checking size of long""... $ac_c" 1>&6
  3717. echo "configure:3718: checking size of long" >&5
  3718. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  3719.   echo $ac_n "(cached) $ac_c" 1>&6
  3720. else
  3721.   if test "$cross_compiling" = yes; then
  3722.   ac_cv_sizeof_long=4
  3723. else
  3724.   cat > conftest.$ac_ext <<EOF
  3725. #line 3726 "configure"
  3726. #include "confdefs.h"
  3727. #include <stdio.h>
  3728. main()
  3729. {
  3730.   FILE *f=fopen("conftestval", "w");
  3731.   if (!f) exit(1);
  3732.   fprintf(f, "%d\n", sizeof(long));
  3733.   exit(0);
  3734. }
  3735. EOF
  3736. if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3737. then
  3738.   ac_cv_sizeof_long=`cat conftestval`
  3739. else
  3740.   echo "configure: failed program was:" >&5
  3741.   cat conftest.$ac_ext >&5
  3742.   rm -fr conftest*
  3743.   ac_cv_sizeof_long=0
  3744. fi
  3745. rm -fr conftest*
  3746. fi
  3747.  
  3748. fi
  3749. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  3750. cat >> confdefs.h <<EOF
  3751. #define SIZEOF_LONG $ac_cv_sizeof_long
  3752. EOF
  3753.  
  3754.  
  3755. echo $ac_n "checking size of long long""... $ac_c" 1>&6
  3756. echo "configure:3757: checking size of long long" >&5
  3757. if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  3758.   echo $ac_n "(cached) $ac_c" 1>&6
  3759. else
  3760.   if test "$cross_compiling" = yes; then
  3761.   ac_cv_sizeof_long_long=8
  3762. else
  3763.   cat > conftest.$ac_ext <<EOF
  3764. #line 3765 "configure"
  3765. #include "confdefs.h"
  3766. #include <stdio.h>
  3767. main()
  3768. {
  3769.   FILE *f=fopen("conftestval", "w");
  3770.   if (!f) exit(1);
  3771.   fprintf(f, "%d\n", sizeof(long long));
  3772.   exit(0);
  3773. }
  3774. EOF
  3775. if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3776. then
  3777.   ac_cv_sizeof_long_long=`cat conftestval`
  3778. else
  3779.   echo "configure: failed program was:" >&5
  3780.   cat conftest.$ac_ext >&5
  3781.   rm -fr conftest*
  3782.   ac_cv_sizeof_long_long=0
  3783. fi
  3784. rm -fr conftest*
  3785. fi
  3786.  
  3787. fi
  3788. echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
  3789. cat >> confdefs.h <<EOF
  3790. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  3791. EOF
  3792.  
  3793.  
  3794. echo $ac_n "checking size of void *""... $ac_c" 1>&6
  3795. echo "configure:3796: checking size of void *" >&5
  3796. if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
  3797.   echo $ac_n "(cached) $ac_c" 1>&6
  3798. else
  3799.   if test "$cross_compiling" = yes; then
  3800.   ac_cv_sizeof_void_p=4
  3801. else
  3802.   cat > conftest.$ac_ext <<EOF
  3803. #line 3804 "configure"
  3804. #include "confdefs.h"
  3805. #include <stdio.h>
  3806. main()
  3807. {
  3808.   FILE *f=fopen("conftestval", "w");
  3809.   if (!f) exit(1);
  3810.   fprintf(f, "%d\n", sizeof(void *));
  3811.   exit(0);
  3812. }
  3813. EOF
  3814. if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  3815. then
  3816.   ac_cv_sizeof_void_p=`cat conftestval`
  3817. else
  3818.   echo "configure: failed program was:" >&5
  3819.   cat conftest.$ac_ext >&5
  3820.   rm -fr conftest*
  3821.   ac_cv_sizeof_void_p=0
  3822. fi
  3823. rm -fr conftest*
  3824. fi
  3825.  
  3826. fi
  3827. echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
  3828. cat >> confdefs.h <<EOF
  3829. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  3830. EOF
  3831.  
  3832.  
  3833. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  3834. echo "configure:3835: checking for off_t" >&5
  3835. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  3836.   echo $ac_n "(cached) $ac_c" 1>&6
  3837. else
  3838.   cat > conftest.$ac_ext <<EOF
  3839. #line 3840 "configure"
  3840. #include "confdefs.h"
  3841. #include <sys/types.h>
  3842. #if STDC_HEADERS
  3843. #include <stdlib.h>
  3844. #include <stddef.h>
  3845. #endif
  3846. EOF
  3847. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3848.   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3849.   rm -rf conftest*
  3850.   ac_cv_type_off_t=yes
  3851. else
  3852.   rm -rf conftest*
  3853.   ac_cv_type_off_t=no
  3854. fi
  3855. rm -f conftest*
  3856.  
  3857. fi
  3858. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  3859. if test $ac_cv_type_off_t = no; then
  3860.   cat >> confdefs.h <<\EOF
  3861. #define off_t long
  3862. EOF
  3863.  
  3864. fi
  3865.  
  3866. echo $ac_n "checking for loff_t""... $ac_c" 1>&6
  3867. echo "configure:3868: checking for loff_t" >&5
  3868. if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
  3869.   echo $ac_n "(cached) $ac_c" 1>&6
  3870. else
  3871.   cat > conftest.$ac_ext <<EOF
  3872. #line 3873 "configure"
  3873. #include "confdefs.h"
  3874. #include <sys/types.h>
  3875. #if STDC_HEADERS
  3876. #include <stdlib.h>
  3877. #include <stddef.h>
  3878. #endif
  3879. EOF
  3880. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3881.   egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3882.   rm -rf conftest*
  3883.   ac_cv_type_loff_t=yes
  3884. else
  3885.   rm -rf conftest*
  3886.   ac_cv_type_loff_t=no
  3887. fi
  3888. rm -f conftest*
  3889.  
  3890. fi
  3891. echo "$ac_t""$ac_cv_type_loff_t" 1>&6
  3892. if test $ac_cv_type_loff_t = no; then
  3893.   cat >> confdefs.h <<\EOF
  3894. #define loff_t off_t
  3895. EOF
  3896.  
  3897. fi
  3898.  
  3899. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  3900. echo "configure:3901: checking for size_t" >&5
  3901. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  3902.   echo $ac_n "(cached) $ac_c" 1>&6
  3903. else
  3904.   cat > conftest.$ac_ext <<EOF
  3905. #line 3906 "configure"
  3906. #include "confdefs.h"
  3907. #include <sys/types.h>
  3908. #if STDC_HEADERS
  3909. #include <stdlib.h>
  3910. #include <stddef.h>
  3911. #endif
  3912. EOF
  3913. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3914.   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  3915.   rm -rf conftest*
  3916.   ac_cv_type_size_t=yes
  3917. else
  3918.   rm -rf conftest*
  3919.   ac_cv_type_size_t=no
  3920. fi
  3921. rm -f conftest*
  3922.  
  3923. fi
  3924. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  3925. if test $ac_cv_type_size_t = no; then
  3926.   cat >> confdefs.h <<\EOF
  3927. #define size_t unsigned
  3928. EOF
  3929.  
  3930. fi
  3931.  
  3932. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  3933. echo "configure:3934: checking return type of signal handlers" >&5
  3934. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  3935.   echo $ac_n "(cached) $ac_c" 1>&6
  3936. else
  3937.   cat > conftest.$ac_ext <<EOF
  3938. #line 3939 "configure"
  3939. #include "confdefs.h"
  3940. #include <sys/types.h>
  3941. #include <signal.h>
  3942. #ifdef signal
  3943. #undef signal
  3944. #endif
  3945. #ifdef __cplusplus
  3946. extern "C" void (*signal (int, void (*)(int)))(int);
  3947. #else
  3948. void (*signal ()) ();
  3949. #endif
  3950.  
  3951. int main() {
  3952. int i;
  3953. ; return 0; }
  3954. EOF
  3955. if { (eval echo configure:3956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3956.   rm -rf conftest*
  3957.   ac_cv_type_signal=void
  3958. else
  3959.   echo "configure: failed program was:" >&5
  3960.   cat conftest.$ac_ext >&5
  3961.   rm -rf conftest*
  3962.   ac_cv_type_signal=int
  3963. fi
  3964. rm -f conftest*
  3965. fi
  3966.  
  3967. echo "$ac_t""$ac_cv_type_signal" 1>&6
  3968. cat >> confdefs.h <<EOF
  3969. #define RETSIGTYPE $ac_cv_type_signal
  3970. EOF
  3971.  
  3972.  
  3973. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  3974. echo "configure:3975: checking whether time.h and sys/time.h may both be included" >&5
  3975. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  3976.   echo $ac_n "(cached) $ac_c" 1>&6
  3977. else
  3978.   cat > conftest.$ac_ext <<EOF
  3979. #line 3980 "configure"
  3980. #include "confdefs.h"
  3981. #include <sys/types.h>
  3982. #include <sys/time.h>
  3983. #include <time.h>
  3984. int main() {
  3985. struct tm *tp;
  3986. ; return 0; }
  3987. EOF
  3988. if { (eval echo configure:3989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3989.   rm -rf conftest*
  3990.   ac_cv_header_time=yes
  3991. else
  3992.   echo "configure: failed program was:" >&5
  3993.   cat conftest.$ac_ext >&5
  3994.   rm -rf conftest*
  3995.   ac_cv_header_time=no
  3996. fi
  3997. rm -f conftest*
  3998. fi
  3999.  
  4000. echo "$ac_t""$ac_cv_header_time" 1>&6
  4001. if test $ac_cv_header_time = yes; then
  4002.   cat >> confdefs.h <<\EOF
  4003. #define TIME_WITH_SYS_TIME 1
  4004. EOF
  4005.  
  4006. fi
  4007.  
  4008. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  4009. echo "configure:4010: checking whether struct tm is in sys/time.h or time.h" >&5
  4010. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  4011.   echo $ac_n "(cached) $ac_c" 1>&6
  4012. else
  4013.   cat > conftest.$ac_ext <<EOF
  4014. #line 4015 "configure"
  4015. #include "confdefs.h"
  4016. #include <sys/types.h>
  4017. #include <time.h>
  4018. int main() {
  4019. struct tm *tp; tp->tm_sec;
  4020. ; return 0; }
  4021. EOF
  4022. if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4023.   rm -rf conftest*
  4024.   ac_cv_struct_tm=time.h
  4025. else
  4026.   echo "configure: failed program was:" >&5
  4027.   cat conftest.$ac_ext >&5
  4028.   rm -rf conftest*
  4029.   ac_cv_struct_tm=sys/time.h
  4030. fi
  4031. rm -f conftest*
  4032. fi
  4033.  
  4034. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  4035. if test $ac_cv_struct_tm = sys/time.h; then
  4036.   cat >> confdefs.h <<\EOF
  4037. #define TM_IN_SYS_TIME 1
  4038. EOF
  4039.  
  4040. fi
  4041.  
  4042.  
  4043. for ac_func in strdup cfmakeraw
  4044. do
  4045. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4046. echo "configure:4047: checking for $ac_func" >&5
  4047. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4048.   echo $ac_n "(cached) $ac_c" 1>&6
  4049. else
  4050.   cat > conftest.$ac_ext <<EOF
  4051. #line 4052 "configure"
  4052. #include "confdefs.h"
  4053. /* System header to define __stub macros and hopefully few prototypes,
  4054.     which can conflict with char $ac_func(); below.  */
  4055. #include <assert.h>
  4056. /* Override any gcc2 internal prototype to avoid an error.  */
  4057. /* We use char because int might match the return type of a gcc2
  4058.     builtin and then its argument prototype would still apply.  */
  4059. char $ac_func();
  4060.  
  4061. int main() {
  4062.  
  4063. /* The GNU C library defines this for functions which it implements
  4064.     to always fail with ENOSYS.  Some functions are actually named
  4065.     something starting with __ and the normal name is an alias.  */
  4066. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4067. choke me
  4068. #else
  4069. $ac_func();
  4070. #endif
  4071.  
  4072. ; return 0; }
  4073. EOF
  4074. if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4075.   rm -rf conftest*
  4076.   eval "ac_cv_func_$ac_func=yes"
  4077. else
  4078.   echo "configure: failed program was:" >&5
  4079.   cat conftest.$ac_ext >&5
  4080.   rm -rf conftest*
  4081.   eval "ac_cv_func_$ac_func=no"
  4082. fi
  4083. rm -f conftest*
  4084. fi
  4085.  
  4086. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4087.   echo "$ac_t""yes" 1>&6
  4088.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4089.   cat >> confdefs.h <<EOF
  4090. #define $ac_tr_func 1
  4091. EOF
  4092.  
  4093. else
  4094.   echo "$ac_t""no" 1>&6
  4095. fi
  4096. done
  4097.  
  4098. for ac_func in clock_gettime timer_create
  4099. do
  4100. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4101. echo "configure:4102: checking for $ac_func" >&5
  4102. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4103.   echo $ac_n "(cached) $ac_c" 1>&6
  4104. else
  4105.   cat > conftest.$ac_ext <<EOF
  4106. #line 4107 "configure"
  4107. #include "confdefs.h"
  4108. /* System header to define __stub macros and hopefully few prototypes,
  4109.     which can conflict with char $ac_func(); below.  */
  4110. #include <assert.h>
  4111. /* Override any gcc2 internal prototype to avoid an error.  */
  4112. /* We use char because int might match the return type of a gcc2
  4113.     builtin and then its argument prototype would still apply.  */
  4114. char $ac_func();
  4115.  
  4116. int main() {
  4117.  
  4118. /* The GNU C library defines this for functions which it implements
  4119.     to always fail with ENOSYS.  Some functions are actually named
  4120.     something starting with __ and the normal name is an alias.  */
  4121. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4122. choke me
  4123. #else
  4124. $ac_func();
  4125. #endif
  4126.  
  4127. ; return 0; }
  4128. EOF
  4129. if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4130.   rm -rf conftest*
  4131.   eval "ac_cv_func_$ac_func=yes"
  4132. else
  4133.   echo "configure: failed program was:" >&5
  4134.   cat conftest.$ac_ext >&5
  4135.   rm -rf conftest*
  4136.   eval "ac_cv_func_$ac_func=no"
  4137. fi
  4138. rm -f conftest*
  4139. fi
  4140.  
  4141. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4142.   echo "$ac_t""yes" 1>&6
  4143.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4144.   cat >> confdefs.h <<EOF
  4145. #define $ac_tr_func 1
  4146. EOF
  4147.  
  4148. else
  4149.   echo "$ac_t""no" 1>&6
  4150. fi
  4151. done
  4152.  
  4153. for ac_func in sigaction signal
  4154. do
  4155. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4156. echo "configure:4157: checking for $ac_func" >&5
  4157. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4158.   echo $ac_n "(cached) $ac_c" 1>&6
  4159. else
  4160.   cat > conftest.$ac_ext <<EOF
  4161. #line 4162 "configure"
  4162. #include "confdefs.h"
  4163. /* System header to define __stub macros and hopefully few prototypes,
  4164.     which can conflict with char $ac_func(); below.  */
  4165. #include <assert.h>
  4166. /* Override any gcc2 internal prototype to avoid an error.  */
  4167. /* We use char because int might match the return type of a gcc2
  4168.     builtin and then its argument prototype would still apply.  */
  4169. char $ac_func();
  4170.  
  4171. int main() {
  4172.  
  4173. /* The GNU C library defines this for functions which it implements
  4174.     to always fail with ENOSYS.  Some functions are actually named
  4175.     something starting with __ and the normal name is an alias.  */
  4176. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4177. choke me
  4178. #else
  4179. $ac_func();
  4180. #endif
  4181.  
  4182. ; return 0; }
  4183. EOF
  4184. if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4185.   rm -rf conftest*
  4186.   eval "ac_cv_func_$ac_func=yes"
  4187. else
  4188.   echo "configure: failed program was:" >&5
  4189.   cat conftest.$ac_ext >&5
  4190.   rm -rf conftest*
  4191.   eval "ac_cv_func_$ac_func=no"
  4192. fi
  4193. rm -f conftest*
  4194. fi
  4195.  
  4196. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4197.   echo "$ac_t""yes" 1>&6
  4198.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4199.   cat >> confdefs.h <<EOF
  4200. #define $ac_tr_func 1
  4201. EOF
  4202.  
  4203. else
  4204.   echo "$ac_t""no" 1>&6
  4205. fi
  4206. done
  4207.  
  4208.  
  4209. SERIALSRC=serial_unix.cpp
  4210. ETHERSRC=../dummy/ether_dummy.cpp
  4211. SCSISRC=../dummy/scsi_dummy.cpp
  4212. AUDIOSRC=../dummy/audio_dummy.cpp
  4213. EXTRASYSSRCS=
  4214. CAN_NATIVE_M68K=no
  4215. case "$target_os" in
  4216. linux*)
  4217.   ETHERSRC=ether_unix.cpp
  4218.   AUDIOSRC=audio_oss_esd.cpp
  4219.   SCSISRC=Linux/scsi_linux.cpp
  4220.   ;;
  4221. freebsd*)
  4222.   ETHERSRC=ether_unix.cpp
  4223.   AUDIOSRC=audio_oss_esd.cpp
  4224.   DEFINES="$DEFINES -DBSD_COMP"
  4225.   CXXFLAGS="$CXXFLAGS -fpermissive"
  4226.     echo $ac_n "checking for cam_open_btl in -lcam""... $ac_c" 1>&6
  4227. echo "configure:4228: checking for cam_open_btl in -lcam" >&5
  4228. ac_lib_var=`echo cam'_'cam_open_btl | sed 'y%./+-%__p_%'`
  4229. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4230.   echo $ac_n "(cached) $ac_c" 1>&6
  4231. else
  4232.   ac_save_LIBS="$LIBS"
  4233. LIBS="-lcam  $LIBS"
  4234. cat > conftest.$ac_ext <<EOF
  4235. #line 4236 "configure"
  4236. #include "confdefs.h"
  4237. /* Override any gcc2 internal prototype to avoid an error.  */
  4238. /* We use char because int might match the return type of a gcc2
  4239.     builtin and then its argument prototype would still apply.  */
  4240. char cam_open_btl();
  4241.  
  4242. int main() {
  4243. cam_open_btl()
  4244. ; return 0; }
  4245. EOF
  4246. if { (eval echo configure:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4247.   rm -rf conftest*
  4248.   eval "ac_cv_lib_$ac_lib_var=yes"
  4249. else
  4250.   echo "configure: failed program was:" >&5
  4251.   cat conftest.$ac_ext >&5
  4252.   rm -rf conftest*
  4253.   eval "ac_cv_lib_$ac_lib_var=no"
  4254. fi
  4255. rm -f conftest*
  4256. LIBS="$ac_save_LIBS"
  4257.  
  4258. fi
  4259. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4260.   echo "$ac_t""yes" 1>&6
  4261.   HAVE_LIBCAM=yes
  4262. else
  4263.   echo "$ac_t""no" 1>&6
  4264. HAVE_LIBCAM=no
  4265. fi
  4266.  
  4267.   if [ "x$HAVE_LIBCAM" = "xno" ]; then
  4268.     echo "configure: warning: Cannot find libcam for SCSI management, disabling SCSI support." 1>&2
  4269.   else
  4270.         ac_safe=`echo "camlib.h" | sed 'y%./+-%__p_%'`
  4271. echo $ac_n "checking for camlib.h""... $ac_c" 1>&6
  4272. echo "configure:4273: checking for camlib.h" >&5
  4273. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4274.   echo $ac_n "(cached) $ac_c" 1>&6
  4275. else
  4276.   cat > conftest.$ac_ext <<EOF
  4277. #line 4278 "configure"
  4278. #include "confdefs.h"
  4279. #include <camlib.h>
  4280. EOF
  4281. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4282. { (eval echo configure:4283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4283. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4284. if test -z "$ac_err"; then
  4285.   rm -rf conftest*
  4286.   eval "ac_cv_header_$ac_safe=yes"
  4287. else
  4288.   echo "$ac_err" >&5
  4289.   echo "configure: failed program was:" >&5
  4290.   cat conftest.$ac_ext >&5
  4291.   rm -rf conftest*
  4292.   eval "ac_cv_header_$ac_safe=no"
  4293. fi
  4294. rm -f conftest*
  4295. fi
  4296. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4297.   echo "$ac_t""yes" 1>&6
  4298.   :
  4299. else
  4300.   echo "$ac_t""no" 1>&6
  4301. fi
  4302.  
  4303.     if [ "x$ac_cv_header_camlib_h" = "xno" ]; then
  4304.                   echo "configure: warning: Cannot find includes for CAM library, disabling SCSI support." 1>&2
  4305.     else
  4306.       SCSISRC=FreeBSD/scsi_freebsd.cpp
  4307.       LIBS="$LIBS -lcam"
  4308.       DEFINES="$DEFINES -DCAM"
  4309.     fi
  4310.   fi
  4311.   ;;
  4312. netbsd*)
  4313.   CAN_NATIVE_M68K=yes
  4314.   ;;
  4315. solaris*)
  4316.   AUDIOSRC=Solaris/audio_solaris.cpp
  4317.   DEFINES="$DEFINES -DBSD_COMP -D_POSIX_PTHREAD_SEMANTICS"
  4318.   ;;
  4319. irix*)
  4320.   AUDIOSRC=Irix/audio_irix.cpp
  4321.   EXTRASYSSRCS=Irix/unaligned.c
  4322.     DEFINES="$DEFINES -DCRTSCTS=CNEW_RTSCTS -DB230400=B115200 -DSTDC_HEADERS"
  4323.   LIBS="$LIBS -laudio"
  4324.  
  4325.     HAVE_OFAST=no
  4326.   ocflags="$CFLAGS"
  4327.   CFLAGS=`echo $CFLAGS | sed -e 's/ -g / -Ofast /;s/^-g /-Ofast /;s/-g$/ -Ofast/;s/^-g$/-Ofast/'`
  4328.   echo $ac_n "checking if "-Ofast" works""... $ac_c" 1>&6
  4329. echo "configure:4330: checking if "-Ofast" works" >&5
  4330.     cat > conftest.$ac_ext <<EOF
  4331. #line 4332 "configure"
  4332. #include "confdefs.h"
  4333.  
  4334. int main() {
  4335.  
  4336. ; return 0; }
  4337. EOF
  4338. if { (eval echo configure:4339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4339.   rm -rf conftest*
  4340.   echo "$ac_t""yes" 1>&6; HAVE_OFAST=yes
  4341. else
  4342.   echo "configure: failed program was:" >&5
  4343.   cat conftest.$ac_ext >&5
  4344.   rm -rf conftest*
  4345.   echo "$ac_t""no" 1>&6
  4346. fi
  4347. rm -f conftest*
  4348.   CFLAGS="$ocflags"
  4349.  
  4350.   ;;
  4351. esac
  4352.  
  4353. WANT_NATIVE_M68K=no
  4354. if [ "x$HAVE_M68K" = "xyes" -a "x$CAN_NATIVE_M68K" = "xyes" ]; then
  4355.   cat >> confdefs.h <<\EOF
  4356. #define ENABLE_NATIVE_M68K 1
  4357. EOF
  4358.  
  4359.   WANT_NATIVE_M68K=yes
  4360. fi
  4361.  
  4362. if [ "x$HAVE_PTHREADS" = "xno" ]; then
  4363.     echo "configure: warning: You don't have pthreads, disabling serial, ethernet and audio support." 1>&2
  4364.   SERIALSRC=../dummy/serial_dummy.cpp
  4365.   ETHERSRC=../dummy/ether_dummy.cpp
  4366.   AUDIOSRC=../dummy/audio_dummy.cpp
  4367. fi
  4368. SYSSRCS="$SERIALSRC $ETHERSRC $SCSISRC $AUDIOSRC $SEMSRC $UISRCS $MONSRCS $EXTRASYSSRCS"
  4369.  
  4370.  
  4371.  
  4372. echo $ac_n "checking "whether we can map Low Memory area 0x0000-0x2000"""... $ac_c" 1>&6
  4373. echo "configure:4374: checking "whether we can map Low Memory area 0x0000-0x2000"" >&5
  4374. if eval "test \"`echo '$''{'ac_cv_can_map_lm'+set}'`\" = set"; then
  4375.   echo $ac_n "(cached) $ac_c" 1>&6
  4376. else
  4377.   
  4378.   
  4379.   ac_ext=C
  4380. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4381. ac_cpp='$CXXCPP $CPPFLAGS'
  4382. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4383. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4384. cross_compiling=$ac_cv_prog_cxx_cross
  4385.  
  4386.   if test "$cross_compiling" = yes; then
  4387.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4388. else
  4389.   cat > conftest.$ac_ext <<EOF
  4390. #line 4391 "configure"
  4391. #include "confdefs.h"
  4392. #ifdef __cplusplus
  4393. extern "C" void exit(int) throw();
  4394. #endif
  4395.  
  4396.     #include <unistd.h>
  4397.     #include <fcntl.h>
  4398.     #include <sys/mman.h>
  4399.     
  4400.     int main()
  4401.     { int zero_fd; char * lm;
  4402.       if ((zero_fd = open("/dev/zero", O_RDWR)) < 0) exit(1);
  4403.       if ((lm = (char *)mmap((caddr_t)0x0000, 0x2000, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, zero_fd, 0)) == MAP_FAILED) exit(1);
  4404.       lm[0] = 0x12;
  4405.       munmap(lm, 0x2000);
  4406.       close(zero_fd);
  4407.       exit(0);
  4408.     }
  4409.   
  4410. EOF
  4411. if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4412. then
  4413.   ac_cv_can_map_lm=yes
  4414. else
  4415.   echo "configure: failed program was:" >&5
  4416.   cat conftest.$ac_ext >&5
  4417.   rm -fr conftest*
  4418.   ac_cv_can_map_lm=no
  4419.   
  4420. fi
  4421. rm -fr conftest*
  4422. fi
  4423.  
  4424.   ac_ext=c
  4425. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4426. ac_cpp='$CPP $CPPFLAGS'
  4427. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4428. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4429. cross_compiling=$ac_cv_prog_cc_cross
  4430.  
  4431.   
  4432.  
  4433. fi
  4434.  
  4435. echo "$ac_t""$ac_cv_can_map_lm" 1>&6
  4436.  
  4437. echo $ac_n "checking "whether signal handlers need to be reinstalled"""... $ac_c" 1>&6
  4438. echo "configure:4439: checking "whether signal handlers need to be reinstalled"" >&5
  4439. if eval "test \"`echo '$''{'ac_cv_signal_need_reinstall'+set}'`\" = set"; then
  4440.   echo $ac_n "(cached) $ac_c" 1>&6
  4441. else
  4442.   
  4443.     
  4444.     ac_ext=C
  4445. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4446. ac_cpp='$CXXCPP $CPPFLAGS'
  4447. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4448. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4449. cross_compiling=$ac_cv_prog_cxx_cross
  4450.  
  4451.     if test "$cross_compiling" = yes; then
  4452.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4453. else
  4454.   cat > conftest.$ac_ext <<EOF
  4455. #line 4456 "configure"
  4456. #include "confdefs.h"
  4457. #ifdef __cplusplus
  4458. extern "C" void exit(int) throw();
  4459. #endif
  4460.  
  4461.         #include <stdlib.h>
  4462.         #ifdef HAVE_UNISTD_H
  4463.         #include <unistd.h>
  4464.         #endif
  4465.         #include <signal.h>
  4466.         static int handled_signal = 0;
  4467.         RETSIGTYPE sigusr1_handler(int) { handled_signal++; }
  4468.         int main(void) { /* returns 0 if signals need not to be reinstalled */
  4469.             signal(SIGUSR1, sigusr1_handler); raise(SIGUSR1); raise(SIGUSR1);
  4470.             exit(handled_signal == 2);
  4471.         }
  4472.     
  4473. EOF
  4474. if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4475. then
  4476.   ac_cv_signal_need_reinstall=yes
  4477. else
  4478.   echo "configure: failed program was:" >&5
  4479.   cat conftest.$ac_ext >&5
  4480.   rm -fr conftest*
  4481.   ac_cv_signal_need_reinstall=no
  4482.     
  4483. fi
  4484. rm -fr conftest*
  4485. fi
  4486.  
  4487.     ac_ext=c
  4488. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4489. ac_cpp='$CPP $CPPFLAGS'
  4490. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4491. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4492. cross_compiling=$ac_cv_prog_cc_cross
  4493.  
  4494.     
  4495.  
  4496. fi
  4497.  
  4498. echo "$ac_t""$ac_cv_signal_need_reinstall" 1>&6
  4499.  
  4500.     if [ "x"$ac_cv_signal_need_reinstall"" = "xyes" ]; then
  4501.         cat >> confdefs.h <<\EOF
  4502. #define SIGNAL_NEED_REINSTALL 1
  4503. EOF
  4504.  
  4505.     fi
  4506.  
  4507.  
  4508. echo $ac_n "checking "whether sigaction handlers need to be reinstalled"""... $ac_c" 1>&6
  4509. echo "configure:4510: checking "whether sigaction handlers need to be reinstalled"" >&5
  4510. if eval "test \"`echo '$''{'ac_cv_sigaction_need_reinstall'+set}'`\" = set"; then
  4511.   echo $ac_n "(cached) $ac_c" 1>&6
  4512. else
  4513.   
  4514.   
  4515.   ac_ext=C
  4516. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4517. ac_cpp='$CXXCPP $CPPFLAGS'
  4518. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4519. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4520. cross_compiling=$ac_cv_prog_cxx_cross
  4521.  
  4522.   if test "$cross_compiling" = yes; then
  4523.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4524. else
  4525.   cat > conftest.$ac_ext <<EOF
  4526. #line 4527 "configure"
  4527. #include "confdefs.h"
  4528. #ifdef __cplusplus
  4529. extern "C" void exit(int) throw();
  4530. #endif
  4531.  
  4532.     #include <stdlib.h>
  4533.     #ifdef HAVE_UNISTD_H
  4534.     #include <unistd.h>
  4535.     #endif
  4536.     #include <signal.h>
  4537.     static int handled_signal = 0;
  4538.     RETSIGTYPE sigusr1_handler(int) { handled_signal++; }
  4539.     typedef RETSIGTYPE (*signal_handler)(int);
  4540.     static signal_handler mysignal(int sig, signal_handler handler) {
  4541.       struct sigaction old_sa;
  4542.       struct sigaction new_sa;
  4543.       new_sa.sa_handler = handler;
  4544.       return ((sigaction(sig,&new_sa,&old_sa) < 0) ? SIG_IGN : old_sa.sa_handler);
  4545.     }
  4546.     int main(void) { /* returns 0 if signals need not to be reinstalled */
  4547.       mysignal(SIGUSR1, sigusr1_handler); raise(SIGUSR1); raise(SIGUSR1);
  4548.       exit(handled_signal == 2);
  4549.     }
  4550.   
  4551. EOF
  4552. if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4553. then
  4554.   ac_cv_sigaction_need_reinstall=yes
  4555. else
  4556.   echo "configure: failed program was:" >&5
  4557.   cat conftest.$ac_ext >&5
  4558.   rm -fr conftest*
  4559.   ac_cv_sigaction_need_reinstall=no
  4560.   
  4561. fi
  4562. rm -fr conftest*
  4563. fi
  4564.  
  4565.   ac_ext=c
  4566. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4567. ac_cpp='$CPP $CPPFLAGS'
  4568. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4569. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4570. cross_compiling=$ac_cv_prog_cc_cross
  4571.  
  4572.   
  4573.  
  4574. fi
  4575.  
  4576. echo "$ac_t""$ac_cv_sigaction_need_reinstall" 1>&6
  4577.  
  4578.     if [ "x"$ac_cv_sigaction_need_reinstall"" = "xyes" ]; then
  4579.         cat >> confdefs.h <<\EOF
  4580. #define SIGACTION_NEED_REINSTALL 1
  4581. EOF
  4582.  
  4583.     fi
  4584.  
  4585.  
  4586. echo $ac_n "checking "whether your system supports extended signal handlers"""... $ac_c" 1>&6
  4587. echo "configure:4588: checking "whether your system supports extended signal handlers"" >&5
  4588. if eval "test \"`echo '$''{'ac_cv_have_extended_signals'+set}'`\" = set"; then
  4589.   echo $ac_n "(cached) $ac_c" 1>&6
  4590. else
  4591.   
  4592.   
  4593.   ac_ext=C
  4594. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4595. ac_cpp='$CXXCPP $CPPFLAGS'
  4596. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4597. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4598. cross_compiling=$ac_cv_prog_cxx_cross
  4599.  
  4600.   if test "$cross_compiling" = yes; then
  4601.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4602. else
  4603.   cat > conftest.$ac_ext <<EOF
  4604. #line 4605 "configure"
  4605. #include "confdefs.h"
  4606. #ifdef __cplusplus
  4607. extern "C" void exit(int) throw();
  4608. #endif
  4609.  
  4610.     #define HAVE_SIGINFO_T 1
  4611.     #define CONFIGURE_TEST
  4612.     #include "sigsegv.cpp"
  4613.   
  4614. EOF
  4615. if { (eval echo configure:4616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4616. then
  4617.   ac_cv_have_extended_signals=yes
  4618. else
  4619.   echo "configure: failed program was:" >&5
  4620.   cat conftest.$ac_ext >&5
  4621.   rm -fr conftest*
  4622.   ac_cv_have_extended_signals=no
  4623.   
  4624. fi
  4625. rm -fr conftest*
  4626. fi
  4627.  
  4628.   ac_ext=c
  4629. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4630. ac_cpp='$CPP $CPPFLAGS'
  4631. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4632. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4633. cross_compiling=$ac_cv_prog_cc_cross
  4634.  
  4635.   
  4636.  
  4637. fi
  4638.  
  4639. echo "$ac_t""$ac_cv_have_extended_signals" 1>&6
  4640.  
  4641.     if [ "x"$ac_cv_have_extended_signals"" = "xyes" ]; then
  4642.         cat >> confdefs.h <<\EOF
  4643. #define HAVE_SIGINFO_T 1
  4644. EOF
  4645.  
  4646.     fi
  4647.  
  4648.  
  4649. if [ "x$ac_cv_have_extended_signals" = "xno" ]; then
  4650.   echo $ac_n "checking "whether we then have a subterfuge for your system"""... $ac_c" 1>&6
  4651. echo "configure:4652: checking "whether we then have a subterfuge for your system"" >&5
  4652. if eval "test \"`echo '$''{'ac_cv_have_sigcontext_hack'+set}'`\" = set"; then
  4653.   echo $ac_n "(cached) $ac_c" 1>&6
  4654. else
  4655.   
  4656.     
  4657.     ac_ext=C
  4658. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4659. ac_cpp='$CXXCPP $CPPFLAGS'
  4660. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4661. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4662. cross_compiling=$ac_cv_prog_cxx_cross
  4663.  
  4664.     if test "$cross_compiling" = yes; then
  4665.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4666. else
  4667.   cat > conftest.$ac_ext <<EOF
  4668. #line 4669 "configure"
  4669. #include "confdefs.h"
  4670. #ifdef __cplusplus
  4671. extern "C" void exit(int) throw();
  4672. #endif
  4673.  
  4674.       #define HAVE_SIGCONTEXT_SUBTERFUGE 1
  4675.       #define CONFIGURE_TEST
  4676.       #include "sigsegv.cpp"
  4677.     
  4678. EOF
  4679. if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4680. then
  4681.   ac_cv_have_sigcontext_hack=yes
  4682. else
  4683.   echo "configure: failed program was:" >&5
  4684.   cat conftest.$ac_ext >&5
  4685.   rm -fr conftest*
  4686.   ac_cv_have_sigcontext_hack=no
  4687.     
  4688. fi
  4689. rm -fr conftest*
  4690. fi
  4691.  
  4692.     ac_ext=c
  4693. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4694. ac_cpp='$CPP $CPPFLAGS'
  4695. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4696. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4697. cross_compiling=$ac_cv_prog_cc_cross
  4698.  
  4699.   
  4700. fi
  4701.  
  4702. echo "$ac_t""$ac_cv_have_sigcontext_hack" 1>&6
  4703.   
  4704.     if [ "x"$ac_cv_have_sigcontext_hack"" = "xyes" ]; then
  4705.         cat >> confdefs.h <<\EOF
  4706. #define HAVE_SIGCONTEXT_SUBTERFUGE 1
  4707. EOF
  4708.  
  4709.     fi
  4710.  
  4711. fi
  4712.  
  4713. CAN_VOSF=no
  4714. if [ "$ac_cv_have_extended_signals" = "yes" -o "$ac_cv_have_sigcontext_hack" = "yes" ]; then
  4715.   CAN_VOSF=yes
  4716. fi
  4717.  
  4718. if [ "x$WANT_NATIVE_M68K" = "xyes" ]; then
  4719.   ADDRESSING_MODE="real"
  4720. else
  4721.   ADDRESSING_MODE=""
  4722.   echo $ac_n "checking for the addressing mode to use""... $ac_c" 1>&6
  4723. echo "configure:4724: checking for the addressing mode to use" >&5
  4724.   for am in $ADDRESSING_TEST_ORDER; do
  4725.     case $am in
  4726.     real)
  4727.             if [ "x$ac_cv_can_map_lm" = "xno" ]; then
  4728.         continue
  4729.       fi
  4730.             if [ "x$CAN_VOSF" = "xno" ]; then
  4731.         continue
  4732.       fi
  4733.             ADDRESSING_MODE="real"
  4734.       WANT_VOSF=yes       DEFINES="$DEFINES -DREAL_ADDRESSING"
  4735.       break
  4736.       ;;
  4737.     direct)
  4738.             if [ "x$CAN_VOSF" = "xyes" ]; then
  4739.         ADDRESSING_MODE="direct"
  4740.         WANT_VOSF=yes         DEFINES="$DEFINES -DDIRECT_ADDRESSING"
  4741.         break
  4742.       fi
  4743.       ;;
  4744.     banks)
  4745.             ADDRESSING_MODE="memory banks"
  4746.       break
  4747.       ;;
  4748.     *)
  4749.       { echo "configure: error: Internal configure.in script error for $am addressing mode" 1>&2; exit 1; }
  4750.     esac
  4751.   done
  4752.   echo "$ac_t""$ADDRESSING_MODE" 1>&6
  4753.   if [ "x$ADDRESSING_MODE" = "x" ]; then
  4754.     echo "configure: warning: Sorry, no suitable addressing mode in $ADDRESSING_TEST_ORDER" 1>&2
  4755.     ADDRESSING_MODE="memory banks"
  4756.   fi
  4757. fi
  4758.  
  4759. if [ "x$WANT_VOSF" = "xyes" -a "x$CAN_VOSF" = "xyes" ]; then
  4760.     cat >> confdefs.h <<\EOF
  4761. #define ENABLE_VOSF 1
  4762. EOF
  4763.  
  4764. else
  4765.     WANT_VOSF=no
  4766. fi
  4767.  
  4768. HAVE_GAS=no
  4769. echo $ac_n "checking for GAS .p2align feature""... $ac_c" 1>&6
  4770. echo "configure:4771: checking for GAS .p2align feature" >&5
  4771. cat >conftest.S << EOF
  4772.     .text
  4773.     .p2align 5
  4774. EOF
  4775. if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVE_GAS=yes; fi
  4776. echo "$ac_t""$HAVE_GAS" 1>&6
  4777.  
  4778. HAVE_GCC27=no
  4779. echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6
  4780. echo "configure:4781: checking for GCC 2.7 or higher" >&5
  4781. cat > conftest.$ac_ext <<EOF
  4782. #line 4783 "configure"
  4783. #include "confdefs.h"
  4784. #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
  4785.   yes
  4786. #endif
  4787.  
  4788. EOF
  4789. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4790.   egrep "yes" >/dev/null 2>&1; then
  4791.   rm -rf conftest*
  4792.   echo "$ac_t""yes" 1>&6; HAVE_GCC27=yes
  4793. else
  4794.   rm -rf conftest*
  4795.   echo "$ac_t""no" 1>&6
  4796. fi
  4797. rm -f conftest*
  4798.  
  4799.  
  4800. if [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]; then
  4801.   CFLAGS="$CFLAGS -fomit-frame-pointer"
  4802.   CXXFLAGS="$CXXFLAGS -fomit-frame-pointer"
  4803. fi
  4804.  
  4805. ASM_OPTIMIZATIONS=none
  4806. CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
  4807. FPUSRCS="../uae_cpu/fpu/fpu_uae.cpp"
  4808. if [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" -a "x$OS_TYPE" != "xfreebsd" ]; then
  4809.     DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\""
  4810.   if [ "x$HAVE_GAS" = "xyes" ]; then
  4811.     ASM_OPTIMIZATIONS=i386
  4812.     DEFINES="$DEFINES -DX86_ASSEMBLY -DUNALIGNED_PROFITABLE -DOPTIMIZED_FLAGS"
  4813.     CPUSRCS="cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s"
  4814.     FPUSRCS="../uae_cpu/fpu_x86.cpp"
  4815.   fi
  4816. elif [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]; then
  4817.     case "$target_os" in
  4818.   solaris*)
  4819.     echo $ac_n "checking SPARC CPU architecture""... $ac_c" 1>&6
  4820. echo "configure:4821: checking SPARC CPU architecture" >&5
  4821.     SPARC_TYPE=`Solaris/which_sparc`
  4822.     echo "$ac_t""$SPARC_TYPE" 1>&6
  4823.     case "$SPARC_TYPE" in
  4824.     SPARC_V8)
  4825.       ASM_OPTIMIZATIONS="SPARC V8 architecture"
  4826.       DEFINES="$DEFINES -DSPARC_V8_ASSEMBLY"       CFLAGS="$CFLAGS -Wa,-Av8"
  4827.       CXXFLAGS="$CXXFLAGS -Wa,-Av8"
  4828.       ;;
  4829.     SPARC_V9)
  4830.       ASM_OPTIMIZATIONS="SPARC V9 architecture"
  4831.       DEFINES="$DEFINES -DSPARC_V9_ASSEMBLY"       CFLAGS="$CFLAGS -Wa,-Av9"
  4832.       CXXFLAGS="$CXXFLAGS -Wa,-Av9"
  4833.       ;;
  4834.     esac
  4835.     ;;
  4836.   esac
  4837. elif [ "x$WANT_NATIVE_M68K" = "xyes" ]; then
  4838.     CPUINCLUDES="-I../native_cpu"
  4839.   CPUSRCS="asm_support.s"
  4840. fi
  4841.  
  4842. SAVED_DEFINES=$DEFINES
  4843. if [ "x$FPE_CORE" = "xdefault" ]; then
  4844.   if [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" -a "x$HAVE_GAS" = "xyes" ]; then
  4845.     DEFINES="$DEFINES -DFPU_X86"
  4846.     FPE_CORE_STR="i386 optimized core"
  4847.     FPUSRCS="../uae_cpu/fpu/fpu_x86.cpp"
  4848.   else
  4849.     FPE_CORE="uae"
  4850.   fi
  4851. fi
  4852.  
  4853. if [ "x$WANT_JIT_FPU" = "xyes" -a "x$FPE_CORE" != "xieee" ]; then
  4854.   echo "configure: warning: Sorry, JIT-FPU supports only the "ieee" FPE implementation" 1>&2
  4855.   FPE_CORE="ieee"
  4856.     DEFINES=$SAVED_DEFINES
  4857. fi
  4858.  
  4859. if [ "x$FPE_CORE" = "xieee" ]; then
  4860.   for ac_hdr in fenv.h
  4861. do
  4862. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4863. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4864. echo "configure:4865: checking for $ac_hdr" >&5
  4865. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4866.   echo $ac_n "(cached) $ac_c" 1>&6
  4867. else
  4868.   cat > conftest.$ac_ext <<EOF
  4869. #line 4870 "configure"
  4870. #include "confdefs.h"
  4871. #include <$ac_hdr>
  4872. EOF
  4873. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4874. { (eval echo configure:4875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4875. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4876. if test -z "$ac_err"; then
  4877.   rm -rf conftest*
  4878.   eval "ac_cv_header_$ac_safe=yes"
  4879. else
  4880.   echo "$ac_err" >&5
  4881.   echo "configure: failed program was:" >&5
  4882.   cat conftest.$ac_ext >&5
  4883.   rm -rf conftest*
  4884.   eval "ac_cv_header_$ac_safe=no"
  4885. fi
  4886. rm -f conftest*
  4887. fi
  4888. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4889.   echo "$ac_t""yes" 1>&6
  4890.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4891.   cat >> confdefs.h <<EOF
  4892. #define $ac_tr_hdr 1
  4893. EOF
  4894.  
  4895. else
  4896.   echo "$ac_t""no" 1>&6
  4897. fi
  4898. done
  4899.  
  4900.   for ac_func in feclearexcept fegetexceptflag feraiseexcept fesetexceptflag fetestexcept
  4901. do
  4902. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4903. echo "configure:4904: checking for $ac_func" >&5
  4904. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4905.   echo $ac_n "(cached) $ac_c" 1>&6
  4906. else
  4907.   cat > conftest.$ac_ext <<EOF
  4908. #line 4909 "configure"
  4909. #include "confdefs.h"
  4910. /* System header to define __stub macros and hopefully few prototypes,
  4911.     which can conflict with char $ac_func(); below.  */
  4912. #include <assert.h>
  4913. /* Override any gcc2 internal prototype to avoid an error.  */
  4914. /* We use char because int might match the return type of a gcc2
  4915.     builtin and then its argument prototype would still apply.  */
  4916. char $ac_func();
  4917.  
  4918. int main() {
  4919.  
  4920. /* The GNU C library defines this for functions which it implements
  4921.     to always fail with ENOSYS.  Some functions are actually named
  4922.     something starting with __ and the normal name is an alias.  */
  4923. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4924. choke me
  4925. #else
  4926. $ac_func();
  4927. #endif
  4928.  
  4929. ; return 0; }
  4930. EOF
  4931. if { (eval echo configure:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4932.   rm -rf conftest*
  4933.   eval "ac_cv_func_$ac_func=yes"
  4934. else
  4935.   echo "configure: failed program was:" >&5
  4936.   cat conftest.$ac_ext >&5
  4937.   rm -rf conftest*
  4938.   eval "ac_cv_func_$ac_func=no"
  4939. fi
  4940. rm -f conftest*
  4941. fi
  4942.  
  4943. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4944.   echo "$ac_t""yes" 1>&6
  4945.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4946.   cat >> confdefs.h <<EOF
  4947. #define $ac_tr_func 1
  4948. EOF
  4949.  
  4950. else
  4951.   echo "$ac_t""no" 1>&6
  4952. fi
  4953. done
  4954.  
  4955.   for ac_func in fegetround fesetround
  4956. do
  4957. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4958. echo "configure:4959: checking for $ac_func" >&5
  4959. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4960.   echo $ac_n "(cached) $ac_c" 1>&6
  4961. else
  4962.   cat > conftest.$ac_ext <<EOF
  4963. #line 4964 "configure"
  4964. #include "confdefs.h"
  4965. /* System header to define __stub macros and hopefully few prototypes,
  4966.     which can conflict with char $ac_func(); below.  */
  4967. #include <assert.h>
  4968. /* Override any gcc2 internal prototype to avoid an error.  */
  4969. /* We use char because int might match the return type of a gcc2
  4970.     builtin and then its argument prototype would still apply.  */
  4971. char $ac_func();
  4972.  
  4973. int main() {
  4974.  
  4975. /* The GNU C library defines this for functions which it implements
  4976.     to always fail with ENOSYS.  Some functions are actually named
  4977.     something starting with __ and the normal name is an alias.  */
  4978. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4979. choke me
  4980. #else
  4981. $ac_func();
  4982. #endif
  4983.  
  4984. ; return 0; }
  4985. EOF
  4986. if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4987.   rm -rf conftest*
  4988.   eval "ac_cv_func_$ac_func=yes"
  4989. else
  4990.   echo "configure: failed program was:" >&5
  4991.   cat conftest.$ac_ext >&5
  4992.   rm -rf conftest*
  4993.   eval "ac_cv_func_$ac_func=no"
  4994. fi
  4995. rm -f conftest*
  4996. fi
  4997.  
  4998. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4999.   echo "$ac_t""yes" 1>&6
  5000.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5001.   cat >> confdefs.h <<EOF
  5002. #define $ac_tr_func 1
  5003. EOF
  5004.  
  5005. else
  5006.   echo "$ac_t""no" 1>&6
  5007. fi
  5008. done
  5009.  
  5010.   DEFINES="$DEFINES -DFPU_IEEE"
  5011.   FPE_CORE_STR="ieee-based fpu core"
  5012.   FPUSRCS="../uae_cpu/fpu/fpu_ieee.cpp"
  5013. elif [ "x$FPE_CORE" = "xuae" ]; then
  5014.   DEFINES="$DEFINES -DFPU_UAE"
  5015.   FPE_CORE_STR="original uae core"
  5016.   FPUSRCS="../uae_cpu/fpu/fpu_uae.cpp"
  5017. fi
  5018.  
  5019. for ac_func in atanh
  5020. do
  5021. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5022. echo "configure:5023: checking for $ac_func" >&5
  5023. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5024.   echo $ac_n "(cached) $ac_c" 1>&6
  5025. else
  5026.   cat > conftest.$ac_ext <<EOF
  5027. #line 5028 "configure"
  5028. #include "confdefs.h"
  5029. /* System header to define __stub macros and hopefully few prototypes,
  5030.     which can conflict with char $ac_func(); below.  */
  5031. #include <assert.h>
  5032. /* Override any gcc2 internal prototype to avoid an error.  */
  5033. /* We use char because int might match the return type of a gcc2
  5034.     builtin and then its argument prototype would still apply.  */
  5035. char $ac_func();
  5036.  
  5037. int main() {
  5038.  
  5039. /* The GNU C library defines this for functions which it implements
  5040.     to always fail with ENOSYS.  Some functions are actually named
  5041.     something starting with __ and the normal name is an alias.  */
  5042. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5043. choke me
  5044. #else
  5045. $ac_func();
  5046. #endif
  5047.  
  5048. ; return 0; }
  5049. EOF
  5050. if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5051.   rm -rf conftest*
  5052.   eval "ac_cv_func_$ac_func=yes"
  5053. else
  5054.   echo "configure: failed program was:" >&5
  5055.   cat conftest.$ac_ext >&5
  5056.   rm -rf conftest*
  5057.   eval "ac_cv_func_$ac_func=no"
  5058. fi
  5059. rm -f conftest*
  5060. fi
  5061.  
  5062. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5063.   echo "$ac_t""yes" 1>&6
  5064.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5065.   cat >> confdefs.h <<EOF
  5066. #define $ac_tr_func 1
  5067. EOF
  5068.  
  5069. else
  5070.   echo "$ac_t""no" 1>&6
  5071. fi
  5072. done
  5073.  
  5074. for ac_func in isnan isinf
  5075. do
  5076. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5077. echo "configure:5078: checking for $ac_func" >&5
  5078. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5079.   echo $ac_n "(cached) $ac_c" 1>&6
  5080. else
  5081.   cat > conftest.$ac_ext <<EOF
  5082. #line 5083 "configure"
  5083. #include "confdefs.h"
  5084. /* System header to define __stub macros and hopefully few prototypes,
  5085.     which can conflict with char $ac_func(); below.  */
  5086. #include <assert.h>
  5087. /* Override any gcc2 internal prototype to avoid an error.  */
  5088. /* We use char because int might match the return type of a gcc2
  5089.     builtin and then its argument prototype would still apply.  */
  5090. char $ac_func();
  5091.  
  5092. int main() {
  5093.  
  5094. /* The GNU C library defines this for functions which it implements
  5095.     to always fail with ENOSYS.  Some functions are actually named
  5096.     something starting with __ and the normal name is an alias.  */
  5097. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5098. choke me
  5099. #else
  5100. $ac_func();
  5101. #endif
  5102.  
  5103. ; return 0; }
  5104. EOF
  5105. if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5106.   rm -rf conftest*
  5107.   eval "ac_cv_func_$ac_func=yes"
  5108. else
  5109.   echo "configure: failed program was:" >&5
  5110.   cat conftest.$ac_ext >&5
  5111.   rm -rf conftest*
  5112.   eval "ac_cv_func_$ac_func=no"
  5113. fi
  5114. rm -f conftest*
  5115. fi
  5116.  
  5117. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5118.   echo "$ac_t""yes" 1>&6
  5119.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5120.   cat >> confdefs.h <<EOF
  5121. #define $ac_tr_func 1
  5122. EOF
  5123.  
  5124. else
  5125.   echo "$ac_t""no" 1>&6
  5126. fi
  5127. done
  5128.         for ac_func in isnanl isinfl
  5129. do
  5130. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5131. echo "configure:5132: checking for $ac_func" >&5
  5132. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5133.   echo $ac_n "(cached) $ac_c" 1>&6
  5134. else
  5135.   cat > conftest.$ac_ext <<EOF
  5136. #line 5137 "configure"
  5137. #include "confdefs.h"
  5138. /* System header to define __stub macros and hopefully few prototypes,
  5139.     which can conflict with char $ac_func(); below.  */
  5140. #include <assert.h>
  5141. /* Override any gcc2 internal prototype to avoid an error.  */
  5142. /* We use char because int might match the return type of a gcc2
  5143.     builtin and then its argument prototype would still apply.  */
  5144. char $ac_func();
  5145.  
  5146. int main() {
  5147.  
  5148. /* The GNU C library defines this for functions which it implements
  5149.     to always fail with ENOSYS.  Some functions are actually named
  5150.     something starting with __ and the normal name is an alias.  */
  5151. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5152. choke me
  5153. #else
  5154. $ac_func();
  5155. #endif
  5156.  
  5157. ; return 0; }
  5158. EOF
  5159. if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5160.   rm -rf conftest*
  5161.   eval "ac_cv_func_$ac_func=yes"
  5162. else
  5163.   echo "configure: failed program was:" >&5
  5164.   cat conftest.$ac_ext >&5
  5165.   rm -rf conftest*
  5166.   eval "ac_cv_func_$ac_func=no"
  5167. fi
  5168. rm -f conftest*
  5169. fi
  5170.  
  5171. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5172.   echo "$ac_t""yes" 1>&6
  5173.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5174.   cat >> confdefs.h <<EOF
  5175. #define $ac_tr_func 1
  5176. EOF
  5177.  
  5178. else
  5179.   echo "$ac_t""no" 1>&6
  5180. fi
  5181. done
  5182.     
  5183. if [ "x$WANT_NATIVE_M68K" = "xno" ]; then
  5184.   CPUINCLUDES="-I../uae_cpu"
  5185.   CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp $FPUSRCS cpustbl.cpp cpudefs.cpp $CPUSRCS"
  5186. fi
  5187.  
  5188. if [ "x$HAVE_GCC27" = "xyes" ]; then
  5189.     CFLAGS=`echo $CFLAGS | sed -e 's/ -g / /;s/^-g / /;s/ -g$/ /;s/^-g$//'`
  5190.   CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ -g / /;s/^-g / /;s/ -g$/ /;s/^-g$//'`
  5191. fi
  5192.  
  5193. if [ "x$HAVE_OFAST" = "xyes" ]; then
  5194.   CFLAGS=`echo $CFLAGS | sed -e 's/ -g / -Ofast /;s/^-g /-Ofast /;s/-g$/ -Ofast/;s/^-g$/-Ofast/'`
  5195.   CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ -g / -Ofast /;s/^-g /-Ofast /;s/ -g$/ -Ofast/;s/^-g$/-Ofast/'`
  5196.   CXXFLAGS="-LANG:std $CXXFLAGS"
  5197.   LDFLAGS="$LDFLAGS -Ofast"
  5198. fi
  5199.  
  5200.  
  5201.  
  5202.  
  5203.  
  5204. trap '' 1 2 15
  5205. cat > confcache <<\EOF
  5206. # This file is a shell script that caches the results of configure
  5207. # tests run on this system so they can be shared between configure
  5208. # scripts and configure runs.  It is not useful on other systems.
  5209. # If it contains results you don't want to keep, you may remove or edit it.
  5210. #
  5211. # By default, configure uses ./config.cache as the cache file,
  5212. # creating it if it does not exist already.  You can give configure
  5213. # the --cache-file=FILE option to use a different cache file; that is
  5214. # what configure does when it calls configure scripts in
  5215. # subdirectories, so they share the cache.
  5216. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  5217. # config.status only pays attention to the cache file if you give it the
  5218. # --recheck option to rerun configure.
  5219. #
  5220. EOF
  5221. # The following way of writing the cache mishandles newlines in values,
  5222. # but we know of no workaround that is simple, portable, and efficient.
  5223. # So, don't put newlines in cache variables' values.
  5224. # Ultrix sh set writes to stderr and can't be redirected directly,
  5225. # and sets the high bit in the cache file unless we assign to the vars.
  5226. (set) 2>&1 |
  5227.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5228.   *ac_space=\ *)
  5229.     # `set' does not quote correctly, so add quotes (double-quote substitution
  5230.     # turns \\\\ into \\, and sed turns \\ into \).
  5231.     sed -n \
  5232.       -e "s/'/'\\\\''/g" \
  5233.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  5234.     ;;
  5235.   *)
  5236.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  5237.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  5238.     ;;
  5239.   esac >> confcache
  5240. if cmp -s $cache_file confcache; then
  5241.   :
  5242. else
  5243.   if test -w $cache_file; then
  5244.     echo "updating cache $cache_file"
  5245.     cat confcache > $cache_file
  5246.   else
  5247.     echo "not updating unwritable cache $cache_file"
  5248.   fi
  5249. fi
  5250. rm -f confcache
  5251.  
  5252. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  5253.  
  5254. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5255. # Let make expand exec_prefix.
  5256. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5257.  
  5258. # Any assignment to VPATH causes Sun make to only execute
  5259. # the first set of double-colon rules, so remove it if not needed.
  5260. # If there is a colon in the path, we need to keep it.
  5261. if test "x$srcdir" = x.; then
  5262.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  5263. fi
  5264.  
  5265. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  5266.  
  5267. DEFS=-DHAVE_CONFIG_H
  5268.  
  5269. # Without the "./", some shells look in PATH for config.status.
  5270. : ${CONFIG_STATUS=./config.status}
  5271.  
  5272. echo creating $CONFIG_STATUS
  5273. rm -f $CONFIG_STATUS
  5274. cat > $CONFIG_STATUS <<EOF
  5275. #! /bin/sh
  5276. # Generated automatically by configure.
  5277. # Run this file to recreate the current configuration.
  5278. # This directory was configured as follows,
  5279. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  5280. #
  5281. # $0 $ac_configure_args
  5282. #
  5283. # Compiler output produced by configure, useful for debugging
  5284. # configure, is in ./config.log if it exists.
  5285.  
  5286. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  5287. for ac_option
  5288. do
  5289.   case "\$ac_option" in
  5290.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5291.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  5292.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  5293.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  5294.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  5295.     exit 0 ;;
  5296.   -help | --help | --hel | --he | --h)
  5297.     echo "\$ac_cs_usage"; exit 0 ;;
  5298.   *) echo "\$ac_cs_usage"; exit 1 ;;
  5299.   esac
  5300. done
  5301.  
  5302. ac_given_srcdir=$srcdir
  5303. ac_given_INSTALL="$INSTALL"
  5304.  
  5305. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  5306. EOF
  5307. cat >> $CONFIG_STATUS <<EOF
  5308.  
  5309. # Protect against being on the right side of a sed subst in config.status.
  5310. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  5311.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  5312. $ac_vpsub
  5313. $extrasub
  5314. s%@SHELL@%$SHELL%g
  5315. s%@CFLAGS@%$CFLAGS%g
  5316. s%@CPPFLAGS@%$CPPFLAGS%g
  5317. s%@CXXFLAGS@%$CXXFLAGS%g
  5318. s%@FFLAGS@%$FFLAGS%g
  5319. s%@DEFS@%$DEFS%g
  5320. s%@LDFLAGS@%$LDFLAGS%g
  5321. s%@LIBS@%$LIBS%g
  5322. s%@exec_prefix@%$exec_prefix%g
  5323. s%@prefix@%$prefix%g
  5324. s%@program_transform_name@%$program_transform_name%g
  5325. s%@bindir@%$bindir%g
  5326. s%@sbindir@%$sbindir%g
  5327. s%@libexecdir@%$libexecdir%g
  5328. s%@datadir@%$datadir%g
  5329. s%@sysconfdir@%$sysconfdir%g
  5330. s%@sharedstatedir@%$sharedstatedir%g
  5331. s%@localstatedir@%$localstatedir%g
  5332. s%@libdir@%$libdir%g
  5333. s%@includedir@%$includedir%g
  5334. s%@oldincludedir@%$oldincludedir%g
  5335. s%@infodir@%$infodir%g
  5336. s%@mandir@%$mandir%g
  5337. s%@host@%$host%g
  5338. s%@host_alias@%$host_alias%g
  5339. s%@host_cpu@%$host_cpu%g
  5340. s%@host_vendor@%$host_vendor%g
  5341. s%@host_os@%$host_os%g
  5342. s%@target@%$target%g
  5343. s%@target_alias@%$target_alias%g
  5344. s%@target_cpu@%$target_cpu%g
  5345. s%@target_vendor@%$target_vendor%g
  5346. s%@target_os@%$target_os%g
  5347. s%@CC@%$CC%g
  5348. s%@CPP@%$CPP%g
  5349. s%@CXX@%$CXX%g
  5350. s%@SET_MAKE@%$SET_MAKE%g
  5351. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  5352. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  5353. s%@INSTALL_DATA@%$INSTALL_DATA%g
  5354. s%@X_CFLAGS@%$X_CFLAGS%g
  5355. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  5356. s%@X_LIBS@%$X_LIBS%g
  5357. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  5358. s%@GTK_CONFIG@%$GTK_CONFIG%g
  5359. s%@GTK_CFLAGS@%$GTK_CFLAGS%g
  5360. s%@GTK_LIBS@%$GTK_LIBS%g
  5361. s%@ESD_CONFIG@%$ESD_CONFIG%g
  5362. s%@ESD_CFLAGS@%$ESD_CFLAGS%g
  5363. s%@ESD_LIBS@%$ESD_LIBS%g
  5364. s%@DEFINES@%$DEFINES%g
  5365. s%@SYSSRCS@%$SYSSRCS%g
  5366. s%@CPUINCLUDES@%$CPUINCLUDES%g
  5367. s%@CPUSRCS@%$CPUSRCS%g
  5368.  
  5369. CEOF
  5370. EOF
  5371.  
  5372. cat >> $CONFIG_STATUS <<\EOF
  5373.  
  5374. # Split the substitutions into bite-sized pieces for seds with
  5375. # small command number limits, like on Digital OSF/1 and HP-UX.
  5376. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  5377. ac_file=1 # Number of current file.
  5378. ac_beg=1 # First line for current file.
  5379. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  5380. ac_more_lines=:
  5381. ac_sed_cmds=""
  5382. while $ac_more_lines; do
  5383.   if test $ac_beg -gt 1; then
  5384.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  5385.   else
  5386.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  5387.   fi
  5388.   if test ! -s conftest.s$ac_file; then
  5389.     ac_more_lines=false
  5390.     rm -f conftest.s$ac_file
  5391.   else
  5392.     if test -z "$ac_sed_cmds"; then
  5393.       ac_sed_cmds="sed -f conftest.s$ac_file"
  5394.     else
  5395.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  5396.     fi
  5397.     ac_file=`expr $ac_file + 1`
  5398.     ac_beg=$ac_end
  5399.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  5400.   fi
  5401. done
  5402. if test -z "$ac_sed_cmds"; then
  5403.   ac_sed_cmds=cat
  5404. fi
  5405. EOF
  5406.  
  5407. cat >> $CONFIG_STATUS <<EOF
  5408.  
  5409. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  5410. EOF
  5411. cat >> $CONFIG_STATUS <<\EOF
  5412. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  5413.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5414.   case "$ac_file" in
  5415.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  5416.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  5417.   *) ac_file_in="${ac_file}.in" ;;
  5418.   esac
  5419.  
  5420.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  5421.  
  5422.   # Remove last slash and all that follows it.  Not all systems have dirname.
  5423.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5424.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5425.     # The file is in a subdirectory.
  5426.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  5427.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  5428.     # A "../" for each directory in $ac_dir_suffix.
  5429.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  5430.   else
  5431.     ac_dir_suffix= ac_dots=
  5432.   fi
  5433.  
  5434.   case "$ac_given_srcdir" in
  5435.   .)  srcdir=.
  5436.       if test -z "$ac_dots"; then top_srcdir=.
  5437.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  5438.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  5439.   *) # Relative path.
  5440.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  5441.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  5442.   esac
  5443.  
  5444.   case "$ac_given_INSTALL" in
  5445.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  5446.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  5447.   esac
  5448.  
  5449.   echo creating "$ac_file"
  5450.   rm -f "$ac_file"
  5451.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  5452.   case "$ac_file" in
  5453.   *Makefile*) ac_comsub="1i\\
  5454. # $configure_input" ;;
  5455.   *) ac_comsub= ;;
  5456.   esac
  5457.  
  5458.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  5459.   sed -e "$ac_comsub
  5460. s%@configure_input@%$configure_input%g
  5461. s%@srcdir@%$srcdir%g
  5462. s%@top_srcdir@%$top_srcdir%g
  5463. s%@INSTALL@%$INSTALL%g
  5464. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  5465. fi; done
  5466. rm -f conftest.s*
  5467.  
  5468. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  5469. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  5470. #
  5471. # ac_d sets the value in "#define NAME VALUE" lines.
  5472. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  5473. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  5474. ac_dC='\3'
  5475. ac_dD='%g'
  5476. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  5477. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5478. ac_uB='\([     ]\)%\1#\2define\3'
  5479. ac_uC=' '
  5480. ac_uD='\4%g'
  5481. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  5482. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  5483. ac_eB='$%\1#\2define\3'
  5484. ac_eC=' '
  5485. ac_eD='%g'
  5486.  
  5487. if test "${CONFIG_HEADERS+set}" != set; then
  5488. EOF
  5489. cat >> $CONFIG_STATUS <<EOF
  5490.   CONFIG_HEADERS="config.h"
  5491. EOF
  5492. cat >> $CONFIG_STATUS <<\EOF
  5493. fi
  5494. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  5495.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5496.   case "$ac_file" in
  5497.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  5498.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  5499.   *) ac_file_in="${ac_file}.in" ;;
  5500.   esac
  5501.  
  5502.   echo creating $ac_file
  5503.  
  5504.   rm -f conftest.frag conftest.in conftest.out
  5505.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  5506.   cat $ac_file_inputs > conftest.in
  5507.  
  5508. EOF
  5509.  
  5510. # Transform confdefs.h into a sed script conftest.vals that substitutes
  5511. # the proper values into config.h.in to produce config.h.  And first:
  5512. # Protect against being on the right side of a sed subst in config.status.
  5513. # Protect against being in an unquoted here document in config.status.
  5514. rm -f conftest.vals
  5515. cat > conftest.hdr <<\EOF
  5516. s/[\\&%]/\\&/g
  5517. s%[\\$`]%\\&%g
  5518. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  5519. s%ac_d%ac_u%gp
  5520. s%ac_u%ac_e%gp
  5521. EOF
  5522. sed -n -f conftest.hdr confdefs.h > conftest.vals
  5523. rm -f conftest.hdr
  5524.  
  5525. # This sed command replaces #undef with comments.  This is necessary, for
  5526. # example, in the case of _POSIX_SOURCE, which is predefined and required
  5527. # on some systems where configure will not decide to define it.
  5528. cat >> conftest.vals <<\EOF
  5529. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  5530. EOF
  5531.  
  5532. # Break up conftest.vals because some shells have a limit on
  5533. # the size of here documents, and old seds have small limits too.
  5534.  
  5535. rm -f conftest.tail
  5536. while :
  5537. do
  5538.   ac_lines=`grep -c . conftest.vals`
  5539.   # grep -c gives empty output for an empty file on some AIX systems.
  5540.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  5541.   # Write a limited-size here document to conftest.frag.
  5542.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  5543.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  5544.   echo 'CEOF
  5545.   sed -f conftest.frag conftest.in > conftest.out
  5546.   rm -f conftest.in
  5547.   mv conftest.out conftest.in
  5548. ' >> $CONFIG_STATUS
  5549.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  5550.   rm -f conftest.vals
  5551.   mv conftest.tail conftest.vals
  5552. done
  5553. rm -f conftest.vals
  5554.  
  5555. cat >> $CONFIG_STATUS <<\EOF
  5556.   rm -f conftest.frag conftest.h
  5557.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  5558.   cat conftest.in >> conftest.h
  5559.   rm -f conftest.in
  5560.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  5561.     echo "$ac_file is unchanged"
  5562.     rm -f conftest.h
  5563.   else
  5564.     # Remove last slash and all that follows it.  Not all systems have dirname.
  5565.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5566.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5567.       # The file is in a subdirectory.
  5568.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  5569.     fi
  5570.     rm -f $ac_file
  5571.     mv conftest.h $ac_file
  5572.   fi
  5573. fi; done
  5574.  
  5575. EOF
  5576. cat >> $CONFIG_STATUS <<EOF
  5577.  
  5578. EOF
  5579. cat >> $CONFIG_STATUS <<\EOF
  5580.  
  5581. exit 0
  5582. EOF
  5583. chmod +x $CONFIG_STATUS
  5584. rm -fr confdefs* $ac_clean_files
  5585. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  5586.  
  5587.  
  5588. echo
  5589. echo Basilisk II configuration summary:
  5590. echo
  5591. echo XFree86 DGA support .............. : $WANT_XF86_DGA
  5592. echo XFree86 VidMode support .......... : $WANT_XF86_VIDMODE
  5593. echo fbdev DGA support ................ : $WANT_FBDEV_DGA
  5594. echo Enable video on SEGV signals ..... : $WANT_VOSF
  5595. echo ESD sound support ................ : $WANT_ESD
  5596. echo GTK user interface ............... : $WANT_GTK
  5597. echo mon debugger support ............. : $WANT_MON
  5598. echo Running m68k code natively ....... : $WANT_NATIVE_M68K
  5599. echo Floating-Point emulation core .... : $FPE_CORE_STR
  5600. echo Assembly optimizations ........... : $ASM_OPTIMIZATIONS
  5601. echo Addressing mode .................. : $ADDRESSING_MODE
  5602. echo
  5603. echo "Configuration done. Now type \"make\" (or \"gmake\")."
  5604.