chiark / gitweb /
@@ -3,6 +3,10 @@
[userv.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
15 ac_help="$ac_help
16   --enable-debug          build debugging version"
17
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
21 build=NONE
22 cache_file=./config.cache
23 exec_prefix=NONE
24 host=NONE
25 no_create=
26 nonopt=NONE
27 no_recursion=
28 prefix=NONE
29 program_prefix=NONE
30 program_suffix=NONE
31 program_transform_name=s,x,x,
32 silent=
33 site=
34 srcdir=
35 target=NONE
36 verbose=
37 x_includes=NONE
38 x_libraries=NONE
39 bindir='${exec_prefix}/bin'
40 sbindir='${exec_prefix}/sbin'
41 libexecdir='${exec_prefix}/libexec'
42 datadir='${prefix}/share'
43 sysconfdir='${prefix}/etc'
44 sharedstatedir='${prefix}/com'
45 localstatedir='${prefix}/var'
46 libdir='${exec_prefix}/lib'
47 includedir='${prefix}/include'
48 oldincludedir='/usr/include'
49 infodir='${prefix}/info'
50 mandir='${prefix}/man'
51
52 # Initialize some other variables.
53 subdirs=
54 MFLAGS= MAKEFLAGS=
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
57
58 ac_prev=
59 for ac_option
60 do
61
62   # If the previous option needs an argument, assign it.
63   if test -n "$ac_prev"; then
64     eval "$ac_prev=\$ac_option"
65     ac_prev=
66     continue
67   fi
68
69   case "$ac_option" in
70   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71   *) ac_optarg= ;;
72   esac
73
74   # Accept the important Cygnus configure options, so we can diagnose typos.
75
76   case "$ac_option" in
77
78   -bindir | --bindir | --bindi | --bind | --bin | --bi)
79     ac_prev=bindir ;;
80   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81     bindir="$ac_optarg" ;;
82
83   -build | --build | --buil | --bui | --bu)
84     ac_prev=build ;;
85   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86     build="$ac_optarg" ;;
87
88   -cache-file | --cache-file | --cache-fil | --cache-fi \
89   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90     ac_prev=cache_file ;;
91   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93     cache_file="$ac_optarg" ;;
94
95   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96     ac_prev=datadir ;;
97   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98   | --da=*)
99     datadir="$ac_optarg" ;;
100
101   -disable-* | --disable-*)
102     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103     # Reject names that are not valid shell variable names.
104     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106     fi
107     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108     eval "enable_${ac_feature}=no" ;;
109
110   -enable-* | --enable-*)
111     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112     # Reject names that are not valid shell variable names.
113     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115     fi
116     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117     case "$ac_option" in
118       *=*) ;;
119       *) ac_optarg=yes ;;
120     esac
121     eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125   | --exec | --exe | --ex)
126     ac_prev=exec_prefix ;;
127   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129   | --exec=* | --exe=* | --ex=*)
130     exec_prefix="$ac_optarg" ;;
131
132   -gas | --gas | --ga | --g)
133     # Obsolete; use --with-gas.
134     with_gas=yes ;;
135
136   -help | --help | --hel | --he)
137     # Omit some internal or obsolete options to make the list less imposing.
138     # This message is too long to be a string in the A/UX 3.1 sh.
139     cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143   --cache-file=FILE       cache test results in FILE
144   --help                  print this message
145   --no-create             do not create output files
146   --quiet, --silent       do not print \`checking...' messages
147   --version               print the version of autoconf that created configure
148 Directory and file names:
149   --prefix=PREFIX         install architecture-independent files in PREFIX
150                           [$ac_default_prefix]
151   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
152                           [same as prefix]
153   --bindir=DIR            user executables in DIR [EPREFIX/bin]
154   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
155   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
156   --datadir=DIR           read-only architecture-independent data in DIR
157                           [PREFIX/share]
158   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
159   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
160                           [PREFIX/com]
161   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
162   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
163   --includedir=DIR        C header files in DIR [PREFIX/include]
164   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
165   --infodir=DIR           info documentation in DIR [PREFIX/info]
166   --mandir=DIR            man documentation in DIR [PREFIX/man]
167   --srcdir=DIR            find the sources in DIR [configure dir or ..]
168   --program-prefix=PREFIX prepend PREFIX to installed program names
169   --program-suffix=SUFFIX append SUFFIX to installed program names
170   --program-transform-name=PROGRAM
171                           run sed PROGRAM on installed program names
172 EOF
173     cat << EOF
174 Host type:
175   --build=BUILD           configure for building on BUILD [BUILD=HOST]
176   --host=HOST             configure for HOST [guessed]
177   --target=TARGET         configure for TARGET [TARGET=HOST]
178 Features and packages:
179   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
180   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
181   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
182   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
183   --x-includes=DIR        X include files are in DIR
184   --x-libraries=DIR       X library files are in DIR
185 EOF
186     if test -n "$ac_help"; then
187       echo "--enable and --with options recognized:$ac_help"
188     fi
189     exit 0 ;;
190
191   -host | --host | --hos | --ho)
192     ac_prev=host ;;
193   -host=* | --host=* | --hos=* | --ho=*)
194     host="$ac_optarg" ;;
195
196   -includedir | --includedir | --includedi | --included | --include \
197   | --includ | --inclu | --incl | --inc)
198     ac_prev=includedir ;;
199   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200   | --includ=* | --inclu=* | --incl=* | --inc=*)
201     includedir="$ac_optarg" ;;
202
203   -infodir | --infodir | --infodi | --infod | --info | --inf)
204     ac_prev=infodir ;;
205   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206     infodir="$ac_optarg" ;;
207
208   -libdir | --libdir | --libdi | --libd)
209     ac_prev=libdir ;;
210   -libdir=* | --libdir=* | --libdi=* | --libd=*)
211     libdir="$ac_optarg" ;;
212
213   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214   | --libexe | --libex | --libe)
215     ac_prev=libexecdir ;;
216   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217   | --libexe=* | --libex=* | --libe=*)
218     libexecdir="$ac_optarg" ;;
219
220   -localstatedir | --localstatedir | --localstatedi | --localstated \
221   | --localstate | --localstat | --localsta | --localst \
222   | --locals | --local | --loca | --loc | --lo)
223     ac_prev=localstatedir ;;
224   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227     localstatedir="$ac_optarg" ;;
228
229   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230     ac_prev=mandir ;;
231   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232     mandir="$ac_optarg" ;;
233
234   -nfp | --nfp | --nf)
235     # Obsolete; use --without-fp.
236     with_fp=no ;;
237
238   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239   | --no-cr | --no-c)
240     no_create=yes ;;
241
242   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244     no_recursion=yes ;;
245
246   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248   | --oldin | --oldi | --old | --ol | --o)
249     ac_prev=oldincludedir ;;
250   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253     oldincludedir="$ac_optarg" ;;
254
255   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256     ac_prev=prefix ;;
257   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258     prefix="$ac_optarg" ;;
259
260   -program-prefix | --program-prefix | --program-prefi | --program-pref \
261   | --program-pre | --program-pr | --program-p)
262     ac_prev=program_prefix ;;
263   -program-prefix=* | --program-prefix=* | --program-prefi=* \
264   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265     program_prefix="$ac_optarg" ;;
266
267   -program-suffix | --program-suffix | --program-suffi | --program-suff \
268   | --program-suf | --program-su | --program-s)
269     ac_prev=program_suffix ;;
270   -program-suffix=* | --program-suffix=* | --program-suffi=* \
271   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272     program_suffix="$ac_optarg" ;;
273
274   -program-transform-name | --program-transform-name \
275   | --program-transform-nam | --program-transform-na \
276   | --program-transform-n | --program-transform- \
277   | --program-transform | --program-transfor \
278   | --program-transfo | --program-transf \
279   | --program-trans | --program-tran \
280   | --progr-tra | --program-tr | --program-t)
281     ac_prev=program_transform_name ;;
282   -program-transform-name=* | --program-transform-name=* \
283   | --program-transform-nam=* | --program-transform-na=* \
284   | --program-transform-n=* | --program-transform-=* \
285   | --program-transform=* | --program-transfor=* \
286   | --program-transfo=* | --program-transf=* \
287   | --program-trans=* | --program-tran=* \
288   | --progr-tra=* | --program-tr=* | --program-t=*)
289     program_transform_name="$ac_optarg" ;;
290
291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292   | -silent | --silent | --silen | --sile | --sil)
293     silent=yes ;;
294
295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296     ac_prev=sbindir ;;
297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298   | --sbi=* | --sb=*)
299     sbindir="$ac_optarg" ;;
300
301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303   | --sharedst | --shareds | --shared | --share | --shar \
304   | --sha | --sh)
305     ac_prev=sharedstatedir ;;
306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309   | --sha=* | --sh=*)
310     sharedstatedir="$ac_optarg" ;;
311
312   -site | --site | --sit)
313     ac_prev=site ;;
314   -site=* | --site=* | --sit=*)
315     site="$ac_optarg" ;;
316
317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318     ac_prev=srcdir ;;
319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320     srcdir="$ac_optarg" ;;
321
322   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323   | --syscon | --sysco | --sysc | --sys | --sy)
324     ac_prev=sysconfdir ;;
325   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327     sysconfdir="$ac_optarg" ;;
328
329   -target | --target | --targe | --targ | --tar | --ta | --t)
330     ac_prev=target ;;
331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332     target="$ac_optarg" ;;
333
334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
335     verbose=yes ;;
336
337   -version | --version | --versio | --versi | --vers)
338     echo "configure generated by autoconf version 2.12"
339     exit 0 ;;
340
341   -with-* | --with-*)
342     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343     # Reject names that are not valid shell variable names.
344     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346     fi
347     ac_package=`echo $ac_package| sed 's/-/_/g'`
348     case "$ac_option" in
349       *=*) ;;
350       *) ac_optarg=yes ;;
351     esac
352     eval "with_${ac_package}='$ac_optarg'" ;;
353
354   -without-* | --without-*)
355     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356     # Reject names that are not valid shell variable names.
357     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359     fi
360     ac_package=`echo $ac_package| sed 's/-/_/g'`
361     eval "with_${ac_package}=no" ;;
362
363   --x)
364     # Obsolete; use --with-x.
365     with_x=yes ;;
366
367   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368   | --x-incl | --x-inc | --x-in | --x-i)
369     ac_prev=x_includes ;;
370   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372     x_includes="$ac_optarg" ;;
373
374   -x-libraries | --x-libraries | --x-librarie | --x-librari \
375   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376     ac_prev=x_libraries ;;
377   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379     x_libraries="$ac_optarg" ;;
380
381   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382     ;;
383
384   *)
385     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386       echo "configure: warning: $ac_option: invalid host type" 1>&2
387     fi
388     if test "x$nonopt" != xNONE; then
389       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390     fi
391     nonopt="$ac_option"
392     ;;
393
394   esac
395 done
396
397 if test -n "$ac_prev"; then
398   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 fi
400
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412   exec 6>/dev/null
413 else
414   exec 6>&1
415 fi
416 exec 5>./config.log
417
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
422
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
427 do
428   case "$ac_arg" in
429   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430   | --no-cr | --no-c) ;;
431   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436   esac
437 done
438
439 # NLS nuisances.
440 # Only set these to C if already set.  These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
448
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
453
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=language.i4
457
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460   ac_srcdir_defaulted=yes
461   # Try the directory containing this script, then its parent.
462   ac_prog=$0
463   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465   srcdir=$ac_confdir
466   if test ! -r $srcdir/$ac_unique_file; then
467     srcdir=..
468   fi
469 else
470   ac_srcdir_defaulted=no
471 fi
472 if test ! -r $srcdir/$ac_unique_file; then
473   if test "$ac_srcdir_defaulted" = yes; then
474     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475   else
476     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477   fi
478 fi
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483   if test "x$prefix" != xNONE; then
484     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485   else
486     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487   fi
488 fi
489 for ac_site_file in $CONFIG_SITE; do
490   if test -r "$ac_site_file"; then
491     echo "loading site script $ac_site_file"
492     . "$ac_site_file"
493   fi
494 done
495
496 if test -r "$cache_file"; then
497   echo "loading cache $cache_file"
498   . $cache_file
499 else
500   echo "creating cache $cache_file"
501   > $cache_file
502 fi
503
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
510
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514     ac_n= ac_c='
515 ' ac_t='        '
516   else
517     ac_n=-n ac_c= ac_t=
518   fi
519 else
520   ac_n= ac_c='\c' ac_t=
521 fi
522
523
524
525
526
527
528 crdir="`pwd`"
529
530
531 DEBUGDEFS=''
532 DEBUGLIBS=''
533 # Check whether --enable-debug or --disable-debug was given.
534 if test "${enable_debug+set}" = set; then
535   enableval="$enable_debug"
536   
537  if test "x$enable_debug" = xyes; then
538   DEBUGDEFS="-DDEBUG -DVARDIR='\"$crdir/vd\"' -DSYSTEMCONFIGDIR='\"$crdir/slash-etc\"' -DSERVICEUSERDIR='\"$crdir/tilde\"'"
539   DEBUGLIBS=-lefence
540   echo will build debugging version
541  elif test "x$enable_debug" != xno; then
542   { echo "configure: error: --enable-debug does not allow any arguments except 'yes' and 'no'" 1>&2; exit 1; }
543  fi
544
545 fi
546
547
548 # Extract the first word of "gcc", so it can be a program name with args.
549 set dummy gcc; ac_word=$2
550 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
551 echo "configure:552: checking for $ac_word" >&5
552 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
553   echo $ac_n "(cached) $ac_c" 1>&6
554 else
555   if test -n "$CC"; then
556   ac_cv_prog_CC="$CC" # Let the user override the test.
557 else
558   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
559   for ac_dir in $PATH; do
560     test -z "$ac_dir" && ac_dir=.
561     if test -f $ac_dir/$ac_word; then
562       ac_cv_prog_CC="gcc"
563       break
564     fi
565   done
566   IFS="$ac_save_ifs"
567 fi
568 fi
569 CC="$ac_cv_prog_CC"
570 if test -n "$CC"; then
571   echo "$ac_t""$CC" 1>&6
572 else
573   echo "$ac_t""no" 1>&6
574 fi
575
576 if test -z "$CC"; then
577   # Extract the first word of "cc", so it can be a program name with args.
578 set dummy cc; ac_word=$2
579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
580 echo "configure:581: checking for $ac_word" >&5
581 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
582   echo $ac_n "(cached) $ac_c" 1>&6
583 else
584   if test -n "$CC"; then
585   ac_cv_prog_CC="$CC" # Let the user override the test.
586 else
587   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
588   ac_prog_rejected=no
589   for ac_dir in $PATH; do
590     test -z "$ac_dir" && ac_dir=.
591     if test -f $ac_dir/$ac_word; then
592       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
593         ac_prog_rejected=yes
594         continue
595       fi
596       ac_cv_prog_CC="cc"
597       break
598     fi
599   done
600   IFS="$ac_save_ifs"
601 if test $ac_prog_rejected = yes; then
602   # We found a bogon in the path, so make sure we never use it.
603   set dummy $ac_cv_prog_CC
604   shift
605   if test $# -gt 0; then
606     # We chose a different compiler from the bogus one.
607     # However, it has the same basename, so the bogon will be chosen
608     # first if we set CC to just the basename; use the full file name.
609     shift
610     set dummy "$ac_dir/$ac_word" "$@"
611     shift
612     ac_cv_prog_CC="$@"
613   fi
614 fi
615 fi
616 fi
617 CC="$ac_cv_prog_CC"
618 if test -n "$CC"; then
619   echo "$ac_t""$CC" 1>&6
620 else
621   echo "$ac_t""no" 1>&6
622 fi
623
624   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
625 fi
626
627 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
628 echo "configure:629: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
629
630 ac_ext=c
631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
632 ac_cpp='$CPP $CPPFLAGS'
633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
634 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
635 cross_compiling=$ac_cv_prog_cc_cross
636
637 cat > conftest.$ac_ext <<EOF
638 #line 639 "configure"
639 #include "confdefs.h"
640 main(){return(0);}
641 EOF
642 if { (eval echo configure:643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
643   ac_cv_prog_cc_works=yes
644   # If we can't run a trivial program, we are probably using a cross compiler.
645   if (./conftest; exit) 2>/dev/null; then
646     ac_cv_prog_cc_cross=no
647   else
648     ac_cv_prog_cc_cross=yes
649   fi
650 else
651   echo "configure: failed program was:" >&5
652   cat conftest.$ac_ext >&5
653   ac_cv_prog_cc_works=no
654 fi
655 rm -fr conftest*
656
657 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
658 if test $ac_cv_prog_cc_works = no; then
659   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
660 fi
661 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
662 echo "configure:663: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
663 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
664 cross_compiling=$ac_cv_prog_cc_cross
665
666 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
667 echo "configure:668: checking whether we are using GNU C" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
669   echo $ac_n "(cached) $ac_c" 1>&6
670 else
671   cat > conftest.c <<EOF
672 #ifdef __GNUC__
673   yes;
674 #endif
675 EOF
676 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
677   ac_cv_prog_gcc=yes
678 else
679   ac_cv_prog_gcc=no
680 fi
681 fi
682
683 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
684
685 if test $ac_cv_prog_gcc = yes; then
686   GCC=yes
687   ac_test_CFLAGS="${CFLAGS+set}"
688   ac_save_CFLAGS="$CFLAGS"
689   CFLAGS=
690   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
691 echo "configure:692: checking whether ${CC-cc} accepts -g" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
693   echo $ac_n "(cached) $ac_c" 1>&6
694 else
695   echo 'void f(){}' > conftest.c
696 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
697   ac_cv_prog_cc_g=yes
698 else
699   ac_cv_prog_cc_g=no
700 fi
701 rm -f conftest*
702
703 fi
704
705 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
706   if test "$ac_test_CFLAGS" = set; then
707     CFLAGS="$ac_save_CFLAGS"
708   elif test $ac_cv_prog_cc_g = yes; then
709     CFLAGS="-g -O2"
710   else
711     CFLAGS="-O2"
712   fi
713 else
714   GCC=
715   test "${CFLAGS+set}" = set || CFLAGS="-g"
716 fi
717
718 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
719 echo "configure:720: checking how to run the C preprocessor" >&5
720 # On Suns, sometimes $CPP names a directory.
721 if test -n "$CPP" && test -d "$CPP"; then
722   CPP=
723 fi
724 if test -z "$CPP"; then
725 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
726   echo $ac_n "(cached) $ac_c" 1>&6
727 else
728     # This must be in double quotes, not single quotes, because CPP may get
729   # substituted into the Makefile and "${CC-cc}" will confuse make.
730   CPP="${CC-cc} -E"
731   # On the NeXT, cc -E runs the code through the compiler's parser,
732   # not just through cpp.
733   cat > conftest.$ac_ext <<EOF
734 #line 735 "configure"
735 #include "confdefs.h"
736 #include <assert.h>
737 Syntax Error
738 EOF
739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
740 { (eval echo configure:741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
741 ac_err=`grep -v '^ *+' conftest.out`
742 if test -z "$ac_err"; then
743   :
744 else
745   echo "$ac_err" >&5
746   echo "configure: failed program was:" >&5
747   cat conftest.$ac_ext >&5
748   rm -rf conftest*
749   CPP="${CC-cc} -E -traditional-cpp"
750   cat > conftest.$ac_ext <<EOF
751 #line 752 "configure"
752 #include "confdefs.h"
753 #include <assert.h>
754 Syntax Error
755 EOF
756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
757 { (eval echo configure:758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
758 ac_err=`grep -v '^ *+' conftest.out`
759 if test -z "$ac_err"; then
760   :
761 else
762   echo "$ac_err" >&5
763   echo "configure: failed program was:" >&5
764   cat conftest.$ac_ext >&5
765   rm -rf conftest*
766   CPP=/lib/cpp
767 fi
768 rm -f conftest*
769 fi
770 rm -f conftest*
771   ac_cv_prog_CPP="$CPP"
772 fi
773   CPP="$ac_cv_prog_CPP"
774 else
775   ac_cv_prog_CPP="$CPP"
776 fi
777 echo "$ac_t""$CPP" 1>&6
778
779 ac_aux_dir=
780 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
781   if test -f $ac_dir/install-sh; then
782     ac_aux_dir=$ac_dir
783     ac_install_sh="$ac_aux_dir/install-sh -c"
784     break
785   elif test -f $ac_dir/install.sh; then
786     ac_aux_dir=$ac_dir
787     ac_install_sh="$ac_aux_dir/install.sh -c"
788     break
789   fi
790 done
791 if test -z "$ac_aux_dir"; then
792   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
793 fi
794 ac_config_guess=$ac_aux_dir/config.guess
795 ac_config_sub=$ac_aux_dir/config.sub
796 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
797
798 # Find a good install program.  We prefer a C program (faster),
799 # so one script is as good as another.  But avoid the broken or
800 # incompatible versions:
801 # SysV /etc/install, /usr/sbin/install
802 # SunOS /usr/etc/install
803 # IRIX /sbin/install
804 # AIX /bin/install
805 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
806 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
807 # ./install, which can be erroneously created by make from ./install.sh.
808 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
809 echo "configure:810: checking for a BSD compatible install" >&5
810 if test -z "$INSTALL"; then
811 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
812   echo $ac_n "(cached) $ac_c" 1>&6
813 else
814     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
815   for ac_dir in $PATH; do
816     # Account for people who put trailing slashes in PATH elements.
817     case "$ac_dir/" in
818     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
819     *)
820       # OSF1 and SCO ODT 3.0 have their own names for install.
821       for ac_prog in ginstall installbsd scoinst install; do
822         if test -f $ac_dir/$ac_prog; then
823           if test $ac_prog = install &&
824             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
825             # AIX install.  It has an incompatible calling convention.
826             # OSF/1 installbsd also uses dspmsg, but is usable.
827             :
828           else
829             ac_cv_path_install="$ac_dir/$ac_prog -c"
830             break 2
831           fi
832         fi
833       done
834       ;;
835     esac
836   done
837   IFS="$ac_save_IFS"
838
839 fi
840   if test "${ac_cv_path_install+set}" = set; then
841     INSTALL="$ac_cv_path_install"
842   else
843     # As a last resort, use the slow shell script.  We don't cache a
844     # path for INSTALL within a source directory, because that will
845     # break other packages using the cache if that directory is
846     # removed, or if the path is relative.
847     INSTALL="$ac_install_sh"
848   fi
849 fi
850 echo "$ac_t""$INSTALL" 1>&6
851
852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
853 # It thinks the first close brace ends the variable substitution.
854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
855
856 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
857
858 for ac_prog in md5sum md5
859 do
860 # Extract the first word of "$ac_prog", so it can be a program name with args.
861 set dummy $ac_prog; ac_word=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_MD5SUM_SIMPLE'+set}'`\" = set"; then
865   echo $ac_n "(cached) $ac_c" 1>&6
866 else
867   if test -n "$MD5SUM_SIMPLE"; then
868   ac_cv_prog_MD5SUM_SIMPLE="$MD5SUM_SIMPLE" # Let the user override the test.
869 else
870   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
871   for ac_dir in $PATH; do
872     test -z "$ac_dir" && ac_dir=.
873     if test -f $ac_dir/$ac_word; then
874       ac_cv_prog_MD5SUM_SIMPLE="$ac_prog"
875       break
876     fi
877   done
878   IFS="$ac_save_ifs"
879 fi
880 fi
881 MD5SUM_SIMPLE="$ac_cv_prog_MD5SUM_SIMPLE"
882 if test -n "$MD5SUM_SIMPLE"; then
883   echo "$ac_t""$MD5SUM_SIMPLE" 1>&6
884 else
885   echo "$ac_t""no" 1>&6
886 fi
887
888 test -n "$MD5SUM_SIMPLE" && break
889 done
890
891
892 CFLAGS="$CFLAGS -D_GNU_SOURCE"
893
894 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
895 echo "configure:896: checking for socket in -lsocket" >&5
896 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
898   echo $ac_n "(cached) $ac_c" 1>&6
899 else
900   ac_save_LIBS="$LIBS"
901 LIBS="-lsocket  $LIBS"
902 cat > conftest.$ac_ext <<EOF
903 #line 904 "configure"
904 #include "confdefs.h"
905 /* Override any gcc2 internal prototype to avoid an error.  */
906 /* We use char because int might match the return type of a gcc2
907     builtin and then its argument prototype would still apply.  */
908 char socket();
909
910 int main() {
911 socket()
912 ; return 0; }
913 EOF
914 if { (eval echo configure:915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
915   rm -rf conftest*
916   eval "ac_cv_lib_$ac_lib_var=yes"
917 else
918   echo "configure: failed program was:" >&5
919   cat conftest.$ac_ext >&5
920   rm -rf conftest*
921   eval "ac_cv_lib_$ac_lib_var=no"
922 fi
923 rm -f conftest*
924 LIBS="$ac_save_LIBS"
925
926 fi
927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
928   echo "$ac_t""yes" 1>&6
929     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
930     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
931   cat >> confdefs.h <<EOF
932 #define $ac_tr_lib 1
933 EOF
934
935   LIBS="-lsocket $LIBS"
936
937 else
938   echo "$ac_t""no" 1>&6
939 fi
940
941 for ac_func in setenv
942 do
943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_func" >&5
945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
946   echo $ac_n "(cached) $ac_c" 1>&6
947 else
948   cat > conftest.$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
951 /* System header to define __stub macros and hopefully few prototypes,
952     which can conflict with char $ac_func(); below.  */
953 #include <assert.h>
954 /* Override any gcc2 internal prototype to avoid an error.  */
955 /* We use char because int might match the return type of a gcc2
956     builtin and then its argument prototype would still apply.  */
957 char $ac_func();
958
959 int main() {
960
961 /* The GNU C library defines this for functions which it implements
962     to always fail with ENOSYS.  Some functions are actually named
963     something starting with __ and the normal name is an alias.  */
964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
965 choke me
966 #else
967 $ac_func();
968 #endif
969
970 ; return 0; }
971 EOF
972 if { (eval echo configure:973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
973   rm -rf conftest*
974   eval "ac_cv_func_$ac_func=yes"
975 else
976   echo "configure: failed program was:" >&5
977   cat conftest.$ac_ext >&5
978   rm -rf conftest*
979   eval "ac_cv_func_$ac_func=no"
980 fi
981 rm -f conftest*
982 fi
983
984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
985   echo "$ac_t""yes" 1>&6
986     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
987   cat >> confdefs.h <<EOF
988 #define $ac_tr_func 1
989 EOF
990  
991 else
992   echo "$ac_t""no" 1>&6
993 fi
994 done
995
996
997 echo $ac_n "checking for EPROTO""... $ac_c" 1>&6
998 echo "configure:999: checking for EPROTO" >&5
999 if eval "test \"`echo '$''{'userv_cv_hdr_eproto'+set}'`\" = set"; then
1000   echo $ac_n "(cached) $ac_c" 1>&6
1001 else
1002   cat > conftest.$ac_ext <<EOF
1003 #line 1004 "configure"
1004 #include "confdefs.h"
1005
1006 #include <errno.h>
1007 #ifdef EPROTO
1008  yes
1009 #endif
1010
1011 EOF
1012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1013   egrep "yes" >/dev/null 2>&1; then
1014   rm -rf conftest*
1015   userv_cv_hdr_eproto=yes
1016 else
1017   rm -rf conftest*
1018   userv_cv_hdr_eproto=no
1019 fi
1020 rm -f conftest*
1021
1022 fi
1023
1024 echo "$ac_t""$userv_cv_hdr_eproto" 1>&6
1025 if test $userv_cv_hdr_eproto = yes
1026 then
1027         cat >> confdefs.h <<\EOF
1028 #define HAVE_EPROTO 1
1029 EOF
1030
1031 fi
1032
1033 echo $ac_n "checking for LOG_AUTHPRIV""... $ac_c" 1>&6
1034 echo "configure:1035: checking for LOG_AUTHPRIV" >&5
1035 if eval "test \"`echo '$''{'userv_cv_hdr_logauthpriv'+set}'`\" = set"; then
1036   echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038   cat > conftest.$ac_ext <<EOF
1039 #line 1040 "configure"
1040 #include "confdefs.h"
1041
1042 #include <syslog.h>
1043 #ifdef LOG_AUTHPRIV
1044  yes
1045 #endif
1046
1047 EOF
1048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1049   egrep "yes" >/dev/null 2>&1; then
1050   rm -rf conftest*
1051   userv_cv_hdr_logauthpriv=yes
1052 else
1053   rm -rf conftest*
1054   userv_cv_hdr_logauthpriv=no
1055 fi
1056 rm -f conftest*
1057
1058 fi
1059
1060 echo "$ac_t""$userv_cv_hdr_logauthpriv" 1>&6
1061 if test $userv_cv_hdr_logauthpriv = yes
1062 then
1063         cat >> confdefs.h <<\EOF
1064 #define HAVE_LOG_AUTHPRIV 1
1065 EOF
1066
1067 fi
1068
1069
1070 if test "${GCC-no}" = yes; then
1071  OPTIMISE=-O2
1072 else
1073  OPTIMISE=-O
1074 fi
1075
1076
1077
1078
1079  echo $ac_n "checking your C compiler""... $ac_c" 1>&6
1080 echo "configure:1081: checking your C compiler" >&5
1081  if eval "test \"`echo '$''{'dpkg_cv_c_works'+set}'`\" = set"; then
1082   echo $ac_n "(cached) $ac_c" 1>&6
1083 else
1084   
1085   cat > conftest.$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1088 #include <string.h>
1089 int main() {
1090 strcmp("a","b")
1091 ; return 0; }
1092 EOF
1093 if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1094   rm -rf conftest*
1095   dpkg_cv_c_works=yes
1096 else
1097   echo "configure: failed program was:" >&5
1098   cat conftest.$ac_ext >&5
1099   rm -rf conftest*
1100   dpkg_cv_c_works=no
1101 fi
1102 rm -f conftest*
1103  
1104 fi
1105
1106  if test "x$dpkg_cv_c_works" = xyes; then
1107   true
1108   echo "$ac_t""works" 1>&6
1109  else
1110   true
1111   echo "$ac_t""broken" 1>&6
1112  { echo "configure: error: C compiler is broken" 1>&2; exit 1; }
1113  fi
1114
1115
1116
1117  echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6
1118 echo "configure:1119: checking __attribute__((,,))" >&5
1119  if eval "test \"`echo '$''{'dpkg_cv_c_attribute_supported'+set}'`\" = set"; then
1120   echo $ac_n "(cached) $ac_c" 1>&6
1121 else
1122   
1123   cat > conftest.$ac_ext <<EOF
1124 #line 1125 "configure"
1125 #include "confdefs.h"
1126
1127 int main() {
1128 extern int testfunction(int x) __attribute__((,,))
1129 ; return 0; }
1130 EOF
1131 if { (eval echo configure:1132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1132   rm -rf conftest*
1133   dpkg_cv_c_attribute_supported=yes
1134 else
1135   echo "configure: failed program was:" >&5
1136   cat conftest.$ac_ext >&5
1137   rm -rf conftest*
1138   dpkg_cv_c_attribute_supported=no
1139 fi
1140 rm -f conftest*
1141  
1142 fi
1143
1144  if test "x$dpkg_cv_c_attribute_supported" = xyes; then
1145   true
1146   echo "$ac_t""yes" 1>&6
1147  cat >> confdefs.h <<\EOF
1148 #define HAVE_GNUC25_ATTRIB 1
1149 EOF
1150
1151   
1152  echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6
1153 echo "configure:1154: checking __attribute__((noreturn))" >&5
1154  if eval "test \"`echo '$''{'dpkg_cv_c_attribute_noreturn'+set}'`\" = set"; then
1155   echo $ac_n "(cached) $ac_c" 1>&6
1156 else
1157   
1158   cat > conftest.$ac_ext <<EOF
1159 #line 1160 "configure"
1160 #include "confdefs.h"
1161
1162 int main() {
1163 extern int testfunction(int x) __attribute__((noreturn))
1164 ; return 0; }
1165 EOF
1166 if { (eval echo configure:1167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1167   rm -rf conftest*
1168   dpkg_cv_c_attribute_noreturn=yes
1169 else
1170   echo "configure: failed program was:" >&5
1171   cat conftest.$ac_ext >&5
1172   rm -rf conftest*
1173   dpkg_cv_c_attribute_noreturn=no
1174 fi
1175 rm -f conftest*
1176  
1177 fi
1178
1179  if test "x$dpkg_cv_c_attribute_noreturn" = xyes; then
1180   true
1181   echo "$ac_t""yes" 1>&6
1182    cat >> confdefs.h <<\EOF
1183 #define HAVE_GNUC25_NORETURN 1
1184 EOF
1185
1186  else
1187   true
1188   echo "$ac_t""no" 1>&6
1189  fi
1190
1191   
1192  echo $ac_n "checking __attribute__((unused))""... $ac_c" 1>&6
1193 echo "configure:1194: checking __attribute__((unused))" >&5
1194  if eval "test \"`echo '$''{'dpkg_cv_c_attribute_unused'+set}'`\" = set"; then
1195   echo $ac_n "(cached) $ac_c" 1>&6
1196 else
1197   
1198   cat > conftest.$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1201
1202 int main() {
1203 extern int testfunction(int x) __attribute__((unused))
1204 ; return 0; }
1205 EOF
1206 if { (eval echo configure:1207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1207   rm -rf conftest*
1208   dpkg_cv_c_attribute_unused=yes
1209 else
1210   echo "configure: failed program was:" >&5
1211   cat conftest.$ac_ext >&5
1212   rm -rf conftest*
1213   dpkg_cv_c_attribute_unused=no
1214 fi
1215 rm -f conftest*
1216  
1217 fi
1218
1219  if test "x$dpkg_cv_c_attribute_unused" = xyes; then
1220   true
1221   echo "$ac_t""yes" 1>&6
1222    cat >> confdefs.h <<\EOF
1223 #define HAVE_GNUC25_UNUSED 1
1224 EOF
1225
1226  else
1227   true
1228   echo "$ac_t""no" 1>&6
1229  fi
1230
1231   
1232  echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6
1233 echo "configure:1234: checking __attribute__((format...))" >&5
1234  if eval "test \"`echo '$''{'dpkg_cv_attribute_format'+set}'`\" = set"; then
1235   echo $ac_n "(cached) $ac_c" 1>&6
1236 else
1237   
1238   cat > conftest.$ac_ext <<EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1241
1242 int main() {
1243 extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))
1244 ; return 0; }
1245 EOF
1246 if { (eval echo configure:1247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1247   rm -rf conftest*
1248   dpkg_cv_attribute_format=yes
1249 else
1250   echo "configure: failed program was:" >&5
1251   cat conftest.$ac_ext >&5
1252   rm -rf conftest*
1253   dpkg_cv_attribute_format=no
1254 fi
1255 rm -f conftest*
1256  
1257 fi
1258
1259  if test "x$dpkg_cv_attribute_format" = xyes; then
1260   true
1261   echo "$ac_t""yes" 1>&6
1262    cat >> confdefs.h <<\EOF
1263 #define HAVE_GNUC25_PRINTFFORMAT 1
1264 EOF
1265
1266  else
1267   true
1268   echo "$ac_t""no" 1>&6
1269  fi
1270
1271  else
1272   true
1273   echo "$ac_t""no" 1>&6
1274  fi
1275
1276
1277
1278 CWARNS=""
1279
1280
1281
1282
1283  echo $ac_n "checking GCC warning flag(s) -Wall -Wno-implicit""... $ac_c" 1>&6
1284 echo "configure:1285: checking GCC warning flag(s) -Wall -Wno-implicit" >&5
1285  if test "${GCC-no}" = yes
1286  then
1287   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_all'+set}'`\" = set"; then
1288   echo $ac_n "(cached) $ac_c" 1>&6
1289 else
1290   
1291    oldcflags="${CFLAGS-}"
1292    CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Wno-implicit -Werror"
1293    cat > conftest.$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1296
1297 #include <string.h>
1298 #include <stdio.h>
1299
1300 int main() {
1301
1302     strcmp("a","b"); fprintf(stdout,"test ok\n");
1303
1304 ; return 0; }
1305 EOF
1306 if { (eval echo configure:1307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1307   rm -rf conftest*
1308   dpkg_cv_c_gcc_warn_all=yes
1309 else
1310   echo "configure: failed program was:" >&5
1311   cat conftest.$ac_ext >&5
1312   rm -rf conftest*
1313   dpkg_cv_c_gcc_warn_all=no
1314 fi
1315 rm -f conftest*
1316    CFLAGS="${oldcflags}"
1317 fi
1318
1319   if test "x$dpkg_cv_c_gcc_warn_all" = xyes; then
1320    CWARNS="${CWARNS} -Wall -Wno-implicit"
1321    echo "$ac_t""ok" 1>&6
1322   else
1323    dpkg_cv_c_gcc_warn_all=''
1324    echo "$ac_t""no" 1>&6
1325   fi
1326  else
1327   echo "$ac_t""no" 1>&6
1328  fi
1329
1330
1331  echo $ac_n "checking GCC warning flag(s) -Wwrite-strings""... $ac_c" 1>&6
1332 echo "configure:1333: checking GCC warning flag(s) -Wwrite-strings" >&5
1333  if test "${GCC-no}" = yes
1334  then
1335   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_writestrings'+set}'`\" = set"; then
1336   echo $ac_n "(cached) $ac_c" 1>&6
1337 else
1338   
1339    oldcflags="${CFLAGS-}"
1340    CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
1341    cat > conftest.$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1344
1345 #include <string.h>
1346 #include <stdio.h>
1347
1348 int main() {
1349
1350     strcmp("a","b"); fprintf(stdout,"test ok\n");
1351
1352 ; return 0; }
1353 EOF
1354 if { (eval echo configure:1355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1355   rm -rf conftest*
1356   dpkg_cv_c_gcc_warn_writestrings=yes
1357 else
1358   echo "configure: failed program was:" >&5
1359   cat conftest.$ac_ext >&5
1360   rm -rf conftest*
1361   dpkg_cv_c_gcc_warn_writestrings=no
1362 fi
1363 rm -f conftest*
1364    CFLAGS="${oldcflags}"
1365 fi
1366
1367   if test "x$dpkg_cv_c_gcc_warn_writestrings" = xyes; then
1368    CWARNS="${CWARNS} -Wwrite-strings"
1369    echo "$ac_t""ok" 1>&6
1370   else
1371    dpkg_cv_c_gcc_warn_writestrings=''
1372    echo "$ac_t""no" 1>&6
1373   fi
1374  else
1375   echo "$ac_t""no" 1>&6
1376  fi
1377
1378
1379  echo $ac_n "checking GCC warning flag(s) -Wpointer-arith""... $ac_c" 1>&6
1380 echo "configure:1381: checking GCC warning flag(s) -Wpointer-arith" >&5
1381  if test "${GCC-no}" = yes
1382  then
1383   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_pointerarith'+set}'`\" = set"; then
1384   echo $ac_n "(cached) $ac_c" 1>&6
1385 else
1386   
1387    oldcflags="${CFLAGS-}"
1388    CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
1389    cat > conftest.$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1392
1393 #include <string.h>
1394 #include <stdio.h>
1395
1396 int main() {
1397
1398     strcmp("a","b"); fprintf(stdout,"test ok\n");
1399
1400 ; return 0; }
1401 EOF
1402 if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1403   rm -rf conftest*
1404   dpkg_cv_c_gcc_warn_pointerarith=yes
1405 else
1406   echo "configure: failed program was:" >&5
1407   cat conftest.$ac_ext >&5
1408   rm -rf conftest*
1409   dpkg_cv_c_gcc_warn_pointerarith=no
1410 fi
1411 rm -f conftest*
1412    CFLAGS="${oldcflags}"
1413 fi
1414
1415   if test "x$dpkg_cv_c_gcc_warn_pointerarith" = xyes; then
1416    CWARNS="${CWARNS} -Wpointer-arith"
1417    echo "$ac_t""ok" 1>&6
1418   else
1419    dpkg_cv_c_gcc_warn_pointerarith=''
1420    echo "$ac_t""no" 1>&6
1421   fi
1422  else
1423   echo "$ac_t""no" 1>&6
1424  fi
1425
1426
1427  echo $ac_n "checking GCC warning flag(s) -Wimplicit -Wnested-externs""... $ac_c" 1>&6
1428 echo "configure:1429: checking GCC warning flag(s) -Wimplicit -Wnested-externs" >&5
1429  if test "${GCC-no}" = yes
1430  then
1431   if eval "test \"`echo '$''{'dpkg_cv_c_gcc_warn_implicit'+set}'`\" = set"; then
1432   echo $ac_n "(cached) $ac_c" 1>&6
1433 else
1434   
1435    oldcflags="${CFLAGS-}"
1436    CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
1437    cat > conftest.$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1440
1441 #include <string.h>
1442 #include <stdio.h>
1443
1444 int main() {
1445
1446     strcmp("a","b"); fprintf(stdout,"test ok\n");
1447
1448 ; return 0; }
1449 EOF
1450 if { (eval echo configure:1451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1451   rm -rf conftest*
1452   dpkg_cv_c_gcc_warn_implicit=yes
1453 else
1454   echo "configure: failed program was:" >&5
1455   cat conftest.$ac_ext >&5
1456   rm -rf conftest*
1457   dpkg_cv_c_gcc_warn_implicit=no
1458 fi
1459 rm -f conftest*
1460    CFLAGS="${oldcflags}"
1461 fi
1462
1463   if test "x$dpkg_cv_c_gcc_warn_implicit" = xyes; then
1464    CWARNS="${CWARNS} -Wimplicit -Wnested-externs"
1465    echo "$ac_t""ok" 1>&6
1466   else
1467    dpkg_cv_c_gcc_warn_implicit=''
1468    echo "$ac_t""no" 1>&6
1469   fi
1470  else
1471   echo "$ac_t""no" 1>&6
1472  fi
1473
1474
1475 if test "${GCC-no}" = yes; then
1476  CWARNS="${CWARNS} -Wmissing-prototypes -Wstrict-prototypes"
1477 fi
1478 CFLAGS="`echo $CFLAGS $CWARNS | sed -e 's/-O[0-9]*/$(OPTIMISE)/'`"
1479
1480
1481 VERSION="`sed -n '/^userv (.*)/!d; s/^userv (//; s/).*//; p; q' debian/changelog`"
1482 echo will build version $VERSION
1483
1484 trap '' 1 2 15
1485 cat > confcache <<\EOF
1486 # This file is a shell script that caches the results of configure
1487 # tests run on this system so they can be shared between configure
1488 # scripts and configure runs.  It is not useful on other systems.
1489 # If it contains results you don't want to keep, you may remove or edit it.
1490 #
1491 # By default, configure uses ./config.cache as the cache file,
1492 # creating it if it does not exist already.  You can give configure
1493 # the --cache-file=FILE option to use a different cache file; that is
1494 # what configure does when it calls configure scripts in
1495 # subdirectories, so they share the cache.
1496 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1497 # config.status only pays attention to the cache file if you give it the
1498 # --recheck option to rerun configure.
1499 #
1500 EOF
1501 # The following way of writing the cache mishandles newlines in values,
1502 # but we know of no workaround that is simple, portable, and efficient.
1503 # So, don't put newlines in cache variables' values.
1504 # Ultrix sh set writes to stderr and can't be redirected directly,
1505 # and sets the high bit in the cache file unless we assign to the vars.
1506 (set) 2>&1 |
1507   case `(ac_space=' '; set) 2>&1` in
1508   *ac_space=\ *)
1509     # `set' does not quote correctly, so add quotes (double-quote substitution
1510     # turns \\\\ into \\, and sed turns \\ into \).
1511     sed -n \
1512       -e "s/'/'\\\\''/g" \
1513       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1514     ;;
1515   *)
1516     # `set' quotes correctly as required by POSIX, so do not add quotes.
1517     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1518     ;;
1519   esac >> confcache
1520 if cmp -s $cache_file confcache; then
1521   :
1522 else
1523   if test -w $cache_file; then
1524     echo "updating cache $cache_file"
1525     cat confcache > $cache_file
1526   else
1527     echo "not updating unwritable cache $cache_file"
1528   fi
1529 fi
1530 rm -f confcache
1531
1532 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1533
1534 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1535 # Let make expand exec_prefix.
1536 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1537
1538 # Any assignment to VPATH causes Sun make to only execute
1539 # the first set of double-colon rules, so remove it if not needed.
1540 # If there is a colon in the path, we need to keep it.
1541 if test "x$srcdir" = x.; then
1542   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1543 fi
1544
1545 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1546
1547 DEFS=-DHAVE_CONFIG_H
1548
1549 # Without the "./", some shells look in PATH for config.status.
1550 : ${CONFIG_STATUS=./config.status}
1551
1552 echo creating $CONFIG_STATUS
1553 rm -f $CONFIG_STATUS
1554 cat > $CONFIG_STATUS <<EOF
1555 #! /bin/sh
1556 # Generated automatically by configure.
1557 # Run this file to recreate the current configuration.
1558 # This directory was configured as follows,
1559 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1560 #
1561 # $0 $ac_configure_args
1562 #
1563 # Compiler output produced by configure, useful for debugging
1564 # configure, is in ./config.log if it exists.
1565
1566 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1567 for ac_option
1568 do
1569   case "\$ac_option" in
1570   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1571     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1572     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1573   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1574     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1575     exit 0 ;;
1576   -help | --help | --hel | --he | --h)
1577     echo "\$ac_cs_usage"; exit 0 ;;
1578   *) echo "\$ac_cs_usage"; exit 1 ;;
1579   esac
1580 done
1581
1582 ac_given_srcdir=$srcdir
1583 ac_given_INSTALL="$INSTALL"
1584
1585 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1586 EOF
1587 cat >> $CONFIG_STATUS <<EOF
1588
1589 # Protect against being on the right side of a sed subst in config.status.
1590 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1591  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1592 $ac_vpsub
1593 $extrasub
1594 s%@CFLAGS@%$CFLAGS%g
1595 s%@CPPFLAGS@%$CPPFLAGS%g
1596 s%@CXXFLAGS@%$CXXFLAGS%g
1597 s%@DEFS@%$DEFS%g
1598 s%@LDFLAGS@%$LDFLAGS%g
1599 s%@LIBS@%$LIBS%g
1600 s%@exec_prefix@%$exec_prefix%g
1601 s%@prefix@%$prefix%g
1602 s%@program_transform_name@%$program_transform_name%g
1603 s%@bindir@%$bindir%g
1604 s%@sbindir@%$sbindir%g
1605 s%@libexecdir@%$libexecdir%g
1606 s%@datadir@%$datadir%g
1607 s%@sysconfdir@%$sysconfdir%g
1608 s%@sharedstatedir@%$sharedstatedir%g
1609 s%@localstatedir@%$localstatedir%g
1610 s%@libdir@%$libdir%g
1611 s%@includedir@%$includedir%g
1612 s%@oldincludedir@%$oldincludedir%g
1613 s%@infodir@%$infodir%g
1614 s%@mandir@%$mandir%g
1615 s%@DEBUGDEFS@%$DEBUGDEFS%g
1616 s%@DEBUGLIBS@%$DEBUGLIBS%g
1617 s%@CC@%$CC%g
1618 s%@CPP@%$CPP%g
1619 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1620 s%@INSTALL_DATA@%$INSTALL_DATA%g
1621 s%@MD5SUM_SIMPLE@%$MD5SUM_SIMPLE%g
1622 s%@OPTIMISE@%$OPTIMISE%g
1623 s%@CWARNS@%$CWARNS%g
1624 s%@VERSION@%$VERSION%g
1625
1626 CEOF
1627 EOF
1628
1629 cat >> $CONFIG_STATUS <<\EOF
1630
1631 # Split the substitutions into bite-sized pieces for seds with
1632 # small command number limits, like on Digital OSF/1 and HP-UX.
1633 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1634 ac_file=1 # Number of current file.
1635 ac_beg=1 # First line for current file.
1636 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1637 ac_more_lines=:
1638 ac_sed_cmds=""
1639 while $ac_more_lines; do
1640   if test $ac_beg -gt 1; then
1641     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1642   else
1643     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1644   fi
1645   if test ! -s conftest.s$ac_file; then
1646     ac_more_lines=false
1647     rm -f conftest.s$ac_file
1648   else
1649     if test -z "$ac_sed_cmds"; then
1650       ac_sed_cmds="sed -f conftest.s$ac_file"
1651     else
1652       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1653     fi
1654     ac_file=`expr $ac_file + 1`
1655     ac_beg=$ac_end
1656     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1657   fi
1658 done
1659 if test -z "$ac_sed_cmds"; then
1660   ac_sed_cmds=cat
1661 fi
1662 EOF
1663
1664 cat >> $CONFIG_STATUS <<EOF
1665
1666 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1667 EOF
1668 cat >> $CONFIG_STATUS <<\EOF
1669 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1670   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1671   case "$ac_file" in
1672   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1673        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1674   *) ac_file_in="${ac_file}.in" ;;
1675   esac
1676
1677   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1678
1679   # Remove last slash and all that follows it.  Not all systems have dirname.
1680   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1681   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1682     # The file is in a subdirectory.
1683     test ! -d "$ac_dir" && mkdir "$ac_dir"
1684     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1685     # A "../" for each directory in $ac_dir_suffix.
1686     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1687   else
1688     ac_dir_suffix= ac_dots=
1689   fi
1690
1691   case "$ac_given_srcdir" in
1692   .)  srcdir=.
1693       if test -z "$ac_dots"; then top_srcdir=.
1694       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1695   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1696   *) # Relative path.
1697     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1698     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1699   esac
1700
1701   case "$ac_given_INSTALL" in
1702   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1703   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1704   esac
1705
1706   echo creating "$ac_file"
1707   rm -f "$ac_file"
1708   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1709   case "$ac_file" in
1710   *Makefile*) ac_comsub="1i\\
1711 # $configure_input" ;;
1712   *) ac_comsub= ;;
1713   esac
1714
1715   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1716   sed -e "$ac_comsub
1717 s%@configure_input@%$configure_input%g
1718 s%@srcdir@%$srcdir%g
1719 s%@top_srcdir@%$top_srcdir%g
1720 s%@INSTALL@%$INSTALL%g
1721 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1722 fi; done
1723 rm -f conftest.s*
1724
1725 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1726 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1727 #
1728 # ac_d sets the value in "#define NAME VALUE" lines.
1729 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1730 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1731 ac_dC='\3'
1732 ac_dD='%g'
1733 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1734 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1735 ac_uB='\([      ]\)%\1#\2define\3'
1736 ac_uC=' '
1737 ac_uD='\4%g'
1738 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1739 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1740 ac_eB='$%\1#\2define\3'
1741 ac_eC=' '
1742 ac_eD='%g'
1743
1744 if test "${CONFIG_HEADERS+set}" != set; then
1745 EOF
1746 cat >> $CONFIG_STATUS <<EOF
1747   CONFIG_HEADERS="config.h"
1748 EOF
1749 cat >> $CONFIG_STATUS <<\EOF
1750 fi
1751 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1752   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1753   case "$ac_file" in
1754   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1755        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1756   *) ac_file_in="${ac_file}.in" ;;
1757   esac
1758
1759   echo creating $ac_file
1760
1761   rm -f conftest.frag conftest.in conftest.out
1762   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1763   cat $ac_file_inputs > conftest.in
1764
1765 EOF
1766
1767 # Transform confdefs.h into a sed script conftest.vals that substitutes
1768 # the proper values into config.h.in to produce config.h.  And first:
1769 # Protect against being on the right side of a sed subst in config.status.
1770 # Protect against being in an unquoted here document in config.status.
1771 rm -f conftest.vals
1772 cat > conftest.hdr <<\EOF
1773 s/[\\&%]/\\&/g
1774 s%[\\$`]%\\&%g
1775 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1776 s%ac_d%ac_u%gp
1777 s%ac_u%ac_e%gp
1778 EOF
1779 sed -n -f conftest.hdr confdefs.h > conftest.vals
1780 rm -f conftest.hdr
1781
1782 # This sed command replaces #undef with comments.  This is necessary, for
1783 # example, in the case of _POSIX_SOURCE, which is predefined and required
1784 # on some systems where configure will not decide to define it.
1785 cat >> conftest.vals <<\EOF
1786 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1787 EOF
1788
1789 # Break up conftest.vals because some shells have a limit on
1790 # the size of here documents, and old seds have small limits too.
1791
1792 rm -f conftest.tail
1793 while :
1794 do
1795   ac_lines=`grep -c . conftest.vals`
1796   # grep -c gives empty output for an empty file on some AIX systems.
1797   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1798   # Write a limited-size here document to conftest.frag.
1799   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1800   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1801   echo 'CEOF
1802   sed -f conftest.frag conftest.in > conftest.out
1803   rm -f conftest.in
1804   mv conftest.out conftest.in
1805 ' >> $CONFIG_STATUS
1806   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1807   rm -f conftest.vals
1808   mv conftest.tail conftest.vals
1809 done
1810 rm -f conftest.vals
1811
1812 cat >> $CONFIG_STATUS <<\EOF
1813   rm -f conftest.frag conftest.h
1814   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1815   cat conftest.in >> conftest.h
1816   rm -f conftest.in
1817   if cmp -s $ac_file conftest.h 2>/dev/null; then
1818     echo "$ac_file is unchanged"
1819     rm -f conftest.h
1820   else
1821     # Remove last slash and all that follows it.  Not all systems have dirname.
1822       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1823       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1824       # The file is in a subdirectory.
1825       test ! -d "$ac_dir" && mkdir "$ac_dir"
1826     fi
1827     rm -f $ac_file
1828     mv conftest.h $ac_file
1829   fi
1830 fi; done
1831
1832 EOF
1833 cat >> $CONFIG_STATUS <<EOF
1834
1835 EOF
1836 cat >> $CONFIG_STATUS <<\EOF
1837
1838 exit 0
1839 EOF
1840 chmod +x $CONFIG_STATUS
1841 rm -fr confdefs* $ac_clean_files
1842 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1843