ready for tagging
[libnl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libnl 1.0-pre6.
4 #
5 # Report bugs to <tgraf@suug.ch>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='libnl'
271 PACKAGE_TARNAME='libnl'
272 PACKAGE_VERSION='1.0-pre6'
273 PACKAGE_STRING='libnl 1.0-pre6'
274 PACKAGE_BUGREPORT='tgraf@suug.ch'
275
276 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBNL_LIB LIBOBJS LTLIBOBJS'
277 ac_subst_files=''
278
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
298
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
316
317 ac_prev=
318 for ac_option
319 do
320   # If the previous option needs an argument, assign it.
321   if test -n "$ac_prev"; then
322     eval "$ac_prev=\$ac_option"
323     ac_prev=
324     continue
325   fi
326
327   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329   # Accept the important Cygnus configure options, so we can diagnose typos.
330
331   case $ac_option in
332
333   -bindir | --bindir | --bindi | --bind | --bin | --bi)
334     ac_prev=bindir ;;
335   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336     bindir=$ac_optarg ;;
337
338   -build | --build | --buil | --bui | --bu)
339     ac_prev=build_alias ;;
340   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341     build_alias=$ac_optarg ;;
342
343   -cache-file | --cache-file | --cache-fil | --cache-fi \
344   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345     ac_prev=cache_file ;;
346   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348     cache_file=$ac_optarg ;;
349
350   --config-cache | -C)
351     cache_file=config.cache ;;
352
353   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354     ac_prev=datadir ;;
355   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356   | --da=*)
357     datadir=$ac_optarg ;;
358
359   -disable-* | --disable-*)
360     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361     # Reject names that are not valid shell variable names.
362     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364    { (exit 1); exit 1; }; }
365     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366     eval "enable_$ac_feature=no" ;;
367
368   -enable-* | --enable-*)
369     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370     # Reject names that are not valid shell variable names.
371     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373    { (exit 1); exit 1; }; }
374     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375     case $ac_option in
376       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377       *) ac_optarg=yes ;;
378     esac
379     eval "enable_$ac_feature='$ac_optarg'" ;;
380
381   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383   | --exec | --exe | --ex)
384     ac_prev=exec_prefix ;;
385   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387   | --exec=* | --exe=* | --ex=*)
388     exec_prefix=$ac_optarg ;;
389
390   -gas | --gas | --ga | --g)
391     # Obsolete; use --with-gas.
392     with_gas=yes ;;
393
394   -help | --help | --hel | --he | -h)
395     ac_init_help=long ;;
396   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397     ac_init_help=recursive ;;
398   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399     ac_init_help=short ;;
400
401   -host | --host | --hos | --ho)
402     ac_prev=host_alias ;;
403   -host=* | --host=* | --hos=* | --ho=*)
404     host_alias=$ac_optarg ;;
405
406   -includedir | --includedir | --includedi | --included | --include \
407   | --includ | --inclu | --incl | --inc)
408     ac_prev=includedir ;;
409   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410   | --includ=* | --inclu=* | --incl=* | --inc=*)
411     includedir=$ac_optarg ;;
412
413   -infodir | --infodir | --infodi | --infod | --info | --inf)
414     ac_prev=infodir ;;
415   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416     infodir=$ac_optarg ;;
417
418   -libdir | --libdir | --libdi | --libd)
419     ac_prev=libdir ;;
420   -libdir=* | --libdir=* | --libdi=* | --libd=*)
421     libdir=$ac_optarg ;;
422
423   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424   | --libexe | --libex | --libe)
425     ac_prev=libexecdir ;;
426   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427   | --libexe=* | --libex=* | --libe=*)
428     libexecdir=$ac_optarg ;;
429
430   -localstatedir | --localstatedir | --localstatedi | --localstated \
431   | --localstate | --localstat | --localsta | --localst \
432   | --locals | --local | --loca | --loc | --lo)
433     ac_prev=localstatedir ;;
434   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437     localstatedir=$ac_optarg ;;
438
439   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440     ac_prev=mandir ;;
441   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442     mandir=$ac_optarg ;;
443
444   -nfp | --nfp | --nf)
445     # Obsolete; use --without-fp.
446     with_fp=no ;;
447
448   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449   | --no-cr | --no-c | -n)
450     no_create=yes ;;
451
452   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454     no_recursion=yes ;;
455
456   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458   | --oldin | --oldi | --old | --ol | --o)
459     ac_prev=oldincludedir ;;
460   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463     oldincludedir=$ac_optarg ;;
464
465   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466     ac_prev=prefix ;;
467   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468     prefix=$ac_optarg ;;
469
470   -program-prefix | --program-prefix | --program-prefi | --program-pref \
471   | --program-pre | --program-pr | --program-p)
472     ac_prev=program_prefix ;;
473   -program-prefix=* | --program-prefix=* | --program-prefi=* \
474   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475     program_prefix=$ac_optarg ;;
476
477   -program-suffix | --program-suffix | --program-suffi | --program-suff \
478   | --program-suf | --program-su | --program-s)
479     ac_prev=program_suffix ;;
480   -program-suffix=* | --program-suffix=* | --program-suffi=* \
481   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482     program_suffix=$ac_optarg ;;
483
484   -program-transform-name | --program-transform-name \
485   | --program-transform-nam | --program-transform-na \
486   | --program-transform-n | --program-transform- \
487   | --program-transform | --program-transfor \
488   | --program-transfo | --program-transf \
489   | --program-trans | --program-tran \
490   | --progr-tra | --program-tr | --program-t)
491     ac_prev=program_transform_name ;;
492   -program-transform-name=* | --program-transform-name=* \
493   | --program-transform-nam=* | --program-transform-na=* \
494   | --program-transform-n=* | --program-transform-=* \
495   | --program-transform=* | --program-transfor=* \
496   | --program-transfo=* | --program-transf=* \
497   | --program-trans=* | --program-tran=* \
498   | --progr-tra=* | --program-tr=* | --program-t=*)
499     program_transform_name=$ac_optarg ;;
500
501   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502   | -silent | --silent | --silen | --sile | --sil)
503     silent=yes ;;
504
505   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506     ac_prev=sbindir ;;
507   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508   | --sbi=* | --sb=*)
509     sbindir=$ac_optarg ;;
510
511   -sharedstatedir | --sharedstatedir | --sharedstatedi \
512   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513   | --sharedst | --shareds | --shared | --share | --shar \
514   | --sha | --sh)
515     ac_prev=sharedstatedir ;;
516   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519   | --sha=* | --sh=*)
520     sharedstatedir=$ac_optarg ;;
521
522   -site | --site | --sit)
523     ac_prev=site ;;
524   -site=* | --site=* | --sit=*)
525     site=$ac_optarg ;;
526
527   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528     ac_prev=srcdir ;;
529   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530     srcdir=$ac_optarg ;;
531
532   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533   | --syscon | --sysco | --sysc | --sys | --sy)
534     ac_prev=sysconfdir ;;
535   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537     sysconfdir=$ac_optarg ;;
538
539   -target | --target | --targe | --targ | --tar | --ta | --t)
540     ac_prev=target_alias ;;
541   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542     target_alias=$ac_optarg ;;
543
544   -v | -verbose | --verbose | --verbos | --verbo | --verb)
545     verbose=yes ;;
546
547   -version | --version | --versio | --versi | --vers | -V)
548     ac_init_version=: ;;
549
550   -with-* | --with-*)
551     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid package name: $ac_package" >&2
555    { (exit 1); exit 1; }; }
556     ac_package=`echo $ac_package| sed 's/-/_/g'`
557     case $ac_option in
558       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559       *) ac_optarg=yes ;;
560     esac
561     eval "with_$ac_package='$ac_optarg'" ;;
562
563   -without-* | --without-*)
564     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid package name: $ac_package" >&2
568    { (exit 1); exit 1; }; }
569     ac_package=`echo $ac_package | sed 's/-/_/g'`
570     eval "with_$ac_package=no" ;;
571
572   --x)
573     # Obsolete; use --with-x.
574     with_x=yes ;;
575
576   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577   | --x-incl | --x-inc | --x-in | --x-i)
578     ac_prev=x_includes ;;
579   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581     x_includes=$ac_optarg ;;
582
583   -x-libraries | --x-libraries | --x-librarie | --x-librari \
584   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585     ac_prev=x_libraries ;;
586   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588     x_libraries=$ac_optarg ;;
589
590   -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592    { (exit 1); exit 1; }; }
593     ;;
594
595   *=*)
596     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597     # Reject names that are not valid shell variable names.
598     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600    { (exit 1); exit 1; }; }
601     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602     eval "$ac_envvar='$ac_optarg'"
603     export $ac_envvar ;;
604
605   *)
606     # FIXME: should be removed in autoconf 3.0.
607     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611     ;;
612
613   esac
614 done
615
616 if test -n "$ac_prev"; then
617   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618   { echo "$as_me: error: missing argument to $ac_option" >&2
619    { (exit 1); exit 1; }; }
620 fi
621
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
624 do
625   eval ac_val=$`echo $ac_var`
626   case $ac_val in
627     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629    { (exit 1); exit 1; }; };;
630   esac
631 done
632
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635               localstatedir libdir includedir oldincludedir infodir mandir
636 do
637   eval ac_val=$`echo $ac_var`
638   case $ac_val in
639     [\\/$]* | ?:[\\/]* ) ;;
640     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641    { (exit 1); exit 1; }; };;
642   esac
643 done
644
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
651
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654   if test "x$build_alias" = x; then
655     cross_compiling=maybe
656     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657     If a cross compiler is detected then cross compile mode will be used." >&2
658   elif test "x$build_alias" != "x$host_alias"; then
659     cross_compiling=yes
660   fi
661 fi
662
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666 test "$silent" = yes && exec 6>/dev/null
667
668
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671   ac_srcdir_defaulted=yes
672   # Try the directory containing this script, then its parent.
673   ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675          X"$0" : 'X\(//\)[^/]' \| \
676          X"$0" : 'X\(//\)$' \| \
677          X"$0" : 'X\(/\)' \| \
678          .     : '\(.\)' 2>/dev/null ||
679 echo X"$0" |
680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682           /^X\(\/\/\)$/{ s//\1/; q; }
683           /^X\(\/\).*/{ s//\1/; q; }
684           s/.*/./; q'`
685   srcdir=$ac_confdir
686   if test ! -r $srcdir/$ac_unique_file; then
687     srcdir=..
688   fi
689 else
690   ac_srcdir_defaulted=no
691 fi
692 if test ! -r $srcdir/$ac_unique_file; then
693   if test "$ac_srcdir_defaulted" = yes; then
694     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695    { (exit 1); exit 1; }; }
696   else
697     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698    { (exit 1); exit 1; }; }
699   fi
700 fi
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703    { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
718 ac_env_CC_value=$CC
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733
734 #
735 # Report the --help message.
736 #
737 if test "$ac_init_help" = "long"; then
738   # Omit some internal or obsolete options to make the list less imposing.
739   # This message is too long to be a string in the A/UX 3.1 sh.
740   cat <<_ACEOF
741 \`configure' configures libnl 1.0-pre6 to adapt to many kinds of systems.
742
743 Usage: $0 [OPTION]... [VAR=VALUE]...
744
745 To assign environment variables (e.g., CC, CFLAGS...), specify them as
746 VAR=VALUE.  See below for descriptions of some of the useful variables.
747
748 Defaults for the options are specified in brackets.
749
750 Configuration:
751   -h, --help              display this help and exit
752       --help=short        display options specific to this package
753       --help=recursive    display the short help of all the included packages
754   -V, --version           display version information and exit
755   -q, --quiet, --silent   do not print \`checking...' messages
756       --cache-file=FILE   cache test results in FILE [disabled]
757   -C, --config-cache      alias for \`--cache-file=config.cache'
758   -n, --no-create         do not create output files
759       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
760
761 _ACEOF
762
763   cat <<_ACEOF
764 Installation directories:
765   --prefix=PREFIX         install architecture-independent files in PREFIX
766                           [$ac_default_prefix]
767   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
768                           [PREFIX]
769
770 By default, \`make install' will install all the files in
771 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
772 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
773 for instance \`--prefix=\$HOME'.
774
775 For better control, use the options below.
776
777 Fine tuning of the installation directories:
778   --bindir=DIR           user executables [EPREFIX/bin]
779   --sbindir=DIR          system admin executables [EPREFIX/sbin]
780   --libexecdir=DIR       program executables [EPREFIX/libexec]
781   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
782   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
783   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
784   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
785   --libdir=DIR           object code libraries [EPREFIX/lib]
786   --includedir=DIR       C header files [PREFIX/include]
787   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
788   --infodir=DIR          info documentation [PREFIX/info]
789   --mandir=DIR           man documentation [PREFIX/man]
790 _ACEOF
791
792   cat <<\_ACEOF
793 _ACEOF
794 fi
795
796 if test -n "$ac_init_help"; then
797   case $ac_init_help in
798      short | recursive ) echo "Configuration of libnl 1.0-pre6:";;
799    esac
800   cat <<\_ACEOF
801
802 Optional Features:
803   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
804   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
805   --enable-verbose-errors enable verbose errors (debugging)
806
807 Some influential environment variables:
808   CC          C compiler command
809   CFLAGS      C compiler flags
810   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
811               nonstandard directory <lib dir>
812   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
813               headers in a nonstandard directory <include dir>
814
815 Use these variables to override the choices made by `configure' or to help
816 it to find libraries and programs with nonstandard names/locations.
817
818 Report bugs to <tgraf@suug.ch>.
819 _ACEOF
820 fi
821
822 if test "$ac_init_help" = "recursive"; then
823   # If there are subdirs, report their specific --help.
824   ac_popdir=`pwd`
825   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
826     test -d $ac_dir || continue
827     ac_builddir=.
828
829 if test "$ac_dir" != .; then
830   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
831   # A "../" for each directory in $ac_dir_suffix.
832   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
833 else
834   ac_dir_suffix= ac_top_builddir=
835 fi
836
837 case $srcdir in
838   .)  # No --srcdir option.  We are building in place.
839     ac_srcdir=.
840     if test -z "$ac_top_builddir"; then
841        ac_top_srcdir=.
842     else
843        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
844     fi ;;
845   [\\/]* | ?:[\\/]* )  # Absolute path.
846     ac_srcdir=$srcdir$ac_dir_suffix;
847     ac_top_srcdir=$srcdir ;;
848   *) # Relative path.
849     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
850     ac_top_srcdir=$ac_top_builddir$srcdir ;;
851 esac
852
853 # Do not use `cd foo && pwd` to compute absolute paths, because
854 # the directories may not exist.
855 case `pwd` in
856 .) ac_abs_builddir="$ac_dir";;
857 *)
858   case "$ac_dir" in
859   .) ac_abs_builddir=`pwd`;;
860   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
861   *) ac_abs_builddir=`pwd`/"$ac_dir";;
862   esac;;
863 esac
864 case $ac_abs_builddir in
865 .) ac_abs_top_builddir=${ac_top_builddir}.;;
866 *)
867   case ${ac_top_builddir}. in
868   .) ac_abs_top_builddir=$ac_abs_builddir;;
869   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
870   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
871   esac;;
872 esac
873 case $ac_abs_builddir in
874 .) ac_abs_srcdir=$ac_srcdir;;
875 *)
876   case $ac_srcdir in
877   .) ac_abs_srcdir=$ac_abs_builddir;;
878   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
879   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
880   esac;;
881 esac
882 case $ac_abs_builddir in
883 .) ac_abs_top_srcdir=$ac_top_srcdir;;
884 *)
885   case $ac_top_srcdir in
886   .) ac_abs_top_srcdir=$ac_abs_builddir;;
887   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
888   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
889   esac;;
890 esac
891
892     cd $ac_dir
893     # Check for guested configure; otherwise get Cygnus style configure.
894     if test -f $ac_srcdir/configure.gnu; then
895       echo
896       $SHELL $ac_srcdir/configure.gnu  --help=recursive
897     elif test -f $ac_srcdir/configure; then
898       echo
899       $SHELL $ac_srcdir/configure  --help=recursive
900     elif test -f $ac_srcdir/configure.ac ||
901            test -f $ac_srcdir/configure.in; then
902       echo
903       $ac_configure --help
904     else
905       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
906     fi
907     cd "$ac_popdir"
908   done
909 fi
910
911 test -n "$ac_init_help" && exit 0
912 if $ac_init_version; then
913   cat <<\_ACEOF
914 libnl configure 1.0-pre6
915 generated by GNU Autoconf 2.59
916
917 Copyright (C) 2003 Free Software Foundation, Inc.
918 This configure script is free software; the Free Software Foundation
919 gives unlimited permission to copy, distribute and modify it.
920 _ACEOF
921   exit 0
922 fi
923 exec 5>config.log
924 cat >&5 <<_ACEOF
925 This file contains any messages produced by compilers while
926 running configure, to aid debugging if configure makes a mistake.
927
928 It was created by libnl $as_me 1.0-pre6, which was
929 generated by GNU Autoconf 2.59.  Invocation command line was
930
931   $ $0 $@
932
933 _ACEOF
934 {
935 cat <<_ASUNAME
936 ## --------- ##
937 ## Platform. ##
938 ## --------- ##
939
940 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
941 uname -m = `(uname -m) 2>/dev/null || echo unknown`
942 uname -r = `(uname -r) 2>/dev/null || echo unknown`
943 uname -s = `(uname -s) 2>/dev/null || echo unknown`
944 uname -v = `(uname -v) 2>/dev/null || echo unknown`
945
946 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
947 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
948
949 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
950 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
951 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
952 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
953 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
954 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
955 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
956
957 _ASUNAME
958
959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
960 for as_dir in $PATH
961 do
962   IFS=$as_save_IFS
963   test -z "$as_dir" && as_dir=.
964   echo "PATH: $as_dir"
965 done
966
967 } >&5
968
969 cat >&5 <<_ACEOF
970
971
972 ## ----------- ##
973 ## Core tests. ##
974 ## ----------- ##
975
976 _ACEOF
977
978
979 # Keep a trace of the command line.
980 # Strip out --no-create and --no-recursion so they do not pile up.
981 # Strip out --silent because we don't want to record it for future runs.
982 # Also quote any args containing shell meta-characters.
983 # Make two passes to allow for proper duplicate-argument suppression.
984 ac_configure_args=
985 ac_configure_args0=
986 ac_configure_args1=
987 ac_sep=
988 ac_must_keep_next=false
989 for ac_pass in 1 2
990 do
991   for ac_arg
992   do
993     case $ac_arg in
994     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
995     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
996     | -silent | --silent | --silen | --sile | --sil)
997       continue ;;
998     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
999       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1000     esac
1001     case $ac_pass in
1002     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1003     2)
1004       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1005       if test $ac_must_keep_next = true; then
1006         ac_must_keep_next=false # Got value, back to normal.
1007       else
1008         case $ac_arg in
1009           *=* | --config-cache | -C | -disable-* | --disable-* \
1010           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1011           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1012           | -with-* | --with-* | -without-* | --without-* | --x)
1013             case "$ac_configure_args0 " in
1014               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1015             esac
1016             ;;
1017           -* ) ac_must_keep_next=true ;;
1018         esac
1019       fi
1020       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1021       # Get rid of the leading space.
1022       ac_sep=" "
1023       ;;
1024     esac
1025   done
1026 done
1027 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1028 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1029
1030 # When interrupted or exit'd, cleanup temporary files, and complete
1031 # config.log.  We remove comments because anyway the quotes in there
1032 # would cause problems or look ugly.
1033 # WARNING: Be sure not to use single quotes in there, as some shells,
1034 # such as our DU 5.0 friend, will then `close' the trap.
1035 trap 'exit_status=$?
1036   # Save into config.log some information that might help in debugging.
1037   {
1038     echo
1039
1040     cat <<\_ASBOX
1041 ## ---------------- ##
1042 ## Cache variables. ##
1043 ## ---------------- ##
1044 _ASBOX
1045     echo
1046     # The following way of writing the cache mishandles newlines in values,
1047 {
1048   (set) 2>&1 |
1049     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1050     *ac_space=\ *)
1051       sed -n \
1052         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1053           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1054       ;;
1055     *)
1056       sed -n \
1057         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1058       ;;
1059     esac;
1060 }
1061     echo
1062
1063     cat <<\_ASBOX
1064 ## ----------------- ##
1065 ## Output variables. ##
1066 ## ----------------- ##
1067 _ASBOX
1068     echo
1069     for ac_var in $ac_subst_vars
1070     do
1071       eval ac_val=$`echo $ac_var`
1072       echo "$ac_var='"'"'$ac_val'"'"'"
1073     done | sort
1074     echo
1075
1076     if test -n "$ac_subst_files"; then
1077       cat <<\_ASBOX
1078 ## ------------- ##
1079 ## Output files. ##
1080 ## ------------- ##
1081 _ASBOX
1082       echo
1083       for ac_var in $ac_subst_files
1084       do
1085         eval ac_val=$`echo $ac_var`
1086         echo "$ac_var='"'"'$ac_val'"'"'"
1087       done | sort
1088       echo
1089     fi
1090
1091     if test -s confdefs.h; then
1092       cat <<\_ASBOX
1093 ## ----------- ##
1094 ## confdefs.h. ##
1095 ## ----------- ##
1096 _ASBOX
1097       echo
1098       sed "/^$/d" confdefs.h | sort
1099       echo
1100     fi
1101     test "$ac_signal" != 0 &&
1102       echo "$as_me: caught signal $ac_signal"
1103     echo "$as_me: exit $exit_status"
1104   } >&5
1105   rm -f core *.core &&
1106   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1107     exit $exit_status
1108      ' 0
1109 for ac_signal in 1 2 13 15; do
1110   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1111 done
1112 ac_signal=0
1113
1114 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1115 rm -rf conftest* confdefs.h
1116 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1117 echo >confdefs.h
1118
1119 # Predefined preprocessor variables.
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_NAME "$PACKAGE_NAME"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1128 _ACEOF
1129
1130
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1133 _ACEOF
1134
1135
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_STRING "$PACKAGE_STRING"
1138 _ACEOF
1139
1140
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1143 _ACEOF
1144
1145
1146 # Let the site file select an alternate cache file if it wants to.
1147 # Prefer explicitly selected file to automatically selected ones.
1148 if test -z "$CONFIG_SITE"; then
1149   if test "x$prefix" != xNONE; then
1150     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1151   else
1152     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1153   fi
1154 fi
1155 for ac_site_file in $CONFIG_SITE; do
1156   if test -r "$ac_site_file"; then
1157     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1158 echo "$as_me: loading site script $ac_site_file" >&6;}
1159     sed 's/^/| /' "$ac_site_file" >&5
1160     . "$ac_site_file"
1161   fi
1162 done
1163
1164 if test -r "$cache_file"; then
1165   # Some versions of bash will fail to source /dev/null (special
1166   # files actually), so we avoid doing that.
1167   if test -f "$cache_file"; then
1168     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1169 echo "$as_me: loading cache $cache_file" >&6;}
1170     case $cache_file in
1171       [\\/]* | ?:[\\/]* ) . $cache_file;;
1172       *)                      . ./$cache_file;;
1173     esac
1174   fi
1175 else
1176   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1177 echo "$as_me: creating cache $cache_file" >&6;}
1178   >$cache_file
1179 fi
1180
1181 # Check that the precious variables saved in the cache have kept the same
1182 # value.
1183 ac_cache_corrupted=false
1184 for ac_var in `(set) 2>&1 |
1185                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1186   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1187   eval ac_new_set=\$ac_env_${ac_var}_set
1188   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1189   eval ac_new_val="\$ac_env_${ac_var}_value"
1190   case $ac_old_set,$ac_new_set in
1191     set,)
1192       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1193 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1194       ac_cache_corrupted=: ;;
1195     ,set)
1196       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1198       ac_cache_corrupted=: ;;
1199     ,);;
1200     *)
1201       if test "x$ac_old_val" != "x$ac_new_val"; then
1202         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1203 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1204         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1205 echo "$as_me:   former value:  $ac_old_val" >&2;}
1206         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1207 echo "$as_me:   current value: $ac_new_val" >&2;}
1208         ac_cache_corrupted=:
1209       fi;;
1210   esac
1211   # Pass precious variables to config.status.
1212   if test "$ac_new_set" = set; then
1213     case $ac_new_val in
1214     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1216     *) ac_arg=$ac_var=$ac_new_val ;;
1217     esac
1218     case " $ac_configure_args " in
1219       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1220       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1221     esac
1222   fi
1223 done
1224 if $ac_cache_corrupted; then
1225   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1226 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1227   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1228 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1229    { (exit 1); exit 1; }; }
1230 fi
1231
1232 ac_ext=c
1233 ac_cpp='$CPP $CPPFLAGS'
1234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264           ac_config_headers="$ac_config_headers lib/defs.h"
1265
1266
1267 save_CFLAGS="${CFLAGS}"
1268 save_LDFLAGS="${LDFLAGS}"
1269 save_CPPFLAGS="${CPPFLAGS}"
1270
1271 ac_ext=c
1272 ac_cpp='$CPP $CPPFLAGS'
1273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1276 if test -n "$ac_tool_prefix"; then
1277   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1278 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1279 echo "$as_me:$LINENO: checking for $ac_word" >&5
1280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1281 if test "${ac_cv_prog_CC+set}" = set; then
1282   echo $ECHO_N "(cached) $ECHO_C" >&6
1283 else
1284   if test -n "$CC"; then
1285   ac_cv_prog_CC="$CC" # Let the user override the test.
1286 else
1287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1288 for as_dir in $PATH
1289 do
1290   IFS=$as_save_IFS
1291   test -z "$as_dir" && as_dir=.
1292   for ac_exec_ext in '' $ac_executable_extensions; do
1293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1294     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1296     break 2
1297   fi
1298 done
1299 done
1300
1301 fi
1302 fi
1303 CC=$ac_cv_prog_CC
1304 if test -n "$CC"; then
1305   echo "$as_me:$LINENO: result: $CC" >&5
1306 echo "${ECHO_T}$CC" >&6
1307 else
1308   echo "$as_me:$LINENO: result: no" >&5
1309 echo "${ECHO_T}no" >&6
1310 fi
1311
1312 fi
1313 if test -z "$ac_cv_prog_CC"; then
1314   ac_ct_CC=$CC
1315   # Extract the first word of "gcc", so it can be a program name with args.
1316 set dummy gcc; ac_word=$2
1317 echo "$as_me:$LINENO: checking for $ac_word" >&5
1318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1320   echo $ECHO_N "(cached) $ECHO_C" >&6
1321 else
1322   if test -n "$ac_ct_CC"; then
1323   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1324 else
1325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1326 for as_dir in $PATH
1327 do
1328   IFS=$as_save_IFS
1329   test -z "$as_dir" && as_dir=.
1330   for ac_exec_ext in '' $ac_executable_extensions; do
1331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1332     ac_cv_prog_ac_ct_CC="gcc"
1333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1334     break 2
1335   fi
1336 done
1337 done
1338
1339 fi
1340 fi
1341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1342 if test -n "$ac_ct_CC"; then
1343   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1344 echo "${ECHO_T}$ac_ct_CC" >&6
1345 else
1346   echo "$as_me:$LINENO: result: no" >&5
1347 echo "${ECHO_T}no" >&6
1348 fi
1349
1350   CC=$ac_ct_CC
1351 else
1352   CC="$ac_cv_prog_CC"
1353 fi
1354
1355 if test -z "$CC"; then
1356   if test -n "$ac_tool_prefix"; then
1357   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1358 set dummy ${ac_tool_prefix}cc; ac_word=$2
1359 echo "$as_me:$LINENO: checking for $ac_word" >&5
1360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1361 if test "${ac_cv_prog_CC+set}" = set; then
1362   echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364   if test -n "$CC"; then
1365   ac_cv_prog_CC="$CC" # Let the user override the test.
1366 else
1367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 for as_dir in $PATH
1369 do
1370   IFS=$as_save_IFS
1371   test -z "$as_dir" && as_dir=.
1372   for ac_exec_ext in '' $ac_executable_extensions; do
1373   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1374     ac_cv_prog_CC="${ac_tool_prefix}cc"
1375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1376     break 2
1377   fi
1378 done
1379 done
1380
1381 fi
1382 fi
1383 CC=$ac_cv_prog_CC
1384 if test -n "$CC"; then
1385   echo "$as_me:$LINENO: result: $CC" >&5
1386 echo "${ECHO_T}$CC" >&6
1387 else
1388   echo "$as_me:$LINENO: result: no" >&5
1389 echo "${ECHO_T}no" >&6
1390 fi
1391
1392 fi
1393 if test -z "$ac_cv_prog_CC"; then
1394   ac_ct_CC=$CC
1395   # Extract the first word of "cc", so it can be a program name with args.
1396 set dummy cc; ac_word=$2
1397 echo "$as_me:$LINENO: checking for $ac_word" >&5
1398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1400   echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402   if test -n "$ac_ct_CC"; then
1403   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1404 else
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 for as_dir in $PATH
1407 do
1408   IFS=$as_save_IFS
1409   test -z "$as_dir" && as_dir=.
1410   for ac_exec_ext in '' $ac_executable_extensions; do
1411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1412     ac_cv_prog_ac_ct_CC="cc"
1413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414     break 2
1415   fi
1416 done
1417 done
1418
1419 fi
1420 fi
1421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1422 if test -n "$ac_ct_CC"; then
1423   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1424 echo "${ECHO_T}$ac_ct_CC" >&6
1425 else
1426   echo "$as_me:$LINENO: result: no" >&5
1427 echo "${ECHO_T}no" >&6
1428 fi
1429
1430   CC=$ac_ct_CC
1431 else
1432   CC="$ac_cv_prog_CC"
1433 fi
1434
1435 fi
1436 if test -z "$CC"; then
1437   # Extract the first word of "cc", so it can be a program name with args.
1438 set dummy cc; ac_word=$2
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1441 if test "${ac_cv_prog_CC+set}" = set; then
1442   echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444   if test -n "$CC"; then
1445   ac_cv_prog_CC="$CC" # Let the user override the test.
1446 else
1447   ac_prog_rejected=no
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451   IFS=$as_save_IFS
1452   test -z "$as_dir" && as_dir=.
1453   for ac_exec_ext in '' $ac_executable_extensions; do
1454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1456        ac_prog_rejected=yes
1457        continue
1458      fi
1459     ac_cv_prog_CC="cc"
1460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461     break 2
1462   fi
1463 done
1464 done
1465
1466 if test $ac_prog_rejected = yes; then
1467   # We found a bogon in the path, so make sure we never use it.
1468   set dummy $ac_cv_prog_CC
1469   shift
1470   if test $# != 0; then
1471     # We chose a different compiler from the bogus one.
1472     # However, it has the same basename, so the bogon will be chosen
1473     # first if we set CC to just the basename; use the full file name.
1474     shift
1475     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1476   fi
1477 fi
1478 fi
1479 fi
1480 CC=$ac_cv_prog_CC
1481 if test -n "$CC"; then
1482   echo "$as_me:$LINENO: result: $CC" >&5
1483 echo "${ECHO_T}$CC" >&6
1484 else
1485   echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1487 fi
1488
1489 fi
1490 if test -z "$CC"; then
1491   if test -n "$ac_tool_prefix"; then
1492   for ac_prog in cl
1493   do
1494     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_CC+set}" = set; then
1499   echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501   if test -n "$CC"; then
1502   ac_cv_prog_CC="$CC" # Let the user override the test.
1503 else
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1506 do
1507   IFS=$as_save_IFS
1508   test -z "$as_dir" && as_dir=.
1509   for ac_exec_ext in '' $ac_executable_extensions; do
1510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513     break 2
1514   fi
1515 done
1516 done
1517
1518 fi
1519 fi
1520 CC=$ac_cv_prog_CC
1521 if test -n "$CC"; then
1522   echo "$as_me:$LINENO: result: $CC" >&5
1523 echo "${ECHO_T}$CC" >&6
1524 else
1525   echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 fi
1528
1529     test -n "$CC" && break
1530   done
1531 fi
1532 if test -z "$CC"; then
1533   ac_ct_CC=$CC
1534   for ac_prog in cl
1535 do
1536   # Extract the first word of "$ac_prog", so it can be a program name with args.
1537 set dummy $ac_prog; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1541   echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543   if test -n "$ac_ct_CC"; then
1544   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1545 else
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549   IFS=$as_save_IFS
1550   test -z "$as_dir" && as_dir=.
1551   for ac_exec_ext in '' $ac_executable_extensions; do
1552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553     ac_cv_prog_ac_ct_CC="$ac_prog"
1554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555     break 2
1556   fi
1557 done
1558 done
1559
1560 fi
1561 fi
1562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1563 if test -n "$ac_ct_CC"; then
1564   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1565 echo "${ECHO_T}$ac_ct_CC" >&6
1566 else
1567   echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1569 fi
1570
1571   test -n "$ac_ct_CC" && break
1572 done
1573
1574   CC=$ac_ct_CC
1575 fi
1576
1577 fi
1578
1579
1580 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1581 See \`config.log' for more details." >&5
1582 echo "$as_me: error: no acceptable C compiler found in \$PATH
1583 See \`config.log' for more details." >&2;}
1584    { (exit 1); exit 1; }; }
1585
1586 # Provide some information about the compiler.
1587 echo "$as_me:$LINENO:" \
1588      "checking for C compiler version" >&5
1589 ac_compiler=`set X $ac_compile; echo $2`
1590 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1591   (eval $ac_compiler --version </dev/null >&5) 2>&5
1592   ac_status=$?
1593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1594   (exit $ac_status); }
1595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1596   (eval $ac_compiler -v </dev/null >&5) 2>&5
1597   ac_status=$?
1598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1599   (exit $ac_status); }
1600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1601   (eval $ac_compiler -V </dev/null >&5) 2>&5
1602   ac_status=$?
1603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1604   (exit $ac_status); }
1605
1606 cat >conftest.$ac_ext <<_ACEOF
1607 /* confdefs.h.  */
1608 _ACEOF
1609 cat confdefs.h >>conftest.$ac_ext
1610 cat >>conftest.$ac_ext <<_ACEOF
1611 /* end confdefs.h.  */
1612
1613 int
1614 main ()
1615 {
1616
1617   ;
1618   return 0;
1619 }
1620 _ACEOF
1621 ac_clean_files_save=$ac_clean_files
1622 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1623 # Try to create an executable without -o first, disregard a.out.
1624 # It will help us diagnose broken compilers, and finding out an intuition
1625 # of exeext.
1626 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1627 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1628 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1629 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1630   (eval $ac_link_default) 2>&5
1631   ac_status=$?
1632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1633   (exit $ac_status); }; then
1634   # Find the output, starting from the most likely.  This scheme is
1635 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1636 # resort.
1637
1638 # Be careful to initialize this variable, since it used to be cached.
1639 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1640 ac_cv_exeext=
1641 # b.out is created by i960 compilers.
1642 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1643 do
1644   test -f "$ac_file" || continue
1645   case $ac_file in
1646     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1647         ;;
1648     conftest.$ac_ext )
1649         # This is the source file.
1650         ;;
1651     [ab].out )
1652         # We found the default executable, but exeext='' is most
1653         # certainly right.
1654         break;;
1655     *.* )
1656         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1657         # FIXME: I believe we export ac_cv_exeext for Libtool,
1658         # but it would be cool to find out if it's true.  Does anybody
1659         # maintain Libtool? --akim.
1660         export ac_cv_exeext
1661         break;;
1662     * )
1663         break;;
1664   esac
1665 done
1666 else
1667   echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1671 See \`config.log' for more details." >&5
1672 echo "$as_me: error: C compiler cannot create executables
1673 See \`config.log' for more details." >&2;}
1674    { (exit 77); exit 77; }; }
1675 fi
1676
1677 ac_exeext=$ac_cv_exeext
1678 echo "$as_me:$LINENO: result: $ac_file" >&5
1679 echo "${ECHO_T}$ac_file" >&6
1680
1681 # Check the compiler produces executables we can run.  If not, either
1682 # the compiler is broken, or we cross compile.
1683 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1684 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1685 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1686 # If not cross compiling, check that we can run a simple program.
1687 if test "$cross_compiling" != yes; then
1688   if { ac_try='./$ac_file'
1689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1690   (eval $ac_try) 2>&5
1691   ac_status=$?
1692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693   (exit $ac_status); }; }; then
1694     cross_compiling=no
1695   else
1696     if test "$cross_compiling" = maybe; then
1697         cross_compiling=yes
1698     else
1699         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1700 If you meant to cross compile, use \`--host'.
1701 See \`config.log' for more details." >&5
1702 echo "$as_me: error: cannot run C compiled programs.
1703 If you meant to cross compile, use \`--host'.
1704 See \`config.log' for more details." >&2;}
1705    { (exit 1); exit 1; }; }
1706     fi
1707   fi
1708 fi
1709 echo "$as_me:$LINENO: result: yes" >&5
1710 echo "${ECHO_T}yes" >&6
1711
1712 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1713 ac_clean_files=$ac_clean_files_save
1714 # Check the compiler produces executables we can run.  If not, either
1715 # the compiler is broken, or we cross compile.
1716 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1717 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1718 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1719 echo "${ECHO_T}$cross_compiling" >&6
1720
1721 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1722 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1724   (eval $ac_link) 2>&5
1725   ac_status=$?
1726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727   (exit $ac_status); }; then
1728   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1729 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1730 # work properly (i.e., refer to `conftest.exe'), while it won't with
1731 # `rm'.
1732 for ac_file in conftest.exe conftest conftest.*; do
1733   test -f "$ac_file" || continue
1734   case $ac_file in
1735     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1736     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1737           export ac_cv_exeext
1738           break;;
1739     * ) break;;
1740   esac
1741 done
1742 else
1743   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1744 See \`config.log' for more details." >&5
1745 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1746 See \`config.log' for more details." >&2;}
1747    { (exit 1); exit 1; }; }
1748 fi
1749
1750 rm -f conftest$ac_cv_exeext
1751 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1752 echo "${ECHO_T}$ac_cv_exeext" >&6
1753
1754 rm -f conftest.$ac_ext
1755 EXEEXT=$ac_cv_exeext
1756 ac_exeext=$EXEEXT
1757 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1758 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1759 if test "${ac_cv_objext+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   cat >conftest.$ac_ext <<_ACEOF
1763 /* confdefs.h.  */
1764 _ACEOF
1765 cat confdefs.h >>conftest.$ac_ext
1766 cat >>conftest.$ac_ext <<_ACEOF
1767 /* end confdefs.h.  */
1768
1769 int
1770 main ()
1771 {
1772
1773   ;
1774   return 0;
1775 }
1776 _ACEOF
1777 rm -f conftest.o conftest.obj
1778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1779   (eval $ac_compile) 2>&5
1780   ac_status=$?
1781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782   (exit $ac_status); }; then
1783   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1784   case $ac_file in
1785     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1786     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1787        break;;
1788   esac
1789 done
1790 else
1791   echo "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1795 See \`config.log' for more details." >&5
1796 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1797 See \`config.log' for more details." >&2;}
1798    { (exit 1); exit 1; }; }
1799 fi
1800
1801 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1802 fi
1803 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1804 echo "${ECHO_T}$ac_cv_objext" >&6
1805 OBJEXT=$ac_cv_objext
1806 ac_objext=$OBJEXT
1807 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1808 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1809 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1810   echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812   cat >conftest.$ac_ext <<_ACEOF
1813 /* confdefs.h.  */
1814 _ACEOF
1815 cat confdefs.h >>conftest.$ac_ext
1816 cat >>conftest.$ac_ext <<_ACEOF
1817 /* end confdefs.h.  */
1818
1819 int
1820 main ()
1821 {
1822 #ifndef __GNUC__
1823        choke me
1824 #endif
1825
1826   ;
1827   return 0;
1828 }
1829 _ACEOF
1830 rm -f conftest.$ac_objext
1831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1832   (eval $ac_compile) 2>conftest.er1
1833   ac_status=$?
1834   grep -v '^ *+' conftest.er1 >conftest.err
1835   rm -f conftest.er1
1836   cat conftest.err >&5
1837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838   (exit $ac_status); } &&
1839          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1841   (eval $ac_try) 2>&5
1842   ac_status=$?
1843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844   (exit $ac_status); }; } &&
1845          { ac_try='test -s conftest.$ac_objext'
1846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847   (eval $ac_try) 2>&5
1848   ac_status=$?
1849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850   (exit $ac_status); }; }; then
1851   ac_compiler_gnu=yes
1852 else
1853   echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_compiler_gnu=no
1857 fi
1858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1860
1861 fi
1862 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1863 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1864 GCC=`test $ac_compiler_gnu = yes && echo yes`
1865 ac_test_CFLAGS=${CFLAGS+set}
1866 ac_save_CFLAGS=$CFLAGS
1867 CFLAGS="-g"
1868 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1869 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1870 if test "${ac_cv_prog_cc_g+set}" = set; then
1871   echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873   cat >conftest.$ac_ext <<_ACEOF
1874 /* confdefs.h.  */
1875 _ACEOF
1876 cat confdefs.h >>conftest.$ac_ext
1877 cat >>conftest.$ac_ext <<_ACEOF
1878 /* end confdefs.h.  */
1879
1880 int
1881 main ()
1882 {
1883
1884   ;
1885   return 0;
1886 }
1887 _ACEOF
1888 rm -f conftest.$ac_objext
1889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1890   (eval $ac_compile) 2>conftest.er1
1891   ac_status=$?
1892   grep -v '^ *+' conftest.er1 >conftest.err
1893   rm -f conftest.er1
1894   cat conftest.err >&5
1895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896   (exit $ac_status); } &&
1897          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1899   (eval $ac_try) 2>&5
1900   ac_status=$?
1901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902   (exit $ac_status); }; } &&
1903          { ac_try='test -s conftest.$ac_objext'
1904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1905   (eval $ac_try) 2>&5
1906   ac_status=$?
1907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908   (exit $ac_status); }; }; then
1909   ac_cv_prog_cc_g=yes
1910 else
1911   echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_cv_prog_cc_g=no
1915 fi
1916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1917 fi
1918 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1919 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1920 if test "$ac_test_CFLAGS" = set; then
1921   CFLAGS=$ac_save_CFLAGS
1922 elif test $ac_cv_prog_cc_g = yes; then
1923   if test "$GCC" = yes; then
1924     CFLAGS="-g -O2"
1925   else
1926     CFLAGS="-g"
1927   fi
1928 else
1929   if test "$GCC" = yes; then
1930     CFLAGS="-O2"
1931   else
1932     CFLAGS=
1933   fi
1934 fi
1935 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1936 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1937 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   ac_cv_prog_cc_stdc=no
1941 ac_save_CC=$CC
1942 cat >conftest.$ac_ext <<_ACEOF
1943 /* confdefs.h.  */
1944 _ACEOF
1945 cat confdefs.h >>conftest.$ac_ext
1946 cat >>conftest.$ac_ext <<_ACEOF
1947 /* end confdefs.h.  */
1948 #include <stdarg.h>
1949 #include <stdio.h>
1950 #include <sys/types.h>
1951 #include <sys/stat.h>
1952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1953 struct buf { int x; };
1954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1955 static char *e (p, i)
1956      char **p;
1957      int i;
1958 {
1959   return p[i];
1960 }
1961 static char *f (char * (*g) (char **, int), char **p, ...)
1962 {
1963   char *s;
1964   va_list v;
1965   va_start (v,p);
1966   s = g (p, va_arg (v,int));
1967   va_end (v);
1968   return s;
1969 }
1970
1971 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1972    function prototypes and stuff, but not '\xHH' hex character constants.
1973    These don't provoke an error unfortunately, instead are silently treated
1974    as 'x'.  The following induces an error, until -std1 is added to get
1975    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1976    array size at least.  It's necessary to write '\x00'==0 to get something
1977    that's true only with -std1.  */
1978 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1979
1980 int test (int i, double x);
1981 struct s1 {int (*f) (int a);};
1982 struct s2 {int (*f) (double a);};
1983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1984 int argc;
1985 char **argv;
1986 int
1987 main ()
1988 {
1989 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1990   ;
1991   return 0;
1992 }
1993 _ACEOF
1994 # Don't try gcc -ansi; that turns off useful extensions and
1995 # breaks some systems' header files.
1996 # AIX                   -qlanglvl=ansi
1997 # Ultrix and OSF/1      -std1
1998 # HP-UX 10.20 and later -Ae
1999 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2000 # SVR4                  -Xc -D__EXTENSIONS__
2001 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2002 do
2003   CC="$ac_save_CC $ac_arg"
2004   rm -f conftest.$ac_objext
2005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2006   (eval $ac_compile) 2>conftest.er1
2007   ac_status=$?
2008   grep -v '^ *+' conftest.er1 >conftest.err
2009   rm -f conftest.er1
2010   cat conftest.err >&5
2011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012   (exit $ac_status); } &&
2013          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2015   (eval $ac_try) 2>&5
2016   ac_status=$?
2017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018   (exit $ac_status); }; } &&
2019          { ac_try='test -s conftest.$ac_objext'
2020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021   (eval $ac_try) 2>&5
2022   ac_status=$?
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); }; }; then
2025   ac_cv_prog_cc_stdc=$ac_arg
2026 break
2027 else
2028   echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2030
2031 fi
2032 rm -f conftest.err conftest.$ac_objext
2033 done
2034 rm -f conftest.$ac_ext conftest.$ac_objext
2035 CC=$ac_save_CC
2036
2037 fi
2038
2039 case "x$ac_cv_prog_cc_stdc" in
2040   x|xno)
2041     echo "$as_me:$LINENO: result: none needed" >&5
2042 echo "${ECHO_T}none needed" >&6 ;;
2043   *)
2044     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2045 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2046     CC="$CC $ac_cv_prog_cc_stdc" ;;
2047 esac
2048
2049 # Some people use a C++ compiler to compile C.  Since we use `exit',
2050 # in C++ we need to declare it.  In case someone uses the same compiler
2051 # for both compiling C and C++ we need to have the C++ compiler decide
2052 # the declaration of exit, since it's the most demanding environment.
2053 cat >conftest.$ac_ext <<_ACEOF
2054 #ifndef __cplusplus
2055   choke me
2056 #endif
2057 _ACEOF
2058 rm -f conftest.$ac_objext
2059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2060   (eval $ac_compile) 2>conftest.er1
2061   ac_status=$?
2062   grep -v '^ *+' conftest.er1 >conftest.err
2063   rm -f conftest.er1
2064   cat conftest.err >&5
2065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066   (exit $ac_status); } &&
2067          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069   (eval $ac_try) 2>&5
2070   ac_status=$?
2071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072   (exit $ac_status); }; } &&
2073          { ac_try='test -s conftest.$ac_objext'
2074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075   (eval $ac_try) 2>&5
2076   ac_status=$?
2077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078   (exit $ac_status); }; }; then
2079   for ac_declaration in \
2080    '' \
2081    'extern "C" void std::exit (int) throw (); using std::exit;' \
2082    'extern "C" void std::exit (int); using std::exit;' \
2083    'extern "C" void exit (int) throw ();' \
2084    'extern "C" void exit (int);' \
2085    'void exit (int);'
2086 do
2087   cat >conftest.$ac_ext <<_ACEOF
2088 /* confdefs.h.  */
2089 _ACEOF
2090 cat confdefs.h >>conftest.$ac_ext
2091 cat >>conftest.$ac_ext <<_ACEOF
2092 /* end confdefs.h.  */
2093 $ac_declaration
2094 #include <stdlib.h>
2095 int
2096 main ()
2097 {
2098 exit (42);
2099   ;
2100   return 0;
2101 }
2102 _ACEOF
2103 rm -f conftest.$ac_objext
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105   (eval $ac_compile) 2>conftest.er1
2106   ac_status=$?
2107   grep -v '^ *+' conftest.er1 >conftest.err
2108   rm -f conftest.er1
2109   cat conftest.err >&5
2110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111   (exit $ac_status); } &&
2112          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114   (eval $ac_try) 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }; } &&
2118          { ac_try='test -s conftest.$ac_objext'
2119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120   (eval $ac_try) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }; }; then
2124   :
2125 else
2126   echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 continue
2130 fi
2131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2132   cat >conftest.$ac_ext <<_ACEOF
2133 /* confdefs.h.  */
2134 _ACEOF
2135 cat confdefs.h >>conftest.$ac_ext
2136 cat >>conftest.$ac_ext <<_ACEOF
2137 /* end confdefs.h.  */
2138 $ac_declaration
2139 int
2140 main ()
2141 {
2142 exit (42);
2143   ;
2144   return 0;
2145 }
2146 _ACEOF
2147 rm -f conftest.$ac_objext
2148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149   (eval $ac_compile) 2>conftest.er1
2150   ac_status=$?
2151   grep -v '^ *+' conftest.er1 >conftest.err
2152   rm -f conftest.er1
2153   cat conftest.err >&5
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); } &&
2156          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158   (eval $ac_try) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; } &&
2162          { ac_try='test -s conftest.$ac_objext'
2163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164   (eval $ac_try) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; }; then
2168   break
2169 else
2170   echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2172
2173 fi
2174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2175 done
2176 rm -f conftest*
2177 if test -n "$ac_declaration"; then
2178   echo '#ifdef __cplusplus' >>confdefs.h
2179   echo $ac_declaration      >>confdefs.h
2180   echo '#endif'             >>confdefs.h
2181 fi
2182
2183 else
2184   echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 fi
2188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189 ac_ext=c
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194
2195 ac_aux_dir=
2196 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2197   if test -f $ac_dir/install-sh; then
2198     ac_aux_dir=$ac_dir
2199     ac_install_sh="$ac_aux_dir/install-sh -c"
2200     break
2201   elif test -f $ac_dir/install.sh; then
2202     ac_aux_dir=$ac_dir
2203     ac_install_sh="$ac_aux_dir/install.sh -c"
2204     break
2205   elif test -f $ac_dir/shtool; then
2206     ac_aux_dir=$ac_dir
2207     ac_install_sh="$ac_aux_dir/shtool install -c"
2208     break
2209   fi
2210 done
2211 if test -z "$ac_aux_dir"; then
2212   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2213 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2214    { (exit 1); exit 1; }; }
2215 fi
2216 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2217 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2218 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2219
2220 # Find a good install program.  We prefer a C program (faster),
2221 # so one script is as good as another.  But avoid the broken or
2222 # incompatible versions:
2223 # SysV /etc/install, /usr/sbin/install
2224 # SunOS /usr/etc/install
2225 # IRIX /sbin/install
2226 # AIX /bin/install
2227 # AmigaOS /C/install, which installs bootblocks on floppy discs
2228 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2229 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2230 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2231 # OS/2's system install, which has a completely different semantic
2232 # ./install, which can be erroneously created by make from ./install.sh.
2233 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2234 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2235 if test -z "$INSTALL"; then
2236 if test "${ac_cv_path_install+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244   # Account for people who put trailing slashes in PATH elements.
2245 case $as_dir/ in
2246   ./ | .// | /cC/* | \
2247   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2248   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2249   /usr/ucb/* ) ;;
2250   *)
2251     # OSF1 and SCO ODT 3.0 have their own names for install.
2252     # Don't use installbsd from OSF since it installs stuff as root
2253     # by default.
2254     for ac_prog in ginstall scoinst install; do
2255       for ac_exec_ext in '' $ac_executable_extensions; do
2256         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2257           if test $ac_prog = install &&
2258             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259             # AIX install.  It has an incompatible calling convention.
2260             :
2261           elif test $ac_prog = install &&
2262             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2263             # program-specific install script used by HP pwplus--don't use.
2264             :
2265           else
2266             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2267             break 3
2268           fi
2269         fi
2270       done
2271     done
2272     ;;
2273 esac
2274 done
2275
2276
2277 fi
2278   if test "${ac_cv_path_install+set}" = set; then
2279     INSTALL=$ac_cv_path_install
2280   else
2281     # As a last resort, use the slow shell script.  We don't cache a
2282     # path for INSTALL within a source directory, because that will
2283     # break other packages using the cache if that directory is
2284     # removed, or if the path is relative.
2285     INSTALL=$ac_install_sh
2286   fi
2287 fi
2288 echo "$as_me:$LINENO: result: $INSTALL" >&5
2289 echo "${ECHO_T}$INSTALL" >&6
2290
2291 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2292 # It thinks the first close brace ends the variable substitution.
2293 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2294
2295 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2296
2297 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2298
2299
2300
2301 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2302 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2303 if test "${ac_cv_c_const+set}" = set; then
2304   echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306   cat >conftest.$ac_ext <<_ACEOF
2307 /* confdefs.h.  */
2308 _ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h.  */
2312
2313 int
2314 main ()
2315 {
2316 /* FIXME: Include the comments suggested by Paul. */
2317 #ifndef __cplusplus
2318   /* Ultrix mips cc rejects this.  */
2319   typedef int charset[2];
2320   const charset x;
2321   /* SunOS 4.1.1 cc rejects this.  */
2322   char const *const *ccp;
2323   char **p;
2324   /* NEC SVR4.0.2 mips cc rejects this.  */
2325   struct point {int x, y;};
2326   static struct point const zero = {0,0};
2327   /* AIX XL C 1.02.0.0 rejects this.
2328      It does not let you subtract one const X* pointer from another in
2329      an arm of an if-expression whose if-part is not a constant
2330      expression */
2331   const char *g = "string";
2332   ccp = &g + (g ? g-g : 0);
2333   /* HPUX 7.0 cc rejects these. */
2334   ++ccp;
2335   p = (char**) ccp;
2336   ccp = (char const *const *) p;
2337   { /* SCO 3.2v4 cc rejects this.  */
2338     char *t;
2339     char const *s = 0 ? (char *) 0 : (char const *) 0;
2340
2341     *t++ = 0;
2342   }
2343   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2344     int x[] = {25, 17};
2345     const int *foo = &x[0];
2346     ++foo;
2347   }
2348   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2349     typedef const int *iptr;
2350     iptr p = 0;
2351     ++p;
2352   }
2353   { /* AIX XL C 1.02.0.0 rejects this saying
2354        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2355     struct s { int j; const int *ap[3]; };
2356     struct s *b; b->j = 5;
2357   }
2358   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2359     const int foo = 10;
2360   }
2361 #endif
2362
2363   ;
2364   return 0;
2365 }
2366 _ACEOF
2367 rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369   (eval $ac_compile) 2>conftest.er1
2370   ac_status=$?
2371   grep -v '^ *+' conftest.er1 >conftest.err
2372   rm -f conftest.er1
2373   cat conftest.err >&5
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); } &&
2376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378   (eval $ac_try) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; } &&
2382          { ac_try='test -s conftest.$ac_objext'
2383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384   (eval $ac_try) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; }; then
2388   ac_cv_c_const=yes
2389 else
2390   echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 ac_cv_c_const=no
2394 fi
2395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2396 fi
2397 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2398 echo "${ECHO_T}$ac_cv_c_const" >&6
2399 if test $ac_cv_c_const = no; then
2400
2401 cat >>confdefs.h <<\_ACEOF
2402 #define const
2403 _ACEOF
2404
2405 fi
2406
2407 echo "$as_me:$LINENO: checking for inline" >&5
2408 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2409 if test "${ac_cv_c_inline+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   ac_cv_c_inline=no
2413 for ac_kw in inline __inline__ __inline; do
2414   cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h.  */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h.  */
2420 #ifndef __cplusplus
2421 typedef int foo_t;
2422 static $ac_kw foo_t static_foo () {return 0; }
2423 $ac_kw foo_t foo () {return 0; }
2424 #endif
2425
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429   (eval $ac_compile) 2>conftest.er1
2430   ac_status=$?
2431   grep -v '^ *+' conftest.er1 >conftest.err
2432   rm -f conftest.er1
2433   cat conftest.err >&5
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); } &&
2436          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438   (eval $ac_try) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }; } &&
2442          { ac_try='test -s conftest.$ac_objext'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; }; then
2448   ac_cv_c_inline=$ac_kw; break
2449 else
2450   echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 fi
2454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 done
2456
2457 fi
2458 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2459 echo "${ECHO_T}$ac_cv_c_inline" >&6
2460
2461
2462 case $ac_cv_c_inline in
2463   inline | yes) ;;
2464   *)
2465     case $ac_cv_c_inline in
2466       no) ac_val=;;
2467       *) ac_val=$ac_cv_c_inline;;
2468     esac
2469     cat >>confdefs.h <<_ACEOF
2470 #ifndef __cplusplus
2471 #define inline $ac_val
2472 #endif
2473 _ACEOF
2474     ;;
2475 esac
2476
2477
2478 #####################################################################
2479 ##
2480 ## libm check
2481 ##
2482 #####################################################################
2483 M="No "
2484 echo "$as_me:$LINENO: checking for pow in -lm" >&5
2485 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
2486 if test "${ac_cv_lib_m_pow+set}" = set; then
2487   echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489   ac_check_lib_save_LIBS=$LIBS
2490 LIBS="-lm  $LIBS"
2491 cat >conftest.$ac_ext <<_ACEOF
2492 /* confdefs.h.  */
2493 _ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h.  */
2497
2498 /* Override any gcc2 internal prototype to avoid an error.  */
2499 #ifdef __cplusplus
2500 extern "C"
2501 #endif
2502 /* We use char because int might match the return type of a gcc2
2503    builtin and then its argument prototype would still apply.  */
2504 char pow ();
2505 int
2506 main ()
2507 {
2508 pow ();
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 rm -f conftest.$ac_objext conftest$ac_exeext
2514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2515   (eval $ac_link) 2>conftest.er1
2516   ac_status=$?
2517   grep -v '^ *+' conftest.er1 >conftest.err
2518   rm -f conftest.er1
2519   cat conftest.err >&5
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); } &&
2522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; } &&
2528          { ac_try='test -s conftest$ac_exeext'
2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530   (eval $ac_try) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; }; then
2534   ac_cv_lib_m_pow=yes
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539 ac_cv_lib_m_pow=no
2540 fi
2541 rm -f conftest.err conftest.$ac_objext \
2542       conftest$ac_exeext conftest.$ac_ext
2543 LIBS=$ac_check_lib_save_LIBS
2544 fi
2545 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
2546 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
2547 if test $ac_cv_lib_m_pow = yes; then
2548
2549   LIBM="-lm"
2550   M="Yes"
2551
2552 else
2553
2554     echo
2555     echo "*** Error: libm required ***"
2556     echo
2557     exit
2558
2559 fi
2560
2561
2562 #####################################################################
2563 ##
2564 ## verbose error strings
2565 ##
2566 #####################################################################
2567 # Check whether --enable-verbose-errors or --disable-verbose-errors was given.
2568 if test "${enable_verbose_errors+set}" = set; then
2569   enableval="$enable_verbose_errors"
2570
2571         if test x$enableval = xyes; then
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define VERBOSE_ERRORS "1"
2575 _ACEOF
2576
2577         fi
2578
2579 fi;
2580
2581 #####################################################################
2582 ##
2583 ## compile decisions
2584 ##
2585 #####################################################################
2586 COMPILE_LIBNL="Yes "
2587 LIBNL_LIB="$LIBM"
2588
2589
2590
2591                     ac_config_files="$ac_config_files Makefile.opts libnl-1.pc"
2592 cat >confcache <<\_ACEOF
2593 # This file is a shell script that caches the results of configure
2594 # tests run on this system so they can be shared between configure
2595 # scripts and configure runs, see configure's option --config-cache.
2596 # It is not useful on other systems.  If it contains results you don't
2597 # want to keep, you may remove or edit it.
2598 #
2599 # config.status only pays attention to the cache file if you give it
2600 # the --recheck option to rerun configure.
2601 #
2602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2604 # following values.
2605
2606 _ACEOF
2607
2608 # The following way of writing the cache mishandles newlines in values,
2609 # but we know of no workaround that is simple, portable, and efficient.
2610 # So, don't put newlines in cache variables' values.
2611 # Ultrix sh set writes to stderr and can't be redirected directly,
2612 # and sets the high bit in the cache file unless we assign to the vars.
2613 {
2614   (set) 2>&1 |
2615     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2616     *ac_space=\ *)
2617       # `set' does not quote correctly, so add quotes (double-quote
2618       # substitution turns \\\\ into \\, and sed turns \\ into \).
2619       sed -n \
2620         "s/'/'\\\\''/g;
2621           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2622       ;;
2623     *)
2624       # `set' quotes correctly as required by POSIX, so do not add quotes.
2625       sed -n \
2626         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2627       ;;
2628     esac;
2629 } |
2630   sed '
2631      t clear
2632      : clear
2633      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2634      t end
2635      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2636      : end' >>confcache
2637 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2638   if test -w $cache_file; then
2639     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2640     cat confcache >$cache_file
2641   else
2642     echo "not updating unwritable cache $cache_file"
2643   fi
2644 fi
2645 rm -f confcache
2646
2647 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2648 # Let make expand exec_prefix.
2649 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2650
2651 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2652 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2653 # trailing colons and then remove the whole line if VPATH becomes empty
2654 # (actually we leave an empty line to preserve line numbers).
2655 if test "x$srcdir" = x.; then
2656   ac_vpsub='/^[  ]*VPATH[        ]*=/{
2657 s/:*\$(srcdir):*/:/;
2658 s/:*\${srcdir}:*/:/;
2659 s/:*@srcdir@:*/:/;
2660 s/^\([^=]*=[     ]*\):*/\1/;
2661 s/:*$//;
2662 s/^[^=]*=[       ]*$//;
2663 }'
2664 fi
2665
2666 DEFS=-DHAVE_CONFIG_H
2667
2668 ac_libobjs=
2669 ac_ltlibobjs=
2670 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2671   # 1. Remove the extension, and $U if already installed.
2672   ac_i=`echo "$ac_i" |
2673          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2674   # 2. Add them.
2675   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2676   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2677 done
2678 LIBOBJS=$ac_libobjs
2679
2680 LTLIBOBJS=$ac_ltlibobjs
2681
2682
2683
2684 : ${CONFIG_STATUS=./config.status}
2685 ac_clean_files_save=$ac_clean_files
2686 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2687 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2688 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2689 cat >$CONFIG_STATUS <<_ACEOF
2690 #! $SHELL
2691 # Generated by $as_me.
2692 # Run this file to recreate the current configuration.
2693 # Compiler output produced by configure, useful for debugging
2694 # configure, is in config.log if it exists.
2695
2696 debug=false
2697 ac_cs_recheck=false
2698 ac_cs_silent=false
2699 SHELL=\${CONFIG_SHELL-$SHELL}
2700 _ACEOF
2701
2702 cat >>$CONFIG_STATUS <<\_ACEOF
2703 ## --------------------- ##
2704 ## M4sh Initialization.  ##
2705 ## --------------------- ##
2706
2707 # Be Bourne compatible
2708 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2709   emulate sh
2710   NULLCMD=:
2711   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2712   # is contrary to our usage.  Disable this feature.
2713   alias -g '${1+"$@"}'='"$@"'
2714 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2715   set -o posix
2716 fi
2717 DUALCASE=1; export DUALCASE # for MKS sh
2718
2719 # Support unset when possible.
2720 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2721   as_unset=unset
2722 else
2723   as_unset=false
2724 fi
2725
2726
2727 # Work around bugs in pre-3.0 UWIN ksh.
2728 $as_unset ENV MAIL MAILPATH
2729 PS1='$ '
2730 PS2='> '
2731 PS4='+ '
2732
2733 # NLS nuisances.
2734 for as_var in \
2735   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2736   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2737   LC_TELEPHONE LC_TIME
2738 do
2739   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2740     eval $as_var=C; export $as_var
2741   else
2742     $as_unset $as_var
2743   fi
2744 done
2745
2746 # Required to use basename.
2747 if expr a : '\(a\)' >/dev/null 2>&1; then
2748   as_expr=expr
2749 else
2750   as_expr=false
2751 fi
2752
2753 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2754   as_basename=basename
2755 else
2756   as_basename=false
2757 fi
2758
2759
2760 # Name of the executable.
2761 as_me=`$as_basename "$0" ||
2762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2763          X"$0" : 'X\(//\)$' \| \
2764          X"$0" : 'X\(/\)$' \| \
2765          .     : '\(.\)' 2>/dev/null ||
2766 echo X/"$0" |
2767     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2768           /^X\/\(\/\/\)$/{ s//\1/; q; }
2769           /^X\/\(\/\).*/{ s//\1/; q; }
2770           s/.*/./; q'`
2771
2772
2773 # PATH needs CR, and LINENO needs CR and PATH.
2774 # Avoid depending upon Character Ranges.
2775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2778 as_cr_digits='0123456789'
2779 as_cr_alnum=$as_cr_Letters$as_cr_digits
2780
2781 # The user is always right.
2782 if test "${PATH_SEPARATOR+set}" != set; then
2783   echo "#! /bin/sh" >conf$$.sh
2784   echo  "exit 0"   >>conf$$.sh
2785   chmod +x conf$$.sh
2786   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2787     PATH_SEPARATOR=';'
2788   else
2789     PATH_SEPARATOR=:
2790   fi
2791   rm -f conf$$.sh
2792 fi
2793
2794
2795   as_lineno_1=$LINENO
2796   as_lineno_2=$LINENO
2797   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2798   test "x$as_lineno_1" != "x$as_lineno_2" &&
2799   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
2800   # Find who we are.  Look in the path if we contain no path at all
2801   # relative or not.
2802   case $0 in
2803     *[\\/]* ) as_myself=$0 ;;
2804     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807   IFS=$as_save_IFS
2808   test -z "$as_dir" && as_dir=.
2809   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2810 done
2811
2812        ;;
2813   esac
2814   # We did not find ourselves, most probably we were run as `sh COMMAND'
2815   # in which case we are not to be found in the path.
2816   if test "x$as_myself" = x; then
2817     as_myself=$0
2818   fi
2819   if test ! -f "$as_myself"; then
2820     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2821 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2822    { (exit 1); exit 1; }; }
2823   fi
2824   case $CONFIG_SHELL in
2825   '')
2826     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831   for as_base in sh bash ksh sh5; do
2832          case $as_dir in
2833          /*)
2834            if ("$as_dir/$as_base" -c '
2835   as_lineno_1=$LINENO
2836   as_lineno_2=$LINENO
2837   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2838   test "x$as_lineno_1" != "x$as_lineno_2" &&
2839   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
2840              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2841              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2842              CONFIG_SHELL=$as_dir/$as_base
2843              export CONFIG_SHELL
2844              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2845            fi;;
2846          esac
2847        done
2848 done
2849 ;;
2850   esac
2851
2852   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2853   # uniformly replaced by the line number.  The first 'sed' inserts a
2854   # line-number line before each line; the second 'sed' does the real
2855   # work.  The second script uses 'N' to pair each line-number line
2856   # with the numbered line, and appends trailing '-' during
2857   # substitution so that $LINENO is not a special case at line end.
2858   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2859   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
2860   sed '=' <$as_myself |
2861     sed '
2862       N
2863       s,$,-,
2864       : loop
2865       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2866       t loop
2867       s,-$,,
2868       s,^['$as_cr_digits']*\n,,
2869     ' >$as_me.lineno &&
2870   chmod +x $as_me.lineno ||
2871     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2872 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2873    { (exit 1); exit 1; }; }
2874
2875   # Don't try to exec as it changes $[0], causing all sort of problems
2876   # (the dirname of $[0] is not the place where we might find the
2877   # original and so on.  Autoconf is especially sensible to this).
2878   . ./$as_me.lineno
2879   # Exit status is that of the last command.
2880   exit
2881 }
2882
2883
2884 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2885   *c*,-n*) ECHO_N= ECHO_C='
2886 ' ECHO_T='      ' ;;
2887   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2888   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
2889 esac
2890
2891 if expr a : '\(a\)' >/dev/null 2>&1; then
2892   as_expr=expr
2893 else
2894   as_expr=false
2895 fi
2896
2897 rm -f conf$$ conf$$.exe conf$$.file
2898 echo >conf$$.file
2899 if ln -s conf$$.file conf$$ 2>/dev/null; then
2900   # We could just check for DJGPP; but this test a) works b) is more generic
2901   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2902   if test -f conf$$.exe; then
2903     # Don't use ln at all; we don't have any links
2904     as_ln_s='cp -p'
2905   else
2906     as_ln_s='ln -s'
2907   fi
2908 elif ln conf$$.file conf$$ 2>/dev/null; then
2909   as_ln_s=ln
2910 else
2911   as_ln_s='cp -p'
2912 fi
2913 rm -f conf$$ conf$$.exe conf$$.file
2914
2915 if mkdir -p . 2>/dev/null; then
2916   as_mkdir_p=:
2917 else
2918   test -d ./-p && rmdir ./-p
2919   as_mkdir_p=false
2920 fi
2921
2922 as_executable_p="test -f"
2923
2924 # Sed expression to map a string onto a valid CPP name.
2925 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2926
2927 # Sed expression to map a string onto a valid variable name.
2928 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2929
2930
2931 # IFS
2932 # We need space, tab and new line, in precisely that order.
2933 as_nl='
2934 '
2935 IFS="   $as_nl"
2936
2937 # CDPATH.
2938 $as_unset CDPATH
2939
2940 exec 6>&1
2941
2942 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2943 # report actual input values of CONFIG_FILES etc. instead of their
2944 # values after options handling.  Logging --version etc. is OK.
2945 exec 5>>config.log
2946 {
2947   echo
2948   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2949 ## Running $as_me. ##
2950 _ASBOX
2951 } >&5
2952 cat >&5 <<_CSEOF
2953
2954 This file was extended by libnl $as_me 1.0-pre6, which was
2955 generated by GNU Autoconf 2.59.  Invocation command line was
2956
2957   CONFIG_FILES    = $CONFIG_FILES
2958   CONFIG_HEADERS  = $CONFIG_HEADERS
2959   CONFIG_LINKS    = $CONFIG_LINKS
2960   CONFIG_COMMANDS = $CONFIG_COMMANDS
2961   $ $0 $@
2962
2963 _CSEOF
2964 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2965 echo >&5
2966 _ACEOF
2967
2968 # Files that config.status was made for.
2969 if test -n "$ac_config_files"; then
2970   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2971 fi
2972
2973 if test -n "$ac_config_headers"; then
2974   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2975 fi
2976
2977 if test -n "$ac_config_links"; then
2978   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2979 fi
2980
2981 if test -n "$ac_config_commands"; then
2982   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2983 fi
2984
2985 cat >>$CONFIG_STATUS <<\_ACEOF
2986
2987 ac_cs_usage="\
2988 \`$as_me' instantiates files from templates according to the
2989 current configuration.
2990
2991 Usage: $0 [OPTIONS] [FILE]...
2992
2993   -h, --help       print this help, then exit
2994   -V, --version    print version number, then exit
2995   -q, --quiet      do not print progress messages
2996   -d, --debug      don't remove temporary files
2997       --recheck    update $as_me by reconfiguring in the same conditions
2998   --file=FILE[:TEMPLATE]
2999                    instantiate the configuration file FILE
3000   --header=FILE[:TEMPLATE]
3001                    instantiate the configuration header FILE
3002
3003 Configuration files:
3004 $config_files
3005
3006 Configuration headers:
3007 $config_headers
3008
3009 Report bugs to <bug-autoconf@gnu.org>."
3010 _ACEOF
3011
3012 cat >>$CONFIG_STATUS <<_ACEOF
3013 ac_cs_version="\\
3014 libnl config.status 1.0-pre6
3015 configured by $0, generated by GNU Autoconf 2.59,
3016   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3017
3018 Copyright (C) 2003 Free Software Foundation, Inc.
3019 This config.status script is free software; the Free Software Foundation
3020 gives unlimited permission to copy, distribute and modify it."
3021 srcdir=$srcdir
3022 INSTALL="$INSTALL"
3023 _ACEOF
3024
3025 cat >>$CONFIG_STATUS <<\_ACEOF
3026 # If no file are specified by the user, then we need to provide default
3027 # value.  By we need to know if files were specified by the user.
3028 ac_need_defaults=:
3029 while test $# != 0
3030 do
3031   case $1 in
3032   --*=*)
3033     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3034     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3035     ac_shift=:
3036     ;;
3037   -*)
3038     ac_option=$1
3039     ac_optarg=$2
3040     ac_shift=shift
3041     ;;
3042   *) # This is not an option, so the user has probably given explicit
3043      # arguments.
3044      ac_option=$1
3045      ac_need_defaults=false;;
3046   esac
3047
3048   case $ac_option in
3049   # Handling of the options.
3050 _ACEOF
3051 cat >>$CONFIG_STATUS <<\_ACEOF
3052   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3053     ac_cs_recheck=: ;;
3054   --version | --vers* | -V )
3055     echo "$ac_cs_version"; exit 0 ;;
3056   --he | --h)
3057     # Conflict between --help and --header
3058     { { echo "$as_me:$LINENO: error: ambiguous option: $1
3059 Try \`$0 --help' for more information." >&5
3060 echo "$as_me: error: ambiguous option: $1
3061 Try \`$0 --help' for more information." >&2;}
3062    { (exit 1); exit 1; }; };;
3063   --help | --hel | -h )
3064     echo "$ac_cs_usage"; exit 0 ;;
3065   --debug | --d* | -d )
3066     debug=: ;;
3067   --file | --fil | --fi | --f )
3068     $ac_shift
3069     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3070     ac_need_defaults=false;;
3071   --header | --heade | --head | --hea )
3072     $ac_shift
3073     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3074     ac_need_defaults=false;;
3075   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3076   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3077     ac_cs_silent=: ;;
3078
3079   # This is an error.
3080   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3081 Try \`$0 --help' for more information." >&5
3082 echo "$as_me: error: unrecognized option: $1
3083 Try \`$0 --help' for more information." >&2;}
3084    { (exit 1); exit 1; }; } ;;
3085
3086   *) ac_config_targets="$ac_config_targets $1" ;;
3087
3088   esac
3089   shift
3090 done
3091
3092 ac_configure_extra_args=
3093
3094 if $ac_cs_silent; then
3095   exec 6>/dev/null
3096   ac_configure_extra_args="$ac_configure_extra_args --silent"
3097 fi
3098
3099 _ACEOF
3100 cat >>$CONFIG_STATUS <<_ACEOF
3101 if \$ac_cs_recheck; then
3102   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3103   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3104 fi
3105
3106 _ACEOF
3107
3108
3109
3110
3111
3112 cat >>$CONFIG_STATUS <<\_ACEOF
3113 for ac_config_target in $ac_config_targets
3114 do
3115   case "$ac_config_target" in
3116   # Handling of arguments.
3117   "Makefile.opts" ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
3118   "libnl-1.pc" ) CONFIG_FILES="$CONFIG_FILES libnl-1.pc" ;;
3119   "lib/defs.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/defs.h" ;;
3120   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3121 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3122    { (exit 1); exit 1; }; };;
3123   esac
3124 done
3125
3126 # If the user did not use the arguments to specify the items to instantiate,
3127 # then the envvar interface is used.  Set only those that are not.
3128 # We use the long form for the default assignment because of an extremely
3129 # bizarre bug on SunOS 4.1.3.
3130 if $ac_need_defaults; then
3131   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3132   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3133 fi
3134
3135 # Have a temporary directory for convenience.  Make it in the build tree
3136 # simply because there is no reason to put it here, and in addition,
3137 # creating and moving files from /tmp can sometimes cause problems.
3138 # Create a temporary directory, and hook for its removal unless debugging.
3139 $debug ||
3140 {
3141   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3142   trap '{ (exit 1); exit 1; }' 1 2 13 15
3143 }
3144
3145 # Create a (secure) tmp directory for tmp files.
3146
3147 {
3148   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3149   test -n "$tmp" && test -d "$tmp"
3150 }  ||
3151 {
3152   tmp=./confstat$$-$RANDOM
3153   (umask 077 && mkdir $tmp)
3154 } ||
3155 {
3156    echo "$me: cannot create a temporary directory in ." >&2
3157    { (exit 1); exit 1; }
3158 }
3159
3160 _ACEOF
3161
3162 cat >>$CONFIG_STATUS <<_ACEOF
3163
3164 #
3165 # CONFIG_FILES section.
3166 #
3167
3168 # No need to generate the scripts if there are no CONFIG_FILES.
3169 # This happens for instance when ./config.status config.h
3170 if test -n "\$CONFIG_FILES"; then
3171   # Protect against being on the right side of a sed subst in config.status.
3172   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3173    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3174 s,@SHELL@,$SHELL,;t t
3175 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3176 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3177 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3178 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3179 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3180 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3181 s,@exec_prefix@,$exec_prefix,;t t
3182 s,@prefix@,$prefix,;t t
3183 s,@program_transform_name@,$program_transform_name,;t t
3184 s,@bindir@,$bindir,;t t
3185 s,@sbindir@,$sbindir,;t t
3186 s,@libexecdir@,$libexecdir,;t t
3187 s,@datadir@,$datadir,;t t
3188 s,@sysconfdir@,$sysconfdir,;t t
3189 s,@sharedstatedir@,$sharedstatedir,;t t
3190 s,@localstatedir@,$localstatedir,;t t
3191 s,@libdir@,$libdir,;t t
3192 s,@includedir@,$includedir,;t t
3193 s,@oldincludedir@,$oldincludedir,;t t
3194 s,@infodir@,$infodir,;t t
3195 s,@mandir@,$mandir,;t t
3196 s,@build_alias@,$build_alias,;t t
3197 s,@host_alias@,$host_alias,;t t
3198 s,@target_alias@,$target_alias,;t t
3199 s,@DEFS@,$DEFS,;t t
3200 s,@ECHO_C@,$ECHO_C,;t t
3201 s,@ECHO_N@,$ECHO_N,;t t
3202 s,@ECHO_T@,$ECHO_T,;t t
3203 s,@LIBS@,$LIBS,;t t
3204 s,@CC@,$CC,;t t
3205 s,@CFLAGS@,$CFLAGS,;t t
3206 s,@LDFLAGS@,$LDFLAGS,;t t
3207 s,@CPPFLAGS@,$CPPFLAGS,;t t
3208 s,@ac_ct_CC@,$ac_ct_CC,;t t
3209 s,@EXEEXT@,$EXEEXT,;t t
3210 s,@OBJEXT@,$OBJEXT,;t t
3211 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3212 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3213 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3214 s,@LIBNL_LIB@,$LIBNL_LIB,;t t
3215 s,@LIBOBJS@,$LIBOBJS,;t t
3216 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3217 CEOF
3218
3219 _ACEOF
3220
3221   cat >>$CONFIG_STATUS <<\_ACEOF
3222   # Split the substitutions into bite-sized pieces for seds with
3223   # small command number limits, like on Digital OSF/1 and HP-UX.
3224   ac_max_sed_lines=48
3225   ac_sed_frag=1 # Number of current file.
3226   ac_beg=1 # First line for current file.
3227   ac_end=$ac_max_sed_lines # Line after last line for current file.
3228   ac_more_lines=:
3229   ac_sed_cmds=
3230   while $ac_more_lines; do
3231     if test $ac_beg -gt 1; then
3232       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3233     else
3234       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3235     fi
3236     if test ! -s $tmp/subs.frag; then
3237       ac_more_lines=false
3238     else
3239       # The purpose of the label and of the branching condition is to
3240       # speed up the sed processing (if there are no `@' at all, there
3241       # is no need to browse any of the substitutions).
3242       # These are the two extra sed commands mentioned above.
3243       (echo ':t
3244   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3245       if test -z "$ac_sed_cmds"; then
3246         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3247       else
3248         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3249       fi
3250       ac_sed_frag=`expr $ac_sed_frag + 1`
3251       ac_beg=$ac_end
3252       ac_end=`expr $ac_end + $ac_max_sed_lines`
3253     fi
3254   done
3255   if test -z "$ac_sed_cmds"; then
3256     ac_sed_cmds=cat
3257   fi
3258 fi # test -n "$CONFIG_FILES"
3259
3260 _ACEOF
3261 cat >>$CONFIG_STATUS <<\_ACEOF
3262 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3263   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3264   case $ac_file in
3265   - | *:- | *:-:* ) # input from stdin
3266         cat >$tmp/stdin
3267         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3268         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3269   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3270         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3271   * )   ac_file_in=$ac_file.in ;;
3272   esac
3273
3274   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3275   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3277          X"$ac_file" : 'X\(//\)[^/]' \| \
3278          X"$ac_file" : 'X\(//\)$' \| \
3279          X"$ac_file" : 'X\(/\)' \| \
3280          .     : '\(.\)' 2>/dev/null ||
3281 echo X"$ac_file" |
3282     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3283           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3284           /^X\(\/\/\)$/{ s//\1/; q; }
3285           /^X\(\/\).*/{ s//\1/; q; }
3286           s/.*/./; q'`
3287   { if $as_mkdir_p; then
3288     mkdir -p "$ac_dir"
3289   else
3290     as_dir="$ac_dir"
3291     as_dirs=
3292     while test ! -d "$as_dir"; do
3293       as_dirs="$as_dir $as_dirs"
3294       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3296          X"$as_dir" : 'X\(//\)[^/]' \| \
3297          X"$as_dir" : 'X\(//\)$' \| \
3298          X"$as_dir" : 'X\(/\)' \| \
3299          .     : '\(.\)' 2>/dev/null ||
3300 echo X"$as_dir" |
3301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3302           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3303           /^X\(\/\/\)$/{ s//\1/; q; }
3304           /^X\(\/\).*/{ s//\1/; q; }
3305           s/.*/./; q'`
3306     done
3307     test ! -n "$as_dirs" || mkdir $as_dirs
3308   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3309 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3310    { (exit 1); exit 1; }; }; }
3311
3312   ac_builddir=.
3313
3314 if test "$ac_dir" != .; then
3315   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3316   # A "../" for each directory in $ac_dir_suffix.
3317   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3318 else
3319   ac_dir_suffix= ac_top_builddir=
3320 fi
3321
3322 case $srcdir in
3323   .)  # No --srcdir option.  We are building in place.
3324     ac_srcdir=.
3325     if test -z "$ac_top_builddir"; then
3326        ac_top_srcdir=.
3327     else
3328        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3329     fi ;;
3330   [\\/]* | ?:[\\/]* )  # Absolute path.
3331     ac_srcdir=$srcdir$ac_dir_suffix;
3332     ac_top_srcdir=$srcdir ;;
3333   *) # Relative path.
3334     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3335     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3336 esac
3337
3338 # Do not use `cd foo && pwd` to compute absolute paths, because
3339 # the directories may not exist.
3340 case `pwd` in
3341 .) ac_abs_builddir="$ac_dir";;
3342 *)
3343   case "$ac_dir" in
3344   .) ac_abs_builddir=`pwd`;;
3345   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3346   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3347   esac;;
3348 esac
3349 case $ac_abs_builddir in
3350 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3351 *)
3352   case ${ac_top_builddir}. in
3353   .) ac_abs_top_builddir=$ac_abs_builddir;;
3354   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3355   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3356   esac;;
3357 esac
3358 case $ac_abs_builddir in
3359 .) ac_abs_srcdir=$ac_srcdir;;
3360 *)
3361   case $ac_srcdir in
3362   .) ac_abs_srcdir=$ac_abs_builddir;;
3363   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3364   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3365   esac;;
3366 esac
3367 case $ac_abs_builddir in
3368 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3369 *)
3370   case $ac_top_srcdir in
3371   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3372   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3373   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3374   esac;;
3375 esac
3376
3377
3378   case $INSTALL in
3379   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3380   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3381   esac
3382
3383   # Let's still pretend it is `configure' which instantiates (i.e., don't
3384   # use $as_me), people would be surprised to read:
3385   #    /* config.h.  Generated by config.status.  */
3386   if test x"$ac_file" = x-; then
3387     configure_input=
3388   else
3389     configure_input="$ac_file.  "
3390   fi
3391   configure_input=$configure_input"Generated from `echo $ac_file_in |
3392                                      sed 's,.*/,,'` by configure."
3393
3394   # First look for the input files in the build tree, otherwise in the
3395   # src tree.
3396   ac_file_inputs=`IFS=:
3397     for f in $ac_file_in; do
3398       case $f in
3399       -) echo $tmp/stdin ;;
3400       [\\/$]*)
3401          # Absolute (can't be DOS-style, as IFS=:)
3402          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3403 echo "$as_me: error: cannot find input file: $f" >&2;}
3404    { (exit 1); exit 1; }; }
3405          echo "$f";;
3406       *) # Relative
3407          if test -f "$f"; then
3408            # Build tree
3409            echo "$f"
3410          elif test -f "$srcdir/$f"; then
3411            # Source tree
3412            echo "$srcdir/$f"
3413          else
3414            # /dev/null tree
3415            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3416 echo "$as_me: error: cannot find input file: $f" >&2;}
3417    { (exit 1); exit 1; }; }
3418          fi;;
3419       esac
3420     done` || { (exit 1); exit 1; }
3421
3422   if test x"$ac_file" != x-; then
3423     { echo "$as_me:$LINENO: creating $ac_file" >&5
3424 echo "$as_me: creating $ac_file" >&6;}
3425     rm -f "$ac_file"
3426   fi
3427 _ACEOF
3428 cat >>$CONFIG_STATUS <<_ACEOF
3429   sed "$ac_vpsub
3430 $extrasub
3431 _ACEOF
3432 cat >>$CONFIG_STATUS <<\_ACEOF
3433 :t
3434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3435 s,@configure_input@,$configure_input,;t t
3436 s,@srcdir@,$ac_srcdir,;t t
3437 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3438 s,@top_srcdir@,$ac_top_srcdir,;t t
3439 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3440 s,@builddir@,$ac_builddir,;t t
3441 s,@abs_builddir@,$ac_abs_builddir,;t t
3442 s,@top_builddir@,$ac_top_builddir,;t t
3443 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3444 s,@INSTALL@,$ac_INSTALL,;t t
3445 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3446   rm -f $tmp/stdin
3447   if test x"$ac_file" != x-; then
3448     mv $tmp/out $ac_file
3449   else
3450     cat $tmp/out
3451     rm -f $tmp/out
3452   fi
3453
3454 done
3455 _ACEOF
3456 cat >>$CONFIG_STATUS <<\_ACEOF
3457
3458 #
3459 # CONFIG_HEADER section.
3460 #
3461
3462 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3463 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3464 #
3465 # ac_d sets the value in "#define NAME VALUE" lines.
3466 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
3467 ac_dB='[         ].*$,\1#\2'
3468 ac_dC=' '
3469 ac_dD=',;t'
3470 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3471 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3472 ac_uB='$,\1#\2define\3'
3473 ac_uC=' '
3474 ac_uD=',;t'
3475
3476 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3477   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3478   case $ac_file in
3479   - | *:- | *:-:* ) # input from stdin
3480         cat >$tmp/stdin
3481         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3482         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3483   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3484         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3485   * )   ac_file_in=$ac_file.in ;;
3486   esac
3487
3488   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
3489 echo "$as_me: creating $ac_file" >&6;}
3490
3491   # First look for the input files in the build tree, otherwise in the
3492   # src tree.
3493   ac_file_inputs=`IFS=:
3494     for f in $ac_file_in; do
3495       case $f in
3496       -) echo $tmp/stdin ;;
3497       [\\/$]*)
3498          # Absolute (can't be DOS-style, as IFS=:)
3499          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3500 echo "$as_me: error: cannot find input file: $f" >&2;}
3501    { (exit 1); exit 1; }; }
3502          # Do quote $f, to prevent DOS paths from being IFS'd.
3503          echo "$f";;
3504       *) # Relative
3505          if test -f "$f"; then
3506            # Build tree
3507            echo "$f"
3508          elif test -f "$srcdir/$f"; then
3509            # Source tree
3510            echo "$srcdir/$f"
3511          else
3512            # /dev/null tree
3513            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3514 echo "$as_me: error: cannot find input file: $f" >&2;}
3515    { (exit 1); exit 1; }; }
3516          fi;;
3517       esac
3518     done` || { (exit 1); exit 1; }
3519   # Remove the trailing spaces.
3520   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
3521
3522 _ACEOF
3523
3524 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3525 # `conftest.undefs', that substitutes the proper values into
3526 # config.h.in to produce config.h.  The first handles `#define'
3527 # templates, and the second `#undef' templates.
3528 # And first: Protect against being on the right side of a sed subst in
3529 # config.status.  Protect against being in an unquoted here document
3530 # in config.status.
3531 rm -f conftest.defines conftest.undefs
3532 # Using a here document instead of a string reduces the quoting nightmare.
3533 # Putting comments in sed scripts is not portable.
3534 #
3535 # `end' is used to avoid that the second main sed command (meant for
3536 # 0-ary CPP macros) applies to n-ary macro definitions.
3537 # See the Autoconf documentation for `clear'.
3538 cat >confdef2sed.sed <<\_ACEOF
3539 s/[\\&,]/\\&/g
3540 s,[\\$`],\\&,g
3541 t clear
3542 : clear
3543 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
3544 t end
3545 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3546 : end
3547 _ACEOF
3548 # If some macros were called several times there might be several times
3549 # the same #defines, which is useless.  Nevertheless, we may not want to
3550 # sort them, since we want the *last* AC-DEFINE to be honored.
3551 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3552 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3553 rm -f confdef2sed.sed
3554
3555 # This sed command replaces #undef with comments.  This is necessary, for
3556 # example, in the case of _POSIX_SOURCE, which is predefined and required
3557 # on some systems where configure will not decide to define it.
3558 cat >>conftest.undefs <<\_ACEOF
3559 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3560 _ACEOF
3561
3562 # Break up conftest.defines because some shells have a limit on the size
3563 # of here documents, and old seds have small limits too (100 cmds).
3564 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3565 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3566 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3567 echo '  :' >>$CONFIG_STATUS
3568 rm -f conftest.tail
3569 while grep . conftest.defines >/dev/null
3570 do
3571   # Write a limited-size here document to $tmp/defines.sed.
3572   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3573   # Speed up: don't consider the non `#define' lines.
3574   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
3575   # Work around the forget-to-reset-the-flag bug.
3576   echo 't clr' >>$CONFIG_STATUS
3577   echo ': clr' >>$CONFIG_STATUS
3578   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3579   echo 'CEOF
3580   sed -f $tmp/defines.sed $tmp/in >$tmp/out
3581   rm -f $tmp/in
3582   mv $tmp/out $tmp/in
3583 ' >>$CONFIG_STATUS
3584   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3585   rm -f conftest.defines
3586   mv conftest.tail conftest.defines
3587 done
3588 rm -f conftest.defines
3589 echo '  fi # grep' >>$CONFIG_STATUS
3590 echo >>$CONFIG_STATUS
3591
3592 # Break up conftest.undefs because some shells have a limit on the size
3593 # of here documents, and old seds have small limits too (100 cmds).
3594 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
3595 rm -f conftest.tail
3596 while grep . conftest.undefs >/dev/null
3597 do
3598   # Write a limited-size here document to $tmp/undefs.sed.
3599   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3600   # Speed up: don't consider the non `#undef'
3601   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
3602   # Work around the forget-to-reset-the-flag bug.
3603   echo 't clr' >>$CONFIG_STATUS
3604   echo ': clr' >>$CONFIG_STATUS
3605   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3606   echo 'CEOF
3607   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3608   rm -f $tmp/in
3609   mv $tmp/out $tmp/in
3610 ' >>$CONFIG_STATUS
3611   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3612   rm -f conftest.undefs
3613   mv conftest.tail conftest.undefs
3614 done
3615 rm -f conftest.undefs
3616
3617 cat >>$CONFIG_STATUS <<\_ACEOF
3618   # Let's still pretend it is `configure' which instantiates (i.e., don't
3619   # use $as_me), people would be surprised to read:
3620   #    /* config.h.  Generated by config.status.  */
3621   if test x"$ac_file" = x-; then
3622     echo "/* Generated by configure.  */" >$tmp/config.h
3623   else
3624     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
3625   fi
3626   cat $tmp/in >>$tmp/config.h
3627   rm -f $tmp/in
3628   if test x"$ac_file" != x-; then
3629     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
3630       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
3631 echo "$as_me: $ac_file is unchanged" >&6;}
3632     else
3633       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3635          X"$ac_file" : 'X\(//\)[^/]' \| \
3636          X"$ac_file" : 'X\(//\)$' \| \
3637          X"$ac_file" : 'X\(/\)' \| \
3638          .     : '\(.\)' 2>/dev/null ||
3639 echo X"$ac_file" |
3640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3641           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3642           /^X\(\/\/\)$/{ s//\1/; q; }
3643           /^X\(\/\).*/{ s//\1/; q; }
3644           s/.*/./; q'`
3645       { if $as_mkdir_p; then
3646     mkdir -p "$ac_dir"
3647   else
3648     as_dir="$ac_dir"
3649     as_dirs=
3650     while test ! -d "$as_dir"; do
3651       as_dirs="$as_dir $as_dirs"
3652       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3654          X"$as_dir" : 'X\(//\)[^/]' \| \
3655          X"$as_dir" : 'X\(//\)$' \| \
3656          X"$as_dir" : 'X\(/\)' \| \
3657          .     : '\(.\)' 2>/dev/null ||
3658 echo X"$as_dir" |
3659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3660           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3661           /^X\(\/\/\)$/{ s//\1/; q; }
3662           /^X\(\/\).*/{ s//\1/; q; }
3663           s/.*/./; q'`
3664     done
3665     test ! -n "$as_dirs" || mkdir $as_dirs
3666   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3667 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3668    { (exit 1); exit 1; }; }; }
3669
3670       rm -f $ac_file
3671       mv $tmp/config.h $ac_file
3672     fi
3673   else
3674     cat $tmp/config.h
3675     rm -f $tmp/config.h
3676   fi
3677 done
3678 _ACEOF
3679
3680 cat >>$CONFIG_STATUS <<\_ACEOF
3681
3682 { (exit 0); exit 0; }
3683 _ACEOF
3684 chmod +x $CONFIG_STATUS
3685 ac_clean_files=$ac_clean_files_save
3686
3687
3688 # configure is writing to config.log, and then calls config.status.
3689 # config.status does its own redirection, appending to config.log.
3690 # Unfortunately, on DOS this fails, as config.log is still kept open
3691 # by configure, so config.status won't be able to write to it; its
3692 # output is simply discarded.  So we exec the FD to /dev/null,
3693 # effectively closing config.log, so it can be properly (re)opened and
3694 # appended to by config.status.  When coming back to configure, we
3695 # need to make the FD available again.
3696 if test "$no_create" != yes; then
3697   ac_cs_success=:
3698   ac_config_status_args=
3699   test "$silent" = yes &&
3700     ac_config_status_args="$ac_config_status_args --quiet"
3701   exec 5>/dev/null
3702   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3703   exec 5>>config.log
3704   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3705   # would make configure fail if this is the last instruction.
3706   $ac_cs_success || { (exit 1); exit 1; }
3707 fi
3708
3709
3710 #####################################################################
3711 ##
3712 ## status report
3713 ##
3714 #####################################################################
3715 echo "
3716 ----------------------------------------------------------------------
3717 SUMMARY:
3718
3719 Included in Compilation:
3720   libnl:   $COMPILE_LIBNL $LIBNL_LIB
3721
3722 Dependencies:
3723 bmon:
3724   libm             $M       (required)"