paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.53. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4 | # |
| 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 6 | # 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. |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 9 | |
| 10 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11 | as_expr=expr |
| 12 | else |
| 13 | as_expr=false |
| 14 | fi |
| 15 | |
| 16 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 17 | ## --------------------- ## |
| 18 | ## M4sh Initialization. ## |
| 19 | ## --------------------- ## |
| 20 | |
| 21 | # Be Bourne compatible |
| 22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 23 | emulate sh |
| 24 | NULLCMD=: |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 25 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 26 | set -o posix |
| 27 | fi |
| 28 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 29 | # NLS nuisances. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 30 | # Support unset when possible. |
| 31 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 32 | as_unset=unset |
| 33 | else |
| 34 | as_unset=false |
| 35 | fi |
| 36 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 37 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 38 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 39 | { LANG=C; export LANG; } |
| 40 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 41 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 42 | { LC_ALL=C; export LC_ALL; } |
| 43 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 44 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 45 | { LC_TIME=C; export LC_TIME; } |
| 46 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 47 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 48 | { LC_CTYPE=C; export LC_CTYPE; } |
| 49 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 50 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 51 | { LANGUAGE=C; export LANGUAGE; } |
| 52 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 53 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 54 | { LC_COLLATE=C; export LC_COLLATE; } |
| 55 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 56 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 57 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 58 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 59 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 60 | { LC_MESSAGES=C; export LC_MESSAGES; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 61 | |
| 62 | |
| 63 | # Name of the executable. |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 64 | as_me=`(basename "$0") 2>/dev/null || |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 65 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 66 | X"$0" : 'X\(//\)$' \| \ |
| 67 | X"$0" : 'X\(/\)$' \| \ |
| 68 | . : '\(.\)' 2>/dev/null || |
| 69 | echo X/"$0" | |
| 70 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 71 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 72 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 73 | s/.*/./; q'` |
| 74 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 75 | # PATH needs CR, and LINENO needs CR and PATH. |
| 76 | # Avoid depending upon Character Ranges. |
| 77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 80 | as_cr_digits='0123456789' |
| 81 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 82 | |
| 83 | # The user is always right. |
| 84 | if test "${PATH_SEPARATOR+set}" != set; then |
| 85 | echo "#! /bin/sh" >conftest.sh |
| 86 | echo "exit 0" >>conftest.sh |
| 87 | chmod +x conftest.sh |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 88 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 89 | PATH_SEPARATOR=';' |
| 90 | else |
| 91 | PATH_SEPARATOR=: |
| 92 | fi |
| 93 | rm -f conftest.sh |
| 94 | fi |
| 95 | |
| 96 | |
| 97 | as_lineno_1=$LINENO |
| 98 | as_lineno_2=$LINENO |
| 99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 100 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 101 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 102 | # Find who we are. Look in the path if we contain no path at all |
| 103 | # relative or not. |
| 104 | case $0 in |
| 105 | *[\\/]* ) as_myself=$0 ;; |
| 106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 107 | for as_dir in $PATH |
| 108 | do |
| 109 | IFS=$as_save_IFS |
| 110 | test -z "$as_dir" && as_dir=. |
| 111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 112 | done |
| 113 | |
| 114 | ;; |
| 115 | esac |
| 116 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 117 | # in which case we are not to be found in the path. |
| 118 | if test "x$as_myself" = x; then |
| 119 | as_myself=$0 |
| 120 | fi |
| 121 | if test ! -f "$as_myself"; then |
| 122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 123 | { (exit 1); exit 1; }; } |
| 124 | fi |
| 125 | case $CONFIG_SHELL in |
| 126 | '') |
| 127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 129 | do |
| 130 | IFS=$as_save_IFS |
| 131 | test -z "$as_dir" && as_dir=. |
| 132 | for as_base in sh bash ksh sh5; do |
| 133 | case $as_dir in |
| 134 | /*) |
| 135 | if ("$as_dir/$as_base" -c ' |
| 136 | as_lineno_1=$LINENO |
| 137 | as_lineno_2=$LINENO |
| 138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 139 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 141 | CONFIG_SHELL=$as_dir/$as_base |
| 142 | export CONFIG_SHELL |
| 143 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 144 | fi;; |
| 145 | esac |
| 146 | done |
| 147 | done |
| 148 | ;; |
| 149 | esac |
| 150 | |
| 151 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 152 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 153 | # line-number line before each line; the second 'sed' does the real |
| 154 | # work. The second script uses 'N' to pair each line-number line |
| 155 | # with the numbered line, and appends trailing '-' during |
| 156 | # substitution so that $LINENO is not a special case at line end. |
| 157 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 158 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 159 | sed '=' <$as_myself | |
| 160 | sed ' |
| 161 | N |
| 162 | s,$,-, |
| 163 | : loop |
| 164 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 165 | t loop |
| 166 | s,-$,, |
| 167 | s,^['$as_cr_digits']*\n,, |
| 168 | ' >$as_me.lineno && |
| 169 | chmod +x $as_me.lineno || |
| 170 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 171 | { (exit 1); exit 1; }; } |
| 172 | |
| 173 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 174 | # (the dirname of $[0] is not the place where we might find the |
| 175 | # original and so on. Autoconf is especially sensible to this). |
| 176 | . ./$as_me.lineno |
| 177 | # Exit status is that of the last command. |
| 178 | exit |
| 179 | } |
| 180 | |
| 181 | |
| 182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 183 | *c*,-n*) ECHO_N= ECHO_C=' |
| 184 | ' ECHO_T=' ' ;; |
| 185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 187 | esac |
| 188 | |
| 189 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 190 | as_expr=expr |
| 191 | else |
| 192 | as_expr=false |
| 193 | fi |
| 194 | |
| 195 | rm -f conf$$ conf$$.exe conf$$.file |
| 196 | echo >conf$$.file |
| 197 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 198 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 200 | if test -f conf$$.exe; then |
| 201 | # Don't use ln at all; we don't have any links |
| 202 | as_ln_s='cp -p' |
| 203 | else |
| 204 | as_ln_s='ln -s' |
| 205 | fi |
| 206 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 207 | as_ln_s=ln |
| 208 | else |
| 209 | as_ln_s='cp -p' |
| 210 | fi |
| 211 | rm -f conf$$ conf$$.exe conf$$.file |
| 212 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 213 | as_executable_p="test -f" |
| 214 | |
| 215 | # Sed expression to map a string onto a valid CPP name. |
| 216 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 217 | |
| 218 | # Sed expression to map a string onto a valid variable name. |
| 219 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 220 | |
| 221 | |
| 222 | # IFS |
| 223 | # We need space, tab and new line, in precisely that order. |
| 224 | as_nl=' |
| 225 | ' |
| 226 | IFS=" $as_nl" |
| 227 | |
| 228 | # CDPATH. |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 229 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 230 | |
| 231 | |
| 232 | # Name of the host. |
| 233 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 234 | # so uname gets run too. |
| 235 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 236 | |
| 237 | exec 6>&1 |
| 238 | |
| 239 | # |
| 240 | # Initializations. |
| 241 | # |
| 242 | ac_default_prefix=/usr/local |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 243 | cross_compiling=no |
| 244 | subdirs= |
| 245 | MFLAGS= |
| 246 | MAKEFLAGS= |
| 247 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 248 | |
| 249 | # Maximum number of lines to put in a shell here document. |
| 250 | # This variable seems obsolete. It should probably be removed, and |
| 251 | # only ac_max_sed_lines should be used. |
| 252 | : ${ac_max_here_lines=38} |
| 253 | |
| 254 | # Identity of this package. |
| 255 | PACKAGE_NAME= |
| 256 | PACKAGE_TARNAME= |
| 257 | PACKAGE_VERSION= |
| 258 | PACKAGE_STRING= |
| 259 | PACKAGE_BUGREPORT= |
| 260 | |
| 261 | ac_unique_file="lib/zebra.h" |
| 262 | # Factoring default headers for most tests. |
| 263 | ac_includes_default="\ |
| 264 | #include <stdio.h> |
| 265 | #if HAVE_SYS_TYPES_H |
| 266 | # include <sys/types.h> |
| 267 | #endif |
| 268 | #if HAVE_SYS_STAT_H |
| 269 | # include <sys/stat.h> |
| 270 | #endif |
| 271 | #if STDC_HEADERS |
| 272 | # include <stdlib.h> |
| 273 | # include <stddef.h> |
| 274 | #else |
| 275 | # if HAVE_STDLIB_H |
| 276 | # include <stdlib.h> |
| 277 | # endif |
| 278 | #endif |
| 279 | #if HAVE_STRING_H |
| 280 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 281 | # include <memory.h> |
| 282 | # endif |
| 283 | # include <string.h> |
| 284 | #endif |
| 285 | #if HAVE_STRINGS_H |
| 286 | # include <strings.h> |
| 287 | #endif |
| 288 | #if HAVE_INTTYPES_H |
| 289 | # include <inttypes.h> |
| 290 | #else |
| 291 | # if HAVE_STDINT_H |
| 292 | # include <stdint.h> |
| 293 | # endif |
| 294 | #endif |
| 295 | #if HAVE_UNISTD_H |
| 296 | # include <unistd.h> |
| 297 | #endif" |
| 298 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 299 | |
| 300 | # Initialize some variables set by options. |
| 301 | ac_init_help= |
| 302 | ac_init_version=false |
| 303 | # The variables have the same names as the options, with |
| 304 | # dashes changed to underlines. |
| 305 | cache_file=/dev/null |
| 306 | exec_prefix=NONE |
| 307 | no_create= |
| 308 | no_recursion= |
| 309 | prefix=NONE |
| 310 | program_prefix=NONE |
| 311 | program_suffix=NONE |
| 312 | program_transform_name=s,x,x, |
| 313 | silent= |
| 314 | site= |
| 315 | srcdir= |
| 316 | verbose= |
| 317 | x_includes=NONE |
| 318 | x_libraries=NONE |
| 319 | |
| 320 | # Installation directory options. |
| 321 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 322 | # and all the variables that are supposed to be based on exec_prefix |
| 323 | # by default will actually change. |
| 324 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 325 | bindir='${exec_prefix}/bin' |
| 326 | sbindir='${exec_prefix}/sbin' |
| 327 | libexecdir='${exec_prefix}/libexec' |
| 328 | datadir='${prefix}/share' |
| 329 | sysconfdir='${prefix}/etc' |
| 330 | sharedstatedir='${prefix}/com' |
| 331 | localstatedir='${prefix}/var' |
| 332 | libdir='${exec_prefix}/lib' |
| 333 | includedir='${prefix}/include' |
| 334 | oldincludedir='/usr/include' |
| 335 | infodir='${prefix}/info' |
| 336 | mandir='${prefix}/man' |
| 337 | |
| 338 | ac_prev= |
| 339 | for ac_option |
| 340 | do |
| 341 | # If the previous option needs an argument, assign it. |
| 342 | if test -n "$ac_prev"; then |
| 343 | eval "$ac_prev=\$ac_option" |
| 344 | ac_prev= |
| 345 | continue |
| 346 | fi |
| 347 | |
| 348 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 349 | |
| 350 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 351 | |
| 352 | case $ac_option in |
| 353 | |
| 354 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 355 | ac_prev=bindir ;; |
| 356 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 357 | bindir=$ac_optarg ;; |
| 358 | |
| 359 | -build | --build | --buil | --bui | --bu) |
| 360 | ac_prev=build_alias ;; |
| 361 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 362 | build_alias=$ac_optarg ;; |
| 363 | |
| 364 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 365 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 366 | ac_prev=cache_file ;; |
| 367 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 368 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 369 | cache_file=$ac_optarg ;; |
| 370 | |
| 371 | --config-cache | -C) |
| 372 | cache_file=config.cache ;; |
| 373 | |
| 374 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 375 | ac_prev=datadir ;; |
| 376 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 377 | | --da=*) |
| 378 | datadir=$ac_optarg ;; |
| 379 | |
| 380 | -disable-* | --disable-*) |
| 381 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 382 | # Reject names that are not valid shell variable names. |
| 383 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 384 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 385 | { (exit 1); exit 1; }; } |
| 386 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 387 | eval "enable_$ac_feature=no" ;; |
| 388 | |
| 389 | -enable-* | --enable-*) |
| 390 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 391 | # Reject names that are not valid shell variable names. |
| 392 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 393 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 394 | { (exit 1); exit 1; }; } |
| 395 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 396 | case $ac_option in |
| 397 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 398 | *) ac_optarg=yes ;; |
| 399 | esac |
| 400 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 401 | |
| 402 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 403 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 404 | | --exec | --exe | --ex) |
| 405 | ac_prev=exec_prefix ;; |
| 406 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 407 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 408 | | --exec=* | --exe=* | --ex=*) |
| 409 | exec_prefix=$ac_optarg ;; |
| 410 | |
| 411 | -gas | --gas | --ga | --g) |
| 412 | # Obsolete; use --with-gas. |
| 413 | with_gas=yes ;; |
| 414 | |
| 415 | -help | --help | --hel | --he | -h) |
| 416 | ac_init_help=long ;; |
| 417 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 418 | ac_init_help=recursive ;; |
| 419 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 420 | ac_init_help=short ;; |
| 421 | |
| 422 | -host | --host | --hos | --ho) |
| 423 | ac_prev=host_alias ;; |
| 424 | -host=* | --host=* | --hos=* | --ho=*) |
| 425 | host_alias=$ac_optarg ;; |
| 426 | |
| 427 | -includedir | --includedir | --includedi | --included | --include \ |
| 428 | | --includ | --inclu | --incl | --inc) |
| 429 | ac_prev=includedir ;; |
| 430 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 431 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 432 | includedir=$ac_optarg ;; |
| 433 | |
| 434 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 435 | ac_prev=infodir ;; |
| 436 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 437 | infodir=$ac_optarg ;; |
| 438 | |
| 439 | -libdir | --libdir | --libdi | --libd) |
| 440 | ac_prev=libdir ;; |
| 441 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 442 | libdir=$ac_optarg ;; |
| 443 | |
| 444 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 445 | | --libexe | --libex | --libe) |
| 446 | ac_prev=libexecdir ;; |
| 447 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 448 | | --libexe=* | --libex=* | --libe=*) |
| 449 | libexecdir=$ac_optarg ;; |
| 450 | |
| 451 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 452 | | --localstate | --localstat | --localsta | --localst \ |
| 453 | | --locals | --local | --loca | --loc | --lo) |
| 454 | ac_prev=localstatedir ;; |
| 455 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 456 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 457 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 458 | localstatedir=$ac_optarg ;; |
| 459 | |
| 460 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 461 | ac_prev=mandir ;; |
| 462 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 463 | mandir=$ac_optarg ;; |
| 464 | |
| 465 | -nfp | --nfp | --nf) |
| 466 | # Obsolete; use --without-fp. |
| 467 | with_fp=no ;; |
| 468 | |
| 469 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 470 | | --no-cr | --no-c | -n) |
| 471 | no_create=yes ;; |
| 472 | |
| 473 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 474 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 475 | no_recursion=yes ;; |
| 476 | |
| 477 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 478 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 479 | | --oldin | --oldi | --old | --ol | --o) |
| 480 | ac_prev=oldincludedir ;; |
| 481 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 482 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 483 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 484 | oldincludedir=$ac_optarg ;; |
| 485 | |
| 486 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 487 | ac_prev=prefix ;; |
| 488 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 489 | prefix=$ac_optarg ;; |
| 490 | |
| 491 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 492 | | --program-pre | --program-pr | --program-p) |
| 493 | ac_prev=program_prefix ;; |
| 494 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 495 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 496 | program_prefix=$ac_optarg ;; |
| 497 | |
| 498 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 499 | | --program-suf | --program-su | --program-s) |
| 500 | ac_prev=program_suffix ;; |
| 501 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 502 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 503 | program_suffix=$ac_optarg ;; |
| 504 | |
| 505 | -program-transform-name | --program-transform-name \ |
| 506 | | --program-transform-nam | --program-transform-na \ |
| 507 | | --program-transform-n | --program-transform- \ |
| 508 | | --program-transform | --program-transfor \ |
| 509 | | --program-transfo | --program-transf \ |
| 510 | | --program-trans | --program-tran \ |
| 511 | | --progr-tra | --program-tr | --program-t) |
| 512 | ac_prev=program_transform_name ;; |
| 513 | -program-transform-name=* | --program-transform-name=* \ |
| 514 | | --program-transform-nam=* | --program-transform-na=* \ |
| 515 | | --program-transform-n=* | --program-transform-=* \ |
| 516 | | --program-transform=* | --program-transfor=* \ |
| 517 | | --program-transfo=* | --program-transf=* \ |
| 518 | | --program-trans=* | --program-tran=* \ |
| 519 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 520 | program_transform_name=$ac_optarg ;; |
| 521 | |
| 522 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 523 | | -silent | --silent | --silen | --sile | --sil) |
| 524 | silent=yes ;; |
| 525 | |
| 526 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 527 | ac_prev=sbindir ;; |
| 528 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 529 | | --sbi=* | --sb=*) |
| 530 | sbindir=$ac_optarg ;; |
| 531 | |
| 532 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 533 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 534 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 535 | | --sha | --sh) |
| 536 | ac_prev=sharedstatedir ;; |
| 537 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 538 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 539 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 540 | | --sha=* | --sh=*) |
| 541 | sharedstatedir=$ac_optarg ;; |
| 542 | |
| 543 | -site | --site | --sit) |
| 544 | ac_prev=site ;; |
| 545 | -site=* | --site=* | --sit=*) |
| 546 | site=$ac_optarg ;; |
| 547 | |
| 548 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 549 | ac_prev=srcdir ;; |
| 550 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 551 | srcdir=$ac_optarg ;; |
| 552 | |
| 553 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 554 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 555 | ac_prev=sysconfdir ;; |
| 556 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 557 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 558 | sysconfdir=$ac_optarg ;; |
| 559 | |
| 560 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 561 | ac_prev=target_alias ;; |
| 562 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 563 | target_alias=$ac_optarg ;; |
| 564 | |
| 565 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 566 | verbose=yes ;; |
| 567 | |
| 568 | -version | --version | --versio | --versi | --vers | -V) |
| 569 | ac_init_version=: ;; |
| 570 | |
| 571 | -with-* | --with-*) |
| 572 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 573 | # Reject names that are not valid shell variable names. |
| 574 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 575 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 576 | { (exit 1); exit 1; }; } |
| 577 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 578 | case $ac_option in |
| 579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 580 | *) ac_optarg=yes ;; |
| 581 | esac |
| 582 | eval "with_$ac_package='$ac_optarg'" ;; |
| 583 | |
| 584 | -without-* | --without-*) |
| 585 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 586 | # Reject names that are not valid shell variable names. |
| 587 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 588 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 589 | { (exit 1); exit 1; }; } |
| 590 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 591 | eval "with_$ac_package=no" ;; |
| 592 | |
| 593 | --x) |
| 594 | # Obsolete; use --with-x. |
| 595 | with_x=yes ;; |
| 596 | |
| 597 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 598 | | --x-incl | --x-inc | --x-in | --x-i) |
| 599 | ac_prev=x_includes ;; |
| 600 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 601 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 602 | x_includes=$ac_optarg ;; |
| 603 | |
| 604 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 605 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 606 | ac_prev=x_libraries ;; |
| 607 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 608 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 609 | x_libraries=$ac_optarg ;; |
| 610 | |
| 611 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 612 | Try \`$0 --help' for more information." >&2 |
| 613 | { (exit 1); exit 1; }; } |
| 614 | ;; |
| 615 | |
| 616 | *=*) |
| 617 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 618 | # Reject names that are not valid shell variable names. |
| 619 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 620 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 621 | { (exit 1); exit 1; }; } |
| 622 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 623 | eval "$ac_envvar='$ac_optarg'" |
| 624 | export $ac_envvar ;; |
| 625 | |
| 626 | *) |
| 627 | # FIXME: should be removed in autoconf 3.0. |
| 628 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 629 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 630 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 631 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 632 | ;; |
| 633 | |
| 634 | esac |
| 635 | done |
| 636 | |
| 637 | if test -n "$ac_prev"; then |
| 638 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 639 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 640 | { (exit 1); exit 1; }; } |
| 641 | fi |
| 642 | |
| 643 | # Be sure to have absolute paths. |
| 644 | for ac_var in exec_prefix prefix |
| 645 | do |
| 646 | eval ac_val=$`echo $ac_var` |
| 647 | case $ac_val in |
| 648 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 649 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 650 | { (exit 1); exit 1; }; };; |
| 651 | esac |
| 652 | done |
| 653 | |
| 654 | # Be sure to have absolute paths. |
| 655 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 656 | localstatedir libdir includedir oldincludedir infodir mandir |
| 657 | do |
| 658 | eval ac_val=$`echo $ac_var` |
| 659 | case $ac_val in |
| 660 | [\\/$]* | ?:[\\/]* ) ;; |
| 661 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 662 | { (exit 1); exit 1; }; };; |
| 663 | esac |
| 664 | done |
| 665 | |
| 666 | # There might be people who depend on the old broken behavior: `$host' |
| 667 | # used to hold the argument of --host etc. |
| 668 | # FIXME: To remove some day. |
| 669 | build=$build_alias |
| 670 | host=$host_alias |
| 671 | target=$target_alias |
| 672 | |
| 673 | # FIXME: To remove some day. |
| 674 | if test "x$host_alias" != x; then |
| 675 | if test "x$build_alias" = x; then |
| 676 | cross_compiling=maybe |
| 677 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 678 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 679 | elif test "x$build_alias" != "x$host_alias"; then |
| 680 | cross_compiling=yes |
| 681 | fi |
| 682 | fi |
| 683 | |
| 684 | ac_tool_prefix= |
| 685 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 686 | |
| 687 | test "$silent" = yes && exec 6>/dev/null |
| 688 | |
| 689 | |
| 690 | # Find the source files, if location was not specified. |
| 691 | if test -z "$srcdir"; then |
| 692 | ac_srcdir_defaulted=yes |
| 693 | # Try the directory containing this script, then its parent. |
| 694 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 695 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 696 | X"$0" : 'X\(//\)[^/]' \| \ |
| 697 | X"$0" : 'X\(//\)$' \| \ |
| 698 | X"$0" : 'X\(/\)' \| \ |
| 699 | . : '\(.\)' 2>/dev/null || |
| 700 | echo X"$0" | |
| 701 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 702 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 703 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 704 | /^X\(\/\).*/{ s//\1/; q; } |
| 705 | s/.*/./; q'` |
| 706 | srcdir=$ac_confdir |
| 707 | if test ! -r $srcdir/$ac_unique_file; then |
| 708 | srcdir=.. |
| 709 | fi |
| 710 | else |
| 711 | ac_srcdir_defaulted=no |
| 712 | fi |
| 713 | if test ! -r $srcdir/$ac_unique_file; then |
| 714 | if test "$ac_srcdir_defaulted" = yes; then |
| 715 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 716 | { (exit 1); exit 1; }; } |
| 717 | else |
| 718 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 719 | { (exit 1); exit 1; }; } |
| 720 | fi |
| 721 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 722 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 723 | ac_env_build_alias_set=${build_alias+set} |
| 724 | ac_env_build_alias_value=$build_alias |
| 725 | ac_cv_env_build_alias_set=${build_alias+set} |
| 726 | ac_cv_env_build_alias_value=$build_alias |
| 727 | ac_env_host_alias_set=${host_alias+set} |
| 728 | ac_env_host_alias_value=$host_alias |
| 729 | ac_cv_env_host_alias_set=${host_alias+set} |
| 730 | ac_cv_env_host_alias_value=$host_alias |
| 731 | ac_env_target_alias_set=${target_alias+set} |
| 732 | ac_env_target_alias_value=$target_alias |
| 733 | ac_cv_env_target_alias_set=${target_alias+set} |
| 734 | ac_cv_env_target_alias_value=$target_alias |
| 735 | ac_env_CC_set=${CC+set} |
| 736 | ac_env_CC_value=$CC |
| 737 | ac_cv_env_CC_set=${CC+set} |
| 738 | ac_cv_env_CC_value=$CC |
| 739 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 740 | ac_env_CFLAGS_value=$CFLAGS |
| 741 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 742 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 743 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 744 | ac_env_LDFLAGS_value=$LDFLAGS |
| 745 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 746 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 747 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 748 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 749 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 750 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 751 | ac_env_CPP_set=${CPP+set} |
| 752 | ac_env_CPP_value=$CPP |
| 753 | ac_cv_env_CPP_set=${CPP+set} |
| 754 | ac_cv_env_CPP_value=$CPP |
| 755 | |
| 756 | # |
| 757 | # Report the --help message. |
| 758 | # |
| 759 | if test "$ac_init_help" = "long"; then |
| 760 | # Omit some internal or obsolete options to make the list less imposing. |
| 761 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 762 | cat <<_ACEOF |
| 763 | \`configure' configures this package to adapt to many kinds of systems. |
| 764 | |
| 765 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 766 | |
| 767 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 768 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 769 | |
| 770 | Defaults for the options are specified in brackets. |
| 771 | |
| 772 | Configuration: |
| 773 | -h, --help display this help and exit |
| 774 | --help=short display options specific to this package |
| 775 | --help=recursive display the short help of all the included packages |
| 776 | -V, --version display version information and exit |
| 777 | -q, --quiet, --silent do not print \`checking...' messages |
| 778 | --cache-file=FILE cache test results in FILE [disabled] |
| 779 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 780 | -n, --no-create do not create output files |
| 781 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 782 | |
| 783 | _ACEOF |
| 784 | |
| 785 | cat <<_ACEOF |
| 786 | Installation directories: |
| 787 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 788 | [$ac_default_prefix] |
| 789 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 790 | [PREFIX] |
| 791 | |
| 792 | By default, \`make install' will install all the files in |
| 793 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 794 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 795 | for instance \`--prefix=\$HOME'. |
| 796 | |
| 797 | For better control, use the options below. |
| 798 | |
| 799 | Fine tuning of the installation directories: |
| 800 | --bindir=DIR user executables [EPREFIX/bin] |
| 801 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 802 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 803 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 804 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 805 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 806 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 807 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 808 | --includedir=DIR C header files [PREFIX/include] |
| 809 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 810 | --infodir=DIR info documentation [PREFIX/info] |
| 811 | --mandir=DIR man documentation [PREFIX/man] |
| 812 | _ACEOF |
| 813 | |
| 814 | cat <<\_ACEOF |
| 815 | |
| 816 | Program names: |
| 817 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 818 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 819 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 820 | |
| 821 | System types: |
| 822 | --build=BUILD configure for building on BUILD [guessed] |
| 823 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 824 | _ACEOF |
| 825 | fi |
| 826 | |
| 827 | if test -n "$ac_init_help"; then |
| 828 | |
| 829 | cat <<\_ACEOF |
| 830 | |
| 831 | Optional Features: |
| 832 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 833 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 834 | --disable-dependency-tracking Speeds up one-time builds |
| 835 | --enable-dependency-tracking Do not reject slow dependency extractors |
| 836 | --enable-vtysh, Make integrated VTY version of zebra |
| 837 | --disable-ipv6 turn off IPv6 related features and daemons |
| 838 | --disable-zebra do not build zebra daemon |
| 839 | --disable-bgpd do not build bgpd |
| 840 | --disable-ripd do not build ripd |
| 841 | --disable-ripngd do not build ripngd |
| 842 | --disable-ospfd do not build ospfd |
| 843 | --disable-ospf6d do not build ospf6d |
| 844 | --disable-bgp-announce, turn off BGP route announcement |
| 845 | --enable-netlink force to use Linux netlink interface |
| 846 | --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X |
| 847 | --enable-snmp enable SNMP support |
| 848 | --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon |
| 849 | --enable-nssa enable OSPF NSSA option |
| 850 | --enable-opaque-lsa enable OSPF Opaque-LSA support (RFC2370) |
| 851 | --enable-ospf-te enable Traffic Engineering Extension to OSPF |
| 852 | --enable-multipath=ARG enable multipath function, ARG must be digit |
| 853 | |
| 854 | Optional Packages: |
| 855 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 856 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 857 | --with-cflags Set CFLAGS for use in compilation. |
| 858 | --with-libpam use libpam for PAM support in vtysh |
| 859 | |
| 860 | Some influential environment variables: |
| 861 | CC C compiler command |
| 862 | CFLAGS C compiler flags |
| 863 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 864 | nonstandard directory <lib dir> |
| 865 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 866 | headers in a nonstandard directory <include dir> |
| 867 | CPP C preprocessor |
| 868 | |
| 869 | Use these variables to override the choices made by `configure' or to help |
| 870 | it to find libraries and programs with nonstandard names/locations. |
| 871 | |
| 872 | _ACEOF |
| 873 | fi |
| 874 | |
| 875 | if test "$ac_init_help" = "recursive"; then |
| 876 | # If there are subdirs, report their specific --help. |
| 877 | ac_popdir=`pwd` |
| 878 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 879 | test -d $ac_dir || continue |
| 880 | ac_builddir=. |
| 881 | |
| 882 | if test "$ac_dir" != .; then |
| 883 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 884 | # A "../" for each directory in $ac_dir_suffix. |
| 885 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 886 | else |
| 887 | ac_dir_suffix= ac_top_builddir= |
| 888 | fi |
| 889 | |
| 890 | case $srcdir in |
| 891 | .) # No --srcdir option. We are building in place. |
| 892 | ac_srcdir=. |
| 893 | if test -z "$ac_top_builddir"; then |
| 894 | ac_top_srcdir=. |
| 895 | else |
| 896 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 897 | fi ;; |
| 898 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 899 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 900 | ac_top_srcdir=$srcdir ;; |
| 901 | *) # Relative path. |
| 902 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 903 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 904 | esac |
| 905 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 906 | # absolute. |
| 907 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 908 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 909 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 910 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 911 | |
| 912 | cd $ac_dir |
| 913 | # Check for guested configure; otherwise get Cygnus style configure. |
| 914 | if test -f $ac_srcdir/configure.gnu; then |
| 915 | echo |
| 916 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 917 | elif test -f $ac_srcdir/configure; then |
| 918 | echo |
| 919 | $SHELL $ac_srcdir/configure --help=recursive |
| 920 | elif test -f $ac_srcdir/configure.ac || |
| 921 | test -f $ac_srcdir/configure.in; then |
| 922 | echo |
| 923 | $ac_configure --help |
| 924 | else |
| 925 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 926 | fi |
| 927 | cd $ac_popdir |
| 928 | done |
| 929 | fi |
| 930 | |
| 931 | test -n "$ac_init_help" && exit 0 |
| 932 | if $ac_init_version; then |
| 933 | cat <<\_ACEOF |
| 934 | |
| 935 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 936 | Free Software Foundation, Inc. |
| 937 | This configure script is free software; the Free Software Foundation |
| 938 | gives unlimited permission to copy, distribute and modify it. |
| 939 | _ACEOF |
| 940 | exit 0 |
| 941 | fi |
| 942 | exec 5>config.log |
| 943 | cat >&5 <<_ACEOF |
| 944 | This file contains any messages produced by compilers while |
| 945 | running configure, to aid debugging if configure makes a mistake. |
| 946 | |
| 947 | It was created by $as_me, which was |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 948 | generated by GNU Autoconf 2.53. Invocation command line was |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 949 | |
| 950 | $ $0 $@ |
| 951 | |
| 952 | _ACEOF |
| 953 | { |
| 954 | cat <<_ASUNAME |
| 955 | ## --------- ## |
| 956 | ## Platform. ## |
| 957 | ## --------- ## |
| 958 | |
| 959 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 960 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 961 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 962 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 963 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 964 | |
| 965 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 966 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 967 | |
| 968 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 969 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 970 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 971 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 972 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 973 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 974 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 975 | |
| 976 | _ASUNAME |
| 977 | |
| 978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 979 | for as_dir in $PATH |
| 980 | do |
| 981 | IFS=$as_save_IFS |
| 982 | test -z "$as_dir" && as_dir=. |
| 983 | echo "PATH: $as_dir" |
| 984 | done |
| 985 | |
| 986 | } >&5 |
| 987 | |
| 988 | cat >&5 <<_ACEOF |
| 989 | |
| 990 | |
| 991 | ## ----------- ## |
| 992 | ## Core tests. ## |
| 993 | ## ----------- ## |
| 994 | |
| 995 | _ACEOF |
| 996 | |
| 997 | |
| 998 | # Keep a trace of the command line. |
| 999 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1000 | # Also quote any args containing shell meta-characters. |
| 1001 | ac_configure_args= |
| 1002 | ac_sep= |
| 1003 | for ac_arg |
| 1004 | do |
| 1005 | case $ac_arg in |
| 1006 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1007 | | --no-cr | --no-c | -n ) continue ;; |
| 1008 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1009 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1010 | continue ;; |
| 1011 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1012 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1013 | esac |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1014 | case " $ac_configure_args " in |
| 1015 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1016 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1017 | ac_sep=" " ;; |
| 1018 | esac |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1019 | # Get rid of the leading space. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1020 | done |
| 1021 | |
| 1022 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1023 | # config.log. We remove comments because anyway the quotes in there |
| 1024 | # would cause problems or look ugly. |
| 1025 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1026 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1027 | trap 'exit_status=$? |
| 1028 | # Save into config.log some information that might help in debugging. |
| 1029 | { |
| 1030 | echo |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1031 | cat <<\_ASBOX |
| 1032 | ## ---------------- ## |
| 1033 | ## Cache variables. ## |
| 1034 | ## ---------------- ## |
| 1035 | _ASBOX |
| 1036 | echo |
| 1037 | # The following way of writing the cache mishandles newlines in values, |
| 1038 | { |
| 1039 | (set) 2>&1 | |
| 1040 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1041 | *ac_space=\ *) |
| 1042 | sed -n \ |
| 1043 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1044 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1045 | ;; |
| 1046 | *) |
| 1047 | sed -n \ |
| 1048 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1049 | ;; |
| 1050 | esac; |
| 1051 | } |
| 1052 | echo |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1053 | if test -s confdefs.h; then |
| 1054 | cat <<\_ASBOX |
| 1055 | ## ----------- ## |
| 1056 | ## confdefs.h. ## |
| 1057 | ## ----------- ## |
| 1058 | _ASBOX |
| 1059 | echo |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1060 | sed "/^$/d" confdefs.h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1061 | echo |
| 1062 | fi |
| 1063 | test "$ac_signal" != 0 && |
| 1064 | echo "$as_me: caught signal $ac_signal" |
| 1065 | echo "$as_me: exit $exit_status" |
| 1066 | } >&5 |
| 1067 | rm -f core core.* *.core && |
| 1068 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1069 | exit $exit_status |
| 1070 | ' 0 |
| 1071 | for ac_signal in 1 2 13 15; do |
| 1072 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1073 | done |
| 1074 | ac_signal=0 |
| 1075 | |
| 1076 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1077 | rm -rf conftest* confdefs.h |
| 1078 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1079 | echo >confdefs.h |
| 1080 | |
| 1081 | # Predefined preprocessor variables. |
| 1082 | |
| 1083 | cat >>confdefs.h <<_ACEOF |
| 1084 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1085 | _ACEOF |
| 1086 | |
| 1087 | |
| 1088 | cat >>confdefs.h <<_ACEOF |
| 1089 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1090 | _ACEOF |
| 1091 | |
| 1092 | |
| 1093 | cat >>confdefs.h <<_ACEOF |
| 1094 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1095 | _ACEOF |
| 1096 | |
| 1097 | |
| 1098 | cat >>confdefs.h <<_ACEOF |
| 1099 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1100 | _ACEOF |
| 1101 | |
| 1102 | |
| 1103 | cat >>confdefs.h <<_ACEOF |
| 1104 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1105 | _ACEOF |
| 1106 | |
| 1107 | |
| 1108 | # Let the site file select an alternate cache file if it wants to. |
| 1109 | # Prefer explicitly selected file to automatically selected ones. |
| 1110 | if test -z "$CONFIG_SITE"; then |
| 1111 | if test "x$prefix" != xNONE; then |
| 1112 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1113 | else |
| 1114 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1115 | fi |
| 1116 | fi |
| 1117 | for ac_site_file in $CONFIG_SITE; do |
| 1118 | if test -r "$ac_site_file"; then |
| 1119 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1120 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1121 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1122 | . "$ac_site_file" |
| 1123 | fi |
| 1124 | done |
| 1125 | |
| 1126 | if test -r "$cache_file"; then |
| 1127 | # Some versions of bash will fail to source /dev/null (special |
| 1128 | # files actually), so we avoid doing that. |
| 1129 | if test -f "$cache_file"; then |
| 1130 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1131 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1132 | case $cache_file in |
| 1133 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1134 | *) . ./$cache_file;; |
| 1135 | esac |
| 1136 | fi |
| 1137 | else |
| 1138 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1139 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1140 | >$cache_file |
| 1141 | fi |
| 1142 | |
| 1143 | # Check that the precious variables saved in the cache have kept the same |
| 1144 | # value. |
| 1145 | ac_cache_corrupted=false |
| 1146 | for ac_var in `(set) 2>&1 | |
| 1147 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1148 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1149 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1150 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1151 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1152 | case $ac_old_set,$ac_new_set in |
| 1153 | set,) |
| 1154 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1155 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1156 | ac_cache_corrupted=: ;; |
| 1157 | ,set) |
| 1158 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1159 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1160 | ac_cache_corrupted=: ;; |
| 1161 | ,);; |
| 1162 | *) |
| 1163 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1164 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1165 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1166 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1167 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1168 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1169 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1170 | ac_cache_corrupted=: |
| 1171 | fi;; |
| 1172 | esac |
| 1173 | # Pass precious variables to config.status. |
| 1174 | if test "$ac_new_set" = set; then |
| 1175 | case $ac_new_val in |
| 1176 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1177 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1178 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1179 | esac |
| 1180 | case " $ac_configure_args " in |
| 1181 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1182 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1183 | esac |
| 1184 | fi |
| 1185 | done |
| 1186 | if $ac_cache_corrupted; then |
| 1187 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1188 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1189 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1190 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1191 | { (exit 1); exit 1; }; } |
| 1192 | fi |
| 1193 | |
| 1194 | ac_ext=c |
| 1195 | ac_cpp='$CPP $CPPFLAGS' |
| 1196 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1197 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1198 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1199 | |
| 1200 | |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1217 | am__api_version="1.6" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1218 | ac_aux_dir= |
| 1219 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1220 | if test -f $ac_dir/install-sh; then |
| 1221 | ac_aux_dir=$ac_dir |
| 1222 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1223 | break |
| 1224 | elif test -f $ac_dir/install.sh; then |
| 1225 | ac_aux_dir=$ac_dir |
| 1226 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1227 | break |
| 1228 | elif test -f $ac_dir/shtool; then |
| 1229 | ac_aux_dir=$ac_dir |
| 1230 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1231 | break |
| 1232 | fi |
| 1233 | done |
| 1234 | if test -z "$ac_aux_dir"; then |
| 1235 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1236 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1237 | { (exit 1); exit 1; }; } |
| 1238 | fi |
| 1239 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1240 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1241 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1242 | |
| 1243 | # Find a good install program. We prefer a C program (faster), |
| 1244 | # so one script is as good as another. But avoid the broken or |
| 1245 | # incompatible versions: |
| 1246 | # SysV /etc/install, /usr/sbin/install |
| 1247 | # SunOS /usr/etc/install |
| 1248 | # IRIX /sbin/install |
| 1249 | # AIX /bin/install |
| 1250 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1251 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1252 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1253 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1254 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1255 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1256 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1257 | if test -z "$INSTALL"; then |
| 1258 | if test "${ac_cv_path_install+set}" = set; then |
| 1259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1260 | else |
| 1261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1262 | for as_dir in $PATH |
| 1263 | do |
| 1264 | IFS=$as_save_IFS |
| 1265 | test -z "$as_dir" && as_dir=. |
| 1266 | # Account for people who put trailing slashes in PATH elements. |
| 1267 | case $as_dir/ in |
| 1268 | ./ | .// | /cC/* | \ |
| 1269 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1270 | /usr/ucb/* ) ;; |
| 1271 | *) |
| 1272 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1273 | # Don't use installbsd from OSF since it installs stuff as root |
| 1274 | # by default. |
| 1275 | for ac_prog in ginstall scoinst install; do |
| 1276 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1277 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1278 | if test $ac_prog = install && |
| 1279 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1280 | # AIX install. It has an incompatible calling convention. |
| 1281 | : |
| 1282 | elif test $ac_prog = install && |
| 1283 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1284 | # program-specific install script used by HP pwplus--don't use. |
| 1285 | : |
| 1286 | else |
| 1287 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1288 | break 3 |
| 1289 | fi |
| 1290 | fi |
| 1291 | done |
| 1292 | done |
| 1293 | ;; |
| 1294 | esac |
| 1295 | done |
| 1296 | |
| 1297 | |
| 1298 | fi |
| 1299 | if test "${ac_cv_path_install+set}" = set; then |
| 1300 | INSTALL=$ac_cv_path_install |
| 1301 | else |
| 1302 | # As a last resort, use the slow shell script. We don't cache a |
| 1303 | # path for INSTALL within a source directory, because that will |
| 1304 | # break other packages using the cache if that directory is |
| 1305 | # removed, or if the path is relative. |
| 1306 | INSTALL=$ac_install_sh |
| 1307 | fi |
| 1308 | fi |
| 1309 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1310 | echo "${ECHO_T}$INSTALL" >&6 |
| 1311 | |
| 1312 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1313 | # It thinks the first close brace ends the variable substitution. |
| 1314 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1315 | |
| 1316 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1317 | |
| 1318 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1319 | |
| 1320 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1321 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1322 | # Just in case |
| 1323 | sleep 1 |
| 1324 | echo timestamp > conftest.file |
| 1325 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1326 | # arguments. Must try -L first in case configure is actually a |
| 1327 | # symlink; some systems play weird games with the mod time of symlinks |
| 1328 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1329 | # directory). |
| 1330 | if ( |
| 1331 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1332 | if test "$*" = "X"; then |
| 1333 | # -L didn't work. |
| 1334 | set X `ls -t $srcdir/configure conftest.file` |
| 1335 | fi |
| 1336 | rm -f conftest.file |
| 1337 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1338 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1339 | |
| 1340 | # If neither matched, then we have a broken ls. This can happen |
| 1341 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1342 | # broken ls alias from the environment. This has actually |
| 1343 | # happened. Such a system could not be considered "sane". |
| 1344 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1345 | alias in your environment" >&5 |
| 1346 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1347 | alias in your environment" >&2;} |
| 1348 | { (exit 1); exit 1; }; } |
| 1349 | fi |
| 1350 | |
| 1351 | test "$2" = conftest.file |
| 1352 | ) |
| 1353 | then |
| 1354 | # Ok. |
| 1355 | : |
| 1356 | else |
| 1357 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1358 | Check your system clock" >&5 |
| 1359 | echo "$as_me: error: newly created file is older than distributed files! |
| 1360 | Check your system clock" >&2;} |
| 1361 | { (exit 1); exit 1; }; } |
| 1362 | fi |
| 1363 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1364 | echo "${ECHO_T}yes" >&6 |
| 1365 | test "$program_prefix" != NONE && |
| 1366 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1367 | # Use a double $ so make ignores it. |
| 1368 | test "$program_suffix" != NONE && |
| 1369 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1370 | # Double any \ or $. echo might interpret backslashes. |
| 1371 | # By default was `s,x,x', remove it if useless. |
| 1372 | cat <<\_ACEOF >conftest.sed |
| 1373 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1374 | _ACEOF |
| 1375 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1376 | rm conftest.sed |
| 1377 | |
| 1378 | |
| 1379 | # expand $ac_aux_dir to an absolute path |
| 1380 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 1381 | |
| 1382 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1383 | # Use eval to expand $SHELL |
| 1384 | if eval "$MISSING --run true"; then |
| 1385 | am_missing_run="$MISSING --run " |
| 1386 | else |
| 1387 | am_missing_run= |
| 1388 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1389 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 1390 | fi |
| 1391 | |
| 1392 | for ac_prog in gawk mawk nawk awk |
| 1393 | do |
| 1394 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1395 | set dummy $ac_prog; ac_word=$2 |
| 1396 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1398 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1400 | else |
| 1401 | if test -n "$AWK"; then |
| 1402 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1403 | else |
| 1404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1405 | for as_dir in $PATH |
| 1406 | do |
| 1407 | IFS=$as_save_IFS |
| 1408 | test -z "$as_dir" && as_dir=. |
| 1409 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1410 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1411 | ac_cv_prog_AWK="$ac_prog" |
| 1412 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1413 | break 2 |
| 1414 | fi |
| 1415 | done |
| 1416 | done |
| 1417 | |
| 1418 | fi |
| 1419 | fi |
| 1420 | AWK=$ac_cv_prog_AWK |
| 1421 | if test -n "$AWK"; then |
| 1422 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1423 | echo "${ECHO_T}$AWK" >&6 |
| 1424 | else |
| 1425 | echo "$as_me:$LINENO: result: no" >&5 |
| 1426 | echo "${ECHO_T}no" >&6 |
| 1427 | fi |
| 1428 | |
| 1429 | test -n "$AWK" && break |
| 1430 | done |
| 1431 | |
| 1432 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1433 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 1434 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1435 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1437 | else |
| 1438 | cat >conftest.make <<\_ACEOF |
| 1439 | all: |
| 1440 | @echo 'ac_maketemp="${MAKE}"' |
| 1441 | _ACEOF |
| 1442 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1443 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1444 | if test -n "$ac_maketemp"; then |
| 1445 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1446 | else |
| 1447 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1448 | fi |
| 1449 | rm -f conftest.make |
| 1450 | fi |
| 1451 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1452 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1453 | echo "${ECHO_T}yes" >&6 |
| 1454 | SET_MAKE= |
| 1455 | else |
| 1456 | echo "$as_me:$LINENO: result: no" >&5 |
| 1457 | echo "${ECHO_T}no" >&6 |
| 1458 | SET_MAKE="MAKE=${MAKE-make}" |
| 1459 | fi |
| 1460 | |
| 1461 | # test to see if srcdir already configured |
| 1462 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 1463 | test -f $srcdir/config.status; then |
| 1464 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1465 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1466 | { (exit 1); exit 1; }; } |
| 1467 | fi |
| 1468 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1469 | # Define the identity of the package. |
| 1470 | PACKAGE=zebra |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1471 | VERSION=0.94 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1472 | |
| 1473 | |
| 1474 | cat >>confdefs.h <<_ACEOF |
| 1475 | #define PACKAGE "$PACKAGE" |
| 1476 | _ACEOF |
| 1477 | |
| 1478 | |
| 1479 | cat >>confdefs.h <<_ACEOF |
| 1480 | #define VERSION "$VERSION" |
| 1481 | _ACEOF |
| 1482 | |
| 1483 | # Some tools Automake needs. |
| 1484 | |
| 1485 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 1486 | |
| 1487 | |
| 1488 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1489 | |
| 1490 | |
| 1491 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 1492 | |
| 1493 | |
| 1494 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1495 | |
| 1496 | |
| 1497 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1498 | |
| 1499 | |
| 1500 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1501 | |
| 1502 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1503 | |
| 1504 | # Installed binaries are usually stripped using `strip' when the user |
| 1505 | # run `make install-strip'. However `strip' might not be the right |
| 1506 | # tool to use in cross-compilation environments, therefore Automake |
| 1507 | # will honor the `STRIP' environment variable to overrule this program. |
| 1508 | if test "$cross_compiling" != no; then |
| 1509 | if test -n "$ac_tool_prefix"; then |
| 1510 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1511 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1512 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1514 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1516 | else |
| 1517 | if test -n "$STRIP"; then |
| 1518 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1519 | else |
| 1520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1521 | for as_dir in $PATH |
| 1522 | do |
| 1523 | IFS=$as_save_IFS |
| 1524 | test -z "$as_dir" && as_dir=. |
| 1525 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1526 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1527 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1529 | break 2 |
| 1530 | fi |
| 1531 | done |
| 1532 | done |
| 1533 | |
| 1534 | fi |
| 1535 | fi |
| 1536 | STRIP=$ac_cv_prog_STRIP |
| 1537 | if test -n "$STRIP"; then |
| 1538 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1539 | echo "${ECHO_T}$STRIP" >&6 |
| 1540 | else |
| 1541 | echo "$as_me:$LINENO: result: no" >&5 |
| 1542 | echo "${ECHO_T}no" >&6 |
| 1543 | fi |
| 1544 | |
| 1545 | fi |
| 1546 | if test -z "$ac_cv_prog_STRIP"; then |
| 1547 | ac_ct_STRIP=$STRIP |
| 1548 | # Extract the first word of "strip", so it can be a program name with args. |
| 1549 | set dummy strip; ac_word=$2 |
| 1550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1552 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1554 | else |
| 1555 | if test -n "$ac_ct_STRIP"; then |
| 1556 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1557 | else |
| 1558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1559 | for as_dir in $PATH |
| 1560 | do |
| 1561 | IFS=$as_save_IFS |
| 1562 | test -z "$as_dir" && as_dir=. |
| 1563 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1565 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1567 | break 2 |
| 1568 | fi |
| 1569 | done |
| 1570 | done |
| 1571 | |
| 1572 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1573 | fi |
| 1574 | fi |
| 1575 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1576 | if test -n "$ac_ct_STRIP"; then |
| 1577 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1578 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1579 | else |
| 1580 | echo "$as_me:$LINENO: result: no" >&5 |
| 1581 | echo "${ECHO_T}no" >&6 |
| 1582 | fi |
| 1583 | |
| 1584 | STRIP=$ac_ct_STRIP |
| 1585 | else |
| 1586 | STRIP="$ac_cv_prog_STRIP" |
| 1587 | fi |
| 1588 | |
| 1589 | fi |
| 1590 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1591 | |
| 1592 | # We need awk for the "check" target. The system "awk" is bad on |
| 1593 | # some platforms. |
| 1594 | |
| 1595 | |
| 1596 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1597 | # Add the stamp file to the list of files AC keeps track of, |
| 1598 | # along with our hook. |
| 1599 | ac_config_headers="$ac_config_headers config.h" |
| 1600 | |
| 1601 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1602 | |
| 1603 | |
| 1604 | # Make sure we can run config.sub. |
| 1605 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1606 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1607 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1608 | { (exit 1); exit 1; }; } |
| 1609 | |
| 1610 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1611 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1612 | if test "${ac_cv_build+set}" = set; then |
| 1613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1614 | else |
| 1615 | ac_cv_build_alias=$build_alias |
| 1616 | test -z "$ac_cv_build_alias" && |
| 1617 | ac_cv_build_alias=`$ac_config_guess` |
| 1618 | test -z "$ac_cv_build_alias" && |
| 1619 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1620 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1621 | { (exit 1); exit 1; }; } |
| 1622 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1623 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1624 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1625 | { (exit 1); exit 1; }; } |
| 1626 | |
| 1627 | fi |
| 1628 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1629 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1630 | build=$ac_cv_build |
| 1631 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1632 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1633 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1634 | |
| 1635 | |
| 1636 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1637 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1638 | if test "${ac_cv_host+set}" = set; then |
| 1639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1640 | else |
| 1641 | ac_cv_host_alias=$host_alias |
| 1642 | test -z "$ac_cv_host_alias" && |
| 1643 | ac_cv_host_alias=$ac_cv_build_alias |
| 1644 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1645 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1646 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1647 | { (exit 1); exit 1; }; } |
| 1648 | |
| 1649 | fi |
| 1650 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1651 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1652 | host=$ac_cv_host |
| 1653 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1654 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1655 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1656 | |
| 1657 | |
| 1658 | |
| 1659 | |
| 1660 | # Check whether --with-cflags or --without-cflags was given. |
| 1661 | if test "${with_cflags+set}" = set; then |
| 1662 | withval="$with_cflags" |
| 1663 | |
| 1664 | fi; |
| 1665 | if test "x$with_cflags" != "x" ; then |
| 1666 | CFLAGS="$with_cflags" ; cflags_specified=yes ; |
| 1667 | elif test -n "$CFLAGS" ; then |
| 1668 | cflags_specified=yes ; |
| 1669 | fi |
| 1670 | |
| 1671 | ac_ext=c |
| 1672 | ac_cpp='$CPP $CPPFLAGS' |
| 1673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1676 | if test -n "$ac_tool_prefix"; then |
| 1677 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1678 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1681 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1683 | else |
| 1684 | if test -n "$CC"; then |
| 1685 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1686 | else |
| 1687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1688 | for as_dir in $PATH |
| 1689 | do |
| 1690 | IFS=$as_save_IFS |
| 1691 | test -z "$as_dir" && as_dir=. |
| 1692 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1694 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1696 | break 2 |
| 1697 | fi |
| 1698 | done |
| 1699 | done |
| 1700 | |
| 1701 | fi |
| 1702 | fi |
| 1703 | CC=$ac_cv_prog_CC |
| 1704 | if test -n "$CC"; then |
| 1705 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1706 | echo "${ECHO_T}$CC" >&6 |
| 1707 | else |
| 1708 | echo "$as_me:$LINENO: result: no" >&5 |
| 1709 | echo "${ECHO_T}no" >&6 |
| 1710 | fi |
| 1711 | |
| 1712 | fi |
| 1713 | if test -z "$ac_cv_prog_CC"; then |
| 1714 | ac_ct_CC=$CC |
| 1715 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1716 | set dummy gcc; ac_word=$2 |
| 1717 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1719 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1721 | else |
| 1722 | if test -n "$ac_ct_CC"; then |
| 1723 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1724 | else |
| 1725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1726 | for as_dir in $PATH |
| 1727 | do |
| 1728 | IFS=$as_save_IFS |
| 1729 | test -z "$as_dir" && as_dir=. |
| 1730 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1731 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1732 | ac_cv_prog_ac_ct_CC="gcc" |
| 1733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1734 | break 2 |
| 1735 | fi |
| 1736 | done |
| 1737 | done |
| 1738 | |
| 1739 | fi |
| 1740 | fi |
| 1741 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1742 | if test -n "$ac_ct_CC"; then |
| 1743 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1744 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1745 | else |
| 1746 | echo "$as_me:$LINENO: result: no" >&5 |
| 1747 | echo "${ECHO_T}no" >&6 |
| 1748 | fi |
| 1749 | |
| 1750 | CC=$ac_ct_CC |
| 1751 | else |
| 1752 | CC="$ac_cv_prog_CC" |
| 1753 | fi |
| 1754 | |
| 1755 | if test -z "$CC"; then |
| 1756 | if test -n "$ac_tool_prefix"; then |
| 1757 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1758 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1759 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1761 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1763 | else |
| 1764 | if test -n "$CC"; then |
| 1765 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1766 | else |
| 1767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1768 | for as_dir in $PATH |
| 1769 | do |
| 1770 | IFS=$as_save_IFS |
| 1771 | test -z "$as_dir" && as_dir=. |
| 1772 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1774 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1776 | break 2 |
| 1777 | fi |
| 1778 | done |
| 1779 | done |
| 1780 | |
| 1781 | fi |
| 1782 | fi |
| 1783 | CC=$ac_cv_prog_CC |
| 1784 | if test -n "$CC"; then |
| 1785 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1786 | echo "${ECHO_T}$CC" >&6 |
| 1787 | else |
| 1788 | echo "$as_me:$LINENO: result: no" >&5 |
| 1789 | echo "${ECHO_T}no" >&6 |
| 1790 | fi |
| 1791 | |
| 1792 | fi |
| 1793 | if test -z "$ac_cv_prog_CC"; then |
| 1794 | ac_ct_CC=$CC |
| 1795 | # Extract the first word of "cc", so it can be a program name with args. |
| 1796 | set dummy cc; ac_word=$2 |
| 1797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1799 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1801 | else |
| 1802 | if test -n "$ac_ct_CC"; then |
| 1803 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1804 | else |
| 1805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1806 | for as_dir in $PATH |
| 1807 | do |
| 1808 | IFS=$as_save_IFS |
| 1809 | test -z "$as_dir" && as_dir=. |
| 1810 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1812 | ac_cv_prog_ac_ct_CC="cc" |
| 1813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1814 | break 2 |
| 1815 | fi |
| 1816 | done |
| 1817 | done |
| 1818 | |
| 1819 | fi |
| 1820 | fi |
| 1821 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1822 | if test -n "$ac_ct_CC"; then |
| 1823 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1824 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1825 | else |
| 1826 | echo "$as_me:$LINENO: result: no" >&5 |
| 1827 | echo "${ECHO_T}no" >&6 |
| 1828 | fi |
| 1829 | |
| 1830 | CC=$ac_ct_CC |
| 1831 | else |
| 1832 | CC="$ac_cv_prog_CC" |
| 1833 | fi |
| 1834 | |
| 1835 | fi |
| 1836 | if test -z "$CC"; then |
| 1837 | # Extract the first word of "cc", so it can be a program name with args. |
| 1838 | set dummy cc; ac_word=$2 |
| 1839 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1841 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1843 | else |
| 1844 | if test -n "$CC"; then |
| 1845 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1846 | else |
| 1847 | ac_prog_rejected=no |
| 1848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1849 | for as_dir in $PATH |
| 1850 | do |
| 1851 | IFS=$as_save_IFS |
| 1852 | test -z "$as_dir" && as_dir=. |
| 1853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1855 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1856 | ac_prog_rejected=yes |
| 1857 | continue |
| 1858 | fi |
| 1859 | ac_cv_prog_CC="cc" |
| 1860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1861 | break 2 |
| 1862 | fi |
| 1863 | done |
| 1864 | done |
| 1865 | |
| 1866 | if test $ac_prog_rejected = yes; then |
| 1867 | # We found a bogon in the path, so make sure we never use it. |
| 1868 | set dummy $ac_cv_prog_CC |
| 1869 | shift |
| 1870 | if test $# != 0; then |
| 1871 | # We chose a different compiler from the bogus one. |
| 1872 | # However, it has the same basename, so the bogon will be chosen |
| 1873 | # first if we set CC to just the basename; use the full file name. |
| 1874 | shift |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1875 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
| 1876 | shift |
| 1877 | ac_cv_prog_CC="$@" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1878 | fi |
| 1879 | fi |
| 1880 | fi |
| 1881 | fi |
| 1882 | CC=$ac_cv_prog_CC |
| 1883 | if test -n "$CC"; then |
| 1884 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1885 | echo "${ECHO_T}$CC" >&6 |
| 1886 | else |
| 1887 | echo "$as_me:$LINENO: result: no" >&5 |
| 1888 | echo "${ECHO_T}no" >&6 |
| 1889 | fi |
| 1890 | |
| 1891 | fi |
| 1892 | if test -z "$CC"; then |
| 1893 | if test -n "$ac_tool_prefix"; then |
| 1894 | for ac_prog in cl |
| 1895 | do |
| 1896 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1897 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1898 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1900 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1902 | else |
| 1903 | if test -n "$CC"; then |
| 1904 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1905 | else |
| 1906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1907 | for as_dir in $PATH |
| 1908 | do |
| 1909 | IFS=$as_save_IFS |
| 1910 | test -z "$as_dir" && as_dir=. |
| 1911 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1912 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1913 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1915 | break 2 |
| 1916 | fi |
| 1917 | done |
| 1918 | done |
| 1919 | |
| 1920 | fi |
| 1921 | fi |
| 1922 | CC=$ac_cv_prog_CC |
| 1923 | if test -n "$CC"; then |
| 1924 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1925 | echo "${ECHO_T}$CC" >&6 |
| 1926 | else |
| 1927 | echo "$as_me:$LINENO: result: no" >&5 |
| 1928 | echo "${ECHO_T}no" >&6 |
| 1929 | fi |
| 1930 | |
| 1931 | test -n "$CC" && break |
| 1932 | done |
| 1933 | fi |
| 1934 | if test -z "$CC"; then |
| 1935 | ac_ct_CC=$CC |
| 1936 | for ac_prog in cl |
| 1937 | do |
| 1938 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1939 | set dummy $ac_prog; ac_word=$2 |
| 1940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1942 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1944 | else |
| 1945 | if test -n "$ac_ct_CC"; then |
| 1946 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1947 | else |
| 1948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1949 | for as_dir in $PATH |
| 1950 | do |
| 1951 | IFS=$as_save_IFS |
| 1952 | test -z "$as_dir" && as_dir=. |
| 1953 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1955 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1957 | break 2 |
| 1958 | fi |
| 1959 | done |
| 1960 | done |
| 1961 | |
| 1962 | fi |
| 1963 | fi |
| 1964 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1965 | if test -n "$ac_ct_CC"; then |
| 1966 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1967 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1968 | else |
| 1969 | echo "$as_me:$LINENO: result: no" >&5 |
| 1970 | echo "${ECHO_T}no" >&6 |
| 1971 | fi |
| 1972 | |
| 1973 | test -n "$ac_ct_CC" && break |
| 1974 | done |
| 1975 | |
| 1976 | CC=$ac_ct_CC |
| 1977 | fi |
| 1978 | |
| 1979 | fi |
| 1980 | |
| 1981 | |
| 1982 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1983 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 1984 | { (exit 1); exit 1; }; } |
| 1985 | |
| 1986 | # Provide some information about the compiler. |
| 1987 | echo "$as_me:$LINENO:" \ |
| 1988 | "checking for C compiler version" >&5 |
| 1989 | ac_compiler=`set X $ac_compile; echo $2` |
| 1990 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1991 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1992 | ac_status=$? |
| 1993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1994 | (exit $ac_status); } |
| 1995 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1996 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1997 | ac_status=$? |
| 1998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1999 | (exit $ac_status); } |
| 2000 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2001 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2002 | ac_status=$? |
| 2003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2004 | (exit $ac_status); } |
| 2005 | |
| 2006 | cat >conftest.$ac_ext <<_ACEOF |
| 2007 | #line $LINENO "configure" |
| 2008 | #include "confdefs.h" |
| 2009 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2010 | #ifdef F77_DUMMY_MAIN |
| 2011 | # ifdef __cplusplus |
| 2012 | extern "C" |
| 2013 | # endif |
| 2014 | int F77_DUMMY_MAIN() { return 1; } |
| 2015 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2016 | int |
| 2017 | main () |
| 2018 | { |
| 2019 | |
| 2020 | ; |
| 2021 | return 0; |
| 2022 | } |
| 2023 | _ACEOF |
| 2024 | ac_clean_files_save=$ac_clean_files |
| 2025 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2026 | # Try to create an executable without -o first, disregard a.out. |
| 2027 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2028 | # of exeext. |
| 2029 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2030 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2031 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2032 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2033 | (eval $ac_link_default) 2>&5 |
| 2034 | ac_status=$? |
| 2035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2036 | (exit $ac_status); }; then |
| 2037 | # Find the output, starting from the most likely. This scheme is |
| 2038 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2039 | # resort. |
| 2040 | |
| 2041 | # Be careful to initialize this variable, since it used to be cached. |
| 2042 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2043 | ac_cv_exeext= |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2044 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2045 | ls a.out conftest 2>/dev/null; |
| 2046 | ls a.* conftest.* 2>/dev/null`; do |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2047 | case $ac_file in |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2048 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2049 | a.out ) # We found the default executable, but exeext='' is most |
| 2050 | # certainly right. |
| 2051 | break;; |
| 2052 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2053 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2054 | export ac_cv_exeext |
| 2055 | break;; |
| 2056 | * ) break;; |
| 2057 | esac |
| 2058 | done |
| 2059 | else |
| 2060 | echo "$as_me: failed program was:" >&5 |
| 2061 | cat conftest.$ac_ext >&5 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2062 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2063 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2064 | { (exit 77); exit 77; }; } |
| 2065 | fi |
| 2066 | |
| 2067 | ac_exeext=$ac_cv_exeext |
| 2068 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2069 | echo "${ECHO_T}$ac_file" >&6 |
| 2070 | |
| 2071 | # Check the compiler produces executables we can run. If not, either |
| 2072 | # the compiler is broken, or we cross compile. |
| 2073 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2074 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2075 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2076 | # If not cross compiling, check that we can run a simple program. |
| 2077 | if test "$cross_compiling" != yes; then |
| 2078 | if { ac_try='./$ac_file' |
| 2079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2080 | (eval $ac_try) 2>&5 |
| 2081 | ac_status=$? |
| 2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2083 | (exit $ac_status); }; }; then |
| 2084 | cross_compiling=no |
| 2085 | else |
| 2086 | if test "$cross_compiling" = maybe; then |
| 2087 | cross_compiling=yes |
| 2088 | else |
| 2089 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2090 | If you meant to cross compile, use \`--host'." >&5 |
| 2091 | echo "$as_me: error: cannot run C compiled programs. |
| 2092 | If you meant to cross compile, use \`--host'." >&2;} |
| 2093 | { (exit 1); exit 1; }; } |
| 2094 | fi |
| 2095 | fi |
| 2096 | fi |
| 2097 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2098 | echo "${ECHO_T}yes" >&6 |
| 2099 | |
| 2100 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2101 | ac_clean_files=$ac_clean_files_save |
| 2102 | # Check the compiler produces executables we can run. If not, either |
| 2103 | # the compiler is broken, or we cross compile. |
| 2104 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2105 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2106 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2107 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2108 | |
| 2109 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2110 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2112 | (eval $ac_link) 2>&5 |
| 2113 | ac_status=$? |
| 2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2115 | (exit $ac_status); }; then |
| 2116 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2117 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2118 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2119 | # `rm'. |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2120 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2121 | case $ac_file in |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2122 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2123 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2124 | export ac_cv_exeext |
| 2125 | break;; |
| 2126 | * ) break;; |
| 2127 | esac |
| 2128 | done |
| 2129 | else |
| 2130 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2131 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2132 | { (exit 1); exit 1; }; } |
| 2133 | fi |
| 2134 | |
| 2135 | rm -f conftest$ac_cv_exeext |
| 2136 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2137 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2138 | |
| 2139 | rm -f conftest.$ac_ext |
| 2140 | EXEEXT=$ac_cv_exeext |
| 2141 | ac_exeext=$EXEEXT |
| 2142 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2143 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2144 | if test "${ac_cv_objext+set}" = set; then |
| 2145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2146 | else |
| 2147 | cat >conftest.$ac_ext <<_ACEOF |
| 2148 | #line $LINENO "configure" |
| 2149 | #include "confdefs.h" |
| 2150 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2151 | #ifdef F77_DUMMY_MAIN |
| 2152 | # ifdef __cplusplus |
| 2153 | extern "C" |
| 2154 | # endif |
| 2155 | int F77_DUMMY_MAIN() { return 1; } |
| 2156 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2157 | int |
| 2158 | main () |
| 2159 | { |
| 2160 | |
| 2161 | ; |
| 2162 | return 0; |
| 2163 | } |
| 2164 | _ACEOF |
| 2165 | rm -f conftest.o conftest.obj |
| 2166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2167 | (eval $ac_compile) 2>&5 |
| 2168 | ac_status=$? |
| 2169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2170 | (exit $ac_status); }; then |
| 2171 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2172 | case $ac_file in |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2173 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2174 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2175 | break;; |
| 2176 | esac |
| 2177 | done |
| 2178 | else |
| 2179 | echo "$as_me: failed program was:" >&5 |
| 2180 | cat conftest.$ac_ext >&5 |
| 2181 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2182 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2183 | { (exit 1); exit 1; }; } |
| 2184 | fi |
| 2185 | |
| 2186 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2187 | fi |
| 2188 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2189 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2190 | OBJEXT=$ac_cv_objext |
| 2191 | ac_objext=$OBJEXT |
| 2192 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2193 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2194 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2196 | else |
| 2197 | cat >conftest.$ac_ext <<_ACEOF |
| 2198 | #line $LINENO "configure" |
| 2199 | #include "confdefs.h" |
| 2200 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2201 | #ifdef F77_DUMMY_MAIN |
| 2202 | # ifdef __cplusplus |
| 2203 | extern "C" |
| 2204 | # endif |
| 2205 | int F77_DUMMY_MAIN() { return 1; } |
| 2206 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2207 | int |
| 2208 | main () |
| 2209 | { |
| 2210 | #ifndef __GNUC__ |
| 2211 | choke me |
| 2212 | #endif |
| 2213 | |
| 2214 | ; |
| 2215 | return 0; |
| 2216 | } |
| 2217 | _ACEOF |
| 2218 | rm -f conftest.$ac_objext |
| 2219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2220 | (eval $ac_compile) 2>&5 |
| 2221 | ac_status=$? |
| 2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2223 | (exit $ac_status); } && |
| 2224 | { ac_try='test -s conftest.$ac_objext' |
| 2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2226 | (eval $ac_try) 2>&5 |
| 2227 | ac_status=$? |
| 2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2229 | (exit $ac_status); }; }; then |
| 2230 | ac_compiler_gnu=yes |
| 2231 | else |
| 2232 | echo "$as_me: failed program was:" >&5 |
| 2233 | cat conftest.$ac_ext >&5 |
| 2234 | ac_compiler_gnu=no |
| 2235 | fi |
| 2236 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2237 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2238 | |
| 2239 | fi |
| 2240 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2241 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2242 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2243 | ac_test_CFLAGS=${CFLAGS+set} |
| 2244 | ac_save_CFLAGS=$CFLAGS |
| 2245 | CFLAGS="-g" |
| 2246 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2247 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2248 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2250 | else |
| 2251 | cat >conftest.$ac_ext <<_ACEOF |
| 2252 | #line $LINENO "configure" |
| 2253 | #include "confdefs.h" |
| 2254 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2255 | #ifdef F77_DUMMY_MAIN |
| 2256 | # ifdef __cplusplus |
| 2257 | extern "C" |
| 2258 | # endif |
| 2259 | int F77_DUMMY_MAIN() { return 1; } |
| 2260 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2261 | int |
| 2262 | main () |
| 2263 | { |
| 2264 | |
| 2265 | ; |
| 2266 | return 0; |
| 2267 | } |
| 2268 | _ACEOF |
| 2269 | rm -f conftest.$ac_objext |
| 2270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2271 | (eval $ac_compile) 2>&5 |
| 2272 | ac_status=$? |
| 2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2274 | (exit $ac_status); } && |
| 2275 | { ac_try='test -s conftest.$ac_objext' |
| 2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2277 | (eval $ac_try) 2>&5 |
| 2278 | ac_status=$? |
| 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2280 | (exit $ac_status); }; }; then |
| 2281 | ac_cv_prog_cc_g=yes |
| 2282 | else |
| 2283 | echo "$as_me: failed program was:" >&5 |
| 2284 | cat conftest.$ac_ext >&5 |
| 2285 | ac_cv_prog_cc_g=no |
| 2286 | fi |
| 2287 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2288 | fi |
| 2289 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2290 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2291 | if test "$ac_test_CFLAGS" = set; then |
| 2292 | CFLAGS=$ac_save_CFLAGS |
| 2293 | elif test $ac_cv_prog_cc_g = yes; then |
| 2294 | if test "$GCC" = yes; then |
| 2295 | CFLAGS="-g -O2" |
| 2296 | else |
| 2297 | CFLAGS="-g" |
| 2298 | fi |
| 2299 | else |
| 2300 | if test "$GCC" = yes; then |
| 2301 | CFLAGS="-O2" |
| 2302 | else |
| 2303 | CFLAGS= |
| 2304 | fi |
| 2305 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2306 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2307 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2308 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2309 | # the declaration of exit, since it's the most demanding environment. |
| 2310 | cat >conftest.$ac_ext <<_ACEOF |
| 2311 | #ifndef __cplusplus |
| 2312 | choke me |
| 2313 | #endif |
| 2314 | _ACEOF |
| 2315 | rm -f conftest.$ac_objext |
| 2316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2317 | (eval $ac_compile) 2>&5 |
| 2318 | ac_status=$? |
| 2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2320 | (exit $ac_status); } && |
| 2321 | { ac_try='test -s conftest.$ac_objext' |
| 2322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2323 | (eval $ac_try) 2>&5 |
| 2324 | ac_status=$? |
| 2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2326 | (exit $ac_status); }; }; then |
| 2327 | for ac_declaration in \ |
| 2328 | ''\ |
| 2329 | '#include <stdlib.h>' \ |
| 2330 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2331 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2332 | 'extern "C" void exit (int) throw ();' \ |
| 2333 | 'extern "C" void exit (int);' \ |
| 2334 | 'void exit (int);' |
| 2335 | do |
| 2336 | cat >conftest.$ac_ext <<_ACEOF |
| 2337 | #line $LINENO "configure" |
| 2338 | #include "confdefs.h" |
| 2339 | #include <stdlib.h> |
| 2340 | $ac_declaration |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2341 | #ifdef F77_DUMMY_MAIN |
| 2342 | # ifdef __cplusplus |
| 2343 | extern "C" |
| 2344 | # endif |
| 2345 | int F77_DUMMY_MAIN() { return 1; } |
| 2346 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2347 | int |
| 2348 | main () |
| 2349 | { |
| 2350 | exit (42); |
| 2351 | ; |
| 2352 | return 0; |
| 2353 | } |
| 2354 | _ACEOF |
| 2355 | rm -f conftest.$ac_objext |
| 2356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2357 | (eval $ac_compile) 2>&5 |
| 2358 | ac_status=$? |
| 2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2360 | (exit $ac_status); } && |
| 2361 | { ac_try='test -s conftest.$ac_objext' |
| 2362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2363 | (eval $ac_try) 2>&5 |
| 2364 | ac_status=$? |
| 2365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2366 | (exit $ac_status); }; }; then |
| 2367 | : |
| 2368 | else |
| 2369 | echo "$as_me: failed program was:" >&5 |
| 2370 | cat conftest.$ac_ext >&5 |
| 2371 | continue |
| 2372 | fi |
| 2373 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2374 | cat >conftest.$ac_ext <<_ACEOF |
| 2375 | #line $LINENO "configure" |
| 2376 | #include "confdefs.h" |
| 2377 | $ac_declaration |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2378 | #ifdef F77_DUMMY_MAIN |
| 2379 | # ifdef __cplusplus |
| 2380 | extern "C" |
| 2381 | # endif |
| 2382 | int F77_DUMMY_MAIN() { return 1; } |
| 2383 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2384 | int |
| 2385 | main () |
| 2386 | { |
| 2387 | exit (42); |
| 2388 | ; |
| 2389 | return 0; |
| 2390 | } |
| 2391 | _ACEOF |
| 2392 | rm -f conftest.$ac_objext |
| 2393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2394 | (eval $ac_compile) 2>&5 |
| 2395 | ac_status=$? |
| 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); } && |
| 2398 | { ac_try='test -s conftest.$ac_objext' |
| 2399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2400 | (eval $ac_try) 2>&5 |
| 2401 | ac_status=$? |
| 2402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2403 | (exit $ac_status); }; }; then |
| 2404 | break |
| 2405 | else |
| 2406 | echo "$as_me: failed program was:" >&5 |
| 2407 | cat conftest.$ac_ext >&5 |
| 2408 | fi |
| 2409 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2410 | done |
| 2411 | rm -f conftest* |
| 2412 | if test -n "$ac_declaration"; then |
| 2413 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2414 | echo $ac_declaration >>confdefs.h |
| 2415 | echo '#endif' >>confdefs.h |
| 2416 | fi |
| 2417 | |
| 2418 | else |
| 2419 | echo "$as_me: failed program was:" >&5 |
| 2420 | cat conftest.$ac_ext >&5 |
| 2421 | fi |
| 2422 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2423 | ac_ext=c |
| 2424 | ac_cpp='$CPP $CPPFLAGS' |
| 2425 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2426 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2427 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2428 | rm -f .deps 2>/dev/null |
| 2429 | mkdir .deps 2>/dev/null |
| 2430 | if test -d .deps; then |
| 2431 | DEPDIR=.deps |
| 2432 | else |
| 2433 | # MS-DOS does not allow filenames that begin with a dot. |
| 2434 | DEPDIR=_deps |
| 2435 | fi |
| 2436 | rmdir .deps 2>/dev/null |
| 2437 | |
| 2438 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2439 | ac_config_commands="$ac_config_commands depfiles" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2440 | |
| 2441 | |
| 2442 | am_make=${MAKE-make} |
| 2443 | cat > confinc << 'END' |
| 2444 | doit: |
| 2445 | @echo done |
| 2446 | END |
| 2447 | # If we don't find an include directive, just comment out the code. |
| 2448 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2449 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 2450 | am__include="#" |
| 2451 | am__quote= |
| 2452 | _am_result=none |
| 2453 | # First try GNU make style include. |
| 2454 | echo "include confinc" > confmf |
| 2455 | # We grep out `Entering directory' and `Leaving directory' |
| 2456 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2457 | # In particular we don't look at `^make:' because GNU make might |
| 2458 | # be invoked under some other name (usually "gmake"), in which |
| 2459 | # case it prints its new name instead of `make'. |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2460 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2461 | am__include=include |
| 2462 | am__quote= |
| 2463 | _am_result=GNU |
| 2464 | fi |
| 2465 | # Now try BSD make style include. |
| 2466 | if test "$am__include" = "#"; then |
| 2467 | echo '.include "confinc"' > confmf |
| 2468 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2469 | am__include=.include |
| 2470 | am__quote="\"" |
| 2471 | _am_result=BSD |
| 2472 | fi |
| 2473 | fi |
| 2474 | |
| 2475 | |
| 2476 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2477 | echo "${ECHO_T}$_am_result" >&6 |
| 2478 | rm -f confinc confmf |
| 2479 | |
| 2480 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2481 | if test "${enable_dependency_tracking+set}" = set; then |
| 2482 | enableval="$enable_dependency_tracking" |
| 2483 | |
| 2484 | fi; |
| 2485 | if test "x$enable_dependency_tracking" != xno; then |
| 2486 | am_depcomp="$ac_aux_dir/depcomp" |
| 2487 | AMDEPBACKSLASH='\' |
| 2488 | fi |
| 2489 | |
| 2490 | |
| 2491 | if test "x$enable_dependency_tracking" != xno; then |
| 2492 | AMDEP_TRUE= |
| 2493 | AMDEP_FALSE='#' |
| 2494 | else |
| 2495 | AMDEP_TRUE='#' |
| 2496 | AMDEP_FALSE= |
| 2497 | fi |
| 2498 | |
| 2499 | |
| 2500 | |
| 2501 | |
| 2502 | depcc="$CC" am_compiler_list= |
| 2503 | |
| 2504 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2505 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2506 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2508 | else |
| 2509 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2510 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2511 | # making bogus files that we don't know about and never remove. For |
| 2512 | # instance it was reported that on HP-UX the gcc test will end up |
| 2513 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2514 | # in D'. |
| 2515 | mkdir conftest.dir |
| 2516 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2517 | # using a relative directory. |
| 2518 | cp "$am_depcomp" conftest.dir |
| 2519 | cd conftest.dir |
| 2520 | |
| 2521 | am_cv_CC_dependencies_compiler_type=none |
| 2522 | if test "$am_compiler_list" = ""; then |
| 2523 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2524 | fi |
| 2525 | for depmode in $am_compiler_list; do |
| 2526 | # We need to recreate these files for each test, as the compiler may |
| 2527 | # overwrite some of them when testing with obscure command lines. |
| 2528 | # This happens at least with the AIX C compiler. |
| 2529 | echo '#include "conftest.h"' > conftest.c |
| 2530 | echo 'int i;' > conftest.h |
| 2531 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 2532 | |
| 2533 | case $depmode in |
| 2534 | nosideeffect) |
| 2535 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2536 | # only be used when explicitly requested |
| 2537 | if test "x$enable_dependency_tracking" = xyes; then |
| 2538 | continue |
| 2539 | else |
| 2540 | break |
| 2541 | fi |
| 2542 | ;; |
| 2543 | none) break ;; |
| 2544 | esac |
| 2545 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2546 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2547 | # handle `-M -o', and we need to detect this. |
| 2548 | if depmode=$depmode \ |
| 2549 | source=conftest.c object=conftest.o \ |
| 2550 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 2551 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 2552 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 2553 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2554 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2555 | break |
| 2556 | fi |
| 2557 | done |
| 2558 | |
| 2559 | cd .. |
| 2560 | rm -rf conftest.dir |
| 2561 | else |
| 2562 | am_cv_CC_dependencies_compiler_type=none |
| 2563 | fi |
| 2564 | |
| 2565 | fi |
| 2566 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2567 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 2568 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 2569 | |
| 2570 | |
| 2571 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2572 | if test "x$cflags_specified" = "x" ; then |
| 2573 | CFLAGS="$CFLAGS -Wall" |
| 2574 | fi |
| 2575 | |
| 2576 | ac_ext=c |
| 2577 | ac_cpp='$CPP $CPPFLAGS' |
| 2578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2581 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2582 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2583 | # On Suns, sometimes $CPP names a directory. |
| 2584 | if test -n "$CPP" && test -d "$CPP"; then |
| 2585 | CPP= |
| 2586 | fi |
| 2587 | if test -z "$CPP"; then |
| 2588 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2590 | else |
| 2591 | # Double quotes because CPP needs to be expanded |
| 2592 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2593 | do |
| 2594 | ac_preproc_ok=false |
| 2595 | for ac_c_preproc_warn_flag in '' yes |
| 2596 | do |
| 2597 | # Use a header file that comes with gcc, so configuring glibc |
| 2598 | # with a fresh cross-compiler works. |
| 2599 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2600 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2601 | cat >conftest.$ac_ext <<_ACEOF |
| 2602 | #line $LINENO "configure" |
| 2603 | #include "confdefs.h" |
| 2604 | #include <assert.h> |
| 2605 | Syntax error |
| 2606 | _ACEOF |
| 2607 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2608 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2609 | ac_status=$? |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2610 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2611 | rm -f conftest.er1 |
| 2612 | cat conftest.err >&5 |
| 2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2614 | (exit $ac_status); } >/dev/null; then |
| 2615 | if test -s conftest.err; then |
| 2616 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2617 | else |
| 2618 | ac_cpp_err= |
| 2619 | fi |
| 2620 | else |
| 2621 | ac_cpp_err=yes |
| 2622 | fi |
| 2623 | if test -z "$ac_cpp_err"; then |
| 2624 | : |
| 2625 | else |
| 2626 | echo "$as_me: failed program was:" >&5 |
| 2627 | cat conftest.$ac_ext >&5 |
| 2628 | # Broken: fails on valid input. |
| 2629 | continue |
| 2630 | fi |
| 2631 | rm -f conftest.err conftest.$ac_ext |
| 2632 | |
| 2633 | # OK, works on sane cases. Now check whether non-existent headers |
| 2634 | # can be detected and how. |
| 2635 | cat >conftest.$ac_ext <<_ACEOF |
| 2636 | #line $LINENO "configure" |
| 2637 | #include "confdefs.h" |
| 2638 | #include <ac_nonexistent.h> |
| 2639 | _ACEOF |
| 2640 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2641 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2642 | ac_status=$? |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2643 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2644 | rm -f conftest.er1 |
| 2645 | cat conftest.err >&5 |
| 2646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2647 | (exit $ac_status); } >/dev/null; then |
| 2648 | if test -s conftest.err; then |
| 2649 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2650 | else |
| 2651 | ac_cpp_err= |
| 2652 | fi |
| 2653 | else |
| 2654 | ac_cpp_err=yes |
| 2655 | fi |
| 2656 | if test -z "$ac_cpp_err"; then |
| 2657 | # Broken: success on invalid input. |
| 2658 | continue |
| 2659 | else |
| 2660 | echo "$as_me: failed program was:" >&5 |
| 2661 | cat conftest.$ac_ext >&5 |
| 2662 | # Passes both tests. |
| 2663 | ac_preproc_ok=: |
| 2664 | break |
| 2665 | fi |
| 2666 | rm -f conftest.err conftest.$ac_ext |
| 2667 | |
| 2668 | done |
| 2669 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2670 | rm -f conftest.err conftest.$ac_ext |
| 2671 | if $ac_preproc_ok; then |
| 2672 | break |
| 2673 | fi |
| 2674 | |
| 2675 | done |
| 2676 | ac_cv_prog_CPP=$CPP |
| 2677 | |
| 2678 | fi |
| 2679 | CPP=$ac_cv_prog_CPP |
| 2680 | else |
| 2681 | ac_cv_prog_CPP=$CPP |
| 2682 | fi |
| 2683 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2684 | echo "${ECHO_T}$CPP" >&6 |
| 2685 | ac_preproc_ok=false |
| 2686 | for ac_c_preproc_warn_flag in '' yes |
| 2687 | do |
| 2688 | # Use a header file that comes with gcc, so configuring glibc |
| 2689 | # with a fresh cross-compiler works. |
| 2690 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2691 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2692 | cat >conftest.$ac_ext <<_ACEOF |
| 2693 | #line $LINENO "configure" |
| 2694 | #include "confdefs.h" |
| 2695 | #include <assert.h> |
| 2696 | Syntax error |
| 2697 | _ACEOF |
| 2698 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2699 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2700 | ac_status=$? |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2701 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2702 | rm -f conftest.er1 |
| 2703 | cat conftest.err >&5 |
| 2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2705 | (exit $ac_status); } >/dev/null; then |
| 2706 | if test -s conftest.err; then |
| 2707 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2708 | else |
| 2709 | ac_cpp_err= |
| 2710 | fi |
| 2711 | else |
| 2712 | ac_cpp_err=yes |
| 2713 | fi |
| 2714 | if test -z "$ac_cpp_err"; then |
| 2715 | : |
| 2716 | else |
| 2717 | echo "$as_me: failed program was:" >&5 |
| 2718 | cat conftest.$ac_ext >&5 |
| 2719 | # Broken: fails on valid input. |
| 2720 | continue |
| 2721 | fi |
| 2722 | rm -f conftest.err conftest.$ac_ext |
| 2723 | |
| 2724 | # OK, works on sane cases. Now check whether non-existent headers |
| 2725 | # can be detected and how. |
| 2726 | cat >conftest.$ac_ext <<_ACEOF |
| 2727 | #line $LINENO "configure" |
| 2728 | #include "confdefs.h" |
| 2729 | #include <ac_nonexistent.h> |
| 2730 | _ACEOF |
| 2731 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2732 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2733 | ac_status=$? |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2734 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2735 | rm -f conftest.er1 |
| 2736 | cat conftest.err >&5 |
| 2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2738 | (exit $ac_status); } >/dev/null; then |
| 2739 | if test -s conftest.err; then |
| 2740 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2741 | else |
| 2742 | ac_cpp_err= |
| 2743 | fi |
| 2744 | else |
| 2745 | ac_cpp_err=yes |
| 2746 | fi |
| 2747 | if test -z "$ac_cpp_err"; then |
| 2748 | # Broken: success on invalid input. |
| 2749 | continue |
| 2750 | else |
| 2751 | echo "$as_me: failed program was:" >&5 |
| 2752 | cat conftest.$ac_ext >&5 |
| 2753 | # Passes both tests. |
| 2754 | ac_preproc_ok=: |
| 2755 | break |
| 2756 | fi |
| 2757 | rm -f conftest.err conftest.$ac_ext |
| 2758 | |
| 2759 | done |
| 2760 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2761 | rm -f conftest.err conftest.$ac_ext |
| 2762 | if $ac_preproc_ok; then |
| 2763 | : |
| 2764 | else |
| 2765 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2766 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2767 | { (exit 1); exit 1; }; } |
| 2768 | fi |
| 2769 | |
| 2770 | ac_ext=c |
| 2771 | ac_cpp='$CPP $CPPFLAGS' |
| 2772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2775 | |
| 2776 | # Find a good install program. We prefer a C program (faster), |
| 2777 | # so one script is as good as another. But avoid the broken or |
| 2778 | # incompatible versions: |
| 2779 | # SysV /etc/install, /usr/sbin/install |
| 2780 | # SunOS /usr/etc/install |
| 2781 | # IRIX /sbin/install |
| 2782 | # AIX /bin/install |
| 2783 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2784 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2785 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2786 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2787 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2788 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2789 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 2790 | if test -z "$INSTALL"; then |
| 2791 | if test "${ac_cv_path_install+set}" = set; then |
| 2792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2793 | else |
| 2794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2795 | for as_dir in $PATH |
| 2796 | do |
| 2797 | IFS=$as_save_IFS |
| 2798 | test -z "$as_dir" && as_dir=. |
| 2799 | # Account for people who put trailing slashes in PATH elements. |
| 2800 | case $as_dir/ in |
| 2801 | ./ | .// | /cC/* | \ |
| 2802 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2803 | /usr/ucb/* ) ;; |
| 2804 | *) |
| 2805 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2806 | # Don't use installbsd from OSF since it installs stuff as root |
| 2807 | # by default. |
| 2808 | for ac_prog in ginstall scoinst install; do |
| 2809 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2810 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2811 | if test $ac_prog = install && |
| 2812 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2813 | # AIX install. It has an incompatible calling convention. |
| 2814 | : |
| 2815 | elif test $ac_prog = install && |
| 2816 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2817 | # program-specific install script used by HP pwplus--don't use. |
| 2818 | : |
| 2819 | else |
| 2820 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2821 | break 3 |
| 2822 | fi |
| 2823 | fi |
| 2824 | done |
| 2825 | done |
| 2826 | ;; |
| 2827 | esac |
| 2828 | done |
| 2829 | |
| 2830 | |
| 2831 | fi |
| 2832 | if test "${ac_cv_path_install+set}" = set; then |
| 2833 | INSTALL=$ac_cv_path_install |
| 2834 | else |
| 2835 | # As a last resort, use the slow shell script. We don't cache a |
| 2836 | # path for INSTALL within a source directory, because that will |
| 2837 | # break other packages using the cache if that directory is |
| 2838 | # removed, or if the path is relative. |
| 2839 | INSTALL=$ac_install_sh |
| 2840 | fi |
| 2841 | fi |
| 2842 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2843 | echo "${ECHO_T}$INSTALL" >&6 |
| 2844 | |
| 2845 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2846 | # It thinks the first close brace ends the variable substitution. |
| 2847 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2848 | |
| 2849 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2850 | |
| 2851 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2852 | |
| 2853 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 2854 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 2855 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 2856 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 2857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2858 | else |
| 2859 | cat >conftest.make <<\_ACEOF |
| 2860 | all: |
| 2861 | @echo 'ac_maketemp="${MAKE}"' |
| 2862 | _ACEOF |
| 2863 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2864 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 2865 | if test -n "$ac_maketemp"; then |
| 2866 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 2867 | else |
| 2868 | eval ac_cv_prog_make_${ac_make}_set=no |
| 2869 | fi |
| 2870 | rm -f conftest.make |
| 2871 | fi |
| 2872 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 2873 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2874 | echo "${ECHO_T}yes" >&6 |
| 2875 | SET_MAKE= |
| 2876 | else |
| 2877 | echo "$as_me:$LINENO: result: no" >&5 |
| 2878 | echo "${ECHO_T}no" >&6 |
| 2879 | SET_MAKE="MAKE=${MAKE-make}" |
| 2880 | fi |
| 2881 | |
| 2882 | if test -n "$ac_tool_prefix"; then |
| 2883 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 2884 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 2885 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2887 | if test "${ac_cv_prog_AR+set}" = set; then |
| 2888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2889 | else |
| 2890 | if test -n "$AR"; then |
| 2891 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 2892 | else |
| 2893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2894 | for as_dir in $PATH |
| 2895 | do |
| 2896 | IFS=$as_save_IFS |
| 2897 | test -z "$as_dir" && as_dir=. |
| 2898 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2899 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2900 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 2901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2902 | break 2 |
| 2903 | fi |
| 2904 | done |
| 2905 | done |
| 2906 | |
| 2907 | fi |
| 2908 | fi |
| 2909 | AR=$ac_cv_prog_AR |
| 2910 | if test -n "$AR"; then |
| 2911 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 2912 | echo "${ECHO_T}$AR" >&6 |
| 2913 | else |
| 2914 | echo "$as_me:$LINENO: result: no" >&5 |
| 2915 | echo "${ECHO_T}no" >&6 |
| 2916 | fi |
| 2917 | |
| 2918 | fi |
| 2919 | if test -z "$ac_cv_prog_AR"; then |
| 2920 | ac_ct_AR=$AR |
| 2921 | # Extract the first word of "ar", so it can be a program name with args. |
| 2922 | set dummy ar; ac_word=$2 |
| 2923 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2925 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 2926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2927 | else |
| 2928 | if test -n "$ac_ct_AR"; then |
| 2929 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 2930 | else |
| 2931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2932 | for as_dir in $PATH |
| 2933 | do |
| 2934 | IFS=$as_save_IFS |
| 2935 | test -z "$as_dir" && as_dir=. |
| 2936 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2937 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2938 | ac_cv_prog_ac_ct_AR="ar" |
| 2939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2940 | break 2 |
| 2941 | fi |
| 2942 | done |
| 2943 | done |
| 2944 | |
| 2945 | fi |
| 2946 | fi |
| 2947 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 2948 | if test -n "$ac_ct_AR"; then |
| 2949 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 2950 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 2951 | else |
| 2952 | echo "$as_me:$LINENO: result: no" >&5 |
| 2953 | echo "${ECHO_T}no" >&6 |
| 2954 | fi |
| 2955 | |
| 2956 | AR=$ac_ct_AR |
| 2957 | else |
| 2958 | AR="$ac_cv_prog_AR" |
| 2959 | fi |
| 2960 | |
| 2961 | if test -n "$ac_tool_prefix"; then |
| 2962 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2963 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2964 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2966 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 2967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2968 | else |
| 2969 | if test -n "$RANLIB"; then |
| 2970 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2971 | else |
| 2972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2973 | for as_dir in $PATH |
| 2974 | do |
| 2975 | IFS=$as_save_IFS |
| 2976 | test -z "$as_dir" && as_dir=. |
| 2977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2978 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2979 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2981 | break 2 |
| 2982 | fi |
| 2983 | done |
| 2984 | done |
| 2985 | |
| 2986 | fi |
| 2987 | fi |
| 2988 | RANLIB=$ac_cv_prog_RANLIB |
| 2989 | if test -n "$RANLIB"; then |
| 2990 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 2991 | echo "${ECHO_T}$RANLIB" >&6 |
| 2992 | else |
| 2993 | echo "$as_me:$LINENO: result: no" >&5 |
| 2994 | echo "${ECHO_T}no" >&6 |
| 2995 | fi |
| 2996 | |
| 2997 | fi |
| 2998 | if test -z "$ac_cv_prog_RANLIB"; then |
| 2999 | ac_ct_RANLIB=$RANLIB |
| 3000 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3001 | set dummy ranlib; ac_word=$2 |
| 3002 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3004 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3006 | else |
| 3007 | if test -n "$ac_ct_RANLIB"; then |
| 3008 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3009 | else |
| 3010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3011 | for as_dir in $PATH |
| 3012 | do |
| 3013 | IFS=$as_save_IFS |
| 3014 | test -z "$as_dir" && as_dir=. |
| 3015 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3016 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3017 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3018 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3019 | break 2 |
| 3020 | fi |
| 3021 | done |
| 3022 | done |
| 3023 | |
| 3024 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3025 | fi |
| 3026 | fi |
| 3027 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3028 | if test -n "$ac_ct_RANLIB"; then |
| 3029 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3030 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3031 | else |
| 3032 | echo "$as_me:$LINENO: result: no" >&5 |
| 3033 | echo "${ECHO_T}no" >&6 |
| 3034 | fi |
| 3035 | |
| 3036 | RANLIB=$ac_ct_RANLIB |
| 3037 | else |
| 3038 | RANLIB="$ac_cv_prog_RANLIB" |
| 3039 | fi |
| 3040 | |
| 3041 | |
| 3042 | |
| 3043 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3044 | |
| 3045 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3046 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3047 | cat >conftest.$ac_ext <<_ACEOF |
| 3048 | #line $LINENO "configure" |
| 3049 | #include "confdefs.h" |
| 3050 | #ifdef _AIX |
| 3051 | yes |
| 3052 | #endif |
| 3053 | |
| 3054 | _ACEOF |
| 3055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3056 | egrep "yes" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3057 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3058 | echo "${ECHO_T}yes" >&6 |
| 3059 | cat >>confdefs.h <<\_ACEOF |
| 3060 | #define _ALL_SOURCE 1 |
| 3061 | _ACEOF |
| 3062 | |
| 3063 | else |
| 3064 | echo "$as_me:$LINENO: result: no" >&5 |
| 3065 | echo "${ECHO_T}no" >&6 |
| 3066 | fi |
| 3067 | rm -f conftest* |
| 3068 | |
| 3069 | |
| 3070 | |
| 3071 | # Check whether --enable-vtysh or --disable-vtysh was given. |
| 3072 | if test "${enable_vtysh+set}" = set; then |
| 3073 | enableval="$enable_vtysh" |
| 3074 | |
| 3075 | fi; |
| 3076 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 3077 | if test "${enable_ipv6+set}" = set; then |
| 3078 | enableval="$enable_ipv6" |
| 3079 | |
| 3080 | fi; |
| 3081 | # Check whether --enable-zebra or --disable-zebra was given. |
| 3082 | if test "${enable_zebra+set}" = set; then |
| 3083 | enableval="$enable_zebra" |
| 3084 | |
| 3085 | fi; |
| 3086 | # Check whether --enable-bgpd or --disable-bgpd was given. |
| 3087 | if test "${enable_bgpd+set}" = set; then |
| 3088 | enableval="$enable_bgpd" |
| 3089 | |
| 3090 | fi; |
| 3091 | # Check whether --enable-ripd or --disable-ripd was given. |
| 3092 | if test "${enable_ripd+set}" = set; then |
| 3093 | enableval="$enable_ripd" |
| 3094 | |
| 3095 | fi; |
| 3096 | # Check whether --enable-ripngd or --disable-ripngd was given. |
| 3097 | if test "${enable_ripngd+set}" = set; then |
| 3098 | enableval="$enable_ripngd" |
| 3099 | |
| 3100 | fi; |
| 3101 | # Check whether --enable-ospfd or --disable-ospfd was given. |
| 3102 | if test "${enable_ospfd+set}" = set; then |
| 3103 | enableval="$enable_ospfd" |
| 3104 | |
| 3105 | fi; |
| 3106 | # Check whether --enable-ospf6d or --disable-ospf6d was given. |
| 3107 | if test "${enable_ospf6d+set}" = set; then |
| 3108 | enableval="$enable_ospf6d" |
| 3109 | |
| 3110 | fi; |
| 3111 | # Check whether --enable-bgp-announce or --disable-bgp-announce was given. |
| 3112 | if test "${enable_bgp_announce+set}" = set; then |
| 3113 | enableval="$enable_bgp_announce" |
| 3114 | |
| 3115 | fi; |
| 3116 | # Check whether --enable-netlink or --disable-netlink was given. |
| 3117 | if test "${enable_netlink+set}" = set; then |
| 3118 | enableval="$enable_netlink" |
| 3119 | |
| 3120 | fi; |
| 3121 | # Check whether --enable-broken-aliases or --disable-broken-aliases was given. |
| 3122 | if test "${enable_broken_aliases+set}" = set; then |
| 3123 | enableval="$enable_broken_aliases" |
| 3124 | |
| 3125 | fi; |
| 3126 | # Check whether --enable-snmp or --disable-snmp was given. |
| 3127 | if test "${enable_snmp+set}" = set; then |
| 3128 | enableval="$enable_snmp" |
| 3129 | |
| 3130 | fi; |
| 3131 | |
| 3132 | # Check whether --with-libpam or --without-libpam was given. |
| 3133 | if test "${with_libpam+set}" = set; then |
| 3134 | withval="$with_libpam" |
| 3135 | |
| 3136 | fi; |
| 3137 | # Check whether --enable-tcpsock or --disable-tcpsock was given. |
| 3138 | if test "${enable_tcpsock+set}" = set; then |
| 3139 | enableval="$enable_tcpsock" |
| 3140 | |
| 3141 | fi; |
| 3142 | # Check whether --enable-nssa or --disable-nssa was given. |
| 3143 | if test "${enable_nssa+set}" = set; then |
| 3144 | enableval="$enable_nssa" |
| 3145 | |
| 3146 | fi; |
| 3147 | # Check whether --enable-opaque-lsa or --disable-opaque-lsa was given. |
| 3148 | if test "${enable_opaque_lsa+set}" = set; then |
| 3149 | enableval="$enable_opaque_lsa" |
| 3150 | |
| 3151 | fi; |
| 3152 | # Check whether --enable-ospf-te or --disable-ospf-te was given. |
| 3153 | if test "${enable_ospf_te+set}" = set; then |
| 3154 | enableval="$enable_ospf_te" |
| 3155 | |
| 3156 | fi; |
| 3157 | # Check whether --enable-multipath or --disable-multipath was given. |
| 3158 | if test "${enable_multipath+set}" = set; then |
| 3159 | enableval="$enable_multipath" |
| 3160 | |
| 3161 | fi; |
| 3162 | |
| 3163 | |
| 3164 | if test "${enable_broken_aliases}" = "yes"; then |
| 3165 | if test "${enable_netlink}" = "yes" |
| 3166 | then |
| 3167 | echo "Sorry, you can't use netlink with broken aliases" |
| 3168 | exit 1 |
| 3169 | fi |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3170 | |
| 3171 | cat >>confdefs.h <<\_ACEOF |
| 3172 | #define HAVE_BROKEN_ALIASES |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3173 | _ACEOF |
| 3174 | |
| 3175 | enable_netlink=no |
| 3176 | fi |
| 3177 | |
| 3178 | if test "${enable_tcp_zebra}" = "yes"; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3179 | |
| 3180 | cat >>confdefs.h <<\_ACEOF |
| 3181 | #define HAVE_TCP_ZEBRA |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3182 | _ACEOF |
| 3183 | |
| 3184 | fi |
| 3185 | |
| 3186 | if test "${enable_nssa}" = "yes"; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3187 | |
| 3188 | cat >>confdefs.h <<\_ACEOF |
| 3189 | #define HAVE_NSSA |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3190 | _ACEOF |
| 3191 | |
| 3192 | fi |
| 3193 | |
| 3194 | if test "${enable_opaque_lsa}" = "yes"; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3195 | |
| 3196 | cat >>confdefs.h <<\_ACEOF |
| 3197 | #define HAVE_OPAQUE_LSA |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3198 | _ACEOF |
| 3199 | |
| 3200 | fi |
| 3201 | |
| 3202 | if test "${enable_ospf_te}" = "yes"; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3203 | |
| 3204 | cat >>confdefs.h <<\_ACEOF |
| 3205 | #define HAVE_OPAQUE_LSA |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3206 | _ACEOF |
| 3207 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3208 | |
| 3209 | cat >>confdefs.h <<\_ACEOF |
| 3210 | #define HAVE_OSPF_TE |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3211 | _ACEOF |
| 3212 | |
| 3213 | fi |
| 3214 | |
| 3215 | |
| 3216 | |
| 3217 | MULTIPATH_NUM=1 |
| 3218 | |
| 3219 | case "${enable_multipath}" in |
| 3220 | [0-9]|[1-9][0-9]) |
| 3221 | MULTIPATH_NUM="${enable_multipath}" |
| 3222 | ;; |
| 3223 | "") |
| 3224 | ;; |
| 3225 | *) |
| 3226 | echo "Please specify digit to --enable-multipath ARG." |
| 3227 | exit 1 |
| 3228 | ;; |
| 3229 | esac |
| 3230 | |
| 3231 | |
| 3232 | |
| 3233 | |
| 3234 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3235 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3236 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3238 | else |
| 3239 | cat >conftest.$ac_ext <<_ACEOF |
| 3240 | #line $LINENO "configure" |
| 3241 | #include "confdefs.h" |
| 3242 | #include <stdlib.h> |
| 3243 | #include <stdarg.h> |
| 3244 | #include <string.h> |
| 3245 | #include <float.h> |
| 3246 | |
| 3247 | _ACEOF |
| 3248 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3249 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3250 | ac_status=$? |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3251 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3252 | rm -f conftest.er1 |
| 3253 | cat conftest.err >&5 |
| 3254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3255 | (exit $ac_status); } >/dev/null; then |
| 3256 | if test -s conftest.err; then |
| 3257 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3258 | else |
| 3259 | ac_cpp_err= |
| 3260 | fi |
| 3261 | else |
| 3262 | ac_cpp_err=yes |
| 3263 | fi |
| 3264 | if test -z "$ac_cpp_err"; then |
| 3265 | ac_cv_header_stdc=yes |
| 3266 | else |
| 3267 | echo "$as_me: failed program was:" >&5 |
| 3268 | cat conftest.$ac_ext >&5 |
| 3269 | ac_cv_header_stdc=no |
| 3270 | fi |
| 3271 | rm -f conftest.err conftest.$ac_ext |
| 3272 | |
| 3273 | if test $ac_cv_header_stdc = yes; then |
| 3274 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3275 | cat >conftest.$ac_ext <<_ACEOF |
| 3276 | #line $LINENO "configure" |
| 3277 | #include "confdefs.h" |
| 3278 | #include <string.h> |
| 3279 | |
| 3280 | _ACEOF |
| 3281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3282 | egrep "memchr" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3283 | : |
| 3284 | else |
| 3285 | ac_cv_header_stdc=no |
| 3286 | fi |
| 3287 | rm -f conftest* |
| 3288 | |
| 3289 | fi |
| 3290 | |
| 3291 | if test $ac_cv_header_stdc = yes; then |
| 3292 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3293 | cat >conftest.$ac_ext <<_ACEOF |
| 3294 | #line $LINENO "configure" |
| 3295 | #include "confdefs.h" |
| 3296 | #include <stdlib.h> |
| 3297 | |
| 3298 | _ACEOF |
| 3299 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3300 | egrep "free" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3301 | : |
| 3302 | else |
| 3303 | ac_cv_header_stdc=no |
| 3304 | fi |
| 3305 | rm -f conftest* |
| 3306 | |
| 3307 | fi |
| 3308 | |
| 3309 | if test $ac_cv_header_stdc = yes; then |
| 3310 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3311 | if test "$cross_compiling" = yes; then |
| 3312 | : |
| 3313 | else |
| 3314 | cat >conftest.$ac_ext <<_ACEOF |
| 3315 | #line $LINENO "configure" |
| 3316 | #include "confdefs.h" |
| 3317 | #include <ctype.h> |
| 3318 | #if ((' ' & 0x0FF) == 0x020) |
| 3319 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3320 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3321 | #else |
| 3322 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3323 | || ('j' <= (c) && (c) <= 'r') \ |
| 3324 | || ('s' <= (c) && (c) <= 'z')) |
| 3325 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3326 | #endif |
| 3327 | |
| 3328 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3329 | int |
| 3330 | main () |
| 3331 | { |
| 3332 | int i; |
| 3333 | for (i = 0; i < 256; i++) |
| 3334 | if (XOR (islower (i), ISLOWER (i)) |
| 3335 | || toupper (i) != TOUPPER (i)) |
| 3336 | exit(2); |
| 3337 | exit (0); |
| 3338 | } |
| 3339 | _ACEOF |
| 3340 | rm -f conftest$ac_exeext |
| 3341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3342 | (eval $ac_link) 2>&5 |
| 3343 | ac_status=$? |
| 3344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3345 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3347 | (eval $ac_try) 2>&5 |
| 3348 | ac_status=$? |
| 3349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3350 | (exit $ac_status); }; }; then |
| 3351 | : |
| 3352 | else |
| 3353 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3354 | echo "$as_me: failed program was:" >&5 |
| 3355 | cat conftest.$ac_ext >&5 |
| 3356 | ( exit $ac_status ) |
| 3357 | ac_cv_header_stdc=no |
| 3358 | fi |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3359 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3360 | fi |
| 3361 | fi |
| 3362 | fi |
| 3363 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3364 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3365 | if test $ac_cv_header_stdc = yes; then |
| 3366 | |
| 3367 | cat >>confdefs.h <<\_ACEOF |
| 3368 | #define STDC_HEADERS 1 |
| 3369 | _ACEOF |
| 3370 | |
| 3371 | fi |
| 3372 | |
| 3373 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3374 | |
| 3375 | |
| 3376 | |
| 3377 | |
| 3378 | |
| 3379 | |
| 3380 | |
| 3381 | |
| 3382 | |
| 3383 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3384 | inttypes.h stdint.h unistd.h |
| 3385 | do |
| 3386 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3387 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3388 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3389 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3391 | else |
| 3392 | cat >conftest.$ac_ext <<_ACEOF |
| 3393 | #line $LINENO "configure" |
| 3394 | #include "confdefs.h" |
| 3395 | $ac_includes_default |
| 3396 | |
| 3397 | #include <$ac_header> |
| 3398 | _ACEOF |
| 3399 | rm -f conftest.$ac_objext |
| 3400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3401 | (eval $ac_compile) 2>&5 |
| 3402 | ac_status=$? |
| 3403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3404 | (exit $ac_status); } && |
| 3405 | { ac_try='test -s conftest.$ac_objext' |
| 3406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3407 | (eval $ac_try) 2>&5 |
| 3408 | ac_status=$? |
| 3409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3410 | (exit $ac_status); }; }; then |
| 3411 | eval "$as_ac_Header=yes" |
| 3412 | else |
| 3413 | echo "$as_me: failed program was:" >&5 |
| 3414 | cat conftest.$ac_ext >&5 |
| 3415 | eval "$as_ac_Header=no" |
| 3416 | fi |
| 3417 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3418 | fi |
| 3419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3421 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3422 | cat >>confdefs.h <<_ACEOF |
| 3423 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3424 | _ACEOF |
| 3425 | |
| 3426 | fi |
| 3427 | |
| 3428 | done |
| 3429 | |
| 3430 | |
| 3431 | |
| 3432 | |
| 3433 | |
| 3434 | |
| 3435 | |
| 3436 | |
| 3437 | |
| 3438 | |
| 3439 | |
| 3440 | |
| 3441 | |
| 3442 | |
| 3443 | |
| 3444 | |
| 3445 | |
| 3446 | |
| 3447 | |
| 3448 | |
| 3449 | |
| 3450 | |
| 3451 | |
| 3452 | |
| 3453 | |
| 3454 | |
| 3455 | |
| 3456 | for ac_header in string.h stropts.h sys/conf.h sys/ksym.h sys/time.h sys/times.h sys/select.h sys/sysctl.h sys/sockio.h sys/types.h net/if_dl.h net/if_var.h linux/version.h kvm.h netdb.h netinet/in.h net/netopt.h netinet/in_var.h netinet/in6_var.h netinet/in6.h inet/nd.h asm/types.h netinet/icmp6.h netinet6/nd6.h libutil.h |
| 3457 | do |
| 3458 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3460 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3464 | fi |
| 3465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3466 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3467 | else |
| 3468 | # Is the header compilable? |
| 3469 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3470 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3471 | cat >conftest.$ac_ext <<_ACEOF |
| 3472 | #line $LINENO "configure" |
| 3473 | #include "confdefs.h" |
| 3474 | $ac_includes_default |
| 3475 | #include <$ac_header> |
| 3476 | _ACEOF |
| 3477 | rm -f conftest.$ac_objext |
| 3478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3479 | (eval $ac_compile) 2>&5 |
| 3480 | ac_status=$? |
| 3481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3482 | (exit $ac_status); } && |
| 3483 | { ac_try='test -s conftest.$ac_objext' |
| 3484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3485 | (eval $ac_try) 2>&5 |
| 3486 | ac_status=$? |
| 3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3488 | (exit $ac_status); }; }; then |
| 3489 | ac_header_compiler=yes |
| 3490 | else |
| 3491 | echo "$as_me: failed program was:" >&5 |
| 3492 | cat conftest.$ac_ext >&5 |
| 3493 | ac_header_compiler=no |
| 3494 | fi |
| 3495 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3496 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3497 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3498 | |
| 3499 | # Is the header present? |
| 3500 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3501 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3502 | cat >conftest.$ac_ext <<_ACEOF |
| 3503 | #line $LINENO "configure" |
| 3504 | #include "confdefs.h" |
| 3505 | #include <$ac_header> |
| 3506 | _ACEOF |
| 3507 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3508 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3509 | ac_status=$? |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3510 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3511 | rm -f conftest.er1 |
| 3512 | cat conftest.err >&5 |
| 3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3514 | (exit $ac_status); } >/dev/null; then |
| 3515 | if test -s conftest.err; then |
| 3516 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3517 | else |
| 3518 | ac_cpp_err= |
| 3519 | fi |
| 3520 | else |
| 3521 | ac_cpp_err=yes |
| 3522 | fi |
| 3523 | if test -z "$ac_cpp_err"; then |
| 3524 | ac_header_preproc=yes |
| 3525 | else |
| 3526 | echo "$as_me: failed program was:" >&5 |
| 3527 | cat conftest.$ac_ext >&5 |
| 3528 | ac_header_preproc=no |
| 3529 | fi |
| 3530 | rm -f conftest.err conftest.$ac_ext |
| 3531 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3532 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3533 | |
| 3534 | # So? What about this header? |
| 3535 | case $ac_header_compiler:$ac_header_preproc in |
| 3536 | yes:no ) |
| 3537 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3538 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3539 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3540 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3541 | no:yes ) |
| 3542 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3543 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3544 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3545 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3547 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3548 | esac |
| 3549 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3551 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3553 | else |
| 3554 | eval "$as_ac_Header=$ac_header_preproc" |
| 3555 | fi |
| 3556 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3557 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3558 | |
| 3559 | fi |
| 3560 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3561 | cat >>confdefs.h <<_ACEOF |
| 3562 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3563 | _ACEOF |
| 3564 | |
| 3565 | fi |
| 3566 | |
| 3567 | done |
| 3568 | |
| 3569 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3570 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3571 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3572 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3574 | else |
| 3575 | ac_cv_prog_cc_stdc=no |
| 3576 | ac_save_CC=$CC |
| 3577 | cat >conftest.$ac_ext <<_ACEOF |
| 3578 | #line $LINENO "configure" |
| 3579 | #include "confdefs.h" |
| 3580 | #include <stdarg.h> |
| 3581 | #include <stdio.h> |
| 3582 | #include <sys/types.h> |
| 3583 | #include <sys/stat.h> |
| 3584 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3585 | struct buf { int x; }; |
| 3586 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3587 | static char *e (p, i) |
| 3588 | char **p; |
| 3589 | int i; |
| 3590 | { |
| 3591 | return p[i]; |
| 3592 | } |
| 3593 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3594 | { |
| 3595 | char *s; |
| 3596 | va_list v; |
| 3597 | va_start (v,p); |
| 3598 | s = g (p, va_arg (v,int)); |
| 3599 | va_end (v); |
| 3600 | return s; |
| 3601 | } |
| 3602 | int test (int i, double x); |
| 3603 | struct s1 {int (*f) (int a);}; |
| 3604 | struct s2 {int (*f) (double a);}; |
| 3605 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3606 | int argc; |
| 3607 | char **argv; |
| 3608 | #ifdef F77_DUMMY_MAIN |
| 3609 | # ifdef __cplusplus |
| 3610 | extern "C" |
| 3611 | # endif |
| 3612 | int F77_DUMMY_MAIN() { return 1; } |
| 3613 | #endif |
| 3614 | int |
| 3615 | main () |
| 3616 | { |
| 3617 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3618 | ; |
| 3619 | return 0; |
| 3620 | } |
| 3621 | _ACEOF |
| 3622 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3623 | # breaks some systems' header files. |
| 3624 | # AIX -qlanglvl=ansi |
| 3625 | # Ultrix and OSF/1 -std1 |
| 3626 | # HP-UX 10.20 and later -Ae |
| 3627 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3628 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3629 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3630 | do |
| 3631 | CC="$ac_save_CC $ac_arg" |
| 3632 | rm -f conftest.$ac_objext |
| 3633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3634 | (eval $ac_compile) 2>&5 |
| 3635 | ac_status=$? |
| 3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3637 | (exit $ac_status); } && |
| 3638 | { ac_try='test -s conftest.$ac_objext' |
| 3639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3640 | (eval $ac_try) 2>&5 |
| 3641 | ac_status=$? |
| 3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3643 | (exit $ac_status); }; }; then |
| 3644 | ac_cv_prog_cc_stdc=$ac_arg |
| 3645 | break |
| 3646 | else |
| 3647 | echo "$as_me: failed program was:" >&5 |
| 3648 | cat conftest.$ac_ext >&5 |
| 3649 | fi |
| 3650 | rm -f conftest.$ac_objext |
| 3651 | done |
| 3652 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3653 | CC=$ac_save_CC |
| 3654 | |
| 3655 | fi |
| 3656 | |
| 3657 | case "x$ac_cv_prog_cc_stdc" in |
| 3658 | x|xno) |
| 3659 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3660 | echo "${ECHO_T}none needed" >&6 ;; |
| 3661 | *) |
| 3662 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3663 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3664 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3665 | esac |
| 3666 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3667 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 3668 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 3669 | if test "${ac_cv_c_const+set}" = set; then |
| 3670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3671 | else |
| 3672 | cat >conftest.$ac_ext <<_ACEOF |
| 3673 | #line $LINENO "configure" |
| 3674 | #include "confdefs.h" |
| 3675 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3676 | #ifdef F77_DUMMY_MAIN |
| 3677 | # ifdef __cplusplus |
| 3678 | extern "C" |
| 3679 | # endif |
| 3680 | int F77_DUMMY_MAIN() { return 1; } |
| 3681 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3682 | int |
| 3683 | main () |
| 3684 | { |
| 3685 | /* FIXME: Include the comments suggested by Paul. */ |
| 3686 | #ifndef __cplusplus |
| 3687 | /* Ultrix mips cc rejects this. */ |
| 3688 | typedef int charset[2]; |
| 3689 | const charset x; |
| 3690 | /* SunOS 4.1.1 cc rejects this. */ |
| 3691 | char const *const *ccp; |
| 3692 | char **p; |
| 3693 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 3694 | struct point {int x, y;}; |
| 3695 | static struct point const zero = {0,0}; |
| 3696 | /* AIX XL C 1.02.0.0 rejects this. |
| 3697 | It does not let you subtract one const X* pointer from another in |
| 3698 | an arm of an if-expression whose if-part is not a constant |
| 3699 | expression */ |
| 3700 | const char *g = "string"; |
| 3701 | ccp = &g + (g ? g-g : 0); |
| 3702 | /* HPUX 7.0 cc rejects these. */ |
| 3703 | ++ccp; |
| 3704 | p = (char**) ccp; |
| 3705 | ccp = (char const *const *) p; |
| 3706 | { /* SCO 3.2v4 cc rejects this. */ |
| 3707 | char *t; |
| 3708 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 3709 | |
| 3710 | *t++ = 0; |
| 3711 | } |
| 3712 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 3713 | int x[] = {25, 17}; |
| 3714 | const int *foo = &x[0]; |
| 3715 | ++foo; |
| 3716 | } |
| 3717 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 3718 | typedef const int *iptr; |
| 3719 | iptr p = 0; |
| 3720 | ++p; |
| 3721 | } |
| 3722 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 3723 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 3724 | struct s { int j; const int *ap[3]; }; |
| 3725 | struct s *b; b->j = 5; |
| 3726 | } |
| 3727 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 3728 | const int foo = 10; |
| 3729 | } |
| 3730 | #endif |
| 3731 | |
| 3732 | ; |
| 3733 | return 0; |
| 3734 | } |
| 3735 | _ACEOF |
| 3736 | rm -f conftest.$ac_objext |
| 3737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3738 | (eval $ac_compile) 2>&5 |
| 3739 | ac_status=$? |
| 3740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3741 | (exit $ac_status); } && |
| 3742 | { ac_try='test -s conftest.$ac_objext' |
| 3743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3744 | (eval $ac_try) 2>&5 |
| 3745 | ac_status=$? |
| 3746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3747 | (exit $ac_status); }; }; then |
| 3748 | ac_cv_c_const=yes |
| 3749 | else |
| 3750 | echo "$as_me: failed program was:" >&5 |
| 3751 | cat conftest.$ac_ext >&5 |
| 3752 | ac_cv_c_const=no |
| 3753 | fi |
| 3754 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3755 | fi |
| 3756 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 3757 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 3758 | if test $ac_cv_c_const = no; then |
| 3759 | |
| 3760 | cat >>confdefs.h <<\_ACEOF |
| 3761 | #define const |
| 3762 | _ACEOF |
| 3763 | |
| 3764 | fi |
| 3765 | |
| 3766 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 3767 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 3768 | if test "${ac_cv_type_signal+set}" = set; then |
| 3769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3770 | else |
| 3771 | cat >conftest.$ac_ext <<_ACEOF |
| 3772 | #line $LINENO "configure" |
| 3773 | #include "confdefs.h" |
| 3774 | #include <sys/types.h> |
| 3775 | #include <signal.h> |
| 3776 | #ifdef signal |
| 3777 | # undef signal |
| 3778 | #endif |
| 3779 | #ifdef __cplusplus |
| 3780 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 3781 | #else |
| 3782 | void (*signal ()) (); |
| 3783 | #endif |
| 3784 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3785 | #ifdef F77_DUMMY_MAIN |
| 3786 | # ifdef __cplusplus |
| 3787 | extern "C" |
| 3788 | # endif |
| 3789 | int F77_DUMMY_MAIN() { return 1; } |
| 3790 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3791 | int |
| 3792 | main () |
| 3793 | { |
| 3794 | int i; |
| 3795 | ; |
| 3796 | return 0; |
| 3797 | } |
| 3798 | _ACEOF |
| 3799 | rm -f conftest.$ac_objext |
| 3800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3801 | (eval $ac_compile) 2>&5 |
| 3802 | ac_status=$? |
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3804 | (exit $ac_status); } && |
| 3805 | { ac_try='test -s conftest.$ac_objext' |
| 3806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3807 | (eval $ac_try) 2>&5 |
| 3808 | ac_status=$? |
| 3809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3810 | (exit $ac_status); }; }; then |
| 3811 | ac_cv_type_signal=void |
| 3812 | else |
| 3813 | echo "$as_me: failed program was:" >&5 |
| 3814 | cat conftest.$ac_ext >&5 |
| 3815 | ac_cv_type_signal=int |
| 3816 | fi |
| 3817 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3818 | fi |
| 3819 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 3820 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 3821 | |
| 3822 | cat >>confdefs.h <<_ACEOF |
| 3823 | #define RETSIGTYPE $ac_cv_type_signal |
| 3824 | _ACEOF |
| 3825 | |
| 3826 | |
| 3827 | |
| 3828 | case "$host" in |
| 3829 | *-sunos5.6* | *-solaris2.6*) |
| 3830 | opsys=sol2-6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3831 | |
| 3832 | cat >>confdefs.h <<\_ACEOF |
| 3833 | #define SUNOS_5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3834 | _ACEOF |
| 3835 | |
| 3836 | |
| 3837 | echo "$as_me:$LINENO: checking for main in -lxnet" >&5 |
| 3838 | echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6 |
| 3839 | if test "${ac_cv_lib_xnet_main+set}" = set; then |
| 3840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3841 | else |
| 3842 | ac_check_lib_save_LIBS=$LIBS |
| 3843 | LIBS="-lxnet $LIBS" |
| 3844 | cat >conftest.$ac_ext <<_ACEOF |
| 3845 | #line $LINENO "configure" |
| 3846 | #include "confdefs.h" |
| 3847 | |
| 3848 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3849 | #ifdef F77_DUMMY_MAIN |
| 3850 | # ifdef __cplusplus |
| 3851 | extern "C" |
| 3852 | # endif |
| 3853 | int F77_DUMMY_MAIN() { return 1; } |
| 3854 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3855 | int |
| 3856 | main () |
| 3857 | { |
| 3858 | main (); |
| 3859 | ; |
| 3860 | return 0; |
| 3861 | } |
| 3862 | _ACEOF |
| 3863 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3865 | (eval $ac_link) 2>&5 |
| 3866 | ac_status=$? |
| 3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3868 | (exit $ac_status); } && |
| 3869 | { ac_try='test -s conftest$ac_exeext' |
| 3870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3871 | (eval $ac_try) 2>&5 |
| 3872 | ac_status=$? |
| 3873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3874 | (exit $ac_status); }; }; then |
| 3875 | ac_cv_lib_xnet_main=yes |
| 3876 | else |
| 3877 | echo "$as_me: failed program was:" >&5 |
| 3878 | cat conftest.$ac_ext >&5 |
| 3879 | ac_cv_lib_xnet_main=no |
| 3880 | fi |
| 3881 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3882 | LIBS=$ac_check_lib_save_LIBS |
| 3883 | fi |
| 3884 | echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5 |
| 3885 | echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6 |
| 3886 | if test $ac_cv_lib_xnet_main = yes; then |
| 3887 | cat >>confdefs.h <<_ACEOF |
| 3888 | #define HAVE_LIBXNET 1 |
| 3889 | _ACEOF |
| 3890 | |
| 3891 | LIBS="-lxnet $LIBS" |
| 3892 | |
| 3893 | fi |
| 3894 | |
| 3895 | CURSES=-lcurses |
| 3896 | ;; |
| 3897 | *-sunos5* | *-solaris2*) |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3898 | |
| 3899 | cat >>confdefs.h <<\_ACEOF |
| 3900 | #define SUNOS_5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3901 | _ACEOF |
| 3902 | |
| 3903 | |
| 3904 | echo "$as_me:$LINENO: checking for main in -lsocket" >&5 |
| 3905 | echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 |
| 3906 | if test "${ac_cv_lib_socket_main+set}" = set; then |
| 3907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3908 | else |
| 3909 | ac_check_lib_save_LIBS=$LIBS |
| 3910 | LIBS="-lsocket $LIBS" |
| 3911 | cat >conftest.$ac_ext <<_ACEOF |
| 3912 | #line $LINENO "configure" |
| 3913 | #include "confdefs.h" |
| 3914 | |
| 3915 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3916 | #ifdef F77_DUMMY_MAIN |
| 3917 | # ifdef __cplusplus |
| 3918 | extern "C" |
| 3919 | # endif |
| 3920 | int F77_DUMMY_MAIN() { return 1; } |
| 3921 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3922 | int |
| 3923 | main () |
| 3924 | { |
| 3925 | main (); |
| 3926 | ; |
| 3927 | return 0; |
| 3928 | } |
| 3929 | _ACEOF |
| 3930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3932 | (eval $ac_link) 2>&5 |
| 3933 | ac_status=$? |
| 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3935 | (exit $ac_status); } && |
| 3936 | { ac_try='test -s conftest$ac_exeext' |
| 3937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3938 | (eval $ac_try) 2>&5 |
| 3939 | ac_status=$? |
| 3940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3941 | (exit $ac_status); }; }; then |
| 3942 | ac_cv_lib_socket_main=yes |
| 3943 | else |
| 3944 | echo "$as_me: failed program was:" >&5 |
| 3945 | cat conftest.$ac_ext >&5 |
| 3946 | ac_cv_lib_socket_main=no |
| 3947 | fi |
| 3948 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3949 | LIBS=$ac_check_lib_save_LIBS |
| 3950 | fi |
| 3951 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5 |
| 3952 | echo "${ECHO_T}$ac_cv_lib_socket_main" >&6 |
| 3953 | if test $ac_cv_lib_socket_main = yes; then |
| 3954 | cat >>confdefs.h <<_ACEOF |
| 3955 | #define HAVE_LIBSOCKET 1 |
| 3956 | _ACEOF |
| 3957 | |
| 3958 | LIBS="-lsocket $LIBS" |
| 3959 | |
| 3960 | fi |
| 3961 | |
| 3962 | |
| 3963 | echo "$as_me:$LINENO: checking for main in -lnsl" >&5 |
| 3964 | echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 |
| 3965 | if test "${ac_cv_lib_nsl_main+set}" = set; then |
| 3966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3967 | else |
| 3968 | ac_check_lib_save_LIBS=$LIBS |
| 3969 | LIBS="-lnsl $LIBS" |
| 3970 | cat >conftest.$ac_ext <<_ACEOF |
| 3971 | #line $LINENO "configure" |
| 3972 | #include "confdefs.h" |
| 3973 | |
| 3974 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3975 | #ifdef F77_DUMMY_MAIN |
| 3976 | # ifdef __cplusplus |
| 3977 | extern "C" |
| 3978 | # endif |
| 3979 | int F77_DUMMY_MAIN() { return 1; } |
| 3980 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3981 | int |
| 3982 | main () |
| 3983 | { |
| 3984 | main (); |
| 3985 | ; |
| 3986 | return 0; |
| 3987 | } |
| 3988 | _ACEOF |
| 3989 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3991 | (eval $ac_link) 2>&5 |
| 3992 | ac_status=$? |
| 3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3994 | (exit $ac_status); } && |
| 3995 | { ac_try='test -s conftest$ac_exeext' |
| 3996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3997 | (eval $ac_try) 2>&5 |
| 3998 | ac_status=$? |
| 3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4000 | (exit $ac_status); }; }; then |
| 4001 | ac_cv_lib_nsl_main=yes |
| 4002 | else |
| 4003 | echo "$as_me: failed program was:" >&5 |
| 4004 | cat conftest.$ac_ext >&5 |
| 4005 | ac_cv_lib_nsl_main=no |
| 4006 | fi |
| 4007 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4008 | LIBS=$ac_check_lib_save_LIBS |
| 4009 | fi |
| 4010 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5 |
| 4011 | echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6 |
| 4012 | if test $ac_cv_lib_nsl_main = yes; then |
| 4013 | cat >>confdefs.h <<_ACEOF |
| 4014 | #define HAVE_LIBNSL 1 |
| 4015 | _ACEOF |
| 4016 | |
| 4017 | LIBS="-lnsl $LIBS" |
| 4018 | |
| 4019 | fi |
| 4020 | |
| 4021 | CURSES=-lcurses |
| 4022 | ;; |
| 4023 | *-linux-*) |
| 4024 | opsys=gnu-linux |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4025 | |
| 4026 | cat >>confdefs.h <<\_ACEOF |
| 4027 | #define GNU_LINUX |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4028 | _ACEOF |
| 4029 | |
| 4030 | ;; |
| 4031 | *-nec-sysv4*) |
| 4032 | |
| 4033 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4034 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 4035 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4037 | else |
| 4038 | ac_check_lib_save_LIBS=$LIBS |
| 4039 | LIBS="-lnsl $LIBS" |
| 4040 | cat >conftest.$ac_ext <<_ACEOF |
| 4041 | #line $LINENO "configure" |
| 4042 | #include "confdefs.h" |
| 4043 | |
| 4044 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4045 | #ifdef __cplusplus |
| 4046 | extern "C" |
| 4047 | #endif |
| 4048 | /* We use char because int might match the return type of a gcc2 |
| 4049 | builtin and then its argument prototype would still apply. */ |
| 4050 | char gethostbyname (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4051 | #ifdef F77_DUMMY_MAIN |
| 4052 | # ifdef __cplusplus |
| 4053 | extern "C" |
| 4054 | # endif |
| 4055 | int F77_DUMMY_MAIN() { return 1; } |
| 4056 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4057 | int |
| 4058 | main () |
| 4059 | { |
| 4060 | gethostbyname (); |
| 4061 | ; |
| 4062 | return 0; |
| 4063 | } |
| 4064 | _ACEOF |
| 4065 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4067 | (eval $ac_link) 2>&5 |
| 4068 | ac_status=$? |
| 4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4070 | (exit $ac_status); } && |
| 4071 | { ac_try='test -s conftest$ac_exeext' |
| 4072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4073 | (eval $ac_try) 2>&5 |
| 4074 | ac_status=$? |
| 4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4076 | (exit $ac_status); }; }; then |
| 4077 | ac_cv_lib_nsl_gethostbyname=yes |
| 4078 | else |
| 4079 | echo "$as_me: failed program was:" >&5 |
| 4080 | cat conftest.$ac_ext >&5 |
| 4081 | ac_cv_lib_nsl_gethostbyname=no |
| 4082 | fi |
| 4083 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4084 | LIBS=$ac_check_lib_save_LIBS |
| 4085 | fi |
| 4086 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 4087 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 4088 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 4089 | cat >>confdefs.h <<_ACEOF |
| 4090 | #define HAVE_LIBNSL 1 |
| 4091 | _ACEOF |
| 4092 | |
| 4093 | LIBS="-lnsl $LIBS" |
| 4094 | |
| 4095 | fi |
| 4096 | |
| 4097 | |
| 4098 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 4099 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 4100 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 4101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4102 | else |
| 4103 | ac_check_lib_save_LIBS=$LIBS |
| 4104 | LIBS="-lsocket $LIBS" |
| 4105 | cat >conftest.$ac_ext <<_ACEOF |
| 4106 | #line $LINENO "configure" |
| 4107 | #include "confdefs.h" |
| 4108 | |
| 4109 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4110 | #ifdef __cplusplus |
| 4111 | extern "C" |
| 4112 | #endif |
| 4113 | /* We use char because int might match the return type of a gcc2 |
| 4114 | builtin and then its argument prototype would still apply. */ |
| 4115 | char socket (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4116 | #ifdef F77_DUMMY_MAIN |
| 4117 | # ifdef __cplusplus |
| 4118 | extern "C" |
| 4119 | # endif |
| 4120 | int F77_DUMMY_MAIN() { return 1; } |
| 4121 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4122 | int |
| 4123 | main () |
| 4124 | { |
| 4125 | socket (); |
| 4126 | ; |
| 4127 | return 0; |
| 4128 | } |
| 4129 | _ACEOF |
| 4130 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4132 | (eval $ac_link) 2>&5 |
| 4133 | ac_status=$? |
| 4134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4135 | (exit $ac_status); } && |
| 4136 | { ac_try='test -s conftest$ac_exeext' |
| 4137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4138 | (eval $ac_try) 2>&5 |
| 4139 | ac_status=$? |
| 4140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4141 | (exit $ac_status); }; }; then |
| 4142 | ac_cv_lib_socket_socket=yes |
| 4143 | else |
| 4144 | echo "$as_me: failed program was:" >&5 |
| 4145 | cat conftest.$ac_ext >&5 |
| 4146 | ac_cv_lib_socket_socket=no |
| 4147 | fi |
| 4148 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4149 | LIBS=$ac_check_lib_save_LIBS |
| 4150 | fi |
| 4151 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 4152 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 4153 | if test $ac_cv_lib_socket_socket = yes; then |
| 4154 | cat >>confdefs.h <<_ACEOF |
| 4155 | #define HAVE_LIBSOCKET 1 |
| 4156 | _ACEOF |
| 4157 | |
| 4158 | LIBS="-lsocket $LIBS" |
| 4159 | |
| 4160 | fi |
| 4161 | |
| 4162 | ;; |
| 4163 | *-freebsd3.2) |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4164 | |
| 4165 | cat >>confdefs.h <<\_ACEOF |
| 4166 | #define FREEBSD_32 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4167 | _ACEOF |
| 4168 | |
| 4169 | ;; |
| 4170 | *-openbsd*) |
| 4171 | opsys=openbsd |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4172 | |
| 4173 | cat >>confdefs.h <<\_ACEOF |
| 4174 | #define OPEN_BSD |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4175 | _ACEOF |
| 4176 | |
| 4177 | ;; |
| 4178 | *-bsdi*) |
| 4179 | opsys=bsdi |
| 4180 | OTHER_METHOD="mtu_kvm.o" |
| 4181 | |
| 4182 | echo "$as_me:$LINENO: checking for main in -lkvm" >&5 |
| 4183 | echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6 |
| 4184 | if test "${ac_cv_lib_kvm_main+set}" = set; then |
| 4185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4186 | else |
| 4187 | ac_check_lib_save_LIBS=$LIBS |
| 4188 | LIBS="-lkvm $LIBS" |
| 4189 | cat >conftest.$ac_ext <<_ACEOF |
| 4190 | #line $LINENO "configure" |
| 4191 | #include "confdefs.h" |
| 4192 | |
| 4193 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4194 | #ifdef F77_DUMMY_MAIN |
| 4195 | # ifdef __cplusplus |
| 4196 | extern "C" |
| 4197 | # endif |
| 4198 | int F77_DUMMY_MAIN() { return 1; } |
| 4199 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4200 | int |
| 4201 | main () |
| 4202 | { |
| 4203 | main (); |
| 4204 | ; |
| 4205 | return 0; |
| 4206 | } |
| 4207 | _ACEOF |
| 4208 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4210 | (eval $ac_link) 2>&5 |
| 4211 | ac_status=$? |
| 4212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4213 | (exit $ac_status); } && |
| 4214 | { ac_try='test -s conftest$ac_exeext' |
| 4215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4216 | (eval $ac_try) 2>&5 |
| 4217 | ac_status=$? |
| 4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4219 | (exit $ac_status); }; }; then |
| 4220 | ac_cv_lib_kvm_main=yes |
| 4221 | else |
| 4222 | echo "$as_me: failed program was:" >&5 |
| 4223 | cat conftest.$ac_ext >&5 |
| 4224 | ac_cv_lib_kvm_main=no |
| 4225 | fi |
| 4226 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4227 | LIBS=$ac_check_lib_save_LIBS |
| 4228 | fi |
| 4229 | echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5 |
| 4230 | echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6 |
| 4231 | if test $ac_cv_lib_kvm_main = yes; then |
| 4232 | cat >>confdefs.h <<_ACEOF |
| 4233 | #define HAVE_LIBKVM 1 |
| 4234 | _ACEOF |
| 4235 | |
| 4236 | LIBS="-lkvm $LIBS" |
| 4237 | |
| 4238 | fi |
| 4239 | |
| 4240 | ;; |
| 4241 | esac |
| 4242 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4243 | case "${enable_vtysh}" in |
| 4244 | "yes") VTYSH="vtysh"; |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4245 | |
| 4246 | cat >>confdefs.h <<\_ACEOF |
| 4247 | #define VTYSH |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4248 | _ACEOF |
| 4249 | |
| 4250 | |
| 4251 | echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5 |
| 4252 | echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6 |
| 4253 | if test "${ac_cv_lib_tinfo_tputs+set}" = set; then |
| 4254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4255 | else |
| 4256 | ac_check_lib_save_LIBS=$LIBS |
| 4257 | LIBS="-ltinfo $LIBS" |
| 4258 | cat >conftest.$ac_ext <<_ACEOF |
| 4259 | #line $LINENO "configure" |
| 4260 | #include "confdefs.h" |
| 4261 | |
| 4262 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4263 | #ifdef __cplusplus |
| 4264 | extern "C" |
| 4265 | #endif |
| 4266 | /* We use char because int might match the return type of a gcc2 |
| 4267 | builtin and then its argument prototype would still apply. */ |
| 4268 | char tputs (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4269 | #ifdef F77_DUMMY_MAIN |
| 4270 | # ifdef __cplusplus |
| 4271 | extern "C" |
| 4272 | # endif |
| 4273 | int F77_DUMMY_MAIN() { return 1; } |
| 4274 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4275 | int |
| 4276 | main () |
| 4277 | { |
| 4278 | tputs (); |
| 4279 | ; |
| 4280 | return 0; |
| 4281 | } |
| 4282 | _ACEOF |
| 4283 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4285 | (eval $ac_link) 2>&5 |
| 4286 | ac_status=$? |
| 4287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4288 | (exit $ac_status); } && |
| 4289 | { ac_try='test -s conftest$ac_exeext' |
| 4290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4291 | (eval $ac_try) 2>&5 |
| 4292 | ac_status=$? |
| 4293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4294 | (exit $ac_status); }; }; then |
| 4295 | ac_cv_lib_tinfo_tputs=yes |
| 4296 | else |
| 4297 | echo "$as_me: failed program was:" >&5 |
| 4298 | cat conftest.$ac_ext >&5 |
| 4299 | ac_cv_lib_tinfo_tputs=no |
| 4300 | fi |
| 4301 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4302 | LIBS=$ac_check_lib_save_LIBS |
| 4303 | fi |
| 4304 | echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5 |
| 4305 | echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6 |
| 4306 | if test $ac_cv_lib_tinfo_tputs = yes; then |
| 4307 | cat >>confdefs.h <<_ACEOF |
| 4308 | #define HAVE_LIBTINFO 1 |
| 4309 | _ACEOF |
| 4310 | |
| 4311 | LIBS="-ltinfo $LIBS" |
| 4312 | |
| 4313 | else |
| 4314 | |
| 4315 | echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5 |
| 4316 | echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6 |
| 4317 | if test "${ac_cv_lib_ncurses_tputs+set}" = set; then |
| 4318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4319 | else |
| 4320 | ac_check_lib_save_LIBS=$LIBS |
| 4321 | LIBS="-lncurses $LIBS" |
| 4322 | cat >conftest.$ac_ext <<_ACEOF |
| 4323 | #line $LINENO "configure" |
| 4324 | #include "confdefs.h" |
| 4325 | |
| 4326 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4327 | #ifdef __cplusplus |
| 4328 | extern "C" |
| 4329 | #endif |
| 4330 | /* We use char because int might match the return type of a gcc2 |
| 4331 | builtin and then its argument prototype would still apply. */ |
| 4332 | char tputs (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4333 | #ifdef F77_DUMMY_MAIN |
| 4334 | # ifdef __cplusplus |
| 4335 | extern "C" |
| 4336 | # endif |
| 4337 | int F77_DUMMY_MAIN() { return 1; } |
| 4338 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4339 | int |
| 4340 | main () |
| 4341 | { |
| 4342 | tputs (); |
| 4343 | ; |
| 4344 | return 0; |
| 4345 | } |
| 4346 | _ACEOF |
| 4347 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4349 | (eval $ac_link) 2>&5 |
| 4350 | ac_status=$? |
| 4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4352 | (exit $ac_status); } && |
| 4353 | { ac_try='test -s conftest$ac_exeext' |
| 4354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4355 | (eval $ac_try) 2>&5 |
| 4356 | ac_status=$? |
| 4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4358 | (exit $ac_status); }; }; then |
| 4359 | ac_cv_lib_ncurses_tputs=yes |
| 4360 | else |
| 4361 | echo "$as_me: failed program was:" >&5 |
| 4362 | cat conftest.$ac_ext >&5 |
| 4363 | ac_cv_lib_ncurses_tputs=no |
| 4364 | fi |
| 4365 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4366 | LIBS=$ac_check_lib_save_LIBS |
| 4367 | fi |
| 4368 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5 |
| 4369 | echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6 |
| 4370 | if test $ac_cv_lib_ncurses_tputs = yes; then |
| 4371 | cat >>confdefs.h <<_ACEOF |
| 4372 | #define HAVE_LIBNCURSES 1 |
| 4373 | _ACEOF |
| 4374 | |
| 4375 | LIBS="-lncurses $LIBS" |
| 4376 | |
| 4377 | fi |
| 4378 | |
| 4379 | fi |
| 4380 | |
| 4381 | |
| 4382 | echo "$as_me:$LINENO: checking for main in -lreadline" >&5 |
| 4383 | echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 |
| 4384 | if test "${ac_cv_lib_readline_main+set}" = set; then |
| 4385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4386 | else |
| 4387 | ac_check_lib_save_LIBS=$LIBS |
| 4388 | LIBS="-lreadline $LIBS" |
| 4389 | cat >conftest.$ac_ext <<_ACEOF |
| 4390 | #line $LINENO "configure" |
| 4391 | #include "confdefs.h" |
| 4392 | |
| 4393 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4394 | #ifdef F77_DUMMY_MAIN |
| 4395 | # ifdef __cplusplus |
| 4396 | extern "C" |
| 4397 | # endif |
| 4398 | int F77_DUMMY_MAIN() { return 1; } |
| 4399 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4400 | int |
| 4401 | main () |
| 4402 | { |
| 4403 | main (); |
| 4404 | ; |
| 4405 | return 0; |
| 4406 | } |
| 4407 | _ACEOF |
| 4408 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4410 | (eval $ac_link) 2>&5 |
| 4411 | ac_status=$? |
| 4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4413 | (exit $ac_status); } && |
| 4414 | { ac_try='test -s conftest$ac_exeext' |
| 4415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4416 | (eval $ac_try) 2>&5 |
| 4417 | ac_status=$? |
| 4418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4419 | (exit $ac_status); }; }; then |
| 4420 | ac_cv_lib_readline_main=yes |
| 4421 | else |
| 4422 | echo "$as_me: failed program was:" >&5 |
| 4423 | cat conftest.$ac_ext >&5 |
| 4424 | ac_cv_lib_readline_main=no |
| 4425 | fi |
| 4426 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4427 | LIBS=$ac_check_lib_save_LIBS |
| 4428 | fi |
| 4429 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5 |
| 4430 | echo "${ECHO_T}$ac_cv_lib_readline_main" >&6 |
| 4431 | if test $ac_cv_lib_readline_main = yes; then |
| 4432 | cat >>confdefs.h <<_ACEOF |
| 4433 | #define HAVE_LIBREADLINE 1 |
| 4434 | _ACEOF |
| 4435 | |
| 4436 | LIBS="-lreadline $LIBS" |
| 4437 | |
| 4438 | fi |
| 4439 | |
| 4440 | if test $ac_cv_lib_readline_main = no; then |
| 4441 | { { echo "$as_me:$LINENO: error: vtysh needs libreadline but was not found on your system." >&5 |
| 4442 | echo "$as_me: error: vtysh needs libreadline but was not found on your system." >&2;} |
| 4443 | { (exit 1); exit 1; }; } |
| 4444 | fi |
| 4445 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4446 | echo "$as_me:$LINENO: checking for readline/history.h" >&5 |
| 4447 | echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6 |
| 4448 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4450 | fi |
| 4451 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 |
| 4452 | echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6 |
| 4453 | else |
| 4454 | # Is the header compilable? |
| 4455 | echo "$as_me:$LINENO: checking readline/history.h usability" >&5 |
| 4456 | echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6 |
| 4457 | cat >conftest.$ac_ext <<_ACEOF |
| 4458 | #line $LINENO "configure" |
| 4459 | #include "confdefs.h" |
| 4460 | $ac_includes_default |
| 4461 | #include <readline/history.h> |
| 4462 | _ACEOF |
| 4463 | rm -f conftest.$ac_objext |
| 4464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4465 | (eval $ac_compile) 2>&5 |
| 4466 | ac_status=$? |
| 4467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4468 | (exit $ac_status); } && |
| 4469 | { ac_try='test -s conftest.$ac_objext' |
| 4470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4471 | (eval $ac_try) 2>&5 |
| 4472 | ac_status=$? |
| 4473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4474 | (exit $ac_status); }; }; then |
| 4475 | ac_header_compiler=yes |
| 4476 | else |
| 4477 | echo "$as_me: failed program was:" >&5 |
| 4478 | cat conftest.$ac_ext >&5 |
| 4479 | ac_header_compiler=no |
| 4480 | fi |
| 4481 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4482 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4483 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4484 | |
| 4485 | # Is the header present? |
| 4486 | echo "$as_me:$LINENO: checking readline/history.h presence" >&5 |
| 4487 | echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6 |
| 4488 | cat >conftest.$ac_ext <<_ACEOF |
| 4489 | #line $LINENO "configure" |
| 4490 | #include "confdefs.h" |
| 4491 | #include <readline/history.h> |
| 4492 | _ACEOF |
| 4493 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4494 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4495 | ac_status=$? |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4496 | egrep -v '^ *\+' conftest.er1 >conftest.err |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4497 | rm -f conftest.er1 |
| 4498 | cat conftest.err >&5 |
| 4499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4500 | (exit $ac_status); } >/dev/null; then |
| 4501 | if test -s conftest.err; then |
| 4502 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4503 | else |
| 4504 | ac_cpp_err= |
| 4505 | fi |
| 4506 | else |
| 4507 | ac_cpp_err=yes |
| 4508 | fi |
| 4509 | if test -z "$ac_cpp_err"; then |
| 4510 | ac_header_preproc=yes |
| 4511 | else |
| 4512 | echo "$as_me: failed program was:" >&5 |
| 4513 | cat conftest.$ac_ext >&5 |
| 4514 | ac_header_preproc=no |
| 4515 | fi |
| 4516 | rm -f conftest.err conftest.$ac_ext |
| 4517 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4518 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4519 | |
| 4520 | # So? What about this header? |
| 4521 | case $ac_header_compiler:$ac_header_preproc in |
| 4522 | yes:no ) |
| 4523 | { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4524 | echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4525 | { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5 |
| 4526 | echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};; |
| 4527 | no:yes ) |
| 4528 | { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5 |
| 4529 | echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;} |
| 4530 | { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5 |
| 4531 | echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;} |
| 4532 | { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5 |
| 4533 | echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};; |
| 4534 | esac |
| 4535 | echo "$as_me:$LINENO: checking for readline/history.h" >&5 |
| 4536 | echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6 |
| 4537 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4539 | else |
| 4540 | ac_cv_header_readline_history_h=$ac_header_preproc |
| 4541 | fi |
| 4542 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5 |
| 4543 | echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6 |
| 4544 | |
| 4545 | fi |
| 4546 | |
| 4547 | |
| 4548 | if test $ac_cv_header_readline_history_h = no;then |
| 4549 | { { echo "$as_me:$LINENO: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5 |
| 4550 | echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;} |
| 4551 | { (exit 1); exit 1; }; } |
| 4552 | fi |
| 4553 | ;; |
| 4554 | "no" ) VTYSH="";; |
| 4555 | * ) ;; |
| 4556 | esac |
| 4557 | |
| 4558 | if test "$with_libpam" = "yes"; then |
| 4559 | echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5 |
| 4560 | echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6 |
| 4561 | if test "${ac_cv_lib_pam_pam_start+set}" = set; then |
| 4562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4563 | else |
| 4564 | ac_check_lib_save_LIBS=$LIBS |
| 4565 | LIBS="-lpam $LIBS" |
| 4566 | cat >conftest.$ac_ext <<_ACEOF |
| 4567 | #line $LINENO "configure" |
| 4568 | #include "confdefs.h" |
| 4569 | |
| 4570 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4571 | #ifdef __cplusplus |
| 4572 | extern "C" |
| 4573 | #endif |
| 4574 | /* We use char because int might match the return type of a gcc2 |
| 4575 | builtin and then its argument prototype would still apply. */ |
| 4576 | char pam_start (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4577 | #ifdef F77_DUMMY_MAIN |
| 4578 | # ifdef __cplusplus |
| 4579 | extern "C" |
| 4580 | # endif |
| 4581 | int F77_DUMMY_MAIN() { return 1; } |
| 4582 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4583 | int |
| 4584 | main () |
| 4585 | { |
| 4586 | pam_start (); |
| 4587 | ; |
| 4588 | return 0; |
| 4589 | } |
| 4590 | _ACEOF |
| 4591 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4593 | (eval $ac_link) 2>&5 |
| 4594 | ac_status=$? |
| 4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4596 | (exit $ac_status); } && |
| 4597 | { ac_try='test -s conftest$ac_exeext' |
| 4598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4599 | (eval $ac_try) 2>&5 |
| 4600 | ac_status=$? |
| 4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4602 | (exit $ac_status); }; }; then |
| 4603 | ac_cv_lib_pam_pam_start=yes |
| 4604 | else |
| 4605 | echo "$as_me: failed program was:" >&5 |
| 4606 | cat conftest.$ac_ext >&5 |
| 4607 | ac_cv_lib_pam_pam_start=no |
| 4608 | fi |
| 4609 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4610 | LIBS=$ac_check_lib_save_LIBS |
| 4611 | fi |
| 4612 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5 |
| 4613 | echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6 |
| 4614 | if test $ac_cv_lib_pam_pam_start = yes; then |
| 4615 | echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5 |
| 4616 | echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6 |
| 4617 | if test "${ac_cv_lib_pam_misc_conv+set}" = set; then |
| 4618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4619 | else |
| 4620 | ac_check_lib_save_LIBS=$LIBS |
| 4621 | LIBS="-lpam $LIBS" |
| 4622 | cat >conftest.$ac_ext <<_ACEOF |
| 4623 | #line $LINENO "configure" |
| 4624 | #include "confdefs.h" |
| 4625 | |
| 4626 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4627 | #ifdef __cplusplus |
| 4628 | extern "C" |
| 4629 | #endif |
| 4630 | /* We use char because int might match the return type of a gcc2 |
| 4631 | builtin and then its argument prototype would still apply. */ |
| 4632 | char misc_conv (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4633 | #ifdef F77_DUMMY_MAIN |
| 4634 | # ifdef __cplusplus |
| 4635 | extern "C" |
| 4636 | # endif |
| 4637 | int F77_DUMMY_MAIN() { return 1; } |
| 4638 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4639 | int |
| 4640 | main () |
| 4641 | { |
| 4642 | misc_conv (); |
| 4643 | ; |
| 4644 | return 0; |
| 4645 | } |
| 4646 | _ACEOF |
| 4647 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4649 | (eval $ac_link) 2>&5 |
| 4650 | ac_status=$? |
| 4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4652 | (exit $ac_status); } && |
| 4653 | { ac_try='test -s conftest$ac_exeext' |
| 4654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4655 | (eval $ac_try) 2>&5 |
| 4656 | ac_status=$? |
| 4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4658 | (exit $ac_status); }; }; then |
| 4659 | ac_cv_lib_pam_misc_conv=yes |
| 4660 | else |
| 4661 | echo "$as_me: failed program was:" >&5 |
| 4662 | cat conftest.$ac_ext >&5 |
| 4663 | ac_cv_lib_pam_misc_conv=no |
| 4664 | fi |
| 4665 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4666 | LIBS=$ac_check_lib_save_LIBS |
| 4667 | fi |
| 4668 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5 |
| 4669 | echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6 |
| 4670 | if test $ac_cv_lib_pam_misc_conv = yes; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4671 | |
| 4672 | cat >>confdefs.h <<\_ACEOF |
| 4673 | #define USE_PAM |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4674 | _ACEOF |
| 4675 | |
| 4676 | LIBPAM="-lpam" |
| 4677 | else |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4678 | |
| 4679 | cat >>confdefs.h <<\_ACEOF |
| 4680 | #define USE_PAM |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4681 | _ACEOF |
| 4682 | |
| 4683 | LIBPAM="-lpam -lpam_misc" |
| 4684 | |
| 4685 | fi |
| 4686 | |
| 4687 | |
| 4688 | else |
| 4689 | echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5 |
| 4690 | echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6 |
| 4691 | if test "${ac_cv_lib_pam_pam_end+set}" = set; then |
| 4692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4693 | else |
| 4694 | ac_check_lib_save_LIBS=$LIBS |
| 4695 | LIBS="-lpam -ldl $LIBS" |
| 4696 | cat >conftest.$ac_ext <<_ACEOF |
| 4697 | #line $LINENO "configure" |
| 4698 | #include "confdefs.h" |
| 4699 | |
| 4700 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4701 | #ifdef __cplusplus |
| 4702 | extern "C" |
| 4703 | #endif |
| 4704 | /* We use char because int might match the return type of a gcc2 |
| 4705 | builtin and then its argument prototype would still apply. */ |
| 4706 | char pam_end (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4707 | #ifdef F77_DUMMY_MAIN |
| 4708 | # ifdef __cplusplus |
| 4709 | extern "C" |
| 4710 | # endif |
| 4711 | int F77_DUMMY_MAIN() { return 1; } |
| 4712 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4713 | int |
| 4714 | main () |
| 4715 | { |
| 4716 | pam_end (); |
| 4717 | ; |
| 4718 | return 0; |
| 4719 | } |
| 4720 | _ACEOF |
| 4721 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4723 | (eval $ac_link) 2>&5 |
| 4724 | ac_status=$? |
| 4725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4726 | (exit $ac_status); } && |
| 4727 | { ac_try='test -s conftest$ac_exeext' |
| 4728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4729 | (eval $ac_try) 2>&5 |
| 4730 | ac_status=$? |
| 4731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4732 | (exit $ac_status); }; }; then |
| 4733 | ac_cv_lib_pam_pam_end=yes |
| 4734 | else |
| 4735 | echo "$as_me: failed program was:" >&5 |
| 4736 | cat conftest.$ac_ext >&5 |
| 4737 | ac_cv_lib_pam_pam_end=no |
| 4738 | fi |
| 4739 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4740 | LIBS=$ac_check_lib_save_LIBS |
| 4741 | fi |
| 4742 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5 |
| 4743 | echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6 |
| 4744 | if test $ac_cv_lib_pam_pam_end = yes; then |
| 4745 | echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5 |
| 4746 | echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6 |
| 4747 | if test "${ac_cv_lib_pam_misc_conv+set}" = set; then |
| 4748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4749 | else |
| 4750 | ac_check_lib_save_LIBS=$LIBS |
| 4751 | LIBS="-lpam $LIBS" |
| 4752 | cat >conftest.$ac_ext <<_ACEOF |
| 4753 | #line $LINENO "configure" |
| 4754 | #include "confdefs.h" |
| 4755 | |
| 4756 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4757 | #ifdef __cplusplus |
| 4758 | extern "C" |
| 4759 | #endif |
| 4760 | /* We use char because int might match the return type of a gcc2 |
| 4761 | builtin and then its argument prototype would still apply. */ |
| 4762 | char misc_conv (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4763 | #ifdef F77_DUMMY_MAIN |
| 4764 | # ifdef __cplusplus |
| 4765 | extern "C" |
| 4766 | # endif |
| 4767 | int F77_DUMMY_MAIN() { return 1; } |
| 4768 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4769 | int |
| 4770 | main () |
| 4771 | { |
| 4772 | misc_conv (); |
| 4773 | ; |
| 4774 | return 0; |
| 4775 | } |
| 4776 | _ACEOF |
| 4777 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4779 | (eval $ac_link) 2>&5 |
| 4780 | ac_status=$? |
| 4781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4782 | (exit $ac_status); } && |
| 4783 | { ac_try='test -s conftest$ac_exeext' |
| 4784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4785 | (eval $ac_try) 2>&5 |
| 4786 | ac_status=$? |
| 4787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4788 | (exit $ac_status); }; }; then |
| 4789 | ac_cv_lib_pam_misc_conv=yes |
| 4790 | else |
| 4791 | echo "$as_me: failed program was:" >&5 |
| 4792 | cat conftest.$ac_ext >&5 |
| 4793 | ac_cv_lib_pam_misc_conv=no |
| 4794 | fi |
| 4795 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4796 | LIBS=$ac_check_lib_save_LIBS |
| 4797 | fi |
| 4798 | echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5 |
| 4799 | echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6 |
| 4800 | if test $ac_cv_lib_pam_misc_conv = yes; then |
| 4801 | cat >>confdefs.h <<\_ACEOF |
| 4802 | #define USE_PAM 1 |
| 4803 | _ACEOF |
| 4804 | |
| 4805 | LIBPAM="-lpam -ldl" |
| 4806 | else |
| 4807 | cat >>confdefs.h <<\_ACEOF |
| 4808 | #define USE_PAM 1 |
| 4809 | _ACEOF |
| 4810 | |
| 4811 | LIBPAM="-lpam -ldl -lpam_misc" |
| 4812 | |
| 4813 | fi |
| 4814 | |
| 4815 | |
| 4816 | else |
| 4817 | { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5 |
| 4818 | echo "$as_me: WARNING: *** pam support will not be built ***" >&2;} |
| 4819 | fi |
| 4820 | |
| 4821 | |
| 4822 | |
| 4823 | fi |
| 4824 | |
| 4825 | fi |
| 4826 | |
| 4827 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4828 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4829 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 4830 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4832 | else |
| 4833 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4834 | cat >conftest.$ac_ext <<_ACEOF |
| 4835 | #line $LINENO "configure" |
| 4836 | #include "confdefs.h" |
| 4837 | #include <sys/types.h> |
| 4838 | #include <sys/param.h> |
| 4839 | |
| 4840 | #ifdef F77_DUMMY_MAIN |
| 4841 | # ifdef __cplusplus |
| 4842 | extern "C" |
| 4843 | # endif |
| 4844 | int F77_DUMMY_MAIN() { return 1; } |
| 4845 | #endif |
| 4846 | int |
| 4847 | main () |
| 4848 | { |
| 4849 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4850 | bogus endian macros |
| 4851 | #endif |
| 4852 | |
| 4853 | ; |
| 4854 | return 0; |
| 4855 | } |
| 4856 | _ACEOF |
| 4857 | rm -f conftest.$ac_objext |
| 4858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4859 | (eval $ac_compile) 2>&5 |
| 4860 | ac_status=$? |
| 4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4862 | (exit $ac_status); } && |
| 4863 | { ac_try='test -s conftest.$ac_objext' |
| 4864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4865 | (eval $ac_try) 2>&5 |
| 4866 | ac_status=$? |
| 4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4868 | (exit $ac_status); }; }; then |
| 4869 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4870 | cat >conftest.$ac_ext <<_ACEOF |
| 4871 | #line $LINENO "configure" |
| 4872 | #include "confdefs.h" |
| 4873 | #include <sys/types.h> |
| 4874 | #include <sys/param.h> |
| 4875 | |
| 4876 | #ifdef F77_DUMMY_MAIN |
| 4877 | # ifdef __cplusplus |
| 4878 | extern "C" |
| 4879 | # endif |
| 4880 | int F77_DUMMY_MAIN() { return 1; } |
| 4881 | #endif |
| 4882 | int |
| 4883 | main () |
| 4884 | { |
| 4885 | #if BYTE_ORDER != BIG_ENDIAN |
| 4886 | not big endian |
| 4887 | #endif |
| 4888 | |
| 4889 | ; |
| 4890 | return 0; |
| 4891 | } |
| 4892 | _ACEOF |
| 4893 | rm -f conftest.$ac_objext |
| 4894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4895 | (eval $ac_compile) 2>&5 |
| 4896 | ac_status=$? |
| 4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4898 | (exit $ac_status); } && |
| 4899 | { ac_try='test -s conftest.$ac_objext' |
| 4900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4901 | (eval $ac_try) 2>&5 |
| 4902 | ac_status=$? |
| 4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4904 | (exit $ac_status); }; }; then |
| 4905 | ac_cv_c_bigendian=yes |
| 4906 | else |
| 4907 | echo "$as_me: failed program was:" >&5 |
| 4908 | cat conftest.$ac_ext >&5 |
| 4909 | ac_cv_c_bigendian=no |
| 4910 | fi |
| 4911 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4912 | else |
| 4913 | echo "$as_me: failed program was:" >&5 |
| 4914 | cat conftest.$ac_ext >&5 |
| 4915 | # It does not; compile a test program. |
| 4916 | if test "$cross_compiling" = yes; then |
| 4917 | # try to guess the endianess by grep'ing values into an object file |
| 4918 | ac_cv_c_bigendian=unknown |
| 4919 | cat >conftest.$ac_ext <<_ACEOF |
| 4920 | #line $LINENO "configure" |
| 4921 | #include "confdefs.h" |
| 4922 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4923 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4924 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4925 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4926 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4927 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4928 | #ifdef F77_DUMMY_MAIN |
| 4929 | # ifdef __cplusplus |
| 4930 | extern "C" |
| 4931 | # endif |
| 4932 | int F77_DUMMY_MAIN() { return 1; } |
| 4933 | #endif |
| 4934 | int |
| 4935 | main () |
| 4936 | { |
| 4937 | _ascii (); _ebcdic (); |
| 4938 | ; |
| 4939 | return 0; |
| 4940 | } |
| 4941 | _ACEOF |
| 4942 | rm -f conftest.$ac_objext |
| 4943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4944 | (eval $ac_compile) 2>&5 |
| 4945 | ac_status=$? |
| 4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4947 | (exit $ac_status); } && |
| 4948 | { ac_try='test -s conftest.$ac_objext' |
| 4949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4950 | (eval $ac_try) 2>&5 |
| 4951 | ac_status=$? |
| 4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4953 | (exit $ac_status); }; }; then |
| 4954 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4955 | ac_cv_c_bigendian=yes |
| 4956 | fi |
| 4957 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4958 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4959 | ac_cv_c_bigendian=no |
| 4960 | else |
| 4961 | # finding both strings is unlikely to happen, but who knows? |
| 4962 | ac_cv_c_bigendian=unknown |
| 4963 | fi |
| 4964 | fi |
| 4965 | else |
| 4966 | echo "$as_me: failed program was:" >&5 |
| 4967 | cat conftest.$ac_ext >&5 |
| 4968 | fi |
| 4969 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4970 | else |
| 4971 | cat >conftest.$ac_ext <<_ACEOF |
| 4972 | #line $LINENO "configure" |
| 4973 | #include "confdefs.h" |
| 4974 | int |
| 4975 | main () |
| 4976 | { |
| 4977 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4978 | union |
| 4979 | { |
| 4980 | long l; |
| 4981 | char c[sizeof (long)]; |
| 4982 | } u; |
| 4983 | u.l = 1; |
| 4984 | exit (u.c[sizeof (long) - 1] == 1); |
| 4985 | } |
| 4986 | _ACEOF |
| 4987 | rm -f conftest$ac_exeext |
| 4988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4989 | (eval $ac_link) 2>&5 |
| 4990 | ac_status=$? |
| 4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4992 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4994 | (eval $ac_try) 2>&5 |
| 4995 | ac_status=$? |
| 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4997 | (exit $ac_status); }; }; then |
| 4998 | ac_cv_c_bigendian=no |
| 4999 | else |
| 5000 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5001 | echo "$as_me: failed program was:" >&5 |
| 5002 | cat conftest.$ac_ext >&5 |
| 5003 | ( exit $ac_status ) |
| 5004 | ac_cv_c_bigendian=yes |
| 5005 | fi |
| 5006 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5007 | fi |
| 5008 | fi |
| 5009 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5010 | fi |
| 5011 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 5012 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 5013 | case $ac_cv_c_bigendian in |
| 5014 | yes) |
| 5015 | |
| 5016 | cat >>confdefs.h <<\_ACEOF |
| 5017 | #define WORDS_BIGENDIAN 1 |
| 5018 | _ACEOF |
| 5019 | ;; |
| 5020 | no) |
| 5021 | ;; |
| 5022 | *) |
| 5023 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 5024 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 5025 | echo "$as_me: error: unknown endianess |
| 5026 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 5027 | { (exit 1); exit 1; }; } ;; |
| 5028 | esac |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5029 | |
| 5030 | |
| 5031 | |
| 5032 | |
| 5033 | |
| 5034 | |
| 5035 | |
| 5036 | |
| 5037 | |
| 5038 | |
| 5039 | |
| 5040 | |
| 5041 | |
| 5042 | |
| 5043 | |
| 5044 | for ac_func in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs |
| 5045 | do |
| 5046 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5047 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5048 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5049 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5051 | else |
| 5052 | cat >conftest.$ac_ext <<_ACEOF |
| 5053 | #line $LINENO "configure" |
| 5054 | #include "confdefs.h" |
| 5055 | /* System header to define __stub macros and hopefully few prototypes, |
| 5056 | which can conflict with char $ac_func (); below. */ |
| 5057 | #include <assert.h> |
| 5058 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5059 | #ifdef __cplusplus |
| 5060 | extern "C" |
| 5061 | #endif |
| 5062 | /* We use char because int might match the return type of a gcc2 |
| 5063 | builtin and then its argument prototype would still apply. */ |
| 5064 | char $ac_func (); |
| 5065 | char (*f) (); |
| 5066 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5067 | #ifdef F77_DUMMY_MAIN |
| 5068 | # ifdef __cplusplus |
| 5069 | extern "C" |
| 5070 | # endif |
| 5071 | int F77_DUMMY_MAIN() { return 1; } |
| 5072 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5073 | int |
| 5074 | main () |
| 5075 | { |
| 5076 | /* The GNU C library defines this for functions which it implements |
| 5077 | to always fail with ENOSYS. Some functions are actually named |
| 5078 | something starting with __ and the normal name is an alias. */ |
| 5079 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5080 | choke me |
| 5081 | #else |
| 5082 | f = $ac_func; |
| 5083 | #endif |
| 5084 | |
| 5085 | ; |
| 5086 | return 0; |
| 5087 | } |
| 5088 | _ACEOF |
| 5089 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5091 | (eval $ac_link) 2>&5 |
| 5092 | ac_status=$? |
| 5093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5094 | (exit $ac_status); } && |
| 5095 | { ac_try='test -s conftest$ac_exeext' |
| 5096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5097 | (eval $ac_try) 2>&5 |
| 5098 | ac_status=$? |
| 5099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5100 | (exit $ac_status); }; }; then |
| 5101 | eval "$as_ac_var=yes" |
| 5102 | else |
| 5103 | echo "$as_me: failed program was:" >&5 |
| 5104 | cat conftest.$ac_ext >&5 |
| 5105 | eval "$as_ac_var=no" |
| 5106 | fi |
| 5107 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5108 | fi |
| 5109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5110 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5111 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5112 | cat >>confdefs.h <<_ACEOF |
| 5113 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5114 | _ACEOF |
| 5115 | |
| 5116 | fi |
| 5117 | done |
| 5118 | |
| 5119 | |
| 5120 | for ac_func in setproctitle |
| 5121 | do |
| 5122 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5123 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5124 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5125 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5127 | else |
| 5128 | cat >conftest.$ac_ext <<_ACEOF |
| 5129 | #line $LINENO "configure" |
| 5130 | #include "confdefs.h" |
| 5131 | /* System header to define __stub macros and hopefully few prototypes, |
| 5132 | which can conflict with char $ac_func (); below. */ |
| 5133 | #include <assert.h> |
| 5134 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5135 | #ifdef __cplusplus |
| 5136 | extern "C" |
| 5137 | #endif |
| 5138 | /* We use char because int might match the return type of a gcc2 |
| 5139 | builtin and then its argument prototype would still apply. */ |
| 5140 | char $ac_func (); |
| 5141 | char (*f) (); |
| 5142 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5143 | #ifdef F77_DUMMY_MAIN |
| 5144 | # ifdef __cplusplus |
| 5145 | extern "C" |
| 5146 | # endif |
| 5147 | int F77_DUMMY_MAIN() { return 1; } |
| 5148 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5149 | int |
| 5150 | main () |
| 5151 | { |
| 5152 | /* The GNU C library defines this for functions which it implements |
| 5153 | to always fail with ENOSYS. Some functions are actually named |
| 5154 | something starting with __ and the normal name is an alias. */ |
| 5155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5156 | choke me |
| 5157 | #else |
| 5158 | f = $ac_func; |
| 5159 | #endif |
| 5160 | |
| 5161 | ; |
| 5162 | return 0; |
| 5163 | } |
| 5164 | _ACEOF |
| 5165 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5167 | (eval $ac_link) 2>&5 |
| 5168 | ac_status=$? |
| 5169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5170 | (exit $ac_status); } && |
| 5171 | { ac_try='test -s conftest$ac_exeext' |
| 5172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5173 | (eval $ac_try) 2>&5 |
| 5174 | ac_status=$? |
| 5175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5176 | (exit $ac_status); }; }; then |
| 5177 | eval "$as_ac_var=yes" |
| 5178 | else |
| 5179 | echo "$as_me: failed program was:" >&5 |
| 5180 | cat conftest.$ac_ext >&5 |
| 5181 | eval "$as_ac_var=no" |
| 5182 | fi |
| 5183 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5184 | fi |
| 5185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5186 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5187 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5188 | cat >>confdefs.h <<_ACEOF |
| 5189 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5190 | _ACEOF |
| 5191 | |
| 5192 | else |
| 5193 | echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5 |
| 5194 | echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6 |
| 5195 | if test "${ac_cv_lib_util_setproctitle+set}" = set; then |
| 5196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5197 | else |
| 5198 | ac_check_lib_save_LIBS=$LIBS |
| 5199 | LIBS="-lutil $LIBS" |
| 5200 | cat >conftest.$ac_ext <<_ACEOF |
| 5201 | #line $LINENO "configure" |
| 5202 | #include "confdefs.h" |
| 5203 | |
| 5204 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5205 | #ifdef __cplusplus |
| 5206 | extern "C" |
| 5207 | #endif |
| 5208 | /* We use char because int might match the return type of a gcc2 |
| 5209 | builtin and then its argument prototype would still apply. */ |
| 5210 | char setproctitle (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5211 | #ifdef F77_DUMMY_MAIN |
| 5212 | # ifdef __cplusplus |
| 5213 | extern "C" |
| 5214 | # endif |
| 5215 | int F77_DUMMY_MAIN() { return 1; } |
| 5216 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5217 | int |
| 5218 | main () |
| 5219 | { |
| 5220 | setproctitle (); |
| 5221 | ; |
| 5222 | return 0; |
| 5223 | } |
| 5224 | _ACEOF |
| 5225 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5227 | (eval $ac_link) 2>&5 |
| 5228 | ac_status=$? |
| 5229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5230 | (exit $ac_status); } && |
| 5231 | { ac_try='test -s conftest$ac_exeext' |
| 5232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5233 | (eval $ac_try) 2>&5 |
| 5234 | ac_status=$? |
| 5235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5236 | (exit $ac_status); }; }; then |
| 5237 | ac_cv_lib_util_setproctitle=yes |
| 5238 | else |
| 5239 | echo "$as_me: failed program was:" >&5 |
| 5240 | cat conftest.$ac_ext >&5 |
| 5241 | ac_cv_lib_util_setproctitle=no |
| 5242 | fi |
| 5243 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5244 | LIBS=$ac_check_lib_save_LIBS |
| 5245 | fi |
| 5246 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5 |
| 5247 | echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6 |
| 5248 | if test $ac_cv_lib_util_setproctitle = yes; then |
| 5249 | LIBS="$LIBS -lutil"; cat >>confdefs.h <<\_ACEOF |
| 5250 | #define HAVE_SETPROCTITLE 1 |
| 5251 | _ACEOF |
| 5252 | |
| 5253 | fi |
| 5254 | |
| 5255 | fi |
| 5256 | done |
| 5257 | |
| 5258 | |
| 5259 | echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5 |
| 5260 | echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6 |
| 5261 | if test x"$opsys" = x"gnu-linux"; then |
| 5262 | if test "${enable_netlink}" = "yes";then |
| 5263 | echo "$as_me:$LINENO: result: netlink" >&5 |
| 5264 | echo "${ECHO_T}netlink" >&6 |
| 5265 | RT_METHOD=rt_netlink.o |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5266 | |
| 5267 | cat >>confdefs.h <<\_ACEOF |
| 5268 | #define HAVE_NETLINK |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5269 | _ACEOF |
| 5270 | |
| 5271 | netlink=yes |
| 5272 | elif test "${enable_netlink}" = "no"; then |
| 5273 | echo "$as_me:$LINENO: result: ioctl" >&5 |
| 5274 | echo "${ECHO_T}ioctl" >&6 |
| 5275 | RT_METHOD=rt_ioctl.o |
| 5276 | netlink=no |
| 5277 | else |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5278 | echo "$as_me:$LINENO: result: netlink" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5279 | echo "${ECHO_T}netlink" >&6 |
| 5280 | RT_METHOD=rt_netlink.o |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5281 | |
| 5282 | cat >>confdefs.h <<\_ACEOF |
| 5283 | #define HAVE_NETLINK |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5284 | _ACEOF |
| 5285 | |
| 5286 | netlink=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5287 | fi |
| 5288 | else |
| 5289 | if test "$opsys" = "sol2-6";then |
| 5290 | echo "$as_me:$LINENO: result: solaris" >&5 |
| 5291 | echo "${ECHO_T}solaris" >&6 |
| 5292 | KERNEL_METHOD="kernel_socket.o" |
| 5293 | RT_METHOD="rt_socket.o" |
| 5294 | else |
| 5295 | if test "$cross_compiling" = yes; then |
| 5296 | KERNEL_METHOD=kernel_socket.o |
| 5297 | RT_METHOD=rt_socket.o |
| 5298 | echo "$as_me:$LINENO: result: socket" >&5 |
| 5299 | echo "${ECHO_T}socket" >&6 |
| 5300 | else |
| 5301 | cat >conftest.$ac_ext <<_ACEOF |
| 5302 | #line $LINENO "configure" |
| 5303 | #include "confdefs.h" |
| 5304 | #include <errno.h> |
| 5305 | #include <sys/types.h> |
| 5306 | #include <sys/socket.h> |
| 5307 | |
| 5308 | main () |
| 5309 | { |
| 5310 | int ac_sock; |
| 5311 | |
| 5312 | ac_sock = socket (AF_ROUTE, SOCK_RAW, 0); |
| 5313 | if (ac_sock < 0 && errno == EINVAL) |
| 5314 | exit (1); |
| 5315 | exit (0); |
| 5316 | } |
| 5317 | _ACEOF |
| 5318 | rm -f conftest$ac_exeext |
| 5319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5320 | (eval $ac_link) 2>&5 |
| 5321 | ac_status=$? |
| 5322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5323 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5325 | (eval $ac_try) 2>&5 |
| 5326 | ac_status=$? |
| 5327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5328 | (exit $ac_status); }; }; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5329 | KERNEL_METHOD=kernel_socket.o |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5330 | RT_METHOD=rt_socket.o |
| 5331 | echo "$as_me:$LINENO: result: socket" >&5 |
| 5332 | echo "${ECHO_T}socket" >&6 |
| 5333 | else |
| 5334 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5335 | echo "$as_me: failed program was:" >&5 |
| 5336 | cat conftest.$ac_ext >&5 |
| 5337 | ( exit $ac_status ) |
| 5338 | RT_METHOD=rt_ioctl.o |
| 5339 | echo "$as_me:$LINENO: result: ioctl" >&5 |
| 5340 | echo "${ECHO_T}ioctl" >&6 |
| 5341 | fi |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5342 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5343 | fi |
| 5344 | fi |
| 5345 | fi |
| 5346 | |
| 5347 | |
| 5348 | |
| 5349 | |
| 5350 | echo "$as_me:$LINENO: checking route read method check" >&5 |
| 5351 | echo $ECHO_N "checking route read method check... $ECHO_C" >&6 |
| 5352 | if test "${zebra_rtread+set}" = set; then |
| 5353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5354 | else |
| 5355 | if test "$netlink" = yes; then |
| 5356 | RTREAD_METHOD="rtread_netlink.o" |
| 5357 | zebra_rtread="netlink" |
| 5358 | else |
| 5359 | for zebra_rtread in /proc/net/route /dev/ip /dev/null; |
| 5360 | do |
| 5361 | test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break |
| 5362 | done |
| 5363 | case $zebra_rtread in |
| 5364 | "/proc/net/route") RTREAD_METHOD="rtread_proc.o" |
| 5365 | zebra_rtread="proc";; |
| 5366 | "/dev/ip") RTREAD_METHOD="rtread_getmsg.o" |
| 5367 | zebra_rtread="getmsg";; |
| 5368 | *) RTREAD_METHOD="rtread_sysctl.o" |
| 5369 | zebra_rtread="sysctl";; |
| 5370 | esac |
| 5371 | fi |
| 5372 | fi |
| 5373 | echo "$as_me:$LINENO: result: $zebra_rtread" >&5 |
| 5374 | echo "${ECHO_T}$zebra_rtread" >&6 |
| 5375 | |
| 5376 | |
| 5377 | echo "$as_me:$LINENO: checking interface looking up method" >&5 |
| 5378 | echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6 |
| 5379 | if test "$netlink" = yes; then |
| 5380 | echo "$as_me:$LINENO: result: netlink" >&5 |
| 5381 | echo "${ECHO_T}netlink" >&6 |
| 5382 | IF_METHOD=if_netlink.o |
| 5383 | else |
| 5384 | if test "$opsys" = "sol2-6";then |
| 5385 | echo "$as_me:$LINENO: result: solaris" >&5 |
| 5386 | echo "${ECHO_T}solaris" >&6 |
| 5387 | IF_METHOD=if_ioctl.o |
| 5388 | elif test "$opsys" = "openbsd";then |
| 5389 | echo "$as_me:$LINENO: result: openbsd" >&5 |
| 5390 | echo "${ECHO_T}openbsd" >&6 |
| 5391 | IF_METHOD=if_ioctl.o |
| 5392 | elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then |
| 5393 | echo "$as_me:$LINENO: result: sysctl" >&5 |
| 5394 | echo "${ECHO_T}sysctl" >&6 |
| 5395 | IF_METHOD=if_sysctl.o |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5396 | |
| 5397 | cat >>confdefs.h <<\_ACEOF |
| 5398 | #define HAVE_NET_RT_IFLIST |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5399 | _ACEOF |
| 5400 | |
| 5401 | else |
| 5402 | echo "$as_me:$LINENO: result: ioctl" >&5 |
| 5403 | echo "${ECHO_T}ioctl" >&6 |
| 5404 | IF_METHOD=if_ioctl.o |
| 5405 | fi |
| 5406 | fi |
| 5407 | |
| 5408 | |
| 5409 | if test -r /proc/net/dev; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5410 | |
| 5411 | cat >>confdefs.h <<\_ACEOF |
| 5412 | #define HAVE_PROC_NET_DEV |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5413 | _ACEOF |
| 5414 | |
| 5415 | IF_PROC=if_proc.o |
| 5416 | fi |
| 5417 | |
| 5418 | if test -r /proc/net/if_inet6; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5419 | |
| 5420 | cat >>confdefs.h <<\_ACEOF |
| 5421 | #define HAVE_PROC_NET_IF_INET6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5422 | _ACEOF |
| 5423 | |
| 5424 | IF_PROC=if_proc.o |
| 5425 | fi |
| 5426 | |
| 5427 | |
| 5428 | echo "$as_me:$LINENO: checking ipforward method check" >&5 |
| 5429 | echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6 |
| 5430 | if test "${zebra_ipforward_path+set}" = set; then |
| 5431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5432 | else |
| 5433 | for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null; |
| 5434 | do |
| 5435 | test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break |
| 5436 | done |
| 5437 | case $zebra_ipforward_path in |
| 5438 | "/proc/net/snmp") IPFORWARD=ipforward_proc.o |
| 5439 | zebra_ipforward_path="proc";; |
| 5440 | "/dev/ip") |
| 5441 | case "$host" in |
| 5442 | *-nec-sysv4*) IPFORWARD=ipforward_ews.o |
| 5443 | zebra_ipforward_path="ews";; |
| 5444 | *) IPFORWARD=ipforward_solaris.o |
| 5445 | zebra_ipforward_path="solaris";; |
| 5446 | esac;; |
| 5447 | *) IPFORWARD=ipforward_sysctl.o |
| 5448 | zebra_ipforward_path="sysctl";; |
| 5449 | esac |
| 5450 | fi |
| 5451 | echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5 |
| 5452 | echo "${ECHO_T}$zebra_ipforward_path" >&6 |
| 5453 | |
| 5454 | |
| 5455 | |
| 5456 | for ac_func in getaddrinfo |
| 5457 | do |
| 5458 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5459 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5460 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5461 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5463 | else |
| 5464 | cat >conftest.$ac_ext <<_ACEOF |
| 5465 | #line $LINENO "configure" |
| 5466 | #include "confdefs.h" |
| 5467 | /* System header to define __stub macros and hopefully few prototypes, |
| 5468 | which can conflict with char $ac_func (); below. */ |
| 5469 | #include <assert.h> |
| 5470 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5471 | #ifdef __cplusplus |
| 5472 | extern "C" |
| 5473 | #endif |
| 5474 | /* We use char because int might match the return type of a gcc2 |
| 5475 | builtin and then its argument prototype would still apply. */ |
| 5476 | char $ac_func (); |
| 5477 | char (*f) (); |
| 5478 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5479 | #ifdef F77_DUMMY_MAIN |
| 5480 | # ifdef __cplusplus |
| 5481 | extern "C" |
| 5482 | # endif |
| 5483 | int F77_DUMMY_MAIN() { return 1; } |
| 5484 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5485 | int |
| 5486 | main () |
| 5487 | { |
| 5488 | /* The GNU C library defines this for functions which it implements |
| 5489 | to always fail with ENOSYS. Some functions are actually named |
| 5490 | something starting with __ and the normal name is an alias. */ |
| 5491 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5492 | choke me |
| 5493 | #else |
| 5494 | f = $ac_func; |
| 5495 | #endif |
| 5496 | |
| 5497 | ; |
| 5498 | return 0; |
| 5499 | } |
| 5500 | _ACEOF |
| 5501 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5503 | (eval $ac_link) 2>&5 |
| 5504 | ac_status=$? |
| 5505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5506 | (exit $ac_status); } && |
| 5507 | { ac_try='test -s conftest$ac_exeext' |
| 5508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5509 | (eval $ac_try) 2>&5 |
| 5510 | ac_status=$? |
| 5511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5512 | (exit $ac_status); }; }; then |
| 5513 | eval "$as_ac_var=yes" |
| 5514 | else |
| 5515 | echo "$as_me: failed program was:" >&5 |
| 5516 | cat conftest.$ac_ext >&5 |
| 5517 | eval "$as_ac_var=no" |
| 5518 | fi |
| 5519 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5520 | fi |
| 5521 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5522 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5523 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5524 | cat >>confdefs.h <<_ACEOF |
| 5525 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5526 | _ACEOF |
| 5527 | have_getaddrinfo=yes |
| 5528 | else |
| 5529 | have_getaddrinfo=no |
| 5530 | fi |
| 5531 | done |
| 5532 | |
| 5533 | |
| 5534 | echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5 |
| 5535 | echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6 |
| 5536 | if test "${enable_ipv6}" = "no"; then |
| 5537 | echo "$as_me:$LINENO: result: disabled" >&5 |
| 5538 | echo "${ECHO_T}disabled" >&6 |
| 5539 | else |
| 5540 | if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then |
| 5541 | zebra_cv_ipv6=yes |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5542 | |
| 5543 | cat >>confdefs.h <<\_ACEOF |
| 5544 | #define HAVE_IPV6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5545 | _ACEOF |
| 5546 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5547 | |
| 5548 | cat >>confdefs.h <<\_ACEOF |
| 5549 | #define INRIA_IPV6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5550 | _ACEOF |
| 5551 | |
| 5552 | RIPNGD="ripngd" |
| 5553 | OSPF6D="ospf6d" |
| 5554 | LIB_IPV6="" |
| 5555 | echo "$as_me:$LINENO: result: INRIA IPv6" >&5 |
| 5556 | echo "${ECHO_T}INRIA IPv6" >&6 |
| 5557 | fi |
| 5558 | if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then |
| 5559 | zebra_cv_ipv6=yes |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5560 | |
| 5561 | cat >>confdefs.h <<\_ACEOF |
| 5562 | #define HAVE_IPV6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5563 | _ACEOF |
| 5564 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5565 | |
| 5566 | cat >>confdefs.h <<\_ACEOF |
| 5567 | #define KAME |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5568 | _ACEOF |
| 5569 | |
| 5570 | RIPNGD="ripngd" |
| 5571 | OSPF6D="ospf6d" |
| 5572 | if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then |
| 5573 | LIB_IPV6="-L/usr/local/v6/lib -linet6" |
| 5574 | fi |
| 5575 | echo "$as_me:$LINENO: result: KAME" >&5 |
| 5576 | echo "${ECHO_T}KAME" >&6 |
| 5577 | fi |
| 5578 | if grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then |
| 5579 | zebra_cv_ipv6=yes |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5580 | |
| 5581 | cat >>confdefs.h <<\_ACEOF |
| 5582 | #define HAVE_IPV6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5583 | _ACEOF |
| 5584 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5585 | |
| 5586 | cat >>confdefs.h <<\_ACEOF |
| 5587 | #define NRL |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5588 | _ACEOF |
| 5589 | |
| 5590 | RIPNGD="ripngd" |
| 5591 | OSPF6D="ospf6d" |
| 5592 | if test x"$opsys" = x"bsdi";then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5593 | |
| 5594 | cat >>confdefs.h <<\_ACEOF |
| 5595 | #define BSDI_NRL |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5596 | _ACEOF |
| 5597 | |
| 5598 | echo "$as_me:$LINENO: result: BSDI_NRL" >&5 |
| 5599 | echo "${ECHO_T}BSDI_NRL" >&6 |
| 5600 | else |
| 5601 | echo "$as_me:$LINENO: result: NRL" >&5 |
| 5602 | echo "${ECHO_T}NRL" >&6 |
| 5603 | fi |
| 5604 | fi |
| 5605 | |
| 5606 | if test "${enable_ipv6}" = "yes"; then |
| 5607 | cat >conftest.$ac_ext <<_ACEOF |
| 5608 | #line $LINENO "configure" |
| 5609 | #include "confdefs.h" |
| 5610 | |
| 5611 | #include <linux/version.h> |
| 5612 | /* 2.1.128 or later */ |
| 5613 | #if LINUX_VERSION_CODE >= 0x020180 |
| 5614 | yes |
| 5615 | #endif |
| 5616 | _ACEOF |
| 5617 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5618 | egrep "yes" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5619 | zebra_cv_ipv6=yes; zebra_cv_linux_ipv6=yes;echo "$as_me:$LINENO: result: Linux IPv6" >&5 |
| 5620 | echo "${ECHO_T}Linux IPv6" >&6 |
| 5621 | fi |
| 5622 | rm -f conftest* |
| 5623 | |
| 5624 | else |
| 5625 | if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route" |
| 5626 | then |
| 5627 | zebra_cv_ipv6=yes |
| 5628 | zebra_cv_linux_ipv6=yes |
| 5629 | echo "$as_me:$LINENO: result: Linux IPv6" >&5 |
| 5630 | echo "${ECHO_T}Linux IPv6" >&6 |
| 5631 | fi |
| 5632 | fi |
| 5633 | |
| 5634 | if test "$zebra_cv_linux_ipv6" = "yes";then |
| 5635 | cat >>confdefs.h <<\_ACEOF |
| 5636 | #define HAVE_IPV6 1 |
| 5637 | _ACEOF |
| 5638 | |
| 5639 | echo "$as_me:$LINENO: checking for GNU libc 2.1" >&5 |
| 5640 | echo $ECHO_N "checking for GNU libc 2.1... $ECHO_C" >&6 |
| 5641 | cat >conftest.$ac_ext <<_ACEOF |
| 5642 | #line $LINENO "configure" |
| 5643 | #include "confdefs.h" |
| 5644 | |
| 5645 | #include <features.h> |
| 5646 | #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 |
| 5647 | yes |
| 5648 | #endif |
| 5649 | _ACEOF |
| 5650 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5651 | egrep "yes" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5652 | glibc=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 5653 | echo "${ECHO_T}yes" >&6 |
| 5654 | else |
| 5655 | echo "$as_me:$LINENO: result: no" >&5 |
| 5656 | echo "${ECHO_T}no" >&6 |
| 5657 | fi |
| 5658 | rm -f conftest* |
| 5659 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5660 | |
| 5661 | cat >>confdefs.h <<\_ACEOF |
| 5662 | #define LINUX_IPV6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5663 | _ACEOF |
| 5664 | |
| 5665 | RIPNGD="ripngd" |
| 5666 | OSPF6D="ospf6d" |
| 5667 | if test "$glibc" != "yes"; then |
| 5668 | INCLUDES="-I/usr/inet6/include" |
| 5669 | if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then |
| 5670 | LIB_IPV6="-L/usr/inet6/lib -linet6" |
| 5671 | fi |
| 5672 | fi |
| 5673 | fi |
| 5674 | |
| 5675 | LIBS="$LIB_IPV6 $LIBS" |
| 5676 | |
| 5677 | |
| 5678 | if test x"$RIPNGD" = x""; then |
| 5679 | echo "$as_me:$LINENO: result: IPv4 only" >&5 |
| 5680 | echo "${ECHO_T}IPv4 only" >&6 |
| 5681 | fi |
| 5682 | fi |
| 5683 | |
| 5684 | if test "${enable_zebra}" = "no";then |
| 5685 | ZEBRA="" |
| 5686 | else |
| 5687 | ZEBRA="zebra" |
| 5688 | fi |
| 5689 | |
| 5690 | if test "${enable_bgpd}" = "no";then |
| 5691 | BGPD="" |
| 5692 | else |
| 5693 | BGPD="bgpd" |
| 5694 | fi |
| 5695 | |
| 5696 | if test "${enable_ripd}" = "no";then |
| 5697 | RIPD="" |
| 5698 | else |
| 5699 | RIPD="ripd" |
| 5700 | fi |
| 5701 | |
| 5702 | if test "${enable_ospfd}" = "no";then |
| 5703 | OSPFD="" |
| 5704 | else |
| 5705 | OSPFD="ospfd" |
| 5706 | fi |
| 5707 | |
| 5708 | case "${enable_ripngd}" in |
| 5709 | "yes") RIPNGD="ripngd";; |
| 5710 | "no" ) RIPNGD="";; |
| 5711 | * ) ;; |
| 5712 | esac |
| 5713 | |
| 5714 | case "${enable_ospf6d}" in |
| 5715 | "yes") OSPF6D="ospf6d";; |
| 5716 | "no" ) OSPF6D="";; |
| 5717 | * ) ;; |
| 5718 | esac |
| 5719 | |
| 5720 | if test "${enable_bgp_announce}" = "no";then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5721 | |
| 5722 | cat >>confdefs.h <<\_ACEOF |
| 5723 | #define DISABLE_BGP_ANNOUNCE |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5724 | _ACEOF |
| 5725 | |
| 5726 | fi |
| 5727 | |
| 5728 | |
| 5729 | |
| 5730 | |
| 5731 | |
| 5732 | |
| 5733 | |
| 5734 | |
| 5735 | |
| 5736 | |
| 5737 | echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5 |
| 5738 | echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6 |
| 5739 | if test "${ac_cv_lib_c_inet_ntop+set}" = set; then |
| 5740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5741 | else |
| 5742 | ac_check_lib_save_LIBS=$LIBS |
| 5743 | LIBS="-lc $LIBS" |
| 5744 | cat >conftest.$ac_ext <<_ACEOF |
| 5745 | #line $LINENO "configure" |
| 5746 | #include "confdefs.h" |
| 5747 | |
| 5748 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5749 | #ifdef __cplusplus |
| 5750 | extern "C" |
| 5751 | #endif |
| 5752 | /* We use char because int might match the return type of a gcc2 |
| 5753 | builtin and then its argument prototype would still apply. */ |
| 5754 | char inet_ntop (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5755 | #ifdef F77_DUMMY_MAIN |
| 5756 | # ifdef __cplusplus |
| 5757 | extern "C" |
| 5758 | # endif |
| 5759 | int F77_DUMMY_MAIN() { return 1; } |
| 5760 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5761 | int |
| 5762 | main () |
| 5763 | { |
| 5764 | inet_ntop (); |
| 5765 | ; |
| 5766 | return 0; |
| 5767 | } |
| 5768 | _ACEOF |
| 5769 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5771 | (eval $ac_link) 2>&5 |
| 5772 | ac_status=$? |
| 5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5774 | (exit $ac_status); } && |
| 5775 | { ac_try='test -s conftest$ac_exeext' |
| 5776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5777 | (eval $ac_try) 2>&5 |
| 5778 | ac_status=$? |
| 5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5780 | (exit $ac_status); }; }; then |
| 5781 | ac_cv_lib_c_inet_ntop=yes |
| 5782 | else |
| 5783 | echo "$as_me: failed program was:" >&5 |
| 5784 | cat conftest.$ac_ext >&5 |
| 5785 | ac_cv_lib_c_inet_ntop=no |
| 5786 | fi |
| 5787 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5788 | LIBS=$ac_check_lib_save_LIBS |
| 5789 | fi |
| 5790 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5 |
| 5791 | echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6 |
| 5792 | if test $ac_cv_lib_c_inet_ntop = yes; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5793 | |
| 5794 | cat >>confdefs.h <<\_ACEOF |
| 5795 | #define HAVE_INET_NTOP |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5796 | _ACEOF |
| 5797 | |
| 5798 | fi |
| 5799 | |
| 5800 | echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5 |
| 5801 | echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6 |
| 5802 | if test "${ac_cv_lib_c_inet_pton+set}" = set; then |
| 5803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5804 | else |
| 5805 | ac_check_lib_save_LIBS=$LIBS |
| 5806 | LIBS="-lc $LIBS" |
| 5807 | cat >conftest.$ac_ext <<_ACEOF |
| 5808 | #line $LINENO "configure" |
| 5809 | #include "confdefs.h" |
| 5810 | |
| 5811 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5812 | #ifdef __cplusplus |
| 5813 | extern "C" |
| 5814 | #endif |
| 5815 | /* We use char because int might match the return type of a gcc2 |
| 5816 | builtin and then its argument prototype would still apply. */ |
| 5817 | char inet_pton (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5818 | #ifdef F77_DUMMY_MAIN |
| 5819 | # ifdef __cplusplus |
| 5820 | extern "C" |
| 5821 | # endif |
| 5822 | int F77_DUMMY_MAIN() { return 1; } |
| 5823 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5824 | int |
| 5825 | main () |
| 5826 | { |
| 5827 | inet_pton (); |
| 5828 | ; |
| 5829 | return 0; |
| 5830 | } |
| 5831 | _ACEOF |
| 5832 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5834 | (eval $ac_link) 2>&5 |
| 5835 | ac_status=$? |
| 5836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5837 | (exit $ac_status); } && |
| 5838 | { ac_try='test -s conftest$ac_exeext' |
| 5839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5840 | (eval $ac_try) 2>&5 |
| 5841 | ac_status=$? |
| 5842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5843 | (exit $ac_status); }; }; then |
| 5844 | ac_cv_lib_c_inet_pton=yes |
| 5845 | else |
| 5846 | echo "$as_me: failed program was:" >&5 |
| 5847 | cat conftest.$ac_ext >&5 |
| 5848 | ac_cv_lib_c_inet_pton=no |
| 5849 | fi |
| 5850 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5851 | LIBS=$ac_check_lib_save_LIBS |
| 5852 | fi |
| 5853 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5 |
| 5854 | echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6 |
| 5855 | if test $ac_cv_lib_c_inet_pton = yes; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5856 | |
| 5857 | cat >>confdefs.h <<\_ACEOF |
| 5858 | #define HAVE_INET_PTON |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5859 | _ACEOF |
| 5860 | |
| 5861 | fi |
| 5862 | |
| 5863 | |
| 5864 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 |
| 5865 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 |
| 5866 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then |
| 5867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5868 | else |
| 5869 | ac_check_lib_save_LIBS=$LIBS |
| 5870 | LIBS="-lcrypt $LIBS" |
| 5871 | cat >conftest.$ac_ext <<_ACEOF |
| 5872 | #line $LINENO "configure" |
| 5873 | #include "confdefs.h" |
| 5874 | |
| 5875 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5876 | #ifdef __cplusplus |
| 5877 | extern "C" |
| 5878 | #endif |
| 5879 | /* We use char because int might match the return type of a gcc2 |
| 5880 | builtin and then its argument prototype would still apply. */ |
| 5881 | char crypt (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5882 | #ifdef F77_DUMMY_MAIN |
| 5883 | # ifdef __cplusplus |
| 5884 | extern "C" |
| 5885 | # endif |
| 5886 | int F77_DUMMY_MAIN() { return 1; } |
| 5887 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5888 | int |
| 5889 | main () |
| 5890 | { |
| 5891 | crypt (); |
| 5892 | ; |
| 5893 | return 0; |
| 5894 | } |
| 5895 | _ACEOF |
| 5896 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5898 | (eval $ac_link) 2>&5 |
| 5899 | ac_status=$? |
| 5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5901 | (exit $ac_status); } && |
| 5902 | { ac_try='test -s conftest$ac_exeext' |
| 5903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5904 | (eval $ac_try) 2>&5 |
| 5905 | ac_status=$? |
| 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5907 | (exit $ac_status); }; }; then |
| 5908 | ac_cv_lib_crypt_crypt=yes |
| 5909 | else |
| 5910 | echo "$as_me: failed program was:" >&5 |
| 5911 | cat conftest.$ac_ext >&5 |
| 5912 | ac_cv_lib_crypt_crypt=no |
| 5913 | fi |
| 5914 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5915 | LIBS=$ac_check_lib_save_LIBS |
| 5916 | fi |
| 5917 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 |
| 5918 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 |
| 5919 | if test $ac_cv_lib_crypt_crypt = yes; then |
| 5920 | cat >>confdefs.h <<_ACEOF |
| 5921 | #define HAVE_LIBCRYPT 1 |
| 5922 | _ACEOF |
| 5923 | |
| 5924 | LIBS="-lcrypt $LIBS" |
| 5925 | |
| 5926 | fi |
| 5927 | |
| 5928 | |
| 5929 | echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5 |
| 5930 | echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6 |
| 5931 | if test "${ac_cv_lib_resolv_res_init+set}" = set; then |
| 5932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5933 | else |
| 5934 | ac_check_lib_save_LIBS=$LIBS |
| 5935 | LIBS="-lresolv $LIBS" |
| 5936 | cat >conftest.$ac_ext <<_ACEOF |
| 5937 | #line $LINENO "configure" |
| 5938 | #include "confdefs.h" |
| 5939 | |
| 5940 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5941 | #ifdef __cplusplus |
| 5942 | extern "C" |
| 5943 | #endif |
| 5944 | /* We use char because int might match the return type of a gcc2 |
| 5945 | builtin and then its argument prototype would still apply. */ |
| 5946 | char res_init (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5947 | #ifdef F77_DUMMY_MAIN |
| 5948 | # ifdef __cplusplus |
| 5949 | extern "C" |
| 5950 | # endif |
| 5951 | int F77_DUMMY_MAIN() { return 1; } |
| 5952 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5953 | int |
| 5954 | main () |
| 5955 | { |
| 5956 | res_init (); |
| 5957 | ; |
| 5958 | return 0; |
| 5959 | } |
| 5960 | _ACEOF |
| 5961 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5963 | (eval $ac_link) 2>&5 |
| 5964 | ac_status=$? |
| 5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5966 | (exit $ac_status); } && |
| 5967 | { ac_try='test -s conftest$ac_exeext' |
| 5968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5969 | (eval $ac_try) 2>&5 |
| 5970 | ac_status=$? |
| 5971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5972 | (exit $ac_status); }; }; then |
| 5973 | ac_cv_lib_resolv_res_init=yes |
| 5974 | else |
| 5975 | echo "$as_me: failed program was:" >&5 |
| 5976 | cat conftest.$ac_ext >&5 |
| 5977 | ac_cv_lib_resolv_res_init=no |
| 5978 | fi |
| 5979 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5980 | LIBS=$ac_check_lib_save_LIBS |
| 5981 | fi |
| 5982 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5 |
| 5983 | echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6 |
| 5984 | if test $ac_cv_lib_resolv_res_init = yes; then |
| 5985 | cat >>confdefs.h <<_ACEOF |
| 5986 | #define HAVE_LIBRESOLV 1 |
| 5987 | _ACEOF |
| 5988 | |
| 5989 | LIBS="-lresolv $LIBS" |
| 5990 | |
| 5991 | fi |
| 5992 | |
| 5993 | |
| 5994 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
| 5995 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
| 5996 | if test "${ac_cv_lib_m_main+set}" = set; then |
| 5997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5998 | else |
| 5999 | ac_check_lib_save_LIBS=$LIBS |
| 6000 | LIBS="-lm $LIBS" |
| 6001 | cat >conftest.$ac_ext <<_ACEOF |
| 6002 | #line $LINENO "configure" |
| 6003 | #include "confdefs.h" |
| 6004 | |
| 6005 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6006 | #ifdef F77_DUMMY_MAIN |
| 6007 | # ifdef __cplusplus |
| 6008 | extern "C" |
| 6009 | # endif |
| 6010 | int F77_DUMMY_MAIN() { return 1; } |
| 6011 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6012 | int |
| 6013 | main () |
| 6014 | { |
| 6015 | main (); |
| 6016 | ; |
| 6017 | return 0; |
| 6018 | } |
| 6019 | _ACEOF |
| 6020 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6022 | (eval $ac_link) 2>&5 |
| 6023 | ac_status=$? |
| 6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6025 | (exit $ac_status); } && |
| 6026 | { ac_try='test -s conftest$ac_exeext' |
| 6027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6028 | (eval $ac_try) 2>&5 |
| 6029 | ac_status=$? |
| 6030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6031 | (exit $ac_status); }; }; then |
| 6032 | ac_cv_lib_m_main=yes |
| 6033 | else |
| 6034 | echo "$as_me: failed program was:" >&5 |
| 6035 | cat conftest.$ac_ext >&5 |
| 6036 | ac_cv_lib_m_main=no |
| 6037 | fi |
| 6038 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6039 | LIBS=$ac_check_lib_save_LIBS |
| 6040 | fi |
| 6041 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
| 6042 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
| 6043 | if test $ac_cv_lib_m_main = yes; then |
| 6044 | cat >>confdefs.h <<_ACEOF |
| 6045 | #define HAVE_LIBM 1 |
| 6046 | _ACEOF |
| 6047 | |
| 6048 | LIBS="-lm $LIBS" |
| 6049 | |
| 6050 | fi |
| 6051 | |
| 6052 | |
| 6053 | echo "$as_me:$LINENO: checking for __inet_ntop" >&5 |
| 6054 | echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6 |
| 6055 | if test "${ac_cv_func___inet_ntop+set}" = set; then |
| 6056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6057 | else |
| 6058 | cat >conftest.$ac_ext <<_ACEOF |
| 6059 | #line $LINENO "configure" |
| 6060 | #include "confdefs.h" |
| 6061 | /* System header to define __stub macros and hopefully few prototypes, |
| 6062 | which can conflict with char __inet_ntop (); below. */ |
| 6063 | #include <assert.h> |
| 6064 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6065 | #ifdef __cplusplus |
| 6066 | extern "C" |
| 6067 | #endif |
| 6068 | /* We use char because int might match the return type of a gcc2 |
| 6069 | builtin and then its argument prototype would still apply. */ |
| 6070 | char __inet_ntop (); |
| 6071 | char (*f) (); |
| 6072 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6073 | #ifdef F77_DUMMY_MAIN |
| 6074 | # ifdef __cplusplus |
| 6075 | extern "C" |
| 6076 | # endif |
| 6077 | int F77_DUMMY_MAIN() { return 1; } |
| 6078 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6079 | int |
| 6080 | main () |
| 6081 | { |
| 6082 | /* The GNU C library defines this for functions which it implements |
| 6083 | to always fail with ENOSYS. Some functions are actually named |
| 6084 | something starting with __ and the normal name is an alias. */ |
| 6085 | #if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop) |
| 6086 | choke me |
| 6087 | #else |
| 6088 | f = __inet_ntop; |
| 6089 | #endif |
| 6090 | |
| 6091 | ; |
| 6092 | return 0; |
| 6093 | } |
| 6094 | _ACEOF |
| 6095 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6097 | (eval $ac_link) 2>&5 |
| 6098 | ac_status=$? |
| 6099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6100 | (exit $ac_status); } && |
| 6101 | { ac_try='test -s conftest$ac_exeext' |
| 6102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6103 | (eval $ac_try) 2>&5 |
| 6104 | ac_status=$? |
| 6105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6106 | (exit $ac_status); }; }; then |
| 6107 | ac_cv_func___inet_ntop=yes |
| 6108 | else |
| 6109 | echo "$as_me: failed program was:" >&5 |
| 6110 | cat conftest.$ac_ext >&5 |
| 6111 | ac_cv_func___inet_ntop=no |
| 6112 | fi |
| 6113 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6114 | fi |
| 6115 | echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5 |
| 6116 | echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6 |
| 6117 | if test $ac_cv_func___inet_ntop = yes; then |
| 6118 | cat >>confdefs.h <<\_ACEOF |
| 6119 | #define HAVE_INET_NTOP 1 |
| 6120 | _ACEOF |
| 6121 | |
| 6122 | fi |
| 6123 | |
| 6124 | echo "$as_me:$LINENO: checking for __inet_pton" >&5 |
| 6125 | echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6 |
| 6126 | if test "${ac_cv_func___inet_pton+set}" = set; then |
| 6127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6128 | else |
| 6129 | cat >conftest.$ac_ext <<_ACEOF |
| 6130 | #line $LINENO "configure" |
| 6131 | #include "confdefs.h" |
| 6132 | /* System header to define __stub macros and hopefully few prototypes, |
| 6133 | which can conflict with char __inet_pton (); below. */ |
| 6134 | #include <assert.h> |
| 6135 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6136 | #ifdef __cplusplus |
| 6137 | extern "C" |
| 6138 | #endif |
| 6139 | /* We use char because int might match the return type of a gcc2 |
| 6140 | builtin and then its argument prototype would still apply. */ |
| 6141 | char __inet_pton (); |
| 6142 | char (*f) (); |
| 6143 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6144 | #ifdef F77_DUMMY_MAIN |
| 6145 | # ifdef __cplusplus |
| 6146 | extern "C" |
| 6147 | # endif |
| 6148 | int F77_DUMMY_MAIN() { return 1; } |
| 6149 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6150 | int |
| 6151 | main () |
| 6152 | { |
| 6153 | /* The GNU C library defines this for functions which it implements |
| 6154 | to always fail with ENOSYS. Some functions are actually named |
| 6155 | something starting with __ and the normal name is an alias. */ |
| 6156 | #if defined (__stub___inet_pton) || defined (__stub_____inet_pton) |
| 6157 | choke me |
| 6158 | #else |
| 6159 | f = __inet_pton; |
| 6160 | #endif |
| 6161 | |
| 6162 | ; |
| 6163 | return 0; |
| 6164 | } |
| 6165 | _ACEOF |
| 6166 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6168 | (eval $ac_link) 2>&5 |
| 6169 | ac_status=$? |
| 6170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6171 | (exit $ac_status); } && |
| 6172 | { ac_try='test -s conftest$ac_exeext' |
| 6173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6174 | (eval $ac_try) 2>&5 |
| 6175 | ac_status=$? |
| 6176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6177 | (exit $ac_status); }; }; then |
| 6178 | ac_cv_func___inet_pton=yes |
| 6179 | else |
| 6180 | echo "$as_me: failed program was:" >&5 |
| 6181 | cat conftest.$ac_ext >&5 |
| 6182 | ac_cv_func___inet_pton=no |
| 6183 | fi |
| 6184 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6185 | fi |
| 6186 | echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5 |
| 6187 | echo "${ECHO_T}$ac_cv_func___inet_pton" >&6 |
| 6188 | if test $ac_cv_func___inet_pton = yes; then |
| 6189 | cat >>confdefs.h <<\_ACEOF |
| 6190 | #define HAVE_INET_PTON 1 |
| 6191 | _ACEOF |
| 6192 | |
| 6193 | fi |
| 6194 | |
| 6195 | echo "$as_me:$LINENO: checking for __inet_aton" >&5 |
| 6196 | echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6 |
| 6197 | if test "${ac_cv_func___inet_aton+set}" = set; then |
| 6198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6199 | else |
| 6200 | cat >conftest.$ac_ext <<_ACEOF |
| 6201 | #line $LINENO "configure" |
| 6202 | #include "confdefs.h" |
| 6203 | /* System header to define __stub macros and hopefully few prototypes, |
| 6204 | which can conflict with char __inet_aton (); below. */ |
| 6205 | #include <assert.h> |
| 6206 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6207 | #ifdef __cplusplus |
| 6208 | extern "C" |
| 6209 | #endif |
| 6210 | /* We use char because int might match the return type of a gcc2 |
| 6211 | builtin and then its argument prototype would still apply. */ |
| 6212 | char __inet_aton (); |
| 6213 | char (*f) (); |
| 6214 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6215 | #ifdef F77_DUMMY_MAIN |
| 6216 | # ifdef __cplusplus |
| 6217 | extern "C" |
| 6218 | # endif |
| 6219 | int F77_DUMMY_MAIN() { return 1; } |
| 6220 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6221 | int |
| 6222 | main () |
| 6223 | { |
| 6224 | /* The GNU C library defines this for functions which it implements |
| 6225 | to always fail with ENOSYS. Some functions are actually named |
| 6226 | something starting with __ and the normal name is an alias. */ |
| 6227 | #if defined (__stub___inet_aton) || defined (__stub_____inet_aton) |
| 6228 | choke me |
| 6229 | #else |
| 6230 | f = __inet_aton; |
| 6231 | #endif |
| 6232 | |
| 6233 | ; |
| 6234 | return 0; |
| 6235 | } |
| 6236 | _ACEOF |
| 6237 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6239 | (eval $ac_link) 2>&5 |
| 6240 | ac_status=$? |
| 6241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6242 | (exit $ac_status); } && |
| 6243 | { ac_try='test -s conftest$ac_exeext' |
| 6244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6245 | (eval $ac_try) 2>&5 |
| 6246 | ac_status=$? |
| 6247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6248 | (exit $ac_status); }; }; then |
| 6249 | ac_cv_func___inet_aton=yes |
| 6250 | else |
| 6251 | echo "$as_me: failed program was:" >&5 |
| 6252 | cat conftest.$ac_ext >&5 |
| 6253 | ac_cv_func___inet_aton=no |
| 6254 | fi |
| 6255 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6256 | fi |
| 6257 | echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5 |
| 6258 | echo "${ECHO_T}$ac_cv_func___inet_aton" >&6 |
| 6259 | if test $ac_cv_func___inet_aton = yes; then |
| 6260 | cat >>confdefs.h <<\_ACEOF |
| 6261 | #define HAVE_INET_ATON 1 |
| 6262 | _ACEOF |
| 6263 | |
| 6264 | fi |
| 6265 | |
| 6266 | |
| 6267 | echo "$as_me:$LINENO: checking for regexec in -lc" >&5 |
| 6268 | echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6 |
| 6269 | if test "${ac_cv_lib_c_regexec+set}" = set; then |
| 6270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6271 | else |
| 6272 | ac_check_lib_save_LIBS=$LIBS |
| 6273 | LIBS="-lc $LIBS" |
| 6274 | cat >conftest.$ac_ext <<_ACEOF |
| 6275 | #line $LINENO "configure" |
| 6276 | #include "confdefs.h" |
| 6277 | |
| 6278 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6279 | #ifdef __cplusplus |
| 6280 | extern "C" |
| 6281 | #endif |
| 6282 | /* We use char because int might match the return type of a gcc2 |
| 6283 | builtin and then its argument prototype would still apply. */ |
| 6284 | char regexec (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6285 | #ifdef F77_DUMMY_MAIN |
| 6286 | # ifdef __cplusplus |
| 6287 | extern "C" |
| 6288 | # endif |
| 6289 | int F77_DUMMY_MAIN() { return 1; } |
| 6290 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6291 | int |
| 6292 | main () |
| 6293 | { |
| 6294 | regexec (); |
| 6295 | ; |
| 6296 | return 0; |
| 6297 | } |
| 6298 | _ACEOF |
| 6299 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6301 | (eval $ac_link) 2>&5 |
| 6302 | ac_status=$? |
| 6303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6304 | (exit $ac_status); } && |
| 6305 | { ac_try='test -s conftest$ac_exeext' |
| 6306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6307 | (eval $ac_try) 2>&5 |
| 6308 | ac_status=$? |
| 6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6310 | (exit $ac_status); }; }; then |
| 6311 | ac_cv_lib_c_regexec=yes |
| 6312 | else |
| 6313 | echo "$as_me: failed program was:" >&5 |
| 6314 | cat conftest.$ac_ext >&5 |
| 6315 | ac_cv_lib_c_regexec=no |
| 6316 | fi |
| 6317 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6318 | LIBS=$ac_check_lib_save_LIBS |
| 6319 | fi |
| 6320 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5 |
| 6321 | echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6 |
| 6322 | if test $ac_cv_lib_c_regexec = yes; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6323 | |
| 6324 | cat >>confdefs.h <<\_ACEOF |
| 6325 | #define HAVE_GNU_REGEX |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6326 | _ACEOF |
| 6327 | |
| 6328 | LIB_REGEX="" |
| 6329 | else |
| 6330 | LIB_REGEX="regex.o" |
| 6331 | fi |
| 6332 | |
| 6333 | |
| 6334 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6335 | if test "${enable_snmp}" = "yes";then |
| 6336 | old_libs="${LIBS}" |
| 6337 | LIBS="-L/usr/local/lib" |
| 6338 | unset ac_cv_lib_snmp_asn_parse_int |
| 6339 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6340 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6341 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6343 | else |
| 6344 | ac_check_lib_save_LIBS=$LIBS |
| 6345 | LIBS="-lsnmp $LIBS" |
| 6346 | cat >conftest.$ac_ext <<_ACEOF |
| 6347 | #line $LINENO "configure" |
| 6348 | #include "confdefs.h" |
| 6349 | |
| 6350 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6351 | #ifdef __cplusplus |
| 6352 | extern "C" |
| 6353 | #endif |
| 6354 | /* We use char because int might match the return type of a gcc2 |
| 6355 | builtin and then its argument prototype would still apply. */ |
| 6356 | char asn_parse_int (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6357 | #ifdef F77_DUMMY_MAIN |
| 6358 | # ifdef __cplusplus |
| 6359 | extern "C" |
| 6360 | # endif |
| 6361 | int F77_DUMMY_MAIN() { return 1; } |
| 6362 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6363 | int |
| 6364 | main () |
| 6365 | { |
| 6366 | asn_parse_int (); |
| 6367 | ; |
| 6368 | return 0; |
| 6369 | } |
| 6370 | _ACEOF |
| 6371 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6373 | (eval $ac_link) 2>&5 |
| 6374 | ac_status=$? |
| 6375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6376 | (exit $ac_status); } && |
| 6377 | { ac_try='test -s conftest$ac_exeext' |
| 6378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6379 | (eval $ac_try) 2>&5 |
| 6380 | ac_status=$? |
| 6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6382 | (exit $ac_status); }; }; then |
| 6383 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6384 | else |
| 6385 | echo "$as_me: failed program was:" >&5 |
| 6386 | cat conftest.$ac_ext >&5 |
| 6387 | ac_cv_lib_snmp_asn_parse_int=no |
| 6388 | fi |
| 6389 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6390 | LIBS=$ac_check_lib_save_LIBS |
| 6391 | fi |
| 6392 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6393 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6394 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6395 | HAVE_SNMP=yes |
| 6396 | fi |
| 6397 | |
| 6398 | if test "${HAVE_SNMP}" = ""; then |
| 6399 | unset ac_cv_lib_snmp_asn_parse_int |
| 6400 | echo "$as_me:$LINENO: checking for main in -lcrypto" >&5 |
| 6401 | echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6 |
| 6402 | if test "${ac_cv_lib_crypto_main+set}" = set; then |
| 6403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6404 | else |
| 6405 | ac_check_lib_save_LIBS=$LIBS |
| 6406 | LIBS="-lcrypto $LIBS" |
| 6407 | cat >conftest.$ac_ext <<_ACEOF |
| 6408 | #line $LINENO "configure" |
| 6409 | #include "confdefs.h" |
| 6410 | |
| 6411 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6412 | #ifdef F77_DUMMY_MAIN |
| 6413 | # ifdef __cplusplus |
| 6414 | extern "C" |
| 6415 | # endif |
| 6416 | int F77_DUMMY_MAIN() { return 1; } |
| 6417 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6418 | int |
| 6419 | main () |
| 6420 | { |
| 6421 | main (); |
| 6422 | ; |
| 6423 | return 0; |
| 6424 | } |
| 6425 | _ACEOF |
| 6426 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6428 | (eval $ac_link) 2>&5 |
| 6429 | ac_status=$? |
| 6430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6431 | (exit $ac_status); } && |
| 6432 | { ac_try='test -s conftest$ac_exeext' |
| 6433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6434 | (eval $ac_try) 2>&5 |
| 6435 | ac_status=$? |
| 6436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6437 | (exit $ac_status); }; }; then |
| 6438 | ac_cv_lib_crypto_main=yes |
| 6439 | else |
| 6440 | echo "$as_me: failed program was:" >&5 |
| 6441 | cat conftest.$ac_ext >&5 |
| 6442 | ac_cv_lib_crypto_main=no |
| 6443 | fi |
| 6444 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6445 | LIBS=$ac_check_lib_save_LIBS |
| 6446 | fi |
| 6447 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5 |
| 6448 | echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6 |
| 6449 | if test $ac_cv_lib_crypto_main = yes; then |
| 6450 | NEED_CRYPTO=yes |
| 6451 | fi |
| 6452 | |
| 6453 | if test "${NEED_CRYPTO}" = ""; then |
| 6454 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6455 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6456 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6458 | else |
| 6459 | ac_check_lib_save_LIBS=$LIBS |
| 6460 | LIBS="-lsnmp $LIBS" |
| 6461 | cat >conftest.$ac_ext <<_ACEOF |
| 6462 | #line $LINENO "configure" |
| 6463 | #include "confdefs.h" |
| 6464 | |
| 6465 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6466 | #ifdef __cplusplus |
| 6467 | extern "C" |
| 6468 | #endif |
| 6469 | /* We use char because int might match the return type of a gcc2 |
| 6470 | builtin and then its argument prototype would still apply. */ |
| 6471 | char asn_parse_int (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6472 | #ifdef F77_DUMMY_MAIN |
| 6473 | # ifdef __cplusplus |
| 6474 | extern "C" |
| 6475 | # endif |
| 6476 | int F77_DUMMY_MAIN() { return 1; } |
| 6477 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6478 | int |
| 6479 | main () |
| 6480 | { |
| 6481 | asn_parse_int (); |
| 6482 | ; |
| 6483 | return 0; |
| 6484 | } |
| 6485 | _ACEOF |
| 6486 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6488 | (eval $ac_link) 2>&5 |
| 6489 | ac_status=$? |
| 6490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6491 | (exit $ac_status); } && |
| 6492 | { ac_try='test -s conftest$ac_exeext' |
| 6493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6494 | (eval $ac_try) 2>&5 |
| 6495 | ac_status=$? |
| 6496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6497 | (exit $ac_status); }; }; then |
| 6498 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6499 | else |
| 6500 | echo "$as_me: failed program was:" >&5 |
| 6501 | cat conftest.$ac_ext >&5 |
| 6502 | ac_cv_lib_snmp_asn_parse_int=no |
| 6503 | fi |
| 6504 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6505 | LIBS=$ac_check_lib_save_LIBS |
| 6506 | fi |
| 6507 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6508 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6509 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6510 | HAVE_SNMP=yes; NEED_CRYPTO=yes |
| 6511 | fi |
| 6512 | |
| 6513 | else |
| 6514 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6515 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6516 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6518 | else |
| 6519 | ac_check_lib_save_LIBS=$LIBS |
| 6520 | LIBS="-lsnmp "-lcrypto" $LIBS" |
| 6521 | cat >conftest.$ac_ext <<_ACEOF |
| 6522 | #line $LINENO "configure" |
| 6523 | #include "confdefs.h" |
| 6524 | |
| 6525 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6526 | #ifdef __cplusplus |
| 6527 | extern "C" |
| 6528 | #endif |
| 6529 | /* We use char because int might match the return type of a gcc2 |
| 6530 | builtin and then its argument prototype would still apply. */ |
| 6531 | char asn_parse_int (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6532 | #ifdef F77_DUMMY_MAIN |
| 6533 | # ifdef __cplusplus |
| 6534 | extern "C" |
| 6535 | # endif |
| 6536 | int F77_DUMMY_MAIN() { return 1; } |
| 6537 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6538 | int |
| 6539 | main () |
| 6540 | { |
| 6541 | asn_parse_int (); |
| 6542 | ; |
| 6543 | return 0; |
| 6544 | } |
| 6545 | _ACEOF |
| 6546 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6548 | (eval $ac_link) 2>&5 |
| 6549 | ac_status=$? |
| 6550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6551 | (exit $ac_status); } && |
| 6552 | { ac_try='test -s conftest$ac_exeext' |
| 6553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6554 | (eval $ac_try) 2>&5 |
| 6555 | ac_status=$? |
| 6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6557 | (exit $ac_status); }; }; then |
| 6558 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6559 | else |
| 6560 | echo "$as_me: failed program was:" >&5 |
| 6561 | cat conftest.$ac_ext >&5 |
| 6562 | ac_cv_lib_snmp_asn_parse_int=no |
| 6563 | fi |
| 6564 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6565 | LIBS=$ac_check_lib_save_LIBS |
| 6566 | fi |
| 6567 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6568 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6569 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6570 | HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto" |
| 6571 | fi |
| 6572 | |
| 6573 | fi |
| 6574 | fi |
| 6575 | LIBS="${old_libs}" |
| 6576 | |
| 6577 | if test "${HAVE_SNMP}" = ""; then |
| 6578 | old_libs="${LIBS}" |
| 6579 | LIBS="-L/usr/local/lib" |
| 6580 | echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5 |
| 6581 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6582 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6584 | else |
| 6585 | ac_check_lib_save_LIBS=$LIBS |
| 6586 | LIBS="-lsnmp $LIBS" |
| 6587 | cat >conftest.$ac_ext <<_ACEOF |
| 6588 | #line $LINENO "configure" |
| 6589 | #include "confdefs.h" |
| 6590 | |
| 6591 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6592 | #ifdef __cplusplus |
| 6593 | extern "C" |
| 6594 | #endif |
| 6595 | /* We use char because int might match the return type of a gcc2 |
| 6596 | builtin and then its argument prototype would still apply. */ |
| 6597 | char asn_parse_int (); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6598 | #ifdef F77_DUMMY_MAIN |
| 6599 | # ifdef __cplusplus |
| 6600 | extern "C" |
| 6601 | # endif |
| 6602 | int F77_DUMMY_MAIN() { return 1; } |
| 6603 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6604 | int |
| 6605 | main () |
| 6606 | { |
| 6607 | asn_parse_int (); |
| 6608 | ; |
| 6609 | return 0; |
| 6610 | } |
| 6611 | _ACEOF |
| 6612 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6614 | (eval $ac_link) 2>&5 |
| 6615 | ac_status=$? |
| 6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6617 | (exit $ac_status); } && |
| 6618 | { ac_try='test -s conftest$ac_exeext' |
| 6619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6620 | (eval $ac_try) 2>&5 |
| 6621 | ac_status=$? |
| 6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6623 | (exit $ac_status); }; }; then |
| 6624 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6625 | else |
| 6626 | echo "$as_me: failed program was:" >&5 |
| 6627 | cat conftest.$ac_ext >&5 |
| 6628 | ac_cv_lib_snmp_asn_parse_int=no |
| 6629 | fi |
| 6630 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6631 | LIBS=$ac_check_lib_save_LIBS |
| 6632 | fi |
| 6633 | echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6634 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6635 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6636 | HAVE_SNMP=yes |
| 6637 | fi |
| 6638 | |
| 6639 | LIBS="${old_libs}" |
| 6640 | fi |
| 6641 | if test "${HAVE_SNMP}" = "yes"; then |
paul | 569c0f0 | 2003-03-02 21:19:26 +0000 | [diff] [blame^] | 6642 | for ac_snmp in /usr/include/net-snmp/library/asn1.h /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6643 | do |
| 6644 | test -f "${ac_snmp}" && break |
| 6645 | done |
| 6646 | case ${ac_snmp} in |
paul | 569c0f0 | 2003-03-02 21:19:26 +0000 | [diff] [blame^] | 6647 | /usr/include/net-snmp/*) |
| 6648 | |
| 6649 | cat >>confdefs.h <<\_ACEOF |
| 6650 | #define HAVE_SNMP |
| 6651 | _ACEOF |
| 6652 | |
| 6653 | |
| 6654 | cat >>confdefs.h <<\_ACEOF |
| 6655 | #define UCD_COMPATIBLE |
| 6656 | _ACEOF |
| 6657 | |
| 6658 | CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp" |
| 6659 | LIBS="${LIBS} -lsnmp" |
| 6660 | ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6661 | /usr/include/ucd-snmp/*) |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6662 | |
| 6663 | cat >>confdefs.h <<\_ACEOF |
| 6664 | #define HAVE_SNMP |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6665 | _ACEOF |
| 6666 | |
| 6667 | CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp" |
| 6668 | LIBS="${LIBS} -lsnmp" |
| 6669 | ;; |
| 6670 | /usr/local/include/ucd-snmp/*) |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6671 | |
| 6672 | cat >>confdefs.h <<\_ACEOF |
| 6673 | #define HAVE_SNMP |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6674 | _ACEOF |
| 6675 | |
| 6676 | CFLAGS="${CFLAGS} -I/usr/local/include/ucd-snmp" |
| 6677 | LIBS="${LIBS} -L/usr/local/lib -lsnmp" |
| 6678 | ;; |
| 6679 | esac |
| 6680 | if test "${NEED_CRYPTO}" = "yes"; then |
| 6681 | LIBS="${LIBS} -lcrypto" |
| 6682 | fi |
| 6683 | fi |
| 6684 | fi |
| 6685 | |
| 6686 | echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5 |
| 6687 | echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6 |
| 6688 | cat >conftest.$ac_ext <<_ACEOF |
| 6689 | #line $LINENO "configure" |
| 6690 | #include "confdefs.h" |
| 6691 | #include <sys/types.h> |
| 6692 | #include <sys/socket.h> |
| 6693 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6694 | #ifdef F77_DUMMY_MAIN |
| 6695 | # ifdef __cplusplus |
| 6696 | extern "C" |
| 6697 | # endif |
| 6698 | int F77_DUMMY_MAIN() { return 1; } |
| 6699 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6700 | int |
| 6701 | main () |
| 6702 | { |
| 6703 | static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len); |
| 6704 | ; |
| 6705 | return 0; |
| 6706 | } |
| 6707 | _ACEOF |
| 6708 | rm -f conftest.$ac_objext |
| 6709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6710 | (eval $ac_compile) 2>&5 |
| 6711 | ac_status=$? |
| 6712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6713 | (exit $ac_status); } && |
| 6714 | { ac_try='test -s conftest.$ac_objext' |
| 6715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6716 | (eval $ac_try) 2>&5 |
| 6717 | ac_status=$? |
| 6718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6719 | (exit $ac_status); }; }; then |
| 6720 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6721 | echo "${ECHO_T}yes" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6722 | |
| 6723 | cat >>confdefs.h <<\_ACEOF |
| 6724 | #define HAVE_SA_LEN |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6725 | _ACEOF |
| 6726 | |
| 6727 | else |
| 6728 | echo "$as_me: failed program was:" >&5 |
| 6729 | cat conftest.$ac_ext >&5 |
| 6730 | echo "$as_me:$LINENO: result: no" >&5 |
| 6731 | echo "${ECHO_T}no" >&6 |
| 6732 | fi |
| 6733 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6734 | |
| 6735 | echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5 |
| 6736 | echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6 |
| 6737 | cat >conftest.$ac_ext <<_ACEOF |
| 6738 | #line $LINENO "configure" |
| 6739 | #include "confdefs.h" |
| 6740 | #include <sys/types.h> |
| 6741 | #include <netinet/in.h> |
| 6742 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6743 | #ifdef F77_DUMMY_MAIN |
| 6744 | # ifdef __cplusplus |
| 6745 | extern "C" |
| 6746 | # endif |
| 6747 | int F77_DUMMY_MAIN() { return 1; } |
| 6748 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6749 | int |
| 6750 | main () |
| 6751 | { |
| 6752 | static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len); |
| 6753 | ; |
| 6754 | return 0; |
| 6755 | } |
| 6756 | _ACEOF |
| 6757 | rm -f conftest.$ac_objext |
| 6758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6759 | (eval $ac_compile) 2>&5 |
| 6760 | ac_status=$? |
| 6761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6762 | (exit $ac_status); } && |
| 6763 | { ac_try='test -s conftest.$ac_objext' |
| 6764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6765 | (eval $ac_try) 2>&5 |
| 6766 | ac_status=$? |
| 6767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6768 | (exit $ac_status); }; }; then |
| 6769 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6770 | echo "${ECHO_T}yes" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6771 | |
| 6772 | cat >>confdefs.h <<\_ACEOF |
| 6773 | #define HAVE_SIN_LEN |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6774 | _ACEOF |
| 6775 | |
| 6776 | else |
| 6777 | echo "$as_me: failed program was:" >&5 |
| 6778 | cat conftest.$ac_ext >&5 |
| 6779 | echo "$as_me:$LINENO: result: no" >&5 |
| 6780 | echo "${ECHO_T}no" >&6 |
| 6781 | fi |
| 6782 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6783 | |
| 6784 | echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5 |
| 6785 | echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6 |
| 6786 | cat >conftest.$ac_ext <<_ACEOF |
| 6787 | #line $LINENO "configure" |
| 6788 | #include "confdefs.h" |
| 6789 | #include <sys/types.h> |
| 6790 | #include <sys/un.h> |
| 6791 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6792 | #ifdef F77_DUMMY_MAIN |
| 6793 | # ifdef __cplusplus |
| 6794 | extern "C" |
| 6795 | # endif |
| 6796 | int F77_DUMMY_MAIN() { return 1; } |
| 6797 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6798 | int |
| 6799 | main () |
| 6800 | { |
| 6801 | static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len); |
| 6802 | ; |
| 6803 | return 0; |
| 6804 | } |
| 6805 | _ACEOF |
| 6806 | rm -f conftest.$ac_objext |
| 6807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6808 | (eval $ac_compile) 2>&5 |
| 6809 | ac_status=$? |
| 6810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6811 | (exit $ac_status); } && |
| 6812 | { ac_try='test -s conftest.$ac_objext' |
| 6813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6814 | (eval $ac_try) 2>&5 |
| 6815 | ac_status=$? |
| 6816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6817 | (exit $ac_status); }; }; then |
| 6818 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6819 | echo "${ECHO_T}yes" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6820 | |
| 6821 | cat >>confdefs.h <<\_ACEOF |
| 6822 | #define HAVE_SUN_LEN |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6823 | _ACEOF |
| 6824 | |
| 6825 | else |
| 6826 | echo "$as_me: failed program was:" >&5 |
| 6827 | cat conftest.$ac_ext >&5 |
| 6828 | echo "$as_me:$LINENO: result: no" >&5 |
| 6829 | echo "${ECHO_T}no" >&6 |
| 6830 | fi |
| 6831 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6832 | |
| 6833 | if test "$zebra_cv_ipv6" = yes; then |
| 6834 | echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5 |
| 6835 | echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6 |
| 6836 | cat >conftest.$ac_ext <<_ACEOF |
| 6837 | #line $LINENO "configure" |
| 6838 | #include "confdefs.h" |
| 6839 | #include <sys/types.h> |
| 6840 | #include <netinet/in.h> |
| 6841 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6842 | #ifdef F77_DUMMY_MAIN |
| 6843 | # ifdef __cplusplus |
| 6844 | extern "C" |
| 6845 | # endif |
| 6846 | int F77_DUMMY_MAIN() { return 1; } |
| 6847 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6848 | int |
| 6849 | main () |
| 6850 | { |
| 6851 | static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id); |
| 6852 | ; |
| 6853 | return 0; |
| 6854 | } |
| 6855 | _ACEOF |
| 6856 | rm -f conftest.$ac_objext |
| 6857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6858 | (eval $ac_compile) 2>&5 |
| 6859 | ac_status=$? |
| 6860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6861 | (exit $ac_status); } && |
| 6862 | { ac_try='test -s conftest.$ac_objext' |
| 6863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6864 | (eval $ac_try) 2>&5 |
| 6865 | ac_status=$? |
| 6866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6867 | (exit $ac_status); }; }; then |
| 6868 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6869 | echo "${ECHO_T}yes" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6870 | |
| 6871 | cat >>confdefs.h <<\_ACEOF |
| 6872 | #define HAVE_SIN6_SCOPE_ID |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6873 | _ACEOF |
| 6874 | |
| 6875 | else |
| 6876 | echo "$as_me: failed program was:" >&5 |
| 6877 | cat conftest.$ac_ext >&5 |
| 6878 | echo "$as_me:$LINENO: result: no" >&5 |
| 6879 | echo "${ECHO_T}no" >&6 |
| 6880 | fi |
| 6881 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6882 | fi |
| 6883 | |
| 6884 | echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5 |
| 6885 | echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6 |
| 6886 | cat >conftest.$ac_ext <<_ACEOF |
| 6887 | #line $LINENO "configure" |
| 6888 | #include "confdefs.h" |
| 6889 | #include <sys/types.h> |
| 6890 | #include <sys/socket.h> |
| 6891 | #include <netinet/in.h> |
| 6892 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6893 | #ifdef F77_DUMMY_MAIN |
| 6894 | # ifdef __cplusplus |
| 6895 | extern "C" |
| 6896 | # endif |
| 6897 | int F77_DUMMY_MAIN() { return 1; } |
| 6898 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6899 | int |
| 6900 | main () |
| 6901 | { |
| 6902 | socklen_t ac_x; |
| 6903 | ; |
| 6904 | return 0; |
| 6905 | } |
| 6906 | _ACEOF |
| 6907 | rm -f conftest.$ac_objext |
| 6908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6909 | (eval $ac_compile) 2>&5 |
| 6910 | ac_status=$? |
| 6911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6912 | (exit $ac_status); } && |
| 6913 | { ac_try='test -s conftest.$ac_objext' |
| 6914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6915 | (eval $ac_try) 2>&5 |
| 6916 | ac_status=$? |
| 6917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6918 | (exit $ac_status); }; }; then |
| 6919 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6920 | echo "${ECHO_T}yes" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6921 | |
| 6922 | cat >>confdefs.h <<\_ACEOF |
| 6923 | #define HAVE_SOCKLEN_T |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6924 | _ACEOF |
| 6925 | |
| 6926 | else |
| 6927 | echo "$as_me: failed program was:" >&5 |
| 6928 | cat conftest.$ac_ext >&5 |
| 6929 | echo "$as_me:$LINENO: result: no" >&5 |
| 6930 | echo "${ECHO_T}no" >&6 |
| 6931 | fi |
| 6932 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6933 | |
| 6934 | echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5 |
| 6935 | echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6 |
| 6936 | cat >conftest.$ac_ext <<_ACEOF |
| 6937 | #line $LINENO "configure" |
| 6938 | #include "confdefs.h" |
| 6939 | #include <net/if_dl.h> |
| 6940 | |
| 6941 | _ACEOF |
| 6942 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6943 | egrep "sockaddr_dl" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6944 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6945 | echo "${ECHO_T}yes" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6946 | |
| 6947 | cat >>confdefs.h <<\_ACEOF |
| 6948 | #define HAVE_SOCKADDR_DL |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6949 | _ACEOF |
| 6950 | |
| 6951 | else |
| 6952 | echo "$as_me:$LINENO: result: no" >&5 |
| 6953 | echo "${ECHO_T}no" >&6 |
| 6954 | fi |
| 6955 | rm -f conftest* |
| 6956 | |
| 6957 | |
| 6958 | echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5 |
| 6959 | echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6 |
| 6960 | cat >conftest.$ac_ext <<_ACEOF |
| 6961 | #line $LINENO "configure" |
| 6962 | #include "confdefs.h" |
| 6963 | #include <net/if.h> |
| 6964 | |
| 6965 | _ACEOF |
| 6966 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6967 | egrep "ifaliasreq" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6968 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6969 | echo "${ECHO_T}yes" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6970 | |
| 6971 | cat >>confdefs.h <<\_ACEOF |
| 6972 | #define HAVE_IFALIASREQ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6973 | _ACEOF |
| 6974 | |
| 6975 | else |
| 6976 | echo "$as_me:$LINENO: result: no" >&5 |
| 6977 | echo "${ECHO_T}no" >&6 |
| 6978 | fi |
| 6979 | rm -f conftest* |
| 6980 | |
| 6981 | |
| 6982 | echo "$as_me:$LINENO: checking whether struct if6_aliasreq exist" >&5 |
| 6983 | echo $ECHO_N "checking whether struct if6_aliasreq exist... $ECHO_C" >&6 |
| 6984 | cat >conftest.$ac_ext <<_ACEOF |
| 6985 | #line $LINENO "configure" |
| 6986 | #include "confdefs.h" |
| 6987 | #include <netinet6/in6_var.h> |
| 6988 | |
| 6989 | _ACEOF |
| 6990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6991 | egrep "in6_aliasreq" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6992 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6993 | echo "${ECHO_T}yes" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6994 | |
| 6995 | cat >>confdefs.h <<\_ACEOF |
| 6996 | #define HAVE_IN6_ALIASREQ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6997 | _ACEOF |
| 6998 | |
| 6999 | else |
| 7000 | echo "$as_me:$LINENO: result: no" >&5 |
| 7001 | echo "${ECHO_T}no" >&6 |
| 7002 | fi |
| 7003 | rm -f conftest* |
| 7004 | |
| 7005 | |
| 7006 | echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5 |
| 7007 | echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6 |
| 7008 | cat >conftest.$ac_ext <<_ACEOF |
| 7009 | #line $LINENO "configure" |
| 7010 | #include "confdefs.h" |
| 7011 | #include <net/route.h> |
| 7012 | |
| 7013 | _ACEOF |
| 7014 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7015 | egrep "rt_addrinfo" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7016 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7017 | echo "${ECHO_T}yes" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7018 | |
| 7019 | cat >>confdefs.h <<\_ACEOF |
| 7020 | #define HAVE_RT_ADDRINFO |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7021 | _ACEOF |
| 7022 | |
| 7023 | else |
| 7024 | echo "$as_me:$LINENO: result: no" >&5 |
| 7025 | echo "${ECHO_T}no" >&6 |
| 7026 | fi |
| 7027 | rm -f conftest* |
| 7028 | |
| 7029 | |
| 7030 | echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5 |
| 7031 | echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6 |
| 7032 | cat >conftest.$ac_ext <<_ACEOF |
| 7033 | #line $LINENO "configure" |
| 7034 | #include "confdefs.h" |
| 7035 | #include <netinet/in.h> |
| 7036 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7037 | #ifdef F77_DUMMY_MAIN |
| 7038 | # ifdef __cplusplus |
| 7039 | extern "C" |
| 7040 | # endif |
| 7041 | int F77_DUMMY_MAIN() { return 1; } |
| 7042 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7043 | int |
| 7044 | main () |
| 7045 | { |
| 7046 | struct in_pktinfo ac_x; |
| 7047 | ; |
| 7048 | return 0; |
| 7049 | } |
| 7050 | _ACEOF |
| 7051 | rm -f conftest.$ac_objext |
| 7052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7053 | (eval $ac_compile) 2>&5 |
| 7054 | ac_status=$? |
| 7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7056 | (exit $ac_status); } && |
| 7057 | { ac_try='test -s conftest.$ac_objext' |
| 7058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7059 | (eval $ac_try) 2>&5 |
| 7060 | ac_status=$? |
| 7061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7062 | (exit $ac_status); }; }; then |
| 7063 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7064 | echo "${ECHO_T}yes" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7065 | |
| 7066 | cat >>confdefs.h <<\_ACEOF |
| 7067 | #define HAVE_INPKTINFO |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7068 | _ACEOF |
| 7069 | |
| 7070 | else |
| 7071 | echo "$as_me: failed program was:" >&5 |
| 7072 | cat conftest.$ac_ext >&5 |
| 7073 | echo "$as_me:$LINENO: result: no" >&5 |
| 7074 | echo "${ECHO_T}no" >&6 |
| 7075 | fi |
| 7076 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7077 | |
| 7078 | echo "$as_me:$LINENO: checking whether getrusage is available" >&5 |
| 7079 | echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6 |
| 7080 | cat >conftest.$ac_ext <<_ACEOF |
| 7081 | #line $LINENO "configure" |
| 7082 | #include "confdefs.h" |
| 7083 | #include <sys/resource.h> |
| 7084 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7085 | #ifdef F77_DUMMY_MAIN |
| 7086 | # ifdef __cplusplus |
| 7087 | extern "C" |
| 7088 | # endif |
| 7089 | int F77_DUMMY_MAIN() { return 1; } |
| 7090 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7091 | int |
| 7092 | main () |
| 7093 | { |
| 7094 | struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x); |
| 7095 | ; |
| 7096 | return 0; |
| 7097 | } |
| 7098 | _ACEOF |
| 7099 | rm -f conftest.$ac_objext |
| 7100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7101 | (eval $ac_compile) 2>&5 |
| 7102 | ac_status=$? |
| 7103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7104 | (exit $ac_status); } && |
| 7105 | { ac_try='test -s conftest.$ac_objext' |
| 7106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7107 | (eval $ac_try) 2>&5 |
| 7108 | ac_status=$? |
| 7109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7110 | (exit $ac_status); }; }; then |
| 7111 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7112 | echo "${ECHO_T}yes" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7113 | |
| 7114 | cat >>confdefs.h <<\_ACEOF |
| 7115 | #define HAVE_RUSAGE |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7116 | _ACEOF |
| 7117 | |
| 7118 | else |
| 7119 | echo "$as_me: failed program was:" >&5 |
| 7120 | cat conftest.$ac_ext >&5 |
| 7121 | echo "$as_me:$LINENO: result: no" >&5 |
| 7122 | echo "${ECHO_T}no" >&6 |
| 7123 | fi |
| 7124 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7125 | |
| 7126 | file="${srcdir}/lib/version.h" |
| 7127 | VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file` |
| 7128 | |
| 7129 | |
| 7130 | echo "$as_me:$LINENO: checking pid file directory" >&5 |
| 7131 | echo $ECHO_N "checking pid file directory... $ECHO_C" >&6 |
| 7132 | if test "${ac_piddir+set}" = set; then |
| 7133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7134 | else |
| 7135 | for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null; |
| 7136 | do |
| 7137 | test -d $ZEBRA_PID_DIR && break |
| 7138 | done |
| 7139 | ac_piddir=$ZEBRA_PID_DIR |
| 7140 | if test $ZEBRA_PID_DIR = "/dev/null"; then |
| 7141 | echo "PID DIRECTORY NOT FOUND!" |
| 7142 | fi |
| 7143 | fi |
| 7144 | echo "$as_me:$LINENO: result: $ac_piddir" >&5 |
| 7145 | echo "${ECHO_T}$ac_piddir" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7146 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7147 | cat >>confdefs.h <<_ACEOF |
| 7148 | #define PATH_ZEBRA_PID "$ac_piddir/zebra.pid" |
| 7149 | _ACEOF |
| 7150 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7151 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7152 | cat >>confdefs.h <<_ACEOF |
| 7153 | #define PATH_RIPD_PID "$ac_piddir/ripd.pid" |
| 7154 | _ACEOF |
| 7155 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7156 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7157 | cat >>confdefs.h <<_ACEOF |
| 7158 | #define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid" |
| 7159 | _ACEOF |
| 7160 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7161 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7162 | cat >>confdefs.h <<_ACEOF |
| 7163 | #define PATH_BGPD_PID "$ac_piddir/bgpd.pid" |
| 7164 | _ACEOF |
| 7165 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7166 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7167 | cat >>confdefs.h <<_ACEOF |
| 7168 | #define PATH_OSPFD_PID "$ac_piddir/ospfd.pid" |
| 7169 | _ACEOF |
| 7170 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7171 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7172 | cat >>confdefs.h <<_ACEOF |
| 7173 | #define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid" |
| 7174 | _ACEOF |
| 7175 | |
| 7176 | |
| 7177 | |
| 7178 | echo "$as_me:$LINENO: checking for working htonl" >&5 |
| 7179 | echo $ECHO_N "checking for working htonl... $ECHO_C" >&6 |
| 7180 | if test "${ac_cv_htonl_works+set}" = set; then |
| 7181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7182 | else |
| 7183 | |
| 7184 | cat >conftest.$ac_ext <<_ACEOF |
| 7185 | #line $LINENO "configure" |
| 7186 | #include "confdefs.h" |
| 7187 | #ifdef HAVE_SYS_TYPES_H |
| 7188 | #include <sys/types.h> |
| 7189 | #endif |
| 7190 | #ifdef HAVE_NETDB_H |
| 7191 | #include <netdb.h> |
| 7192 | #endif |
| 7193 | #ifdef HAVE_NETINET_IN_H |
| 7194 | #include <netinet/in.h> |
| 7195 | #endif |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7196 | #ifdef F77_DUMMY_MAIN |
| 7197 | # ifdef __cplusplus |
| 7198 | extern "C" |
| 7199 | # endif |
| 7200 | int F77_DUMMY_MAIN() { return 1; } |
| 7201 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7202 | int |
| 7203 | main () |
| 7204 | { |
| 7205 | htonl (0); |
| 7206 | ; |
| 7207 | return 0; |
| 7208 | } |
| 7209 | _ACEOF |
| 7210 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7212 | (eval $ac_link) 2>&5 |
| 7213 | ac_status=$? |
| 7214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7215 | (exit $ac_status); } && |
| 7216 | { ac_try='test -s conftest$ac_exeext' |
| 7217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7218 | (eval $ac_try) 2>&5 |
| 7219 | ac_status=$? |
| 7220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7221 | (exit $ac_status); }; }; then |
| 7222 | ac_cv_htonl_works=yes |
| 7223 | else |
| 7224 | echo "$as_me: failed program was:" >&5 |
| 7225 | cat conftest.$ac_ext >&5 |
| 7226 | ac_cv_htonl_works=no |
| 7227 | fi |
| 7228 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7229 | fi |
| 7230 | |
| 7231 | echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5 |
| 7232 | echo "${ECHO_T}$ac_cv_htonl_works" >&6 |
| 7233 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7234 | ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile vtysh/Makefile doc/Makefile" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7235 | cat >confcache <<\_ACEOF |
| 7236 | # This file is a shell script that caches the results of configure |
| 7237 | # tests run on this system so they can be shared between configure |
| 7238 | # scripts and configure runs, see configure's option --config-cache. |
| 7239 | # It is not useful on other systems. If it contains results you don't |
| 7240 | # want to keep, you may remove or edit it. |
| 7241 | # |
| 7242 | # config.status only pays attention to the cache file if you give it |
| 7243 | # the --recheck option to rerun configure. |
| 7244 | # |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7245 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7246 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 7247 | # following values. |
| 7248 | |
| 7249 | _ACEOF |
| 7250 | |
| 7251 | # The following way of writing the cache mishandles newlines in values, |
| 7252 | # but we know of no workaround that is simple, portable, and efficient. |
| 7253 | # So, don't put newlines in cache variables' values. |
| 7254 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7255 | # and sets the high bit in the cache file unless we assign to the vars. |
| 7256 | { |
| 7257 | (set) 2>&1 | |
| 7258 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 7259 | *ac_space=\ *) |
| 7260 | # `set' does not quote correctly, so add quotes (double-quote |
| 7261 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 7262 | sed -n \ |
| 7263 | "s/'/'\\\\''/g; |
| 7264 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 7265 | ;; |
| 7266 | *) |
| 7267 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7268 | sed -n \ |
| 7269 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 7270 | ;; |
| 7271 | esac; |
| 7272 | } | |
| 7273 | sed ' |
| 7274 | t clear |
| 7275 | : clear |
| 7276 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7277 | t end |
| 7278 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7279 | : end' >>confcache |
| 7280 | if cmp -s $cache_file confcache; then :; else |
| 7281 | if test -w $cache_file; then |
| 7282 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 7283 | cat confcache >$cache_file |
| 7284 | else |
| 7285 | echo "not updating unwritable cache $cache_file" |
| 7286 | fi |
| 7287 | fi |
| 7288 | rm -f confcache |
| 7289 | |
| 7290 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7291 | # Let make expand exec_prefix. |
| 7292 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7293 | |
| 7294 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 7295 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 7296 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7297 | # (actually we leave an empty line to preserve line numbers). |
| 7298 | if test "x$srcdir" = x.; then |
| 7299 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 7300 | s/:*\$(srcdir):*/:/; |
| 7301 | s/:*\${srcdir}:*/:/; |
| 7302 | s/:*@srcdir@:*/:/; |
| 7303 | s/^\([^=]*=[ ]*\):*/\1/; |
| 7304 | s/:*$//; |
| 7305 | s/^[^=]*=[ ]*$//; |
| 7306 | }' |
| 7307 | fi |
| 7308 | |
| 7309 | DEFS=-DHAVE_CONFIG_H |
| 7310 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7311 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 7312 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 7313 | Usually this means the macro was only invoked conditionally." >&5 |
| 7314 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 7315 | Usually this means the macro was only invoked conditionally." >&2;} |
| 7316 | { (exit 1); exit 1; }; } |
| 7317 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7318 | |
| 7319 | : ${CONFIG_STATUS=./config.status} |
| 7320 | ac_clean_files_save=$ac_clean_files |
| 7321 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 7322 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 7323 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 7324 | cat >$CONFIG_STATUS <<_ACEOF |
| 7325 | #! $SHELL |
| 7326 | # Generated by $as_me. |
| 7327 | # Run this file to recreate the current configuration. |
| 7328 | # Compiler output produced by configure, useful for debugging |
| 7329 | # configure, is in config.log if it exists. |
| 7330 | |
| 7331 | debug=false |
| 7332 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 7333 | _ACEOF |
| 7334 | |
| 7335 | cat >>$CONFIG_STATUS <<\_ACEOF |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7336 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7337 | ## --------------------- ## |
| 7338 | ## M4sh Initialization. ## |
| 7339 | ## --------------------- ## |
| 7340 | |
| 7341 | # Be Bourne compatible |
| 7342 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 7343 | emulate sh |
| 7344 | NULLCMD=: |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7345 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 7346 | set -o posix |
| 7347 | fi |
| 7348 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7349 | # NLS nuisances. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7350 | # Support unset when possible. |
| 7351 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 7352 | as_unset=unset |
| 7353 | else |
| 7354 | as_unset=false |
| 7355 | fi |
| 7356 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7357 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 7358 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 7359 | { LANG=C; export LANG; } |
| 7360 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 7361 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 7362 | { LC_ALL=C; export LC_ALL; } |
| 7363 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 7364 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 7365 | { LC_TIME=C; export LC_TIME; } |
| 7366 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 7367 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 7368 | { LC_CTYPE=C; export LC_CTYPE; } |
| 7369 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 7370 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 7371 | { LANGUAGE=C; export LANGUAGE; } |
| 7372 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 7373 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 7374 | { LC_COLLATE=C; export LC_COLLATE; } |
| 7375 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 7376 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 7377 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 7378 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 7379 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 7380 | { LC_MESSAGES=C; export LC_MESSAGES; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7381 | |
| 7382 | |
| 7383 | # Name of the executable. |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7384 | as_me=`(basename "$0") 2>/dev/null || |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7385 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 7386 | X"$0" : 'X\(//\)$' \| \ |
| 7387 | X"$0" : 'X\(/\)$' \| \ |
| 7388 | . : '\(.\)' 2>/dev/null || |
| 7389 | echo X/"$0" | |
| 7390 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 7391 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 7392 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 7393 | s/.*/./; q'` |
| 7394 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7395 | # PATH needs CR, and LINENO needs CR and PATH. |
| 7396 | # Avoid depending upon Character Ranges. |
| 7397 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 7398 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 7399 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 7400 | as_cr_digits='0123456789' |
| 7401 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 7402 | |
| 7403 | # The user is always right. |
| 7404 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7405 | echo "#! /bin/sh" >conftest.sh |
| 7406 | echo "exit 0" >>conftest.sh |
| 7407 | chmod +x conftest.sh |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7408 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7409 | PATH_SEPARATOR=';' |
| 7410 | else |
| 7411 | PATH_SEPARATOR=: |
| 7412 | fi |
| 7413 | rm -f conftest.sh |
| 7414 | fi |
| 7415 | |
| 7416 | |
| 7417 | as_lineno_1=$LINENO |
| 7418 | as_lineno_2=$LINENO |
| 7419 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 7420 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 7421 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 7422 | # Find who we are. Look in the path if we contain no path at all |
| 7423 | # relative or not. |
| 7424 | case $0 in |
| 7425 | *[\\/]* ) as_myself=$0 ;; |
| 7426 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7427 | for as_dir in $PATH |
| 7428 | do |
| 7429 | IFS=$as_save_IFS |
| 7430 | test -z "$as_dir" && as_dir=. |
| 7431 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 7432 | done |
| 7433 | |
| 7434 | ;; |
| 7435 | esac |
| 7436 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 7437 | # in which case we are not to be found in the path. |
| 7438 | if test "x$as_myself" = x; then |
| 7439 | as_myself=$0 |
| 7440 | fi |
| 7441 | if test ! -f "$as_myself"; then |
| 7442 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 7443 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 7444 | { (exit 1); exit 1; }; } |
| 7445 | fi |
| 7446 | case $CONFIG_SHELL in |
| 7447 | '') |
| 7448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7449 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 7450 | do |
| 7451 | IFS=$as_save_IFS |
| 7452 | test -z "$as_dir" && as_dir=. |
| 7453 | for as_base in sh bash ksh sh5; do |
| 7454 | case $as_dir in |
| 7455 | /*) |
| 7456 | if ("$as_dir/$as_base" -c ' |
| 7457 | as_lineno_1=$LINENO |
| 7458 | as_lineno_2=$LINENO |
| 7459 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 7460 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 7461 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7462 | CONFIG_SHELL=$as_dir/$as_base |
| 7463 | export CONFIG_SHELL |
| 7464 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 7465 | fi;; |
| 7466 | esac |
| 7467 | done |
| 7468 | done |
| 7469 | ;; |
| 7470 | esac |
| 7471 | |
| 7472 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 7473 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 7474 | # line-number line before each line; the second 'sed' does the real |
| 7475 | # work. The second script uses 'N' to pair each line-number line |
| 7476 | # with the numbered line, and appends trailing '-' during |
| 7477 | # substitution so that $LINENO is not a special case at line end. |
| 7478 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 7479 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 7480 | sed '=' <$as_myself | |
| 7481 | sed ' |
| 7482 | N |
| 7483 | s,$,-, |
| 7484 | : loop |
| 7485 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 7486 | t loop |
| 7487 | s,-$,, |
| 7488 | s,^['$as_cr_digits']*\n,, |
| 7489 | ' >$as_me.lineno && |
| 7490 | chmod +x $as_me.lineno || |
| 7491 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 7492 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 7493 | { (exit 1); exit 1; }; } |
| 7494 | |
| 7495 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 7496 | # (the dirname of $[0] is not the place where we might find the |
| 7497 | # original and so on. Autoconf is especially sensible to this). |
| 7498 | . ./$as_me.lineno |
| 7499 | # Exit status is that of the last command. |
| 7500 | exit |
| 7501 | } |
| 7502 | |
| 7503 | |
| 7504 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 7505 | *c*,-n*) ECHO_N= ECHO_C=' |
| 7506 | ' ECHO_T=' ' ;; |
| 7507 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 7508 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 7509 | esac |
| 7510 | |
| 7511 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 7512 | as_expr=expr |
| 7513 | else |
| 7514 | as_expr=false |
| 7515 | fi |
| 7516 | |
| 7517 | rm -f conf$$ conf$$.exe conf$$.file |
| 7518 | echo >conf$$.file |
| 7519 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 7520 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 7521 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 7522 | if test -f conf$$.exe; then |
| 7523 | # Don't use ln at all; we don't have any links |
| 7524 | as_ln_s='cp -p' |
| 7525 | else |
| 7526 | as_ln_s='ln -s' |
| 7527 | fi |
| 7528 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7529 | as_ln_s=ln |
| 7530 | else |
| 7531 | as_ln_s='cp -p' |
| 7532 | fi |
| 7533 | rm -f conf$$ conf$$.exe conf$$.file |
| 7534 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7535 | as_executable_p="test -f" |
| 7536 | |
| 7537 | # Sed expression to map a string onto a valid CPP name. |
| 7538 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 7539 | |
| 7540 | # Sed expression to map a string onto a valid variable name. |
| 7541 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 7542 | |
| 7543 | |
| 7544 | # IFS |
| 7545 | # We need space, tab and new line, in precisely that order. |
| 7546 | as_nl=' |
| 7547 | ' |
| 7548 | IFS=" $as_nl" |
| 7549 | |
| 7550 | # CDPATH. |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7551 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7552 | |
| 7553 | exec 6>&1 |
| 7554 | |
| 7555 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 7556 | # report actual input values of CONFIG_FILES etc. instead of their |
| 7557 | # values after options handling. Logging --version etc. is OK. |
| 7558 | exec 5>>config.log |
| 7559 | { |
| 7560 | echo |
| 7561 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 7562 | ## Running $as_me. ## |
| 7563 | _ASBOX |
| 7564 | } >&5 |
| 7565 | cat >&5 <<_CSEOF |
| 7566 | |
| 7567 | This file was extended by $as_me, which was |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7568 | generated by GNU Autoconf 2.53. Invocation command line was |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7569 | |
| 7570 | CONFIG_FILES = $CONFIG_FILES |
| 7571 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 7572 | CONFIG_LINKS = $CONFIG_LINKS |
| 7573 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 7574 | $ $0 $@ |
| 7575 | |
| 7576 | _CSEOF |
| 7577 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 7578 | echo >&5 |
| 7579 | _ACEOF |
| 7580 | |
| 7581 | # Files that config.status was made for. |
| 7582 | if test -n "$ac_config_files"; then |
| 7583 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 7584 | fi |
| 7585 | |
| 7586 | if test -n "$ac_config_headers"; then |
| 7587 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 7588 | fi |
| 7589 | |
| 7590 | if test -n "$ac_config_links"; then |
| 7591 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 7592 | fi |
| 7593 | |
| 7594 | if test -n "$ac_config_commands"; then |
| 7595 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 7596 | fi |
| 7597 | |
| 7598 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7599 | |
| 7600 | ac_cs_usage="\ |
| 7601 | \`$as_me' instantiates files from templates according to the |
| 7602 | current configuration. |
| 7603 | |
| 7604 | Usage: $0 [OPTIONS] [FILE]... |
| 7605 | |
| 7606 | -h, --help print this help, then exit |
| 7607 | -V, --version print version number, then exit |
| 7608 | -d, --debug don't remove temporary files |
| 7609 | --recheck update $as_me by reconfiguring in the same conditions |
| 7610 | --file=FILE[:TEMPLATE] |
| 7611 | instantiate the configuration file FILE |
| 7612 | --header=FILE[:TEMPLATE] |
| 7613 | instantiate the configuration header FILE |
| 7614 | |
| 7615 | Configuration files: |
| 7616 | $config_files |
| 7617 | |
| 7618 | Configuration headers: |
| 7619 | $config_headers |
| 7620 | |
| 7621 | Configuration commands: |
| 7622 | $config_commands |
| 7623 | |
| 7624 | Report bugs to <bug-autoconf@gnu.org>." |
| 7625 | _ACEOF |
| 7626 | |
| 7627 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7628 | ac_cs_version="\\ |
| 7629 | config.status |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7630 | configured by $0, generated by GNU Autoconf 2.53, |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7631 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 7632 | |
| 7633 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 7634 | Free Software Foundation, Inc. |
| 7635 | This config.status script is free software; the Free Software Foundation |
| 7636 | gives unlimited permission to copy, distribute and modify it." |
| 7637 | srcdir=$srcdir |
| 7638 | INSTALL="$INSTALL" |
| 7639 | _ACEOF |
| 7640 | |
| 7641 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7642 | # If no file are specified by the user, then we need to provide default |
| 7643 | # value. By we need to know if files were specified by the user. |
| 7644 | ac_need_defaults=: |
| 7645 | while test $# != 0 |
| 7646 | do |
| 7647 | case $1 in |
| 7648 | --*=*) |
| 7649 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 7650 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7651 | shift |
| 7652 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 7653 | shift |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7654 | ;; |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7655 | -*);; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7656 | *) # This is not an option, so the user has probably given explicit |
| 7657 | # arguments. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7658 | ac_need_defaults=false;; |
| 7659 | esac |
| 7660 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7661 | case $1 in |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7662 | # Handling of the options. |
| 7663 | _ACEOF |
| 7664 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7665 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 7666 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 7667 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 7668 | _ACEOF |
| 7669 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7670 | --version | --vers* | -V ) |
| 7671 | echo "$ac_cs_version"; exit 0 ;; |
| 7672 | --he | --h) |
| 7673 | # Conflict between --help and --header |
| 7674 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 7675 | Try \`$0 --help' for more information." >&5 |
| 7676 | echo "$as_me: error: ambiguous option: $1 |
| 7677 | Try \`$0 --help' for more information." >&2;} |
| 7678 | { (exit 1); exit 1; }; };; |
| 7679 | --help | --hel | -h ) |
| 7680 | echo "$ac_cs_usage"; exit 0 ;; |
| 7681 | --debug | --d* | -d ) |
| 7682 | debug=: ;; |
| 7683 | --file | --fil | --fi | --f ) |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7684 | shift |
| 7685 | CONFIG_FILES="$CONFIG_FILES $1" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7686 | ac_need_defaults=false;; |
| 7687 | --header | --heade | --head | --hea ) |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7688 | shift |
| 7689 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7690 | ac_need_defaults=false;; |
| 7691 | |
| 7692 | # This is an error. |
| 7693 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 7694 | Try \`$0 --help' for more information." >&5 |
| 7695 | echo "$as_me: error: unrecognized option: $1 |
| 7696 | Try \`$0 --help' for more information." >&2;} |
| 7697 | { (exit 1); exit 1; }; } ;; |
| 7698 | |
| 7699 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 7700 | |
| 7701 | esac |
| 7702 | shift |
| 7703 | done |
| 7704 | |
| 7705 | _ACEOF |
| 7706 | |
| 7707 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7708 | # |
| 7709 | # INIT-COMMANDS section. |
| 7710 | # |
| 7711 | |
| 7712 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 7713 | |
| 7714 | _ACEOF |
| 7715 | |
| 7716 | |
| 7717 | |
| 7718 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7719 | for ac_config_target in $ac_config_targets |
| 7720 | do |
| 7721 | case "$ac_config_target" in |
| 7722 | # Handling of arguments. |
| 7723 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 7724 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 7725 | "zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;; |
| 7726 | "ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;; |
| 7727 | "ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;; |
| 7728 | "bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;; |
| 7729 | "ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;; |
| 7730 | "ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;; |
| 7731 | "vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;; |
| 7732 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 7733 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 7734 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 7735 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 7736 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 7737 | { (exit 1); exit 1; }; };; |
| 7738 | esac |
| 7739 | done |
| 7740 | |
| 7741 | # If the user did not use the arguments to specify the items to instantiate, |
| 7742 | # then the envvar interface is used. Set only those that are not. |
| 7743 | # We use the long form for the default assignment because of an extremely |
| 7744 | # bizarre bug on SunOS 4.1.3. |
| 7745 | if $ac_need_defaults; then |
| 7746 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 7747 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7748 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 7749 | fi |
| 7750 | |
| 7751 | # Create a temporary directory, and hook for its removal unless debugging. |
| 7752 | $debug || |
| 7753 | { |
| 7754 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 7755 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 7756 | } |
| 7757 | |
| 7758 | # Create a (secure) tmp directory for tmp files. |
| 7759 | : ${TMPDIR=/tmp} |
| 7760 | { |
| 7761 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 7762 | test -n "$tmp" && test -d "$tmp" |
| 7763 | } || |
| 7764 | { |
| 7765 | tmp=$TMPDIR/cs$$-$RANDOM |
| 7766 | (umask 077 && mkdir $tmp) |
| 7767 | } || |
| 7768 | { |
| 7769 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 7770 | { (exit 1); exit 1; } |
| 7771 | } |
| 7772 | |
| 7773 | _ACEOF |
| 7774 | |
| 7775 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7776 | |
| 7777 | # |
| 7778 | # CONFIG_FILES section. |
| 7779 | # |
| 7780 | |
| 7781 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 7782 | # This happens for instance when ./config.status config.h |
| 7783 | if test -n "\$CONFIG_FILES"; then |
| 7784 | # Protect against being on the right side of a sed subst in config.status. |
| 7785 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 7786 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 7787 | s,@SHELL@,$SHELL,;t t |
| 7788 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 7789 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 7790 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 7791 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 7792 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 7793 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 7794 | s,@exec_prefix@,$exec_prefix,;t t |
| 7795 | s,@prefix@,$prefix,;t t |
| 7796 | s,@program_transform_name@,$program_transform_name,;t t |
| 7797 | s,@bindir@,$bindir,;t t |
| 7798 | s,@sbindir@,$sbindir,;t t |
| 7799 | s,@libexecdir@,$libexecdir,;t t |
| 7800 | s,@datadir@,$datadir,;t t |
| 7801 | s,@sysconfdir@,$sysconfdir,;t t |
| 7802 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 7803 | s,@localstatedir@,$localstatedir,;t t |
| 7804 | s,@libdir@,$libdir,;t t |
| 7805 | s,@includedir@,$includedir,;t t |
| 7806 | s,@oldincludedir@,$oldincludedir,;t t |
| 7807 | s,@infodir@,$infodir,;t t |
| 7808 | s,@mandir@,$mandir,;t t |
| 7809 | s,@build_alias@,$build_alias,;t t |
| 7810 | s,@host_alias@,$host_alias,;t t |
| 7811 | s,@target_alias@,$target_alias,;t t |
| 7812 | s,@DEFS@,$DEFS,;t t |
| 7813 | s,@ECHO_C@,$ECHO_C,;t t |
| 7814 | s,@ECHO_N@,$ECHO_N,;t t |
| 7815 | s,@ECHO_T@,$ECHO_T,;t t |
| 7816 | s,@LIBS@,$LIBS,;t t |
| 7817 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 7818 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 7819 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7820 | s,@PACKAGE@,$PACKAGE,;t t |
| 7821 | s,@VERSION@,$VERSION,;t t |
| 7822 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 7823 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 7824 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 7825 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 7826 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 7827 | s,@AMTAR@,$AMTAR,;t t |
| 7828 | s,@install_sh@,$install_sh,;t t |
| 7829 | s,@STRIP@,$STRIP,;t t |
| 7830 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 7831 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 7832 | s,@AWK@,$AWK,;t t |
| 7833 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 7834 | s,@build@,$build,;t t |
| 7835 | s,@build_cpu@,$build_cpu,;t t |
| 7836 | s,@build_vendor@,$build_vendor,;t t |
| 7837 | s,@build_os@,$build_os,;t t |
| 7838 | s,@host@,$host,;t t |
| 7839 | s,@host_cpu@,$host_cpu,;t t |
| 7840 | s,@host_vendor@,$host_vendor,;t t |
| 7841 | s,@host_os@,$host_os,;t t |
| 7842 | s,@CC@,$CC,;t t |
| 7843 | s,@CFLAGS@,$CFLAGS,;t t |
| 7844 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 7845 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 7846 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 7847 | s,@EXEEXT@,$EXEEXT,;t t |
| 7848 | s,@OBJEXT@,$OBJEXT,;t t |
| 7849 | s,@DEPDIR@,$DEPDIR,;t t |
| 7850 | s,@am__include@,$am__include,;t t |
| 7851 | s,@am__quote@,$am__quote,;t t |
| 7852 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 7853 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 7854 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 7855 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7856 | s,@CPP@,$CPP,;t t |
| 7857 | s,@AR@,$AR,;t t |
| 7858 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 7859 | s,@RANLIB@,$RANLIB,;t t |
| 7860 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7861 | s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t |
| 7862 | s,@LIBPAM@,$LIBPAM,;t t |
| 7863 | s,@RT_METHOD@,$RT_METHOD,;t t |
| 7864 | s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t |
| 7865 | s,@OTHER_METHOD@,$OTHER_METHOD,;t t |
| 7866 | s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t |
| 7867 | s,@IF_METHOD@,$IF_METHOD,;t t |
| 7868 | s,@IF_PROC@,$IF_PROC,;t t |
| 7869 | s,@IPFORWARD@,$IPFORWARD,;t t |
| 7870 | s,@LIB_IPV6@,$LIB_IPV6,;t t |
| 7871 | s,@ZEBRA@,$ZEBRA,;t t |
| 7872 | s,@BGPD@,$BGPD,;t t |
| 7873 | s,@RIPD@,$RIPD,;t t |
| 7874 | s,@RIPNGD@,$RIPNGD,;t t |
| 7875 | s,@OSPFD@,$OSPFD,;t t |
| 7876 | s,@OSPF6D@,$OSPF6D,;t t |
| 7877 | s,@VTYSH@,$VTYSH,;t t |
| 7878 | s,@INCLUDES@,$INCLUDES,;t t |
| 7879 | s,@CURSES@,$CURSES,;t t |
| 7880 | s,@LIB_REGEX@,$LIB_REGEX,;t t |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7881 | CEOF |
| 7882 | |
| 7883 | _ACEOF |
| 7884 | |
| 7885 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7886 | # Split the substitutions into bite-sized pieces for seds with |
| 7887 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 7888 | ac_max_sed_lines=48 |
| 7889 | ac_sed_frag=1 # Number of current file. |
| 7890 | ac_beg=1 # First line for current file. |
| 7891 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 7892 | ac_more_lines=: |
| 7893 | ac_sed_cmds= |
| 7894 | while $ac_more_lines; do |
| 7895 | if test $ac_beg -gt 1; then |
| 7896 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7897 | else |
| 7898 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7899 | fi |
| 7900 | if test ! -s $tmp/subs.frag; then |
| 7901 | ac_more_lines=false |
| 7902 | else |
| 7903 | # The purpose of the label and of the branching condition is to |
| 7904 | # speed up the sed processing (if there are no `@' at all, there |
| 7905 | # is no need to browse any of the substitutions). |
| 7906 | # These are the two extra sed commands mentioned above. |
| 7907 | (echo ':t |
| 7908 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 7909 | if test -z "$ac_sed_cmds"; then |
| 7910 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7911 | else |
| 7912 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7913 | fi |
| 7914 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 7915 | ac_beg=$ac_end |
| 7916 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 7917 | fi |
| 7918 | done |
| 7919 | if test -z "$ac_sed_cmds"; then |
| 7920 | ac_sed_cmds=cat |
| 7921 | fi |
| 7922 | fi # test -n "$CONFIG_FILES" |
| 7923 | |
| 7924 | _ACEOF |
| 7925 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7926 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 7927 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7928 | case $ac_file in |
| 7929 | - | *:- | *:-:* ) # input from stdin |
| 7930 | cat >$tmp/stdin |
| 7931 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7932 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7933 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7934 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7935 | * ) ac_file_in=$ac_file.in ;; |
| 7936 | esac |
| 7937 | |
| 7938 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 7939 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 7940 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7941 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7942 | X"$ac_file" : 'X\(//\)$' \| \ |
| 7943 | X"$ac_file" : 'X\(/\)' \| \ |
| 7944 | . : '\(.\)' 2>/dev/null || |
| 7945 | echo X"$ac_file" | |
| 7946 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7947 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7948 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7949 | /^X\(\/\).*/{ s//\1/; q; } |
| 7950 | s/.*/./; q'` |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7951 | { case "$ac_dir" in |
| 7952 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 7953 | *) as_incr_dir=.;; |
| 7954 | esac |
| 7955 | as_dummy="$ac_dir" |
| 7956 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 7957 | case $as_mkdir_dir in |
| 7958 | # Skip DOS drivespec |
| 7959 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 7960 | *) |
| 7961 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 7962 | test -d "$as_incr_dir" || |
| 7963 | mkdir "$as_incr_dir" || |
| 7964 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 7965 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 7966 | { (exit 1); exit 1; }; } |
| 7967 | ;; |
| 7968 | esac |
| 7969 | done; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7970 | |
| 7971 | ac_builddir=. |
| 7972 | |
| 7973 | if test "$ac_dir" != .; then |
| 7974 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 7975 | # A "../" for each directory in $ac_dir_suffix. |
| 7976 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 7977 | else |
| 7978 | ac_dir_suffix= ac_top_builddir= |
| 7979 | fi |
| 7980 | |
| 7981 | case $srcdir in |
| 7982 | .) # No --srcdir option. We are building in place. |
| 7983 | ac_srcdir=. |
| 7984 | if test -z "$ac_top_builddir"; then |
| 7985 | ac_top_srcdir=. |
| 7986 | else |
| 7987 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 7988 | fi ;; |
| 7989 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 7990 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 7991 | ac_top_srcdir=$srcdir ;; |
| 7992 | *) # Relative path. |
| 7993 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 7994 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 7995 | esac |
| 7996 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 7997 | # absolute. |
| 7998 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 7999 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8000 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 8001 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 8002 | |
| 8003 | |
| 8004 | case $INSTALL in |
| 8005 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 8006 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 8007 | esac |
| 8008 | |
| 8009 | if test x"$ac_file" != x-; then |
| 8010 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 8011 | echo "$as_me: creating $ac_file" >&6;} |
| 8012 | rm -f "$ac_file" |
| 8013 | fi |
| 8014 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 8015 | # use $as_me), people would be surprised to read: |
| 8016 | # /* config.h. Generated by config.status. */ |
| 8017 | if test x"$ac_file" = x-; then |
| 8018 | configure_input= |
| 8019 | else |
| 8020 | configure_input="$ac_file. " |
| 8021 | fi |
| 8022 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 8023 | sed 's,.*/,,'` by configure." |
| 8024 | |
| 8025 | # First look for the input files in the build tree, otherwise in the |
| 8026 | # src tree. |
| 8027 | ac_file_inputs=`IFS=: |
| 8028 | for f in $ac_file_in; do |
| 8029 | case $f in |
| 8030 | -) echo $tmp/stdin ;; |
| 8031 | [\\/$]*) |
| 8032 | # Absolute (can't be DOS-style, as IFS=:) |
| 8033 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 8034 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 8035 | { (exit 1); exit 1; }; } |
| 8036 | echo $f;; |
| 8037 | *) # Relative |
| 8038 | if test -f "$f"; then |
| 8039 | # Build tree |
| 8040 | echo $f |
| 8041 | elif test -f "$srcdir/$f"; then |
| 8042 | # Source tree |
| 8043 | echo $srcdir/$f |
| 8044 | else |
| 8045 | # /dev/null tree |
| 8046 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 8047 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 8048 | { (exit 1); exit 1; }; } |
| 8049 | fi;; |
| 8050 | esac |
| 8051 | done` || { (exit 1); exit 1; } |
| 8052 | _ACEOF |
| 8053 | cat >>$CONFIG_STATUS <<_ACEOF |
| 8054 | sed "$ac_vpsub |
| 8055 | $extrasub |
| 8056 | _ACEOF |
| 8057 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8058 | :t |
| 8059 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 8060 | s,@configure_input@,$configure_input,;t t |
| 8061 | s,@srcdir@,$ac_srcdir,;t t |
| 8062 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 8063 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 8064 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 8065 | s,@builddir@,$ac_builddir,;t t |
| 8066 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 8067 | s,@top_builddir@,$ac_top_builddir,;t t |
| 8068 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 8069 | s,@INSTALL@,$ac_INSTALL,;t t |
| 8070 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 8071 | rm -f $tmp/stdin |
| 8072 | if test x"$ac_file" != x-; then |
| 8073 | mv $tmp/out $ac_file |
| 8074 | else |
| 8075 | cat $tmp/out |
| 8076 | rm -f $tmp/out |
| 8077 | fi |
| 8078 | |
| 8079 | done |
| 8080 | _ACEOF |
| 8081 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8082 | |
| 8083 | # |
| 8084 | # CONFIG_HEADER section. |
| 8085 | # |
| 8086 | |
| 8087 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 8088 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 8089 | # |
| 8090 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 8091 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 8092 | ac_dB='[ ].*$,\1#\2' |
| 8093 | ac_dC=' ' |
| 8094 | ac_dD=',;t' |
| 8095 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 8096 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 8097 | ac_uB='$,\1#\2define\3' |
| 8098 | ac_uC=' ' |
| 8099 | ac_uD=',;t' |
| 8100 | |
| 8101 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 8102 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 8103 | case $ac_file in |
| 8104 | - | *:- | *:-:* ) # input from stdin |
| 8105 | cat >$tmp/stdin |
| 8106 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 8107 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 8108 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 8109 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 8110 | * ) ac_file_in=$ac_file.in ;; |
| 8111 | esac |
| 8112 | |
| 8113 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 8114 | echo "$as_me: creating $ac_file" >&6;} |
| 8115 | |
| 8116 | # First look for the input files in the build tree, otherwise in the |
| 8117 | # src tree. |
| 8118 | ac_file_inputs=`IFS=: |
| 8119 | for f in $ac_file_in; do |
| 8120 | case $f in |
| 8121 | -) echo $tmp/stdin ;; |
| 8122 | [\\/$]*) |
| 8123 | # Absolute (can't be DOS-style, as IFS=:) |
| 8124 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 8125 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 8126 | { (exit 1); exit 1; }; } |
| 8127 | echo $f;; |
| 8128 | *) # Relative |
| 8129 | if test -f "$f"; then |
| 8130 | # Build tree |
| 8131 | echo $f |
| 8132 | elif test -f "$srcdir/$f"; then |
| 8133 | # Source tree |
| 8134 | echo $srcdir/$f |
| 8135 | else |
| 8136 | # /dev/null tree |
| 8137 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 8138 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 8139 | { (exit 1); exit 1; }; } |
| 8140 | fi;; |
| 8141 | esac |
| 8142 | done` || { (exit 1); exit 1; } |
| 8143 | # Remove the trailing spaces. |
| 8144 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 8145 | |
| 8146 | _ACEOF |
| 8147 | |
| 8148 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 8149 | # `conftest.undefs', that substitutes the proper values into |
| 8150 | # config.h.in to produce config.h. The first handles `#define' |
| 8151 | # templates, and the second `#undef' templates. |
| 8152 | # And first: Protect against being on the right side of a sed subst in |
| 8153 | # config.status. Protect against being in an unquoted here document |
| 8154 | # in config.status. |
| 8155 | rm -f conftest.defines conftest.undefs |
| 8156 | # Using a here document instead of a string reduces the quoting nightmare. |
| 8157 | # Putting comments in sed scripts is not portable. |
| 8158 | # |
| 8159 | # `end' is used to avoid that the second main sed command (meant for |
| 8160 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 8161 | # See the Autoconf documentation for `clear'. |
| 8162 | cat >confdef2sed.sed <<\_ACEOF |
| 8163 | s/[\\&,]/\\&/g |
| 8164 | s,[\\$`],\\&,g |
| 8165 | t clear |
| 8166 | : clear |
| 8167 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 8168 | t end |
| 8169 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 8170 | : end |
| 8171 | _ACEOF |
| 8172 | # If some macros were called several times there might be several times |
| 8173 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 8174 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 8175 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 8176 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 8177 | rm -f confdef2sed.sed |
| 8178 | |
| 8179 | # This sed command replaces #undef with comments. This is necessary, for |
| 8180 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 8181 | # on some systems where configure will not decide to define it. |
| 8182 | cat >>conftest.undefs <<\_ACEOF |
| 8183 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 8184 | _ACEOF |
| 8185 | |
| 8186 | # Break up conftest.defines because some shells have a limit on the size |
| 8187 | # of here documents, and old seds have small limits too (100 cmds). |
| 8188 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 8189 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8190 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 8191 | echo ' :' >>$CONFIG_STATUS |
| 8192 | rm -f conftest.tail |
| 8193 | while grep . conftest.defines >/dev/null |
| 8194 | do |
| 8195 | # Write a limited-size here document to $tmp/defines.sed. |
| 8196 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 8197 | # Speed up: don't consider the non `#define' lines. |
| 8198 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 8199 | # Work around the forget-to-reset-the-flag bug. |
| 8200 | echo 't clr' >>$CONFIG_STATUS |
| 8201 | echo ': clr' >>$CONFIG_STATUS |
| 8202 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 8203 | echo 'CEOF |
| 8204 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 8205 | rm -f $tmp/in |
| 8206 | mv $tmp/out $tmp/in |
| 8207 | ' >>$CONFIG_STATUS |
| 8208 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 8209 | rm -f conftest.defines |
| 8210 | mv conftest.tail conftest.defines |
| 8211 | done |
| 8212 | rm -f conftest.defines |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 8213 | echo ' fi # egrep' >>$CONFIG_STATUS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8214 | echo >>$CONFIG_STATUS |
| 8215 | |
| 8216 | # Break up conftest.undefs because some shells have a limit on the size |
| 8217 | # of here documents, and old seds have small limits too (100 cmds). |
| 8218 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 8219 | rm -f conftest.tail |
| 8220 | while grep . conftest.undefs >/dev/null |
| 8221 | do |
| 8222 | # Write a limited-size here document to $tmp/undefs.sed. |
| 8223 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 8224 | # Speed up: don't consider the non `#undef' |
| 8225 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 8226 | # Work around the forget-to-reset-the-flag bug. |
| 8227 | echo 't clr' >>$CONFIG_STATUS |
| 8228 | echo ': clr' >>$CONFIG_STATUS |
| 8229 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 8230 | echo 'CEOF |
| 8231 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 8232 | rm -f $tmp/in |
| 8233 | mv $tmp/out $tmp/in |
| 8234 | ' >>$CONFIG_STATUS |
| 8235 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 8236 | rm -f conftest.undefs |
| 8237 | mv conftest.tail conftest.undefs |
| 8238 | done |
| 8239 | rm -f conftest.undefs |
| 8240 | |
| 8241 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8242 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 8243 | # use $as_me), people would be surprised to read: |
| 8244 | # /* config.h. Generated by config.status. */ |
| 8245 | if test x"$ac_file" = x-; then |
| 8246 | echo "/* Generated by configure. */" >$tmp/config.h |
| 8247 | else |
| 8248 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 8249 | fi |
| 8250 | cat $tmp/in >>$tmp/config.h |
| 8251 | rm -f $tmp/in |
| 8252 | if test x"$ac_file" != x-; then |
| 8253 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 8254 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 8255 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 8256 | else |
| 8257 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 8258 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8259 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 8260 | X"$ac_file" : 'X\(//\)$' \| \ |
| 8261 | X"$ac_file" : 'X\(/\)' \| \ |
| 8262 | . : '\(.\)' 2>/dev/null || |
| 8263 | echo X"$ac_file" | |
| 8264 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8265 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8266 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8267 | /^X\(\/\).*/{ s//\1/; q; } |
| 8268 | s/.*/./; q'` |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 8269 | { case "$ac_dir" in |
| 8270 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 8271 | *) as_incr_dir=.;; |
| 8272 | esac |
| 8273 | as_dummy="$ac_dir" |
| 8274 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 8275 | case $as_mkdir_dir in |
| 8276 | # Skip DOS drivespec |
| 8277 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 8278 | *) |
| 8279 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 8280 | test -d "$as_incr_dir" || |
| 8281 | mkdir "$as_incr_dir" || |
| 8282 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 8283 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 8284 | { (exit 1); exit 1; }; } |
| 8285 | ;; |
| 8286 | esac |
| 8287 | done; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8288 | |
| 8289 | rm -f $ac_file |
| 8290 | mv $tmp/config.h $ac_file |
| 8291 | fi |
| 8292 | else |
| 8293 | cat $tmp/config.h |
| 8294 | rm -f $tmp/config.h |
| 8295 | fi |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 8296 | # Run the commands associated with the file. |
| 8297 | case $ac_file in |
| 8298 | config.h ) # update the timestamp |
| 8299 | echo 'timestamp for config.h' >"./stamp-h1" |
| 8300 | ;; |
| 8301 | esac |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8302 | done |
| 8303 | _ACEOF |
| 8304 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8305 | |
| 8306 | # |
| 8307 | # CONFIG_COMMANDS section. |
| 8308 | # |
| 8309 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 8310 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 8311 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 8312 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 8313 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8314 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 8315 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 8316 | X"$ac_dest" : 'X\(/\)' \| \ |
| 8317 | . : '\(.\)' 2>/dev/null || |
| 8318 | echo X"$ac_dest" | |
| 8319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8320 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8321 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8322 | /^X\(\/\).*/{ s//\1/; q; } |
| 8323 | s/.*/./; q'` |
| 8324 | ac_builddir=. |
| 8325 | |
| 8326 | if test "$ac_dir" != .; then |
| 8327 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 8328 | # A "../" for each directory in $ac_dir_suffix. |
| 8329 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 8330 | else |
| 8331 | ac_dir_suffix= ac_top_builddir= |
| 8332 | fi |
| 8333 | |
| 8334 | case $srcdir in |
| 8335 | .) # No --srcdir option. We are building in place. |
| 8336 | ac_srcdir=. |
| 8337 | if test -z "$ac_top_builddir"; then |
| 8338 | ac_top_srcdir=. |
| 8339 | else |
| 8340 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 8341 | fi ;; |
| 8342 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 8343 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 8344 | ac_top_srcdir=$srcdir ;; |
| 8345 | *) # Relative path. |
| 8346 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 8347 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 8348 | esac |
| 8349 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 8350 | # absolute. |
| 8351 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 8352 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8353 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 8354 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 8355 | |
| 8356 | |
| 8357 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 8358 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 8359 | case $ac_dest in |
| 8360 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 8361 | # Strip MF so we end up with the name of the file. |
| 8362 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 8363 | # Check whether this is an Automake generated Makefile or not. |
| 8364 | # We used to match only the files named `Makefile.in', but |
| 8365 | # some people rename them; so instead we look at the file content. |
| 8366 | # Grep'ing the first line is not enough: some people post-process |
| 8367 | # each Makefile.in and add a new line on top of each file to say so. |
| 8368 | # So let's grep whole file. |
| 8369 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 8370 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 8371 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8372 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 8373 | X"$mf" : 'X\(//\)$' \| \ |
| 8374 | X"$mf" : 'X\(/\)' \| \ |
| 8375 | . : '\(.\)' 2>/dev/null || |
| 8376 | echo X"$mf" | |
| 8377 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8378 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8379 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8380 | /^X\(\/\).*/{ s//\1/; q; } |
| 8381 | s/.*/./; q'` |
| 8382 | else |
| 8383 | continue |
| 8384 | fi |
| 8385 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 8386 | # Extract the definition of DEP_FILES from the Makefile without |
| 8387 | # running `make'. |
| 8388 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 8389 | test -z "$DEPDIR" && continue |
| 8390 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 8391 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 8392 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 8393 | # We invoke sed twice because it is the simplest approach to |
| 8394 | # changing $(DEPDIR) to its actual value in the expansion. |
| 8395 | for file in `sed -n -e ' |
| 8396 | /^DEP_FILES = .*\\\\$/ { |
| 8397 | s/^DEP_FILES = // |
| 8398 | :loop |
| 8399 | s/\\\\$// |
| 8400 | p |
| 8401 | n |
| 8402 | /\\\\$/ b loop |
| 8403 | p |
| 8404 | } |
| 8405 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 8406 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 8407 | # Make sure the directory exists. |
| 8408 | test -f "$dirpart/$file" && continue |
| 8409 | fdir=`(dirname "$file") 2>/dev/null || |
| 8410 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8411 | X"$file" : 'X\(//\)[^/]' \| \ |
| 8412 | X"$file" : 'X\(//\)$' \| \ |
| 8413 | X"$file" : 'X\(/\)' \| \ |
| 8414 | . : '\(.\)' 2>/dev/null || |
| 8415 | echo X"$file" | |
| 8416 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 8417 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 8418 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 8419 | /^X\(\/\).*/{ s//\1/; q; } |
| 8420 | s/.*/./; q'` |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 8421 | { case $dirpart/$fdir in |
| 8422 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 8423 | *) as_incr_dir=.;; |
| 8424 | esac |
| 8425 | as_dummy=$dirpart/$fdir |
| 8426 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 8427 | case $as_mkdir_dir in |
| 8428 | # Skip DOS drivespec |
| 8429 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 8430 | *) |
| 8431 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 8432 | test -d "$as_incr_dir" || |
| 8433 | mkdir "$as_incr_dir" || |
| 8434 | { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5 |
| 8435 | echo "$as_me: error: cannot create $dirpart/$fdir" >&2;} |
| 8436 | { (exit 1); exit 1; }; } |
| 8437 | ;; |
| 8438 | esac |
| 8439 | done; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8440 | |
| 8441 | # echo "creating $dirpart/$file" |
| 8442 | echo '# dummy' > "$dirpart/$file" |
| 8443 | done |
| 8444 | done |
| 8445 | ;; |
| 8446 | esac |
| 8447 | done |
| 8448 | _ACEOF |
| 8449 | |
| 8450 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8451 | |
| 8452 | { (exit 0); exit 0; } |
| 8453 | _ACEOF |
| 8454 | chmod +x $CONFIG_STATUS |
| 8455 | ac_clean_files=$ac_clean_files_save |
| 8456 | |
| 8457 | |
| 8458 | # configure is writing to config.log, and then calls config.status. |
| 8459 | # config.status does its own redirection, appending to config.log. |
| 8460 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 8461 | # by configure, so config.status won't be able to write to it; its |
| 8462 | # output is simply discarded. So we exec the FD to /dev/null, |
| 8463 | # effectively closing config.log, so it can be properly (re)opened and |
| 8464 | # appended to by config.status. When coming back to configure, we |
| 8465 | # need to make the FD available again. |
| 8466 | if test "$no_create" != yes; then |
| 8467 | ac_cs_success=: |
| 8468 | exec 5>/dev/null |
| 8469 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 8470 | exec 5>>config.log |
| 8471 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8472 | # would make configure fail if this is the last instruction. |
| 8473 | $ac_cs_success || { (exit 1); exit 1; } |
| 8474 | fi |
| 8475 | |
| 8476 | |
| 8477 | echo " |
| 8478 | zebra configuration |
| 8479 | ------------------- |
| 8480 | zebra version : ${VERSION} |
| 8481 | host operationg system : ${host_os} |
| 8482 | source code location : ${srcdir} |
| 8483 | compiler : ${CC} |
| 8484 | compiler flags : ${CFLAGS} |
| 8485 | directory for pid files : ${ac_piddir} |
| 8486 | " |