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