2 # Generated by configure.
3 # Run this file to recreate the current configuration.
4 # Compiler output produced by configure, useful for debugging
5 # configure, is in config.log if it exists.
11 SHELL
=${CONFIG_SHELL-/bin/sh}
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # as_fn_error STATUS ERROR [LINENO LOG_FD]
138 # ----------------------------------------
139 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
140 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
141 # script with STATUS, using 1 if that was 0.
144 as_status
=$1; test $as_status -eq 0 && as_status
=1
146 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
147 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
149 $as_echo "$as_me: error: $2" >&2
150 as_fn_exit
$as_status
154 # as_fn_set_status STATUS
155 # -----------------------
156 # Set $? to STATUS, without forking.
164 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
174 # Portably unset VAR.
177 { eval $1=; unset $1;}
180 # as_fn_append VAR VALUE
181 # ----------------------
182 # Append the text in VALUE to the end of the definition contained in VAR. Take
183 # advantage of any shell optimizations that allow amortized linear growth over
184 # repeated appends, instead of the typical quadratic growth present in naive
186 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
187 eval 'as_fn_append ()
200 # Perform arithmetic evaluation on the ARGs, and store the result in the
201 # global $as_val. Take advantage of shells that can avoid forks. The arguments
202 # must be portable across $(()) and expr.
203 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
211 as_val
=`expr "$@" || test $? -eq 1`
216 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
217 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
223 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
229 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
235 as_me
=`$as_basename -- "$0" ||
236 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
237 X"$0" : 'X\(//\)$' \| \
238 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
240 sed '/^.*\/\([^/][^/]*\)\/*$/{
254 # Avoid depending upon Character Ranges.
255 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
256 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
257 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
258 as_cr_digits
='0123456789'
259 as_cr_alnum
=$as_cr_Letters$as_cr_digits
261 ECHO_C
= ECHO_N
= ECHO_T
=
262 case `echo -n x` in #(((((
264 case `echo 'xy\c'` in
265 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
267 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
274 rm -f conf$$ conf$$.exe conf$$.
file
275 if test -d conf$$.dir
; then
276 rm -f conf$$.dir
/conf$$.
file
279 mkdir conf$$.dir
2>/dev
/null
281 if (echo >conf$$.
file) 2>/dev
/null
; then
282 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
284 # ... but there are two gotchas:
285 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
286 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
287 # In both cases, we have to default to `cp -p'.
288 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
290 elif ln conf$$.
file conf$$
2>/dev
/null
; then
298 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
299 rmdir conf$$.dir
2>/dev
/null
304 # Create "$as_dir" as a directory, including parents if necessary.
309 -*) as_dir
=.
/$as_dir;;
311 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
315 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
318 as_dirs
="'$as_qdir' $as_dirs"
319 as_dir
=`$as_dirname -- "$as_dir" ||
320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
321 X"$as_dir" : 'X\(//\)[^/]' \| \
322 X"$as_dir" : 'X\(//\)$' \| \
323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
324 $as_echo X"$as_dir" |
325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
342 test -d "$as_dir" && break
344 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
345 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
349 if mkdir
-p .
2>/dev
/null
; then
350 as_mkdir_p
='mkdir -p "$as_dir"'
352 test -d .
/-p && rmdir .
/-p
356 if test -x / >/dev
/null
2>&1; then
359 if ls -dL / >/dev
/null
2>&1; then
366 if test -d "$1"; then
372 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
373 ???[sx]*):;;*)false;;esac;fi
377 as_executable_p
=$as_test_x
379 # Sed expression to map a string onto a valid CPP name.
380 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
382 # Sed expression to map a string onto a valid variable name.
383 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
387 ## ----------------------------------- ##
388 ## Main body of $CONFIG_STATUS script. ##
389 ## ----------------------------------- ##
390 # Save the log message, to keep $0 and so on meaningful, and to
391 # report actual input values of CONFIG_FILES etc. instead of their
392 # values after options handling.
394 This file was extended by $as_me, which was
395 generated by GNU Autoconf 2.67. Invocation command line was
397 CONFIG_FILES = $CONFIG_FILES
398 CONFIG_HEADERS = $CONFIG_HEADERS
399 CONFIG_LINKS = $CONFIG_LINKS
400 CONFIG_COMMANDS = $CONFIG_COMMANDS
403 on `(hostname || uname -n) 2>/dev/null | sed 1q`
406 # Files that config.status was made for.
407 config_files
=" Makefile libevent/Makefile ../scripts/pppoe-connect ../scripts/pppoe-start ../scripts/pppoe-stop ../scripts/pppoe-init ../scripts/pppoe-init-suse ../scripts/pppoe-init-turbolinux ../scripts/pppoe-setup ../gui/Makefile ../gui/tkpppoe "
408 config_headers
=" config.h"
411 \`$as_me' instantiates files and other configuration actions
412 from templates according to the current configuration. Unless the files
413 and actions are specified as TAGs, all are instantiated by default.
415 Usage: $0 [OPTION]... [TAG]...
417 -h, --help print this help, then exit
418 -V, --version print version number and configuration settings, then exit
419 --config print configuration, then exit
420 -q, --quiet, --silent
421 do not print progress messages
422 -d, --debug don't remove temporary files
423 --recheck update $as_me by reconfiguring in the same conditions
424 --file=FILE[:TEMPLATE]
425 instantiate the configuration file FILE
426 --header=FILE[:TEMPLATE]
427 instantiate the configuration header FILE
432 Configuration headers:
435 Report bugs to the package provider."
437 ac_cs_config
="'--host=mipsel-linux' '--build=x86_64-linux-gnu' '--prefix=/usr' '--enable-plugin=/home/vicente/tomato/release/src-rt/router/pppd' 'ac_cv_linux_kernel_pppoe=yes' 'rpppoe_cv_pack_bitfields=rev' 'build_alias=x86_64-linux-gnu' 'host_alias=mipsel-linux' 'CC=mipsel-uclibc-gcc' 'CFLAGS=-g -O2 -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 '"
440 configured by ./configure, generated by GNU Autoconf 2.67,
441 with options \"$ac_cs_config\"
443 Copyright (C) 2010 Free Software Foundation, Inc.
444 This config.status script is free software; the Free Software Foundation
445 gives unlimited permission to copy, distribute and modify it."
447 ac_pwd
='/home/vicente/tomato/release/src/router/rp-pppoe/src'
449 INSTALL
='/usr/bin/install -c'
450 test -n "$AWK" || AWK
=awk
451 # The default lists apply if the user does not specify any file.
457 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
458 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
462 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
474 # Handling of the options.
475 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
477 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
478 $as_echo "$ac_cs_version"; exit ;;
479 --config |
--confi |
--conf |
--con |
--co |
--c )
480 $as_echo "$ac_cs_config"; exit ;;
481 --debug |
--debu |
--deb |
--de |
--d |
-d )
483 --file |
--fil |
--fi |
--f )
486 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
487 '') as_fn_error $?
"missing file argument" ;;
489 as_fn_append CONFIG_FILES
" '$ac_optarg'"
490 ac_need_defaults
=false
;;
491 --header |
--heade |
--head |
--hea )
494 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
496 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
497 ac_need_defaults
=false
;;
499 # Conflict between --help and --header
500 as_fn_error $?
"ambiguous option: \`$1'
501 Try \`$0 --help' for more information.";;
502 --help |
--hel |
-h )
503 $as_echo "$ac_cs_usage"; exit ;;
504 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
505 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
509 -*) as_fn_error $?
"unrecognized option: \`$1'
510 Try \`$0 --help' for more information." ;;
512 *) as_fn_append ac_config_targets
" $1"
513 ac_need_defaults
=false
;;
519 ac_configure_extra_args
=
521 if $ac_cs_silent; then
523 ac_configure_extra_args
="$ac_configure_extra_args --silent"
526 if $ac_cs_recheck; then
527 set X
'/bin/sh' './configure' '--host=mipsel-linux' '--build=x86_64-linux-gnu' '--prefix=/usr' '--enable-plugin=/home/vicente/tomato/release/src-rt/router/pppd' 'ac_cv_linux_kernel_pppoe=yes' 'rpppoe_cv_pack_bitfields=rev' 'build_alias=x86_64-linux-gnu' 'host_alias=mipsel-linux' 'CC=mipsel-uclibc-gcc' 'CFLAGS=-g -O2 -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 ' $ac_configure_extra_args --no-create --no-recursion
529 $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
530 CONFIG_SHELL
='/bin/sh'
538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
539 ## Running $as_me. ##
545 # Handling of arguments.
546 for ac_config_target
in $ac_config_targets
548 case $ac_config_target in
549 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
550 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
551 "libevent/Makefile") CONFIG_FILES
="$CONFIG_FILES libevent/Makefile" ;;
552 "../scripts/pppoe-connect") CONFIG_FILES
="$CONFIG_FILES ../scripts/pppoe-connect" ;;
553 "../scripts/pppoe-start") CONFIG_FILES
="$CONFIG_FILES ../scripts/pppoe-start" ;;
554 "../scripts/pppoe-stop") CONFIG_FILES
="$CONFIG_FILES ../scripts/pppoe-stop" ;;
555 "../scripts/pppoe-init") CONFIG_FILES
="$CONFIG_FILES ../scripts/pppoe-init" ;;
556 "../scripts/pppoe-init-suse") CONFIG_FILES
="$CONFIG_FILES ../scripts/pppoe-init-suse" ;;
557 "../scripts/pppoe-init-turbolinux") CONFIG_FILES
="$CONFIG_FILES ../scripts/pppoe-init-turbolinux" ;;
558 "../scripts/pppoe-setup") CONFIG_FILES
="$CONFIG_FILES ../scripts/pppoe-setup" ;;
559 "../gui/Makefile") CONFIG_FILES
="$CONFIG_FILES ../gui/Makefile" ;;
560 "../gui/tkpppoe") CONFIG_FILES
="$CONFIG_FILES ../gui/tkpppoe" ;;
561 "$EXTRACONFIGS") CONFIG_FILES
="$CONFIG_FILES $EXTRACONFIGS" ;;
563 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
568 # If the user did not use the arguments to specify the items to instantiate,
569 # then the envvar interface is used. Set only those that are not.
570 # We use the long form for the default assignment because of an extremely
571 # bizarre bug on SunOS 4.1.3.
572 if $ac_need_defaults; then
573 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
574 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
577 # Have a temporary directory for convenience. Make it in the build tree
578 # simply because there is no reason against having it here, and in addition,
579 # creating and moving files from /tmp can sometimes cause problems.
580 # Hook for its removal unless debugging.
581 # Note that there is a small window in which the directory will not be cleaned:
582 # after its creation but before its name has been assigned to `$tmp'.
587 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
589 trap 'as_fn_exit 1' 1 2 13 15
591 # Create a (secure) tmp directory for tmp files.
594 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
595 test -n "$tmp" && test -d "$tmp"
599 (umask 077 && mkdir
"$tmp")
600 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
602 # Set up the scripts for CONFIG_FILES section.
603 # No need to generate them if there are no CONFIG_FILES.
604 # This happens for instance with `./config.status config.h'.
605 if test -n "$CONFIG_FILES"; then
608 ac_cr
=`echo X | tr X '\015'`
609 # On cygwin, bash can eat \r inside `` if the user requested igncr.
610 # But we know of no other shell where ac_cr would be empty at this
611 # point, so we can use a bashism as a fallback.
612 if test "x$ac_cr" = x
; then
615 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
616 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
622 echo 'BEGIN {' >"$tmp/subs1.awk" &&
623 cat >>"$tmp/subs1.awk" <<\_ACAWK
&&
624 S
["LTLIBOBJS"]=" ${LIBOBJDIR}memcmp$U.lo"
625 S
["datadir_evaluated"]="${prefix}/share"
626 S
["LIBEVENT"]="../libevent"
628 S
["PPPOE_SERVER_DEPS"]=""
630 S
["LIC_MAKEFILE_INCLUDE"]=""
634 S
["TARGETS"]="pppoe pppoe-server pppoe-sniff pppoe-relay rp-pppoe.so"
635 S
["WRAPPER"]="/usr/sbin/pppoe-wrapper"
636 S
["ID"]="/usr/bin/id"
637 S
["SETSID"]="/usr/bin/setsid"
638 S
["ECHO"]="/bin/echo"
640 S
["INSTALL_DATA"]="${INSTALL} -m 644"
641 S
["INSTALL_SCRIPT"]="${INSTALL}"
642 S
["INSTALL_PROGRAM"]="${INSTALL}"
643 S
["LIBOBJS"]=" ${LIBOBJDIR}memcmp$U.o"
644 S
["PPPOE_RELAY"]="pppoe-relay"
646 S
["PPPD_INCDIR"]="/home/vicente/tomato/release/src-rt/router/pppd"
647 S
["LINUX_KERNELMODE_PLUGIN"]="rp-pppoe.so"
648 S
["EGREP"]="/bin/grep -E"
649 S
["GREP"]="/bin/grep"
650 S
["CPP"]="mipsel-uclibc-gcc -E"
651 S
["RANLIB"]="mipsel-uclibc-ranlib"
657 S
["CFLAGS"]="-g -O2 -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 -fno-strict-aliasing -Wall -Wstrict-prot"\
659 S
["CC"]="mipsel-uclibc-gcc"
661 S
["host_alias"]="mipsel-linux"
662 S
["build_alias"]="x86_64-linux-gnu"
667 S
["DEFS"]="-DHAVE_CONFIG_H"
668 S
["mandir"]="${datarootdir}/man"
669 S
["localedir"]="${datarootdir}/locale"
670 S
["libdir"]="${exec_prefix}/lib"
671 S
["psdir"]="${docdir}"
672 S
["pdfdir"]="${docdir}"
673 S
["dvidir"]="${docdir}"
674 S
["htmldir"]="${docdir}"
675 S
["infodir"]="${datarootdir}/info"
676 S
["docdir"]="${datarootdir}/doc/${PACKAGE}"
677 S
["oldincludedir"]="/usr/include"
678 S
["includedir"]="${prefix}/include"
679 S
["localstatedir"]="${prefix}/var"
680 S
["sharedstatedir"]="${prefix}/com"
681 S
["sysconfdir"]="${prefix}/etc"
682 S
["datadir"]="${datarootdir}"
683 S
["datarootdir"]="${prefix}/share"
684 S
["libexecdir"]="${exec_prefix}/libexec"
685 S
["sbindir"]="${exec_prefix}/sbin"
686 S
["bindir"]="${exec_prefix}/bin"
687 S
["program_transform_name"]="s,x,x,"
689 S
["exec_prefix"]="${prefix}"
691 S
["PACKAGE_BUGREPORT"]=""
692 S
["PACKAGE_STRING"]=""
693 S
["PACKAGE_VERSION"]=""
694 S
["PACKAGE_TARNAME"]=""
696 S
["PATH_SEPARATOR"]=":"
699 cat >>"$tmp/subs1.awk" <<_ACAWK &&
700 for (key in S) S_is_set[key] = 1
706 nfields = split(line, field, "@")
708 len = length(field[1])
709 for (i = 2; i < nfields; i++) {
714 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
715 len += length(value) + length(field[++i])
725 if sed "s/$ac_cr//" < /dev
/null
> /dev
/null
2>&1; then
726 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
729 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
730 || as_fn_error $?
"could not setup config files machinery" "$LINENO" 5
731 fi # test -n "$CONFIG_FILES"
733 # Set up the scripts for CONFIG_HEADERS section.
734 # No need to generate them if there are no CONFIG_HEADERS.
735 # This happens for instance with `./config.status Makefile'.
736 if test -n "$CONFIG_HEADERS"; then
737 cat >"$tmp/defines.awk" <<\_ACAWK ||
739 D
["PACKAGE_NAME"]=" \"\""
740 D
["PACKAGE_TARNAME"]=" \"\""
741 D
["PACKAGE_VERSION"]=" \"\""
742 D
["PACKAGE_STRING"]=" \"\""
743 D
["PACKAGE_BUGREPORT"]=" \"\""
744 D
["PACKAGE_URL"]=" \"\""
745 D
["STDC_HEADERS"]=" 1"
746 D
["HAVE_SYS_WAIT_H"]=" 1"
747 D
["HAVE_SYS_TYPES_H"]=" 1"
748 D
["HAVE_SYS_STAT_H"]=" 1"
749 D
["HAVE_STDLIB_H"]=" 1"
750 D
["HAVE_STRING_H"]=" 1"
751 D
["HAVE_MEMORY_H"]=" 1"
752 D
["HAVE_STRINGS_H"]=" 1"
753 D
["HAVE_INTTYPES_H"]=" 1"
754 D
["HAVE_STDINT_H"]=" 1"
755 D
["HAVE_UNISTD_H"]=" 1"
756 D
["HAVE_FCNTL_H"]=" 1"
757 D
["HAVE_SYS_IOCTL_H"]=" 1"
758 D
["HAVE_SYS_TIME_H"]=" 1"
759 D
["HAVE_SYSLOG_H"]=" 1"
760 D
["HAVE_UNISTD_H"]=" 1"
761 D
["HAVE_NET_IF_ARP_H"]=" 1"
762 D
["HAVE_NETINET_IF_ETHER_H"]=" 1"
763 D
["HAVE_GETOPT_H"]=" 1"
764 D
["HAVE_SYS_UIO_H"]=" 1"
765 D
["HAVE_SYS_PARAM_H"]=" 1"
766 D
["HAVE_FCNTL_H"]=" 1"
767 D
["HAVE_NETPACKET_PACKET_H"]=" 1"
768 D
["HAVE_NET_ETHERNET_H"]=" 1"
769 D
["HAVE_ASM_TYPES_H"]=" 1"
770 D
["HAVE_LINUX_IF_PACKET_H"]=" 1"
771 D
["HAVE_LINUX_IF_ETHER_H"]=" 1"
772 D
["HAVE_SYS_SOCKET_H"]=" 1"
773 D
["HAVE_SYS_CDEFS_H"]=" 1"
774 D
["HAVE_NET_IF_H"]=" 1"
775 D
["HAVE_NETINET_IF_ETHER_H"]=" 1"
776 D
["HAVE_LINUX_IF_H"]=" 1"
777 D
["HAVE_LINUX_IF_PPPOX_H"]=" 1"
778 D
["TIME_WITH_SYS_TIME"]=" 1"
779 D
["HAVE_STRUCT_SOCKADDR_LL"]=" 1"
780 D
["HAVE_LINUX_KERNEL_PPPOE"]=" 1"
781 D
["DEBUGGING_ENABLED"]=" 1"
782 D
["RETSIGTYPE"]=" void"
783 D
["HAVE_SELECT"]=" 1"
784 D
["HAVE_SOCKET"]=" 1"
785 D
["HAVE_STRERROR"]=" 1"
786 D
["HAVE_STRTOL"]=" 1"
787 D
["SIZEOF_UNSIGNED_SHORT"]=" 2"
788 D
["SIZEOF_UNSIGNED_INT"]=" 4"
789 D
["SIZEOF_UNSIGNED_LONG"]=" 4"
790 D
["PACK_BITFIELDS_REVERSED"]=" 1"
791 for (key
in D
) D_is_set
[key
] = 1
794 /^
[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
796 split(line
, arg
, " ")
801 defundef
= substr
(arg
[1], 2)
804 split(mac1
, mac2
, "(") #)
806 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
807 if (D_is_set
[macro
]) {
808 # Preserve the white space surrounding the "#".
809 print prefix
"define", macro P
[macro
] D
[macro
]
812 # Replace #undef with comments. This is necessary, for example,
813 # in the case of _POSIX_SOURCE, which is predefined and required
814 # on some systems where configure will not decide to define it.
815 if (defundef
== "undef") {
816 print
"/*", prefix defundef
, macro
, "*/"
823 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
824 fi # test -n "$CONFIG_HEADERS"
827 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
832 :[FHLC
]) ac_mode
=$ac_tag; continue;;
834 case $ac_mode$ac_tag in
836 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5 ;;
838 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
855 -) ac_f
="$tmp/stdin";;
856 *) # Look for the file first in the build tree, then in the source tree
857 # (if the path is not absolute). The absolute path cannot be DOS-style,
858 # because $ac_f cannot contain `:'.
862 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
864 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
866 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
867 as_fn_append ac_file_inputs
" '$ac_f'"
870 # Let's still pretend it is `configure' which instantiates (i.e., don't
871 # use $as_me), people would be surprised to read:
872 # /* config.h. Generated by config.status. */
873 configure_input
='Generated from '`
874 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
876 if test x
"$ac_file" != x-
; then
877 configure_input
="$ac_file. $configure_input"
878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
879 $as_echo "$as_me: creating $ac_file" >&6;}
881 # Neutralize special characters interpreted by sed in replacement strings.
882 case $configure_input in #(
884 ac_sed_conf_input
=`$as_echo "$configure_input" |
885 sed 's/[\\\\&|]/\\\\&/g'`;; #(
886 *) ac_sed_conf_input
=$configure_input;;
890 *:-:* |
*:-) cat >"$tmp/stdin" \
891 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
896 ac_dir
=`$as_dirname -- "$ac_file" ||
897 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
898 X"$ac_file" : 'X\(//\)[^/]' \| \
899 X"$ac_file" : 'X\(//\)$' \| \
900 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
901 $as_echo X"$ac_file" |
902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
919 as_dir
="$ac_dir"; as_fn_mkdir_p
923 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
925 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
926 # A ".." for each directory in $ac_dir_suffix.
927 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
928 case $ac_top_builddir_sub in
929 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
930 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
933 ac_abs_top_builddir
=$ac_pwd
934 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
935 # for backward compatibility:
936 ac_top_builddir
=$ac_top_build_prefix
939 .
) # We are building in place.
941 ac_top_srcdir
=$ac_top_builddir_sub
942 ac_abs_top_srcdir
=$ac_pwd ;;
943 [\\/]* | ?
:[\\/]* ) # Absolute name.
944 ac_srcdir
=$srcdir$ac_dir_suffix;
945 ac_top_srcdir
=$srcdir
946 ac_abs_top_srcdir
=$srcdir ;;
948 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
949 ac_top_srcdir
=$ac_top_build_prefix$srcdir
950 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
952 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
962 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
963 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
965 # If the template does not know about datarootdir, expand it.
966 # FIXME: This hack should be removed a few years after 2.60.
967 ac_datarootdir_hack
=; ac_datarootdir_seen
=
978 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
979 *datarootdir
*) ac_datarootdir_seen
=yes;;
980 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
982 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
983 ac_datarootdir_hack
='
984 s&@datadir@&${datarootdir}&g
985 s&@docdir@&${datarootdir}/doc/${PACKAGE}&g
986 s&@infodir@&${datarootdir}/info&g
987 s&@localedir@&${datarootdir}/locale&g
988 s&@mandir@&${datarootdir}/man&g
989 s&\${datarootdir}&${prefix}/share&g' ;;
991 ac_sed_extra
="/^[ ]*VPATH[ ]*=[ ]*/{
1009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1010 s|@configure_input@|$ac_sed_conf_input|;t t
1011 s&@top_builddir@&$ac_top_builddir_sub&;t t
1012 s&@top_build_prefix@&$ac_top_build_prefix&;t t
1013 s&@srcdir@&$ac_srcdir&;t t
1014 s&@abs_srcdir@&$ac_abs_srcdir&;t t
1015 s&@top_srcdir@&$ac_top_srcdir&;t t
1016 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1017 s&@builddir@&$ac_builddir&;t t
1018 s&@abs_builddir@&$ac_abs_builddir&;t t
1019 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1020 s&@INSTALL@&$ac_INSTALL&;t t
1021 $ac_datarootdir_hack
1023 eval sed \"\
$ac_sed_extra\" "$ac_file_inputs" |
$AWK -f "$tmp/subs.awk" >$tmp/out \
1024 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5
1026 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1027 { ac_out
=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
1028 { ac_out
=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1030 which seems to be undefined. Please make sure it is defined" >&5
1031 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1032 which seems to be undefined. Please make sure it is defined" >&2;}
1036 -) cat "$tmp/out" && rm -f "$tmp/out";;
1037 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
1039 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5
1045 if test x
"$ac_file" != x-
; then
1047 $as_echo "/* $configure_input */" \
1048 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
1049 } >"$tmp/config.h" \
1050 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5
1051 if diff "$ac_file" "$tmp/config.h" >/dev
/null
2>&1; then
1052 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1053 $as_echo "$as_me: $ac_file is unchanged" >&6;}
1056 mv "$tmp/config.h" "$ac_file" \
1057 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5
1060 $as_echo "/* $configure_input */" \
1061 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
1062 || as_fn_error $?
"could not create -" "$LINENO" 5