blob: 9df566653f36f2ed6939b31b9b49920048cc590e [file] [log] [blame]
Tomas Cejka96f4e612012-12-10 00:03:32 +01001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for mod_netconf 1.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530else
531 as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574exec 7<&0 </dev/null 6>&1
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581#
582# Initializations.
583#
584ac_default_prefix=/usr/local
585ac_clean_files=
586ac_config_libobj_dir=.
587LIBOBJS=
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594# Identity of this package.
595PACKAGE_NAME='mod_netconf'
596PACKAGE_TARNAME='mod_netconf'
597PACKAGE_VERSION='1.0'
598PACKAGE_STRING='mod_netconf 1.0'
599PACKAGE_BUGREPORT=''
600
601ac_unique_file="mod_netconf.c"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
605#ifdef HAVE_SYS_TYPES_H
606# include <sys/types.h>
607#endif
608#ifdef HAVE_SYS_STAT_H
609# include <sys/stat.h>
610#endif
611#ifdef STDC_HEADERS
612# include <stdlib.h>
613# include <stddef.h>
614#else
615# ifdef HAVE_STDLIB_H
616# include <stdlib.h>
617# endif
618#endif
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
625#ifdef HAVE_STRINGS_H
626# include <strings.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_UNISTD_H
635# include <unistd.h>
636#endif"
637
638ac_subst_vars='LTLIBOBJS
639LIBOBJS
Tomas Cejka689a1042013-01-16 15:08:25 +0100640ARCSID
641RCSID
Tomas Cejka96f4e612012-12-10 00:03:32 +0100642BUILDREQS
643REQS
644EGREP
645GREP
646CPP
647OBJEXT
648EXEEXT
649ac_ct_CC
650CPPFLAGS
651LDFLAGS
652CFLAGS
653CC
Tomas Cejkab3cc64f2013-05-03 19:44:54 +0200654LIBNETCONF_WITH
655LIBNETCONF_LIBS
656LIBNETCONF_CFLAGS
657PKG_CONFIG
Tomas Cejka96f4e612012-12-10 00:03:32 +0100658RELEASE
659RPMBUILD
660INSTALL_DATA
661INSTALL_SCRIPT
662INSTALL_PROGRAM
663target_alias
664host_alias
665build_alias
666LIBS
667ECHO_T
668ECHO_N
669ECHO_C
670DEFS
671mandir
672localedir
673libdir
674psdir
675pdfdir
676dvidir
677htmldir
678infodir
679docdir
680oldincludedir
681includedir
682localstatedir
683sharedstatedir
684sysconfdir
685datadir
686datarootdir
687libexecdir
688sbindir
689bindir
690program_transform_name
691prefix
692exec_prefix
693PACKAGE_BUGREPORT
694PACKAGE_STRING
695PACKAGE_VERSION
696PACKAGE_TARNAME
697PACKAGE_NAME
698PATH_SEPARATOR
699SHELL'
700ac_subst_files=''
701ac_user_opts='
702enable_option_checking
Tomas Cejkab3cc64f2013-05-03 19:44:54 +0200703with_libnetconf
Tomas Cejkad340dbf2013-03-24 20:36:57 +0100704with_notifications
Tomas Cejka96f4e612012-12-10 00:03:32 +0100705'
706 ac_precious_vars='build_alias
707host_alias
708target_alias
Tomas Cejkab3cc64f2013-05-03 19:44:54 +0200709PKG_CONFIG
710LIBNETCONF_CFLAGS
711LIBNETCONF_LIBS
Tomas Cejka96f4e612012-12-10 00:03:32 +0100712CC
713CFLAGS
714LDFLAGS
715LIBS
716CPPFLAGS
717CPP'
718
719
720# Initialize some variables set by options.
721ac_init_help=
722ac_init_version=false
723ac_unrecognized_opts=
724ac_unrecognized_sep=
725# The variables have the same names as the options, with
726# dashes changed to underlines.
727cache_file=/dev/null
728exec_prefix=NONE
729no_create=
730no_recursion=
731prefix=NONE
732program_prefix=NONE
733program_suffix=NONE
734program_transform_name=s,x,x,
735silent=
736site=
737srcdir=
738verbose=
739x_includes=NONE
740x_libraries=NONE
741
742# Installation directory options.
743# These are left unexpanded so users can "make install exec_prefix=/foo"
744# and all the variables that are supposed to be based on exec_prefix
745# by default will actually change.
746# Use braces instead of parens because sh, perl, etc. also accept them.
747# (The list follows the same order as the GNU Coding Standards.)
748bindir='${exec_prefix}/bin'
749sbindir='${exec_prefix}/sbin'
750libexecdir='${exec_prefix}/libexec'
751datarootdir='${prefix}/share'
752datadir='${datarootdir}'
753sysconfdir='${prefix}/etc'
754sharedstatedir='${prefix}/com'
755localstatedir='${prefix}/var'
756includedir='${prefix}/include'
757oldincludedir='/usr/include'
758docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
759infodir='${datarootdir}/info'
760htmldir='${docdir}'
761dvidir='${docdir}'
762pdfdir='${docdir}'
763psdir='${docdir}'
764libdir='${exec_prefix}/lib'
765localedir='${datarootdir}/locale'
766mandir='${datarootdir}/man'
767
768ac_prev=
769ac_dashdash=
770for ac_option
771do
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\$ac_option
775 ac_prev=
776 continue
777 fi
778
779 case $ac_option in
780 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781 *) ac_optarg=yes ;;
782 esac
783
784 # Accept the important Cygnus configure options, so we can diagnose typos.
785
786 case $ac_dashdash$ac_option in
787 --)
788 ac_dashdash=yes ;;
789
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
791 ac_prev=bindir ;;
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793 bindir=$ac_optarg ;;
794
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
799
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
806
807 --config-cache | -C)
808 cache_file=config.cache ;;
809
810 -datadir | --datadir | --datadi | --datad)
811 ac_prev=datadir ;;
812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
813 datadir=$ac_optarg ;;
814
815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
821
822 -disable-* | --disable-*)
823 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
827 { (exit 1); exit 1; }; }
828 ac_useropt_orig=$ac_useropt
829 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
830 case $ac_user_opts in
831 *"
832"enable_$ac_useropt"
833"*) ;;
834 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
835 ac_unrecognized_sep=', ';;
836 esac
837 eval enable_$ac_useropt=no ;;
838
839 -docdir | --docdir | --docdi | --doc | --do)
840 ac_prev=docdir ;;
841 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
842 docdir=$ac_optarg ;;
843
844 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845 ac_prev=dvidir ;;
846 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
847 dvidir=$ac_optarg ;;
848
849 -enable-* | --enable-*)
850 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
854 { (exit 1); exit 1; }; }
855 ac_useropt_orig=$ac_useropt
856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857 case $ac_user_opts in
858 *"
859"enable_$ac_useropt"
860"*) ;;
861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
862 ac_unrecognized_sep=', ';;
863 esac
864 eval enable_$ac_useropt=\$ac_optarg ;;
865
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
874
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
878
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
885
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
890
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
896
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
903
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
908
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
913
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
920
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
925
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
932
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
937
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
941
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
945
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
949
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
958
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
963
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
970
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
977
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
994
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
999
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1004
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1008
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1014
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1025
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1030
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1035
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1042
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1047
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1050
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1053
1054 -with-* | --with-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064"with_$ac_useropt"
1065"*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval with_$ac_useropt=\$ac_optarg ;;
1070
1071 -without-* | --without-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081"with_$ac_useropt"
1082"*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval with_$ac_useropt=no ;;
1087
1088 --x)
1089 # Obsolete; use --with-x.
1090 with_x=yes ;;
1091
1092 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093 | --x-incl | --x-inc | --x-in | --x-i)
1094 ac_prev=x_includes ;;
1095 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097 x_includes=$ac_optarg ;;
1098
1099 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101 ac_prev=x_libraries ;;
1102 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104 x_libraries=$ac_optarg ;;
1105
1106 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1107Try \`$0 --help' for more information." >&2
1108 { (exit 1); exit 1; }; }
1109 ;;
1110
1111 *=*)
1112 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1115 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1116 { (exit 1); exit 1; }; }
1117 eval $ac_envvar=\$ac_optarg
1118 export $ac_envvar ;;
1119
1120 *)
1121 # FIXME: should be removed in autoconf 3.0.
1122 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 ;;
1127
1128 esac
1129done
1130
1131if test -n "$ac_prev"; then
1132 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1134 { (exit 1); exit 1; }; }
1135fi
1136
1137if test -n "$ac_unrecognized_opts"; then
1138 case $enable_option_checking in
1139 no) ;;
1140 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1141 { (exit 1); exit 1; }; } ;;
1142 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 esac
1144fi
1145
1146# Check all directory arguments for consistency.
1147for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150 libdir localedir mandir
1151do
1152 eval ac_val=\$$ac_var
1153 # Remove trailing slashes.
1154 case $ac_val in
1155 */ )
1156 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1157 eval $ac_var=\$ac_val;;
1158 esac
1159 # Be sure to have absolute directory names.
1160 case $ac_val in
1161 [\\/$]* | ?:[\\/]* ) continue;;
1162 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163 esac
1164 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1165 { (exit 1); exit 1; }; }
1166done
1167
1168# There might be people who depend on the old broken behavior: `$host'
1169# used to hold the argument of --host etc.
1170# FIXME: To remove some day.
1171build=$build_alias
1172host=$host_alias
1173target=$target_alias
1174
1175# FIXME: To remove some day.
1176if test "x$host_alias" != x; then
1177 if test "x$build_alias" = x; then
1178 cross_compiling=maybe
1179 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1180 If a cross compiler is detected then cross compile mode will be used." >&2
1181 elif test "x$build_alias" != "x$host_alias"; then
1182 cross_compiling=yes
1183 fi
1184fi
1185
1186ac_tool_prefix=
1187test -n "$host_alias" && ac_tool_prefix=$host_alias-
1188
1189test "$silent" = yes && exec 6>/dev/null
1190
1191
1192ac_pwd=`pwd` && test -n "$ac_pwd" &&
1193ac_ls_di=`ls -di .` &&
1194ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1195 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1196 { (exit 1); exit 1; }; }
1197test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1198 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1199 { (exit 1); exit 1; }; }
1200
1201
1202# Find the source files, if location was not specified.
1203if test -z "$srcdir"; then
1204 ac_srcdir_defaulted=yes
1205 # Try the directory containing this script, then the parent directory.
1206 ac_confdir=`$as_dirname -- "$as_myself" ||
1207$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1208 X"$as_myself" : 'X\(//\)[^/]' \| \
1209 X"$as_myself" : 'X\(//\)$' \| \
1210 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1211$as_echo X"$as_myself" |
1212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\/\)[^/].*/{
1217 s//\1/
1218 q
1219 }
1220 /^X\(\/\/\)$/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\).*/{
1225 s//\1/
1226 q
1227 }
1228 s/.*/./; q'`
1229 srcdir=$ac_confdir
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 srcdir=..
1232 fi
1233else
1234 ac_srcdir_defaulted=no
1235fi
1236if test ! -r "$srcdir/$ac_unique_file"; then
1237 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1238 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1239 { (exit 1); exit 1; }; }
1240fi
1241ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1242ac_abs_confdir=`(
1243 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1244 { (exit 1); exit 1; }; }
1245 pwd)`
1246# When building in place, set srcdir=.
1247if test "$ac_abs_confdir" = "$ac_pwd"; then
1248 srcdir=.
1249fi
1250# Remove unnecessary trailing slashes from srcdir.
1251# Double slashes in file names in object file debugging info
1252# mess up M-x gdb in Emacs.
1253case $srcdir in
1254*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255esac
1256for ac_var in $ac_precious_vars; do
1257 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_env_${ac_var}_value=\$${ac_var}
1259 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1261done
1262
1263#
1264# Report the --help message.
1265#
1266if test "$ac_init_help" = "long"; then
1267 # Omit some internal or obsolete options to make the list less imposing.
1268 # This message is too long to be a string in the A/UX 3.1 sh.
1269 cat <<_ACEOF
1270\`configure' configures mod_netconf 1.0 to adapt to many kinds of systems.
1271
1272Usage: $0 [OPTION]... [VAR=VALUE]...
1273
1274To assign environment variables (e.g., CC, CFLAGS...), specify them as
1275VAR=VALUE. See below for descriptions of some of the useful variables.
1276
1277Defaults for the options are specified in brackets.
1278
1279Configuration:
1280 -h, --help display this help and exit
1281 --help=short display options specific to this package
1282 --help=recursive display the short help of all the included packages
1283 -V, --version display version information and exit
1284 -q, --quiet, --silent do not print \`checking...' messages
1285 --cache-file=FILE cache test results in FILE [disabled]
1286 -C, --config-cache alias for \`--cache-file=config.cache'
1287 -n, --no-create do not create output files
1288 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1289
1290Installation directories:
1291 --prefix=PREFIX install architecture-independent files in PREFIX
1292 [$ac_default_prefix]
1293 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1294 [PREFIX]
1295
1296By default, \`make install' will install all the files in
1297\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1298an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1299for instance \`--prefix=\$HOME'.
1300
1301For better control, use the options below.
1302
1303Fine tuning of the installation directories:
1304 --bindir=DIR user executables [EPREFIX/bin]
1305 --sbindir=DIR system admin executables [EPREFIX/sbin]
1306 --libexecdir=DIR program executables [EPREFIX/libexec]
1307 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1308 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1309 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1310 --libdir=DIR object code libraries [EPREFIX/lib]
1311 --includedir=DIR C header files [PREFIX/include]
1312 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1313 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1314 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1315 --infodir=DIR info documentation [DATAROOTDIR/info]
1316 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1317 --mandir=DIR man documentation [DATAROOTDIR/man]
1318 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_netconf]
1319 --htmldir=DIR html documentation [DOCDIR]
1320 --dvidir=DIR dvi documentation [DOCDIR]
1321 --pdfdir=DIR pdf documentation [DOCDIR]
1322 --psdir=DIR ps documentation [DOCDIR]
1323_ACEOF
1324
1325 cat <<\_ACEOF
1326_ACEOF
1327fi
1328
1329if test -n "$ac_init_help"; then
1330 case $ac_init_help in
1331 short | recursive ) echo "Configuration of mod_netconf 1.0:";;
1332 esac
1333 cat <<\_ACEOF
1334
Tomas Cejkad340dbf2013-03-24 20:36:57 +01001335Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02001338 --with-libnetconf=PATH Set the path to libnetconf (usually local GIT
1339 repository)
1340 --without-notifications Disable notifications
Tomas Cejkad340dbf2013-03-24 20:36:57 +01001341
Tomas Cejka96f4e612012-12-10 00:03:32 +01001342Some influential environment variables:
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02001343 PKG_CONFIG path to pkg-config utility
1344 LIBNETCONF_CFLAGS
1345 C compiler flags for LIBNETCONF, overriding pkg-config
1346 LIBNETCONF_LIBS
1347 linker flags for LIBNETCONF, overriding pkg-config
Tomas Cejka96f4e612012-12-10 00:03:32 +01001348 CC C compiler command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1351 nonstandard directory <lib dir>
1352 LIBS libraries to pass to the linker, e.g. -l<library>
1353 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1354 you have headers in a nonstandard directory <include dir>
1355 CPP C preprocessor
1356
1357Use these variables to override the choices made by `configure' or to help
1358it to find libraries and programs with nonstandard names/locations.
1359
1360_ACEOF
1361ac_status=$?
1362fi
1363
1364if test "$ac_init_help" = "recursive"; then
1365 # If there are subdirs, report their specific --help.
1366 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1367 test -d "$ac_dir" ||
1368 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1369 continue
1370 ac_builddir=.
1371
1372case "$ac_dir" in
1373.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374*)
1375 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1376 # A ".." for each directory in $ac_dir_suffix.
1377 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1378 case $ac_top_builddir_sub in
1379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1381 esac ;;
1382esac
1383ac_abs_top_builddir=$ac_pwd
1384ac_abs_builddir=$ac_pwd$ac_dir_suffix
1385# for backward compatibility:
1386ac_top_builddir=$ac_top_build_prefix
1387
1388case $srcdir in
1389 .) # We are building in place.
1390 ac_srcdir=.
1391 ac_top_srcdir=$ac_top_builddir_sub
1392 ac_abs_top_srcdir=$ac_pwd ;;
1393 [\\/]* | ?:[\\/]* ) # Absolute name.
1394 ac_srcdir=$srcdir$ac_dir_suffix;
1395 ac_top_srcdir=$srcdir
1396 ac_abs_top_srcdir=$srcdir ;;
1397 *) # Relative name.
1398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1399 ac_top_srcdir=$ac_top_build_prefix$srcdir
1400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1401esac
1402ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1403
1404 cd "$ac_dir" || { ac_status=$?; continue; }
1405 # Check for guested configure.
1406 if test -f "$ac_srcdir/configure.gnu"; then
1407 echo &&
1408 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1409 elif test -f "$ac_srcdir/configure"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure" --help=recursive
1412 else
1413 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1414 fi || ac_status=$?
1415 cd "$ac_pwd" || { ac_status=$?; break; }
1416 done
1417fi
1418
1419test -n "$ac_init_help" && exit $ac_status
1420if $ac_init_version; then
1421 cat <<\_ACEOF
1422mod_netconf configure 1.0
1423generated by GNU Autoconf 2.63
1424
1425Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14262002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1427This configure script is free software; the Free Software Foundation
1428gives unlimited permission to copy, distribute and modify it.
1429_ACEOF
1430 exit
1431fi
1432cat >config.log <<_ACEOF
1433This file contains any messages produced by compilers while
1434running configure, to aid debugging if configure makes a mistake.
1435
1436It was created by mod_netconf $as_me 1.0, which was
1437generated by GNU Autoconf 2.63. Invocation command line was
1438
1439 $ $0 $@
1440
1441_ACEOF
1442exec 5>>config.log
1443{
1444cat <<_ASUNAME
1445## --------- ##
1446## Platform. ##
1447## --------- ##
1448
1449hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1450uname -m = `(uname -m) 2>/dev/null || echo unknown`
1451uname -r = `(uname -r) 2>/dev/null || echo unknown`
1452uname -s = `(uname -s) 2>/dev/null || echo unknown`
1453uname -v = `(uname -v) 2>/dev/null || echo unknown`
1454
1455/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1456/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1457
1458/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1459/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1460/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1461/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1462/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1463/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1464/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1465
1466_ASUNAME
1467
1468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469for as_dir in $PATH
1470do
1471 IFS=$as_save_IFS
1472 test -z "$as_dir" && as_dir=.
1473 $as_echo "PATH: $as_dir"
1474done
1475IFS=$as_save_IFS
1476
1477} >&5
1478
1479cat >&5 <<_ACEOF
1480
1481
1482## ----------- ##
1483## Core tests. ##
1484## ----------- ##
1485
1486_ACEOF
1487
1488
1489# Keep a trace of the command line.
1490# Strip out --no-create and --no-recursion so they do not pile up.
1491# Strip out --silent because we don't want to record it for future runs.
1492# Also quote any args containing shell meta-characters.
1493# Make two passes to allow for proper duplicate-argument suppression.
1494ac_configure_args=
1495ac_configure_args0=
1496ac_configure_args1=
1497ac_must_keep_next=false
1498for ac_pass in 1 2
1499do
1500 for ac_arg
1501 do
1502 case $ac_arg in
1503 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1505 | -silent | --silent | --silen | --sile | --sil)
1506 continue ;;
1507 *\'*)
1508 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1509 esac
1510 case $ac_pass in
1511 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1512 2)
1513 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1514 if test $ac_must_keep_next = true; then
1515 ac_must_keep_next=false # Got value, back to normal.
1516 else
1517 case $ac_arg in
1518 *=* | --config-cache | -C | -disable-* | --disable-* \
1519 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1520 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1521 | -with-* | --with-* | -without-* | --without-* | --x)
1522 case "$ac_configure_args0 " in
1523 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1524 esac
1525 ;;
1526 -* ) ac_must_keep_next=true ;;
1527 esac
1528 fi
1529 ac_configure_args="$ac_configure_args '$ac_arg'"
1530 ;;
1531 esac
1532 done
1533done
1534$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1535$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1536
1537# When interrupted or exit'd, cleanup temporary files, and complete
1538# config.log. We remove comments because anyway the quotes in there
1539# would cause problems or look ugly.
1540# WARNING: Use '\'' to represent an apostrophe within the trap.
1541# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1542trap 'exit_status=$?
1543 # Save into config.log some information that might help in debugging.
1544 {
1545 echo
1546
1547 cat <<\_ASBOX
1548## ---------------- ##
1549## Cache variables. ##
1550## ---------------- ##
1551_ASBOX
1552 echo
1553 # The following way of writing the cache mishandles newlines in values,
1554(
1555 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1556 eval ac_val=\$$ac_var
1557 case $ac_val in #(
1558 *${as_nl}*)
1559 case $ac_var in #(
1560 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1561$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1562 esac
1563 case $ac_var in #(
1564 _ | IFS | as_nl) ;; #(
1565 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1566 *) $as_unset $ac_var ;;
1567 esac ;;
1568 esac
1569 done
1570 (set) 2>&1 |
1571 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1572 *${as_nl}ac_space=\ *)
1573 sed -n \
1574 "s/'\''/'\''\\\\'\'''\''/g;
1575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1576 ;; #(
1577 *)
1578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1579 ;;
1580 esac |
1581 sort
1582)
1583 echo
1584
1585 cat <<\_ASBOX
1586## ----------------- ##
1587## Output variables. ##
1588## ----------------- ##
1589_ASBOX
1590 echo
1591 for ac_var in $ac_subst_vars
1592 do
1593 eval ac_val=\$$ac_var
1594 case $ac_val in
1595 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1596 esac
1597 $as_echo "$ac_var='\''$ac_val'\''"
1598 done | sort
1599 echo
1600
1601 if test -n "$ac_subst_files"; then
1602 cat <<\_ASBOX
1603## ------------------- ##
1604## File substitutions. ##
1605## ------------------- ##
1606_ASBOX
1607 echo
1608 for ac_var in $ac_subst_files
1609 do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 $as_echo "$ac_var='\''$ac_val'\''"
1615 done | sort
1616 echo
1617 fi
1618
1619 if test -s confdefs.h; then
1620 cat <<\_ASBOX
1621## ----------- ##
1622## confdefs.h. ##
1623## ----------- ##
1624_ASBOX
1625 echo
1626 cat confdefs.h
1627 echo
1628 fi
1629 test "$ac_signal" != 0 &&
1630 $as_echo "$as_me: caught signal $ac_signal"
1631 $as_echo "$as_me: exit $exit_status"
1632 } >&5
1633 rm -f core *.core core.conftest.* &&
1634 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1635 exit $exit_status
1636' 0
1637for ac_signal in 1 2 13 15; do
1638 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1639done
1640ac_signal=0
1641
1642# confdefs.h avoids OS command line length limits that DEFS can exceed.
1643rm -f -r conftest* confdefs.h
1644
1645# Predefined preprocessor variables.
1646
1647cat >>confdefs.h <<_ACEOF
1648#define PACKAGE_NAME "$PACKAGE_NAME"
1649_ACEOF
1650
1651
1652cat >>confdefs.h <<_ACEOF
1653#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1654_ACEOF
1655
1656
1657cat >>confdefs.h <<_ACEOF
1658#define PACKAGE_VERSION "$PACKAGE_VERSION"
1659_ACEOF
1660
1661
1662cat >>confdefs.h <<_ACEOF
1663#define PACKAGE_STRING "$PACKAGE_STRING"
1664_ACEOF
1665
1666
1667cat >>confdefs.h <<_ACEOF
1668#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1669_ACEOF
1670
1671
1672# Let the site file select an alternate cache file if it wants to.
1673# Prefer an explicitly selected file to automatically selected ones.
1674ac_site_file1=NONE
1675ac_site_file2=NONE
1676if test -n "$CONFIG_SITE"; then
1677 ac_site_file1=$CONFIG_SITE
1678elif test "x$prefix" != xNONE; then
1679 ac_site_file1=$prefix/share/config.site
1680 ac_site_file2=$prefix/etc/config.site
1681else
1682 ac_site_file1=$ac_default_prefix/share/config.site
1683 ac_site_file2=$ac_default_prefix/etc/config.site
1684fi
1685for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1686do
1687 test "x$ac_site_file" = xNONE && continue
1688 if test -r "$ac_site_file"; then
1689 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1691 sed 's/^/| /' "$ac_site_file" >&5
1692 . "$ac_site_file"
1693 fi
1694done
1695
1696if test -r "$cache_file"; then
1697 # Some versions of bash will fail to source /dev/null (special
1698 # files actually), so we avoid doing that.
1699 if test -f "$cache_file"; then
1700 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701$as_echo "$as_me: loading cache $cache_file" >&6;}
1702 case $cache_file in
1703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704 *) . "./$cache_file";;
1705 esac
1706 fi
1707else
1708 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709$as_echo "$as_me: creating cache $cache_file" >&6;}
1710 >$cache_file
1711fi
1712
1713# Check that the precious variables saved in the cache have kept the same
1714# value.
1715ac_cache_corrupted=false
1716for ac_var in $ac_precious_vars; do
1717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718 eval ac_new_set=\$ac_env_${ac_var}_set
1719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720 eval ac_new_val=\$ac_env_${ac_var}_value
1721 case $ac_old_set,$ac_new_set in
1722 set,)
1723 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1724$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725 ac_cache_corrupted=: ;;
1726 ,set)
1727 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1728$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1729 ac_cache_corrupted=: ;;
1730 ,);;
1731 *)
1732 if test "x$ac_old_val" != "x$ac_new_val"; then
1733 # differences in whitespace do not lead to failure.
1734 ac_old_val_w=`echo x $ac_old_val`
1735 ac_new_val_w=`echo x $ac_new_val`
1736 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1737 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1738$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1739 ac_cache_corrupted=:
1740 else
1741 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1742$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1743 eval $ac_var=\$ac_old_val
1744 fi
1745 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1746$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1747 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1748$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1749 fi;;
1750 esac
1751 # Pass precious variables to config.status.
1752 if test "$ac_new_set" = set; then
1753 case $ac_new_val in
1754 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 *) ac_arg=$ac_var=$ac_new_val ;;
1756 esac
1757 case " $ac_configure_args " in
1758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1759 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1760 esac
1761 fi
1762done
1763if $ac_cache_corrupted; then
1764 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1766 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1767$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1768 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1769$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1770 { (exit 1); exit 1; }; }
1771fi
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797ac_ext=c
1798ac_cpp='$CPP $CPPFLAGS'
1799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801ac_compiler_gnu=$ac_cv_c_compiler_gnu
1802
1803
1804
1805
1806# Checks for programs.
1807#AC_PROG_CC
1808ac_aux_dir=
1809for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1810 if test -f "$ac_dir/install-sh"; then
1811 ac_aux_dir=$ac_dir
1812 ac_install_sh="$ac_aux_dir/install-sh -c"
1813 break
1814 elif test -f "$ac_dir/install.sh"; then
1815 ac_aux_dir=$ac_dir
1816 ac_install_sh="$ac_aux_dir/install.sh -c"
1817 break
1818 elif test -f "$ac_dir/shtool"; then
1819 ac_aux_dir=$ac_dir
1820 ac_install_sh="$ac_aux_dir/shtool install -c"
1821 break
1822 fi
1823done
1824if test -z "$ac_aux_dir"; then
1825 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1826$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1827 { (exit 1); exit 1; }; }
1828fi
1829
1830# These three variables are undocumented and unsupported,
1831# and are intended to be withdrawn in a future Autoconf release.
1832# They can cause serious problems if a builder's source tree is in a directory
1833# whose full name contains unusual characters.
1834ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1835ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1836ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1837
1838
1839# Find a good install program. We prefer a C program (faster),
1840# so one script is as good as another. But avoid the broken or
1841# incompatible versions:
1842# SysV /etc/install, /usr/sbin/install
1843# SunOS /usr/etc/install
1844# IRIX /sbin/install
1845# AIX /bin/install
1846# AmigaOS /C/install, which installs bootblocks on floppy discs
1847# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1848# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1849# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1850# OS/2's system install, which has a completely different semantic
1851# ./install, which can be erroneously created by make from ./install.sh.
1852# Reject install programs that cannot install multiple files.
1853{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1854$as_echo_n "checking for a BSD-compatible install... " >&6; }
1855if test -z "$INSTALL"; then
1856if test "${ac_cv_path_install+set}" = set; then
1857 $as_echo_n "(cached) " >&6
1858else
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 # Account for people who put trailing slashes in PATH elements.
1865case $as_dir/ in
1866 ./ | .// | /cC/* | \
1867 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1868 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1869 /usr/ucb/* ) ;;
1870 *)
1871 # OSF1 and SCO ODT 3.0 have their own names for install.
1872 # Don't use installbsd from OSF since it installs stuff as root
1873 # by default.
1874 for ac_prog in ginstall scoinst install; do
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1877 if test $ac_prog = install &&
1878 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1879 # AIX install. It has an incompatible calling convention.
1880 :
1881 elif test $ac_prog = install &&
1882 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1883 # program-specific install script used by HP pwplus--don't use.
1884 :
1885 else
1886 rm -rf conftest.one conftest.two conftest.dir
1887 echo one > conftest.one
1888 echo two > conftest.two
1889 mkdir conftest.dir
1890 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1891 test -s conftest.one && test -s conftest.two &&
1892 test -s conftest.dir/conftest.one &&
1893 test -s conftest.dir/conftest.two
1894 then
1895 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1896 break 3
1897 fi
1898 fi
1899 fi
1900 done
1901 done
1902 ;;
1903esac
1904
1905done
1906IFS=$as_save_IFS
1907
1908rm -rf conftest.one conftest.two conftest.dir
1909
1910fi
1911 if test "${ac_cv_path_install+set}" = set; then
1912 INSTALL=$ac_cv_path_install
1913 else
1914 # As a last resort, use the slow shell script. Don't cache a
1915 # value for INSTALL within a source directory, because that will
1916 # break other packages using the cache if that directory is
1917 # removed, or if the value is a relative name.
1918 INSTALL=$ac_install_sh
1919 fi
1920fi
1921{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1922$as_echo "$INSTALL" >&6; }
1923
1924# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1925# It thinks the first close brace ends the variable substitution.
1926test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1927
1928test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1929
1930test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1931
1932
1933# Check for rpmbuil
1934# Extract the first word of "rpmbuild", so it can be a program name with args.
1935set dummy rpmbuild; ac_word=$2
1936{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1937$as_echo_n "checking for $ac_word... " >&6; }
1938if test "${ac_cv_prog_RPMBUILD+set}" = set; then
1939 $as_echo_n "(cached) " >&6
1940else
1941 if test -n "$RPMBUILD"; then
1942 ac_cv_prog_RPMBUILD="$RPMBUILD" # Let the user override the test.
1943else
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1951 ac_cv_prog_RPMBUILD="rpmbuild"
1952 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955done
1956done
1957IFS=$as_save_IFS
1958
1959fi
1960fi
1961RPMBUILD=$ac_cv_prog_RPMBUILD
1962if test -n "$RPMBUILD"; then
1963 { $as_echo "$as_me:$LINENO: result: $RPMBUILD" >&5
1964$as_echo "$RPMBUILD" >&6; }
1965else
1966 { $as_echo "$as_me:$LINENO: result: no" >&5
1967$as_echo "no" >&6; }
1968fi
1969
1970
1971
1972RELEASE=1
1973
Tomas Cejkad340dbf2013-03-24 20:36:57 +01001974LIBS="-lnetconf -ljson"
Tomas Cejka96f4e612012-12-10 00:03:32 +01001975
Tomas Cejka689a1042013-01-16 15:08:25 +01001976if test "`git show > /dev/null 2>&1;echo $?`" = "0"; then
1977 RCSID="-DRCSID=\\\"\$(IDGIT)\\\""
Tomas Cejka689a1042013-01-16 15:08:25 +01001978 ARCSID="-DARCSID='\\\"\$(IDGIT)\\\"'"
Tomas Cejka689a1042013-01-16 15:08:25 +01001979else
1980 RCSID="-DRCSID=\\\"\$(IDNOGIT)\\\""
Tomas Cejka5064c232013-01-17 09:30:58 +01001981 ARCSID="-DARCSID='\\\"\$(IDNOGIT)\\\"'"
Tomas Cejka689a1042013-01-16 15:08:25 +01001982fi
1983
Tomas Cejka96f4e612012-12-10 00:03:32 +01001984REQS="$REQS httpd php json-c"
1985BUILDREQS="$BUILDREQS json-c-devel httpd-devel"
1986
1987# Checks for libraries.
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02001988# libnetconf
1989
1990
1991if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1992 if test -n "$ac_tool_prefix"; then
1993 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1994set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
1995{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1996$as_echo_n "checking for $ac_word... " >&6; }
1997if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1998 $as_echo_n "(cached) " >&6
1999else
2000 case $PKG_CONFIG in
2001 [\\/]* | ?:[\\/]*)
2002 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2003 ;;
2004 *)
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008 IFS=$as_save_IFS
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2012 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 break 2
2015 fi
2016done
2017done
2018IFS=$as_save_IFS
2019
2020 ;;
2021esac
2022fi
2023PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2024if test -n "$PKG_CONFIG"; then
2025 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2026$as_echo "$PKG_CONFIG" >&6; }
2027else
2028 { $as_echo "$as_me:$LINENO: result: no" >&5
2029$as_echo "no" >&6; }
2030fi
2031
2032
2033fi
2034if test -z "$ac_cv_path_PKG_CONFIG"; then
2035 ac_pt_PKG_CONFIG=$PKG_CONFIG
2036 # Extract the first word of "pkg-config", so it can be a program name with args.
2037set dummy pkg-config; ac_word=$2
2038{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2039$as_echo_n "checking for $ac_word... " >&6; }
2040if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2041 $as_echo_n "(cached) " >&6
2042else
2043 case $ac_pt_PKG_CONFIG in
2044 [\\/]* | ?:[\\/]*)
2045 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2046 ;;
2047 *)
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 break 2
2058 fi
2059done
2060done
2061IFS=$as_save_IFS
2062
2063 ;;
2064esac
2065fi
2066ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2067if test -n "$ac_pt_PKG_CONFIG"; then
2068 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2069$as_echo "$ac_pt_PKG_CONFIG" >&6; }
2070else
2071 { $as_echo "$as_me:$LINENO: result: no" >&5
2072$as_echo "no" >&6; }
2073fi
2074
2075 if test "x$ac_pt_PKG_CONFIG" = x; then
2076 PKG_CONFIG=""
2077 else
2078 case $cross_compiling:$ac_tool_warned in
2079yes:)
2080{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2082ac_tool_warned=yes ;;
2083esac
2084 PKG_CONFIG=$ac_pt_PKG_CONFIG
2085 fi
2086else
2087 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2088fi
2089
2090fi
2091if test -n "$PKG_CONFIG"; then
2092 _pkg_min_version=0.9.0
2093 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
2094$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2095 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2096 { $as_echo "$as_me:$LINENO: result: yes" >&5
2097$as_echo "yes" >&6; }
2098 else
2099 { $as_echo "$as_me:$LINENO: result: no" >&5
2100$as_echo "no" >&6; }
2101 PKG_CONFIG=""
2102 fi
2103
2104fi
2105
2106# Check whether --with-libnetconf was given.
2107if test "${with_libnetconf+set}" = set; then
2108 withval=$with_libnetconf; # local copy of libnetconf GIT repo with headers and binaries
2109 LIBNETCONF_CFLAGS="-I`cd $withval;pwd`"
2110 LIBNETCONF_LIBS="-L`cd $withval;pwd` -lnetconf"
2111 LIBNETCONF_WITH=" --with-libnetconf=$withval"
2112else
2113 # get info from pkg-config about installed package
2114
2115pkg_failed=no
2116{ $as_echo "$as_me:$LINENO: checking for LIBNETCONF" >&5
2117$as_echo_n "checking for LIBNETCONF... " >&6; }
2118
2119if test -n "$LIBNETCONF_CFLAGS"; then
2120 pkg_cv_LIBNETCONF_CFLAGS="$LIBNETCONF_CFLAGS"
2121 elif test -n "$PKG_CONFIG"; then
2122 if test -n "$PKG_CONFIG" && \
2123 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnetconf\"") >&5
2124 ($PKG_CONFIG --exists --print-errors "libnetconf") 2>&5
2125 ac_status=$?
2126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 pkg_cv_LIBNETCONF_CFLAGS=`$PKG_CONFIG --cflags "libnetconf" 2>/dev/null`
2129else
2130 pkg_failed=yes
2131fi
2132 else
2133 pkg_failed=untried
2134fi
2135if test -n "$LIBNETCONF_LIBS"; then
2136 pkg_cv_LIBNETCONF_LIBS="$LIBNETCONF_LIBS"
2137 elif test -n "$PKG_CONFIG"; then
2138 if test -n "$PKG_CONFIG" && \
2139 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnetconf\"") >&5
2140 ($PKG_CONFIG --exists --print-errors "libnetconf") 2>&5
2141 ac_status=$?
2142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }; then
2144 pkg_cv_LIBNETCONF_LIBS=`$PKG_CONFIG --libs "libnetconf" 2>/dev/null`
2145else
2146 pkg_failed=yes
2147fi
2148 else
2149 pkg_failed=untried
2150fi
2151
2152
2153
2154if test $pkg_failed = yes; then
2155
2156if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2157 _pkg_short_errors_supported=yes
2158else
2159 _pkg_short_errors_supported=no
2160fi
2161 if test $_pkg_short_errors_supported = yes; then
2162 LIBNETCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnetconf" 2>&1`
2163 else
2164 LIBNETCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnetconf" 2>&1`
2165 fi
2166 # Put the nasty error message in config.log where it belongs
2167 echo "$LIBNETCONF_PKG_ERRORS" >&5
2168
2169 { { $as_echo "$as_me:$LINENO: error: Package requirements (libnetconf) were not met:
2170
2171$LIBNETCONF_PKG_ERRORS
2172
2173Consider adjusting the PKG_CONFIG_PATH environment variable if you
2174installed software in a non-standard prefix.
2175
2176Alternatively, you may set the environment variables LIBNETCONF_CFLAGS
2177and LIBNETCONF_LIBS to avoid the need to call pkg-config.
2178See the pkg-config man page for more details.
2179" >&5
2180$as_echo "$as_me: error: Package requirements (libnetconf) were not met:
2181
2182$LIBNETCONF_PKG_ERRORS
2183
2184Consider adjusting the PKG_CONFIG_PATH environment variable if you
2185installed software in a non-standard prefix.
2186
2187Alternatively, you may set the environment variables LIBNETCONF_CFLAGS
2188and LIBNETCONF_LIBS to avoid the need to call pkg-config.
2189See the pkg-config man page for more details.
2190" >&2;}
2191 { (exit 1); exit 1; }; }
2192elif test $pkg_failed = untried; then
2193 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2195{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
2196is in your PATH or set the PKG_CONFIG environment variable to the full
2197path to pkg-config.
2198
2199Alternatively, you may set the environment variables LIBNETCONF_CFLAGS
2200and LIBNETCONF_LIBS to avoid the need to call pkg-config.
2201See the pkg-config man page for more details.
2202
2203To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2204See \`config.log' for more details." >&5
2205$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
2206is in your PATH or set the PKG_CONFIG environment variable to the full
2207path to pkg-config.
2208
2209Alternatively, you may set the environment variables LIBNETCONF_CFLAGS
2210and LIBNETCONF_LIBS to avoid the need to call pkg-config.
2211See the pkg-config man page for more details.
2212
2213To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2214See \`config.log' for more details." >&2;}
2215 { (exit 1); exit 1; }; }; }
2216else
2217 LIBNETCONF_CFLAGS=$pkg_cv_LIBNETCONF_CFLAGS
2218 LIBNETCONF_LIBS=$pkg_cv_LIBNETCONF_LIBS
2219 { $as_echo "$as_me:$LINENO: result: yes" >&5
2220$as_echo "yes" >&6; }
2221 :
2222fi
2223 BUILDREQS="$BUILDREQS ,libnetconf-devel"
2224
2225fi
2226
2227CFLAGS="$CFLAGS $LIBNETCONF_CFLAGS"
2228LIBS="$LIBS $LIBNETCONF_LIBS"
2229
2230
2231
2232REQS="$REQS , libnetconf"
Tomas Cejka96f4e612012-12-10 00:03:32 +01002233ac_ext=c
2234ac_cpp='$CPP $CPPFLAGS'
2235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238if test -n "$ac_tool_prefix"; then
2239 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2240set dummy ${ac_tool_prefix}gcc; ac_word=$2
2241{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2242$as_echo_n "checking for $ac_word... " >&6; }
2243if test "${ac_cv_prog_CC+set}" = set; then
2244 $as_echo_n "(cached) " >&6
2245else
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2248else
2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250for as_dir in $PATH
2251do
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 break 2
2259 fi
2260done
2261done
2262IFS=$as_save_IFS
2263
2264fi
2265fi
2266CC=$ac_cv_prog_CC
2267if test -n "$CC"; then
2268 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2269$as_echo "$CC" >&6; }
2270else
2271 { $as_echo "$as_me:$LINENO: result: no" >&5
2272$as_echo "no" >&6; }
2273fi
2274
2275
2276fi
2277if test -z "$ac_cv_prog_CC"; then
2278 ac_ct_CC=$CC
2279 # Extract the first word of "gcc", so it can be a program name with args.
2280set dummy gcc; ac_word=$2
2281{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2282$as_echo_n "checking for $ac_word... " >&6; }
2283if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2284 $as_echo_n "(cached) " >&6
2285else
2286 if test -n "$ac_ct_CC"; then
2287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2288else
2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290for as_dir in $PATH
2291do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_prog_ac_ct_CC="gcc"
2297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2299 fi
2300done
2301done
2302IFS=$as_save_IFS
2303
2304fi
2305fi
2306ac_ct_CC=$ac_cv_prog_ac_ct_CC
2307if test -n "$ac_ct_CC"; then
2308 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2309$as_echo "$ac_ct_CC" >&6; }
2310else
2311 { $as_echo "$as_me:$LINENO: result: no" >&5
2312$as_echo "no" >&6; }
2313fi
2314
2315 if test "x$ac_ct_CC" = x; then
2316 CC=""
2317 else
2318 case $cross_compiling:$ac_tool_warned in
2319yes:)
2320{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2322ac_tool_warned=yes ;;
2323esac
2324 CC=$ac_ct_CC
2325 fi
2326else
2327 CC="$ac_cv_prog_CC"
2328fi
2329
2330if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
2332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2333set dummy ${ac_tool_prefix}cc; ac_word=$2
2334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2335$as_echo_n "checking for $ac_word... " >&6; }
2336if test "${ac_cv_prog_CC+set}" = set; then
2337 $as_echo_n "(cached) " >&6
2338else
2339 if test -n "$CC"; then
2340 ac_cv_prog_CC="$CC" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_CC="${ac_tool_prefix}cc"
2350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2352 fi
2353done
2354done
2355IFS=$as_save_IFS
2356
2357fi
2358fi
2359CC=$ac_cv_prog_CC
2360if test -n "$CC"; then
2361 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2362$as_echo "$CC" >&6; }
2363else
2364 { $as_echo "$as_me:$LINENO: result: no" >&5
2365$as_echo "no" >&6; }
2366fi
2367
2368
2369 fi
2370fi
2371if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373set dummy cc; ac_word=$2
2374{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2375$as_echo_n "checking for $ac_word... " >&6; }
2376if test "${ac_cv_prog_CC+set}" = set; then
2377 $as_echo_n "(cached) " >&6
2378else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381else
2382 ac_prog_rejected=no
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391 ac_prog_rejected=yes
2392 continue
2393 fi
2394 ac_cv_prog_CC="cc"
2395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2397 fi
2398done
2399done
2400IFS=$as_save_IFS
2401
2402if test $ac_prog_rejected = yes; then
2403 # We found a bogon in the path, so make sure we never use it.
2404 set dummy $ac_cv_prog_CC
2405 shift
2406 if test $# != 0; then
2407 # We chose a different compiler from the bogus one.
2408 # However, it has the same basename, so the bogon will be chosen
2409 # first if we set CC to just the basename; use the full file name.
2410 shift
2411 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2412 fi
2413fi
2414fi
2415fi
2416CC=$ac_cv_prog_CC
2417if test -n "$CC"; then
2418 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2419$as_echo "$CC" >&6; }
2420else
2421 { $as_echo "$as_me:$LINENO: result: no" >&5
2422$as_echo "no" >&6; }
2423fi
2424
2425
2426fi
2427if test -z "$CC"; then
2428 if test -n "$ac_tool_prefix"; then
2429 for ac_prog in cl.exe
2430 do
2431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2432set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2433{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2434$as_echo_n "checking for $ac_word... " >&6; }
2435if test "${ac_cv_prog_CC+set}" = set; then
2436 $as_echo_n "(cached) " >&6
2437else
2438 if test -n "$CC"; then
2439 ac_cv_prog_CC="$CC" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2451 fi
2452done
2453done
2454IFS=$as_save_IFS
2455
2456fi
2457fi
2458CC=$ac_cv_prog_CC
2459if test -n "$CC"; then
2460 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2461$as_echo "$CC" >&6; }
2462else
2463 { $as_echo "$as_me:$LINENO: result: no" >&5
2464$as_echo "no" >&6; }
2465fi
2466
2467
2468 test -n "$CC" && break
2469 done
2470fi
2471if test -z "$CC"; then
2472 ac_ct_CC=$CC
2473 for ac_prog in cl.exe
2474do
2475 # Extract the first word of "$ac_prog", so it can be a program name with args.
2476set dummy $ac_prog; ac_word=$2
2477{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2478$as_echo_n "checking for $ac_word... " >&6; }
2479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480 $as_echo_n "(cached) " >&6
2481else
2482 if test -n "$ac_ct_CC"; then
2483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488 IFS=$as_save_IFS
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_CC="$ac_prog"
2493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 break 2
2495 fi
2496done
2497done
2498IFS=$as_save_IFS
2499
2500fi
2501fi
2502ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503if test -n "$ac_ct_CC"; then
2504 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505$as_echo "$ac_ct_CC" >&6; }
2506else
2507 { $as_echo "$as_me:$LINENO: result: no" >&5
2508$as_echo "no" >&6; }
2509fi
2510
2511
2512 test -n "$ac_ct_CC" && break
2513done
2514
2515 if test "x$ac_ct_CC" = x; then
2516 CC=""
2517 else
2518 case $cross_compiling:$ac_tool_warned in
2519yes:)
2520{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2522ac_tool_warned=yes ;;
2523esac
2524 CC=$ac_ct_CC
2525 fi
2526fi
2527
2528fi
2529
2530
2531test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2533{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2534See \`config.log' for more details." >&5
2535$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2536See \`config.log' for more details." >&2;}
2537 { (exit 1); exit 1; }; }; }
2538
2539# Provide some information about the compiler.
2540$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2541set X $ac_compile
2542ac_compiler=$2
2543{ (ac_try="$ac_compiler --version >&5"
2544case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547esac
2548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2549$as_echo "$ac_try_echo") >&5
2550 (eval "$ac_compiler --version >&5") 2>&5
2551 ac_status=$?
2552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2554{ (ac_try="$ac_compiler -v >&5"
2555case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2558esac
2559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2560$as_echo "$ac_try_echo") >&5
2561 (eval "$ac_compiler -v >&5") 2>&5
2562 ac_status=$?
2563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2565{ (ac_try="$ac_compiler -V >&5"
2566case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569esac
2570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2571$as_echo "$ac_try_echo") >&5
2572 (eval "$ac_compiler -V >&5") 2>&5
2573 ac_status=$?
2574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }
2576
2577cat >conftest.$ac_ext <<_ACEOF
2578/* confdefs.h. */
2579_ACEOF
2580cat confdefs.h >>conftest.$ac_ext
2581cat >>conftest.$ac_ext <<_ACEOF
2582/* end confdefs.h. */
2583
2584int
2585main ()
2586{
2587
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592ac_clean_files_save=$ac_clean_files
2593ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2594# Try to create an executable without -o first, disregard a.out.
2595# It will help us diagnose broken compilers, and finding out an intuition
2596# of exeext.
2597{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2598$as_echo_n "checking for C compiler default output file name... " >&6; }
2599ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2600
2601# The possible output files:
2602ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2603
2604ac_rmfiles=
2605for ac_file in $ac_files
2606do
2607 case $ac_file in
2608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2609 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2610 esac
2611done
2612rm -f $ac_rmfiles
2613
2614if { (ac_try="$ac_link_default"
2615case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618esac
2619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2620$as_echo "$ac_try_echo") >&5
2621 (eval "$ac_link_default") 2>&5
2622 ac_status=$?
2623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; then
2625 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2626# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2627# in a Makefile. We should not override ac_cv_exeext if it was cached,
2628# so that the user can short-circuit this test for compilers unknown to
2629# Autoconf.
2630for ac_file in $ac_files ''
2631do
2632 test -f "$ac_file" || continue
2633 case $ac_file in
2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2635 ;;
2636 [ab].out )
2637 # We found the default executable, but exeext='' is most
2638 # certainly right.
2639 break;;
2640 *.* )
2641 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2642 then :; else
2643 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2644 fi
2645 # We set ac_cv_exeext here because the later test for it is not
2646 # safe: cross compilers may not add the suffix if given an `-o'
2647 # argument, so we may need to know it at that point already.
2648 # Even if this section looks crufty: it has the advantage of
2649 # actually working.
2650 break;;
2651 * )
2652 break;;
2653 esac
2654done
2655test "$ac_cv_exeext" = no && ac_cv_exeext=
2656
2657else
2658 ac_file=''
2659fi
2660
2661{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2662$as_echo "$ac_file" >&6; }
2663if test -z "$ac_file"; then
2664 $as_echo "$as_me: failed program was:" >&5
2665sed 's/^/| /' conftest.$ac_ext >&5
2666
2667{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2670See \`config.log' for more details." >&5
2671$as_echo "$as_me: error: C compiler cannot create executables
2672See \`config.log' for more details." >&2;}
2673 { (exit 77); exit 77; }; }; }
2674fi
2675
2676ac_exeext=$ac_cv_exeext
2677
2678# Check that the compiler produces executables we can run. If not, either
2679# the compiler is broken, or we cross compile.
2680{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2681$as_echo_n "checking whether the C compiler works... " >&6; }
2682# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2683# If not cross compiling, check that we can run a simple program.
2684if test "$cross_compiling" != yes; then
2685 if { ac_try='./$ac_file'
2686 { (case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2691$as_echo "$ac_try_echo") >&5
2692 (eval "$ac_try") 2>&5
2693 ac_status=$?
2694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2696 cross_compiling=no
2697 else
2698 if test "$cross_compiling" = maybe; then
2699 cross_compiling=yes
2700 else
2701 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2704If you meant to cross compile, use \`--host'.
2705See \`config.log' for more details." >&5
2706$as_echo "$as_me: error: cannot run C compiled programs.
2707If you meant to cross compile, use \`--host'.
2708See \`config.log' for more details." >&2;}
2709 { (exit 1); exit 1; }; }; }
2710 fi
2711 fi
2712fi
2713{ $as_echo "$as_me:$LINENO: result: yes" >&5
2714$as_echo "yes" >&6; }
2715
2716rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2717ac_clean_files=$ac_clean_files_save
2718# Check that the compiler produces executables we can run. If not, either
2719# the compiler is broken, or we cross compile.
2720{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2721$as_echo_n "checking whether we are cross compiling... " >&6; }
2722{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2723$as_echo "$cross_compiling" >&6; }
2724
2725{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2726$as_echo_n "checking for suffix of executables... " >&6; }
2727if { (ac_try="$ac_link"
2728case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731esac
2732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2733$as_echo "$ac_try_echo") >&5
2734 (eval "$ac_link") 2>&5
2735 ac_status=$?
2736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; then
2738 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2739# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2740# work properly (i.e., refer to `conftest.exe'), while it won't with
2741# `rm'.
2742for ac_file in conftest.exe conftest conftest.*; do
2743 test -f "$ac_file" || continue
2744 case $ac_file in
2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2747 break;;
2748 * ) break;;
2749 esac
2750done
2751else
2752 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2755See \`config.log' for more details." >&5
2756$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2757See \`config.log' for more details." >&2;}
2758 { (exit 1); exit 1; }; }; }
2759fi
2760
2761rm -f conftest$ac_cv_exeext
2762{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2763$as_echo "$ac_cv_exeext" >&6; }
2764
2765rm -f conftest.$ac_ext
2766EXEEXT=$ac_cv_exeext
2767ac_exeext=$EXEEXT
2768{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2769$as_echo_n "checking for suffix of object files... " >&6; }
2770if test "${ac_cv_objext+set}" = set; then
2771 $as_echo_n "(cached) " >&6
2772else
2773 cat >conftest.$ac_ext <<_ACEOF
2774/* confdefs.h. */
2775_ACEOF
2776cat confdefs.h >>conftest.$ac_ext
2777cat >>conftest.$ac_ext <<_ACEOF
2778/* end confdefs.h. */
2779
2780int
2781main ()
2782{
2783
2784 ;
2785 return 0;
2786}
2787_ACEOF
2788rm -f conftest.o conftest.obj
2789if { (ac_try="$ac_compile"
2790case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793esac
2794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2795$as_echo "$ac_try_echo") >&5
2796 (eval "$ac_compile") 2>&5
2797 ac_status=$?
2798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; then
2800 for ac_file in conftest.o conftest.obj conftest.*; do
2801 test -f "$ac_file" || continue;
2802 case $ac_file in
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2804 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2805 break;;
2806 esac
2807done
2808else
2809 $as_echo "$as_me: failed program was:" >&5
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
2812{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2815See \`config.log' for more details." >&5
2816$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2817See \`config.log' for more details." >&2;}
2818 { (exit 1); exit 1; }; }; }
2819fi
2820
2821rm -f conftest.$ac_cv_objext conftest.$ac_ext
2822fi
2823{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2824$as_echo "$ac_cv_objext" >&6; }
2825OBJEXT=$ac_cv_objext
2826ac_objext=$OBJEXT
2827{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2828$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2829if test "${ac_cv_c_compiler_gnu+set}" = set; then
2830 $as_echo_n "(cached) " >&6
2831else
2832 cat >conftest.$ac_ext <<_ACEOF
2833/* confdefs.h. */
2834_ACEOF
2835cat confdefs.h >>conftest.$ac_ext
2836cat >>conftest.$ac_ext <<_ACEOF
2837/* end confdefs.h. */
2838
2839int
2840main ()
2841{
2842#ifndef __GNUC__
2843 choke me
2844#endif
2845
2846 ;
2847 return 0;
2848}
2849_ACEOF
2850rm -f conftest.$ac_objext
2851if { (ac_try="$ac_compile"
2852case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
2856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857$as_echo "$ac_try_echo") >&5
2858 (eval "$ac_compile") 2>conftest.er1
2859 ac_status=$?
2860 grep -v '^ *+' conftest.er1 >conftest.err
2861 rm -f conftest.er1
2862 cat conftest.err >&5
2863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } && {
2865 test -z "$ac_c_werror_flag" ||
2866 test ! -s conftest.err
2867 } && test -s conftest.$ac_objext; then
2868 ac_compiler_gnu=yes
2869else
2870 $as_echo "$as_me: failed program was:" >&5
2871sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 ac_compiler_gnu=no
2874fi
2875
2876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877ac_cv_c_compiler_gnu=$ac_compiler_gnu
2878
2879fi
2880{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2881$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2882if test $ac_compiler_gnu = yes; then
2883 GCC=yes
2884else
2885 GCC=
2886fi
2887ac_test_CFLAGS=${CFLAGS+set}
2888ac_save_CFLAGS=$CFLAGS
2889{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2890$as_echo_n "checking whether $CC accepts -g... " >&6; }
2891if test "${ac_cv_prog_cc_g+set}" = set; then
2892 $as_echo_n "(cached) " >&6
2893else
2894 ac_save_c_werror_flag=$ac_c_werror_flag
2895 ac_c_werror_flag=yes
2896 ac_cv_prog_cc_g=no
2897 CFLAGS="-g"
2898 cat >conftest.$ac_ext <<_ACEOF
2899/* confdefs.h. */
2900_ACEOF
2901cat confdefs.h >>conftest.$ac_ext
2902cat >>conftest.$ac_ext <<_ACEOF
2903/* end confdefs.h. */
2904
2905int
2906main ()
2907{
2908
2909 ;
2910 return 0;
2911}
2912_ACEOF
2913rm -f conftest.$ac_objext
2914if { (ac_try="$ac_compile"
2915case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918esac
2919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2920$as_echo "$ac_try_echo") >&5
2921 (eval "$ac_compile") 2>conftest.er1
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } && {
2928 test -z "$ac_c_werror_flag" ||
2929 test ! -s conftest.err
2930 } && test -s conftest.$ac_objext; then
2931 ac_cv_prog_cc_g=yes
2932else
2933 $as_echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 CFLAGS=""
2937 cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952rm -f conftest.$ac_objext
2953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2959$as_echo "$ac_try_echo") >&5
2960 (eval "$ac_compile") 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
2965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } && {
2967 test -z "$ac_c_werror_flag" ||
2968 test ! -s conftest.err
2969 } && test -s conftest.$ac_objext; then
2970 :
2971else
2972 $as_echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 ac_c_werror_flag=$ac_save_c_werror_flag
2976 CFLAGS="-g"
2977 cat >conftest.$ac_ext <<_ACEOF
2978/* confdefs.h. */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
2982/* end confdefs.h. */
2983
2984int
2985main ()
2986{
2987
2988 ;
2989 return 0;
2990}
2991_ACEOF
2992rm -f conftest.$ac_objext
2993if { (ac_try="$ac_compile"
2994case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
2998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2999$as_echo "$ac_try_echo") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } && {
3007 test -z "$ac_c_werror_flag" ||
3008 test ! -s conftest.err
3009 } && test -s conftest.$ac_objext; then
3010 ac_cv_prog_cc_g=yes
3011else
3012 $as_echo "$as_me: failed program was:" >&5
3013sed 's/^/| /' conftest.$ac_ext >&5
3014
3015
3016fi
3017
3018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3019fi
3020
3021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022fi
3023
3024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_c_werror_flag=$ac_save_c_werror_flag
3026fi
3027{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3028$as_echo "$ac_cv_prog_cc_g" >&6; }
3029if test "$ac_test_CFLAGS" = set; then
3030 CFLAGS=$ac_save_CFLAGS
3031elif test $ac_cv_prog_cc_g = yes; then
3032 if test "$GCC" = yes; then
3033 CFLAGS="-g -O2"
3034 else
3035 CFLAGS="-g"
3036 fi
3037else
3038 if test "$GCC" = yes; then
3039 CFLAGS="-O2"
3040 else
3041 CFLAGS=
3042 fi
3043fi
3044{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3045$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3046if test "${ac_cv_prog_cc_c89+set}" = set; then
3047 $as_echo_n "(cached) " >&6
3048else
3049 ac_cv_prog_cc_c89=no
3050ac_save_CC=$CC
3051cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h. */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h. */
3057#include <stdarg.h>
3058#include <stdio.h>
3059#include <sys/types.h>
3060#include <sys/stat.h>
3061/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3062struct buf { int x; };
3063FILE * (*rcsopen) (struct buf *, struct stat *, int);
3064static char *e (p, i)
3065 char **p;
3066 int i;
3067{
3068 return p[i];
3069}
3070static char *f (char * (*g) (char **, int), char **p, ...)
3071{
3072 char *s;
3073 va_list v;
3074 va_start (v,p);
3075 s = g (p, va_arg (v,int));
3076 va_end (v);
3077 return s;
3078}
3079
3080/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3081 function prototypes and stuff, but not '\xHH' hex character constants.
3082 These don't provoke an error unfortunately, instead are silently treated
3083 as 'x'. The following induces an error, until -std is added to get
3084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3085 array size at least. It's necessary to write '\x00'==0 to get something
3086 that's true only with -std. */
3087int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3088
3089/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3090 inside strings and character constants. */
3091#define FOO(x) 'x'
3092int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3093
3094int test (int i, double x);
3095struct s1 {int (*f) (int a);};
3096struct s2 {int (*f) (double a);};
3097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3098int argc;
3099char **argv;
3100int
3101main ()
3102{
3103return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3104 ;
3105 return 0;
3106}
3107_ACEOF
3108for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3110do
3111 CC="$ac_save_CC $ac_arg"
3112 rm -f conftest.$ac_objext
3113if { (ac_try="$ac_compile"
3114case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3119$as_echo "$ac_try_echo") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } && {
3127 test -z "$ac_c_werror_flag" ||
3128 test ! -s conftest.err
3129 } && test -s conftest.$ac_objext; then
3130 ac_cv_prog_cc_c89=$ac_arg
3131else
3132 $as_echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135
3136fi
3137
3138rm -f core conftest.err conftest.$ac_objext
3139 test "x$ac_cv_prog_cc_c89" != "xno" && break
3140done
3141rm -f conftest.$ac_ext
3142CC=$ac_save_CC
3143
3144fi
3145# AC_CACHE_VAL
3146case "x$ac_cv_prog_cc_c89" in
3147 x)
3148 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3149$as_echo "none needed" >&6; } ;;
3150 xno)
3151 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3152$as_echo "unsupported" >&6; } ;;
3153 *)
3154 CC="$CC $ac_cv_prog_cc_c89"
3155 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3156$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3157esac
3158
3159
3160ac_ext=c
3161ac_cpp='$CPP $CPPFLAGS'
3162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165
3166
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02003167
3168{ $as_echo "$as_me:$LINENO: checking for ncds_new in -lnetconf" >&5
3169$as_echo_n "checking for ncds_new in -lnetconf... " >&6; }
3170if test "${ac_cv_lib_netconf_ncds_new+set}" = set; then
Tomas Cejka96f4e612012-12-10 00:03:32 +01003171 $as_echo_n "(cached) " >&6
3172else
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02003173 ac_check_lib_save_LIBS=$LIBS
3174LIBS="-lnetconf $LIBS"
Tomas Cejka96f4e612012-12-10 00:03:32 +01003175cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h. */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h. */
3181
3182/* Override any GCC internal prototype to avoid an error.
3183 Use char because int might match the return type of a GCC
3184 builtin and then its argument prototype would still apply. */
3185#ifdef __cplusplus
3186extern "C"
3187#endif
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02003188char ncds_new ();
Tomas Cejka96f4e612012-12-10 00:03:32 +01003189int
3190main ()
3191{
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02003192return ncds_new ();
Tomas Cejka96f4e612012-12-10 00:03:32 +01003193 ;
3194 return 0;
3195}
3196_ACEOF
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02003197rm -f conftest.$ac_objext conftest$ac_exeext
Tomas Cejka96f4e612012-12-10 00:03:32 +01003198if { (ac_try="$ac_link"
3199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3204$as_echo "$ac_try_echo") >&5
3205 (eval "$ac_link") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest$ac_exeext && {
3215 test "$cross_compiling" = yes ||
3216 $as_test_x conftest$ac_exeext
3217 }; then
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02003218 ac_cv_lib_netconf_ncds_new=yes
Tomas Cejka96f4e612012-12-10 00:03:32 +01003219else
3220 $as_echo "$as_me: failed program was:" >&5
3221sed 's/^/| /' conftest.$ac_ext >&5
3222
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02003223 ac_cv_lib_netconf_ncds_new=no
Tomas Cejka96f4e612012-12-10 00:03:32 +01003224fi
3225
3226rm -rf conftest.dSYM
3227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02003228 conftest$ac_exeext conftest.$ac_ext
3229LIBS=$ac_check_lib_save_LIBS
Tomas Cejka96f4e612012-12-10 00:03:32 +01003230fi
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02003231{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_netconf_ncds_new" >&5
3232$as_echo "$ac_cv_lib_netconf_ncds_new" >&6; }
3233if test "x$ac_cv_lib_netconf_ncds_new" = x""yes; then
3234 cat >>confdefs.h <<_ACEOF
3235#define HAVE_LIBNETCONF 1
3236_ACEOF
3237
3238 LIBS="-lnetconf $LIBS"
Tomas Cejka96f4e612012-12-10 00:03:32 +01003239
3240else
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02003241 { { $as_echo "$as_me:$LINENO: error: libnetconf not found." >&5
3242$as_echo "$as_me: error: libnetconf not found." >&2;}
Tomas Cejka96f4e612012-12-10 00:03:32 +01003243 { (exit 1); exit 1; }; }
3244fi
3245
Tomas Cejka96f4e612012-12-10 00:03:32 +01003246
3247# Checks for header files.
3248ac_ext=c
3249ac_cpp='$CPP $CPPFLAGS'
3250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3254$as_echo_n "checking how to run the C preprocessor... " >&6; }
3255# On Suns, sometimes $CPP names a directory.
3256if test -n "$CPP" && test -d "$CPP"; then
3257 CPP=
3258fi
3259if test -z "$CPP"; then
3260 if test "${ac_cv_prog_CPP+set}" = set; then
3261 $as_echo_n "(cached) " >&6
3262else
3263 # Double quotes because CPP needs to be expanded
3264 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3265 do
3266 ac_preproc_ok=false
3267for ac_c_preproc_warn_flag in '' yes
3268do
3269 # Use a header file that comes with gcc, so configuring glibc
3270 # with a fresh cross-compiler works.
3271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3272 # <limits.h> exists even on freestanding compilers.
3273 # On the NeXT, cc -E runs the code through the compiler's parser,
3274 # not just through cpp. "Syntax error" is here to catch this case.
3275 cat >conftest.$ac_ext <<_ACEOF
3276/* confdefs.h. */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h. */
3281#ifdef __STDC__
3282# include <limits.h>
3283#else
3284# include <assert.h>
3285#endif
3286 Syntax error
3287_ACEOF
3288if { (ac_try="$ac_cpp conftest.$ac_ext"
3289case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292esac
3293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3294$as_echo "$ac_try_echo") >&5
3295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296 ac_status=$?
3297 grep -v '^ *+' conftest.er1 >conftest.err
3298 rm -f conftest.er1
3299 cat conftest.err >&5
3300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null && {
3302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3303 test ! -s conftest.err
3304 }; then
3305 :
3306else
3307 $as_echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 # Broken: fails on valid input.
3311continue
3312fi
3313
3314rm -f conftest.err conftest.$ac_ext
3315
3316 # OK, works on sane cases. Now check whether nonexistent headers
3317 # can be detected and how.
3318 cat >conftest.$ac_ext <<_ACEOF
3319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h. */
3324#include <ac_nonexistent.h>
3325_ACEOF
3326if { (ac_try="$ac_cpp conftest.$ac_ext"
3327case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330esac
3331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3332$as_echo "$ac_try_echo") >&5
3333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } >/dev/null && {
3340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 }; then
3343 # Broken: success on invalid input.
3344continue
3345else
3346 $as_echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349 # Passes both tests.
3350ac_preproc_ok=:
3351break
3352fi
3353
3354rm -f conftest.err conftest.$ac_ext
3355
3356done
3357# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3358rm -f conftest.err conftest.$ac_ext
3359if $ac_preproc_ok; then
3360 break
3361fi
3362
3363 done
3364 ac_cv_prog_CPP=$CPP
3365
3366fi
3367 CPP=$ac_cv_prog_CPP
3368else
3369 ac_cv_prog_CPP=$CPP
3370fi
3371{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3372$as_echo "$CPP" >&6; }
3373ac_preproc_ok=false
3374for ac_c_preproc_warn_flag in '' yes
3375do
3376 # Use a header file that comes with gcc, so configuring glibc
3377 # with a fresh cross-compiler works.
3378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379 # <limits.h> exists even on freestanding compilers.
3380 # On the NeXT, cc -E runs the code through the compiler's parser,
3381 # not just through cpp. "Syntax error" is here to catch this case.
3382 cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h. */
3388#ifdef __STDC__
3389# include <limits.h>
3390#else
3391# include <assert.h>
3392#endif
3393 Syntax error
3394_ACEOF
3395if { (ac_try="$ac_cpp conftest.$ac_ext"
3396case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399esac
3400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3401$as_echo "$ac_try_echo") >&5
3402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } >/dev/null && {
3409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3410 test ! -s conftest.err
3411 }; then
3412 :
3413else
3414 $as_echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
3417 # Broken: fails on valid input.
3418continue
3419fi
3420
3421rm -f conftest.err conftest.$ac_ext
3422
3423 # OK, works on sane cases. Now check whether nonexistent headers
3424 # can be detected and how.
3425 cat >conftest.$ac_ext <<_ACEOF
3426/* confdefs.h. */
3427_ACEOF
3428cat confdefs.h >>conftest.$ac_ext
3429cat >>conftest.$ac_ext <<_ACEOF
3430/* end confdefs.h. */
3431#include <ac_nonexistent.h>
3432_ACEOF
3433if { (ac_try="$ac_cpp conftest.$ac_ext"
3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3439$as_echo "$ac_try_echo") >&5
3440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null && {
3447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3448 test ! -s conftest.err
3449 }; then
3450 # Broken: success on invalid input.
3451continue
3452else
3453 $as_echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 # Passes both tests.
3457ac_preproc_ok=:
3458break
3459fi
3460
3461rm -f conftest.err conftest.$ac_ext
3462
3463done
3464# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3465rm -f conftest.err conftest.$ac_ext
3466if $ac_preproc_ok; then
3467 :
3468else
3469 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3472See \`config.log' for more details." >&5
3473$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3474See \`config.log' for more details." >&2;}
3475 { (exit 1); exit 1; }; }; }
3476fi
3477
3478ac_ext=c
3479ac_cpp='$CPP $CPPFLAGS'
3480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484
3485{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3486$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3487if test "${ac_cv_path_GREP+set}" = set; then
3488 $as_echo_n "(cached) " >&6
3489else
3490 if test -z "$GREP"; then
3491 ac_path_GREP_found=false
3492 # Loop through the user's path and test for each of PROGNAME-LIST
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3495do
3496 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=.
3498 for ac_prog in grep ggrep; do
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3501 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3502# Check for GNU ac_path_GREP and select it if it is found.
3503 # Check for GNU $ac_path_GREP
3504case `"$ac_path_GREP" --version 2>&1` in
3505*GNU*)
3506 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3507*)
3508 ac_count=0
3509 $as_echo_n 0123456789 >"conftest.in"
3510 while :
3511 do
3512 cat "conftest.in" "conftest.in" >"conftest.tmp"
3513 mv "conftest.tmp" "conftest.in"
3514 cp "conftest.in" "conftest.nl"
3515 $as_echo 'GREP' >> "conftest.nl"
3516 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3518 ac_count=`expr $ac_count + 1`
3519 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3520 # Best one so far, save it but keep looking for a better one
3521 ac_cv_path_GREP="$ac_path_GREP"
3522 ac_path_GREP_max=$ac_count
3523 fi
3524 # 10*(2^10) chars as input seems more than enough
3525 test $ac_count -gt 10 && break
3526 done
3527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3528esac
3529
3530 $ac_path_GREP_found && break 3
3531 done
3532 done
3533done
3534IFS=$as_save_IFS
3535 if test -z "$ac_cv_path_GREP"; then
3536 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3537$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3538 { (exit 1); exit 1; }; }
3539 fi
3540else
3541 ac_cv_path_GREP=$GREP
3542fi
3543
3544fi
3545{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3546$as_echo "$ac_cv_path_GREP" >&6; }
3547 GREP="$ac_cv_path_GREP"
3548
3549
3550{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3551$as_echo_n "checking for egrep... " >&6; }
3552if test "${ac_cv_path_EGREP+set}" = set; then
3553 $as_echo_n "(cached) " >&6
3554else
3555 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3556 then ac_cv_path_EGREP="$GREP -E"
3557 else
3558 if test -z "$EGREP"; then
3559 ac_path_EGREP_found=false
3560 # Loop through the user's path and test for each of PROGNAME-LIST
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_prog in egrep; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3569 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3570# Check for GNU ac_path_EGREP and select it if it is found.
3571 # Check for GNU $ac_path_EGREP
3572case `"$ac_path_EGREP" --version 2>&1` in
3573*GNU*)
3574 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3575*)
3576 ac_count=0
3577 $as_echo_n 0123456789 >"conftest.in"
3578 while :
3579 do
3580 cat "conftest.in" "conftest.in" >"conftest.tmp"
3581 mv "conftest.tmp" "conftest.in"
3582 cp "conftest.in" "conftest.nl"
3583 $as_echo 'EGREP' >> "conftest.nl"
3584 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3586 ac_count=`expr $ac_count + 1`
3587 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3588 # Best one so far, save it but keep looking for a better one
3589 ac_cv_path_EGREP="$ac_path_EGREP"
3590 ac_path_EGREP_max=$ac_count
3591 fi
3592 # 10*(2^10) chars as input seems more than enough
3593 test $ac_count -gt 10 && break
3594 done
3595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3596esac
3597
3598 $ac_path_EGREP_found && break 3
3599 done
3600 done
3601done
3602IFS=$as_save_IFS
3603 if test -z "$ac_cv_path_EGREP"; then
3604 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3605$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3606 { (exit 1); exit 1; }; }
3607 fi
3608else
3609 ac_cv_path_EGREP=$EGREP
3610fi
3611
3612 fi
3613fi
3614{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3615$as_echo "$ac_cv_path_EGREP" >&6; }
3616 EGREP="$ac_cv_path_EGREP"
3617
3618
3619{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3620$as_echo_n "checking for ANSI C header files... " >&6; }
3621if test "${ac_cv_header_stdc+set}" = set; then
3622 $as_echo_n "(cached) " >&6
3623else
3624 cat >conftest.$ac_ext <<_ACEOF
3625/* confdefs.h. */
3626_ACEOF
3627cat confdefs.h >>conftest.$ac_ext
3628cat >>conftest.$ac_ext <<_ACEOF
3629/* end confdefs.h. */
3630#include <stdlib.h>
3631#include <stdarg.h>
3632#include <string.h>
3633#include <float.h>
3634
3635int
3636main ()
3637{
3638
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (ac_try="$ac_compile"
3645case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648esac
3649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3650$as_echo "$ac_try_echo") >&5
3651 (eval "$ac_compile") 2>conftest.er1
3652 ac_status=$?
3653 grep -v '^ *+' conftest.er1 >conftest.err
3654 rm -f conftest.er1
3655 cat conftest.err >&5
3656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } && {
3658 test -z "$ac_c_werror_flag" ||
3659 test ! -s conftest.err
3660 } && test -s conftest.$ac_objext; then
3661 ac_cv_header_stdc=yes
3662else
3663 $as_echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666 ac_cv_header_stdc=no
3667fi
3668
3669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670
3671if test $ac_cv_header_stdc = yes; then
3672 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3673 cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h. */
3679#include <string.h>
3680
3681_ACEOF
3682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683 $EGREP "memchr" >/dev/null 2>&1; then
3684 :
3685else
3686 ac_cv_header_stdc=no
3687fi
3688rm -f conftest*
3689
3690fi
3691
3692if test $ac_cv_header_stdc = yes; then
3693 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3694 cat >conftest.$ac_ext <<_ACEOF
3695/* confdefs.h. */
3696_ACEOF
3697cat confdefs.h >>conftest.$ac_ext
3698cat >>conftest.$ac_ext <<_ACEOF
3699/* end confdefs.h. */
3700#include <stdlib.h>
3701
3702_ACEOF
3703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3704 $EGREP "free" >/dev/null 2>&1; then
3705 :
3706else
3707 ac_cv_header_stdc=no
3708fi
3709rm -f conftest*
3710
3711fi
3712
3713if test $ac_cv_header_stdc = yes; then
3714 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3715 if test "$cross_compiling" = yes; then
3716 :
3717else
3718 cat >conftest.$ac_ext <<_ACEOF
3719/* confdefs.h. */
3720_ACEOF
3721cat confdefs.h >>conftest.$ac_ext
3722cat >>conftest.$ac_ext <<_ACEOF
3723/* end confdefs.h. */
3724#include <ctype.h>
3725#include <stdlib.h>
3726#if ((' ' & 0x0FF) == 0x020)
3727# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3728# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3729#else
3730# define ISLOWER(c) \
3731 (('a' <= (c) && (c) <= 'i') \
3732 || ('j' <= (c) && (c) <= 'r') \
3733 || ('s' <= (c) && (c) <= 'z'))
3734# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3735#endif
3736
3737#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3738int
3739main ()
3740{
3741 int i;
3742 for (i = 0; i < 256; i++)
3743 if (XOR (islower (i), ISLOWER (i))
3744 || toupper (i) != TOUPPER (i))
3745 return 2;
3746 return 0;
3747}
3748_ACEOF
3749rm -f conftest$ac_exeext
3750if { (ac_try="$ac_link"
3751case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754esac
3755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3756$as_echo "$ac_try_echo") >&5
3757 (eval "$ac_link") 2>&5
3758 ac_status=$?
3759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3761 { (case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764esac
3765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766$as_echo "$ac_try_echo") >&5
3767 (eval "$ac_try") 2>&5
3768 ac_status=$?
3769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 :
3772else
3773 $as_echo "$as_me: program exited with status $ac_status" >&5
3774$as_echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777( exit $ac_status )
3778ac_cv_header_stdc=no
3779fi
3780rm -rf conftest.dSYM
3781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3782fi
3783
3784
3785fi
3786fi
3787{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3788$as_echo "$ac_cv_header_stdc" >&6; }
3789if test $ac_cv_header_stdc = yes; then
3790
3791cat >>confdefs.h <<\_ACEOF
3792#define STDC_HEADERS 1
3793_ACEOF
3794
3795fi
3796
3797# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3808 inttypes.h stdint.h unistd.h
3809do
3810as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3811{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3812$as_echo_n "checking for $ac_header... " >&6; }
3813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3814 $as_echo_n "(cached) " >&6
3815else
3816 cat >conftest.$ac_ext <<_ACEOF
3817/* confdefs.h. */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
3821/* end confdefs.h. */
3822$ac_includes_default
3823
3824#include <$ac_header>
3825_ACEOF
3826rm -f conftest.$ac_objext
3827if { (ac_try="$ac_compile"
3828case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831esac
3832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3833$as_echo "$ac_try_echo") >&5
3834 (eval "$ac_compile") 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } && {
3841 test -z "$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 } && test -s conftest.$ac_objext; then
3844 eval "$as_ac_Header=yes"
3845else
3846 $as_echo "$as_me: failed program was:" >&5
3847sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 eval "$as_ac_Header=no"
3850fi
3851
3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853fi
3854ac_res=`eval 'as_val=${'$as_ac_Header'}
3855 $as_echo "$as_val"'`
3856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3857$as_echo "$ac_res" >&6; }
3858as_val=`eval 'as_val=${'$as_ac_Header'}
3859 $as_echo "$as_val"'`
3860 if test "x$as_val" = x""yes; then
3861 cat >>confdefs.h <<_ACEOF
3862#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3863_ACEOF
3864
3865fi
3866
3867done
3868
3869
3870if test "${ac_cv_header_libnetconf_h+set}" = set; then
3871 { $as_echo "$as_me:$LINENO: checking for libnetconf.h" >&5
3872$as_echo_n "checking for libnetconf.h... " >&6; }
3873if test "${ac_cv_header_libnetconf_h+set}" = set; then
3874 $as_echo_n "(cached) " >&6
3875fi
3876{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libnetconf_h" >&5
3877$as_echo "$ac_cv_header_libnetconf_h" >&6; }
3878else
3879 # Is the header compilable?
3880{ $as_echo "$as_me:$LINENO: checking libnetconf.h usability" >&5
3881$as_echo_n "checking libnetconf.h usability... " >&6; }
3882cat >conftest.$ac_ext <<_ACEOF
3883/* confdefs.h. */
3884_ACEOF
3885cat confdefs.h >>conftest.$ac_ext
3886cat >>conftest.$ac_ext <<_ACEOF
3887/* end confdefs.h. */
3888$ac_includes_default
3889#include <libnetconf.h>
3890_ACEOF
3891rm -f conftest.$ac_objext
3892if { (ac_try="$ac_compile"
3893case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896esac
3897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3898$as_echo "$ac_try_echo") >&5
3899 (eval "$ac_compile") 2>conftest.er1
3900 ac_status=$?
3901 grep -v '^ *+' conftest.er1 >conftest.err
3902 rm -f conftest.er1
3903 cat conftest.err >&5
3904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } && {
3906 test -z "$ac_c_werror_flag" ||
3907 test ! -s conftest.err
3908 } && test -s conftest.$ac_objext; then
3909 ac_header_compiler=yes
3910else
3911 $as_echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
3913
3914 ac_header_compiler=no
3915fi
3916
3917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3919$as_echo "$ac_header_compiler" >&6; }
3920
3921# Is the header present?
3922{ $as_echo "$as_me:$LINENO: checking libnetconf.h presence" >&5
3923$as_echo_n "checking libnetconf.h presence... " >&6; }
3924cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
3930#include <libnetconf.h>
3931_ACEOF
3932if { (ac_try="$ac_cpp conftest.$ac_ext"
3933case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936esac
3937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3938$as_echo "$ac_try_echo") >&5
3939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } >/dev/null && {
3946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 }; then
3949 ac_header_preproc=yes
3950else
3951 $as_echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 ac_header_preproc=no
3955fi
3956
3957rm -f conftest.err conftest.$ac_ext
3958{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3959$as_echo "$ac_header_preproc" >&6; }
3960
3961# So? What about this header?
3962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3963 yes:no: )
3964 { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3965$as_echo "$as_me: WARNING: libnetconf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3966 { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: proceeding with the compiler's result" >&5
3967$as_echo "$as_me: WARNING: libnetconf.h: proceeding with the compiler's result" >&2;}
3968 ac_header_preproc=yes
3969 ;;
3970 no:yes:* )
3971 { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: present but cannot be compiled" >&5
3972$as_echo "$as_me: WARNING: libnetconf.h: present but cannot be compiled" >&2;}
3973 { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: check for missing prerequisite headers?" >&5
3974$as_echo "$as_me: WARNING: libnetconf.h: check for missing prerequisite headers?" >&2;}
3975 { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: see the Autoconf documentation" >&5
3976$as_echo "$as_me: WARNING: libnetconf.h: see the Autoconf documentation" >&2;}
3977 { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: section \"Present But Cannot Be Compiled\"" >&5
3978$as_echo "$as_me: WARNING: libnetconf.h: section \"Present But Cannot Be Compiled\"" >&2;}
3979 { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: proceeding with the preprocessor's result" >&5
3980$as_echo "$as_me: WARNING: libnetconf.h: proceeding with the preprocessor's result" >&2;}
3981 { $as_echo "$as_me:$LINENO: WARNING: libnetconf.h: in the future, the compiler will take precedence" >&5
3982$as_echo "$as_me: WARNING: libnetconf.h: in the future, the compiler will take precedence" >&2;}
3983
3984 ;;
3985esac
3986{ $as_echo "$as_me:$LINENO: checking for libnetconf.h" >&5
3987$as_echo_n "checking for libnetconf.h... " >&6; }
3988if test "${ac_cv_header_libnetconf_h+set}" = set; then
3989 $as_echo_n "(cached) " >&6
3990else
3991 ac_cv_header_libnetconf_h=$ac_header_preproc
3992fi
3993{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libnetconf_h" >&5
3994$as_echo "$ac_cv_header_libnetconf_h" >&6; }
3995
3996fi
3997if test "x$ac_cv_header_libnetconf_h" = x""yes; then
3998 :
3999else
4000 { { $as_echo "$as_me:$LINENO: error: libnetconf.h not found!" >&5
4001$as_echo "$as_me: error: libnetconf.h not found!" >&2;}
4002 { (exit 1); exit 1; }; }
4003fi
4004
4005
4006
4007# Checks for typedefs, structures, and compiler characteristics.
4008
4009# Checks for library functions.
4010
4011
4012if test -z "$RPMBUILD"; then
4013 { $as_echo "$as_me:$LINENO: WARNING: Due to missing rpmbuild you will not able to generate RPM package." >&5
4014$as_echo "$as_me: WARNING: Due to missing rpmbuild you will not able to generate RPM package." >&2;}
4015fi
4016
4017
4018
Tomas Cejkad340dbf2013-03-24 20:36:57 +01004019# Check whether --with-notifications was given.
4020if test "${with_notifications+set}" = set; then
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02004021 withval=$with_notifications; if test "x$with_notifications" == "xno"; then
4022 CFLAGS="$CFLAGS"
4023else
4024 CFLAGS="$CFLAGS -DWITH_NOTIFICATIONS "
Tomas Cejkad340dbf2013-03-24 20:36:57 +01004025 LIBS="-lwebsockets $LIBS"
4026
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02004027fi
4028
Tomas Cejkad340dbf2013-03-24 20:36:57 +01004029else
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02004030
4031 CFLAGS="$CFLAGS -DWITH_NOTIFICATIONS "
4032 LIBS="-lwebsockets $LIBS"
4033
Tomas Cejkad340dbf2013-03-24 20:36:57 +01004034
4035fi
4036
4037
Tomas Cejkab3cc64f2013-05-03 19:44:54 +02004038CFLAGS="$CFLAGS -I/usr/include/json"
Tomas Cejkad340dbf2013-03-24 20:36:57 +01004039
4040
4041
Tomas Cejka96f4e612012-12-10 00:03:32 +01004042
Tomas Cejka689a1042013-01-16 15:08:25 +01004043
4044
4045
Tomas Cejka96f4e612012-12-10 00:03:32 +01004046ac_config_files="$ac_config_files Makefile"
4047
4048ac_config_files="$ac_config_files mod_netconf.spec"
4049
4050cat >confcache <<\_ACEOF
4051# This file is a shell script that caches the results of configure
4052# tests run on this system so they can be shared between configure
4053# scripts and configure runs, see configure's option --config-cache.
4054# It is not useful on other systems. If it contains results you don't
4055# want to keep, you may remove or edit it.
4056#
4057# config.status only pays attention to the cache file if you give it
4058# the --recheck option to rerun configure.
4059#
4060# `ac_cv_env_foo' variables (set or unset) will be overridden when
4061# loading this file, other *unset* `ac_cv_foo' will be assigned the
4062# following values.
4063
4064_ACEOF
4065
4066# The following way of writing the cache mishandles newlines in values,
4067# but we know of no workaround that is simple, portable, and efficient.
4068# So, we kill variables containing newlines.
4069# Ultrix sh set writes to stderr and can't be redirected directly,
4070# and sets the high bit in the cache file unless we assign to the vars.
4071(
4072 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4073 eval ac_val=\$$ac_var
4074 case $ac_val in #(
4075 *${as_nl}*)
4076 case $ac_var in #(
4077 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
4078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4079 esac
4080 case $ac_var in #(
4081 _ | IFS | as_nl) ;; #(
4082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4083 *) $as_unset $ac_var ;;
4084 esac ;;
4085 esac
4086 done
4087
4088 (set) 2>&1 |
4089 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4090 *${as_nl}ac_space=\ *)
4091 # `set' does not quote correctly, so add quotes (double-quote
4092 # substitution turns \\\\ into \\, and sed turns \\ into \).
4093 sed -n \
4094 "s/'/'\\\\''/g;
4095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4096 ;; #(
4097 *)
4098 # `set' quotes correctly as required by POSIX, so do not add quotes.
4099 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4100 ;;
4101 esac |
4102 sort
4103) |
4104 sed '
4105 /^ac_cv_env_/b end
4106 t clear
4107 :clear
4108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4109 t end
4110 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4111 :end' >>confcache
4112if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4113 if test -w "$cache_file"; then
4114 test "x$cache_file" != "x/dev/null" &&
4115 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
4116$as_echo "$as_me: updating cache $cache_file" >&6;}
4117 cat confcache >$cache_file
4118 else
4119 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4120$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4121 fi
4122fi
4123rm -f confcache
4124
4125test "x$prefix" = xNONE && prefix=$ac_default_prefix
4126# Let make expand exec_prefix.
4127test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4128
4129# Transform confdefs.h into DEFS.
4130# Protect against shell expansion while executing Makefile rules.
4131# Protect against Makefile macro expansion.
4132#
4133# If the first sed substitution is executed (which looks for macros that
4134# take arguments), then branch to the quote section. Otherwise,
4135# look for a macro that doesn't take arguments.
4136ac_script='
4137:mline
4138/\\$/{
4139 N
4140 s,\\\n,,
4141 b mline
4142}
4143t clear
4144:clear
4145s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4146t quote
4147s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4148t quote
4149b any
4150:quote
4151s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4152s/\[/\\&/g
4153s/\]/\\&/g
4154s/\$/$$/g
4155H
4156:any
4157${
4158 g
4159 s/^\n//
4160 s/\n/ /g
4161 p
4162}
4163'
4164DEFS=`sed -n "$ac_script" confdefs.h`
4165
4166
4167ac_libobjs=
4168ac_ltlibobjs=
4169for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4170 # 1. Remove the extension, and $U if already installed.
4171 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4172 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4173 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4174 # will be set to the directory where LIBOBJS objects are built.
4175 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4176 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4177done
4178LIBOBJS=$ac_libobjs
4179
4180LTLIBOBJS=$ac_ltlibobjs
4181
4182
4183
4184: ${CONFIG_STATUS=./config.status}
4185ac_write_fail=0
4186ac_clean_files_save=$ac_clean_files
4187ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4188{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4189$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4190cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4191#! $SHELL
4192# Generated by $as_me.
4193# Run this file to recreate the current configuration.
4194# Compiler output produced by configure, useful for debugging
4195# configure, is in config.log if it exists.
4196
4197debug=false
4198ac_cs_recheck=false
4199ac_cs_silent=false
4200SHELL=\${CONFIG_SHELL-$SHELL}
4201_ACEOF
4202
4203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4204## --------------------- ##
4205## M4sh Initialization. ##
4206## --------------------- ##
4207
4208# Be more Bourne compatible
4209DUALCASE=1; export DUALCASE # for MKS sh
4210if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4211 emulate sh
4212 NULLCMD=:
4213 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4214 # is contrary to our usage. Disable this feature.
4215 alias -g '${1+"$@"}'='"$@"'
4216 setopt NO_GLOB_SUBST
4217else
4218 case `(set -o) 2>/dev/null` in
4219 *posix*) set -o posix ;;
4220esac
4221
4222fi
4223
4224
4225
4226
4227# PATH needs CR
4228# Avoid depending upon Character Ranges.
4229as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4230as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4231as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4232as_cr_digits='0123456789'
4233as_cr_alnum=$as_cr_Letters$as_cr_digits
4234
4235as_nl='
4236'
4237export as_nl
4238# Printing a long string crashes Solaris 7 /usr/bin/printf.
4239as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4240as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4241as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4242if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4243 as_echo='printf %s\n'
4244 as_echo_n='printf %s'
4245else
4246 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4247 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4248 as_echo_n='/usr/ucb/echo -n'
4249 else
4250 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4251 as_echo_n_body='eval
4252 arg=$1;
4253 case $arg in
4254 *"$as_nl"*)
4255 expr "X$arg" : "X\\(.*\\)$as_nl";
4256 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4257 esac;
4258 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4259 '
4260 export as_echo_n_body
4261 as_echo_n='sh -c $as_echo_n_body as_echo'
4262 fi
4263 export as_echo_body
4264 as_echo='sh -c $as_echo_body as_echo'
4265fi
4266
4267# The user is always right.
4268if test "${PATH_SEPARATOR+set}" != set; then
4269 PATH_SEPARATOR=:
4270 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4271 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4272 PATH_SEPARATOR=';'
4273 }
4274fi
4275
4276# Support unset when possible.
4277if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4278 as_unset=unset
4279else
4280 as_unset=false
4281fi
4282
4283
4284# IFS
4285# We need space, tab and new line, in precisely that order. Quoting is
4286# there to prevent editors from complaining about space-tab.
4287# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4288# splitting by setting IFS to empty value.)
4289IFS=" "" $as_nl"
4290
4291# Find who we are. Look in the path if we contain no directory separator.
4292case $0 in
4293 *[\\/]* ) as_myself=$0 ;;
4294 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295for as_dir in $PATH
4296do
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4300done
4301IFS=$as_save_IFS
4302
4303 ;;
4304esac
4305# We did not find ourselves, most probably we were run as `sh COMMAND'
4306# in which case we are not to be found in the path.
4307if test "x$as_myself" = x; then
4308 as_myself=$0
4309fi
4310if test ! -f "$as_myself"; then
4311 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4312 { (exit 1); exit 1; }
4313fi
4314
4315# Work around bugs in pre-3.0 UWIN ksh.
4316for as_var in ENV MAIL MAILPATH
4317do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4318done
4319PS1='$ '
4320PS2='> '
4321PS4='+ '
4322
4323# NLS nuisances.
4324LC_ALL=C
4325export LC_ALL
4326LANGUAGE=C
4327export LANGUAGE
4328
4329# Required to use basename.
4330if expr a : '\(a\)' >/dev/null 2>&1 &&
4331 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4332 as_expr=expr
4333else
4334 as_expr=false
4335fi
4336
4337if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4338 as_basename=basename
4339else
4340 as_basename=false
4341fi
4342
4343
4344# Name of the executable.
4345as_me=`$as_basename -- "$0" ||
4346$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4347 X"$0" : 'X\(//\)$' \| \
4348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4349$as_echo X/"$0" |
4350 sed '/^.*\/\([^/][^/]*\)\/*$/{
4351 s//\1/
4352 q
4353 }
4354 /^X\/\(\/\/\)$/{
4355 s//\1/
4356 q
4357 }
4358 /^X\/\(\/\).*/{
4359 s//\1/
4360 q
4361 }
4362 s/.*/./; q'`
4363
4364# CDPATH.
4365$as_unset CDPATH
4366
4367
4368
4369 as_lineno_1=$LINENO
4370 as_lineno_2=$LINENO
4371 test "x$as_lineno_1" != "x$as_lineno_2" &&
4372 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4373
4374 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4375 # uniformly replaced by the line number. The first 'sed' inserts a
4376 # line-number line after each line using $LINENO; the second 'sed'
4377 # does the real work. The second script uses 'N' to pair each
4378 # line-number line with the line containing $LINENO, and appends
4379 # trailing '-' during substitution so that $LINENO is not a special
4380 # case at line end.
4381 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4382 # scripts with optimization help from Paolo Bonzini. Blame Lee
4383 # E. McMahon (1931-1989) for sed's syntax. :-)
4384 sed -n '
4385 p
4386 /[$]LINENO/=
4387 ' <$as_myself |
4388 sed '
4389 s/[$]LINENO.*/&-/
4390 t lineno
4391 b
4392 :lineno
4393 N
4394 :loop
4395 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4396 t loop
4397 s/-\n.*//
4398 ' >$as_me.lineno &&
4399 chmod +x "$as_me.lineno" ||
4400 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4401 { (exit 1); exit 1; }; }
4402
4403 # Don't try to exec as it changes $[0], causing all sort of problems
4404 # (the dirname of $[0] is not the place where we might find the
4405 # original and so on. Autoconf is especially sensitive to this).
4406 . "./$as_me.lineno"
4407 # Exit status is that of the last command.
4408 exit
4409}
4410
4411
4412if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4413 as_dirname=dirname
4414else
4415 as_dirname=false
4416fi
4417
4418ECHO_C= ECHO_N= ECHO_T=
4419case `echo -n x` in
4420-n*)
4421 case `echo 'x\c'` in
4422 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4423 *) ECHO_C='\c';;
4424 esac;;
4425*)
4426 ECHO_N='-n';;
4427esac
4428if expr a : '\(a\)' >/dev/null 2>&1 &&
4429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4430 as_expr=expr
4431else
4432 as_expr=false
4433fi
4434
4435rm -f conf$$ conf$$.exe conf$$.file
4436if test -d conf$$.dir; then
4437 rm -f conf$$.dir/conf$$.file
4438else
4439 rm -f conf$$.dir
4440 mkdir conf$$.dir 2>/dev/null
4441fi
4442if (echo >conf$$.file) 2>/dev/null; then
4443 if ln -s conf$$.file conf$$ 2>/dev/null; then
4444 as_ln_s='ln -s'
4445 # ... but there are two gotchas:
4446 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4447 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4448 # In both cases, we have to default to `cp -p'.
4449 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4450 as_ln_s='cp -p'
4451 elif ln conf$$.file conf$$ 2>/dev/null; then
4452 as_ln_s=ln
4453 else
4454 as_ln_s='cp -p'
4455 fi
4456else
4457 as_ln_s='cp -p'
4458fi
4459rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4460rmdir conf$$.dir 2>/dev/null
4461
4462if mkdir -p . 2>/dev/null; then
4463 as_mkdir_p=:
4464else
4465 test -d ./-p && rmdir ./-p
4466 as_mkdir_p=false
4467fi
4468
4469if test -x / >/dev/null 2>&1; then
4470 as_test_x='test -x'
4471else
4472 if ls -dL / >/dev/null 2>&1; then
4473 as_ls_L_option=L
4474 else
4475 as_ls_L_option=
4476 fi
4477 as_test_x='
4478 eval sh -c '\''
4479 if test -d "$1"; then
4480 test -d "$1/.";
4481 else
4482 case $1 in
4483 -*)set "./$1";;
4484 esac;
4485 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4486 ???[sx]*):;;*)false;;esac;fi
4487 '\'' sh
4488 '
4489fi
4490as_executable_p=$as_test_x
4491
4492# Sed expression to map a string onto a valid CPP name.
4493as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4494
4495# Sed expression to map a string onto a valid variable name.
4496as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4497
4498
4499exec 6>&1
4500
4501# Save the log message, to keep $[0] and so on meaningful, and to
4502# report actual input values of CONFIG_FILES etc. instead of their
4503# values after options handling.
4504ac_log="
4505This file was extended by mod_netconf $as_me 1.0, which was
4506generated by GNU Autoconf 2.63. Invocation command line was
4507
4508 CONFIG_FILES = $CONFIG_FILES
4509 CONFIG_HEADERS = $CONFIG_HEADERS
4510 CONFIG_LINKS = $CONFIG_LINKS
4511 CONFIG_COMMANDS = $CONFIG_COMMANDS
4512 $ $0 $@
4513
4514on `(hostname || uname -n) 2>/dev/null | sed 1q`
4515"
4516
4517_ACEOF
4518
4519case $ac_config_files in *"
4520"*) set x $ac_config_files; shift; ac_config_files=$*;;
4521esac
4522
4523
4524
4525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4526# Files that config.status was made for.
4527config_files="$ac_config_files"
4528
4529_ACEOF
4530
4531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4532ac_cs_usage="\
4533\`$as_me' instantiates files from templates according to the
4534current configuration.
4535
4536Usage: $0 [OPTION]... [FILE]...
4537
4538 -h, --help print this help, then exit
4539 -V, --version print version number and configuration settings, then exit
4540 -q, --quiet, --silent
4541 do not print progress messages
4542 -d, --debug don't remove temporary files
4543 --recheck update $as_me by reconfiguring in the same conditions
4544 --file=FILE[:TEMPLATE]
4545 instantiate the configuration file FILE
4546
4547Configuration files:
4548$config_files
4549
4550Report bugs to <bug-autoconf@gnu.org>."
4551
4552_ACEOF
4553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4554ac_cs_version="\\
4555mod_netconf config.status 1.0
4556configured by $0, generated by GNU Autoconf 2.63,
4557 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4558
4559Copyright (C) 2008 Free Software Foundation, Inc.
4560This config.status script is free software; the Free Software Foundation
4561gives unlimited permission to copy, distribute and modify it."
4562
4563ac_pwd='$ac_pwd'
4564srcdir='$srcdir'
4565INSTALL='$INSTALL'
4566test -n "\$AWK" || AWK=awk
4567_ACEOF
4568
4569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4570# The default lists apply if the user does not specify any file.
4571ac_need_defaults=:
4572while test $# != 0
4573do
4574 case $1 in
4575 --*=*)
4576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4578 ac_shift=:
4579 ;;
4580 *)
4581 ac_option=$1
4582 ac_optarg=$2
4583 ac_shift=shift
4584 ;;
4585 esac
4586
4587 case $ac_option in
4588 # Handling of the options.
4589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4590 ac_cs_recheck=: ;;
4591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4592 $as_echo "$ac_cs_version"; exit ;;
4593 --debug | --debu | --deb | --de | --d | -d )
4594 debug=: ;;
4595 --file | --fil | --fi | --f )
4596 $ac_shift
4597 case $ac_optarg in
4598 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4599 esac
4600 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
4601 ac_need_defaults=false;;
4602 --he | --h | --help | --hel | -h )
4603 $as_echo "$ac_cs_usage"; exit ;;
4604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4606 ac_cs_silent=: ;;
4607
4608 # This is an error.
4609 -*) { $as_echo "$as_me: error: unrecognized option: $1
4610Try \`$0 --help' for more information." >&2
4611 { (exit 1); exit 1; }; } ;;
4612
4613 *) ac_config_targets="$ac_config_targets $1"
4614 ac_need_defaults=false ;;
4615
4616 esac
4617 shift
4618done
4619
4620ac_configure_extra_args=
4621
4622if $ac_cs_silent; then
4623 exec 6>/dev/null
4624 ac_configure_extra_args="$ac_configure_extra_args --silent"
4625fi
4626
4627_ACEOF
4628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4629if \$ac_cs_recheck; then
4630 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4631 shift
4632 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4633 CONFIG_SHELL='$SHELL'
4634 export CONFIG_SHELL
4635 exec "\$@"
4636fi
4637
4638_ACEOF
4639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4640exec 5>>config.log
4641{
4642 echo
4643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4644## Running $as_me. ##
4645_ASBOX
4646 $as_echo "$ac_log"
4647} >&5
4648
4649_ACEOF
4650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4651_ACEOF
4652
4653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4654
4655# Handling of arguments.
4656for ac_config_target in $ac_config_targets
4657do
4658 case $ac_config_target in
4659 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4660 "mod_netconf.spec") CONFIG_FILES="$CONFIG_FILES mod_netconf.spec" ;;
4661
4662 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4663$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4664 { (exit 1); exit 1; }; };;
4665 esac
4666done
4667
4668
4669# If the user did not use the arguments to specify the items to instantiate,
4670# then the envvar interface is used. Set only those that are not.
4671# We use the long form for the default assignment because of an extremely
4672# bizarre bug on SunOS 4.1.3.
4673if $ac_need_defaults; then
4674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4675fi
4676
4677# Have a temporary directory for convenience. Make it in the build tree
4678# simply because there is no reason against having it here, and in addition,
4679# creating and moving files from /tmp can sometimes cause problems.
4680# Hook for its removal unless debugging.
4681# Note that there is a small window in which the directory will not be cleaned:
4682# after its creation but before its name has been assigned to `$tmp'.
4683$debug ||
4684{
4685 tmp=
4686 trap 'exit_status=$?
4687 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4688' 0
4689 trap '{ (exit 1); exit 1; }' 1 2 13 15
4690}
4691# Create a (secure) tmp directory for tmp files.
4692
4693{
4694 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4695 test -n "$tmp" && test -d "$tmp"
4696} ||
4697{
4698 tmp=./conf$$-$RANDOM
4699 (umask 077 && mkdir "$tmp")
4700} ||
4701{
4702 $as_echo "$as_me: cannot create a temporary directory in ." >&2
4703 { (exit 1); exit 1; }
4704}
4705
4706# Set up the scripts for CONFIG_FILES section.
4707# No need to generate them if there are no CONFIG_FILES.
4708# This happens for instance with `./config.status config.h'.
4709if test -n "$CONFIG_FILES"; then
4710
4711
4712ac_cr=' '
4713ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4714if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4715 ac_cs_awk_cr='\\r'
4716else
4717 ac_cs_awk_cr=$ac_cr
4718fi
4719
4720echo 'BEGIN {' >"$tmp/subs1.awk" &&
4721_ACEOF
4722
4723
4724{
4725 echo "cat >conf$$subs.awk <<_ACEOF" &&
4726 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4727 echo "_ACEOF"
4728} >conf$$subs.sh ||
4729 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4730$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4731 { (exit 1); exit 1; }; }
4732ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4733ac_delim='%!_!# '
4734for ac_last_try in false false false false false :; do
4735 . ./conf$$subs.sh ||
4736 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4737$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4738 { (exit 1); exit 1; }; }
4739
4740 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4741 if test $ac_delim_n = $ac_delim_num; then
4742 break
4743 elif $ac_last_try; then
4744 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4745$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4746 { (exit 1); exit 1; }; }
4747 else
4748 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4749 fi
4750done
4751rm -f conf$$subs.sh
4752
4753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4754cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4755_ACEOF
4756sed -n '
4757h
4758s/^/S["/; s/!.*/"]=/
4759p
4760g
4761s/^[^!]*!//
4762:repl
4763t repl
4764s/'"$ac_delim"'$//
4765t delim
4766:nl
4767h
4768s/\(.\{148\}\).*/\1/
4769t more1
4770s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4771p
4772n
4773b repl
4774:more1
4775s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4776p
4777g
4778s/.\{148\}//
4779t nl
4780:delim
4781h
4782s/\(.\{148\}\).*/\1/
4783t more2
4784s/["\\]/\\&/g; s/^/"/; s/$/"/
4785p
4786b
4787:more2
4788s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4789p
4790g
4791s/.\{148\}//
4792t delim
4793' <conf$$subs.awk | sed '
4794/^[^""]/{
4795 N
4796 s/\n//
4797}
4798' >>$CONFIG_STATUS || ac_write_fail=1
4799rm -f conf$$subs.awk
4800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4801_ACAWK
4802cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4803 for (key in S) S_is_set[key] = 1
4804 FS = ""
4805
4806}
4807{
4808 line = $ 0
4809 nfields = split(line, field, "@")
4810 substed = 0
4811 len = length(field[1])
4812 for (i = 2; i < nfields; i++) {
4813 key = field[i]
4814 keylen = length(key)
4815 if (S_is_set[key]) {
4816 value = S[key]
4817 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4818 len += length(value) + length(field[++i])
4819 substed = 1
4820 } else
4821 len += 1 + keylen
4822 }
4823
4824 print line
4825}
4826
4827_ACAWK
4828_ACEOF
4829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4830if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4831 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4832else
4833 cat
4834fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4835 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
4836$as_echo "$as_me: error: could not setup config files machinery" >&2;}
4837 { (exit 1); exit 1; }; }
4838_ACEOF
4839
4840# VPATH may cause trouble with some makes, so we remove $(srcdir),
4841# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4842# trailing colons and then remove the whole line if VPATH becomes empty
4843# (actually we leave an empty line to preserve line numbers).
4844if test "x$srcdir" = x.; then
4845 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4846s/:*\$(srcdir):*/:/
4847s/:*\${srcdir}:*/:/
4848s/:*@srcdir@:*/:/
4849s/^\([^=]*=[ ]*\):*/\1/
4850s/:*$//
4851s/^[^=]*=[ ]*$//
4852}'
4853fi
4854
4855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4856fi # test -n "$CONFIG_FILES"
4857
4858
4859eval set X " :F $CONFIG_FILES "
4860shift
4861for ac_tag
4862do
4863 case $ac_tag in
4864 :[FHLC]) ac_mode=$ac_tag; continue;;
4865 esac
4866 case $ac_mode$ac_tag in
4867 :[FHL]*:*);;
4868 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
4869$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
4870 { (exit 1); exit 1; }; };;
4871 :[FH]-) ac_tag=-:-;;
4872 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4873 esac
4874 ac_save_IFS=$IFS
4875 IFS=:
4876 set x $ac_tag
4877 IFS=$ac_save_IFS
4878 shift
4879 ac_file=$1
4880 shift
4881
4882 case $ac_mode in
4883 :L) ac_source=$1;;
4884 :[FH])
4885 ac_file_inputs=
4886 for ac_f
4887 do
4888 case $ac_f in
4889 -) ac_f="$tmp/stdin";;
4890 *) # Look for the file first in the build tree, then in the source tree
4891 # (if the path is not absolute). The absolute path cannot be DOS-style,
4892 # because $ac_f cannot contain `:'.
4893 test -f "$ac_f" ||
4894 case $ac_f in
4895 [\\/$]*) false;;
4896 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4897 esac ||
4898 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4899$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4900 { (exit 1); exit 1; }; };;
4901 esac
4902 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4903 ac_file_inputs="$ac_file_inputs '$ac_f'"
4904 done
4905
4906 # Let's still pretend it is `configure' which instantiates (i.e., don't
4907 # use $as_me), people would be surprised to read:
4908 # /* config.h. Generated by config.status. */
4909 configure_input='Generated from '`
4910 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4911 `' by configure.'
4912 if test x"$ac_file" != x-; then
4913 configure_input="$ac_file. $configure_input"
4914 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
4915$as_echo "$as_me: creating $ac_file" >&6;}
4916 fi
4917 # Neutralize special characters interpreted by sed in replacement strings.
4918 case $configure_input in #(
4919 *\&* | *\|* | *\\* )
4920 ac_sed_conf_input=`$as_echo "$configure_input" |
4921 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4922 *) ac_sed_conf_input=$configure_input;;
4923 esac
4924
4925 case $ac_tag in
4926 *:-:* | *:-) cat >"$tmp/stdin" \
4927 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
4928$as_echo "$as_me: error: could not create $ac_file" >&2;}
4929 { (exit 1); exit 1; }; } ;;
4930 esac
4931 ;;
4932 esac
4933
4934 ac_dir=`$as_dirname -- "$ac_file" ||
4935$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4936 X"$ac_file" : 'X\(//\)[^/]' \| \
4937 X"$ac_file" : 'X\(//\)$' \| \
4938 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4939$as_echo X"$ac_file" |
4940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4941 s//\1/
4942 q
4943 }
4944 /^X\(\/\/\)[^/].*/{
4945 s//\1/
4946 q
4947 }
4948 /^X\(\/\/\)$/{
4949 s//\1/
4950 q
4951 }
4952 /^X\(\/\).*/{
4953 s//\1/
4954 q
4955 }
4956 s/.*/./; q'`
4957 { as_dir="$ac_dir"
4958 case $as_dir in #(
4959 -*) as_dir=./$as_dir;;
4960 esac
4961 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4962 as_dirs=
4963 while :; do
4964 case $as_dir in #(
4965 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4966 *) as_qdir=$as_dir;;
4967 esac
4968 as_dirs="'$as_qdir' $as_dirs"
4969 as_dir=`$as_dirname -- "$as_dir" ||
4970$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4971 X"$as_dir" : 'X\(//\)[^/]' \| \
4972 X"$as_dir" : 'X\(//\)$' \| \
4973 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4974$as_echo X"$as_dir" |
4975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4976 s//\1/
4977 q
4978 }
4979 /^X\(\/\/\)[^/].*/{
4980 s//\1/
4981 q
4982 }
4983 /^X\(\/\/\)$/{
4984 s//\1/
4985 q
4986 }
4987 /^X\(\/\).*/{
4988 s//\1/
4989 q
4990 }
4991 s/.*/./; q'`
4992 test -d "$as_dir" && break
4993 done
4994 test -z "$as_dirs" || eval "mkdir $as_dirs"
4995 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4996$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
4997 { (exit 1); exit 1; }; }; }
4998 ac_builddir=.
4999
5000case "$ac_dir" in
5001.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5002*)
5003 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5004 # A ".." for each directory in $ac_dir_suffix.
5005 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5006 case $ac_top_builddir_sub in
5007 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5008 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5009 esac ;;
5010esac
5011ac_abs_top_builddir=$ac_pwd
5012ac_abs_builddir=$ac_pwd$ac_dir_suffix
5013# for backward compatibility:
5014ac_top_builddir=$ac_top_build_prefix
5015
5016case $srcdir in
5017 .) # We are building in place.
5018 ac_srcdir=.
5019 ac_top_srcdir=$ac_top_builddir_sub
5020 ac_abs_top_srcdir=$ac_pwd ;;
5021 [\\/]* | ?:[\\/]* ) # Absolute name.
5022 ac_srcdir=$srcdir$ac_dir_suffix;
5023 ac_top_srcdir=$srcdir
5024 ac_abs_top_srcdir=$srcdir ;;
5025 *) # Relative name.
5026 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5027 ac_top_srcdir=$ac_top_build_prefix$srcdir
5028 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5029esac
5030ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5031
5032
5033 case $ac_mode in
5034 :F)
5035 #
5036 # CONFIG_FILE
5037 #
5038
5039 case $INSTALL in
5040 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5041 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5042 esac
5043_ACEOF
5044
5045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5046# If the template does not know about datarootdir, expand it.
5047# FIXME: This hack should be removed a few years after 2.60.
5048ac_datarootdir_hack=; ac_datarootdir_seen=
5049
5050ac_sed_dataroot='
5051/datarootdir/ {
5052 p
5053 q
5054}
5055/@datadir@/p
5056/@docdir@/p
5057/@infodir@/p
5058/@localedir@/p
5059/@mandir@/p
5060'
5061case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5062*datarootdir*) ac_datarootdir_seen=yes;;
5063*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5064 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5065$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5066_ACEOF
5067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5068 ac_datarootdir_hack='
5069 s&@datadir@&$datadir&g
5070 s&@docdir@&$docdir&g
5071 s&@infodir@&$infodir&g
5072 s&@localedir@&$localedir&g
5073 s&@mandir@&$mandir&g
5074 s&\\\${datarootdir}&$datarootdir&g' ;;
5075esac
5076_ACEOF
5077
5078# Neutralize VPATH when `$srcdir' = `.'.
5079# Shell code in configure.ac might set extrasub.
5080# FIXME: do we really want to maintain this feature?
5081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5082ac_sed_extra="$ac_vpsub
5083$extrasub
5084_ACEOF
5085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5086:t
5087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5088s|@configure_input@|$ac_sed_conf_input|;t t
5089s&@top_builddir@&$ac_top_builddir_sub&;t t
5090s&@top_build_prefix@&$ac_top_build_prefix&;t t
5091s&@srcdir@&$ac_srcdir&;t t
5092s&@abs_srcdir@&$ac_abs_srcdir&;t t
5093s&@top_srcdir@&$ac_top_srcdir&;t t
5094s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5095s&@builddir@&$ac_builddir&;t t
5096s&@abs_builddir@&$ac_abs_builddir&;t t
5097s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5098s&@INSTALL@&$ac_INSTALL&;t t
5099$ac_datarootdir_hack
5100"
5101eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5102 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
5103$as_echo "$as_me: error: could not create $ac_file" >&2;}
5104 { (exit 1); exit 1; }; }
5105
5106test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5107 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5108 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5109 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5110which seems to be undefined. Please make sure it is defined." >&5
5111$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5112which seems to be undefined. Please make sure it is defined." >&2;}
5113
5114 rm -f "$tmp/stdin"
5115 case $ac_file in
5116 -) cat "$tmp/out" && rm -f "$tmp/out";;
5117 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5118 esac \
5119 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
5120$as_echo "$as_me: error: could not create $ac_file" >&2;}
5121 { (exit 1); exit 1; }; }
5122 ;;
5123
5124
5125
5126 esac
5127
5128done # for ac_tag
5129
5130
5131{ (exit 0); exit 0; }
5132_ACEOF
5133chmod +x $CONFIG_STATUS
5134ac_clean_files=$ac_clean_files_save
5135
5136test $ac_write_fail = 0 ||
5137 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
5138$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
5139 { (exit 1); exit 1; }; }
5140
5141
5142# configure is writing to config.log, and then calls config.status.
5143# config.status does its own redirection, appending to config.log.
5144# Unfortunately, on DOS this fails, as config.log is still kept open
5145# by configure, so config.status won't be able to write to it; its
5146# output is simply discarded. So we exec the FD to /dev/null,
5147# effectively closing config.log, so it can be properly (re)opened and
5148# appended to by config.status. When coming back to configure, we
5149# need to make the FD available again.
5150if test "$no_create" != yes; then
5151 ac_cs_success=:
5152 ac_config_status_args=
5153 test "$silent" = yes &&
5154 ac_config_status_args="$ac_config_status_args --quiet"
5155 exec 5>/dev/null
5156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5157 exec 5>>config.log
5158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5159 # would make configure fail if this is the last instruction.
5160 $ac_cs_success || { (exit 1); exit 1; }
5161fi
5162if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5163 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5164$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5165fi
5166