source: trunk/third/scrollkeeper/configure @ 16068

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