source: trunk/third/gnome-media/configure @ 17496

Revision 17496, 171.9 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17495, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --enable-maintainer-mode enable make rules and dependencies not useful
16                          (and sometimes confusing) to the casual installer"
17ac_help="$ac_help
18  --with-gnome-includes   Specify location of GNOME headers"
19ac_help="$ac_help
20  --with-gnome-libs       Specify location of GNOME libs"
21ac_help="$ac_help
22  --with-gnome            Specify prefix for GNOME files"
23ac_help="$ac_help
24  --enable-compile-warnings=[no/minimum/yes]    Turn on compiler warnings."
25ac_help="$ac_help
26  --enable-iso-c          Try to warn if code is not ISO C "
27ac_help="$ac_help
28  --with-sco              Use this to turn on SCO-specific code"
29ac_help="$ac_help
30  --with-sunos-curses     Used to force SunOS 4.x curses"
31ac_help="$ac_help
32  --with-osf1-curses      Used to force OSF/1 curses"
33ac_help="$ac_help
34  --with-vcurses[=incdir] Used to force SysV curses"
35ac_help="$ac_help
36  --with-ncurses[=dir]  Compile with ncurses/locate base dir"
37ac_help="$ac_help
38  --enable-shared[=PKGS]  build shared libraries [default=yes]"
39ac_help="$ac_help
40  --enable-static[=PKGS]  build static libraries [default=yes]"
41ac_help="$ac_help
42  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
43ac_help="$ac_help
44  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
45ac_help="$ac_help
46  --disable-libtool-lock  avoid locking (might break parallel builds)"
47ac_help="$ac_help
48  --with-esd-prefix=PFX   Prefix where ESD is installed (optional)"
49ac_help="$ac_help
50  --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)"
51ac_help="$ac_help
52  --disable-esdtest       Do not try to compile and run a test ESD program"
53ac_help="$ac_help
54  --enable-alsa=[no/yes]      Enable support for ALSA sound library"
55ac_help="$ac_help
56  --disable-nls           do not use Native Language Support"
57ac_help="$ac_help
58  --with-included-gettext use the GNU gettext library included here"
59ac_help="$ac_help
60  --with-catgets          use catgets functions if available"
61
62# Initialize some variables set by options.
63# The variables have the same names as the options, with
64# dashes changed to underlines.
65build=NONE
66cache_file=./config.cache
67exec_prefix=NONE
68host=NONE
69no_create=
70nonopt=NONE
71no_recursion=
72prefix=NONE
73program_prefix=NONE
74program_suffix=NONE
75program_transform_name=s,x,x,
76silent=
77site=
78srcdir=
79target=NONE
80verbose=
81x_includes=NONE
82x_libraries=NONE
83bindir='${exec_prefix}/bin'
84sbindir='${exec_prefix}/sbin'
85libexecdir='${exec_prefix}/libexec'
86datadir='${prefix}/share'
87sysconfdir='${prefix}/etc'
88sharedstatedir='${prefix}/com'
89localstatedir='${prefix}/var'
90libdir='${exec_prefix}/lib'
91includedir='${prefix}/include'
92oldincludedir='/usr/include'
93infodir='${prefix}/info'
94mandir='${prefix}/man'
95
96# Initialize some other variables.
97subdirs=
98MFLAGS= MAKEFLAGS=
99SHELL=${CONFIG_SHELL-/bin/sh}
100# Maximum number of lines to put in a shell here document.
101ac_max_here_lines=12
102
103ac_prev=
104for ac_option
105do
106
107  # If the previous option needs an argument, assign it.
108  if test -n "$ac_prev"; then
109    eval "$ac_prev=\$ac_option"
110    ac_prev=
111    continue
112  fi
113
114  case "$ac_option" in
115  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
116  *) ac_optarg= ;;
117  esac
118
119  # Accept the important Cygnus configure options, so we can diagnose typos.
120
121  case "$ac_option" in
122
123  -bindir | --bindir | --bindi | --bind | --bin | --bi)
124    ac_prev=bindir ;;
125  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
126    bindir="$ac_optarg" ;;
127
128  -build | --build | --buil | --bui | --bu)
129    ac_prev=build ;;
130  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
131    build="$ac_optarg" ;;
132
133  -cache-file | --cache-file | --cache-fil | --cache-fi \
134  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
135    ac_prev=cache_file ;;
136  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
137  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
138    cache_file="$ac_optarg" ;;
139
140  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141    ac_prev=datadir ;;
142  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143  | --da=*)
144    datadir="$ac_optarg" ;;
145
146  -disable-* | --disable-*)
147    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
148    # Reject names that are not valid shell variable names.
149    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
150      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151    fi
152    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153    eval "enable_${ac_feature}=no" ;;
154
155  -enable-* | --enable-*)
156    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
157    # Reject names that are not valid shell variable names.
158    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
159      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160    fi
161    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
162    case "$ac_option" in
163      *=*) ;;
164      *) ac_optarg=yes ;;
165    esac
166    eval "enable_${ac_feature}='$ac_optarg'" ;;
167
168  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
169  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
170  | --exec | --exe | --ex)
171    ac_prev=exec_prefix ;;
172  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
173  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
174  | --exec=* | --exe=* | --ex=*)
175    exec_prefix="$ac_optarg" ;;
176
177  -gas | --gas | --ga | --g)
178    # Obsolete; use --with-gas.
179    with_gas=yes ;;
180
181  -help | --help | --hel | --he)
182    # Omit some internal or obsolete options to make the list less imposing.
183    # This message is too long to be a string in the A/UX 3.1 sh.
184    cat << EOF
185Usage: configure [options] [host]
186Options: [defaults in brackets after descriptions]
187Configuration:
188  --cache-file=FILE       cache test results in FILE
189  --help                  print this message
190  --no-create             do not create output files
191  --quiet, --silent       do not print \`checking...' messages
192  --version               print the version of autoconf that created configure
193Directory and file names:
194  --prefix=PREFIX         install architecture-independent files in PREFIX
195                          [$ac_default_prefix]
196  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
197                          [same as prefix]
198  --bindir=DIR            user executables in DIR [EPREFIX/bin]
199  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
200  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
201  --datadir=DIR           read-only architecture-independent data in DIR
202                          [PREFIX/share]
203  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
204  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
205                          [PREFIX/com]
206  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
207  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
208  --includedir=DIR        C header files in DIR [PREFIX/include]
209  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
210  --infodir=DIR           info documentation in DIR [PREFIX/info]
211  --mandir=DIR            man documentation in DIR [PREFIX/man]
212  --srcdir=DIR            find the sources in DIR [configure dir or ..]
213  --program-prefix=PREFIX prepend PREFIX to installed program names
214  --program-suffix=SUFFIX append SUFFIX to installed program names
215  --program-transform-name=PROGRAM
216                          run sed PROGRAM on installed program names
217EOF
218    cat << EOF
219Host type:
220  --build=BUILD           configure for building on BUILD [BUILD=HOST]
221  --host=HOST             configure for HOST [guessed]
222  --target=TARGET         configure for TARGET [TARGET=HOST]
223Features and packages:
224  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
225  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
226  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
227  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
228  --x-includes=DIR        X include files are in DIR
229  --x-libraries=DIR       X library files are in DIR
230EOF
231    if test -n "$ac_help"; then
232      echo "--enable and --with options recognized:$ac_help"
233    fi
234    exit 0 ;;
235
236  -host | --host | --hos | --ho)
237    ac_prev=host ;;
238  -host=* | --host=* | --hos=* | --ho=*)
239    host="$ac_optarg" ;;
240
241  -includedir | --includedir | --includedi | --included | --include \
242  | --includ | --inclu | --incl | --inc)
243    ac_prev=includedir ;;
244  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
245  | --includ=* | --inclu=* | --incl=* | --inc=*)
246    includedir="$ac_optarg" ;;
247
248  -infodir | --infodir | --infodi | --infod | --info | --inf)
249    ac_prev=infodir ;;
250  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
251    infodir="$ac_optarg" ;;
252
253  -libdir | --libdir | --libdi | --libd)
254    ac_prev=libdir ;;
255  -libdir=* | --libdir=* | --libdi=* | --libd=*)
256    libdir="$ac_optarg" ;;
257
258  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
259  | --libexe | --libex | --libe)
260    ac_prev=libexecdir ;;
261  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
262  | --libexe=* | --libex=* | --libe=*)
263    libexecdir="$ac_optarg" ;;
264
265  -localstatedir | --localstatedir | --localstatedi | --localstated \
266  | --localstate | --localstat | --localsta | --localst \
267  | --locals | --local | --loca | --loc | --lo)
268    ac_prev=localstatedir ;;
269  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
270  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
271  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
272    localstatedir="$ac_optarg" ;;
273
274  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275    ac_prev=mandir ;;
276  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
277    mandir="$ac_optarg" ;;
278
279  -nfp | --nfp | --nf)
280    # Obsolete; use --without-fp.
281    with_fp=no ;;
282
283  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
284  | --no-cr | --no-c)
285    no_create=yes ;;
286
287  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
288  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289    no_recursion=yes ;;
290
291  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
292  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
293  | --oldin | --oldi | --old | --ol | --o)
294    ac_prev=oldincludedir ;;
295  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
296  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
297  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
298    oldincludedir="$ac_optarg" ;;
299
300  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301    ac_prev=prefix ;;
302  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
303    prefix="$ac_optarg" ;;
304
305  -program-prefix | --program-prefix | --program-prefi | --program-pref \
306  | --program-pre | --program-pr | --program-p)
307    ac_prev=program_prefix ;;
308  -program-prefix=* | --program-prefix=* | --program-prefi=* \
309  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
310    program_prefix="$ac_optarg" ;;
311
312  -program-suffix | --program-suffix | --program-suffi | --program-suff \
313  | --program-suf | --program-su | --program-s)
314    ac_prev=program_suffix ;;
315  -program-suffix=* | --program-suffix=* | --program-suffi=* \
316  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
317    program_suffix="$ac_optarg" ;;
318
319  -program-transform-name | --program-transform-name \
320  | --program-transform-nam | --program-transform-na \
321  | --program-transform-n | --program-transform- \
322  | --program-transform | --program-transfor \
323  | --program-transfo | --program-transf \
324  | --program-trans | --program-tran \
325  | --progr-tra | --program-tr | --program-t)
326    ac_prev=program_transform_name ;;
327  -program-transform-name=* | --program-transform-name=* \
328  | --program-transform-nam=* | --program-transform-na=* \
329  | --program-transform-n=* | --program-transform-=* \
330  | --program-transform=* | --program-transfor=* \
331  | --program-transfo=* | --program-transf=* \
332  | --program-trans=* | --program-tran=* \
333  | --progr-tra=* | --program-tr=* | --program-t=*)
334    program_transform_name="$ac_optarg" ;;
335
336  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
337  | -silent | --silent | --silen | --sile | --sil)
338    silent=yes ;;
339
340  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341    ac_prev=sbindir ;;
342  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343  | --sbi=* | --sb=*)
344    sbindir="$ac_optarg" ;;
345
346  -sharedstatedir | --sharedstatedir | --sharedstatedi \
347  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
348  | --sharedst | --shareds | --shared | --share | --shar \
349  | --sha | --sh)
350    ac_prev=sharedstatedir ;;
351  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
352  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
353  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354  | --sha=* | --sh=*)
355    sharedstatedir="$ac_optarg" ;;
356
357  -site | --site | --sit)
358    ac_prev=site ;;
359  -site=* | --site=* | --sit=*)
360    site="$ac_optarg" ;;
361
362  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
363    ac_prev=srcdir ;;
364  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
365    srcdir="$ac_optarg" ;;
366
367  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
368  | --syscon | --sysco | --sysc | --sys | --sy)
369    ac_prev=sysconfdir ;;
370  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
371  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
372    sysconfdir="$ac_optarg" ;;
373
374  -target | --target | --targe | --targ | --tar | --ta | --t)
375    ac_prev=target ;;
376  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
377    target="$ac_optarg" ;;
378
379  -v | -verbose | --verbose | --verbos | --verbo | --verb)
380    verbose=yes ;;
381
382  -version | --version | --versio | --versi | --vers)
383    echo "configure generated by autoconf version 2.13"
384    exit 0 ;;
385
386  -with-* | --with-*)
387    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
388    # Reject names that are not valid shell variable names.
389    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
390      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391    fi
392    ac_package=`echo $ac_package| sed 's/-/_/g'`
393    case "$ac_option" in
394      *=*) ;;
395      *) ac_optarg=yes ;;
396    esac
397    eval "with_${ac_package}='$ac_optarg'" ;;
398
399  -without-* | --without-*)
400    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
401    # Reject names that are not valid shell variable names.
402    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
403      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404    fi
405    ac_package=`echo $ac_package| sed 's/-/_/g'`
406    eval "with_${ac_package}=no" ;;
407
408  --x)
409    # Obsolete; use --with-x.
410    with_x=yes ;;
411
412  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
413  | --x-incl | --x-inc | --x-in | --x-i)
414    ac_prev=x_includes ;;
415  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
416  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
417    x_includes="$ac_optarg" ;;
418
419  -x-libraries | --x-libraries | --x-librarie | --x-librari \
420  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
421    ac_prev=x_libraries ;;
422  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
423  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
424    x_libraries="$ac_optarg" ;;
425
426  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
427    ;;
428
429  *)
430    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
431      echo "configure: warning: $ac_option: invalid host type" 1>&2
432    fi
433    if test "x$nonopt" != xNONE; then
434      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435    fi
436    nonopt="$ac_option"
437    ;;
438
439  esac
440done
441
442if test -n "$ac_prev"; then
443  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
444fi
445
446trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447
448# File descriptor usage:
449# 0 standard input
450# 1 file creation
451# 2 errors and warnings
452# 3 some systems may open it to /dev/tty
453# 4 used on the Kubota Titan
454# 6 checking for... messages and results
455# 5 compiler messages saved in config.log
456if test "$silent" = yes; then
457  exec 6>/dev/null
458else
459  exec 6>&1
460fi
461exec 5>./config.log
462
463echo "\
464This file contains any messages produced by compilers while
465running configure, to aid debugging if configure makes a mistake.
466" 1>&5
467
468# Strip out --no-create and --no-recursion so they do not pile up.
469# Also quote any args containing shell metacharacters.
470ac_configure_args=
471for ac_arg
472do
473  case "$ac_arg" in
474  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475  | --no-cr | --no-c) ;;
476  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
477  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
478  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
479  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
480  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
481  esac
482done
483
484# NLS nuisances.
485# Only set these to C if already set.  These must not be set unconditionally
486# because not all systems understand e.g. LANG=C (notably SCO).
487# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
488# Non-C LC_CTYPE values break the ctype check.
489if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
490if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
491if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
492if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
493
494# confdefs.h avoids OS command line length limits that DEFS can exceed.
495rm -rf conftest* confdefs.h
496# AIX cpp loses on an empty file, so make sure it contains at least a newline.
497echo > confdefs.h
498
499# A filename unique to this package, relative to the directory that
500# configure is in, which we can look for to find out if srcdir is correct.
501ac_unique_file=gmix
502
503# Find the source files, if location was not specified.
504if test -z "$srcdir"; then
505  ac_srcdir_defaulted=yes
506  # Try the directory containing this script, then its parent.
507  ac_prog=$0
508  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
509  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
510  srcdir=$ac_confdir
511  if test ! -r $srcdir/$ac_unique_file; then
512    srcdir=..
513  fi
514else
515  ac_srcdir_defaulted=no
516fi
517if test ! -r $srcdir/$ac_unique_file; then
518  if test "$ac_srcdir_defaulted" = yes; then
519    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520  else
521    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
522  fi
523fi
524srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525
526# Prefer explicitly selected file to automatically selected ones.
527if test -z "$CONFIG_SITE"; then
528  if test "x$prefix" != xNONE; then
529    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
530  else
531    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
532  fi
533fi
534for ac_site_file in $CONFIG_SITE; do
535  if test -r "$ac_site_file"; then
536    echo "loading site script $ac_site_file"
537    . "$ac_site_file"
538  fi
539done
540
541if test -r "$cache_file"; then
542  echo "loading cache $cache_file"
543  . $cache_file
544else
545  echo "creating cache $cache_file"
546  > $cache_file
547fi
548
549ac_ext=c
550# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
551ac_cpp='$CPP $CPPFLAGS'
552ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
553ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
554cross_compiling=$ac_cv_prog_cc_cross
555
556ac_exeext=
557ac_objext=o
558if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
559  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561    ac_n= ac_c='
562' ac_t='        '
563  else
564    ac_n=-n ac_c= ac_t=
565  fi
566else
567  ac_n= ac_c='\c' ac_t=
568fi
569
570
571
572
573
574
575ac_aux_dir=
576for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
577  if test -f $ac_dir/install-sh; then
578    ac_aux_dir=$ac_dir
579    ac_install_sh="$ac_aux_dir/install-sh -c"
580    break
581  elif test -f $ac_dir/install.sh; then
582    ac_aux_dir=$ac_dir
583    ac_install_sh="$ac_aux_dir/install.sh -c"
584    break
585  fi
586done
587if test -z "$ac_aux_dir"; then
588  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
589fi
590ac_config_guess=$ac_aux_dir/config.guess
591ac_config_sub=$ac_aux_dir/config.sub
592ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
593
594# Find a good install program.  We prefer a C program (faster),
595# so one script is as good as another.  But avoid the broken or
596# incompatible versions:
597# SysV /etc/install, /usr/sbin/install
598# SunOS /usr/etc/install
599# IRIX /sbin/install
600# AIX /bin/install
601# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
602# AFS /usr/afsws/bin/install, which mishandles nonexistent args
603# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
604# ./install, which can be erroneously created by make from ./install.sh.
605echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
606echo "configure:607: checking for a BSD compatible install" >&5
607if test -z "$INSTALL"; then
608if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
609  echo $ac_n "(cached) $ac_c" 1>&6
610else
611    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
612  for ac_dir in $PATH; do
613    # Account for people who put trailing slashes in PATH elements.
614    case "$ac_dir/" in
615    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
616    *)
617      # OSF1 and SCO ODT 3.0 have their own names for install.
618      # Don't use installbsd from OSF since it installs stuff as root
619      # by default.
620      for ac_prog in ginstall scoinst install; do
621        if test -f $ac_dir/$ac_prog; then
622          if test $ac_prog = install &&
623            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
624            # AIX install.  It has an incompatible calling convention.
625            :
626          else
627            ac_cv_path_install="$ac_dir/$ac_prog -c"
628            break 2
629          fi
630        fi
631      done
632      ;;
633    esac
634  done
635  IFS="$ac_save_IFS"
636
637fi
638  if test "${ac_cv_path_install+set}" = set; then
639    INSTALL="$ac_cv_path_install"
640  else
641    # As a last resort, use the slow shell script.  We don't cache a
642    # path for INSTALL within a source directory, because that will
643    # break other packages using the cache if that directory is
644    # removed, or if the path is relative.
645    INSTALL="$ac_install_sh"
646  fi
647fi
648echo "$ac_t""$INSTALL" 1>&6
649
650# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
651# It thinks the first close brace ends the variable substitution.
652test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
653
654test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
655
656test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
657
658echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
659echo "configure:660: checking whether build environment is sane" >&5
660# Just in case
661sleep 1
662echo timestamp > conftestfile
663# Do `set' in a subshell so we don't clobber the current shell's
664# arguments.  Must try -L first in case configure is actually a
665# symlink; some systems play weird games with the mod time of symlinks
666# (eg FreeBSD returns the mod time of the symlink's containing
667# directory).
668if (
669   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
670   if test "$*" = "X"; then
671      # -L didn't work.
672      set X `ls -t $srcdir/configure conftestfile`
673   fi
674   if test "$*" != "X $srcdir/configure conftestfile" \
675      && test "$*" != "X conftestfile $srcdir/configure"; then
676
677      # If neither matched, then we have a broken ls.  This can happen
678      # if, for instance, CONFIG_SHELL is bash and it inherits a
679      # broken ls alias from the environment.  This has actually
680      # happened.  Such a system could not be considered "sane".
681      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
682alias in your environment" 1>&2; exit 1; }
683   fi
684
685   test "$2" = conftestfile
686   )
687then
688   # Ok.
689   :
690else
691   { echo "configure: error: newly created file is older than distributed files!
692Check your system clock" 1>&2; exit 1; }
693fi
694rm -f conftest*
695echo "$ac_t""yes" 1>&6
696if test "$program_transform_name" = s,x,x,; then
697  program_transform_name=
698else
699  # Double any \ or $.  echo might interpret backslashes.
700  cat <<\EOF_SED > conftestsed
701s,\\,\\\\,g; s,\$,$$,g
702EOF_SED
703  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
704  rm -f conftestsed
705fi
706test "$program_prefix" != NONE &&
707  program_transform_name="s,^,${program_prefix},; $program_transform_name"
708# Use a double $ so make ignores it.
709test "$program_suffix" != NONE &&
710  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
711
712# sed with no file args requires a program.
713test "$program_transform_name" = "" && program_transform_name="s,x,x,"
714
715echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
716echo "configure:717: checking whether ${MAKE-make} sets \${MAKE}" >&5
717set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
718if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
719  echo $ac_n "(cached) $ac_c" 1>&6
720else
721  cat > conftestmake <<\EOF
722all:
723        @echo 'ac_maketemp="${MAKE}"'
724EOF
725# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
726eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
727if test -n "$ac_maketemp"; then
728  eval ac_cv_prog_make_${ac_make}_set=yes
729else
730  eval ac_cv_prog_make_${ac_make}_set=no
731fi
732rm -f conftestmake
733fi
734if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
735  echo "$ac_t""yes" 1>&6
736  SET_MAKE=
737else
738  echo "$ac_t""no" 1>&6
739  SET_MAKE="MAKE=${MAKE-make}"
740fi
741
742
743PACKAGE=gnome-media
744
745VERSION=1.2.3
746
747if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
748  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
749fi
750cat >> confdefs.h <<EOF
751#define PACKAGE "$PACKAGE"
752EOF
753
754cat >> confdefs.h <<EOF
755#define VERSION "$VERSION"
756EOF
757
758
759
760missing_dir=`cd $ac_aux_dir && pwd`
761echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
762echo "configure:763: checking for working aclocal" >&5
763# Run test in a subshell; some versions of sh will print an error if
764# an executable is not found, even if stderr is redirected.
765# Redirect stdin to placate older versions of autoconf.  Sigh.
766if (aclocal --version) < /dev/null > /dev/null 2>&1; then
767   ACLOCAL=aclocal
768   echo "$ac_t""found" 1>&6
769else
770   ACLOCAL="$missing_dir/missing aclocal"
771   echo "$ac_t""missing" 1>&6
772fi
773
774echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
775echo "configure:776: checking for working autoconf" >&5
776# Run test in a subshell; some versions of sh will print an error if
777# an executable is not found, even if stderr is redirected.
778# Redirect stdin to placate older versions of autoconf.  Sigh.
779if (autoconf --version) < /dev/null > /dev/null 2>&1; then
780   AUTOCONF=autoconf
781   echo "$ac_t""found" 1>&6
782else
783   AUTOCONF="$missing_dir/missing autoconf"
784   echo "$ac_t""missing" 1>&6
785fi
786
787echo $ac_n "checking for working automake""... $ac_c" 1>&6
788echo "configure:789: checking for working automake" >&5
789# Run test in a subshell; some versions of sh will print an error if
790# an executable is not found, even if stderr is redirected.
791# Redirect stdin to placate older versions of autoconf.  Sigh.
792if (automake --version) < /dev/null > /dev/null 2>&1; then
793   AUTOMAKE=automake
794   echo "$ac_t""found" 1>&6
795else
796   AUTOMAKE="$missing_dir/missing automake"
797   echo "$ac_t""missing" 1>&6
798fi
799
800echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
801echo "configure:802: checking for working autoheader" >&5
802# Run test in a subshell; some versions of sh will print an error if
803# an executable is not found, even if stderr is redirected.
804# Redirect stdin to placate older versions of autoconf.  Sigh.
805if (autoheader --version) < /dev/null > /dev/null 2>&1; then
806   AUTOHEADER=autoheader
807   echo "$ac_t""found" 1>&6
808else
809   AUTOHEADER="$missing_dir/missing autoheader"
810   echo "$ac_t""missing" 1>&6
811fi
812
813echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
814echo "configure:815: checking for working makeinfo" >&5
815# Run test in a subshell; some versions of sh will print an error if
816# an executable is not found, even if stderr is redirected.
817# Redirect stdin to placate older versions of autoconf.  Sigh.
818if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
819   MAKEINFO=makeinfo
820   echo "$ac_t""found" 1>&6
821else
822   MAKEINFO="$missing_dir/missing makeinfo"
823   echo "$ac_t""missing" 1>&6
824fi
825
826
827echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
828echo "configure:829: checking whether to enable maintainer-specific portions of Makefiles" >&5
829    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
830if test "${enable_maintainer_mode+set}" = set; then
831  enableval="$enable_maintainer_mode"
832  USE_MAINTAINER_MODE=$enableval
833else
834  USE_MAINTAINER_MODE=no
835fi
836
837  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
838 
839
840if test $USE_MAINTAINER_MODE = yes; then
841  MAINTAINER_MODE_TRUE=
842  MAINTAINER_MODE_FALSE='#'
843else
844  MAINTAINER_MODE_TRUE='#'
845  MAINTAINER_MODE_FALSE=
846fi
847  MAINT=$MAINTAINER_MODE_TRUE
848 
849
850
851
852XML_I18N_MERGE_OAF_RULE='\%.oaf : \%.oaf.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
853        $(top_builddir)/xml-i18n-merge -o $(top_srcdir)/po $< $*.oaf'
854
855XML_I18N_MERGE_KEYS_RULE='\%.keys : \%.keys.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
856        $(top_builddir)/xml-i18n-merge -k $(top_srcdir)/po $< $*.keys'
857
858XML_I18N_MERGE_DESKTOP_RULE='\%.desktop : \%.desktop.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
859        $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.desktop'
860
861XML_I18N_MERGE_DIRECTORY_RULE='\%.directory : \%.directory.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
862        $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.directory'
863
864XML_I18N_MERGE_SOUNDLIST_RULE='\%.soundlist : \%.soundlist.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
865        $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.soundlist'
866
867XML_I18N_MERGE_PONG_RULE='\%.pong : \%.pong.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
868        $(top_builddir)/xml-i18n-merge -x $(top_srcdir)/po $< $*.pong'
869
870XML_I18N_MERGE_XML_RULE='\%.xml : \%.xml.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
871        $(top_builddir)/xml-i18n-merge -x $(top_srcdir)/po $< $*.xml'
872
873# Always use our own xml-i18n-tools.
874XML_I18N_EXTRACT='$(top_builddir)/xml-i18n-extract'
875
876XML_I18N_MERGE='$(top_builddir)/xml-i18n-merge'
877
878XML_I18N_UPDATE='$(top_builddir)/xml-i18n-update'
879
880XML_I18N_MERGE_SOUNDLIST_RULE='\%.soundlist : \%.soundlist.in $(top_builddir)/xml-i18n-merge $(top_srcdir)/po/*.po\
881        $(top_builddir)/xml-i18n-merge -d $(top_srcdir)/po $< $*.soundlist'
882
883# Extract the first word of "perl", so it can be a program name with args.
884set dummy perl; ac_word=$2
885echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886echo "configure:887: checking for $ac_word" >&5
887if eval "test \"`echo '$''{'ac_cv_path_XML_I18N_TOOLS_PERL'+set}'`\" = set"; then
888  echo $ac_n "(cached) $ac_c" 1>&6
889else
890  case "$XML_I18N_TOOLS_PERL" in
891  /*)
892  ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a path.
893  ;;
894  ?:/*)                 
895  ac_cv_path_XML_I18N_TOOLS_PERL="$XML_I18N_TOOLS_PERL" # Let the user override the test with a dos path.
896  ;;
897  *)
898  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
899  ac_dummy="$PATH"
900  for ac_dir in $ac_dummy; do
901    test -z "$ac_dir" && ac_dir=.
902    if test -f $ac_dir/$ac_word; then
903      ac_cv_path_XML_I18N_TOOLS_PERL="$ac_dir/$ac_word"
904      break
905    fi
906  done
907  IFS="$ac_save_ifs"
908  ;;
909esac
910fi
911XML_I18N_TOOLS_PERL="$ac_cv_path_XML_I18N_TOOLS_PERL"
912if test -n "$XML_I18N_TOOLS_PERL"; then
913  echo "$ac_t""$XML_I18N_TOOLS_PERL" 1>&6
914else
915  echo "$ac_t""no" 1>&6
916fi
917
918if test -z "$XML_I18N_TOOLS_PERL"; then
919   { echo "configure: error: perl not found; required for xml-i18n-tools" 1>&2; exit 1; }
920fi
921if test -z "`$XML_I18N_TOOLS_PERL -v | fgrep '5.' 2> /dev/null`"; then
922   { echo "configure: error: perl 5.x required for xml-i18n-tools" 1>&2; exit 1; }
923fi
924
925
926
927# Redirect the config.log output again, so that the ltconfig log is not
928# clobbered by the next message.
929exec 5>>./config.log
930
931
932
933       
934
935if test x = y; then
936  INSIDE_GNOME_COMMON_TRUE=
937  INSIDE_GNOME_COMMON_FALSE='#'
938else
939  INSIDE_GNOME_COMMON_TRUE='#'
940  INSIDE_GNOME_COMMON_FALSE=
941fi
942
943        test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
944
945        for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
946
947
948# Extract the first word of "gcc", so it can be a program name with args.
949set dummy gcc; ac_word=$2
950echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
951echo "configure:952: checking for $ac_word" >&5
952if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
953  echo $ac_n "(cached) $ac_c" 1>&6
954else
955  if test -n "$CC"; then
956  ac_cv_prog_CC="$CC" # Let the user override the test.
957else
958  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
959  ac_dummy="$PATH"
960  for ac_dir in $ac_dummy; do
961    test -z "$ac_dir" && ac_dir=.
962    if test -f $ac_dir/$ac_word; then
963      ac_cv_prog_CC="gcc"
964      break
965    fi
966  done
967  IFS="$ac_save_ifs"
968fi
969fi
970CC="$ac_cv_prog_CC"
971if test -n "$CC"; then
972  echo "$ac_t""$CC" 1>&6
973else
974  echo "$ac_t""no" 1>&6
975fi
976
977if test -z "$CC"; then
978  # Extract the first word of "cc", so it can be a program name with args.
979set dummy cc; ac_word=$2
980echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
981echo "configure:982: checking for $ac_word" >&5
982if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
983  echo $ac_n "(cached) $ac_c" 1>&6
984else
985  if test -n "$CC"; then
986  ac_cv_prog_CC="$CC" # Let the user override the test.
987else
988  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
989  ac_prog_rejected=no
990  ac_dummy="$PATH"
991  for ac_dir in $ac_dummy; do
992    test -z "$ac_dir" && ac_dir=.
993    if test -f $ac_dir/$ac_word; then
994      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
995        ac_prog_rejected=yes
996        continue
997      fi
998      ac_cv_prog_CC="cc"
999      break
1000    fi
1001  done
1002  IFS="$ac_save_ifs"
1003if test $ac_prog_rejected = yes; then
1004  # We found a bogon in the path, so make sure we never use it.
1005  set dummy $ac_cv_prog_CC
1006  shift
1007  if test $# -gt 0; then
1008    # We chose a different compiler from the bogus one.
1009    # However, it has the same basename, so the bogon will be chosen
1010    # first if we set CC to just the basename; use the full file name.
1011    shift
1012    set dummy "$ac_dir/$ac_word" "$@"
1013    shift
1014    ac_cv_prog_CC="$@"
1015  fi
1016fi
1017fi
1018fi
1019CC="$ac_cv_prog_CC"
1020if test -n "$CC"; then
1021  echo "$ac_t""$CC" 1>&6
1022else
1023  echo "$ac_t""no" 1>&6
1024fi
1025
1026  if test -z "$CC"; then
1027    case "`uname -s`" in
1028    *win32* | *WIN32*)
1029      # Extract the first word of "cl", so it can be a program name with args.
1030set dummy cl; ac_word=$2
1031echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1032echo "configure:1033: checking for $ac_word" >&5
1033if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1034  echo $ac_n "(cached) $ac_c" 1>&6
1035else
1036  if test -n "$CC"; then
1037  ac_cv_prog_CC="$CC" # Let the user override the test.
1038else
1039  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1040  ac_dummy="$PATH"
1041  for ac_dir in $ac_dummy; do
1042    test -z "$ac_dir" && ac_dir=.
1043    if test -f $ac_dir/$ac_word; then
1044      ac_cv_prog_CC="cl"
1045      break
1046    fi
1047  done
1048  IFS="$ac_save_ifs"
1049fi
1050fi
1051CC="$ac_cv_prog_CC"
1052if test -n "$CC"; then
1053  echo "$ac_t""$CC" 1>&6
1054else
1055  echo "$ac_t""no" 1>&6
1056fi
1057 ;;
1058    esac
1059  fi
1060  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1061fi
1062
1063echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1064echo "configure:1065: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1065
1066ac_ext=c
1067# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1068ac_cpp='$CPP $CPPFLAGS'
1069ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1070ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1071cross_compiling=$ac_cv_prog_cc_cross
1072
1073cat > conftest.$ac_ext << EOF
1074
1075#line 1076 "configure"
1076#include "confdefs.h"
1077
1078main(){return(0);}
1079EOF
1080if { (eval echo configure:1081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1081  ac_cv_prog_cc_works=yes
1082  # If we can't run a trivial program, we are probably using a cross compiler.
1083  if (./conftest; exit) 2>/dev/null; then
1084    ac_cv_prog_cc_cross=no
1085  else
1086    ac_cv_prog_cc_cross=yes
1087  fi
1088else
1089  echo "configure: failed program was:" >&5
1090  cat conftest.$ac_ext >&5
1091  ac_cv_prog_cc_works=no
1092fi
1093rm -fr conftest*
1094ac_ext=c
1095# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1096ac_cpp='$CPP $CPPFLAGS'
1097ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1098ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1099cross_compiling=$ac_cv_prog_cc_cross
1100
1101echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1102if test $ac_cv_prog_cc_works = no; then
1103  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1104fi
1105echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1106echo "configure:1107: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1107echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1108cross_compiling=$ac_cv_prog_cc_cross
1109
1110echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1111echo "configure:1112: checking whether we are using GNU C" >&5
1112if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1113  echo $ac_n "(cached) $ac_c" 1>&6
1114else
1115  cat > conftest.c <<EOF
1116#ifdef __GNUC__
1117  yes;
1118#endif
1119EOF
1120if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1121  ac_cv_prog_gcc=yes
1122else
1123  ac_cv_prog_gcc=no
1124fi
1125fi
1126
1127echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1128
1129if test $ac_cv_prog_gcc = yes; then
1130  GCC=yes
1131else
1132  GCC=
1133fi
1134
1135ac_test_CFLAGS="${CFLAGS+set}"
1136ac_save_CFLAGS="$CFLAGS"
1137CFLAGS=
1138echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1139echo "configure:1140: checking whether ${CC-cc} accepts -g" >&5
1140if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1141  echo $ac_n "(cached) $ac_c" 1>&6
1142else
1143  echo 'void f(){}' > conftest.c
1144if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1145  ac_cv_prog_cc_g=yes
1146else
1147  ac_cv_prog_cc_g=no
1148fi
1149rm -f conftest*
1150
1151fi
1152
1153echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1154if test "$ac_test_CFLAGS" = set; then
1155  CFLAGS="$ac_save_CFLAGS"
1156elif test $ac_cv_prog_cc_g = yes; then
1157  if test "$GCC" = yes; then
1158    CFLAGS="-g -O2"
1159  else
1160    CFLAGS="-g"
1161  fi
1162else
1163  if test "$GCC" = yes; then
1164    CFLAGS="-O2"
1165  else
1166    CFLAGS=
1167  fi
1168fi
1169
1170echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1171echo "configure:1172: checking for POSIXized ISC" >&5
1172if test -d /etc/conf/kconfig.d &&
1173  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1174then
1175  echo "$ac_t""yes" 1>&6
1176  ISC=yes # If later tests want to check for ISC.
1177  cat >> confdefs.h <<\EOF
1178#define _POSIX_SOURCE 1
1179EOF
1180
1181  if test "$GCC" = yes; then
1182    CC="$CC -posix"
1183  else
1184    CC="$CC -Xp"
1185  fi
1186else
1187  echo "$ac_t""no" 1>&6
1188  ISC=
1189fi
1190
1191
1192
1193       
1194       
1195       
1196       
1197       
1198       
1199       
1200       
1201
1202        # Check whether --with-gnome-includes or --without-gnome-includes was given.
1203if test "${with_gnome_includes+set}" = set; then
1204  withval="$with_gnome_includes"
1205 
1206        CFLAGS="$CFLAGS -I$withval"
1207       
1208fi
1209
1210       
1211        # Check whether --with-gnome-libs or --without-gnome-libs was given.
1212if test "${with_gnome_libs+set}" = set; then
1213  withval="$with_gnome_libs"
1214 
1215        LDFLAGS="$LDFLAGS -L$withval"
1216        gnome_prefix=$withval
1217       
1218fi
1219
1220
1221        # Check whether --with-gnome or --without-gnome was given.
1222if test "${with_gnome+set}" = set; then
1223  withval="$with_gnome"
1224  if test x$withval = xyes; then
1225                        want_gnome=yes
1226                                                                        :
1227                else
1228                        if test "x$withval" = xno; then
1229                                want_gnome=no
1230                        else
1231                                want_gnome=yes
1232                                LDFLAGS="$LDFLAGS -L$withval/lib"
1233                                CFLAGS="$CFLAGS -I$withval/include"
1234                                gnome_prefix=$withval/lib
1235                        fi
1236                fi
1237else
1238  want_gnome=yes
1239fi
1240
1241
1242        if test "x$want_gnome" = xyes; then
1243
1244            # Extract the first word of "gnome-config", so it can be a program name with args.
1245set dummy gnome-config; ac_word=$2
1246echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247echo "configure:1248: checking for $ac_word" >&5
1248if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
1249  echo $ac_n "(cached) $ac_c" 1>&6
1250else
1251  case "$GNOME_CONFIG" in
1252  /*)
1253  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
1254  ;;
1255  ?:/*)                 
1256  ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
1257  ;;
1258  *)
1259  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1260  ac_dummy="$PATH"
1261  for ac_dir in $ac_dummy; do
1262    test -z "$ac_dir" && ac_dir=.
1263    if test -f $ac_dir/$ac_word; then
1264      ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
1265      break
1266    fi
1267  done
1268  IFS="$ac_save_ifs"
1269  test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
1270  ;;
1271esac
1272fi
1273GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
1274if test -n "$GNOME_CONFIG"; then
1275  echo "$ac_t""$GNOME_CONFIG" 1>&6
1276else
1277  echo "$ac_t""no" 1>&6
1278fi
1279
1280            if test "$GNOME_CONFIG" = "no"; then
1281              no_gnome_config="yes"
1282            else
1283              echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
1284echo "configure:1285: checking if $GNOME_CONFIG works" >&5
1285              if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
1286                echo "$ac_t""yes" 1>&6
1287               
1288       
1289        # Extract the first word of "orbit-config", so it can be a program name with args.
1290set dummy orbit-config; ac_word=$2
1291echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1292echo "configure:1293: checking for $ac_word" >&5
1293if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
1294  echo $ac_n "(cached) $ac_c" 1>&6
1295else
1296  case "$ORBIT_CONFIG" in
1297  /*)
1298  ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
1299  ;;
1300  ?:/*)                 
1301  ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
1302  ;;
1303  *)
1304  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1305  ac_dummy="$PATH"
1306  for ac_dir in $ac_dummy; do
1307    test -z "$ac_dir" && ac_dir=.
1308    if test -f $ac_dir/$ac_word; then
1309      ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
1310      break
1311    fi
1312  done
1313  IFS="$ac_save_ifs"
1314  test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
1315  ;;
1316esac
1317fi
1318ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
1319if test -n "$ORBIT_CONFIG"; then
1320  echo "$ac_t""$ORBIT_CONFIG" 1>&6
1321else
1322  echo "$ac_t""no" 1>&6
1323fi
1324
1325        # Extract the first word of "orbit-idl", so it can be a program name with args.
1326set dummy orbit-idl; ac_word=$2
1327echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1328echo "configure:1329: checking for $ac_word" >&5
1329if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
1330  echo $ac_n "(cached) $ac_c" 1>&6
1331else
1332  case "$ORBIT_IDL" in
1333  /*)
1334  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
1335  ;;
1336  ?:/*)                 
1337  ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
1338  ;;
1339  *)
1340  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1341  ac_dummy="$PATH"
1342  for ac_dir in $ac_dummy; do
1343    test -z "$ac_dir" && ac_dir=.
1344    if test -f $ac_dir/$ac_word; then
1345      ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
1346      break
1347    fi
1348  done
1349  IFS="$ac_save_ifs"
1350  test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
1351  ;;
1352esac
1353fi
1354ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
1355if test -n "$ORBIT_IDL"; then
1356  echo "$ac_t""$ORBIT_IDL" 1>&6
1357else
1358  echo "$ac_t""no" 1>&6
1359fi
1360
1361        echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
1362echo "configure:1363: checking for working ORBit environment" >&5
1363if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
1364  echo $ac_n "(cached) $ac_c" 1>&6
1365else
1366 
1367                if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
1368                        gnome_cv_orbit_found=no
1369                else
1370                        gnome_cv_orbit_found=yes
1371                fi
1372       
1373fi
1374
1375echo "$ac_t""$gnome_cv_orbit_found" 1>&6
1376       
1377
1378if test x$gnome_cv_orbit_found = xyes; then
1379  HAVE_ORBIT_TRUE=
1380  HAVE_ORBIT_FALSE='#'
1381else
1382  HAVE_ORBIT_TRUE='#'
1383  HAVE_ORBIT_FALSE=
1384fi
1385        if test x$gnome_cv_orbit_found = xyes; then
1386               
1387                ORBIT_CFLAGS=`orbit-config --cflags client server`
1388                ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
1389               
1390               
1391        else
1392                if test xfail = xfailure; then
1393                        { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
1394                fi
1395        fi
1396
1397        echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
1398echo "configure:1399: checking for gnorba libraries" >&5
1399if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
1400  echo $ac_n "(cached) $ac_c" 1>&6
1401else
1402 
1403                gnome_cv_gnorba_found=no
1404                if test x$gnome_cv_orbit_found = xyes; then
1405                        GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
1406                        GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
1407                        if test -n "$GNORBA_LIBS"; then
1408                                gnome_cv_gnorba_found=yes
1409                        fi
1410                fi
1411       
1412fi
1413
1414echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
1415       
1416
1417if test x$gnome_cv_gnorba_found = xyes; then
1418  HAVE_GNORBA_TRUE=
1419  HAVE_GNORBA_FALSE='#'
1420else
1421  HAVE_GNORBA_TRUE='#'
1422  HAVE_GNORBA_FALSE=
1423fi
1424        if test x$gnome_cv_orbit_found = xyes; then
1425               
1426                GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
1427                GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
1428               
1429               
1430        else
1431                if test xfail = xfailure; then
1432                        { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
1433                fi
1434        fi
1435
1436                GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
1437                GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
1438                GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
1439                GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
1440                ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
1441                GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
1442                GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
1443               
1444              else
1445                echo "$ac_t""no" 1>&6
1446                no_gnome_config="yes"
1447              fi
1448            fi
1449
1450            if test x$exec_prefix = xNONE; then
1451                if test x$prefix = xNONE; then
1452                    gnome_prefix=$ac_default_prefix/lib
1453                else
1454                    gnome_prefix=$prefix/lib
1455                fi
1456            else
1457                gnome_prefix=`eval echo \`echo $libdir\``
1458            fi
1459       
1460            if test "$no_gnome_config" = "yes"; then
1461              echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
1462echo "configure:1463: checking for gnomeConf.sh file in $gnome_prefix" >&5
1463              if test -f $gnome_prefix/gnomeConf.sh; then
1464                echo "$ac_t""found" 1>&6
1465                echo "loading gnome configuration from" \
1466                     "$gnome_prefix/gnomeConf.sh"
1467                . $gnome_prefix/gnomeConf.sh
1468               
1469              else
1470                echo "$ac_t""not found" 1>&6
1471                if test xfail = xfail; then
1472                  { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
1473                fi
1474              fi
1475            fi
1476        fi
1477
1478        if test -n ""; then
1479          n=""
1480          for i in $n; do
1481            echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
1482echo "configure:1483: checking extra library \"$i\"" >&5
1483            case $i in
1484              applets)
1485               
1486                GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
1487                echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
1488              docklets)
1489               
1490                GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
1491                echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
1492              capplet)
1493               
1494                GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
1495                echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
1496              *)
1497                echo "$ac_t""unknown library" 1>&6
1498            esac
1499          done
1500        fi
1501
1502
1503
1504  # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1505if test "${enable_compile_warnings+set}" = set; then
1506  enableval="$enable_compile_warnings"
1507  :
1508else
1509  enable_compile_warnings=minimum
1510fi
1511
1512
1513  echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1514echo "configure:1515: checking what warning flags to pass to the C compiler" >&5
1515  warnCFLAGS=
1516  if test "x$GCC" != xyes; then
1517    enable_compile_warnings=no
1518  fi
1519
1520  if test "x$enable_compile_warnings" != "xno"; then
1521    if test "x$GCC" = "xyes"; then
1522      case " $CFLAGS " in
1523      *\ \      -Wall\ \        *) ;;
1524      *) warnCFLAGS="-Wall -Wunused" ;;
1525      esac
1526
1527      ## -W is not all that useful.  And it cannot be controlled
1528      ## with individual -Wno-xxx flags, unlike -Wall
1529      if test "x$enable_compile_warnings" = "xyes"; then
1530        warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
1531      fi
1532    fi
1533  fi
1534  echo "$ac_t""$warnCFLAGS" 1>&6
1535
1536  # Check whether --enable-iso-c or --disable-iso-c was given.
1537if test "${enable_iso_c+set}" = set; then
1538  enableval="$enable_iso_c"
1539  :
1540else
1541  enable_iso_c=no
1542fi
1543
1544
1545  echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1546echo "configure:1547: checking what language compliance flags to pass to the C compiler" >&5
1547  complCFLAGS=
1548  if test "x$enable_iso_c" != "xno"; then
1549    if test "x$GCC" = "xyes"; then
1550      case " $CFLAGS " in
1551      *\ \      -ansi\ \        *) ;;
1552      *) complCFLAGS="$complCFLAGS -ansi" ;;
1553      esac
1554
1555      case " $CFLAGS " in
1556      *\ \      -pedantic\ \    *) ;;
1557      *) complCFLAGS="$complCFLAGS -pedantic" ;;
1558      esac
1559    fi
1560  fi
1561  echo "$ac_t""$complCFLAGS" 1>&6
1562  if test "x$cflags_set" != "xyes"; then
1563    CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1564    cflags_set=yes
1565   
1566  fi
1567
1568
1569# Find a good install program.  We prefer a C program (faster),
1570# so one script is as good as another.  But avoid the broken or
1571# incompatible versions:
1572# SysV /etc/install, /usr/sbin/install
1573# SunOS /usr/etc/install
1574# IRIX /sbin/install
1575# AIX /bin/install
1576# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1577# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1578# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1579# ./install, which can be erroneously created by make from ./install.sh.
1580echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1581echo "configure:1582: checking for a BSD compatible install" >&5
1582if test -z "$INSTALL"; then
1583if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1584  echo $ac_n "(cached) $ac_c" 1>&6
1585else
1586    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1587  for ac_dir in $PATH; do
1588    # Account for people who put trailing slashes in PATH elements.
1589    case "$ac_dir/" in
1590    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1591    *)
1592      # OSF1 and SCO ODT 3.0 have their own names for install.
1593      # Don't use installbsd from OSF since it installs stuff as root
1594      # by default.
1595      for ac_prog in ginstall scoinst install; do
1596        if test -f $ac_dir/$ac_prog; then
1597          if test $ac_prog = install &&
1598            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1599            # AIX install.  It has an incompatible calling convention.
1600            :
1601          else
1602            ac_cv_path_install="$ac_dir/$ac_prog -c"
1603            break 2
1604          fi
1605        fi
1606      done
1607      ;;
1608    esac
1609  done
1610  IFS="$ac_save_IFS"
1611
1612fi
1613  if test "${ac_cv_path_install+set}" = set; then
1614    INSTALL="$ac_cv_path_install"
1615  else
1616    # As a last resort, use the slow shell script.  We don't cache a
1617    # path for INSTALL within a source directory, because that will
1618    # break other packages using the cache if that directory is
1619    # removed, or if the path is relative.
1620    INSTALL="$ac_install_sh"
1621  fi
1622fi
1623echo "$ac_t""$INSTALL" 1>&6
1624
1625# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1626# It thinks the first close brace ends the variable substitution.
1627test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1628
1629test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1630
1631test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1632
1633echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1634echo "configure:1635: checking whether ln -s works" >&5
1635if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1636  echo $ac_n "(cached) $ac_c" 1>&6
1637else
1638  rm -f conftestdata
1639if ln -s X conftestdata 2>/dev/null
1640then
1641  rm -f conftestdata
1642  ac_cv_prog_LN_S="ln -s"
1643else
1644  ac_cv_prog_LN_S=ln
1645fi
1646fi
1647LN_S="$ac_cv_prog_LN_S"
1648if test "$ac_cv_prog_LN_S" = "ln -s"; then
1649  echo "$ac_t""yes" 1>&6
1650else
1651  echo "$ac_t""no" 1>&6
1652fi
1653
1654echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1655echo "configure:1656: checking whether ${MAKE-make} sets \${MAKE}" >&5
1656set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1657if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1658  echo $ac_n "(cached) $ac_c" 1>&6
1659else
1660  cat > conftestmake <<\EOF
1661all:
1662        @echo 'ac_maketemp="${MAKE}"'
1663EOF
1664# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1665eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1666if test -n "$ac_maketemp"; then
1667  eval ac_cv_prog_make_${ac_make}_set=yes
1668else
1669  eval ac_cv_prog_make_${ac_make}_set=no
1670fi
1671rm -f conftestmake
1672fi
1673if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1674  echo "$ac_t""yes" 1>&6
1675  SET_MAKE=
1676else
1677  echo "$ac_t""no" 1>&6
1678  SET_MAKE="MAKE=${MAKE-make}"
1679fi
1680
1681
1682echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1683echo "configure:1684: checking how to run the C preprocessor" >&5
1684# On Suns, sometimes $CPP names a directory.
1685if test -n "$CPP" && test -d "$CPP"; then
1686  CPP=
1687fi
1688if test -z "$CPP"; then
1689if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1690  echo $ac_n "(cached) $ac_c" 1>&6
1691else
1692    # This must be in double quotes, not single quotes, because CPP may get
1693  # substituted into the Makefile and "${CC-cc}" will confuse make.
1694  CPP="${CC-cc} -E"
1695  # On the NeXT, cc -E runs the code through the compiler's parser,
1696  # not just through cpp.
1697  cat > conftest.$ac_ext <<EOF
1698#line 1699 "configure"
1699#include "confdefs.h"
1700#include <assert.h>
1701Syntax Error
1702EOF
1703ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1704{ (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1705ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1706if test -z "$ac_err"; then
1707  :
1708else
1709  echo "$ac_err" >&5
1710  echo "configure: failed program was:" >&5
1711  cat conftest.$ac_ext >&5
1712  rm -rf conftest*
1713  CPP="${CC-cc} -E -traditional-cpp"
1714  cat > conftest.$ac_ext <<EOF
1715#line 1716 "configure"
1716#include "confdefs.h"
1717#include <assert.h>
1718Syntax Error
1719EOF
1720ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1721{ (eval echo configure:1722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1722ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1723if test -z "$ac_err"; then
1724  :
1725else
1726  echo "$ac_err" >&5
1727  echo "configure: failed program was:" >&5
1728  cat conftest.$ac_ext >&5
1729  rm -rf conftest*
1730  CPP="${CC-cc} -nologo -E"
1731  cat > conftest.$ac_ext <<EOF
1732#line 1733 "configure"
1733#include "confdefs.h"
1734#include <assert.h>
1735Syntax Error
1736EOF
1737ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1738{ (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1739ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1740if test -z "$ac_err"; then
1741  :
1742else
1743  echo "$ac_err" >&5
1744  echo "configure: failed program was:" >&5
1745  cat conftest.$ac_ext >&5
1746  rm -rf conftest*
1747  CPP=/lib/cpp
1748fi
1749rm -f conftest*
1750fi
1751rm -f conftest*
1752fi
1753rm -f conftest*
1754  ac_cv_prog_CPP="$CPP"
1755fi
1756  CPP="$ac_cv_prog_CPP"
1757else
1758  ac_cv_prog_CPP="$CPP"
1759fi
1760echo "$ac_t""$CPP" 1>&6
1761
1762
1763        search_ncurses=true
1764        screen_manager=""
1765        has_curses=false
1766
1767        CFLAGS=${CFLAGS--O}
1768
1769       
1770       
1771
1772        # Check whether --with-sco or --without-sco was given.
1773if test "${with_sco+set}" = set; then
1774  withval="$with_sco"
1775 
1776          if test x$withval = xyes; then
1777                cat >> confdefs.h <<\EOF
1778#define SCO_FLAVOR 1
1779EOF
1780
1781                CFLAGS="$CFLAGS -D_SVID3"
1782          fi
1783       
1784fi
1785
1786
1787        # Check whether --with-sunos-curses or --without-sunos-curses was given.
1788if test "${with_sunos_curses+set}" = set; then
1789  withval="$with_sunos_curses"
1790 
1791          if test x$withval = xyes; then
1792               
1793        search_ncurses=false
1794        screen_manager="SunOS 4.x /usr/5include curses"
1795        echo "$ac_t""Using SunOS 4.x /usr/5include curses" 1>&6
1796        cat >> confdefs.h <<\EOF
1797#define USE_SUNOS_CURSES 1
1798EOF
1799
1800        cat >> confdefs.h <<\EOF
1801#define HAS_CURSES 1
1802EOF
1803
1804        has_curses=true
1805        cat >> confdefs.h <<\EOF
1806#define NO_COLOR_CURSES 1
1807EOF
1808
1809        cat >> confdefs.h <<\EOF
1810#define USE_SYSV_CURSES 1
1811EOF
1812
1813        CURSES_INCLUDEDIR="-I/usr/5include"
1814        CURSES_LIBS="/usr/5lib/libcurses.a /usr/5lib/libtermcap.a"
1815        echo "$ac_t""Please note that some screen refreshs may fail" 1>&6
1816
1817          fi
1818       
1819fi
1820
1821
1822        # Check whether --with-osf1-curses or --without-osf1-curses was given.
1823if test "${with_osf1_curses+set}" = set; then
1824  withval="$with_osf1_curses"
1825 
1826          if test x$withval = xyes; then
1827               
1828       echo "$ac_t""Using OSF1 curses" 1>&6
1829       search_ncurses=false
1830       screen_manager="OSF1 curses"
1831       cat >> confdefs.h <<\EOF
1832#define HAS_CURSES 1
1833EOF
1834
1835       has_curses=true
1836       cat >> confdefs.h <<\EOF
1837#define NO_COLOR_CURSES 1
1838EOF
1839
1840       cat >> confdefs.h <<\EOF
1841#define USE_SYSV_CURSES 1
1842EOF
1843
1844       CURSES_LIBS="-lcurses"
1845
1846          fi
1847       
1848fi
1849
1850
1851        # Check whether --with-vcurses or --without-vcurses was given.
1852if test "${with_vcurses+set}" = set; then
1853  withval="$with_vcurses"
1854  if test x$withval != xyes; then
1855                CURSES_INCLUDEDIR="-I$withval"
1856          fi
1857         
1858        echo "$ac_t""Using SysV curses" 1>&6
1859        cat >> confdefs.h <<\EOF
1860#define HAS_CURSES 1
1861EOF
1862
1863        has_curses=true
1864        cat >> confdefs.h <<\EOF
1865#define USE_SYSV_CURSES 1
1866EOF
1867
1868        search_ncurses=false
1869        screen_manager="SysV/curses"
1870        CURSES_LIBS="-lcurses"
1871
1872       
1873fi
1874
1875
1876        # Check whether --with-ncurses or --without-ncurses was given.
1877if test "${with_ncurses+set}" = set; then
1878  withval="$with_ncurses"
1879  if test x$withval = xno ; then
1880                search_ncurses=false
1881          elif test x$withval != xyes ; then
1882                CURSES_LIBS="$LIBS -L$withval/lib -lncurses"
1883                CURSES_INCLUDEDIR="-I$withval/include"
1884                search_ncurses=false
1885                screen_manager="ncurses"
1886                cat >> confdefs.h <<\EOF
1887#define USE_NCURSES 1
1888EOF
1889
1890                cat >> confdefs.h <<\EOF
1891#define HAS_CURSES 1
1892EOF
1893
1894                has_curses=true
1895          fi
1896       
1897fi
1898
1899
1900        if $search_ncurses
1901        then
1902               
1903    echo "checking "location of ncurses.h file"" 1>&6
1904echo "configure:1905: checking "location of ncurses.h file"" >&5
1905
1906   
1907    if $search_ncurses
1908    then
1909        if test -f /usr/include/ncurses.h
1910        then
1911            echo "$ac_t""Found ncurses on /usr/include/ncurses.h" 1>&6
1912            CURSES_LIBS="-lncurses"
1913            CURSES_INCLUDEDIR=""
1914            search_ncurses=false
1915            screen_manager="ncurses on /usr/include"
1916            cat >> confdefs.h <<\EOF
1917#define HAS_CURSES 1
1918EOF
1919
1920            has_curses=true
1921            cat >> confdefs.h <<\EOF
1922#define USE_NCURSES 1
1923EOF
1924
1925        fi
1926    fi
1927
1928   
1929    if $search_ncurses
1930    then
1931        if test -f /usr/include/ncurses/ncurses.h
1932        then
1933            echo "$ac_t""Found ncurses on /usr/include/ncurses/ncurses.h" 1>&6
1934            CURSES_LIBS="-lncurses"
1935            CURSES_INCLUDEDIR="-I/usr/include/ncurses"
1936            search_ncurses=false
1937            screen_manager="ncurses on /usr/include/ncurses"
1938            cat >> confdefs.h <<\EOF
1939#define HAS_CURSES 1
1940EOF
1941
1942            has_curses=true
1943            cat >> confdefs.h <<\EOF
1944#define USE_NCURSES 1
1945EOF
1946
1947        fi
1948    fi
1949
1950   
1951    if $search_ncurses
1952    then
1953        if test -f /usr/local/include/ncurses.h
1954        then
1955            echo "$ac_t""Found ncurses on /usr/local/include/ncurses.h" 1>&6
1956            CURSES_LIBS="-L/usr/local/lib -lncurses"
1957            CURSES_INCLUDEDIR="-I/usr/local/include"
1958            search_ncurses=false
1959            screen_manager="ncurses on /usr/local"
1960            cat >> confdefs.h <<\EOF
1961#define HAS_CURSES 1
1962EOF
1963
1964            has_curses=true
1965            cat >> confdefs.h <<\EOF
1966#define USE_NCURSES 1
1967EOF
1968
1969        fi
1970    fi
1971
1972   
1973    if $search_ncurses
1974    then
1975        if test -f /usr/local/include/ncurses/ncurses.h
1976        then
1977            echo "$ac_t""Found ncurses on /usr/local/include/ncurses/ncurses.h" 1>&6
1978            CURSES_LIBS="-L/usr/local/lib -L/usr/local/lib/ncurses -lncurses"
1979            CURSES_INCLUDEDIR="-I/usr/local/include/ncurses"
1980            search_ncurses=false
1981            screen_manager="ncurses on /usr/local/include/ncurses"
1982            cat >> confdefs.h <<\EOF
1983#define HAS_CURSES 1
1984EOF
1985
1986            has_curses=true
1987            cat >> confdefs.h <<\EOF
1988#define USE_NCURSES 1
1989EOF
1990
1991        fi
1992    fi
1993
1994
1995   
1996    if $search_ncurses
1997    then
1998        if test -f /usr/local/include/ncurses/curses.h
1999        then
2000            echo "$ac_t""Found ncurses on /usr/local/include/ncurses/curses.h" 1>&6
2001            CURSES_LIBS="-L/usr/local/lib -lncurses"
2002            CURSES_INCLUDEDIR="-I/usr/local/include/ncurses -DRENAMED_NCURSES"
2003            search_ncurses=false
2004            screen_manager="renamed ncurses on /usr/local/.../ncurses"
2005            cat >> confdefs.h <<\EOF
2006#define HAS_CURSES 1
2007EOF
2008
2009            has_curses=true
2010            cat >> confdefs.h <<\EOF
2011#define USE_NCURSES 1
2012EOF
2013
2014        fi
2015    fi
2016
2017
2018   
2019    if $search_ncurses
2020    then
2021        if test -f /usr/include/ncurses/curses.h
2022        then
2023            echo "$ac_t""Found ncurses on /usr/include/ncurses/curses.h" 1>&6
2024            CURSES_LIBS="-lncurses"
2025            CURSES_INCLUDEDIR="-I/usr/include/ncurses -DRENAMED_NCURSES"
2026            search_ncurses=false
2027            screen_manager="renamed ncurses on /usr/include/ncurses"
2028            cat >> confdefs.h <<\EOF
2029#define HAS_CURSES 1
2030EOF
2031
2032            has_curses=true
2033            cat >> confdefs.h <<\EOF
2034#define USE_NCURSES 1
2035EOF
2036
2037        fi
2038    fi
2039
2040
2041                if $search_ncurses
2042    then
2043        cat > conftest.$ac_ext <<EOF
2044#line 2045 "configure"
2045#include "confdefs.h"
2046#include </usr/include/curses.h>
2047EOF
2048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2049  egrep "init_color" >/dev/null 2>&1; then
2050  rm -rf conftest*
2051 
2052        echo "$ac_t""Using SysV curses" 1>&6
2053        cat >> confdefs.h <<\EOF
2054#define HAS_CURSES 1
2055EOF
2056
2057        has_curses=true
2058        cat >> confdefs.h <<\EOF
2059#define USE_SYSV_CURSES 1
2060EOF
2061
2062        search_ncurses=false
2063        screen_manager="SysV/curses"
2064        CURSES_LIBS="-lcurses"
2065
2066fi
2067rm -f conftest*
2068
2069        cat > conftest.$ac_ext <<EOF
2070#line 2071 "configure"
2071#include "confdefs.h"
2072
2073#include <curses.h>
2074#ifdef __NCURSES_H
2075#undef USE_NCURSES
2076USE_NCURSES
2077#endif
2078
2079EOF
2080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2081  egrep "USE_NCURSES" >/dev/null 2>&1; then
2082  rm -rf conftest*
2083 
2084        CURSES_INCLUDEDIR="$CURSES_INCLUDEDIR -DRENAMED_NCURSES"
2085        cat >> confdefs.h <<\EOF
2086#define HAS_CURSES 1
2087EOF
2088
2089        has_curses=true
2090        cat >> confdefs.h <<\EOF
2091#define USE_NCURSES 1
2092EOF
2093
2094        search_ncurses=false
2095        screen_manager="ncurses installed as curses"
2096
2097fi
2098rm -f conftest*
2099
2100    fi
2101
2102                        if $search_ncurses
2103    then
2104        if test -f /usr/5include/curses.h
2105        then
2106           
2107        search_ncurses=false
2108        screen_manager="SunOS 4.x /usr/5include curses"
2109        echo "$ac_t""Using SunOS 4.x /usr/5include curses" 1>&6
2110        cat >> confdefs.h <<\EOF
2111#define USE_SUNOS_CURSES 1
2112EOF
2113
2114        cat >> confdefs.h <<\EOF
2115#define HAS_CURSES 1
2116EOF
2117
2118        has_curses=true
2119        cat >> confdefs.h <<\EOF
2120#define NO_COLOR_CURSES 1
2121EOF
2122
2123        cat >> confdefs.h <<\EOF
2124#define USE_SYSV_CURSES 1
2125EOF
2126
2127        CURSES_INCLUDEDIR="-I/usr/5include"
2128        CURSES_LIBS="/usr/5lib/libcurses.a /usr/5lib/libtermcap.a"
2129        echo "$ac_t""Please note that some screen refreshs may fail" 1>&6
2130
2131        fi
2132    else
2133        # check for ncurses version, to properly ifdef mouse-fix
2134        echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
2135echo "configure:2136: checking for ncurses version" >&5
2136        ncurses_version=unknown
2137cat > conftest.$ac_ext <<EOF
2138#line 2139 "configure"
2139#include "confdefs.h"
2140#ifdef RENAMED_NCURSES
2141#include <curses.h>
2142#else
2143#include <ncurses.h>
2144#endif
2145#undef VERSION
2146VERSION:NCURSES_VERSION
2147EOF
2148        if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2149  egrep "VERSION:" >conftest.out 2>&1; then
2150            ncurses_version=`cat conftest.out|sed -e 's/^[^"]*"//' -e 's/".*//'`
2151        fi
2152        rm -rf conftest*
2153        echo "$ac_t""$ncurses_version" 1>&6
2154        case "$ncurses_version" in
2155        4.[01])
2156            cat >> confdefs.h <<\EOF
2157#define NCURSES_970530 2
2158EOF
2159
2160            ;;
2161        1.9.9g)
2162            cat >> confdefs.h <<\EOF
2163#define NCURSES_970530 1
2164EOF
2165
2166            ;;
2167        1*)
2168            cat >> confdefs.h <<\EOF
2169#define NCURSES_970530 0
2170EOF
2171
2172            ;;
2173        esac
2174    fi
2175
2176        fi
2177
2178
2179
2180
2181
2182if test "$has_curses" = true; then
2183  HAS_CURSES_TRUE=
2184  HAS_CURSES_FALSE='#'
2185else
2186  HAS_CURSES_TRUE='#'
2187  HAS_CURSES_FALSE=
2188fi
2189
2190
2191
2192if test x = y; then
2193  FALSE_TRUE=
2194  FALSE_FALSE='#'
2195else
2196  FALSE_TRUE='#'
2197  FALSE_FALSE=
2198fi
2199
2200echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2201echo "configure:2202: checking for ANSI C header files" >&5
2202if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2203  echo $ac_n "(cached) $ac_c" 1>&6
2204else
2205  cat > conftest.$ac_ext <<EOF
2206#line 2207 "configure"
2207#include "confdefs.h"
2208#include <stdlib.h>
2209#include <stdarg.h>
2210#include <string.h>
2211#include <float.h>
2212EOF
2213ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2214{ (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2215ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2216if test -z "$ac_err"; then
2217  rm -rf conftest*
2218  ac_cv_header_stdc=yes
2219else
2220  echo "$ac_err" >&5
2221  echo "configure: failed program was:" >&5
2222  cat conftest.$ac_ext >&5
2223  rm -rf conftest*
2224  ac_cv_header_stdc=no
2225fi
2226rm -f conftest*
2227
2228if test $ac_cv_header_stdc = yes; then
2229  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2230cat > conftest.$ac_ext <<EOF
2231#line 2232 "configure"
2232#include "confdefs.h"
2233#include <string.h>
2234EOF
2235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2236  egrep "memchr" >/dev/null 2>&1; then
2237  :
2238else
2239  rm -rf conftest*
2240  ac_cv_header_stdc=no
2241fi
2242rm -f conftest*
2243
2244fi
2245
2246if test $ac_cv_header_stdc = yes; then
2247  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2248cat > conftest.$ac_ext <<EOF
2249#line 2250 "configure"
2250#include "confdefs.h"
2251#include <stdlib.h>
2252EOF
2253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2254  egrep "free" >/dev/null 2>&1; then
2255  :
2256else
2257  rm -rf conftest*
2258  ac_cv_header_stdc=no
2259fi
2260rm -f conftest*
2261
2262fi
2263
2264if test $ac_cv_header_stdc = yes; then
2265  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2266if test "$cross_compiling" = yes; then
2267  :
2268else
2269  cat > conftest.$ac_ext <<EOF
2270#line 2271 "configure"
2271#include "confdefs.h"
2272#include <ctype.h>
2273#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2274#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2275#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2276int main () { int i; for (i = 0; i < 256; i++)
2277if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2278exit (0); }
2279
2280EOF
2281if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2282then
2283  :
2284else
2285  echo "configure: failed program was:" >&5
2286  cat conftest.$ac_ext >&5
2287  rm -fr conftest*
2288  ac_cv_header_stdc=no
2289fi
2290rm -fr conftest*
2291fi
2292
2293fi
2294fi
2295
2296echo "$ac_t""$ac_cv_header_stdc" 1>&6
2297if test $ac_cv_header_stdc = yes; then
2298  cat >> confdefs.h <<\EOF
2299#define STDC_HEADERS 1
2300EOF
2301
2302fi
2303
2304for ac_hdr in fcntl.h limits.h malloc.h strings.h sys/ioctl.h unistd.h
2305do
2306ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2307echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2308echo "configure:2309: checking for $ac_hdr" >&5
2309if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2310  echo $ac_n "(cached) $ac_c" 1>&6
2311else
2312  cat > conftest.$ac_ext <<EOF
2313#line 2314 "configure"
2314#include "confdefs.h"
2315#include <$ac_hdr>
2316EOF
2317ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2318{ (eval echo configure:2319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2319ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2320if test -z "$ac_err"; then
2321  rm -rf conftest*
2322  eval "ac_cv_header_$ac_safe=yes"
2323else
2324  echo "$ac_err" >&5
2325  echo "configure: failed program was:" >&5
2326  cat conftest.$ac_ext >&5
2327  rm -rf conftest*
2328  eval "ac_cv_header_$ac_safe=no"
2329fi
2330rm -f conftest*
2331fi
2332if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2333  echo "$ac_t""yes" 1>&6
2334    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2335  cat >> confdefs.h <<EOF
2336#define $ac_tr_hdr 1
2337EOF
2338 
2339else
2340  echo "$ac_t""no" 1>&6
2341fi
2342done
2343
2344
2345echo $ac_n "checking for working const""... $ac_c" 1>&6
2346echo "configure:2347: checking for working const" >&5
2347if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2348  echo $ac_n "(cached) $ac_c" 1>&6
2349else
2350  cat > conftest.$ac_ext <<EOF
2351#line 2352 "configure"
2352#include "confdefs.h"
2353
2354int main() {
2355
2356/* Ultrix mips cc rejects this.  */
2357typedef int charset[2]; const charset x;
2358/* SunOS 4.1.1 cc rejects this.  */
2359char const *const *ccp;
2360char **p;
2361/* NEC SVR4.0.2 mips cc rejects this.  */
2362struct point {int x, y;};
2363static struct point const zero = {0,0};
2364/* AIX XL C 1.02.0.0 rejects this.
2365   It does not let you subtract one const X* pointer from another in an arm
2366   of an if-expression whose if-part is not a constant expression */
2367const char *g = "string";
2368ccp = &g + (g ? g-g : 0);
2369/* HPUX 7.0 cc rejects these. */
2370++ccp;
2371p = (char**) ccp;
2372ccp = (char const *const *) p;
2373{ /* SCO 3.2v4 cc rejects this.  */
2374  char *t;
2375  char const *s = 0 ? (char *) 0 : (char const *) 0;
2376
2377  *t++ = 0;
2378}
2379{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2380  int x[] = {25, 17};
2381  const int *foo = &x[0];
2382  ++foo;
2383}
2384{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2385  typedef const int *iptr;
2386  iptr p = 0;
2387  ++p;
2388}
2389{ /* AIX XL C 1.02.0.0 rejects this saying
2390     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2391  struct s { int j; const int *ap[3]; };
2392  struct s *b; b->j = 5;
2393}
2394{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2395  const int foo = 10;
2396}
2397
2398; return 0; }
2399EOF
2400if { (eval echo configure:2401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2401  rm -rf conftest*
2402  ac_cv_c_const=yes
2403else
2404  echo "configure: failed program was:" >&5
2405  cat conftest.$ac_ext >&5
2406  rm -rf conftest*
2407  ac_cv_c_const=no
2408fi
2409rm -f conftest*
2410fi
2411
2412echo "$ac_t""$ac_cv_c_const" 1>&6
2413if test $ac_cv_c_const = no; then
2414  cat >> confdefs.h <<\EOF
2415#define const
2416EOF
2417
2418fi
2419
2420echo $ac_n "checking for inline""... $ac_c" 1>&6
2421echo "configure:2422: checking for inline" >&5
2422if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2423  echo $ac_n "(cached) $ac_c" 1>&6
2424else
2425  ac_cv_c_inline=no
2426for ac_kw in inline __inline__ __inline; do
2427  cat > conftest.$ac_ext <<EOF
2428#line 2429 "configure"
2429#include "confdefs.h"
2430
2431int main() {
2432} $ac_kw foo() {
2433; return 0; }
2434EOF
2435if { (eval echo configure:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2436  rm -rf conftest*
2437  ac_cv_c_inline=$ac_kw; break
2438else
2439  echo "configure: failed program was:" >&5
2440  cat conftest.$ac_ext >&5
2441fi
2442rm -f conftest*
2443done
2444
2445fi
2446
2447echo "$ac_t""$ac_cv_c_inline" 1>&6
2448case "$ac_cv_c_inline" in
2449  inline | yes) ;;
2450  no) cat >> confdefs.h <<\EOF
2451#define inline
2452EOF
2453 ;;
2454  *)  cat >> confdefs.h <<EOF
2455#define inline $ac_cv_c_inline
2456EOF
2457 ;;
2458esac
2459
2460echo $ac_n "checking for off_t""... $ac_c" 1>&6
2461echo "configure:2462: checking for off_t" >&5
2462if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2463  echo $ac_n "(cached) $ac_c" 1>&6
2464else
2465  cat > conftest.$ac_ext <<EOF
2466#line 2467 "configure"
2467#include "confdefs.h"
2468#include <sys/types.h>
2469#if STDC_HEADERS
2470#include <stdlib.h>
2471#include <stddef.h>
2472#endif
2473EOF
2474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2475  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2476  rm -rf conftest*
2477  ac_cv_type_off_t=yes
2478else
2479  rm -rf conftest*
2480  ac_cv_type_off_t=no
2481fi
2482rm -f conftest*
2483
2484fi
2485echo "$ac_t""$ac_cv_type_off_t" 1>&6
2486if test $ac_cv_type_off_t = no; then
2487  cat >> confdefs.h <<\EOF
2488#define off_t long
2489EOF
2490
2491fi
2492
2493echo $ac_n "checking for size_t""... $ac_c" 1>&6
2494echo "configure:2495: checking for size_t" >&5
2495if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2496  echo $ac_n "(cached) $ac_c" 1>&6
2497else
2498  cat > conftest.$ac_ext <<EOF
2499#line 2500 "configure"
2500#include "confdefs.h"
2501#include <sys/types.h>
2502#if STDC_HEADERS
2503#include <stdlib.h>
2504#include <stddef.h>
2505#endif
2506EOF
2507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2508  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2509  rm -rf conftest*
2510  ac_cv_type_size_t=yes
2511else
2512  rm -rf conftest*
2513  ac_cv_type_size_t=no
2514fi
2515rm -f conftest*
2516
2517fi
2518echo "$ac_t""$ac_cv_type_size_t" 1>&6
2519if test $ac_cv_type_size_t = no; then
2520  cat >> confdefs.h <<\EOF
2521#define size_t unsigned
2522EOF
2523
2524fi
2525
2526
2527# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2528# for constant arguments.  Useless!
2529echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2530echo "configure:2531: checking for working alloca.h" >&5
2531if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2532  echo $ac_n "(cached) $ac_c" 1>&6
2533else
2534  cat > conftest.$ac_ext <<EOF
2535#line 2536 "configure"
2536#include "confdefs.h"
2537#include <alloca.h>
2538int main() {
2539char *p = alloca(2 * sizeof(int));
2540; return 0; }
2541EOF
2542if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2543  rm -rf conftest*
2544  ac_cv_header_alloca_h=yes
2545else
2546  echo "configure: failed program was:" >&5
2547  cat conftest.$ac_ext >&5
2548  rm -rf conftest*
2549  ac_cv_header_alloca_h=no
2550fi
2551rm -f conftest*
2552fi
2553
2554echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2555if test $ac_cv_header_alloca_h = yes; then
2556  cat >> confdefs.h <<\EOF
2557#define HAVE_ALLOCA_H 1
2558EOF
2559
2560fi
2561
2562echo $ac_n "checking for alloca""... $ac_c" 1>&6
2563echo "configure:2564: checking for alloca" >&5
2564if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2565  echo $ac_n "(cached) $ac_c" 1>&6
2566else
2567  cat > conftest.$ac_ext <<EOF
2568#line 2569 "configure"
2569#include "confdefs.h"
2570
2571#ifdef __GNUC__
2572# define alloca __builtin_alloca
2573#else
2574# ifdef _MSC_VER
2575#  include <malloc.h>
2576#  define alloca _alloca
2577# else
2578#  if HAVE_ALLOCA_H
2579#   include <alloca.h>
2580#  else
2581#   ifdef _AIX
2582 #pragma alloca
2583#   else
2584#    ifndef alloca /* predefined by HP cc +Olibcalls */
2585char *alloca ();
2586#    endif
2587#   endif
2588#  endif
2589# endif
2590#endif
2591
2592int main() {
2593char *p = (char *) alloca(1);
2594; return 0; }
2595EOF
2596if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2597  rm -rf conftest*
2598  ac_cv_func_alloca_works=yes
2599else
2600  echo "configure: failed program was:" >&5
2601  cat conftest.$ac_ext >&5
2602  rm -rf conftest*
2603  ac_cv_func_alloca_works=no
2604fi
2605rm -f conftest*
2606fi
2607
2608echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2609if test $ac_cv_func_alloca_works = yes; then
2610  cat >> confdefs.h <<\EOF
2611#define HAVE_ALLOCA 1
2612EOF
2613
2614fi
2615
2616if test $ac_cv_func_alloca_works = no; then
2617  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2618  # that cause trouble.  Some versions do not even contain alloca or
2619  # contain a buggy version.  If you still want to use their alloca,
2620  # use ar to extract alloca.o from them instead of compiling alloca.c.
2621  ALLOCA=alloca.${ac_objext}
2622  cat >> confdefs.h <<\EOF
2623#define C_ALLOCA 1
2624EOF
2625
2626
2627echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2628echo "configure:2629: checking whether alloca needs Cray hooks" >&5
2629if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2630  echo $ac_n "(cached) $ac_c" 1>&6
2631else
2632  cat > conftest.$ac_ext <<EOF
2633#line 2634 "configure"
2634#include "confdefs.h"
2635#if defined(CRAY) && ! defined(CRAY2)
2636webecray
2637#else
2638wenotbecray
2639#endif
2640
2641EOF
2642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2643  egrep "webecray" >/dev/null 2>&1; then
2644  rm -rf conftest*
2645  ac_cv_os_cray=yes
2646else
2647  rm -rf conftest*
2648  ac_cv_os_cray=no
2649fi
2650rm -f conftest*
2651
2652fi
2653
2654echo "$ac_t""$ac_cv_os_cray" 1>&6
2655if test $ac_cv_os_cray = yes; then
2656for ac_func in _getb67 GETB67 getb67; do
2657  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2658echo "configure:2659: checking for $ac_func" >&5
2659if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2660  echo $ac_n "(cached) $ac_c" 1>&6
2661else
2662  cat > conftest.$ac_ext <<EOF
2663#line 2664 "configure"
2664#include "confdefs.h"
2665/* System header to define __stub macros and hopefully few prototypes,
2666    which can conflict with char $ac_func(); below.  */
2667#include <assert.h>
2668/* Override any gcc2 internal prototype to avoid an error.  */
2669/* We use char because int might match the return type of a gcc2
2670    builtin and then its argument prototype would still apply.  */
2671char $ac_func();
2672
2673int main() {
2674
2675/* The GNU C library defines this for functions which it implements
2676    to always fail with ENOSYS.  Some functions are actually named
2677    something starting with __ and the normal name is an alias.  */
2678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2679choke me
2680#else
2681$ac_func();
2682#endif
2683
2684; return 0; }
2685EOF
2686if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2687  rm -rf conftest*
2688  eval "ac_cv_func_$ac_func=yes"
2689else
2690  echo "configure: failed program was:" >&5
2691  cat conftest.$ac_ext >&5
2692  rm -rf conftest*
2693  eval "ac_cv_func_$ac_func=no"
2694fi
2695rm -f conftest*
2696fi
2697
2698if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2699  echo "$ac_t""yes" 1>&6
2700  cat >> confdefs.h <<EOF
2701#define CRAY_STACKSEG_END $ac_func
2702EOF
2703
2704  break
2705else
2706  echo "$ac_t""no" 1>&6
2707fi
2708
2709done
2710fi
2711
2712echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2713echo "configure:2714: checking stack direction for C alloca" >&5
2714if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2715  echo $ac_n "(cached) $ac_c" 1>&6
2716else
2717  if test "$cross_compiling" = yes; then
2718  ac_cv_c_stack_direction=0
2719else
2720  cat > conftest.$ac_ext <<EOF
2721#line 2722 "configure"
2722#include "confdefs.h"
2723find_stack_direction ()
2724{
2725  static char *addr = 0;
2726  auto char dummy;
2727  if (addr == 0)
2728    {
2729      addr = &dummy;
2730      return find_stack_direction ();
2731    }
2732  else
2733    return (&dummy > addr) ? 1 : -1;
2734}
2735main ()
2736{
2737  exit (find_stack_direction() < 0);
2738}
2739EOF
2740if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2741then
2742  ac_cv_c_stack_direction=1
2743else
2744  echo "configure: failed program was:" >&5
2745  cat conftest.$ac_ext >&5
2746  rm -fr conftest*
2747  ac_cv_c_stack_direction=-1
2748fi
2749rm -fr conftest*
2750fi
2751
2752fi
2753
2754echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2755cat >> confdefs.h <<EOF
2756#define STACK_DIRECTION $ac_cv_c_stack_direction
2757EOF
2758
2759fi
2760
2761if test $ac_cv_prog_gcc = yes; then
2762    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2763echo "configure:2764: checking whether ${CC-cc} needs -traditional" >&5
2764if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2765  echo $ac_n "(cached) $ac_c" 1>&6
2766else
2767    ac_pattern="Autoconf.*'x'"
2768  cat > conftest.$ac_ext <<EOF
2769#line 2770 "configure"
2770#include "confdefs.h"
2771#include <sgtty.h>
2772Autoconf TIOCGETP
2773EOF
2774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2775  egrep "$ac_pattern" >/dev/null 2>&1; then
2776  rm -rf conftest*
2777  ac_cv_prog_gcc_traditional=yes
2778else
2779  rm -rf conftest*
2780  ac_cv_prog_gcc_traditional=no
2781fi
2782rm -f conftest*
2783
2784
2785  if test $ac_cv_prog_gcc_traditional = no; then
2786    cat > conftest.$ac_ext <<EOF
2787#line 2788 "configure"
2788#include "confdefs.h"
2789#include <termio.h>
2790Autoconf TCGETA
2791EOF
2792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2793  egrep "$ac_pattern" >/dev/null 2>&1; then
2794  rm -rf conftest*
2795  ac_cv_prog_gcc_traditional=yes
2796fi
2797rm -f conftest*
2798
2799  fi
2800fi
2801
2802echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2803  if test $ac_cv_prog_gcc_traditional = yes; then
2804    CC="$CC -traditional"
2805  fi
2806fi
2807
2808for ac_hdr in unistd.h
2809do
2810ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2811echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2812echo "configure:2813: checking for $ac_hdr" >&5
2813if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2814  echo $ac_n "(cached) $ac_c" 1>&6
2815else
2816  cat > conftest.$ac_ext <<EOF
2817#line 2818 "configure"
2818#include "confdefs.h"
2819#include <$ac_hdr>
2820EOF
2821ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2822{ (eval echo configure:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2823ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2824if test -z "$ac_err"; then
2825  rm -rf conftest*
2826  eval "ac_cv_header_$ac_safe=yes"
2827else
2828  echo "$ac_err" >&5
2829  echo "configure: failed program was:" >&5
2830  cat conftest.$ac_ext >&5
2831  rm -rf conftest*
2832  eval "ac_cv_header_$ac_safe=no"
2833fi
2834rm -f conftest*
2835fi
2836if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2837  echo "$ac_t""yes" 1>&6
2838    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2839  cat >> confdefs.h <<EOF
2840#define $ac_tr_hdr 1
2841EOF
2842 
2843else
2844  echo "$ac_t""no" 1>&6
2845fi
2846done
2847
2848for ac_func in getpagesize
2849do
2850echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2851echo "configure:2852: checking for $ac_func" >&5
2852if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2853  echo $ac_n "(cached) $ac_c" 1>&6
2854else
2855  cat > conftest.$ac_ext <<EOF
2856#line 2857 "configure"
2857#include "confdefs.h"
2858/* System header to define __stub macros and hopefully few prototypes,
2859    which can conflict with char $ac_func(); below.  */
2860#include <assert.h>
2861/* Override any gcc2 internal prototype to avoid an error.  */
2862/* We use char because int might match the return type of a gcc2
2863    builtin and then its argument prototype would still apply.  */
2864char $ac_func();
2865
2866int main() {
2867
2868/* The GNU C library defines this for functions which it implements
2869    to always fail with ENOSYS.  Some functions are actually named
2870    something starting with __ and the normal name is an alias.  */
2871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2872choke me
2873#else
2874$ac_func();
2875#endif
2876
2877; return 0; }
2878EOF
2879if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2880  rm -rf conftest*
2881  eval "ac_cv_func_$ac_func=yes"
2882else
2883  echo "configure: failed program was:" >&5
2884  cat conftest.$ac_ext >&5
2885  rm -rf conftest*
2886  eval "ac_cv_func_$ac_func=no"
2887fi
2888rm -f conftest*
2889fi
2890
2891if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2892  echo "$ac_t""yes" 1>&6
2893    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2894  cat >> confdefs.h <<EOF
2895#define $ac_tr_func 1
2896EOF
2897 
2898else
2899  echo "$ac_t""no" 1>&6
2900fi
2901done
2902
2903echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2904echo "configure:2905: checking for working mmap" >&5
2905if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2906  echo $ac_n "(cached) $ac_c" 1>&6
2907else
2908  if test "$cross_compiling" = yes; then
2909  ac_cv_func_mmap_fixed_mapped=no
2910else
2911  cat > conftest.$ac_ext <<EOF
2912#line 2913 "configure"
2913#include "confdefs.h"
2914
2915/* Thanks to Mike Haertel and Jim Avera for this test.
2916   Here is a matrix of mmap possibilities:
2917        mmap private not fixed
2918        mmap private fixed at somewhere currently unmapped
2919        mmap private fixed at somewhere already mapped
2920        mmap shared not fixed
2921        mmap shared fixed at somewhere currently unmapped
2922        mmap shared fixed at somewhere already mapped
2923   For private mappings, we should verify that changes cannot be read()
2924   back from the file, nor mmap's back from the file at a different
2925   address.  (There have been systems where private was not correctly
2926   implemented like the infamous i386 svr4.0, and systems where the
2927   VM page cache was not coherent with the filesystem buffer cache
2928   like early versions of FreeBSD and possibly contemporary NetBSD.)
2929   For shared mappings, we should conversely verify that changes get
2930   propogated back to all the places they're supposed to be.
2931
2932   Grep wants private fixed already mapped.
2933   The main things grep needs to know about mmap are:
2934   * does it exist and is it safe to write into the mmap'd area
2935   * how to use it (BSD variants)  */
2936#include <sys/types.h>
2937#include <fcntl.h>
2938#include <sys/mman.h>
2939
2940/* This mess was copied from the GNU getpagesize.h.  */
2941#ifndef HAVE_GETPAGESIZE
2942# ifdef HAVE_UNISTD_H
2943#  include <unistd.h>
2944# endif
2945
2946/* Assume that all systems that can run configure have sys/param.h.  */
2947# ifndef HAVE_SYS_PARAM_H
2948#  define HAVE_SYS_PARAM_H 1
2949# endif
2950
2951# ifdef _SC_PAGESIZE
2952#  define getpagesize() sysconf(_SC_PAGESIZE)
2953# else /* no _SC_PAGESIZE */
2954#  ifdef HAVE_SYS_PARAM_H
2955#   include <sys/param.h>
2956#   ifdef EXEC_PAGESIZE
2957#    define getpagesize() EXEC_PAGESIZE
2958#   else /* no EXEC_PAGESIZE */
2959#    ifdef NBPG
2960#     define getpagesize() NBPG * CLSIZE
2961#     ifndef CLSIZE
2962#      define CLSIZE 1
2963#     endif /* no CLSIZE */
2964#    else /* no NBPG */
2965#     ifdef NBPC
2966#      define getpagesize() NBPC
2967#     else /* no NBPC */
2968#      ifdef PAGESIZE
2969#       define getpagesize() PAGESIZE
2970#      endif /* PAGESIZE */
2971#     endif /* no NBPC */
2972#    endif /* no NBPG */
2973#   endif /* no EXEC_PAGESIZE */
2974#  else /* no HAVE_SYS_PARAM_H */
2975#   define getpagesize() 8192   /* punt totally */
2976#  endif /* no HAVE_SYS_PARAM_H */
2977# endif /* no _SC_PAGESIZE */
2978
2979#endif /* no HAVE_GETPAGESIZE */
2980
2981#ifdef __cplusplus
2982extern "C" { void *malloc(unsigned); }
2983#else
2984char *malloc();
2985#endif
2986
2987int
2988main()
2989{
2990        char *data, *data2, *data3;
2991        int i, pagesize;
2992        int fd;
2993
2994        pagesize = getpagesize();
2995
2996        /*
2997         * First, make a file with some known garbage in it.
2998         */
2999        data = malloc(pagesize);
3000        if (!data)
3001                exit(1);
3002        for (i = 0; i < pagesize; ++i)
3003                *(data + i) = rand();
3004        umask(0);
3005        fd = creat("conftestmmap", 0600);
3006        if (fd < 0)
3007                exit(1);
3008        if (write(fd, data, pagesize) != pagesize)
3009                exit(1);
3010        close(fd);
3011
3012        /*
3013         * Next, try to mmap the file at a fixed address which
3014         * already has something else allocated at it.  If we can,
3015         * also make sure that we see the same garbage.
3016         */
3017        fd = open("conftestmmap", O_RDWR);
3018        if (fd < 0)
3019                exit(1);
3020        data2 = malloc(2 * pagesize);
3021        if (!data2)
3022                exit(1);
3023        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3024        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3025            MAP_PRIVATE | MAP_FIXED, fd, 0L))
3026                exit(1);
3027        for (i = 0; i < pagesize; ++i)
3028                if (*(data + i) != *(data2 + i))
3029                        exit(1);
3030
3031        /*
3032         * Finally, make sure that changes to the mapped area
3033         * do not percolate back to the file as seen by read().
3034         * (This is a bug on some variants of i386 svr4.0.)
3035         */
3036        for (i = 0; i < pagesize; ++i)
3037                *(data2 + i) = *(data2 + i) + 1;
3038        data3 = malloc(pagesize);
3039        if (!data3)
3040                exit(1);
3041        if (read(fd, data3, pagesize) != pagesize)
3042                exit(1);
3043        for (i = 0; i < pagesize; ++i)
3044                if (*(data + i) != *(data3 + i))
3045                        exit(1);
3046        close(fd);
3047        unlink("conftestmmap");
3048        exit(0);
3049}
3050
3051EOF
3052if { (eval echo configure:3053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3053then
3054  ac_cv_func_mmap_fixed_mapped=yes
3055else
3056  echo "configure: failed program was:" >&5
3057  cat conftest.$ac_ext >&5
3058  rm -fr conftest*
3059  ac_cv_func_mmap_fixed_mapped=no
3060fi
3061rm -fr conftest*
3062fi
3063
3064fi
3065
3066echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3067if test $ac_cv_func_mmap_fixed_mapped = yes; then
3068  cat >> confdefs.h <<\EOF
3069#define HAVE_MMAP 1
3070EOF
3071
3072fi
3073
3074for ac_func in getcwd getwd putenv strdup strerror
3075do
3076echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3077echo "configure:3078: checking for $ac_func" >&5
3078if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3079  echo $ac_n "(cached) $ac_c" 1>&6
3080else
3081  cat > conftest.$ac_ext <<EOF
3082#line 3083 "configure"
3083#include "confdefs.h"
3084/* System header to define __stub macros and hopefully few prototypes,
3085    which can conflict with char $ac_func(); below.  */
3086#include <assert.h>
3087/* Override any gcc2 internal prototype to avoid an error.  */
3088/* We use char because int might match the return type of a gcc2
3089    builtin and then its argument prototype would still apply.  */
3090char $ac_func();
3091
3092int main() {
3093
3094/* The GNU C library defines this for functions which it implements
3095    to always fail with ENOSYS.  Some functions are actually named
3096    something starting with __ and the normal name is an alias.  */
3097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3098choke me
3099#else
3100$ac_func();
3101#endif
3102
3103; return 0; }
3104EOF
3105if { (eval echo configure:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3106  rm -rf conftest*
3107  eval "ac_cv_func_$ac_func=yes"
3108else
3109  echo "configure: failed program was:" >&5
3110  cat conftest.$ac_ext >&5
3111  rm -rf conftest*
3112  eval "ac_cv_func_$ac_func=no"
3113fi
3114rm -f conftest*
3115fi
3116
3117if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3118  echo "$ac_t""yes" 1>&6
3119    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3120  cat >> confdefs.h <<EOF
3121#define $ac_tr_func 1
3122EOF
3123 
3124else
3125  echo "$ac_t""no" 1>&6
3126fi
3127done
3128
3129# Check whether --enable-shared or --disable-shared was given.
3130if test "${enable_shared+set}" = set; then
3131  enableval="$enable_shared"
3132  p=${PACKAGE-default}
3133case "$enableval" in
3134yes) enable_shared=yes ;;
3135no) enable_shared=no ;;
3136*)
3137  enable_shared=no
3138  # Look at the argument we got.  We use all the common list separators.
3139  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3140  for pkg in $enableval; do
3141    if test "X$pkg" = "X$p"; then
3142      enable_shared=yes
3143    fi
3144  done
3145  IFS="$ac_save_ifs"
3146  ;;
3147esac
3148else
3149  enable_shared=yes
3150fi
3151
3152# Check whether --enable-static or --disable-static was given.
3153if test "${enable_static+set}" = set; then
3154  enableval="$enable_static"
3155  p=${PACKAGE-default}
3156case "$enableval" in
3157yes) enable_static=yes ;;
3158no) enable_static=no ;;
3159*)
3160  enable_static=no
3161  # Look at the argument we got.  We use all the common list separators.
3162  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3163  for pkg in $enableval; do
3164    if test "X$pkg" = "X$p"; then
3165      enable_static=yes
3166    fi
3167  done
3168  IFS="$ac_save_ifs"
3169  ;;
3170esac
3171else
3172  enable_static=yes
3173fi
3174
3175# Check whether --enable-fast-install or --disable-fast-install was given.
3176if test "${enable_fast_install+set}" = set; then
3177  enableval="$enable_fast_install"
3178  p=${PACKAGE-default}
3179case "$enableval" in
3180yes) enable_fast_install=yes ;;
3181no) enable_fast_install=no ;;
3182*)
3183  enable_fast_install=no
3184  # Look at the argument we got.  We use all the common list separators.
3185  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3186  for pkg in $enableval; do
3187    if test "X$pkg" = "X$p"; then
3188      enable_fast_install=yes
3189    fi
3190  done
3191  IFS="$ac_save_ifs"
3192  ;;
3193esac
3194else
3195  enable_fast_install=yes
3196fi
3197
3198
3199# Make sure we can run config.sub.
3200if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
3201else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3202fi
3203
3204echo $ac_n "checking host system type""... $ac_c" 1>&6
3205echo "configure:3206: checking host system type" >&5
3206
3207host_alias=$host
3208case "$host_alias" in
3209NONE)
3210  case $nonopt in
3211  NONE)
3212    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
3213    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3214    fi ;;
3215  *) host_alias=$nonopt ;;
3216  esac ;;
3217esac
3218
3219host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
3220host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3221host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3222host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3223echo "$ac_t""$host" 1>&6
3224
3225echo $ac_n "checking build system type""... $ac_c" 1>&6
3226echo "configure:3227: checking build system type" >&5
3227
3228build_alias=$build
3229case "$build_alias" in
3230NONE)
3231  case $nonopt in
3232  NONE) build_alias=$host_alias ;;
3233  *) build_alias=$nonopt ;;
3234  esac ;;
3235esac
3236
3237build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3238build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3239build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3240build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3241echo "$ac_t""$build" 1>&6
3242
3243# Extract the first word of "ranlib", so it can be a program name with args.
3244set dummy ranlib; ac_word=$2
3245echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3246echo "configure:3247: checking for $ac_word" >&5
3247if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3248  echo $ac_n "(cached) $ac_c" 1>&6
3249else
3250  if test -n "$RANLIB"; then
3251  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3252else
3253  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3254  ac_dummy="$PATH"
3255  for ac_dir in $ac_dummy; do
3256    test -z "$ac_dir" && ac_dir=.
3257    if test -f $ac_dir/$ac_word; then
3258      ac_cv_prog_RANLIB="ranlib"
3259      break
3260    fi
3261  done
3262  IFS="$ac_save_ifs"
3263  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3264fi
3265fi
3266RANLIB="$ac_cv_prog_RANLIB"
3267if test -n "$RANLIB"; then
3268  echo "$ac_t""$RANLIB" 1>&6
3269else
3270  echo "$ac_t""no" 1>&6
3271fi
3272
3273# Check whether --with-gnu-ld or --without-gnu-ld was given.
3274if test "${with_gnu_ld+set}" = set; then
3275  withval="$with_gnu_ld"
3276  test "$withval" = no || with_gnu_ld=yes
3277else
3278  with_gnu_ld=no
3279fi
3280
3281ac_prog=ld
3282if test "$ac_cv_prog_gcc" = yes; then
3283  # Check if gcc -print-prog-name=ld gives a path.
3284  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3285echo "configure:3286: checking for ld used by GCC" >&5
3286  ac_prog=`($CC -print-prog-name=ld) 2>&5`
3287  case "$ac_prog" in
3288    # Accept absolute paths.
3289    [\\/]* | [A-Za-z]:[\\/]*)
3290      re_direlt='/[^/][^/]*/\.\./'
3291      # Canonicalize the path of ld
3292      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3293      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3294        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3295      done
3296      test -z "$LD" && LD="$ac_prog"
3297      ;;
3298  "")
3299    # If it fails, then pretend we aren't using GCC.
3300    ac_prog=ld
3301    ;;
3302  *)
3303    # If it is relative, then search for the first ld in PATH.
3304    with_gnu_ld=unknown
3305    ;;
3306  esac
3307elif test "$with_gnu_ld" = yes; then
3308  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3309echo "configure:3310: checking for GNU ld" >&5
3310else
3311  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3312echo "configure:3313: checking for non-GNU ld" >&5
3313fi
3314if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
3315  echo $ac_n "(cached) $ac_c" 1>&6
3316else
3317  if test -z "$LD"; then
3318  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3319  for ac_dir in $PATH; do
3320    test -z "$ac_dir" && ac_dir=.
3321    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3322      ac_cv_path_LD="$ac_dir/$ac_prog"
3323      # Check to see if the program is GNU ld.  I'd rather use --version,
3324      # but apparently some GNU ld's only accept -v.
3325      # Break only if it was the GNU/non-GNU ld that we prefer.
3326      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3327        test "$with_gnu_ld" != no && break
3328      else
3329        test "$with_gnu_ld" != yes && break
3330      fi
3331    fi
3332  done
3333  IFS="$ac_save_ifs"
3334else
3335  ac_cv_path_LD="$LD" # Let the user override the test with a path.
3336fi
3337fi
3338
3339LD="$ac_cv_path_LD"
3340if test -n "$LD"; then
3341  echo "$ac_t""$LD" 1>&6
3342else
3343  echo "$ac_t""no" 1>&6
3344fi
3345test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3346echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3347echo "configure:3348: checking if the linker ($LD) is GNU ld" >&5
3348if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
3349  echo $ac_n "(cached) $ac_c" 1>&6
3350else
3351  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3352if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3353  ac_cv_prog_gnu_ld=yes
3354else
3355  ac_cv_prog_gnu_ld=no
3356fi
3357fi
3358
3359echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3360
3361
3362echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3363echo "configure:3364: checking for BSD-compatible nm" >&5
3364if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
3365  echo $ac_n "(cached) $ac_c" 1>&6
3366else
3367  if test -n "$NM"; then
3368  # Let the user override the test.
3369  ac_cv_path_NM="$NM"
3370else
3371  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3372  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3373    test -z "$ac_dir" && ac_dir=.
3374    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3375      # Check to see if the nm accepts a BSD-compat flag.
3376      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3377      #   nm: unknown option "B" ignored
3378      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3379        ac_cv_path_NM="$ac_dir/nm -B"
3380        break
3381      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3382        ac_cv_path_NM="$ac_dir/nm -p"
3383        break
3384      else
3385        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3386        continue # so that we can try to find one that supports BSD flags
3387      fi
3388    fi
3389  done
3390  IFS="$ac_save_ifs"
3391  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3392fi
3393fi
3394
3395NM="$ac_cv_path_NM"
3396echo "$ac_t""$NM" 1>&6
3397
3398
3399case "$target" in
3400NONE) lt_target="$host" ;;
3401*) lt_target="$target" ;;
3402esac
3403
3404# Check for any special flags to pass to ltconfig.
3405#
3406# the following will cause an existing older ltconfig to fail, so
3407# we ignore this at the expense of the cache file... Checking this
3408# will just take longer ... bummer!
3409#libtool_flags="--cache-file=$cache_file"
3410#
3411test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3412test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3413test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3414test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3415test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3416
3417
3418# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3419if test "${enable_libtool_lock+set}" = set; then
3420  enableval="$enable_libtool_lock"
3421  :
3422fi
3423
3424test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3425test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3426
3427# Some flags need to be propagated to the compiler or linker for good
3428# libtool support.
3429case "$lt_target" in
3430*-*-irix6*)
3431  # Find out which ABI we are using.
3432  echo '#line 3433 "configure"' > conftest.$ac_ext
3433  if { (eval echo configure:3434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3434    case "`/usr/bin/file conftest.o`" in
3435    *32-bit*)
3436      LD="${LD-ld} -32"
3437      ;;
3438    *N32*)
3439      LD="${LD-ld} -n32"
3440      ;;
3441    *64-bit*)
3442      LD="${LD-ld} -64"
3443      ;;
3444    esac
3445  fi
3446  rm -rf conftest*
3447  ;;
3448
3449*-*-sco3.2v5*)
3450  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3451  SAVE_CFLAGS="$CFLAGS"
3452  CFLAGS="$CFLAGS -belf"
3453  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3454echo "configure:3455: checking whether the C compiler needs -belf" >&5
3455if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
3456  echo $ac_n "(cached) $ac_c" 1>&6
3457else
3458  cat > conftest.$ac_ext <<EOF
3459#line 3460 "configure"
3460#include "confdefs.h"
3461
3462int main() {
3463
3464; return 0; }
3465EOF
3466if { (eval echo configure:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3467  rm -rf conftest*
3468  lt_cv_cc_needs_belf=yes
3469else
3470  echo "configure: failed program was:" >&5
3471  cat conftest.$ac_ext >&5
3472  rm -rf conftest*
3473  lt_cv_cc_needs_belf=no
3474fi
3475rm -f conftest*
3476fi
3477
3478echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3479  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3480    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3481    CFLAGS="$SAVE_CFLAGS"
3482  fi
3483  ;;
3484
3485
3486esac
3487
3488
3489# Save cache, so that ltconfig can load it
3490cat > confcache <<\EOF
3491# This file is a shell script that caches the results of configure
3492# tests run on this system so they can be shared between configure
3493# scripts and configure runs.  It is not useful on other systems.
3494# If it contains results you don't want to keep, you may remove or edit it.
3495#
3496# By default, configure uses ./config.cache as the cache file,
3497# creating it if it does not exist already.  You can give configure
3498# the --cache-file=FILE option to use a different cache file; that is
3499# what configure does when it calls configure scripts in
3500# subdirectories, so they share the cache.
3501# Giving --cache-file=/dev/null disables caching, for debugging configure.
3502# config.status only pays attention to the cache file if you give it the
3503# --recheck option to rerun configure.
3504#
3505EOF
3506# The following way of writing the cache mishandles newlines in values,
3507# but we know of no workaround that is simple, portable, and efficient.
3508# So, don't put newlines in cache variables' values.
3509# Ultrix sh set writes to stderr and can't be redirected directly,
3510# and sets the high bit in the cache file unless we assign to the vars.
3511(set) 2>&1 |
3512  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3513  *ac_space=\ *)
3514    # `set' does not quote correctly, so add quotes (double-quote substitution
3515    # turns \\\\ into \\, and sed turns \\ into \).
3516    sed -n \
3517      -e "s/'/'\\\\''/g" \
3518      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3519    ;;
3520  *)
3521    # `set' quotes correctly as required by POSIX, so do not add quotes.
3522    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3523    ;;
3524  esac >> confcache
3525if cmp -s $cache_file confcache; then
3526  :
3527else
3528  if test -w $cache_file; then
3529    echo "updating cache $cache_file"
3530    cat confcache > $cache_file
3531  else
3532    echo "not updating unwritable cache $cache_file"
3533  fi
3534fi
3535rm -f confcache
3536
3537
3538# Actually configure libtool.  ac_aux_dir is where install-sh is found.
3539CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3540LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3541LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3542DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3543${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3544$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3545|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3546
3547# Reload cache, that may have been modified by ltconfig
3548if test -r "$cache_file"; then
3549  echo "loading cache $cache_file"
3550  . $cache_file
3551else
3552  echo "creating cache $cache_file"
3553  > $cache_file
3554fi
3555
3556
3557# This can be used to rebuild libtool when needed
3558LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3559
3560# Always use our own libtool.
3561LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3562
3563# Redirect the config.log output again, so that the ltconfig log is not
3564# clobbered by the next message.
3565exec 5>>./config.log
3566
3567
3568# Check whether --with-esd-prefix or --without-esd-prefix was given.
3569if test "${with_esd_prefix+set}" = set; then
3570  withval="$with_esd_prefix"
3571  esd_prefix="$withval"
3572else
3573  esd_prefix=""
3574fi
3575
3576# Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
3577if test "${with_esd_exec_prefix+set}" = set; then
3578  withval="$with_esd_exec_prefix"
3579  esd_exec_prefix="$withval"
3580else
3581  esd_exec_prefix=""
3582fi
3583
3584# Check whether --enable-esdtest or --disable-esdtest was given.
3585if test "${enable_esdtest+set}" = set; then
3586  enableval="$enable_esdtest"
3587  :
3588else
3589  enable_esdtest=yes
3590fi
3591
3592
3593  if test x$esd_exec_prefix != x ; then
3594     esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
3595     if test x${ESD_CONFIG+set} != xset ; then
3596        ESD_CONFIG=$esd_exec_prefix/bin/esd-config
3597     fi
3598  fi
3599  if test x$esd_prefix != x ; then
3600     esd_args="$esd_args --prefix=$esd_prefix"
3601     if test x${ESD_CONFIG+set} != xset ; then
3602        ESD_CONFIG=$esd_prefix/bin/esd-config
3603     fi
3604  fi
3605
3606  # Extract the first word of "esd-config", so it can be a program name with args.
3607set dummy esd-config; ac_word=$2
3608echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3609echo "configure:3610: checking for $ac_word" >&5
3610if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
3611  echo $ac_n "(cached) $ac_c" 1>&6
3612else
3613  case "$ESD_CONFIG" in
3614  /*)
3615  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
3616  ;;
3617  ?:/*)                 
3618  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
3619  ;;
3620  *)
3621  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3622  ac_dummy="$PATH"
3623  for ac_dir in $ac_dummy; do
3624    test -z "$ac_dir" && ac_dir=.
3625    if test -f $ac_dir/$ac_word; then
3626      ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
3627      break
3628    fi
3629  done
3630  IFS="$ac_save_ifs"
3631  test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
3632  ;;
3633esac
3634fi
3635ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
3636if test -n "$ESD_CONFIG"; then
3637  echo "$ac_t""$ESD_CONFIG" 1>&6
3638else
3639  echo "$ac_t""no" 1>&6
3640fi
3641
3642  min_esd_version=0.2.7
3643  echo $ac_n "checking for ESD - version >= $min_esd_version""... $ac_c" 1>&6
3644echo "configure:3645: checking for ESD - version >= $min_esd_version" >&5
3645  no_esd=""
3646  if test "$ESD_CONFIG" = "no" ; then
3647    no_esd=yes
3648  else
3649    ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
3650    ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
3651
3652    esd_major_version=`$ESD_CONFIG $esd_args --version | \
3653           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3654    esd_minor_version=`$ESD_CONFIG $esd_args --version | \
3655           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3656    esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
3657           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3658    if test "x$enable_esdtest" = "xyes" ; then
3659      ac_save_CFLAGS="$CFLAGS"
3660      ac_save_LIBS="$LIBS"
3661      CFLAGS="$CFLAGS $ESD_CFLAGS"
3662      LIBS="$LIBS $ESD_LIBS"
3663      rm -f conf.esdtest
3664      if test "$cross_compiling" = yes; then
3665  echo $ac_n "cross compiling; assumed OK... $ac_c"
3666else
3667  cat > conftest.$ac_ext <<EOF
3668#line 3669 "configure"
3669#include "confdefs.h"
3670
3671#include <stdio.h>
3672#include <stdlib.h>
3673#include <string.h>
3674#include <esd.h>
3675
3676char*
3677my_strdup (char *str)
3678{
3679  char *new_str;
3680 
3681  if (str)
3682    {
3683      new_str = malloc ((strlen (str) + 1) * sizeof(char));
3684      strcpy (new_str, str);
3685    }
3686  else
3687    new_str = NULL;
3688 
3689  return new_str;
3690}
3691
3692int main ()
3693{
3694  int major, minor, micro;
3695  char *tmp_version;
3696
3697  system ("touch conf.esdtest");
3698
3699  /* HP/UX 9 (%@#!) writes to sscanf strings */
3700  tmp_version = my_strdup("$min_esd_version");
3701  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
3702     printf("%s, bad version string\n", "$min_esd_version");
3703     exit(1);
3704   }
3705
3706   if (($esd_major_version > major) ||
3707      (($esd_major_version == major) && ($esd_minor_version > minor)) ||
3708      (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
3709    {
3710      return 0;
3711    }
3712  else
3713    {
3714      printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
3715      printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
3716      printf("*** best to upgrade to the required version.\n");
3717      printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
3718      printf("*** to point to the correct copy of esd-config, and remove the file\n");
3719      printf("*** config.cache before re-running configure\n");
3720      return 1;
3721    }
3722}
3723
3724
3725EOF
3726if { (eval echo configure:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3727then
3728  :
3729else
3730  echo "configure: failed program was:" >&5
3731  cat conftest.$ac_ext >&5
3732  rm -fr conftest*
3733  no_esd=yes
3734fi
3735rm -fr conftest*
3736fi
3737
3738       CFLAGS="$ac_save_CFLAGS"
3739       LIBS="$ac_save_LIBS"
3740     fi
3741  fi
3742  if test "x$no_esd" = x ; then
3743     echo "$ac_t""yes" 1>&6
3744     we_have_esd=true     
3745  else
3746     echo "$ac_t""no" 1>&6
3747     if test "$ESD_CONFIG" = "no" ; then
3748       echo "*** The esd-config script installed by ESD could not be found"
3749       echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
3750       echo "*** your path, or set the ESD_CONFIG environment variable to the"
3751       echo "*** full path to esd-config."
3752     else
3753       if test -f conf.esdtest ; then
3754        :
3755       else
3756          echo "*** Could not run ESD test program, checking why..."
3757          CFLAGS="$CFLAGS $ESD_CFLAGS"
3758          LIBS="$LIBS $ESD_LIBS"
3759          cat > conftest.$ac_ext <<EOF
3760#line 3761 "configure"
3761#include "confdefs.h"
3762
3763#include <stdio.h>
3764#include <esd.h>
3765
3766int main() {
3767 return 0;
3768; return 0; }
3769EOF
3770if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3771  rm -rf conftest*
3772   echo "*** The test program compiled, but did not run. This usually means"
3773          echo "*** that the run-time linker is not finding ESD or finding the wrong"
3774          echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
3775          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3776          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
3777          echo "*** is required on your system"
3778          echo "***"
3779          echo "*** If you have an old version installed, it is best to remove it, although"
3780          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3781else
3782  echo "configure: failed program was:" >&5
3783  cat conftest.$ac_ext >&5
3784  rm -rf conftest*
3785   echo "*** The test program failed to compile or link. See the file config.log for the"
3786          echo "*** exact error that occured. This usually means ESD was incorrectly installed"
3787          echo "*** or that you have moved ESD since it was installed. In the latter case, you"
3788          echo "*** may want to edit the esd-config script: $ESD_CONFIG"
3789fi
3790rm -f conftest*
3791          CFLAGS="$ac_save_CFLAGS"
3792          LIBS="$ac_save_LIBS"
3793       fi
3794     fi
3795     ESD_CFLAGS=""
3796     ESD_LIBS=""
3797     :
3798  fi
3799 
3800 
3801  rm -f conf.esdtest
3802
3803if test -n "$we_have_esd"; then
3804cat >> confdefs.h <<\EOF
3805#define HAVE_ESD 1
3806EOF
3807
3808fi
3809
3810# Extract the first word of "scrollkeeper-config", so it can be a program name with args.
3811set dummy scrollkeeper-config; ac_word=$2
3812echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3813echo "configure:3814: checking for $ac_word" >&5
3814if eval "test \"`echo '$''{'ac_cv_path_SCROLLKEEPER_CONFIG'+set}'`\" = set"; then
3815  echo $ac_n "(cached) $ac_c" 1>&6
3816else
3817  case "$SCROLLKEEPER_CONFIG" in
3818  /*)
3819  ac_cv_path_SCROLLKEEPER_CONFIG="$SCROLLKEEPER_CONFIG" # Let the user override the test with a path.
3820  ;;
3821  ?:/*)                 
3822  ac_cv_path_SCROLLKEEPER_CONFIG="$SCROLLKEEPER_CONFIG" # Let the user override the test with a dos path.
3823  ;;
3824  *)
3825  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3826  ac_dummy="$PATH"
3827  for ac_dir in $ac_dummy; do
3828    test -z "$ac_dir" && ac_dir=.
3829    if test -f $ac_dir/$ac_word; then
3830      ac_cv_path_SCROLLKEEPER_CONFIG="$ac_dir/$ac_word"
3831      break
3832    fi
3833  done
3834  IFS="$ac_save_ifs"
3835  test -z "$ac_cv_path_SCROLLKEEPER_CONFIG" && ac_cv_path_SCROLLKEEPER_CONFIG="no"
3836  ;;
3837esac
3838fi
3839SCROLLKEEPER_CONFIG="$ac_cv_path_SCROLLKEEPER_CONFIG"
3840if test -n "$SCROLLKEEPER_CONFIG"; then
3841  echo "$ac_t""$SCROLLKEEPER_CONFIG" 1>&6
3842else
3843  echo "$ac_t""no" 1>&6
3844fi
3845
3846if test x$SCROLLKEEPER_CONFIG = xno; then
3847  { echo "configure: error: Couldn't find scrollkeeper-config" 1>&2; exit 1; }
3848fi
3849
3850# Check whether --enable-alsa or --disable-alsa was given.
3851if test "${enable_alsa+set}" = set; then
3852  enableval="$enable_alsa"
3853  :
3854else
3855  enable_alsa=no
3856fi
3857
3858for ac_hdr in sys/asoundlib.h
3859do
3860ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3861echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3862echo "configure:3863: checking for $ac_hdr" >&5
3863if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3864  echo $ac_n "(cached) $ac_c" 1>&6
3865else
3866  cat > conftest.$ac_ext <<EOF
3867#line 3868 "configure"
3868#include "confdefs.h"
3869#include <$ac_hdr>
3870EOF
3871ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3872{ (eval echo configure:3873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3873ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3874if test -z "$ac_err"; then
3875  rm -rf conftest*
3876  eval "ac_cv_header_$ac_safe=yes"
3877else
3878  echo "$ac_err" >&5
3879  echo "configure: failed program was:" >&5
3880  cat conftest.$ac_ext >&5
3881  rm -rf conftest*
3882  eval "ac_cv_header_$ac_safe=no"
3883fi
3884rm -f conftest*
3885fi
3886if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3887  echo "$ac_t""yes" 1>&6
3888    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3889  cat >> confdefs.h <<EOF
3890#define $ac_tr_hdr 1
3891EOF
3892 
3893else
3894  echo "$ac_t""no" 1>&6
3895fi
3896done
3897
3898if test "x$enable_alsa" = "xyes"; then
3899    if test "${ac_cv_header_sys_asoundlib_h}" == "yes"; then
3900        cat >> confdefs.h <<\EOF
3901#define ALSA 1
3902EOF
3903
3904    else
3905        enable_alsa="no";
3906    fi
3907fi
3908
3909ALL_LINGUAS="az ca cs da de el en_GB es et fi fr ga gl hu it ja ko lt nl no pl pt pt_BR ro ru sk sl sv tr uk zh_TW.Big5 zh_CN.GB2312"
3910                             
3911   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3912unistd.h sys/param.h
3913do
3914ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3915echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3916echo "configure:3917: checking for $ac_hdr" >&5
3917if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3918  echo $ac_n "(cached) $ac_c" 1>&6
3919else
3920  cat > conftest.$ac_ext <<EOF
3921#line 3922 "configure"
3922#include "confdefs.h"
3923#include <$ac_hdr>
3924EOF
3925ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3926{ (eval echo configure:3927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3927ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3928if test -z "$ac_err"; then
3929  rm -rf conftest*
3930  eval "ac_cv_header_$ac_safe=yes"
3931else
3932  echo "$ac_err" >&5
3933  echo "configure: failed program was:" >&5
3934  cat conftest.$ac_ext >&5
3935  rm -rf conftest*
3936  eval "ac_cv_header_$ac_safe=no"
3937fi
3938rm -f conftest*
3939fi
3940if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3941  echo "$ac_t""yes" 1>&6
3942    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3943  cat >> confdefs.h <<EOF
3944#define $ac_tr_hdr 1
3945EOF
3946 
3947else
3948  echo "$ac_t""no" 1>&6
3949fi
3950done
3951
3952   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3953strdup __argz_count __argz_stringify __argz_next
3954do
3955echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3956echo "configure:3957: checking for $ac_func" >&5
3957if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3958  echo $ac_n "(cached) $ac_c" 1>&6
3959else
3960  cat > conftest.$ac_ext <<EOF
3961#line 3962 "configure"
3962#include "confdefs.h"
3963/* System header to define __stub macros and hopefully few prototypes,
3964    which can conflict with char $ac_func(); below.  */
3965#include <assert.h>
3966/* Override any gcc2 internal prototype to avoid an error.  */
3967/* We use char because int might match the return type of a gcc2
3968    builtin and then its argument prototype would still apply.  */
3969char $ac_func();
3970
3971int main() {
3972
3973/* The GNU C library defines this for functions which it implements
3974    to always fail with ENOSYS.  Some functions are actually named
3975    something starting with __ and the normal name is an alias.  */
3976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3977choke me
3978#else
3979$ac_func();
3980#endif
3981
3982; return 0; }
3983EOF
3984if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3985  rm -rf conftest*
3986  eval "ac_cv_func_$ac_func=yes"
3987else
3988  echo "configure: failed program was:" >&5
3989  cat conftest.$ac_ext >&5
3990  rm -rf conftest*
3991  eval "ac_cv_func_$ac_func=no"
3992fi
3993rm -f conftest*
3994fi
3995
3996if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3997  echo "$ac_t""yes" 1>&6
3998    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3999  cat >> confdefs.h <<EOF
4000#define $ac_tr_func 1
4001EOF
4002 
4003else
4004  echo "$ac_t""no" 1>&6
4005fi
4006done
4007
4008
4009   if test "${ac_cv_func_stpcpy+set}" != "set"; then
4010     for ac_func in stpcpy
4011do
4012echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4013echo "configure:4014: checking for $ac_func" >&5
4014if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4015  echo $ac_n "(cached) $ac_c" 1>&6
4016else
4017  cat > conftest.$ac_ext <<EOF
4018#line 4019 "configure"
4019#include "confdefs.h"
4020/* System header to define __stub macros and hopefully few prototypes,
4021    which can conflict with char $ac_func(); below.  */
4022#include <assert.h>
4023/* Override any gcc2 internal prototype to avoid an error.  */
4024/* We use char because int might match the return type of a gcc2
4025    builtin and then its argument prototype would still apply.  */
4026char $ac_func();
4027
4028int main() {
4029
4030/* The GNU C library defines this for functions which it implements
4031    to always fail with ENOSYS.  Some functions are actually named
4032    something starting with __ and the normal name is an alias.  */
4033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4034choke me
4035#else
4036$ac_func();
4037#endif
4038
4039; return 0; }
4040EOF
4041if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4042  rm -rf conftest*
4043  eval "ac_cv_func_$ac_func=yes"
4044else
4045  echo "configure: failed program was:" >&5
4046  cat conftest.$ac_ext >&5
4047  rm -rf conftest*
4048  eval "ac_cv_func_$ac_func=no"
4049fi
4050rm -f conftest*
4051fi
4052
4053if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4054  echo "$ac_t""yes" 1>&6
4055    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4056  cat >> confdefs.h <<EOF
4057#define $ac_tr_func 1
4058EOF
4059 
4060else
4061  echo "$ac_t""no" 1>&6
4062fi
4063done
4064
4065   fi
4066   if test "${ac_cv_func_stpcpy}" = "yes"; then
4067     cat >> confdefs.h <<\EOF
4068#define HAVE_STPCPY 1
4069EOF
4070
4071   fi
4072
4073   if test $ac_cv_header_locale_h = yes; then
4074    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4075echo "configure:4076: checking for LC_MESSAGES" >&5
4076if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4077  echo $ac_n "(cached) $ac_c" 1>&6
4078else
4079  cat > conftest.$ac_ext <<EOF
4080#line 4081 "configure"
4081#include "confdefs.h"
4082#include <locale.h>
4083int main() {
4084return LC_MESSAGES
4085; return 0; }
4086EOF
4087if { (eval echo configure:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4088  rm -rf conftest*
4089  am_cv_val_LC_MESSAGES=yes
4090else
4091  echo "configure: failed program was:" >&5
4092  cat conftest.$ac_ext >&5
4093  rm -rf conftest*
4094  am_cv_val_LC_MESSAGES=no
4095fi
4096rm -f conftest*
4097fi
4098
4099echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4100    if test $am_cv_val_LC_MESSAGES = yes; then
4101      cat >> confdefs.h <<\EOF
4102#define HAVE_LC_MESSAGES 1
4103EOF
4104
4105    fi
4106  fi
4107   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4108echo "configure:4109: checking whether NLS is requested" >&5
4109        # Check whether --enable-nls or --disable-nls was given.
4110if test "${enable_nls+set}" = set; then
4111  enableval="$enable_nls"
4112  USE_NLS=$enableval
4113else
4114  USE_NLS=yes
4115fi
4116
4117    echo "$ac_t""$USE_NLS" 1>&6
4118   
4119
4120    USE_INCLUDED_LIBINTL=no
4121
4122        if test "$USE_NLS" = "yes"; then
4123      cat >> confdefs.h <<\EOF
4124#define ENABLE_NLS 1
4125EOF
4126
4127      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4128echo "configure:4129: checking whether included gettext is requested" >&5
4129      # Check whether --with-included-gettext or --without-included-gettext was given.
4130if test "${with_included_gettext+set}" = set; then
4131  withval="$with_included_gettext"
4132  nls_cv_force_use_gnu_gettext=$withval
4133else
4134  nls_cv_force_use_gnu_gettext=no
4135fi
4136
4137      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4138
4139      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4140      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4141                                        nls_cv_header_intl=
4142        nls_cv_header_libgt=
4143        CATOBJEXT=NONE
4144
4145        ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4146echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4147echo "configure:4148: checking for libintl.h" >&5
4148if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4149  echo $ac_n "(cached) $ac_c" 1>&6
4150else
4151  cat > conftest.$ac_ext <<EOF
4152#line 4153 "configure"
4153#include "confdefs.h"
4154#include <libintl.h>
4155EOF
4156ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4157{ (eval echo configure:4158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4158ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4159if test -z "$ac_err"; then
4160  rm -rf conftest*
4161  eval "ac_cv_header_$ac_safe=yes"
4162else
4163  echo "$ac_err" >&5
4164  echo "configure: failed program was:" >&5
4165  cat conftest.$ac_ext >&5
4166  rm -rf conftest*
4167  eval "ac_cv_header_$ac_safe=no"
4168fi
4169rm -f conftest*
4170fi
4171if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4172  echo "$ac_t""yes" 1>&6
4173  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4174echo "configure:4175: checking for gettext in libc" >&5
4175if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4176  echo $ac_n "(cached) $ac_c" 1>&6
4177else
4178  cat > conftest.$ac_ext <<EOF
4179#line 4180 "configure"
4180#include "confdefs.h"
4181#include <libintl.h>
4182int main() {
4183return (int) gettext ("")
4184; return 0; }
4185EOF
4186if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4187  rm -rf conftest*
4188  gt_cv_func_gettext_libc=yes
4189else
4190  echo "configure: failed program was:" >&5
4191  cat conftest.$ac_ext >&5
4192  rm -rf conftest*
4193  gt_cv_func_gettext_libc=no
4194fi
4195rm -f conftest*
4196fi
4197
4198echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4199
4200           if test "$gt_cv_func_gettext_libc" != "yes"; then
4201             echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4202echo "configure:4203: checking for bindtextdomain in -lintl" >&5
4203ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4204if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4205  echo $ac_n "(cached) $ac_c" 1>&6
4206else
4207  ac_save_LIBS="$LIBS"
4208LIBS="-lintl  $LIBS"
4209cat > conftest.$ac_ext <<EOF
4210#line 4211 "configure"
4211#include "confdefs.h"
4212/* Override any gcc2 internal prototype to avoid an error.  */
4213/* We use char because int might match the return type of a gcc2
4214    builtin and then its argument prototype would still apply.  */
4215char bindtextdomain();
4216
4217int main() {
4218bindtextdomain()
4219; return 0; }
4220EOF
4221if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4222  rm -rf conftest*
4223  eval "ac_cv_lib_$ac_lib_var=yes"
4224else
4225  echo "configure: failed program was:" >&5
4226  cat conftest.$ac_ext >&5
4227  rm -rf conftest*
4228  eval "ac_cv_lib_$ac_lib_var=no"
4229fi
4230rm -f conftest*
4231LIBS="$ac_save_LIBS"
4232
4233fi
4234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4235  echo "$ac_t""yes" 1>&6
4236  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4237echo "configure:4238: checking for gettext in libintl" >&5
4238if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4239  echo $ac_n "(cached) $ac_c" 1>&6
4240else
4241  echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
4242echo "configure:4243: checking for gettext in -lintl" >&5
4243ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
4244if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4245  echo $ac_n "(cached) $ac_c" 1>&6
4246else
4247  ac_save_LIBS="$LIBS"
4248LIBS="-lintl  $LIBS"
4249cat > conftest.$ac_ext <<EOF
4250#line 4251 "configure"
4251#include "confdefs.h"
4252/* Override any gcc2 internal prototype to avoid an error.  */
4253/* We use char because int might match the return type of a gcc2
4254    builtin and then its argument prototype would still apply.  */
4255char gettext();
4256
4257int main() {
4258gettext()
4259; return 0; }
4260EOF
4261if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4262  rm -rf conftest*
4263  eval "ac_cv_lib_$ac_lib_var=yes"
4264else
4265  echo "configure: failed program was:" >&5
4266  cat conftest.$ac_ext >&5
4267  rm -rf conftest*
4268  eval "ac_cv_lib_$ac_lib_var=no"
4269fi
4270rm -f conftest*
4271LIBS="$ac_save_LIBS"
4272
4273fi
4274if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4275  echo "$ac_t""yes" 1>&6
4276  gt_cv_func_gettext_libintl=yes
4277else
4278  echo "$ac_t""no" 1>&6
4279gt_cv_func_gettext_libintl=no
4280fi
4281
4282fi
4283
4284echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4285else
4286  echo "$ac_t""no" 1>&6
4287fi
4288
4289           fi
4290
4291           if test "$gt_cv_func_gettext_libc" = "yes" \
4292              || test "$gt_cv_func_gettext_libintl" = "yes"; then
4293              cat >> confdefs.h <<\EOF
4294#define HAVE_GETTEXT 1
4295EOF
4296
4297              # Extract the first word of "msgfmt", so it can be a program name with args.
4298set dummy msgfmt; ac_word=$2
4299echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4300echo "configure:4301: checking for $ac_word" >&5
4301if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4302  echo $ac_n "(cached) $ac_c" 1>&6
4303else
4304  case "$MSGFMT" in
4305  /*)
4306  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4307  ;;
4308  *)
4309  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4310  for ac_dir in $PATH; do
4311    test -z "$ac_dir" && ac_dir=.
4312    if test -f $ac_dir/$ac_word; then
4313      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4314        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4315        break
4316      fi
4317    fi
4318  done
4319  IFS="$ac_save_ifs"
4320  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4321  ;;
4322esac
4323fi
4324MSGFMT="$ac_cv_path_MSGFMT"
4325if test -n "$MSGFMT"; then
4326  echo "$ac_t""$MSGFMT" 1>&6
4327else
4328  echo "$ac_t""no" 1>&6
4329fi
4330              if test "$MSGFMT" != "no"; then
4331                for ac_func in dcgettext
4332do
4333echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4334echo "configure:4335: checking for $ac_func" >&5
4335if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4336  echo $ac_n "(cached) $ac_c" 1>&6
4337else
4338  cat > conftest.$ac_ext <<EOF
4339#line 4340 "configure"
4340#include "confdefs.h"
4341/* System header to define __stub macros and hopefully few prototypes,
4342    which can conflict with char $ac_func(); below.  */
4343#include <assert.h>
4344/* Override any gcc2 internal prototype to avoid an error.  */
4345/* We use char because int might match the return type of a gcc2
4346    builtin and then its argument prototype would still apply.  */
4347char $ac_func();
4348
4349int main() {
4350
4351/* The GNU C library defines this for functions which it implements
4352    to always fail with ENOSYS.  Some functions are actually named
4353    something starting with __ and the normal name is an alias.  */
4354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4355choke me
4356#else
4357$ac_func();
4358#endif
4359
4360; return 0; }
4361EOF
4362if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4363  rm -rf conftest*
4364  eval "ac_cv_func_$ac_func=yes"
4365else
4366  echo "configure: failed program was:" >&5
4367  cat conftest.$ac_ext >&5
4368  rm -rf conftest*
4369  eval "ac_cv_func_$ac_func=no"
4370fi
4371rm -f conftest*
4372fi
4373
4374if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4375  echo "$ac_t""yes" 1>&6
4376    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4377  cat >> confdefs.h <<EOF
4378#define $ac_tr_func 1
4379EOF
4380 
4381else
4382  echo "$ac_t""no" 1>&6
4383fi
4384done
4385
4386                # Extract the first word of "gmsgfmt", so it can be a program name with args.
4387set dummy gmsgfmt; ac_word=$2
4388echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4389echo "configure:4390: checking for $ac_word" >&5
4390if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4391  echo $ac_n "(cached) $ac_c" 1>&6
4392else
4393  case "$GMSGFMT" in
4394  /*)
4395  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4396  ;;
4397  ?:/*)                 
4398  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4399  ;;
4400  *)
4401  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4402  ac_dummy="$PATH"
4403  for ac_dir in $ac_dummy; do
4404    test -z "$ac_dir" && ac_dir=.
4405    if test -f $ac_dir/$ac_word; then
4406      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4407      break
4408    fi
4409  done
4410  IFS="$ac_save_ifs"
4411  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4412  ;;
4413esac
4414fi
4415GMSGFMT="$ac_cv_path_GMSGFMT"
4416if test -n "$GMSGFMT"; then
4417  echo "$ac_t""$GMSGFMT" 1>&6
4418else
4419  echo "$ac_t""no" 1>&6
4420fi
4421
4422                # Extract the first word of "xgettext", so it can be a program name with args.
4423set dummy xgettext; ac_word=$2
4424echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4425echo "configure:4426: checking for $ac_word" >&5
4426if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4427  echo $ac_n "(cached) $ac_c" 1>&6
4428else
4429  case "$XGETTEXT" in
4430  /*)
4431  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4432  ;;
4433  *)
4434  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4435  for ac_dir in $PATH; do
4436    test -z "$ac_dir" && ac_dir=.
4437    if test -f $ac_dir/$ac_word; then
4438      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4439        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4440        break
4441      fi
4442    fi
4443  done
4444  IFS="$ac_save_ifs"
4445  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4446  ;;
4447esac
4448fi
4449XGETTEXT="$ac_cv_path_XGETTEXT"
4450if test -n "$XGETTEXT"; then
4451  echo "$ac_t""$XGETTEXT" 1>&6
4452else
4453  echo "$ac_t""no" 1>&6
4454fi
4455
4456                cat > conftest.$ac_ext <<EOF
4457#line 4458 "configure"
4458#include "confdefs.h"
4459
4460int main() {
4461extern int _nl_msg_cat_cntr;
4462                               return _nl_msg_cat_cntr
4463; return 0; }
4464EOF
4465if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4466  rm -rf conftest*
4467  CATOBJEXT=.gmo
4468                   DATADIRNAME=share
4469else
4470  echo "configure: failed program was:" >&5
4471  cat conftest.$ac_ext >&5
4472  rm -rf conftest*
4473  CATOBJEXT=.mo
4474                   DATADIRNAME=lib
4475fi
4476rm -f conftest*
4477                INSTOBJEXT=.mo
4478              fi
4479            fi
4480       
4481else
4482  echo "$ac_t""no" 1>&6
4483fi
4484
4485
4486        if test "$CATOBJEXT" = "NONE"; then
4487          echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
4488echo "configure:4489: checking whether catgets can be used" >&5
4489          # Check whether --with-catgets or --without-catgets was given.
4490if test "${with_catgets+set}" = set; then
4491  withval="$with_catgets"
4492  nls_cv_use_catgets=$withval
4493else
4494  nls_cv_use_catgets=no
4495fi
4496
4497          echo "$ac_t""$nls_cv_use_catgets" 1>&6
4498
4499          if test "$nls_cv_use_catgets" = "yes"; then
4500                    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
4501echo "configure:4502: checking for main in -li" >&5
4502ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
4503if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4504  echo $ac_n "(cached) $ac_c" 1>&6
4505else
4506  ac_save_LIBS="$LIBS"
4507LIBS="-li  $LIBS"
4508cat > conftest.$ac_ext <<EOF
4509#line 4510 "configure"
4510#include "confdefs.h"
4511
4512int main() {
4513main()
4514; return 0; }
4515EOF
4516if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4517  rm -rf conftest*
4518  eval "ac_cv_lib_$ac_lib_var=yes"
4519else
4520  echo "configure: failed program was:" >&5
4521  cat conftest.$ac_ext >&5
4522  rm -rf conftest*
4523  eval "ac_cv_lib_$ac_lib_var=no"
4524fi
4525rm -f conftest*
4526LIBS="$ac_save_LIBS"
4527
4528fi
4529if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4530  echo "$ac_t""yes" 1>&6
4531    ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4532    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4533  cat >> confdefs.h <<EOF
4534#define $ac_tr_lib 1
4535EOF
4536
4537  LIBS="-li $LIBS"
4538
4539else
4540  echo "$ac_t""no" 1>&6
4541fi
4542
4543            echo $ac_n "checking for catgets""... $ac_c" 1>&6
4544echo "configure:4545: checking for catgets" >&5
4545if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
4546  echo $ac_n "(cached) $ac_c" 1>&6
4547else
4548  cat > conftest.$ac_ext <<EOF
4549#line 4550 "configure"
4550#include "confdefs.h"
4551/* System header to define __stub macros and hopefully few prototypes,
4552    which can conflict with char catgets(); below.  */
4553#include <assert.h>
4554/* Override any gcc2 internal prototype to avoid an error.  */
4555/* We use char because int might match the return type of a gcc2
4556    builtin and then its argument prototype would still apply.  */
4557char catgets();
4558
4559int main() {
4560
4561/* The GNU C library defines this for functions which it implements
4562    to always fail with ENOSYS.  Some functions are actually named
4563    something starting with __ and the normal name is an alias.  */
4564#if defined (__stub_catgets) || defined (__stub___catgets)
4565choke me
4566#else
4567catgets();
4568#endif
4569
4570; return 0; }
4571EOF
4572if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4573  rm -rf conftest*
4574  eval "ac_cv_func_catgets=yes"
4575else
4576  echo "configure: failed program was:" >&5
4577  cat conftest.$ac_ext >&5
4578  rm -rf conftest*
4579  eval "ac_cv_func_catgets=no"
4580fi
4581rm -f conftest*
4582fi
4583
4584if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
4585  echo "$ac_t""yes" 1>&6
4586  cat >> confdefs.h <<\EOF
4587#define HAVE_CATGETS 1
4588EOF
4589
4590               INTLOBJS="\$(CATOBJS)"
4591               # Extract the first word of "gencat", so it can be a program name with args.
4592set dummy gencat; ac_word=$2
4593echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4594echo "configure:4595: checking for $ac_word" >&5
4595if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
4596  echo $ac_n "(cached) $ac_c" 1>&6
4597else
4598  case "$GENCAT" in
4599  /*)
4600  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
4601  ;;
4602  ?:/*)                 
4603  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
4604  ;;
4605  *)
4606  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4607  ac_dummy="$PATH"
4608  for ac_dir in $ac_dummy; do
4609    test -z "$ac_dir" && ac_dir=.
4610    if test -f $ac_dir/$ac_word; then
4611      ac_cv_path_GENCAT="$ac_dir/$ac_word"
4612      break
4613    fi
4614  done
4615  IFS="$ac_save_ifs"
4616  test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
4617  ;;
4618esac
4619fi
4620GENCAT="$ac_cv_path_GENCAT"
4621if test -n "$GENCAT"; then
4622  echo "$ac_t""$GENCAT" 1>&6
4623else
4624  echo "$ac_t""no" 1>&6
4625fi
4626               if test "$GENCAT" != "no"; then
4627                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4628set dummy gmsgfmt; ac_word=$2
4629echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4630echo "configure:4631: checking for $ac_word" >&5
4631if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4632  echo $ac_n "(cached) $ac_c" 1>&6
4633else
4634  case "$GMSGFMT" in
4635  /*)
4636  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4637  ;;
4638  ?:/*)                 
4639  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4640  ;;
4641  *)
4642  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4643  ac_dummy="$PATH"
4644  for ac_dir in $ac_dummy; do
4645    test -z "$ac_dir" && ac_dir=.
4646    if test -f $ac_dir/$ac_word; then
4647      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4648      break
4649    fi
4650  done
4651  IFS="$ac_save_ifs"
4652  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
4653  ;;
4654esac
4655fi
4656GMSGFMT="$ac_cv_path_GMSGFMT"
4657if test -n "$GMSGFMT"; then
4658  echo "$ac_t""$GMSGFMT" 1>&6
4659else
4660  echo "$ac_t""no" 1>&6
4661fi
4662
4663                 if test "$GMSGFMT" = "no"; then
4664                   # Extract the first word of "msgfmt", so it can be a program name with args.
4665set dummy msgfmt; ac_word=$2
4666echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4667echo "configure:4668: checking for $ac_word" >&5
4668if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4669  echo $ac_n "(cached) $ac_c" 1>&6
4670else
4671  case "$GMSGFMT" in
4672  /*)
4673  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4674  ;;
4675  *)
4676  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4677  for ac_dir in $PATH; do
4678    test -z "$ac_dir" && ac_dir=.
4679    if test -f $ac_dir/$ac_word; then
4680      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4681        ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4682        break
4683      fi
4684    fi
4685  done
4686  IFS="$ac_save_ifs"
4687  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
4688  ;;
4689esac
4690fi
4691GMSGFMT="$ac_cv_path_GMSGFMT"
4692if test -n "$GMSGFMT"; then
4693  echo "$ac_t""$GMSGFMT" 1>&6
4694else
4695  echo "$ac_t""no" 1>&6
4696fi
4697
4698                 fi
4699                 # Extract the first word of "xgettext", so it can be a program name with args.
4700set dummy xgettext; ac_word=$2
4701echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4702echo "configure:4703: checking for $ac_word" >&5
4703if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4704  echo $ac_n "(cached) $ac_c" 1>&6
4705else
4706  case "$XGETTEXT" in
4707  /*)
4708  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4709  ;;
4710  *)
4711  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4712  for ac_dir in $PATH; do
4713    test -z "$ac_dir" && ac_dir=.
4714    if test -f $ac_dir/$ac_word; then
4715      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4716        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4717        break
4718      fi
4719    fi
4720  done
4721  IFS="$ac_save_ifs"
4722  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4723  ;;
4724esac
4725fi
4726XGETTEXT="$ac_cv_path_XGETTEXT"
4727if test -n "$XGETTEXT"; then
4728  echo "$ac_t""$XGETTEXT" 1>&6
4729else
4730  echo "$ac_t""no" 1>&6
4731fi
4732
4733                 USE_INCLUDED_LIBINTL=yes
4734                 CATOBJEXT=.cat
4735                 INSTOBJEXT=.cat
4736                 DATADIRNAME=lib
4737                 INTLDEPS='$(top_builddir)/intl/libintl.a'
4738                 INTLLIBS=$INTLDEPS
4739                 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4740                 nls_cv_header_intl=intl/libintl.h
4741                 nls_cv_header_libgt=intl/libgettext.h
4742               fi
4743else
4744  echo "$ac_t""no" 1>&6
4745fi
4746
4747          fi
4748        fi
4749
4750        if test "$CATOBJEXT" = "NONE"; then
4751                          nls_cv_use_gnu_gettext=yes
4752        fi
4753      fi
4754
4755      if test "$nls_cv_use_gnu_gettext" = "yes"; then
4756                INTLOBJS="\$(GETTOBJS)"
4757        # Extract the first word of "msgfmt", so it can be a program name with args.
4758set dummy msgfmt; ac_word=$2
4759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4760echo "configure:4761: checking for $ac_word" >&5
4761if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4762  echo $ac_n "(cached) $ac_c" 1>&6
4763else
4764  case "$MSGFMT" in
4765  /*)
4766  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4767  ;;
4768  *)
4769  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4770  for ac_dir in $PATH; do
4771    test -z "$ac_dir" && ac_dir=.
4772    if test -f $ac_dir/$ac_word; then
4773      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4774        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4775        break
4776      fi
4777    fi
4778  done
4779  IFS="$ac_save_ifs"
4780  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4781  ;;
4782esac
4783fi
4784MSGFMT="$ac_cv_path_MSGFMT"
4785if test -n "$MSGFMT"; then
4786  echo "$ac_t""$MSGFMT" 1>&6
4787else
4788  echo "$ac_t""no" 1>&6
4789fi
4790
4791        # Extract the first word of "gmsgfmt", so it can be a program name with args.
4792set dummy gmsgfmt; ac_word=$2
4793echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4794echo "configure:4795: checking for $ac_word" >&5
4795if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4796  echo $ac_n "(cached) $ac_c" 1>&6
4797else
4798  case "$GMSGFMT" in
4799  /*)
4800  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4801  ;;
4802  ?:/*)                 
4803  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4804  ;;
4805  *)
4806  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4807  ac_dummy="$PATH"
4808  for ac_dir in $ac_dummy; do
4809    test -z "$ac_dir" && ac_dir=.
4810    if test -f $ac_dir/$ac_word; then
4811      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4812      break
4813    fi
4814  done
4815  IFS="$ac_save_ifs"
4816  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4817  ;;
4818esac
4819fi
4820GMSGFMT="$ac_cv_path_GMSGFMT"
4821if test -n "$GMSGFMT"; then
4822  echo "$ac_t""$GMSGFMT" 1>&6
4823else
4824  echo "$ac_t""no" 1>&6
4825fi
4826
4827        # Extract the first word of "xgettext", so it can be a program name with args.
4828set dummy xgettext; ac_word=$2
4829echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4830echo "configure:4831: checking for $ac_word" >&5
4831if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4832  echo $ac_n "(cached) $ac_c" 1>&6
4833else
4834  case "$XGETTEXT" in
4835  /*)
4836  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4837  ;;
4838  *)
4839  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4840  for ac_dir in $PATH; do
4841    test -z "$ac_dir" && ac_dir=.
4842    if test -f $ac_dir/$ac_word; then
4843      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4844        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4845        break
4846      fi
4847    fi
4848  done
4849  IFS="$ac_save_ifs"
4850  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4851  ;;
4852esac
4853fi
4854XGETTEXT="$ac_cv_path_XGETTEXT"
4855if test -n "$XGETTEXT"; then
4856  echo "$ac_t""$XGETTEXT" 1>&6
4857else
4858  echo "$ac_t""no" 1>&6
4859fi
4860
4861       
4862        USE_INCLUDED_LIBINTL=yes
4863        CATOBJEXT=.gmo
4864        INSTOBJEXT=.mo
4865        DATADIRNAME=share
4866        INTLDEPS='$(top_builddir)/intl/libintl.a'
4867        INTLLIBS=$INTLDEPS
4868        LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4869        nls_cv_header_intl=intl/libintl.h
4870        nls_cv_header_libgt=intl/libgettext.h
4871      fi
4872
4873            if test "$XGETTEXT" != ":"; then
4874                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4875          : ;
4876        else
4877          echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
4878          XGETTEXT=":"
4879        fi
4880      fi
4881
4882      # We need to process the po/ directory.
4883      POSUB=po
4884    else
4885      DATADIRNAME=share
4886      nls_cv_header_intl=intl/libintl.h
4887      nls_cv_header_libgt=intl/libgettext.h
4888    fi
4889   
4890   
4891
4892
4893    # If this is used in GNU gettext we have to set USE_NLS to `yes'
4894    # because some of the sources are only built for this goal.
4895    if test "$PACKAGE" = gettext; then
4896      USE_NLS=yes
4897      USE_INCLUDED_LIBINTL=yes
4898    fi
4899
4900                for lang in $ALL_LINGUAS; do
4901      GMOFILES="$GMOFILES $lang.gmo"
4902      POFILES="$POFILES $lang.po"
4903    done
4904
4905       
4906   
4907   
4908   
4909   
4910   
4911   
4912   
4913   
4914   
4915   
4916 
4917
4918   if test "x$CATOBJEXT" != "x"; then
4919     if test "x$ALL_LINGUAS" = "x"; then
4920       LINGUAS=
4921     else
4922       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4923echo "configure:4924: checking for catalogs to be installed" >&5
4924       NEW_LINGUAS=
4925       for lang in ${LINGUAS=$ALL_LINGUAS}; do
4926         case "$ALL_LINGUAS" in
4927          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4928         esac
4929       done
4930       LINGUAS=$NEW_LINGUAS
4931       echo "$ac_t""$LINGUAS" 1>&6
4932     fi
4933
4934          if test -n "$LINGUAS"; then
4935       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4936     fi
4937   fi
4938
4939            if test $ac_cv_header_locale_h = yes; then
4940     INCLUDE_LOCALE_H="#include <locale.h>"
4941   else
4942     INCLUDE_LOCALE_H="\
4943/* The system does not provide the header <locale.h>.  Take care yourself.  */"
4944   fi
4945   
4946
4947            test -d intl || mkdir intl
4948   if test "$CATOBJEXT" = ".cat"; then
4949     ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4950echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4951echo "configure:4952: checking for linux/version.h" >&5
4952if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4953  echo $ac_n "(cached) $ac_c" 1>&6
4954else
4955  cat > conftest.$ac_ext <<EOF
4956#line 4957 "configure"
4957#include "confdefs.h"
4958#include <linux/version.h>
4959EOF
4960ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4961{ (eval echo configure:4962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4962ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4963if test -z "$ac_err"; then
4964  rm -rf conftest*
4965  eval "ac_cv_header_$ac_safe=yes"
4966else
4967  echo "$ac_err" >&5
4968  echo "configure: failed program was:" >&5
4969  cat conftest.$ac_ext >&5
4970  rm -rf conftest*
4971  eval "ac_cv_header_$ac_safe=no"
4972fi
4973rm -f conftest*
4974fi
4975if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4976  echo "$ac_t""yes" 1>&6
4977  msgformat=linux
4978else
4979  echo "$ac_t""no" 1>&6
4980msgformat=xopen
4981fi
4982
4983
4984               sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
4985   fi
4986      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4987     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
4988
4989            if test "$PACKAGE" = "gettext"; then
4990     GT_NO="#NO#"
4991     GT_YES=
4992   else
4993     GT_NO=
4994     GT_YES="#YES#"
4995   fi
4996   
4997   
4998
4999            MKINSTALLDIRS=
5000   if test -n "$ac_aux_dir"; then
5001     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5002   fi
5003   if test -z "$MKINSTALLDIRS"; then
5004     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5005   fi
5006   
5007
5008      l=
5009   
5010
5011         test -d po || mkdir po
5012   if test "x$srcdir" != "x."; then
5013     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5014       posrcprefix="$srcdir/"
5015     else
5016       posrcprefix="../$srcdir/"
5017     fi
5018   else
5019     posrcprefix="../"
5020   fi
5021   rm -f po/POTFILES
5022   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5023        < $srcdir/po/POTFILES.in > po/POTFILES
5024 
5025
5026
5027
5028
5029
5030PROGRAMS_VUMETER=""
5031if test -n "$we_have_esd"; then
5032PROGRAMS_VUMETER="vu-meter"
5033fi
5034
5035
5036PROGRAMS_GMIX=""
5037GMIX_LIBS=""
5038for ac_hdr in soundcard.h linux/soundcard.h sys/soundcard.h
5039do
5040ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5041echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5042echo "configure:5043: checking for $ac_hdr" >&5
5043if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5044  echo $ac_n "(cached) $ac_c" 1>&6
5045else
5046  cat > conftest.$ac_ext <<EOF
5047#line 5048 "configure"
5048#include "confdefs.h"
5049#include <$ac_hdr>
5050EOF
5051ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5052{ (eval echo configure:5053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5053ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5054if test -z "$ac_err"; then
5055  rm -rf conftest*
5056  eval "ac_cv_header_$ac_safe=yes"
5057else
5058  echo "$ac_err" >&5
5059  echo "configure: failed program was:" >&5
5060  cat conftest.$ac_ext >&5
5061  rm -rf conftest*
5062  eval "ac_cv_header_$ac_safe=no"
5063fi
5064rm -f conftest*
5065fi
5066if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5067  echo "$ac_t""yes" 1>&6
5068    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5069  cat >> confdefs.h <<EOF
5070#define $ac_tr_hdr 1
5071EOF
5072 
5073else
5074  echo "$ac_t""no" 1>&6
5075fi
5076done
5077
5078for ac_hdr in machine/soundcard.h
5079do
5080ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5081echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5082echo "configure:5083: checking for $ac_hdr" >&5
5083if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5084  echo $ac_n "(cached) $ac_c" 1>&6
5085else
5086  cat > conftest.$ac_ext <<EOF
5087#line 5088 "configure"
5088#include "confdefs.h"
5089#include <$ac_hdr>
5090EOF
5091ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5092{ (eval echo configure:5093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5093ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5094if test -z "$ac_err"; then
5095  rm -rf conftest*
5096  eval "ac_cv_header_$ac_safe=yes"
5097else
5098  echo "$ac_err" >&5
5099  echo "configure: failed program was:" >&5
5100  cat conftest.$ac_ext >&5
5101  rm -rf conftest*
5102  eval "ac_cv_header_$ac_safe=no"
5103fi
5104rm -f conftest*
5105fi
5106if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5107  echo "$ac_t""yes" 1>&6
5108    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5109  cat >> confdefs.h <<EOF
5110#define $ac_tr_hdr 1
5111EOF
5112 
5113else
5114  echo "$ac_t""no" 1>&6
5115fi
5116done
5117
5118if test "x$enable_alsa" = "xyes"; then
5119    PROGRAMS_GMIX=gmix
5120    GMIX_LIBS="-lasound"
5121elif test "${ac_cv_header_sys_soundcard_h}" = "yes" || \
5122     test "${ac_cv_header_soundcard_h}" = "yes" || \
5123     test "${ac_cv_header_linux_soundcard_h}" = "yes" || \
5124     test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
5125    PROGRAMS_GMIX=gmix
5126fi
5127
5128
5129
5130
5131
5132       
5133        GHTTP_LIB=
5134        echo $ac_n "checking for connect""... $ac_c" 1>&6
5135echo "configure:5136: checking for connect" >&5
5136if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5137  echo $ac_n "(cached) $ac_c" 1>&6
5138else
5139  cat > conftest.$ac_ext <<EOF
5140#line 5141 "configure"
5141#include "confdefs.h"
5142/* System header to define __stub macros and hopefully few prototypes,
5143    which can conflict with char connect(); below.  */
5144#include <assert.h>
5145/* Override any gcc2 internal prototype to avoid an error.  */
5146/* We use char because int might match the return type of a gcc2
5147    builtin and then its argument prototype would still apply.  */
5148char connect();
5149
5150int main() {
5151
5152/* The GNU C library defines this for functions which it implements
5153    to always fail with ENOSYS.  Some functions are actually named
5154    something starting with __ and the normal name is an alias.  */
5155#if defined (__stub_connect) || defined (__stub___connect)
5156choke me
5157#else
5158connect();
5159#endif
5160
5161; return 0; }
5162EOF
5163if { (eval echo configure:5164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5164  rm -rf conftest*
5165  eval "ac_cv_func_connect=yes"
5166else
5167  echo "configure: failed program was:" >&5
5168  cat conftest.$ac_ext >&5
5169  rm -rf conftest*
5170  eval "ac_cv_func_connect=no"
5171fi
5172rm -f conftest*
5173fi
5174
5175if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5176  echo "$ac_t""yes" 1>&6
5177  :
5178else
5179  echo "$ac_t""no" 1>&6
5180
5181          echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5182echo "configure:5183: checking for connect in -lsocket" >&5
5183ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5184if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5185  echo $ac_n "(cached) $ac_c" 1>&6
5186else
5187  ac_save_LIBS="$LIBS"
5188LIBS="-lsocket $GHTTP_LIB $LIBS"
5189cat > conftest.$ac_ext <<EOF
5190#line 5191 "configure"
5191#include "confdefs.h"
5192/* Override any gcc2 internal prototype to avoid an error.  */
5193/* We use char because int might match the return type of a gcc2
5194    builtin and then its argument prototype would still apply.  */
5195char connect();
5196
5197int main() {
5198connect()
5199; return 0; }
5200EOF
5201if { (eval echo configure:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5202  rm -rf conftest*
5203  eval "ac_cv_lib_$ac_lib_var=yes"
5204else
5205  echo "configure: failed program was:" >&5
5206  cat conftest.$ac_ext >&5
5207  rm -rf conftest*
5208  eval "ac_cv_lib_$ac_lib_var=no"
5209fi
5210rm -f conftest*
5211LIBS="$ac_save_LIBS"
5212
5213fi
5214if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5215  echo "$ac_t""yes" 1>&6
5216  GHTTP_LIB="-lsocket $GHTTP_LIB"
5217else
5218  echo "$ac_t""no" 1>&6
5219fi
5220
5221fi
5222
5223        echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5224echo "configure:5225: checking for gethostbyname" >&5
5225if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5226  echo $ac_n "(cached) $ac_c" 1>&6
5227else
5228  cat > conftest.$ac_ext <<EOF
5229#line 5230 "configure"
5230#include "confdefs.h"
5231/* System header to define __stub macros and hopefully few prototypes,
5232    which can conflict with char gethostbyname(); below.  */
5233#include <assert.h>
5234/* Override any gcc2 internal prototype to avoid an error.  */
5235/* We use char because int might match the return type of a gcc2
5236    builtin and then its argument prototype would still apply.  */
5237char gethostbyname();
5238
5239int main() {
5240
5241/* The GNU C library defines this for functions which it implements
5242    to always fail with ENOSYS.  Some functions are actually named
5243    something starting with __ and the normal name is an alias.  */
5244#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5245choke me
5246#else
5247gethostbyname();
5248#endif
5249
5250; return 0; }
5251EOF
5252if { (eval echo configure:5253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5253  rm -rf conftest*
5254  eval "ac_cv_func_gethostbyname=yes"
5255else
5256  echo "configure: failed program was:" >&5
5257  cat conftest.$ac_ext >&5
5258  rm -rf conftest*
5259  eval "ac_cv_func_gethostbyname=no"
5260fi
5261rm -f conftest*
5262fi
5263
5264if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5265  echo "$ac_t""yes" 1>&6
5266  :
5267else
5268  echo "$ac_t""no" 1>&6
5269
5270          echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5271echo "configure:5272: checking for gethostbyname in -lnsl" >&5
5272ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5273if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5274  echo $ac_n "(cached) $ac_c" 1>&6
5275else
5276  ac_save_LIBS="$LIBS"
5277LIBS="-lnsl $GHTTP_LIB $LIBS"
5278cat > conftest.$ac_ext <<EOF
5279#line 5280 "configure"
5280#include "confdefs.h"
5281/* Override any gcc2 internal prototype to avoid an error.  */
5282/* We use char because int might match the return type of a gcc2
5283    builtin and then its argument prototype would still apply.  */
5284char gethostbyname();
5285
5286int main() {
5287gethostbyname()
5288; return 0; }
5289EOF
5290if { (eval echo configure:5291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5291  rm -rf conftest*
5292  eval "ac_cv_lib_$ac_lib_var=yes"
5293else
5294  echo "configure: failed program was:" >&5
5295  cat conftest.$ac_ext >&5
5296  rm -rf conftest*
5297  eval "ac_cv_lib_$ac_lib_var=no"
5298fi
5299rm -f conftest*
5300LIBS="$ac_save_LIBS"
5301
5302fi
5303if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5304  echo "$ac_t""yes" 1>&6
5305  GHTTP_LIB="-lnsl $GHTTP_LIB"
5306else
5307  echo "$ac_t""no" 1>&6
5308fi
5309
5310fi
5311
5312        echo $ac_n "checking for ghttp_request_new in -lghttp""... $ac_c" 1>&6
5313echo "configure:5314: checking for ghttp_request_new in -lghttp" >&5
5314ac_lib_var=`echo ghttp'_'ghttp_request_new | sed 'y%./+-%__p_%'`
5315if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5316  echo $ac_n "(cached) $ac_c" 1>&6
5317else
5318  ac_save_LIBS="$LIBS"
5319LIBS="-lghttp -L$gnome_prefix $GHTTP_LIB $LIBS"
5320cat > conftest.$ac_ext <<EOF
5321#line 5322 "configure"
5322#include "confdefs.h"
5323/* Override any gcc2 internal prototype to avoid an error.  */
5324/* We use char because int might match the return type of a gcc2
5325    builtin and then its argument prototype would still apply.  */
5326char ghttp_request_new();
5327
5328int main() {
5329ghttp_request_new()
5330; return 0; }
5331EOF
5332if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5333  rm -rf conftest*
5334  eval "ac_cv_lib_$ac_lib_var=yes"
5335else
5336  echo "configure: failed program was:" >&5
5337  cat conftest.$ac_ext >&5
5338  rm -rf conftest*
5339  eval "ac_cv_lib_$ac_lib_var=no"
5340fi
5341rm -f conftest*
5342LIBS="$ac_save_LIBS"
5343
5344fi
5345if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5346  echo "$ac_t""yes" 1>&6
5347  GHTTP_LIB="-lghttp $GHTTP_LIB"
5348else
5349  echo "$ac_t""no" 1>&6
5350GHTTP_LIB=""
5351fi
5352
5353       
5354       
5355
5356if test -n "`echo x$GHTTP_LIB | grep ghttp`"; then
5357  cat >> confdefs.h <<\EOF
5358#define WITH_LIBGHTTP 1
5359EOF
5360
5361else
5362  GHTTP_LIB=
5363fi
5364
5365echo $ac_n "checking for the MTA""... $ac_c" 1>&6
5366echo "configure:5367: checking for the MTA" >&5
5367if test -f /usr/sbin/sendmail; then
5368  MAIL_TRANSFER_AGENT="/usr/sbin/sendmail -t"
5369elif test -f /usr/lib/sendmail; then
5370  MAIL_TRANSFER_AGENT="/usr/lib/sendmail -t"
5371else
5372  MAIL_TRANSFER_AGENT="rmail "
5373fi
5374cat >> confdefs.h <<EOF
5375#define MAIL_TRANSFER_AGENT "$MAIL_TRANSFER_AGENT"
5376EOF
5377
5378echo "$ac_t""$MAIL_TRANSFER_AGENT" 1>&6
5379
5380PROGRAMS_TCD=""
5381for ac_hdr in linux/cdrom.h
5382do
5383ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5384echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5385echo "configure:5386: checking for $ac_hdr" >&5
5386if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5387  echo $ac_n "(cached) $ac_c" 1>&6
5388else
5389  cat > conftest.$ac_ext <<EOF
5390#line 5391 "configure"
5391#include "confdefs.h"
5392#include <$ac_hdr>
5393EOF
5394ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5395{ (eval echo configure:5396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5396ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5397if test -z "$ac_err"; then
5398  rm -rf conftest*
5399  eval "ac_cv_header_$ac_safe=yes"
5400else
5401  echo "$ac_err" >&5
5402  echo "configure: failed program was:" >&5
5403  cat conftest.$ac_ext >&5
5404  rm -rf conftest*
5405  eval "ac_cv_header_$ac_safe=no"
5406fi
5407rm -f conftest*
5408fi
5409if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5410  echo "$ac_t""yes" 1>&6
5411    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5412  cat >> confdefs.h <<EOF
5413#define $ac_tr_hdr 1
5414EOF
5415 PROGRAMS_TCD=tcd
5416else
5417  echo "$ac_t""no" 1>&6
5418fi
5419done
5420
5421for ac_hdr in linux/ucdrom.h
5422do
5423ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5424echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5425echo "configure:5426: checking for $ac_hdr" >&5
5426if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5427  echo $ac_n "(cached) $ac_c" 1>&6
5428else
5429  cat > conftest.$ac_ext <<EOF
5430#line 5431 "configure"
5431#include "confdefs.h"
5432#include <$ac_hdr>
5433EOF
5434ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5435{ (eval echo configure:5436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5436ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5437if test -z "$ac_err"; then
5438  rm -rf conftest*
5439  eval "ac_cv_header_$ac_safe=yes"
5440else
5441  echo "$ac_err" >&5
5442  echo "configure: failed program was:" >&5
5443  cat conftest.$ac_ext >&5
5444  rm -rf conftest*
5445  eval "ac_cv_header_$ac_safe=no"
5446fi
5447rm -f conftest*
5448fi
5449if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5450  echo "$ac_t""yes" 1>&6
5451    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5452  cat >> confdefs.h <<EOF
5453#define $ac_tr_hdr 1
5454EOF
5455 
5456else
5457  echo "$ac_t""no" 1>&6
5458fi
5459done
5460
5461for ac_hdr in sys/cdio.h
5462do
5463ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5464echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5465echo "configure:5466: checking for $ac_hdr" >&5
5466if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5467  echo $ac_n "(cached) $ac_c" 1>&6
5468else
5469  cat > conftest.$ac_ext <<EOF
5470#line 5471 "configure"
5471#include "confdefs.h"
5472#include <$ac_hdr>
5473EOF
5474ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5475{ (eval echo configure:5476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5476ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5477if test -z "$ac_err"; then
5478  rm -rf conftest*
5479  eval "ac_cv_header_$ac_safe=yes"
5480else
5481  echo "$ac_err" >&5
5482  echo "configure: failed program was:" >&5
5483  cat conftest.$ac_ext >&5
5484  rm -rf conftest*
5485  eval "ac_cv_header_$ac_safe=no"
5486fi
5487rm -f conftest*
5488fi
5489if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5490  echo "$ac_t""yes" 1>&6
5491    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5492  cat >> confdefs.h <<EOF
5493#define $ac_tr_hdr 1
5494EOF
5495 PROGRAMS_TCD=tcd
5496else
5497  echo "$ac_t""no" 1>&6
5498fi
5499done
5500
5501for ac_hdr in sun/dkio.h
5502do
5503ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5504echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5505echo "configure:5506: checking for $ac_hdr" >&5
5506if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5507  echo $ac_n "(cached) $ac_c" 1>&6
5508else
5509  cat > conftest.$ac_ext <<EOF
5510#line 5511 "configure"
5511#include "confdefs.h"
5512#include <$ac_hdr>
5513EOF
5514ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5515{ (eval echo configure:5516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5516ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5517if test -z "$ac_err"; then
5518  rm -rf conftest*
5519  eval "ac_cv_header_$ac_safe=yes"
5520else
5521  echo "$ac_err" >&5
5522  echo "configure: failed program was:" >&5
5523  cat conftest.$ac_ext >&5
5524  rm -rf conftest*
5525  eval "ac_cv_header_$ac_safe=no"
5526fi
5527rm -f conftest*
5528fi
5529if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5530  echo "$ac_t""yes" 1>&6
5531    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5532  cat >> confdefs.h <<EOF
5533#define $ac_tr_hdr 1
5534EOF
5535 PROGRAMS_TCD=tcd
5536else
5537  echo "$ac_t""no" 1>&6
5538fi
5539done
5540
5541
5542echo $ac_n "checking whether to use cd changer support (Linux 2.1.x headers required)""... $ac_c" 1>&6
5543echo "configure:5544: checking whether to use cd changer support (Linux 2.1.x headers required)" >&5
5544cat > conftest.$ac_ext <<EOF
5545#line 5546 "configure"
5546#include "confdefs.h"
5547#include <linux/cdrom.h>
5548 #ifdef CDROM_CHANGER_NSLOTS
5549        answer_affirmatively
5550 #endif
5551
5552EOF
5553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5554  egrep "answer_affirmatively" >/dev/null 2>&1; then
5555  rm -rf conftest*
5556  cd_changer=yes
5557else
5558  rm -rf conftest*
5559  cd_changer=no
5560fi
5561rm -f conftest*
5562
5563if test "$cd_changer" = "yes"; then
5564        USE_CD_CHANGER="-DTCD_CHANGER_ENABLED"
5565fi
5566echo "$ac_t"""$cd_changer"" 1>&6
5567
5568
5569
5570
5571PROGRAMS_GRECORD="grecord"
5572
5573
5574trap '' 1 2 15
5575cat > confcache <<\EOF
5576# This file is a shell script that caches the results of configure
5577# tests run on this system so they can be shared between configure
5578# scripts and configure runs.  It is not useful on other systems.
5579# If it contains results you don't want to keep, you may remove or edit it.
5580#
5581# By default, configure uses ./config.cache as the cache file,
5582# creating it if it does not exist already.  You can give configure
5583# the --cache-file=FILE option to use a different cache file; that is
5584# what configure does when it calls configure scripts in
5585# subdirectories, so they share the cache.
5586# Giving --cache-file=/dev/null disables caching, for debugging configure.
5587# config.status only pays attention to the cache file if you give it the
5588# --recheck option to rerun configure.
5589#
5590EOF
5591# The following way of writing the cache mishandles newlines in values,
5592# but we know of no workaround that is simple, portable, and efficient.
5593# So, don't put newlines in cache variables' values.
5594# Ultrix sh set writes to stderr and can't be redirected directly,
5595# and sets the high bit in the cache file unless we assign to the vars.
5596(set) 2>&1 |
5597  case `(ac_space=' '; set | grep ac_space) 2>&1` in
5598  *ac_space=\ *)
5599    # `set' does not quote correctly, so add quotes (double-quote substitution
5600    # turns \\\\ into \\, and sed turns \\ into \).
5601    sed -n \
5602      -e "s/'/'\\\\''/g" \
5603      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5604    ;;
5605  *)
5606    # `set' quotes correctly as required by POSIX, so do not add quotes.
5607    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5608    ;;
5609  esac >> confcache
5610if cmp -s $cache_file confcache; then
5611  :
5612else
5613  if test -w $cache_file; then
5614    echo "updating cache $cache_file"
5615    cat confcache > $cache_file
5616  else
5617    echo "not updating unwritable cache $cache_file"
5618  fi
5619fi
5620rm -f confcache
5621
5622trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5623
5624test "x$prefix" = xNONE && prefix=$ac_default_prefix
5625# Let make expand exec_prefix.
5626test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5627
5628# Any assignment to VPATH causes Sun make to only execute
5629# the first set of double-colon rules, so remove it if not needed.
5630# If there is a colon in the path, we need to keep it.
5631if test "x$srcdir" = x.; then
5632  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
5633fi
5634
5635trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5636
5637DEFS=-DHAVE_CONFIG_H
5638
5639# Without the "./", some shells look in PATH for config.status.
5640: ${CONFIG_STATUS=./config.status}
5641
5642echo creating $CONFIG_STATUS
5643rm -f $CONFIG_STATUS
5644cat > $CONFIG_STATUS <<EOF
5645#! /bin/sh
5646# Generated automatically by configure.
5647# Run this file to recreate the current configuration.
5648# This directory was configured as follows,
5649# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5650#
5651# $0 $ac_configure_args
5652#
5653# Compiler output produced by configure, useful for debugging
5654# configure, is in ./config.log if it exists.
5655
5656ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5657for ac_option
5658do
5659  case "\$ac_option" in
5660  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5661    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5662    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5663  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5664    echo "$CONFIG_STATUS generated by autoconf version 2.13"
5665    exit 0 ;;
5666  -help | --help | --hel | --he | --h)
5667    echo "\$ac_cs_usage"; exit 0 ;;
5668  *) echo "\$ac_cs_usage"; exit 1 ;;
5669  esac
5670done
5671
5672ac_given_srcdir=$srcdir
5673ac_given_INSTALL="$INSTALL"
5674
5675trap 'rm -fr `echo "
5676gnome-media.spec
5677Makefile
5678po/Makefile.in
5679gmix/Makefile
5680gmix/doc/Makefile
5681gmix/doc/C/Makefile
5682gmix/doc/it/Makefile
5683vu-meter/Makefile
5684macros/Makefile
5685intl/Makefile
5686tcd/Makefile
5687tcd/icons/Makefile
5688tcd/doc/Makefile
5689tcd/doc/C/Makefile
5690cddbslave/Makefile
5691grecord/Makefile
5692grecord/src/Makefile
5693omf-install/Makefile
5694version.h config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5695EOF
5696cat >> $CONFIG_STATUS <<EOF
5697
5698# Protect against being on the right side of a sed subst in config.status.
5699sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5700 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5701$ac_vpsub
5702$extrasub
5703s%@SHELL@%$SHELL%g
5704s%@CFLAGS@%$CFLAGS%g
5705s%@CPPFLAGS@%$CPPFLAGS%g
5706s%@CXXFLAGS@%$CXXFLAGS%g
5707s%@FFLAGS@%$FFLAGS%g
5708s%@DEFS@%$DEFS%g
5709s%@LDFLAGS@%$LDFLAGS%g
5710s%@LIBS@%$LIBS%g
5711s%@exec_prefix@%$exec_prefix%g
5712s%@prefix@%$prefix%g
5713s%@program_transform_name@%$program_transform_name%g
5714s%@bindir@%$bindir%g
5715s%@sbindir@%$sbindir%g
5716s%@libexecdir@%$libexecdir%g
5717s%@datadir@%$datadir%g
5718s%@sysconfdir@%$sysconfdir%g
5719s%@sharedstatedir@%$sharedstatedir%g
5720s%@localstatedir@%$localstatedir%g
5721s%@libdir@%$libdir%g
5722s%@includedir@%$includedir%g
5723s%@oldincludedir@%$oldincludedir%g
5724s%@infodir@%$infodir%g
5725s%@mandir@%$mandir%g
5726s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5727s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5728s%@INSTALL_DATA@%$INSTALL_DATA%g
5729s%@PACKAGE@%$PACKAGE%g
5730s%@VERSION@%$VERSION%g
5731s%@ACLOCAL@%$ACLOCAL%g
5732s%@AUTOCONF@%$AUTOCONF%g
5733s%@AUTOMAKE@%$AUTOMAKE%g
5734s%@AUTOHEADER@%$AUTOHEADER%g
5735s%@MAKEINFO@%$MAKEINFO%g
5736s%@SET_MAKE@%$SET_MAKE%g
5737s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5738s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5739s%@MAINT@%$MAINT%g
5740s%@XML_I18N_MERGE_OAF_RULE@%$XML_I18N_MERGE_OAF_RULE%g
5741s%@XML_I18N_MERGE_KEYS_RULE@%$XML_I18N_MERGE_KEYS_RULE%g
5742s%@XML_I18N_MERGE_DESKTOP_RULE@%$XML_I18N_MERGE_DESKTOP_RULE%g
5743s%@XML_I18N_MERGE_DIRECTORY_RULE@%$XML_I18N_MERGE_DIRECTORY_RULE%g
5744s%@XML_I18N_MERGE_SOUNDLIST_RULE@%$XML_I18N_MERGE_SOUNDLIST_RULE%g
5745s%@XML_I18N_MERGE_PONG_RULE@%$XML_I18N_MERGE_PONG_RULE%g
5746s%@XML_I18N_MERGE_XML_RULE@%$XML_I18N_MERGE_XML_RULE%g
5747s%@XML_I18N_EXTRACT@%$XML_I18N_EXTRACT%g
5748s%@XML_I18N_MERGE@%$XML_I18N_MERGE%g
5749s%@XML_I18N_UPDATE@%$XML_I18N_UPDATE%g
5750s%@XML_I18N_MERGE_SOUNDLIST_RULE@%$XML_I18N_MERGE_SOUNDLIST_RULE%g
5751s%@XML_I18N_TOOLS_PERL@%$XML_I18N_TOOLS_PERL%g
5752s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
5753s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
5754s%@CC@%$CC%g
5755s%@GNOME_LIBS@%$GNOME_LIBS%g
5756s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
5757s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
5758s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
5759s%@ZVT_LIBS@%$ZVT_LIBS%g
5760s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
5761s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
5762s%@GNOME_CONFIG@%$GNOME_CONFIG%g
5763s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
5764s%@ORBIT_IDL@%$ORBIT_IDL%g
5765s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
5766s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
5767s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
5768s%@ORBIT_LIBS@%$ORBIT_LIBS%g
5769s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
5770s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
5771s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
5772s%@GNORBA_LIBS@%$GNORBA_LIBS%g
5773s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
5774s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
5775s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
5776s%@cflags_set@%$cflags_set%g
5777s%@LN_S@%$LN_S%g
5778s%@CURSES_LIBS@%$CURSES_LIBS%g
5779s%@CURSES_INCLUDEDIR@%$CURSES_INCLUDEDIR%g
5780s%@CPP@%$CPP%g
5781s%@HAS_CURSES_TRUE@%$HAS_CURSES_TRUE%g
5782s%@HAS_CURSES_FALSE@%$HAS_CURSES_FALSE%g
5783s%@FALSE_TRUE@%$FALSE_TRUE%g
5784s%@FALSE_FALSE@%$FALSE_FALSE%g
5785s%@ALLOCA@%$ALLOCA%g
5786s%@host@%$host%g
5787s%@host_alias@%$host_alias%g
5788s%@host_cpu@%$host_cpu%g
5789s%@host_vendor@%$host_vendor%g
5790s%@host_os@%$host_os%g
5791s%@build@%$build%g
5792s%@build_alias@%$build_alias%g
5793s%@build_cpu@%$build_cpu%g
5794s%@build_vendor@%$build_vendor%g
5795s%@build_os@%$build_os%g
5796s%@RANLIB@%$RANLIB%g
5797s%@LIBTOOL@%$LIBTOOL%g
5798s%@ESD_CONFIG@%$ESD_CONFIG%g
5799s%@ESD_CFLAGS@%$ESD_CFLAGS%g
5800s%@ESD_LIBS@%$ESD_LIBS%g
5801s%@SCROLLKEEPER_CONFIG@%$SCROLLKEEPER_CONFIG%g
5802s%@USE_NLS@%$USE_NLS%g
5803s%@MSGFMT@%$MSGFMT%g
5804s%@GMSGFMT@%$GMSGFMT%g
5805s%@XGETTEXT@%$XGETTEXT%g
5806s%@GENCAT@%$GENCAT%g
5807s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5808s%@CATALOGS@%$CATALOGS%g
5809s%@CATOBJEXT@%$CATOBJEXT%g
5810s%@DATADIRNAME@%$DATADIRNAME%g
5811s%@GMOFILES@%$GMOFILES%g
5812s%@INSTOBJEXT@%$INSTOBJEXT%g
5813s%@INTLDEPS@%$INTLDEPS%g
5814s%@INTLLIBS@%$INTLLIBS%g
5815s%@INTLOBJS@%$INTLOBJS%g
5816s%@POFILES@%$POFILES%g
5817s%@POSUB@%$POSUB%g
5818s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5819s%@GT_NO@%$GT_NO%g
5820s%@GT_YES@%$GT_YES%g
5821s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5822s%@l@%$l%g
5823s%@PROGRAMS_VUMETER@%$PROGRAMS_VUMETER%g
5824s%@PROGRAMS_GMIX@%$PROGRAMS_GMIX%g
5825s%@GMIX_LIBS@%$GMIX_LIBS%g
5826s%@GHTTP_LIB@%$GHTTP_LIB%g
5827s%@USE_CD_CHANGER@%$USE_CD_CHANGER%g
5828s%@PROGRAMS_TCD@%$PROGRAMS_TCD%g
5829s%@PROGRAMS_GRECORD@%$PROGRAMS_GRECORD%g
5830
5831CEOF
5832EOF
5833
5834cat >> $CONFIG_STATUS <<\EOF
5835
5836# Split the substitutions into bite-sized pieces for seds with
5837# small command number limits, like on Digital OSF/1 and HP-UX.
5838ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5839ac_file=1 # Number of current file.
5840ac_beg=1 # First line for current file.
5841ac_end=$ac_max_sed_cmds # Line after last line for current file.
5842ac_more_lines=:
5843ac_sed_cmds=""
5844while $ac_more_lines; do
5845  if test $ac_beg -gt 1; then
5846    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5847  else
5848    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5849  fi
5850  if test ! -s conftest.s$ac_file; then
5851    ac_more_lines=false
5852    rm -f conftest.s$ac_file
5853  else
5854    if test -z "$ac_sed_cmds"; then
5855      ac_sed_cmds="sed -f conftest.s$ac_file"
5856    else
5857      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5858    fi
5859    ac_file=`expr $ac_file + 1`
5860    ac_beg=$ac_end
5861    ac_end=`expr $ac_end + $ac_max_sed_cmds`
5862  fi
5863done
5864if test -z "$ac_sed_cmds"; then
5865  ac_sed_cmds=cat
5866fi
5867EOF
5868
5869cat >> $CONFIG_STATUS <<EOF
5870
5871CONFIG_FILES=\${CONFIG_FILES-"gnome-media.spec
5872Makefile
5873po/Makefile.in
5874gmix/Makefile
5875gmix/doc/Makefile
5876gmix/doc/C/Makefile
5877gmix/doc/it/Makefile
5878vu-meter/Makefile
5879macros/Makefile
5880intl/Makefile
5881tcd/Makefile
5882tcd/icons/Makefile
5883tcd/doc/Makefile
5884tcd/doc/C/Makefile
5885cddbslave/Makefile
5886grecord/Makefile
5887grecord/src/Makefile
5888omf-install/Makefile
5889version.h"}
5890EOF
5891cat >> $CONFIG_STATUS <<\EOF
5892for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5893  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5894  case "$ac_file" in
5895  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5896       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5897  *) ac_file_in="${ac_file}.in" ;;
5898  esac
5899
5900  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5901
5902  # Remove last slash and all that follows it.  Not all systems have dirname.
5903  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5904  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5905    # The file is in a subdirectory.
5906    test ! -d "$ac_dir" && mkdir "$ac_dir"
5907    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5908    # A "../" for each directory in $ac_dir_suffix.
5909    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5910  else
5911    ac_dir_suffix= ac_dots=
5912  fi
5913
5914  case "$ac_given_srcdir" in
5915  .)  srcdir=.
5916      if test -z "$ac_dots"; then top_srcdir=.
5917      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5918  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5919  *) # Relative path.
5920    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5921    top_srcdir="$ac_dots$ac_given_srcdir" ;;
5922  esac
5923
5924  case "$ac_given_INSTALL" in
5925  [/$]*) INSTALL="$ac_given_INSTALL" ;;
5926  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5927  esac
5928
5929  echo creating "$ac_file"
5930  rm -f "$ac_file"
5931  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5932  case "$ac_file" in
5933  *Makefile*) ac_comsub="1i\\
5934# $configure_input" ;;
5935  *) ac_comsub= ;;
5936  esac
5937
5938  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5939  sed -e "$ac_comsub
5940s%@configure_input@%$configure_input%g
5941s%@srcdir@%$srcdir%g
5942s%@top_srcdir@%$top_srcdir%g
5943s%@INSTALL@%$INSTALL%g
5944" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5945fi; done
5946rm -f conftest.s*
5947
5948# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5949# NAME is the cpp macro being defined and VALUE is the value it is being given.
5950#
5951# ac_d sets the value in "#define NAME VALUE" lines.
5952ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
5953ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
5954ac_dC='\3'
5955ac_dD='%g'
5956# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5957ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5958ac_uB='\([      ]\)%\1#\2define\3'
5959ac_uC=' '
5960ac_uD='\4%g'
5961# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5962ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
5963ac_eB='$%\1#\2define\3'
5964ac_eC=' '
5965ac_eD='%g'
5966
5967if test "${CONFIG_HEADERS+set}" != set; then
5968EOF
5969cat >> $CONFIG_STATUS <<EOF
5970  CONFIG_HEADERS="config.h"
5971EOF
5972cat >> $CONFIG_STATUS <<\EOF
5973fi
5974for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5975  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5976  case "$ac_file" in
5977  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5978       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5979  *) ac_file_in="${ac_file}.in" ;;
5980  esac
5981
5982  echo creating $ac_file
5983
5984  rm -f conftest.frag conftest.in conftest.out
5985  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5986  cat $ac_file_inputs > conftest.in
5987
5988EOF
5989
5990# Transform confdefs.h into a sed script conftest.vals that substitutes
5991# the proper values into config.h.in to produce config.h.  And first:
5992# Protect against being on the right side of a sed subst in config.status.
5993# Protect against being in an unquoted here document in config.status.
5994rm -f conftest.vals
5995cat > conftest.hdr <<\EOF
5996s/[\\&%]/\\&/g
5997s%[\\$`]%\\&%g
5998s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5999s%ac_d%ac_u%gp
6000s%ac_u%ac_e%gp
6001EOF
6002sed -n -f conftest.hdr confdefs.h > conftest.vals
6003rm -f conftest.hdr
6004
6005# This sed command replaces #undef with comments.  This is necessary, for
6006# example, in the case of _POSIX_SOURCE, which is predefined and required
6007# on some systems where configure will not decide to define it.
6008cat >> conftest.vals <<\EOF
6009s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6010EOF
6011
6012# Break up conftest.vals because some shells have a limit on
6013# the size of here documents, and old seds have small limits too.
6014
6015rm -f conftest.tail
6016while :
6017do
6018  ac_lines=`grep -c . conftest.vals`
6019  # grep -c gives empty output for an empty file on some AIX systems.
6020  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6021  # Write a limited-size here document to conftest.frag.
6022  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6023  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6024  echo 'CEOF
6025  sed -f conftest.frag conftest.in > conftest.out
6026  rm -f conftest.in
6027  mv conftest.out conftest.in
6028' >> $CONFIG_STATUS
6029  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6030  rm -f conftest.vals
6031  mv conftest.tail conftest.vals
6032done
6033rm -f conftest.vals
6034
6035cat >> $CONFIG_STATUS <<\EOF
6036  rm -f conftest.frag conftest.h
6037  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
6038  cat conftest.in >> conftest.h
6039  rm -f conftest.in
6040  if cmp -s $ac_file conftest.h 2>/dev/null; then
6041    echo "$ac_file is unchanged"
6042    rm -f conftest.h
6043  else
6044    # Remove last slash and all that follows it.  Not all systems have dirname.
6045      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6046      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6047      # The file is in a subdirectory.
6048      test ! -d "$ac_dir" && mkdir "$ac_dir"
6049    fi
6050    rm -f $ac_file
6051    mv conftest.h $ac_file
6052  fi
6053fi; done
6054
6055EOF
6056
6057cat >> $CONFIG_STATUS <<EOF
6058ac_sources="$nls_cv_header_libgt"
6059ac_dests="$nls_cv_header_intl"
6060EOF
6061
6062cat >> $CONFIG_STATUS <<\EOF
6063srcdir=$ac_given_srcdir
6064while test -n "$ac_sources"; do
6065  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6066  set $ac_sources; ac_source=$1; shift; ac_sources=$*
6067
6068  echo "linking $srcdir/$ac_source to $ac_dest"
6069
6070  if test ! -r $srcdir/$ac_source; then
6071    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6072  fi
6073  rm -f $ac_dest
6074
6075  # Make relative symlinks.
6076  # Remove last slash and all that follows it.  Not all systems have dirname.
6077  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6078  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6079    # The dest file is in a subdirectory.
6080    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6081    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6082    # A "../" for each directory in $ac_dest_dir_suffix.
6083    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6084  else
6085    ac_dest_dir_suffix= ac_dots=
6086  fi
6087
6088  case "$srcdir" in
6089  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6090  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6091  esac
6092
6093  # Make a symlink if possible; otherwise try a hard link.
6094  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6095    ln $srcdir/$ac_source $ac_dest; then :
6096  else
6097    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6098  fi
6099done
6100EOF
6101cat >> $CONFIG_STATUS <<EOF
6102
6103XML_I18N_TOOLS_PERL=${XML_I18N_TOOLS_PERL}
6104
6105
6106EOF
6107cat >> $CONFIG_STATUS <<\EOF
6108test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6109
6110sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-extract.in > xml-i18n-extract;
6111chmod ugo+x xml-i18n-extract;
6112chmod u+w xml-i18n-extract;
6113
6114sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-merge.in > xml-i18n-merge;
6115chmod ugo+x xml-i18n-merge;
6116chmod u+w xml-i18n-merge;
6117
6118sed -e "s:@XML_I18N_TOOLS_PERL@:${XML_I18N_TOOLS_PERL}:;" < ${ac_given_srcdir}/xml-i18n-update.in > xml-i18n-update;
6119chmod ugo+x xml-i18n-update;
6120chmod u+w xml-i18n-update;
6121
6122case "$CONFIG_FILES" in *po/Makefile.in*)
6123        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
6124      esac
6125
6126exit 0
6127EOF
6128chmod +x $CONFIG_STATUS
6129rm -fr confdefs* $ac_clean_files
6130test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6131
Note: See TracBrowser for help on using the repository browser.