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 | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3 | # Generated by Autoconf 2.52d. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4 | # |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 6 | # Free Software Foundation, Inc. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 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 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 10 | # Avoid depending upon Character Ranges. |
| 11 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14 | as_cr_digits='0123456789' |
| 15 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16 | |
| 17 | # Sed expression to map a string onto a valid variable name. |
| 18 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 19 | |
| 20 | # Sed expression to map a string onto a valid CPP name. |
| 21 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 22 | |
| 23 | ## --------------------- ## |
| 24 | ## M4sh Initialization. ## |
| 25 | ## --------------------- ## |
| 26 | |
| 27 | # Be Bourne compatible |
| 28 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 29 | emulate sh |
| 30 | NULLCMD=: |
| 31 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 32 | set -o posix |
| 33 | fi |
| 34 | |
| 35 | # Name of the executable. |
| 36 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
| 37 | |
| 38 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 39 | as_expr=expr |
| 40 | else |
| 41 | as_expr=false |
| 42 | fi |
| 43 | |
| 44 | rm -f conf$$ conf$$.exe conf$$.file |
| 45 | echo >conf$$.file |
| 46 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 47 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 48 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 49 | if test -f conf$$.exe; then |
| 50 | # Don't use ln at all; we don't have any links |
| 51 | as_ln_s='cp -p' |
| 52 | else |
| 53 | as_ln_s='ln -s' |
| 54 | fi |
| 55 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 56 | as_ln_s=ln |
| 57 | else |
| 58 | as_ln_s='cp -p' |
| 59 | fi |
| 60 | rm -f conf$$ conf$$.exe conf$$.file |
| 61 | |
| 62 | as_executable_p="test -f" |
| 63 | |
| 64 | # Support unset when possible. |
| 65 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 66 | as_unset=unset |
| 67 | else |
| 68 | as_unset=false |
| 69 | fi |
| 70 | |
| 71 | # NLS nuisances. |
| 72 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| 73 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| 74 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| 75 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| 76 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| 77 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| 78 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| 79 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
| 80 | |
| 81 | # IFS |
| 82 | # We need space, tab and new line, in precisely that order. |
| 83 | as_nl=' |
| 84 | ' |
| 85 | IFS=" $as_nl" |
| 86 | |
| 87 | # CDPATH. |
| 88 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
| 89 | |
| 90 | # Name of the host. |
| 91 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 92 | # so uname gets run too. |
| 93 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 94 | |
| 95 | exec 6>&1 |
| 96 | |
| 97 | # |
| 98 | # Initializations. |
| 99 | # |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 100 | ac_default_prefix=/usr/local |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 101 | cross_compiling=no |
| 102 | subdirs= |
| 103 | MFLAGS= MAKEFLAGS= |
| 104 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 105 | |
| 106 | # Maximum number of lines to put in a shell here document. |
| 107 | # This variable seems obsolete. It should probably be removed, and |
| 108 | # only ac_max_sed_lines should be used. |
| 109 | : ${ac_max_here_lines=38} |
| 110 | |
| 111 | ac_unique_file="lib/zebra.h" |
| 112 | # Factoring default headers for most tests. |
| 113 | ac_includes_default="\ |
| 114 | #include <stdio.h> |
| 115 | #if HAVE_SYS_TYPES_H |
| 116 | # include <sys/types.h> |
| 117 | #endif |
| 118 | #if HAVE_SYS_STAT_H |
| 119 | # include <sys/stat.h> |
| 120 | #endif |
| 121 | #if STDC_HEADERS |
| 122 | # include <stdlib.h> |
| 123 | # include <stddef.h> |
| 124 | #else |
| 125 | # if HAVE_STDLIB_H |
| 126 | # include <stdlib.h> |
| 127 | # endif |
| 128 | #endif |
| 129 | #if HAVE_STRING_H |
| 130 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 131 | # include <memory.h> |
| 132 | # endif |
| 133 | # include <string.h> |
| 134 | #endif |
| 135 | #if HAVE_STRINGS_H |
| 136 | # include <strings.h> |
| 137 | #endif |
| 138 | #if HAVE_INTTYPES_H |
| 139 | # include <inttypes.h> |
| 140 | #else |
| 141 | # if HAVE_STDINT_H |
| 142 | # include <stdint.h> |
| 143 | # endif |
| 144 | #endif |
| 145 | #if HAVE_UNISTD_H |
| 146 | # include <unistd.h> |
| 147 | #endif" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 148 | |
| 149 | # Initialize some variables set by options. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 150 | ac_init_help= |
| 151 | ac_init_version=false |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 152 | # The variables have the same names as the options, with |
| 153 | # dashes changed to underlines. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 154 | cache_file=/dev/null |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 155 | exec_prefix=NONE |
| 156 | no_create= |
| 157 | no_recursion= |
| 158 | prefix=NONE |
| 159 | program_prefix=NONE |
| 160 | program_suffix=NONE |
| 161 | program_transform_name=s,x,x, |
| 162 | silent= |
| 163 | site= |
| 164 | srcdir= |
| 165 | verbose= |
| 166 | x_includes=NONE |
| 167 | x_libraries=NONE |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 168 | |
| 169 | # Installation directory options. |
| 170 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 171 | # and all the variables that are supposed to be based on exec_prefix |
| 172 | # by default will actually change. |
| 173 | # Use braces instead of parens because sh, perl, etc. also accept them. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 174 | bindir='${exec_prefix}/bin' |
| 175 | sbindir='${exec_prefix}/sbin' |
| 176 | libexecdir='${exec_prefix}/libexec' |
| 177 | datadir='${prefix}/share' |
| 178 | sysconfdir='${prefix}/etc' |
| 179 | sharedstatedir='${prefix}/com' |
| 180 | localstatedir='${prefix}/var' |
| 181 | libdir='${exec_prefix}/lib' |
| 182 | includedir='${prefix}/include' |
| 183 | oldincludedir='/usr/include' |
| 184 | infodir='${prefix}/info' |
| 185 | mandir='${prefix}/man' |
| 186 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 187 | # Identity of this package. |
| 188 | PACKAGE_NAME= |
| 189 | PACKAGE_TARNAME= |
| 190 | PACKAGE_VERSION= |
| 191 | PACKAGE_STRING= |
| 192 | PACKAGE_BUGREPORT= |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 193 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 194 | ac_prev= |
| 195 | for ac_option |
| 196 | do |
| 197 | # If the previous option needs an argument, assign it. |
| 198 | if test -n "$ac_prev"; then |
| 199 | eval "$ac_prev=\$ac_option" |
| 200 | ac_prev= |
| 201 | continue |
| 202 | fi |
| 203 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 204 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 205 | |
| 206 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 207 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 208 | case $ac_option in |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 209 | |
| 210 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 211 | ac_prev=bindir ;; |
| 212 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 213 | bindir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 214 | |
| 215 | -build | --build | --buil | --bui | --bu) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 216 | ac_prev=build_alias ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 217 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 218 | build_alias=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 219 | |
| 220 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 221 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 222 | ac_prev=cache_file ;; |
| 223 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 224 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 225 | cache_file=$ac_optarg ;; |
| 226 | |
| 227 | --config-cache | -C) |
| 228 | cache_file=config.cache ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 229 | |
| 230 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 231 | ac_prev=datadir ;; |
| 232 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 233 | | --da=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 234 | datadir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 235 | |
| 236 | -disable-* | --disable-*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 237 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 238 | # Reject names that are not valid shell variable names. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 239 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 240 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 241 | { (exit 1); exit 1; }; } |
| 242 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 243 | eval "enable_$ac_feature=no" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 244 | |
| 245 | -enable-* | --enable-*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 246 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 247 | # Reject names that are not valid shell variable names. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 248 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 249 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 250 | { (exit 1); exit 1; }; } |
| 251 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 252 | case $ac_option in |
| 253 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 254 | *) ac_optarg=yes ;; |
| 255 | esac |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 256 | eval "enable_$ac_feature='$ac_optarg'" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 257 | |
| 258 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 259 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 260 | | --exec | --exe | --ex) |
| 261 | ac_prev=exec_prefix ;; |
| 262 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 263 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 264 | | --exec=* | --exe=* | --ex=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 265 | exec_prefix=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 266 | |
| 267 | -gas | --gas | --ga | --g) |
| 268 | # Obsolete; use --with-gas. |
| 269 | with_gas=yes ;; |
| 270 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 271 | -help | --help | --hel | --he | -h) |
| 272 | ac_init_help=long ;; |
| 273 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 274 | ac_init_help=recursive ;; |
| 275 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 276 | ac_init_help=short ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 277 | |
| 278 | -host | --host | --hos | --ho) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 279 | ac_prev=host_alias ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 280 | -host=* | --host=* | --hos=* | --ho=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 281 | host_alias=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 282 | |
| 283 | -includedir | --includedir | --includedi | --included | --include \ |
| 284 | | --includ | --inclu | --incl | --inc) |
| 285 | ac_prev=includedir ;; |
| 286 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 287 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 288 | includedir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 289 | |
| 290 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 291 | ac_prev=infodir ;; |
| 292 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 293 | infodir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 294 | |
| 295 | -libdir | --libdir | --libdi | --libd) |
| 296 | ac_prev=libdir ;; |
| 297 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 298 | libdir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 299 | |
| 300 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 301 | | --libexe | --libex | --libe) |
| 302 | ac_prev=libexecdir ;; |
| 303 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 304 | | --libexe=* | --libex=* | --libe=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 305 | libexecdir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 306 | |
| 307 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 308 | | --localstate | --localstat | --localsta | --localst \ |
| 309 | | --locals | --local | --loca | --loc | --lo) |
| 310 | ac_prev=localstatedir ;; |
| 311 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 312 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 313 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 314 | localstatedir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 315 | |
| 316 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 317 | ac_prev=mandir ;; |
| 318 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 319 | mandir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 320 | |
| 321 | -nfp | --nfp | --nf) |
| 322 | # Obsolete; use --without-fp. |
| 323 | with_fp=no ;; |
| 324 | |
| 325 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 326 | | --no-cr | --no-c) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 327 | no_create=yes ;; |
| 328 | |
| 329 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 330 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 331 | no_recursion=yes ;; |
| 332 | |
| 333 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 334 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 335 | | --oldin | --oldi | --old | --ol | --o) |
| 336 | ac_prev=oldincludedir ;; |
| 337 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 338 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 339 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 340 | oldincludedir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 341 | |
| 342 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 343 | ac_prev=prefix ;; |
| 344 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 345 | prefix=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 346 | |
| 347 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 348 | | --program-pre | --program-pr | --program-p) |
| 349 | ac_prev=program_prefix ;; |
| 350 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 351 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 352 | program_prefix=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 353 | |
| 354 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 355 | | --program-suf | --program-su | --program-s) |
| 356 | ac_prev=program_suffix ;; |
| 357 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 358 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 359 | program_suffix=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 360 | |
| 361 | -program-transform-name | --program-transform-name \ |
| 362 | | --program-transform-nam | --program-transform-na \ |
| 363 | | --program-transform-n | --program-transform- \ |
| 364 | | --program-transform | --program-transfor \ |
| 365 | | --program-transfo | --program-transf \ |
| 366 | | --program-trans | --program-tran \ |
| 367 | | --progr-tra | --program-tr | --program-t) |
| 368 | ac_prev=program_transform_name ;; |
| 369 | -program-transform-name=* | --program-transform-name=* \ |
| 370 | | --program-transform-nam=* | --program-transform-na=* \ |
| 371 | | --program-transform-n=* | --program-transform-=* \ |
| 372 | | --program-transform=* | --program-transfor=* \ |
| 373 | | --program-transfo=* | --program-transf=* \ |
| 374 | | --program-trans=* | --program-tran=* \ |
| 375 | | --progr-tra=* | --program-tr=* | --program-t=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 376 | program_transform_name=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 377 | |
| 378 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 379 | | -silent | --silent | --silen | --sile | --sil) |
| 380 | silent=yes ;; |
| 381 | |
| 382 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 383 | ac_prev=sbindir ;; |
| 384 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 385 | | --sbi=* | --sb=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 386 | sbindir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 387 | |
| 388 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 389 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 390 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 391 | | --sha | --sh) |
| 392 | ac_prev=sharedstatedir ;; |
| 393 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 394 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 395 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 396 | | --sha=* | --sh=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 397 | sharedstatedir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 398 | |
| 399 | -site | --site | --sit) |
| 400 | ac_prev=site ;; |
| 401 | -site=* | --site=* | --sit=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 402 | site=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 403 | |
| 404 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 405 | ac_prev=srcdir ;; |
| 406 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 407 | srcdir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 408 | |
| 409 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 410 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 411 | ac_prev=sysconfdir ;; |
| 412 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 413 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 414 | sysconfdir=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 415 | |
| 416 | -target | --target | --targe | --targ | --tar | --ta | --t) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 417 | ac_prev=target_alias ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 418 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 419 | target_alias=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 420 | |
| 421 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 422 | verbose=yes ;; |
| 423 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 424 | -version | --version | --versio | --versi | --vers | -V) |
| 425 | ac_init_version=: ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 426 | |
| 427 | -with-* | --with-*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 428 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 429 | # Reject names that are not valid shell variable names. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 430 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 431 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 432 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 433 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 434 | case $ac_option in |
| 435 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 436 | *) ac_optarg=yes ;; |
| 437 | esac |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 438 | eval "with_$ac_package='$ac_optarg'" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 439 | |
| 440 | -without-* | --without-*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 441 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 442 | # Reject names that are not valid shell variable names. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 443 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 444 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 445 | { (exit 1); exit 1; }; } |
| 446 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 447 | eval "with_$ac_package=no" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 448 | |
| 449 | --x) |
| 450 | # Obsolete; use --with-x. |
| 451 | with_x=yes ;; |
| 452 | |
| 453 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 454 | | --x-incl | --x-inc | --x-in | --x-i) |
| 455 | ac_prev=x_includes ;; |
| 456 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 457 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 458 | x_includes=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 459 | |
| 460 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 461 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 462 | ac_prev=x_libraries ;; |
| 463 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 464 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 465 | x_libraries=$ac_optarg ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 466 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 467 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 468 | Try \`$0 --help' for more information." >&2 |
| 469 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 470 | ;; |
| 471 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 472 | *=*) |
| 473 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 474 | # Reject names that are not valid shell variable names. |
| 475 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 476 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 477 | { (exit 1); exit 1; }; } |
| 478 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 479 | eval "$ac_envvar='$ac_optarg'" |
| 480 | export $ac_envvar ;; |
| 481 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 482 | *) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 483 | # FIXME: should be removed in autoconf 3.0. |
| 484 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 485 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 486 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 487 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 488 | ;; |
| 489 | |
| 490 | esac |
| 491 | done |
| 492 | |
| 493 | if test -n "$ac_prev"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 494 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 495 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 496 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 497 | fi |
| 498 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 499 | # Be sure to have absolute paths. |
| 500 | for ac_var in exec_prefix prefix |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 501 | do |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 502 | eval ac_val=$`echo $ac_var` |
| 503 | case $ac_val in |
| 504 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 505 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
| 506 | { (exit 1); exit 1; }; };; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 507 | esac |
| 508 | done |
| 509 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 510 | # Be sure to have absolute paths. |
| 511 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 512 | localstatedir libdir includedir oldincludedir infodir mandir |
| 513 | do |
| 514 | eval ac_val=$`echo $ac_var` |
| 515 | case $ac_val in |
| 516 | [\\/$]* | ?:[\\/]* ) ;; |
| 517 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
| 518 | { (exit 1); exit 1; }; };; |
| 519 | esac |
| 520 | done |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 521 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 522 | # There might be people who depend on the old broken behavior: `$host' |
| 523 | # used to hold the argument of --host etc. |
| 524 | build=$build_alias |
| 525 | host=$host_alias |
| 526 | target=$target_alias |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 527 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 528 | # FIXME: should be removed in autoconf 3.0. |
| 529 | if test "x$host_alias" != x; then |
| 530 | if test "x$build_alias" = x; then |
| 531 | cross_compiling=maybe |
| 532 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 533 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 534 | elif test "x$build_alias" != "x$host_alias"; then |
| 535 | cross_compiling=yes |
| 536 | fi |
| 537 | fi |
| 538 | |
| 539 | ac_tool_prefix= |
| 540 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 541 | |
| 542 | test "$silent" = yes && exec 6>/dev/null |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 543 | |
| 544 | # Find the source files, if location was not specified. |
| 545 | if test -z "$srcdir"; then |
| 546 | ac_srcdir_defaulted=yes |
| 547 | # Try the directory containing this script, then its parent. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 548 | ac_prog=$0 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 549 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 550 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 551 | srcdir=$ac_confdir |
| 552 | if test ! -r $srcdir/$ac_unique_file; then |
| 553 | srcdir=.. |
| 554 | fi |
| 555 | else |
| 556 | ac_srcdir_defaulted=no |
| 557 | fi |
| 558 | if test ! -r $srcdir/$ac_unique_file; then |
| 559 | if test "$ac_srcdir_defaulted" = yes; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 560 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 561 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 562 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 563 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 564 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 565 | fi |
| 566 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 567 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 568 | ac_env_build_alias_set=${build_alias+set} |
| 569 | ac_env_build_alias_value=$build_alias |
| 570 | ac_cv_env_build_alias_set=${build_alias+set} |
| 571 | ac_cv_env_build_alias_value=$build_alias |
| 572 | ac_env_host_alias_set=${host_alias+set} |
| 573 | ac_env_host_alias_value=$host_alias |
| 574 | ac_cv_env_host_alias_set=${host_alias+set} |
| 575 | ac_cv_env_host_alias_value=$host_alias |
| 576 | ac_env_target_alias_set=${target_alias+set} |
| 577 | ac_env_target_alias_value=$target_alias |
| 578 | ac_cv_env_target_alias_set=${target_alias+set} |
| 579 | ac_cv_env_target_alias_value=$target_alias |
| 580 | ac_env_CC_set=${CC+set} |
| 581 | ac_env_CC_value=$CC |
| 582 | ac_cv_env_CC_set=${CC+set} |
| 583 | ac_cv_env_CC_value=$CC |
| 584 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 585 | ac_env_CFLAGS_value=$CFLAGS |
| 586 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 587 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 588 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 589 | ac_env_LDFLAGS_value=$LDFLAGS |
| 590 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 591 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 592 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 593 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 594 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 595 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 596 | ac_env_CPP_set=${CPP+set} |
| 597 | ac_env_CPP_value=$CPP |
| 598 | ac_cv_env_CPP_set=${CPP+set} |
| 599 | ac_cv_env_CPP_value=$CPP |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 600 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 601 | # |
| 602 | # Report the --help message. |
| 603 | # |
| 604 | if test "$ac_init_help" = "long"; then |
| 605 | # Omit some internal or obsolete options to make the list less imposing. |
| 606 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 607 | cat <<_ACEOF |
| 608 | \`configure' configures this package to adapt to many kinds of systems. |
| 609 | |
| 610 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 611 | |
| 612 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 613 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 614 | |
| 615 | Defaults for the options are specified in brackets. |
| 616 | |
| 617 | Configuration: |
| 618 | -h, --help display this help and exit |
| 619 | --help=short display options specific to this package |
| 620 | --help=recursive display the short help of all the included packages |
| 621 | -V, --version display version information and exit |
| 622 | -q, --quiet, --silent do not print \`checking...' messages |
| 623 | --cache-file=FILE cache test results in FILE [disabled] |
| 624 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 625 | -n, --no-create do not create output files |
| 626 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 627 | |
| 628 | _ACEOF |
| 629 | |
| 630 | cat <<_ACEOF |
| 631 | Installation directories: |
| 632 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 633 | [$ac_default_prefix] |
| 634 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 635 | [PREFIX] |
| 636 | |
| 637 | By default, \`make install' will install all the files in |
| 638 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 639 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 640 | for instance \`--prefix=\$HOME'. |
| 641 | |
| 642 | For better control, use the options below. |
| 643 | |
| 644 | Fine tuning of the installation directories: |
| 645 | --bindir=DIR user executables [EPREFIX/bin] |
| 646 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 647 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 648 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 649 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 650 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 651 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 652 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 653 | --includedir=DIR C header files [PREFIX/include] |
| 654 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 655 | --infodir=DIR info documentation [PREFIX/info] |
| 656 | --mandir=DIR man documentation [PREFIX/man] |
| 657 | _ACEOF |
| 658 | |
| 659 | cat <<\_ACEOF |
| 660 | |
| 661 | Program names: |
| 662 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 663 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 664 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 665 | |
| 666 | System types: |
| 667 | --build=BUILD configure for building on BUILD [guessed] |
| 668 | --host=HOST build programs to run on HOST [BUILD] |
| 669 | _ACEOF |
| 670 | fi |
| 671 | |
| 672 | if test -n "$ac_init_help"; then |
| 673 | |
| 674 | cat <<\_ACEOF |
| 675 | |
| 676 | Optional Features: |
| 677 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 678 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 679 | --disable-dependency-tracking Speeds up one-time builds |
| 680 | --enable-dependency-tracking Do not reject slow dependency extractors |
| 681 | --enable-vtysh, Make integrated VTY version of zebra |
| 682 | --disable-ipv6 turn off IPv6 related features and daemons |
| 683 | --disable-zebra do not build zebra daemon |
| 684 | --disable-bgpd do not build bgpd |
| 685 | --disable-ripd do not build ripd |
| 686 | --disable-ripngd do not build ripngd |
| 687 | --disable-ospfd do not build ospfd |
| 688 | --disable-ospf6d do not build ospf6d |
| 689 | --disable-bgp-announce, turn off BGP route announcement |
| 690 | --enable-netlink force to use Linux netlink interface |
| 691 | --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X |
| 692 | --enable-snmp enable SNMP support |
| 693 | --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon |
| 694 | --enable-nssa enable OSPF NSSA option |
| 695 | --enable-opaque-lsa enable OSPF Opaque-LSA with OSPFAPI support (RFC2370) |
| 696 | --disable-ospfapi do not build OSPFAPI to access the OSPF LSA Database, |
| 697 | (this is the default if --enable-opaque-lsa is not set) |
| 698 | --disable-ospfclient do not build OSPFAPI client for OSPFAPI, |
| 699 | (this is the default if --disable-ospfapi is set) |
| 700 | --enable-ospf-te enable Traffic Engineering Extension to OSPF |
| 701 | --enable-multipath=ARG enable multipath function, ARG must be digit |
| 702 | |
| 703 | Optional Packages: |
| 704 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 705 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 706 | --with-cflags Set CFLAGS for use in compilation. |
| 707 | --with-libpam use libpam for PAM support in vtysh |
| 708 | |
| 709 | Some influential environment variables: |
| 710 | CC C compiler command |
| 711 | CFLAGS C compiler flags |
| 712 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 713 | nonstandard directory <lib dir> |
| 714 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 715 | headers in a nonstandard directory <include dir> |
| 716 | CPP C preprocessor |
| 717 | |
| 718 | Use these variables to override the choices made by `configure' or to help |
| 719 | it to find libraries and programs with nonstandard names/locations. |
| 720 | |
| 721 | _ACEOF |
| 722 | fi |
| 723 | |
| 724 | if test "$ac_init_help" = "recursive"; then |
| 725 | # If there are subdirs, report their specific --help. |
| 726 | ac_popdir=`pwd` |
| 727 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 728 | cd $ac_dir |
| 729 | if test "$ac_dir" != .; then |
| 730 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'` |
| 731 | # A "../" for each directory in $ac_dir_suffix. |
| 732 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
| 733 | else |
| 734 | ac_dir_suffix= ac_top_builddir= |
| 735 | fi |
| 736 | |
| 737 | case $srcdir in |
| 738 | .) # No --srcdir option. We are building in place. |
| 739 | ac_srcdir=. |
| 740 | if test -z "$ac_top_builddir"; then |
| 741 | ac_top_srcdir=. |
| 742 | else |
| 743 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 744 | fi ;; |
| 745 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 746 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 747 | ac_top_srcdir=$srcdir ;; |
| 748 | *) # Relative path. |
| 749 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 750 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 751 | esac |
| 752 | |
| 753 | # Check for guested configure; otherwise get Cygnus style configure. |
| 754 | if test -f $ac_srcdir/configure.gnu; then |
| 755 | echo |
| 756 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 757 | elif test -f $ac_srcdir/configure; then |
| 758 | echo |
| 759 | $SHELL $ac_srcdir/configure --help=recursive |
| 760 | elif test -f $ac_srcdir/configure.ac || |
| 761 | test -f $ac_srcdir/configure.in; then |
| 762 | echo |
| 763 | $ac_configure --help |
| 764 | else |
| 765 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 766 | fi |
| 767 | cd $ac_popdir |
| 768 | done |
| 769 | fi |
| 770 | |
| 771 | test -n "$ac_init_help" && exit 0 |
| 772 | if $ac_init_version; then |
| 773 | cat <<\_ACEOF |
| 774 | |
| 775 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 776 | Free Software Foundation, Inc. |
| 777 | This configure script is free software; the Free Software Foundation |
| 778 | gives unlimited permission to copy, distribute and modify it. |
| 779 | _ACEOF |
| 780 | exit 0 |
| 781 | fi |
| 782 | exec 5>config.log |
| 783 | cat >&5 <<_ACEOF |
| 784 | This file contains any messages produced by compilers while |
| 785 | running configure, to aid debugging if configure makes a mistake. |
| 786 | |
| 787 | It was created by $as_me, which was |
| 788 | generated by GNU Autoconf 2.52d. Invocation command line was |
| 789 | |
| 790 | $ $0 $@ |
| 791 | |
| 792 | _ACEOF |
| 793 | { |
| 794 | cat <<_ASUNAME |
| 795 | ## --------- ## |
| 796 | ## Platform. ## |
| 797 | ## --------- ## |
| 798 | |
| 799 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 800 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 801 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 802 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 803 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 804 | |
| 805 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 806 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 807 | |
| 808 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 809 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 810 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 811 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 812 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 813 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 814 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 815 | |
| 816 | PATH = $PATH |
| 817 | |
| 818 | _ASUNAME |
| 819 | } >&5 |
| 820 | |
| 821 | cat >&5 <<_ACEOF |
| 822 | ## ----------- ## |
| 823 | ## Core tests. ## |
| 824 | ## ----------- ## |
| 825 | |
| 826 | _ACEOF |
| 827 | |
| 828 | # Keep a trace of the command line. |
| 829 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 830 | # Also quote any args containing shell meta-characters. |
| 831 | ac_configure_args= |
| 832 | ac_sep= |
| 833 | for ac_arg |
| 834 | do |
| 835 | case $ac_arg in |
| 836 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 837 | | --no-cr | --no-c) ;; |
| 838 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 839 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 840 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 841 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
| 842 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 843 | ac_sep=" " ;; |
| 844 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" |
| 845 | ac_sep=" " ;; |
| 846 | esac |
| 847 | # Get rid of the leading space. |
| 848 | done |
| 849 | |
| 850 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 851 | # config.log. We remove comments because anyway the quotes in there |
| 852 | # would cause problems or look ugly. |
| 853 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 854 | # such as our DU 5.0 friend, will then `close' the trap. |
| 855 | trap 'exit_status=$? |
| 856 | # Save into config.log some information that might help in debugging. |
| 857 | { |
| 858 | echo |
| 859 | cat <<\_ASBOX |
| 860 | ## ---------------- ## |
| 861 | ## Cache variables. ## |
| 862 | ## ---------------- ## |
| 863 | _ASBOX |
| 864 | echo |
| 865 | # The following way of writing the cache mishandles newlines in values, |
| 866 | { |
| 867 | (set) 2>&1 | |
| 868 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 869 | *ac_space=\ *) |
| 870 | sed -n \ |
| 871 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 872 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 873 | ;; |
| 874 | *) |
| 875 | sed -n \ |
| 876 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 877 | ;; |
| 878 | esac; |
| 879 | } |
| 880 | echo |
| 881 | if test -s confdefs.h; then |
| 882 | cat <<\_ASBOX |
| 883 | ## ----------- ## |
| 884 | ## confdefs.h. ## |
| 885 | ## ----------- ## |
| 886 | _ASBOX |
| 887 | echo |
| 888 | sed "/^$/d" confdefs.h |
| 889 | echo |
| 890 | fi |
| 891 | test "$ac_signal" != 0 && |
| 892 | echo "$as_me: caught signal $ac_signal" |
| 893 | echo "$as_me: exit $exit_status" |
| 894 | } >&5 |
| 895 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
| 896 | exit $exit_status |
| 897 | ' 0 |
| 898 | for ac_signal in 1 2 13 15; do |
| 899 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 900 | done |
| 901 | ac_signal=0 |
| 902 | |
| 903 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 904 | rm -rf conftest* confdefs.h |
| 905 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 906 | echo >confdefs.h |
| 907 | |
| 908 | # Let the site file select an alternate cache file if it wants to. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 909 | # Prefer explicitly selected file to automatically selected ones. |
| 910 | if test -z "$CONFIG_SITE"; then |
| 911 | if test "x$prefix" != xNONE; then |
| 912 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 913 | else |
| 914 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 915 | fi |
| 916 | fi |
| 917 | for ac_site_file in $CONFIG_SITE; do |
| 918 | if test -r "$ac_site_file"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 919 | { echo "$as_me:919: loading site script $ac_site_file" >&5 |
| 920 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 921 | sed 's/^/| /' "$ac_site_file" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 922 | . "$ac_site_file" |
| 923 | fi |
| 924 | done |
| 925 | |
| 926 | if test -r "$cache_file"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 927 | # Some versions of bash will fail to source /dev/null (special |
| 928 | # files actually), so we avoid doing that. |
| 929 | if test -f "$cache_file"; then |
| 930 | { echo "$as_me:930: loading cache $cache_file" >&5 |
| 931 | echo "$as_me: loading cache $cache_file" >&6;} |
| 932 | case $cache_file in |
| 933 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 934 | *) . ./$cache_file;; |
| 935 | esac |
| 936 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 937 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 938 | { echo "$as_me:938: creating cache $cache_file" >&5 |
| 939 | echo "$as_me: creating cache $cache_file" >&6;} |
| 940 | >$cache_file |
| 941 | fi |
| 942 | |
| 943 | # Check that the precious variables saved in the cache have kept the same |
| 944 | # value. |
| 945 | ac_cache_corrupted=false |
| 946 | for ac_var in `(set) 2>&1 | |
| 947 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 948 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 949 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 950 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 951 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 952 | case $ac_old_set,$ac_new_set in |
| 953 | set,) |
| 954 | { echo "$as_me:954: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 955 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 956 | ac_cache_corrupted=: ;; |
| 957 | ,set) |
| 958 | { echo "$as_me:958: error: \`$ac_var' was not set in the previous run" >&5 |
| 959 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 960 | ac_cache_corrupted=: ;; |
| 961 | ,);; |
| 962 | *) |
| 963 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 964 | { echo "$as_me:964: error: \`$ac_var' has changed since the previous run:" >&5 |
| 965 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 966 | { echo "$as_me:966: former value: $ac_old_val" >&5 |
| 967 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 968 | { echo "$as_me:968: current value: $ac_new_val" >&5 |
| 969 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 970 | ac_cache_corrupted=: |
| 971 | fi;; |
| 972 | esac |
| 973 | # Pass precious variables to config.status. It doesn't matter if |
| 974 | # we pass some twice (in addition to the command line arguments). |
| 975 | if test "$ac_new_set" = set; then |
| 976 | case $ac_new_val in |
| 977 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 978 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
| 979 | ac_configure_args="$ac_configure_args '$ac_arg'" |
| 980 | ;; |
| 981 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" |
| 982 | ;; |
| 983 | esac |
| 984 | fi |
| 985 | done |
| 986 | if $ac_cache_corrupted; then |
| 987 | { echo "$as_me:987: error: changes in the environment can compromise the build" >&5 |
| 988 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 989 | { { echo "$as_me:989: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 990 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 991 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 992 | fi |
| 993 | |
| 994 | ac_ext=c |
| 995 | ac_cpp='$CPP $CPPFLAGS' |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 999 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1000 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 1001 | *c*,-n*) ECHO_N= ECHO_C=' |
| 1002 | ' ECHO_T=' ' ;; |
| 1003 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 1004 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 1005 | esac |
| 1006 | echo "#! $SHELL" >conftest.sh |
| 1007 | echo "exit 0" >>conftest.sh |
| 1008 | chmod +x conftest.sh |
| 1009 | if { (echo "$as_me:1009: PATH=\".;.\"; conftest.sh") >&5 |
| 1010 | (PATH=".;."; conftest.sh) 2>&5 |
| 1011 | ac_status=$? |
| 1012 | echo "$as_me:1012: \$? = $ac_status" >&5 |
| 1013 | (exit $ac_status); }; then |
| 1014 | ac_path_separator=';' |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1015 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1016 | ac_path_separator=: |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1017 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1018 | PATH_SEPARATOR="$ac_path_separator" |
| 1019 | rm -f conftest.sh |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1020 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1021 | ac_aux_dir= |
| 1022 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1023 | if test -f $ac_dir/install-sh; then |
| 1024 | ac_aux_dir=$ac_dir |
| 1025 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1026 | break |
| 1027 | elif test -f $ac_dir/install.sh; then |
| 1028 | ac_aux_dir=$ac_dir |
| 1029 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1030 | break |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1031 | elif test -f $ac_dir/shtool; then |
| 1032 | ac_aux_dir=$ac_dir |
| 1033 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1034 | break |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1035 | fi |
| 1036 | done |
| 1037 | if test -z "$ac_aux_dir"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1038 | { { echo "$as_me:1038: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1039 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1040 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1041 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1042 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1043 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1044 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1045 | |
| 1046 | # Find a good install program. We prefer a C program (faster), |
| 1047 | # so one script is as good as another. But avoid the broken or |
| 1048 | # incompatible versions: |
| 1049 | # SysV /etc/install, /usr/sbin/install |
| 1050 | # SunOS /usr/etc/install |
| 1051 | # IRIX /sbin/install |
| 1052 | # AIX /bin/install |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1053 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1054 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1055 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1056 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1057 | # ./install, which can be erroneously created by make from ./install.sh. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1058 | echo "$as_me:1058: checking for a BSD compatible install" >&5 |
| 1059 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1060 | if test -z "$INSTALL"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1061 | if test "${ac_cv_path_install+set}" = set; then |
| 1062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1063 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1064 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1065 | for ac_dir in $PATH; do |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1066 | IFS=$ac_save_IFS |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1067 | # Account for people who put trailing slashes in PATH elements. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1068 | case $ac_dir/ in |
| 1069 | / | ./ | .// | /cC/* \ |
| 1070 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ |
| 1071 | | /usr/ucb/* ) ;; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1072 | *) |
| 1073 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1074 | # Don't use installbsd from OSF since it installs stuff as root |
| 1075 | # by default. |
| 1076 | for ac_prog in ginstall scoinst install; do |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1077 | if $as_executable_p "$ac_dir/$ac_prog"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1078 | if test $ac_prog = install && |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1079 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1080 | # AIX install. It has an incompatible calling convention. |
| 1081 | : |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1082 | elif test $ac_prog = install && |
| 1083 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
| 1084 | # program-specific install script used by HP pwplus--don't use. |
| 1085 | : |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1086 | else |
| 1087 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1088 | break 2 |
| 1089 | fi |
| 1090 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1091 | done |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1092 | ;; |
| 1093 | esac |
| 1094 | done |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1095 | |
| 1096 | fi |
| 1097 | if test "${ac_cv_path_install+set}" = set; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1098 | INSTALL=$ac_cv_path_install |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1099 | else |
| 1100 | # As a last resort, use the slow shell script. We don't cache a |
| 1101 | # path for INSTALL within a source directory, because that will |
| 1102 | # break other packages using the cache if that directory is |
| 1103 | # removed, or if the path is relative. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1104 | INSTALL=$ac_install_sh |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1105 | fi |
| 1106 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1107 | echo "$as_me:1107: result: $INSTALL" >&5 |
| 1108 | echo "${ECHO_T}$INSTALL" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1109 | |
| 1110 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1111 | # It thinks the first close brace ends the variable substitution. |
| 1112 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1113 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1114 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1115 | |
| 1116 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1117 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1118 | echo "$as_me:1118: checking whether build environment is sane" >&5 |
| 1119 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1120 | # Just in case |
| 1121 | sleep 1 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1122 | echo timestamp > conftest.file |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1123 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1124 | # arguments. Must try -L first in case configure is actually a |
| 1125 | # symlink; some systems play weird games with the mod time of symlinks |
| 1126 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1127 | # directory). |
| 1128 | if ( |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1129 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1130 | if test "$*" = "X"; then |
| 1131 | # -L didn't work. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1132 | set X `ls -t $srcdir/configure conftest.file` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1133 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1134 | rm -f conftest.file |
| 1135 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1136 | && test "$*" != "X conftest.file $srcdir/configure"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1137 | |
| 1138 | # If neither matched, then we have a broken ls. This can happen |
| 1139 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1140 | # broken ls alias from the environment. This has actually |
| 1141 | # happened. Such a system could not be considered "sane". |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1142 | { { echo "$as_me:1142: error: ls -t appears to fail. Make sure there is not a broken |
| 1143 | alias in your environment" >&5 |
| 1144 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1145 | alias in your environment" >&2;} |
| 1146 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1147 | fi |
| 1148 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1149 | test "$2" = conftest.file |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1150 | ) |
| 1151 | then |
| 1152 | # Ok. |
| 1153 | : |
| 1154 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1155 | { { echo "$as_me:1155: error: newly created file is older than distributed files! |
| 1156 | Check your system clock" >&5 |
| 1157 | echo "$as_me: error: newly created file is older than distributed files! |
| 1158 | Check your system clock" >&2;} |
| 1159 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1160 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1161 | echo "$as_me:1161: result: yes" >&5 |
| 1162 | echo "${ECHO_T}yes" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1163 | test "$program_prefix" != NONE && |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1164 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1165 | # Use a double $ so make ignores it. |
| 1166 | test "$program_suffix" != NONE && |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1167 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1168 | # Double any \ or $. echo might interpret backslashes. |
| 1169 | # By default was `s,x,x', remove it if useless. |
| 1170 | cat <<\_ACEOF >conftest.sed |
| 1171 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1172 | _ACEOF |
| 1173 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1174 | rm conftest.sed |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1175 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1176 | # expand $ac_aux_dir to an absolute path |
| 1177 | am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1178 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1179 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1180 | # Use eval to expand $SHELL |
| 1181 | if eval "$MISSING --run true"; then |
| 1182 | am_missing_run="$MISSING --run " |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1183 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1184 | am_missing_run= |
| 1185 | am_backtick='`' |
| 1186 | { echo "$as_me:1186: WARNING: ${am_backtick}missing' script is too old or missing" >&5 |
| 1187 | echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} |
| 1188 | fi |
| 1189 | |
| 1190 | for ac_prog in gawk mawk nawk awk |
| 1191 | do |
| 1192 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1193 | set dummy $ac_prog; ac_word=$2 |
| 1194 | echo "$as_me:1194: checking for $ac_word" >&5 |
| 1195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1196 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1198 | else |
| 1199 | if test -n "$AWK"; then |
| 1200 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1201 | else |
| 1202 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1203 | ac_dummy="$PATH" |
| 1204 | for ac_dir in $ac_dummy; do |
| 1205 | IFS=$ac_save_IFS |
| 1206 | test -z "$ac_dir" && ac_dir=. |
| 1207 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1208 | ac_cv_prog_AWK="$ac_prog" |
| 1209 | echo "$as_me:1209: found $ac_dir/$ac_word" >&5 |
| 1210 | break |
| 1211 | done |
| 1212 | |
| 1213 | fi |
| 1214 | fi |
| 1215 | AWK=$ac_cv_prog_AWK |
| 1216 | if test -n "$AWK"; then |
| 1217 | echo "$as_me:1217: result: $AWK" >&5 |
| 1218 | echo "${ECHO_T}$AWK" >&6 |
| 1219 | else |
| 1220 | echo "$as_me:1220: result: no" >&5 |
| 1221 | echo "${ECHO_T}no" >&6 |
| 1222 | fi |
| 1223 | |
| 1224 | test -n "$AWK" && break |
| 1225 | done |
| 1226 | |
| 1227 | echo "$as_me:1227: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1228 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 1229 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1230 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1232 | else |
| 1233 | cat >conftest.make <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1234 | all: |
| 1235 | @echo 'ac_maketemp="${MAKE}"' |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1236 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1237 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1238 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1239 | if test -n "$ac_maketemp"; then |
| 1240 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1241 | else |
| 1242 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1243 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1244 | rm -f conftest.make |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1245 | fi |
| 1246 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1247 | echo "$as_me:1247: result: yes" >&5 |
| 1248 | echo "${ECHO_T}yes" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1249 | SET_MAKE= |
| 1250 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1251 | echo "$as_me:1251: result: no" >&5 |
| 1252 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1253 | SET_MAKE="MAKE=${MAKE-make}" |
| 1254 | fi |
| 1255 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1256 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 1257 | if test "${enable_dependency_tracking+set}" = set; then |
| 1258 | enableval="$enable_dependency_tracking" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1259 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1260 | fi; |
| 1261 | if test "x$enable_dependency_tracking" != xno; then |
| 1262 | am_depcomp="$ac_aux_dir/depcomp" |
| 1263 | AMDEPBACKSLASH='\' |
| 1264 | fi |
| 1265 | |
| 1266 | if test "x$enable_dependency_tracking" != xno; then |
| 1267 | AMDEP_TRUE= |
| 1268 | AMDEP_FALSE='#' |
| 1269 | else |
| 1270 | AMDEP_TRUE='#' |
| 1271 | AMDEP_FALSE= |
| 1272 | fi |
| 1273 | |
| 1274 | rm -f .deps 2>/dev/null |
| 1275 | mkdir .deps 2>/dev/null |
| 1276 | if test -d .deps; then |
| 1277 | DEPDIR=.deps |
| 1278 | else |
| 1279 | # MS-DOS does not allow filenames that begin with a dot. |
| 1280 | DEPDIR=_deps |
| 1281 | fi |
| 1282 | rmdir .deps 2>/dev/null |
| 1283 | |
| 1284 | # test to see if srcdir already configured |
| 1285 | if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && |
| 1286 | test -f $srcdir/config.status; then |
| 1287 | { { echo "$as_me:1287: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1288 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1289 | { (exit 1); exit 1; }; } |
| 1290 | fi |
| 1291 | |
| 1292 | # Define the identity of the package. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1293 | PACKAGE=zebra |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1294 | VERSION=0.94 |
| 1295 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1296 | cat >>confdefs.h <<_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1297 | #define PACKAGE "$PACKAGE" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1298 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1299 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1300 | cat >>confdefs.h <<_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1301 | #define VERSION "$VERSION" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1302 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1303 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1304 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
| 1305 | # the ones we care about. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1306 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1307 | # Autoconf 2.50 always computes EXEEXT. However we need to be |
| 1308 | # compatible with 2.13, for now. So we always define EXEEXT, but we |
| 1309 | # don't compute it. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1310 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1311 | # Similar for OBJEXT -- only we only use OBJEXT if the user actually |
| 1312 | # requests that it be used. This is a bit dumb. |
| 1313 | : ${OBJEXT=o} |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1314 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1315 | # Some tools Automake needs. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1316 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1317 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1318 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1319 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1320 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1321 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1322 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1323 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1324 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1325 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1326 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1327 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1328 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1329 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1330 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1331 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1332 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1333 | # We need awk for the "check" target. The system "awk" is bad on |
| 1334 | # some platforms. |
| 1335 | |
| 1336 | ac_config_headers="$ac_config_headers config.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1337 | |
| 1338 | # Make sure we can run config.sub. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1339 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1340 | { { echo "$as_me:1340: error: cannot run $ac_config_sub" >&5 |
| 1341 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1342 | { (exit 1); exit 1; }; } |
| 1343 | |
| 1344 | echo "$as_me:1344: checking build system type" >&5 |
| 1345 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1346 | if test "${ac_cv_build+set}" = set; then |
| 1347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1348 | else |
| 1349 | ac_cv_build_alias=$build_alias |
| 1350 | test -z "$ac_cv_build_alias" && |
| 1351 | ac_cv_build_alias=`$ac_config_guess` |
| 1352 | test -z "$ac_cv_build_alias" && |
| 1353 | { { echo "$as_me:1353: error: cannot guess build type; you must specify one" >&5 |
| 1354 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1355 | { (exit 1); exit 1; }; } |
| 1356 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1357 | { { echo "$as_me:1357: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
| 1358 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
| 1359 | { (exit 1); exit 1; }; } |
| 1360 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1361 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1362 | echo "$as_me:1362: result: $ac_cv_build" >&5 |
| 1363 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1364 | build=$ac_cv_build |
| 1365 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1366 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1367 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1368 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1369 | echo "$as_me:1369: checking host system type" >&5 |
| 1370 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1371 | if test "${ac_cv_host+set}" = set; then |
| 1372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1373 | else |
| 1374 | ac_cv_host_alias=$host_alias |
| 1375 | test -z "$ac_cv_host_alias" && |
| 1376 | ac_cv_host_alias=$ac_cv_build_alias |
| 1377 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1378 | { { echo "$as_me:1378: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1379 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1380 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1381 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1382 | fi |
| 1383 | echo "$as_me:1383: result: $ac_cv_host" >&5 |
| 1384 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1385 | host=$ac_cv_host |
| 1386 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1387 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1388 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1389 | |
| 1390 | # Check whether --with-cflags or --without-cflags was given. |
| 1391 | if test "${with_cflags+set}" = set; then |
| 1392 | withval="$with_cflags" |
| 1393 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1394 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1395 | if test "x$with_cflags" != "x" ; then |
| 1396 | CFLAGS="$with_cflags" ; cflags_specified=yes ; |
| 1397 | elif test -n "$CFLAGS" ; then |
| 1398 | cflags_specified=yes ; |
| 1399 | fi |
| 1400 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1401 | ac_ext=c |
| 1402 | ac_cpp='$CPP $CPPFLAGS' |
| 1403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1406 | if test -n "$ac_tool_prefix"; then |
| 1407 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1408 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1409 | echo "$as_me:1409: checking for $ac_word" >&5 |
| 1410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1411 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1413 | else |
| 1414 | if test -n "$CC"; then |
| 1415 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1416 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1417 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1418 | ac_dummy="$PATH" |
| 1419 | for ac_dir in $ac_dummy; do |
| 1420 | IFS=$ac_save_IFS |
| 1421 | test -z "$ac_dir" && ac_dir=. |
| 1422 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1423 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1424 | echo "$as_me:1424: found $ac_dir/$ac_word" >&5 |
| 1425 | break |
| 1426 | done |
| 1427 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1428 | fi |
| 1429 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1430 | CC=$ac_cv_prog_CC |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1431 | if test -n "$CC"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1432 | echo "$as_me:1432: result: $CC" >&5 |
| 1433 | echo "${ECHO_T}$CC" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1434 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1435 | echo "$as_me:1435: result: no" >&5 |
| 1436 | echo "${ECHO_T}no" >&6 |
| 1437 | fi |
| 1438 | |
| 1439 | fi |
| 1440 | if test -z "$ac_cv_prog_CC"; then |
| 1441 | ac_ct_CC=$CC |
| 1442 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1443 | set dummy gcc; ac_word=$2 |
| 1444 | echo "$as_me:1444: checking for $ac_word" >&5 |
| 1445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1446 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1448 | else |
| 1449 | if test -n "$ac_ct_CC"; then |
| 1450 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1451 | else |
| 1452 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1453 | ac_dummy="$PATH" |
| 1454 | for ac_dir in $ac_dummy; do |
| 1455 | IFS=$ac_save_IFS |
| 1456 | test -z "$ac_dir" && ac_dir=. |
| 1457 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1458 | ac_cv_prog_ac_ct_CC="gcc" |
| 1459 | echo "$as_me:1459: found $ac_dir/$ac_word" >&5 |
| 1460 | break |
| 1461 | done |
| 1462 | |
| 1463 | fi |
| 1464 | fi |
| 1465 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1466 | if test -n "$ac_ct_CC"; then |
| 1467 | echo "$as_me:1467: result: $ac_ct_CC" >&5 |
| 1468 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1469 | else |
| 1470 | echo "$as_me:1470: result: no" >&5 |
| 1471 | echo "${ECHO_T}no" >&6 |
| 1472 | fi |
| 1473 | |
| 1474 | CC=$ac_ct_CC |
| 1475 | else |
| 1476 | CC="$ac_cv_prog_CC" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1477 | fi |
| 1478 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1479 | if test -z "$CC"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1480 | if test -n "$ac_tool_prefix"; then |
| 1481 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1482 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1483 | echo "$as_me:1483: checking for $ac_word" >&5 |
| 1484 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1485 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1487 | else |
| 1488 | if test -n "$CC"; then |
| 1489 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1490 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1491 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1492 | ac_dummy="$PATH" |
| 1493 | for ac_dir in $ac_dummy; do |
| 1494 | IFS=$ac_save_IFS |
| 1495 | test -z "$ac_dir" && ac_dir=. |
| 1496 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1497 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1498 | echo "$as_me:1498: found $ac_dir/$ac_word" >&5 |
| 1499 | break |
| 1500 | done |
| 1501 | |
| 1502 | fi |
| 1503 | fi |
| 1504 | CC=$ac_cv_prog_CC |
| 1505 | if test -n "$CC"; then |
| 1506 | echo "$as_me:1506: result: $CC" >&5 |
| 1507 | echo "${ECHO_T}$CC" >&6 |
| 1508 | else |
| 1509 | echo "$as_me:1509: result: no" >&5 |
| 1510 | echo "${ECHO_T}no" >&6 |
| 1511 | fi |
| 1512 | |
| 1513 | fi |
| 1514 | if test -z "$ac_cv_prog_CC"; then |
| 1515 | ac_ct_CC=$CC |
| 1516 | # Extract the first word of "cc", so it can be a program name with args. |
| 1517 | set dummy cc; ac_word=$2 |
| 1518 | echo "$as_me:1518: checking for $ac_word" >&5 |
| 1519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1520 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1522 | else |
| 1523 | if test -n "$ac_ct_CC"; then |
| 1524 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1525 | else |
| 1526 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1527 | ac_dummy="$PATH" |
| 1528 | for ac_dir in $ac_dummy; do |
| 1529 | IFS=$ac_save_IFS |
| 1530 | test -z "$ac_dir" && ac_dir=. |
| 1531 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1532 | ac_cv_prog_ac_ct_CC="cc" |
| 1533 | echo "$as_me:1533: found $ac_dir/$ac_word" >&5 |
| 1534 | break |
| 1535 | done |
| 1536 | |
| 1537 | fi |
| 1538 | fi |
| 1539 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1540 | if test -n "$ac_ct_CC"; then |
| 1541 | echo "$as_me:1541: result: $ac_ct_CC" >&5 |
| 1542 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1543 | else |
| 1544 | echo "$as_me:1544: result: no" >&5 |
| 1545 | echo "${ECHO_T}no" >&6 |
| 1546 | fi |
| 1547 | |
| 1548 | CC=$ac_ct_CC |
| 1549 | else |
| 1550 | CC="$ac_cv_prog_CC" |
| 1551 | fi |
| 1552 | |
| 1553 | fi |
| 1554 | if test -z "$CC"; then |
| 1555 | # Extract the first word of "cc", so it can be a program name with args. |
| 1556 | set dummy cc; ac_word=$2 |
| 1557 | echo "$as_me:1557: checking for $ac_word" >&5 |
| 1558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1559 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1561 | else |
| 1562 | if test -n "$CC"; then |
| 1563 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1564 | else |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1565 | ac_prog_rejected=no |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1566 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1567 | ac_dummy="$PATH" |
| 1568 | for ac_dir in $ac_dummy; do |
| 1569 | IFS=$ac_save_IFS |
| 1570 | test -z "$ac_dir" && ac_dir=. |
| 1571 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1572 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 1573 | ac_prog_rejected=yes |
| 1574 | continue |
| 1575 | fi |
| 1576 | ac_cv_prog_CC="cc" |
| 1577 | echo "$as_me:1577: found $ac_dir/$ac_word" >&5 |
| 1578 | break |
| 1579 | done |
| 1580 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1581 | if test $ac_prog_rejected = yes; then |
| 1582 | # We found a bogon in the path, so make sure we never use it. |
| 1583 | set dummy $ac_cv_prog_CC |
| 1584 | shift |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1585 | if test $# != 0; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1586 | # We chose a different compiler from the bogus one. |
| 1587 | # However, it has the same basename, so the bogon will be chosen |
| 1588 | # first if we set CC to just the basename; use the full file name. |
| 1589 | shift |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1590 | set dummy "$ac_dir/$ac_word" ${1+"$@"} |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1591 | shift |
| 1592 | ac_cv_prog_CC="$@" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1593 | fi |
| 1594 | fi |
| 1595 | fi |
| 1596 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1597 | CC=$ac_cv_prog_CC |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1598 | if test -n "$CC"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1599 | echo "$as_me:1599: result: $CC" >&5 |
| 1600 | echo "${ECHO_T}$CC" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1601 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1602 | echo "$as_me:1602: result: no" >&5 |
| 1603 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1604 | fi |
| 1605 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1606 | fi |
| 1607 | if test -z "$CC"; then |
| 1608 | if test -n "$ac_tool_prefix"; then |
| 1609 | for ac_prog in cl |
| 1610 | do |
| 1611 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1612 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1613 | echo "$as_me:1613: checking for $ac_word" >&5 |
| 1614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1615 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1617 | else |
| 1618 | if test -n "$CC"; then |
| 1619 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1620 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1621 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1622 | ac_dummy="$PATH" |
| 1623 | for ac_dir in $ac_dummy; do |
| 1624 | IFS=$ac_save_IFS |
| 1625 | test -z "$ac_dir" && ac_dir=. |
| 1626 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1627 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1628 | echo "$as_me:1628: found $ac_dir/$ac_word" >&5 |
| 1629 | break |
| 1630 | done |
| 1631 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1632 | fi |
| 1633 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1634 | CC=$ac_cv_prog_CC |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1635 | if test -n "$CC"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1636 | echo "$as_me:1636: result: $CC" >&5 |
| 1637 | echo "${ECHO_T}$CC" >&6 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1638 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1639 | echo "$as_me:1639: result: no" >&5 |
| 1640 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1641 | fi |
| 1642 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1643 | test -n "$CC" && break |
| 1644 | done |
| 1645 | fi |
| 1646 | if test -z "$CC"; then |
| 1647 | ac_ct_CC=$CC |
| 1648 | for ac_prog in cl |
| 1649 | do |
| 1650 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1651 | set dummy $ac_prog; ac_word=$2 |
| 1652 | echo "$as_me:1652: checking for $ac_word" >&5 |
| 1653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1654 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1656 | else |
| 1657 | if test -n "$ac_ct_CC"; then |
| 1658 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1659 | else |
| 1660 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1661 | ac_dummy="$PATH" |
| 1662 | for ac_dir in $ac_dummy; do |
| 1663 | IFS=$ac_save_IFS |
| 1664 | test -z "$ac_dir" && ac_dir=. |
| 1665 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1666 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1667 | echo "$as_me:1667: found $ac_dir/$ac_word" >&5 |
| 1668 | break |
| 1669 | done |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1670 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1671 | fi |
| 1672 | fi |
| 1673 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1674 | if test -n "$ac_ct_CC"; then |
| 1675 | echo "$as_me:1675: result: $ac_ct_CC" >&5 |
| 1676 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1677 | else |
| 1678 | echo "$as_me:1678: result: no" >&5 |
| 1679 | echo "${ECHO_T}no" >&6 |
| 1680 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1681 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1682 | test -n "$ac_ct_CC" && break |
| 1683 | done |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1684 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1685 | CC=$ac_ct_CC |
| 1686 | fi |
| 1687 | |
| 1688 | fi |
| 1689 | |
| 1690 | test -z "$CC" && { { echo "$as_me:1690: error: no acceptable cc found in \$PATH" >&5 |
| 1691 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 1692 | { (exit 1); exit 1; }; } |
| 1693 | |
| 1694 | # Provide some information about the compiler. |
| 1695 | echo "$as_me:1695:" \ |
| 1696 | "checking for C compiler version" >&5 |
| 1697 | ac_compiler=`set X $ac_compile; echo $2` |
| 1698 | { (eval echo "$as_me:1698: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1699 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1700 | ac_status=$? |
| 1701 | echo "$as_me:1701: \$? = $ac_status" >&5 |
| 1702 | (exit $ac_status); } |
| 1703 | { (eval echo "$as_me:1703: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1704 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1705 | ac_status=$? |
| 1706 | echo "$as_me:1706: \$? = $ac_status" >&5 |
| 1707 | (exit $ac_status); } |
| 1708 | { (eval echo "$as_me:1708: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1709 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1710 | ac_status=$? |
| 1711 | echo "$as_me:1711: \$? = $ac_status" >&5 |
| 1712 | (exit $ac_status); } |
| 1713 | |
| 1714 | cat >conftest.$ac_ext <<_ACEOF |
| 1715 | #line 1715 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1716 | #include "confdefs.h" |
| 1717 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1718 | #ifdef F77_DUMMY_MAIN |
| 1719 | # ifdef __cplusplus |
| 1720 | extern "C" |
| 1721 | # endif |
| 1722 | int F77_DUMMY_MAIN() { return 1; } |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1723 | #endif |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1724 | int |
| 1725 | main () |
| 1726 | { |
| 1727 | |
| 1728 | ; |
| 1729 | return 0; |
| 1730 | } |
| 1731 | _ACEOF |
| 1732 | ac_clean_files_save=$ac_clean_files |
| 1733 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1734 | # Try to create an executable without -o first, disregard a.out. |
| 1735 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1736 | # of exeext. |
| 1737 | echo "$as_me:1737: checking for C compiler default output" >&5 |
| 1738 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1739 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1740 | if { (eval echo "$as_me:1740: \"$ac_link_default\"") >&5 |
| 1741 | (eval $ac_link_default) 2>&5 |
| 1742 | ac_status=$? |
| 1743 | echo "$as_me:1743: \$? = $ac_status" >&5 |
| 1744 | (exit $ac_status); }; then |
| 1745 | # Find the output, starting from the most likely. This scheme is |
| 1746 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1747 | # resort. |
| 1748 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
| 1749 | ls a.out conftest 2>/dev/null; |
| 1750 | ls a.* conftest.* 2>/dev/null`; do |
| 1751 | case $ac_file in |
| 1752 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1753 | a.out ) # We found the default executable, but exeext='' is most |
| 1754 | # certainly right. |
| 1755 | break;; |
| 1756 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1757 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1758 | export ac_cv_exeext |
| 1759 | break;; |
| 1760 | * ) break;; |
| 1761 | esac |
| 1762 | done |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1763 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1764 | echo "$as_me: failed program was:" >&5 |
| 1765 | cat conftest.$ac_ext >&5 |
| 1766 | { { echo "$as_me:1766: error: C compiler cannot create executables" >&5 |
| 1767 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 1768 | { (exit 77); exit 77; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1769 | fi |
| 1770 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1771 | ac_exeext=$ac_cv_exeext |
| 1772 | echo "$as_me:1772: result: $ac_file" >&5 |
| 1773 | echo "${ECHO_T}$ac_file" >&6 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 1774 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1775 | # Check the compiler produces executables we can run. If not, either |
| 1776 | # the compiler is broken, or we cross compile. |
| 1777 | echo "$as_me:1777: checking whether the C compiler works" >&5 |
| 1778 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1779 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1780 | # If not cross compiling, check that we can run a simple program. |
| 1781 | if test "$cross_compiling" != yes; then |
| 1782 | if { ac_try='./$ac_file' |
| 1783 | { (eval echo "$as_me:1783: \"$ac_try\"") >&5 |
| 1784 | (eval $ac_try) 2>&5 |
| 1785 | ac_status=$? |
| 1786 | echo "$as_me:1786: \$? = $ac_status" >&5 |
| 1787 | (exit $ac_status); }; }; then |
| 1788 | cross_compiling=no |
| 1789 | else |
| 1790 | if test "$cross_compiling" = maybe; then |
| 1791 | cross_compiling=yes |
| 1792 | else |
| 1793 | { { echo "$as_me:1793: error: cannot run C compiled programs. |
| 1794 | If you meant to cross compile, use \`--host'." >&5 |
| 1795 | echo "$as_me: error: cannot run C compiled programs. |
| 1796 | If you meant to cross compile, use \`--host'." >&2;} |
| 1797 | { (exit 1); exit 1; }; } |
| 1798 | fi |
| 1799 | fi |
| 1800 | fi |
| 1801 | echo "$as_me:1801: result: yes" >&5 |
| 1802 | echo "${ECHO_T}yes" >&6 |
| 1803 | |
| 1804 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1805 | ac_clean_files=$ac_clean_files_save |
| 1806 | # Check the compiler produces executables we can run. If not, either |
| 1807 | # the compiler is broken, or we cross compile. |
| 1808 | echo "$as_me:1808: checking whether we are cross compiling" >&5 |
| 1809 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1810 | echo "$as_me:1810: result: $cross_compiling" >&5 |
| 1811 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1812 | |
| 1813 | echo "$as_me:1813: checking for executable suffix" >&5 |
| 1814 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
| 1815 | if { (eval echo "$as_me:1815: \"$ac_link\"") >&5 |
| 1816 | (eval $ac_link) 2>&5 |
| 1817 | ac_status=$? |
| 1818 | echo "$as_me:1818: \$? = $ac_status" >&5 |
| 1819 | (exit $ac_status); }; then |
| 1820 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1821 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1822 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1823 | # `rm'. |
| 1824 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1825 | case $ac_file in |
| 1826 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1827 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1828 | export ac_cv_exeext |
| 1829 | break;; |
| 1830 | * ) break;; |
| 1831 | esac |
| 1832 | done |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1833 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1834 | { { echo "$as_me:1834: error: cannot compute EXEEXT: cannot compile and link" >&5 |
| 1835 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
| 1836 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1837 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1838 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1839 | rm -f conftest$ac_cv_exeext |
| 1840 | echo "$as_me:1840: result: $ac_cv_exeext" >&5 |
| 1841 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1842 | |
| 1843 | rm -f conftest.$ac_ext |
| 1844 | EXEEXT=$ac_cv_exeext |
| 1845 | ac_exeext=$EXEEXT |
| 1846 | echo "$as_me:1846: checking for object suffix" >&5 |
| 1847 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
| 1848 | if test "${ac_cv_objext+set}" = set; then |
| 1849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1850 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1851 | cat >conftest.$ac_ext <<_ACEOF |
| 1852 | #line 1852 "configure" |
| 1853 | #include "confdefs.h" |
| 1854 | |
| 1855 | #ifdef F77_DUMMY_MAIN |
| 1856 | # ifdef __cplusplus |
| 1857 | extern "C" |
| 1858 | # endif |
| 1859 | int F77_DUMMY_MAIN() { return 1; } |
| 1860 | #endif |
| 1861 | int |
| 1862 | main () |
| 1863 | { |
| 1864 | |
| 1865 | ; |
| 1866 | return 0; |
| 1867 | } |
| 1868 | _ACEOF |
| 1869 | rm -f conftest.o conftest.obj |
| 1870 | if { (eval echo "$as_me:1870: \"$ac_compile\"") >&5 |
| 1871 | (eval $ac_compile) 2>&5 |
| 1872 | ac_status=$? |
| 1873 | echo "$as_me:1873: \$? = $ac_status" >&5 |
| 1874 | (exit $ac_status); }; then |
| 1875 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1876 | case $ac_file in |
| 1877 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1878 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1879 | break;; |
| 1880 | esac |
| 1881 | done |
| 1882 | else |
| 1883 | echo "$as_me: failed program was:" >&5 |
| 1884 | cat conftest.$ac_ext >&5 |
| 1885 | { { echo "$as_me:1885: error: cannot compute OBJEXT: cannot compile" >&5 |
| 1886 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
| 1887 | { (exit 1); exit 1; }; } |
| 1888 | fi |
| 1889 | |
| 1890 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1891 | fi |
| 1892 | echo "$as_me:1892: result: $ac_cv_objext" >&5 |
| 1893 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1894 | OBJEXT=$ac_cv_objext |
| 1895 | ac_objext=$OBJEXT |
| 1896 | echo "$as_me:1896: checking whether we are using the GNU C compiler" >&5 |
| 1897 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1898 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1900 | else |
| 1901 | cat >conftest.$ac_ext <<_ACEOF |
| 1902 | #line 1902 "configure" |
| 1903 | #include "confdefs.h" |
| 1904 | |
| 1905 | #ifdef F77_DUMMY_MAIN |
| 1906 | # ifdef __cplusplus |
| 1907 | extern "C" |
| 1908 | # endif |
| 1909 | int F77_DUMMY_MAIN() { return 1; } |
| 1910 | #endif |
| 1911 | int |
| 1912 | main () |
| 1913 | { |
| 1914 | #ifndef __GNUC__ |
| 1915 | choke me |
| 1916 | #endif |
| 1917 | |
| 1918 | ; |
| 1919 | return 0; |
| 1920 | } |
| 1921 | _ACEOF |
| 1922 | rm -f conftest.$ac_objext |
| 1923 | if { (eval echo "$as_me:1923: \"$ac_compile\"") >&5 |
| 1924 | (eval $ac_compile) 2>&5 |
| 1925 | ac_status=$? |
| 1926 | echo "$as_me:1926: \$? = $ac_status" >&5 |
| 1927 | (exit $ac_status); } && |
| 1928 | { ac_try='test -s conftest.$ac_objext' |
| 1929 | { (eval echo "$as_me:1929: \"$ac_try\"") >&5 |
| 1930 | (eval $ac_try) 2>&5 |
| 1931 | ac_status=$? |
| 1932 | echo "$as_me:1932: \$? = $ac_status" >&5 |
| 1933 | (exit $ac_status); }; }; then |
| 1934 | ac_compiler_gnu=yes |
| 1935 | else |
| 1936 | echo "$as_me: failed program was:" >&5 |
| 1937 | cat conftest.$ac_ext >&5 |
| 1938 | ac_compiler_gnu=no |
| 1939 | fi |
| 1940 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1941 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 1942 | |
| 1943 | fi |
| 1944 | echo "$as_me:1944: result: $ac_cv_c_compiler_gnu" >&5 |
| 1945 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1946 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1947 | ac_test_CFLAGS=${CFLAGS+set} |
| 1948 | ac_save_CFLAGS=$CFLAGS |
| 1949 | CFLAGS="-g" |
| 1950 | echo "$as_me:1950: checking whether $CC accepts -g" >&5 |
| 1951 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1952 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1954 | else |
| 1955 | cat >conftest.$ac_ext <<_ACEOF |
| 1956 | #line 1956 "configure" |
| 1957 | #include "confdefs.h" |
| 1958 | |
| 1959 | #ifdef F77_DUMMY_MAIN |
| 1960 | # ifdef __cplusplus |
| 1961 | extern "C" |
| 1962 | # endif |
| 1963 | int F77_DUMMY_MAIN() { return 1; } |
| 1964 | #endif |
| 1965 | int |
| 1966 | main () |
| 1967 | { |
| 1968 | |
| 1969 | ; |
| 1970 | return 0; |
| 1971 | } |
| 1972 | _ACEOF |
| 1973 | rm -f conftest.$ac_objext |
| 1974 | if { (eval echo "$as_me:1974: \"$ac_compile\"") >&5 |
| 1975 | (eval $ac_compile) 2>&5 |
| 1976 | ac_status=$? |
| 1977 | echo "$as_me:1977: \$? = $ac_status" >&5 |
| 1978 | (exit $ac_status); } && |
| 1979 | { ac_try='test -s conftest.$ac_objext' |
| 1980 | { (eval echo "$as_me:1980: \"$ac_try\"") >&5 |
| 1981 | (eval $ac_try) 2>&5 |
| 1982 | ac_status=$? |
| 1983 | echo "$as_me:1983: \$? = $ac_status" >&5 |
| 1984 | (exit $ac_status); }; }; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1985 | ac_cv_prog_cc_g=yes |
| 1986 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1987 | echo "$as_me: failed program was:" >&5 |
| 1988 | cat conftest.$ac_ext >&5 |
| 1989 | ac_cv_prog_cc_g=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1990 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1991 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1992 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1993 | echo "$as_me:1993: result: $ac_cv_prog_cc_g" >&5 |
| 1994 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1995 | if test "$ac_test_CFLAGS" = set; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 1996 | CFLAGS=$ac_save_CFLAGS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1997 | elif test $ac_cv_prog_cc_g = yes; then |
| 1998 | if test "$GCC" = yes; then |
| 1999 | CFLAGS="-g -O2" |
| 2000 | else |
| 2001 | CFLAGS="-g" |
| 2002 | fi |
| 2003 | else |
| 2004 | if test "$GCC" = yes; then |
| 2005 | CFLAGS="-O2" |
| 2006 | else |
| 2007 | CFLAGS= |
| 2008 | fi |
| 2009 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2010 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2011 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2012 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2013 | # the declaration of exit, since it's the most demanding environment. |
| 2014 | cat >conftest.$ac_ext <<_ACEOF |
| 2015 | #ifndef __cplusplus |
| 2016 | choke me |
| 2017 | #endif |
| 2018 | _ACEOF |
| 2019 | rm -f conftest.$ac_objext |
| 2020 | if { (eval echo "$as_me:2020: \"$ac_compile\"") >&5 |
| 2021 | (eval $ac_compile) 2>&5 |
| 2022 | ac_status=$? |
| 2023 | echo "$as_me:2023: \$? = $ac_status" >&5 |
| 2024 | (exit $ac_status); } && |
| 2025 | { ac_try='test -s conftest.$ac_objext' |
| 2026 | { (eval echo "$as_me:2026: \"$ac_try\"") >&5 |
| 2027 | (eval $ac_try) 2>&5 |
| 2028 | ac_status=$? |
| 2029 | echo "$as_me:2029: \$? = $ac_status" >&5 |
| 2030 | (exit $ac_status); }; }; then |
| 2031 | for ac_declaration in \ |
| 2032 | ''\ |
| 2033 | '#include <stdlib.h>' \ |
| 2034 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2035 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2036 | 'extern "C" void exit (int) throw ();' \ |
| 2037 | 'extern "C" void exit (int);' \ |
| 2038 | 'void exit (int);' |
| 2039 | do |
| 2040 | cat >conftest.$ac_ext <<_ACEOF |
| 2041 | #line 2041 "configure" |
| 2042 | #include "confdefs.h" |
| 2043 | #include <stdlib.h> |
| 2044 | $ac_declaration |
| 2045 | #ifdef F77_DUMMY_MAIN |
| 2046 | # ifdef __cplusplus |
| 2047 | extern "C" |
| 2048 | # endif |
| 2049 | int F77_DUMMY_MAIN() { return 1; } |
| 2050 | #endif |
| 2051 | int |
| 2052 | main () |
| 2053 | { |
| 2054 | exit (42); |
| 2055 | ; |
| 2056 | return 0; |
| 2057 | } |
| 2058 | _ACEOF |
| 2059 | rm -f conftest.$ac_objext |
| 2060 | if { (eval echo "$as_me:2060: \"$ac_compile\"") >&5 |
| 2061 | (eval $ac_compile) 2>&5 |
| 2062 | ac_status=$? |
| 2063 | echo "$as_me:2063: \$? = $ac_status" >&5 |
| 2064 | (exit $ac_status); } && |
| 2065 | { ac_try='test -s conftest.$ac_objext' |
| 2066 | { (eval echo "$as_me:2066: \"$ac_try\"") >&5 |
| 2067 | (eval $ac_try) 2>&5 |
| 2068 | ac_status=$? |
| 2069 | echo "$as_me:2069: \$? = $ac_status" >&5 |
| 2070 | (exit $ac_status); }; }; then |
| 2071 | : |
| 2072 | else |
| 2073 | echo "$as_me: failed program was:" >&5 |
| 2074 | cat conftest.$ac_ext >&5 |
| 2075 | continue |
| 2076 | fi |
| 2077 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2078 | cat >conftest.$ac_ext <<_ACEOF |
| 2079 | #line 2079 "configure" |
| 2080 | #include "confdefs.h" |
| 2081 | $ac_declaration |
| 2082 | #ifdef F77_DUMMY_MAIN |
| 2083 | # ifdef __cplusplus |
| 2084 | extern "C" |
| 2085 | # endif |
| 2086 | int F77_DUMMY_MAIN() { return 1; } |
| 2087 | #endif |
| 2088 | int |
| 2089 | main () |
| 2090 | { |
| 2091 | exit (42); |
| 2092 | ; |
| 2093 | return 0; |
| 2094 | } |
| 2095 | _ACEOF |
| 2096 | rm -f conftest.$ac_objext |
| 2097 | if { (eval echo "$as_me:2097: \"$ac_compile\"") >&5 |
| 2098 | (eval $ac_compile) 2>&5 |
| 2099 | ac_status=$? |
| 2100 | echo "$as_me:2100: \$? = $ac_status" >&5 |
| 2101 | (exit $ac_status); } && |
| 2102 | { ac_try='test -s conftest.$ac_objext' |
| 2103 | { (eval echo "$as_me:2103: \"$ac_try\"") >&5 |
| 2104 | (eval $ac_try) 2>&5 |
| 2105 | ac_status=$? |
| 2106 | echo "$as_me:2106: \$? = $ac_status" >&5 |
| 2107 | (exit $ac_status); }; }; then |
| 2108 | break |
| 2109 | else |
| 2110 | echo "$as_me: failed program was:" >&5 |
| 2111 | cat conftest.$ac_ext >&5 |
| 2112 | fi |
| 2113 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2114 | done |
| 2115 | rm -f conftest* |
| 2116 | if test -n "$ac_declaration"; then |
| 2117 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2118 | echo $ac_declaration >>confdefs.h |
| 2119 | echo '#endif' >>confdefs.h |
| 2120 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2121 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2122 | else |
| 2123 | echo "$as_me: failed program was:" >&5 |
| 2124 | cat conftest.$ac_ext >&5 |
| 2125 | fi |
| 2126 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2127 | ac_ext=c |
| 2128 | ac_cpp='$CPP $CPPFLAGS' |
| 2129 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2130 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2131 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2132 | |
| 2133 | ac_config_commands="$ac_config_commands default-1" |
| 2134 | |
| 2135 | am_make=${MAKE-make} |
| 2136 | cat > confinc << 'END' |
| 2137 | doit: |
| 2138 | @echo done |
| 2139 | END |
| 2140 | # If we don't find an include directive, just comment out the code. |
| 2141 | echo "$as_me:2141: checking for style of include used by $am_make" >&5 |
| 2142 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 2143 | am__include='#' |
| 2144 | am__quote= |
| 2145 | _am_result=none |
| 2146 | # First try GNU make style include. |
| 2147 | echo "include confinc" > confmf |
| 2148 | # We grep out `Entering directory' and `Leaving directory' |
| 2149 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2150 | # In particular we don't look at `^make:' because GNU make might |
| 2151 | # be invoked under some other name (usually "gmake"), in which |
| 2152 | # case it prints its new name instead of `make'. |
| 2153 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
| 2154 | am__include=include |
| 2155 | am__quote= |
| 2156 | _am_result=GNU |
| 2157 | fi |
| 2158 | # Now try BSD make style include. |
| 2159 | if test "$am__include" = "#"; then |
| 2160 | echo '.include "confinc"' > confmf |
| 2161 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2162 | am__include=.include |
| 2163 | am__quote='"' |
| 2164 | _am_result=BSD |
| 2165 | fi |
| 2166 | fi |
| 2167 | |
| 2168 | echo "$as_me:2168: result: $_am_result" >&5 |
| 2169 | echo "${ECHO_T}$_am_result" >&6 |
| 2170 | rm -f confinc confmf |
| 2171 | |
| 2172 | depcc="$CC" am_compiler_list= |
| 2173 | |
| 2174 | echo "$as_me:2174: checking dependency style of $depcc" >&5 |
| 2175 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2176 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2178 | else |
| 2179 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2180 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2181 | # making bogus files that we don't know about and never remove. For |
| 2182 | # instance it was reported that on HP-UX the gcc test will end up |
| 2183 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2184 | # in D'. |
| 2185 | mkdir conftest.dir |
| 2186 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2187 | # using a relative directory. |
| 2188 | cp "$am_depcomp" conftest.dir |
| 2189 | cd conftest.dir |
| 2190 | |
| 2191 | am_cv_CC_dependencies_compiler_type=none |
| 2192 | if test "$am_compiler_list" = ""; then |
| 2193 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2194 | fi |
| 2195 | for depmode in $am_compiler_list; do |
| 2196 | # We need to recreate these files for each test, as the compiler may |
| 2197 | # overwrite some of them when testing with obscure command lines. |
| 2198 | # This happens at least with the AIX C compiler. |
| 2199 | echo '#include "conftest.h"' > conftest.c |
| 2200 | echo 'int i;' > conftest.h |
| 2201 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 2202 | |
| 2203 | case $depmode in |
| 2204 | nosideeffect) |
| 2205 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2206 | # only be used when explicitly requested |
| 2207 | if test "x$enable_dependency_tracking" = xyes; then |
| 2208 | continue |
| 2209 | else |
| 2210 | break |
| 2211 | fi |
| 2212 | ;; |
| 2213 | none) break ;; |
| 2214 | esac |
| 2215 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2216 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2217 | # handle `-M -o', and we need to detect this. |
| 2218 | if depmode=$depmode \ |
| 2219 | source=conftest.c object=conftest.o \ |
| 2220 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 2221 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 2222 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 2223 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2224 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2225 | break |
| 2226 | fi |
| 2227 | done |
| 2228 | |
| 2229 | cd .. |
| 2230 | rm -rf conftest.dir |
| 2231 | else |
| 2232 | am_cv_CC_dependencies_compiler_type=none |
| 2233 | fi |
| 2234 | |
| 2235 | fi |
| 2236 | echo "$as_me:2236: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2237 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 2238 | CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2239 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2240 | if test "x$cflags_specified" = "x" ; then |
| 2241 | CFLAGS="$CFLAGS -Wall" |
| 2242 | fi |
| 2243 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2244 | ac_ext=c |
| 2245 | ac_cpp='$CPP $CPPFLAGS' |
| 2246 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2247 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2248 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2249 | echo "$as_me:2249: checking how to run the C preprocessor" >&5 |
| 2250 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2251 | # On Suns, sometimes $CPP names a directory. |
| 2252 | if test -n "$CPP" && test -d "$CPP"; then |
| 2253 | CPP= |
| 2254 | fi |
| 2255 | if test -z "$CPP"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2256 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2258 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2259 | # Double quotes because CPP needs to be expanded |
| 2260 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2261 | do |
| 2262 | ac_preproc_ok=false |
| 2263 | for ac_c_preproc_warn_flag in '' yes |
| 2264 | do |
| 2265 | # Use a header file that comes with gcc, so configuring glibc |
| 2266 | # with a fresh cross-compiler works. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2267 | # On the NeXT, cc -E runs the code through the compiler's parser, |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2268 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2269 | cat >conftest.$ac_ext <<_ACEOF |
| 2270 | #line 2270 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2271 | #include "confdefs.h" |
| 2272 | #include <assert.h> |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2273 | Syntax error |
| 2274 | _ACEOF |
| 2275 | if { (eval echo "$as_me:2275: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2276 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2277 | ac_status=$? |
| 2278 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2279 | rm -f conftest.er1 |
| 2280 | cat conftest.err >&5 |
| 2281 | echo "$as_me:2281: \$? = $ac_status" >&5 |
| 2282 | (exit $ac_status); } >/dev/null; then |
| 2283 | if test -s conftest.err; then |
| 2284 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2285 | else |
| 2286 | ac_cpp_err= |
| 2287 | fi |
| 2288 | else |
| 2289 | ac_cpp_err=yes |
| 2290 | fi |
| 2291 | if test -z "$ac_cpp_err"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2292 | : |
| 2293 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2294 | echo "$as_me: failed program was:" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2295 | cat conftest.$ac_ext >&5 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2296 | # Broken: fails on valid input. |
| 2297 | continue |
| 2298 | fi |
| 2299 | rm -f conftest.err conftest.$ac_ext |
| 2300 | |
| 2301 | # OK, works on sane cases. Now check whether non-existent headers |
| 2302 | # can be detected and how. |
| 2303 | cat >conftest.$ac_ext <<_ACEOF |
| 2304 | #line 2304 "configure" |
| 2305 | #include "confdefs.h" |
| 2306 | #include <ac_nonexistent.h> |
| 2307 | _ACEOF |
| 2308 | if { (eval echo "$as_me:2308: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2309 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2310 | ac_status=$? |
| 2311 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2312 | rm -f conftest.er1 |
| 2313 | cat conftest.err >&5 |
| 2314 | echo "$as_me:2314: \$? = $ac_status" >&5 |
| 2315 | (exit $ac_status); } >/dev/null; then |
| 2316 | if test -s conftest.err; then |
| 2317 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2318 | else |
| 2319 | ac_cpp_err= |
| 2320 | fi |
| 2321 | else |
| 2322 | ac_cpp_err=yes |
| 2323 | fi |
| 2324 | if test -z "$ac_cpp_err"; then |
| 2325 | # Broken: success on invalid input. |
| 2326 | continue |
| 2327 | else |
| 2328 | echo "$as_me: failed program was:" >&5 |
| 2329 | cat conftest.$ac_ext >&5 |
| 2330 | # Passes both tests. |
| 2331 | ac_preproc_ok=: |
| 2332 | break |
| 2333 | fi |
| 2334 | rm -f conftest.err conftest.$ac_ext |
| 2335 | |
| 2336 | done |
| 2337 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2338 | rm -f conftest.err conftest.$ac_ext |
| 2339 | if $ac_preproc_ok; then |
| 2340 | break |
| 2341 | fi |
| 2342 | |
| 2343 | done |
| 2344 | ac_cv_prog_CPP=$CPP |
| 2345 | |
| 2346 | fi |
| 2347 | CPP=$ac_cv_prog_CPP |
| 2348 | else |
| 2349 | ac_cv_prog_CPP=$CPP |
| 2350 | fi |
| 2351 | echo "$as_me:2351: result: $CPP" >&5 |
| 2352 | echo "${ECHO_T}$CPP" >&6 |
| 2353 | ac_preproc_ok=false |
| 2354 | for ac_c_preproc_warn_flag in '' yes |
| 2355 | do |
| 2356 | # Use a header file that comes with gcc, so configuring glibc |
| 2357 | # with a fresh cross-compiler works. |
| 2358 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2359 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2360 | cat >conftest.$ac_ext <<_ACEOF |
| 2361 | #line 2361 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2362 | #include "confdefs.h" |
| 2363 | #include <assert.h> |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2364 | Syntax error |
| 2365 | _ACEOF |
| 2366 | if { (eval echo "$as_me:2366: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2368 | ac_status=$? |
| 2369 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2370 | rm -f conftest.er1 |
| 2371 | cat conftest.err >&5 |
| 2372 | echo "$as_me:2372: \$? = $ac_status" >&5 |
| 2373 | (exit $ac_status); } >/dev/null; then |
| 2374 | if test -s conftest.err; then |
| 2375 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2376 | else |
| 2377 | ac_cpp_err= |
| 2378 | fi |
| 2379 | else |
| 2380 | ac_cpp_err=yes |
| 2381 | fi |
| 2382 | if test -z "$ac_cpp_err"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2383 | : |
| 2384 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2385 | echo "$as_me: failed program was:" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2386 | cat conftest.$ac_ext >&5 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2387 | # Broken: fails on valid input. |
| 2388 | continue |
| 2389 | fi |
| 2390 | rm -f conftest.err conftest.$ac_ext |
| 2391 | |
| 2392 | # OK, works on sane cases. Now check whether non-existent headers |
| 2393 | # can be detected and how. |
| 2394 | cat >conftest.$ac_ext <<_ACEOF |
| 2395 | #line 2395 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2396 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2397 | #include <ac_nonexistent.h> |
| 2398 | _ACEOF |
| 2399 | if { (eval echo "$as_me:2399: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2400 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2401 | ac_status=$? |
| 2402 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2403 | rm -f conftest.er1 |
| 2404 | cat conftest.err >&5 |
| 2405 | echo "$as_me:2405: \$? = $ac_status" >&5 |
| 2406 | (exit $ac_status); } >/dev/null; then |
| 2407 | if test -s conftest.err; then |
| 2408 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2409 | else |
| 2410 | ac_cpp_err= |
| 2411 | fi |
| 2412 | else |
| 2413 | ac_cpp_err=yes |
| 2414 | fi |
| 2415 | if test -z "$ac_cpp_err"; then |
| 2416 | # Broken: success on invalid input. |
| 2417 | continue |
| 2418 | else |
| 2419 | echo "$as_me: failed program was:" >&5 |
| 2420 | cat conftest.$ac_ext >&5 |
| 2421 | # Passes both tests. |
| 2422 | ac_preproc_ok=: |
| 2423 | break |
| 2424 | fi |
| 2425 | rm -f conftest.err conftest.$ac_ext |
| 2426 | |
| 2427 | done |
| 2428 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2429 | rm -f conftest.err conftest.$ac_ext |
| 2430 | if $ac_preproc_ok; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2431 | : |
| 2432 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2433 | { { echo "$as_me:2433: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2434 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2435 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2436 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2437 | |
| 2438 | ac_ext=c |
| 2439 | ac_cpp='$CPP $CPPFLAGS' |
| 2440 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2441 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2442 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2443 | |
| 2444 | # Find a good install program. We prefer a C program (faster), |
| 2445 | # so one script is as good as another. But avoid the broken or |
| 2446 | # incompatible versions: |
| 2447 | # SysV /etc/install, /usr/sbin/install |
| 2448 | # SunOS /usr/etc/install |
| 2449 | # IRIX /sbin/install |
| 2450 | # AIX /bin/install |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2451 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2452 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2453 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2454 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2455 | # ./install, which can be erroneously created by make from ./install.sh. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2456 | echo "$as_me:2456: checking for a BSD compatible install" >&5 |
| 2457 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2458 | if test -z "$INSTALL"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2459 | if test "${ac_cv_path_install+set}" = set; then |
| 2460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2461 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2462 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 2463 | for ac_dir in $PATH; do |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2464 | IFS=$ac_save_IFS |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 2465 | # Account for people who put trailing slashes in PATH elements. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2466 | case $ac_dir/ in |
| 2467 | / | ./ | .// | /cC/* \ |
| 2468 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ |
| 2469 | | /usr/ucb/* ) ;; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 2470 | *) |
| 2471 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2472 | # Don't use installbsd from OSF since it installs stuff as root |
| 2473 | # by default. |
| 2474 | for ac_prog in ginstall scoinst install; do |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2475 | if $as_executable_p "$ac_dir/$ac_prog"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 2476 | if test $ac_prog = install && |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2477 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 2478 | # AIX install. It has an incompatible calling convention. |
| 2479 | : |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2480 | elif test $ac_prog = install && |
| 2481 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
| 2482 | # program-specific install script used by HP pwplus--don't use. |
| 2483 | : |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 2484 | else |
| 2485 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 2486 | break 2 |
| 2487 | fi |
| 2488 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2489 | done |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 2490 | ;; |
| 2491 | esac |
| 2492 | done |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2493 | |
| 2494 | fi |
| 2495 | if test "${ac_cv_path_install+set}" = set; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2496 | INSTALL=$ac_cv_path_install |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2497 | else |
| 2498 | # As a last resort, use the slow shell script. We don't cache a |
| 2499 | # path for INSTALL within a source directory, because that will |
| 2500 | # break other packages using the cache if that directory is |
| 2501 | # removed, or if the path is relative. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2502 | INSTALL=$ac_install_sh |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2503 | fi |
| 2504 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2505 | echo "$as_me:2505: result: $INSTALL" >&5 |
| 2506 | echo "${ECHO_T}$INSTALL" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2507 | |
| 2508 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2509 | # It thinks the first close brace ends the variable substitution. |
| 2510 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2511 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2512 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2513 | |
| 2514 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2515 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2516 | echo "$as_me:2516: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 2517 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 2518 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 2519 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 2520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2521 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2522 | cat >conftest.make <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2523 | all: |
| 2524 | @echo 'ac_maketemp="${MAKE}"' |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2525 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2526 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2527 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2528 | if test -n "$ac_maketemp"; then |
| 2529 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 2530 | else |
| 2531 | eval ac_cv_prog_make_${ac_make}_set=no |
| 2532 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2533 | rm -f conftest.make |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2534 | fi |
| 2535 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2536 | echo "$as_me:2536: result: yes" >&5 |
| 2537 | echo "${ECHO_T}yes" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2538 | SET_MAKE= |
| 2539 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2540 | echo "$as_me:2540: result: no" >&5 |
| 2541 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2542 | SET_MAKE="MAKE=${MAKE-make}" |
| 2543 | fi |
| 2544 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2545 | if test -n "$ac_tool_prefix"; then |
| 2546 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2547 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2548 | echo "$as_me:2548: checking for $ac_word" >&5 |
| 2549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2550 | if test "${ac_cv_prog_AR+set}" = set; then |
| 2551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2552 | else |
| 2553 | if test -n "$AR"; then |
| 2554 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 2555 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2556 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2557 | ac_dummy="$PATH" |
| 2558 | for ac_dir in $ac_dummy; do |
| 2559 | IFS=$ac_save_IFS |
| 2560 | test -z "$ac_dir" && ac_dir=. |
| 2561 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 2562 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 2563 | echo "$as_me:2563: found $ac_dir/$ac_word" >&5 |
| 2564 | break |
| 2565 | done |
| 2566 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2567 | fi |
| 2568 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2569 | AR=$ac_cv_prog_AR |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2570 | if test -n "$AR"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2571 | echo "$as_me:2571: result: $AR" >&5 |
| 2572 | echo "${ECHO_T}$AR" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2573 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2574 | echo "$as_me:2574: result: no" >&5 |
| 2575 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2576 | fi |
| 2577 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2578 | fi |
| 2579 | if test -z "$ac_cv_prog_AR"; then |
| 2580 | ac_ct_AR=$AR |
| 2581 | # Extract the first word of "ar", so it can be a program name with args. |
| 2582 | set dummy ar; ac_word=$2 |
| 2583 | echo "$as_me:2583: checking for $ac_word" >&5 |
| 2584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2585 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 2586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2587 | else |
| 2588 | if test -n "$ac_ct_AR"; then |
| 2589 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 2590 | else |
| 2591 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2592 | ac_dummy="$PATH" |
| 2593 | for ac_dir in $ac_dummy; do |
| 2594 | IFS=$ac_save_IFS |
| 2595 | test -z "$ac_dir" && ac_dir=. |
| 2596 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 2597 | ac_cv_prog_ac_ct_AR="ar" |
| 2598 | echo "$as_me:2598: found $ac_dir/$ac_word" >&5 |
| 2599 | break |
| 2600 | done |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2601 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2602 | fi |
| 2603 | fi |
| 2604 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 2605 | if test -n "$ac_ct_AR"; then |
| 2606 | echo "$as_me:2606: result: $ac_ct_AR" >&5 |
| 2607 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 2608 | else |
| 2609 | echo "$as_me:2609: result: no" >&5 |
| 2610 | echo "${ECHO_T}no" >&6 |
| 2611 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2612 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2613 | AR=$ac_ct_AR |
| 2614 | else |
| 2615 | AR="$ac_cv_prog_AR" |
| 2616 | fi |
| 2617 | |
| 2618 | if test -n "$ac_tool_prefix"; then |
| 2619 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2620 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2621 | echo "$as_me:2621: checking for $ac_word" >&5 |
| 2622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2623 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 2624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2625 | else |
| 2626 | if test -n "$RANLIB"; then |
| 2627 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2628 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2629 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2630 | ac_dummy="$PATH" |
| 2631 | for ac_dir in $ac_dummy; do |
| 2632 | IFS=$ac_save_IFS |
| 2633 | test -z "$ac_dir" && ac_dir=. |
| 2634 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 2635 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2636 | echo "$as_me:2636: found $ac_dir/$ac_word" >&5 |
| 2637 | break |
| 2638 | done |
| 2639 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2640 | fi |
| 2641 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2642 | RANLIB=$ac_cv_prog_RANLIB |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2643 | if test -n "$RANLIB"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2644 | echo "$as_me:2644: result: $RANLIB" >&5 |
| 2645 | echo "${ECHO_T}$RANLIB" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2646 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2647 | echo "$as_me:2647: result: no" >&5 |
| 2648 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2649 | fi |
| 2650 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2651 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2652 | if test -z "$ac_cv_prog_RANLIB"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2653 | ac_ct_RANLIB=$RANLIB |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2654 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 2655 | set dummy ranlib; ac_word=$2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2656 | echo "$as_me:2656: checking for $ac_word" >&5 |
| 2657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2658 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 2659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2660 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2661 | if test -n "$ac_ct_RANLIB"; then |
| 2662 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2663 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2664 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2665 | ac_dummy="$PATH" |
| 2666 | for ac_dir in $ac_dummy; do |
| 2667 | IFS=$ac_save_IFS |
| 2668 | test -z "$ac_dir" && ac_dir=. |
| 2669 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 2670 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 2671 | echo "$as_me:2671: found $ac_dir/$ac_word" >&5 |
| 2672 | break |
| 2673 | done |
| 2674 | |
| 2675 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2676 | fi |
| 2677 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2678 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 2679 | if test -n "$ac_ct_RANLIB"; then |
| 2680 | echo "$as_me:2680: result: $ac_ct_RANLIB" >&5 |
| 2681 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2682 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2683 | echo "$as_me:2683: result: no" >&5 |
| 2684 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2685 | fi |
| 2686 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2687 | RANLIB=$ac_ct_RANLIB |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2688 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2689 | RANLIB="$ac_cv_prog_RANLIB" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2690 | fi |
| 2691 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2692 | echo "$as_me:2692: checking for AIX" >&5 |
| 2693 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2694 | cat >conftest.$ac_ext <<_ACEOF |
| 2695 | #line 2695 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2696 | #include "confdefs.h" |
| 2697 | #ifdef _AIX |
| 2698 | yes |
| 2699 | #endif |
| 2700 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2701 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2702 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2703 | egrep "yes" >/dev/null 2>&1; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2704 | echo "$as_me:2704: result: yes" >&5 |
| 2705 | echo "${ECHO_T}yes" >&6 |
| 2706 | cat >>confdefs.h <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2707 | #define _ALL_SOURCE 1 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2708 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2709 | |
| 2710 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2711 | echo "$as_me:2711: result: no" >&5 |
| 2712 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2713 | fi |
| 2714 | rm -f conftest* |
| 2715 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2716 | # Check whether --enable-vtysh or --disable-vtysh was given. |
| 2717 | if test "${enable_vtysh+set}" = set; then |
| 2718 | enableval="$enable_vtysh" |
| 2719 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2720 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2721 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 2722 | if test "${enable_ipv6+set}" = set; then |
| 2723 | enableval="$enable_ipv6" |
| 2724 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2725 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2726 | # Check whether --enable-zebra or --disable-zebra was given. |
| 2727 | if test "${enable_zebra+set}" = set; then |
| 2728 | enableval="$enable_zebra" |
| 2729 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2730 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2731 | # Check whether --enable-bgpd or --disable-bgpd was given. |
| 2732 | if test "${enable_bgpd+set}" = set; then |
| 2733 | enableval="$enable_bgpd" |
| 2734 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2735 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2736 | # Check whether --enable-ripd or --disable-ripd was given. |
| 2737 | if test "${enable_ripd+set}" = set; then |
| 2738 | enableval="$enable_ripd" |
| 2739 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2740 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2741 | # Check whether --enable-ripngd or --disable-ripngd was given. |
| 2742 | if test "${enable_ripngd+set}" = set; then |
| 2743 | enableval="$enable_ripngd" |
| 2744 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2745 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2746 | # Check whether --enable-ospfd or --disable-ospfd was given. |
| 2747 | if test "${enable_ospfd+set}" = set; then |
| 2748 | enableval="$enable_ospfd" |
| 2749 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2750 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2751 | # Check whether --enable-ospf6d or --disable-ospf6d was given. |
| 2752 | if test "${enable_ospf6d+set}" = set; then |
| 2753 | enableval="$enable_ospf6d" |
| 2754 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2755 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2756 | # Check whether --enable-bgp-announce or --disable-bgp-announce was given. |
| 2757 | if test "${enable_bgp_announce+set}" = set; then |
| 2758 | enableval="$enable_bgp_announce" |
| 2759 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2760 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2761 | # Check whether --enable-netlink or --disable-netlink was given. |
| 2762 | if test "${enable_netlink+set}" = set; then |
| 2763 | enableval="$enable_netlink" |
| 2764 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2765 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2766 | # Check whether --enable-broken-aliases or --disable-broken-aliases was given. |
| 2767 | if test "${enable_broken_aliases+set}" = set; then |
| 2768 | enableval="$enable_broken_aliases" |
| 2769 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2770 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2771 | # Check whether --enable-snmp or --disable-snmp was given. |
| 2772 | if test "${enable_snmp+set}" = set; then |
| 2773 | enableval="$enable_snmp" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2774 | |
| 2775 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2776 | |
| 2777 | # Check whether --with-libpam or --without-libpam was given. |
| 2778 | if test "${with_libpam+set}" = set; then |
| 2779 | withval="$with_libpam" |
| 2780 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2781 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2782 | # Check whether --enable-tcpsock or --disable-tcpsock was given. |
| 2783 | if test "${enable_tcpsock+set}" = set; then |
| 2784 | enableval="$enable_tcpsock" |
| 2785 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2786 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2787 | # Check whether --enable-nssa or --disable-nssa was given. |
| 2788 | if test "${enable_nssa+set}" = set; then |
| 2789 | enableval="$enable_nssa" |
| 2790 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2791 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2792 | # Check whether --enable-opaque-lsa or --disable-opaque-lsa was given. |
| 2793 | if test "${enable_opaque_lsa+set}" = set; then |
| 2794 | enableval="$enable_opaque_lsa" |
| 2795 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2796 | fi; |
| 2797 | # Check whether --enable-ospfapi or --disable-ospfapi was given. |
| 2798 | if test "${enable_ospfapi+set}" = set; then |
| 2799 | enableval="$enable_ospfapi" |
| 2800 | |
| 2801 | fi; |
| 2802 | # Check whether --enable-ospfclient or --disable-ospfclient was given. |
| 2803 | if test "${enable_ospfclient+set}" = set; then |
| 2804 | enableval="$enable_ospfclient" |
| 2805 | |
| 2806 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2807 | # Check whether --enable-ospf-te or --disable-ospf-te was given. |
| 2808 | if test "${enable_ospf_te+set}" = set; then |
| 2809 | enableval="$enable_ospf_te" |
| 2810 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2811 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2812 | # Check whether --enable-multipath or --disable-multipath was given. |
| 2813 | if test "${enable_multipath+set}" = set; then |
| 2814 | enableval="$enable_multipath" |
| 2815 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2816 | fi; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2817 | |
| 2818 | if test "${enable_broken_aliases}" = "yes"; then |
| 2819 | if test "${enable_netlink}" = "yes" |
| 2820 | then |
| 2821 | echo "Sorry, you can't use netlink with broken aliases" |
| 2822 | exit 1 |
| 2823 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2824 | |
| 2825 | cat >>confdefs.h <<\_ACEOF |
| 2826 | #define HAVE_BROKEN_ALIASES |
| 2827 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2828 | |
| 2829 | enable_netlink=no |
| 2830 | fi |
| 2831 | |
| 2832 | if test "${enable_tcp_zebra}" = "yes"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2833 | |
| 2834 | cat >>confdefs.h <<\_ACEOF |
| 2835 | #define HAVE_TCP_ZEBRA |
| 2836 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2837 | |
| 2838 | fi |
| 2839 | |
| 2840 | if test "${enable_nssa}" = "yes"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2841 | |
| 2842 | cat >>confdefs.h <<\_ACEOF |
| 2843 | #define HAVE_NSSA |
| 2844 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2845 | |
| 2846 | fi |
| 2847 | |
| 2848 | if test "${enable_opaque_lsa}" = "yes"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2849 | |
| 2850 | cat >>confdefs.h <<\_ACEOF |
| 2851 | #define HAVE_OPAQUE_LSA |
| 2852 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2853 | |
| 2854 | fi |
| 2855 | |
| 2856 | if test "${enable_ospf_te}" = "yes"; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2857 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2858 | cat >>confdefs.h <<\_ACEOF |
| 2859 | #define HAVE_OPAQUE_LSA |
| 2860 | _ACEOF |
| 2861 | |
| 2862 | cat >>confdefs.h <<\_ACEOF |
| 2863 | #define HAVE_OSPF_TE |
| 2864 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2865 | |
| 2866 | fi |
| 2867 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2868 | MULTIPATH_NUM=1 |
| 2869 | |
| 2870 | case "${enable_multipath}" in |
| 2871 | [0-9]|[1-9][0-9]) |
| 2872 | MULTIPATH_NUM="${enable_multipath}" |
| 2873 | ;; |
| 2874 | "") |
| 2875 | ;; |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2876 | *) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2877 | echo "Please specify digit to --enable-multipath ARG." |
| 2878 | exit 1 |
| 2879 | ;; |
| 2880 | esac |
| 2881 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2882 | echo "$as_me:2882: checking for ANSI C header files" >&5 |
| 2883 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2884 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2886 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2887 | cat >conftest.$ac_ext <<_ACEOF |
| 2888 | #line 2888 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2889 | #include "confdefs.h" |
| 2890 | #include <stdlib.h> |
| 2891 | #include <stdarg.h> |
| 2892 | #include <string.h> |
| 2893 | #include <float.h> |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2894 | |
| 2895 | _ACEOF |
| 2896 | if { (eval echo "$as_me:2896: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2897 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2898 | ac_status=$? |
| 2899 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2900 | rm -f conftest.er1 |
| 2901 | cat conftest.err >&5 |
| 2902 | echo "$as_me:2902: \$? = $ac_status" >&5 |
| 2903 | (exit $ac_status); } >/dev/null; then |
| 2904 | if test -s conftest.err; then |
| 2905 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2906 | else |
| 2907 | ac_cpp_err= |
| 2908 | fi |
| 2909 | else |
| 2910 | ac_cpp_err=yes |
| 2911 | fi |
| 2912 | if test -z "$ac_cpp_err"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2913 | ac_cv_header_stdc=yes |
| 2914 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2915 | echo "$as_me: failed program was:" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2916 | cat conftest.$ac_ext >&5 |
| 2917 | ac_cv_header_stdc=no |
| 2918 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2919 | rm -f conftest.err conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2920 | |
| 2921 | if test $ac_cv_header_stdc = yes; then |
| 2922 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2923 | cat >conftest.$ac_ext <<_ACEOF |
| 2924 | #line 2924 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2925 | #include "confdefs.h" |
| 2926 | #include <string.h> |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2927 | |
| 2928 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2930 | egrep "memchr" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2931 | : |
| 2932 | else |
| 2933 | ac_cv_header_stdc=no |
| 2934 | fi |
| 2935 | rm -f conftest* |
| 2936 | |
| 2937 | fi |
| 2938 | |
| 2939 | if test $ac_cv_header_stdc = yes; then |
| 2940 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2941 | cat >conftest.$ac_ext <<_ACEOF |
| 2942 | #line 2942 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2943 | #include "confdefs.h" |
| 2944 | #include <stdlib.h> |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2945 | |
| 2946 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2947 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2948 | egrep "free" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2949 | : |
| 2950 | else |
| 2951 | ac_cv_header_stdc=no |
| 2952 | fi |
| 2953 | rm -f conftest* |
| 2954 | |
| 2955 | fi |
| 2956 | |
| 2957 | if test $ac_cv_header_stdc = yes; then |
| 2958 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2959 | if test "$cross_compiling" = yes; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2960 | : |
| 2961 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2962 | cat >conftest.$ac_ext <<_ACEOF |
| 2963 | #line 2963 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2964 | #include "confdefs.h" |
| 2965 | #include <ctype.h> |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2966 | #if ((' ' & 0x0FF) == 0x020) |
| 2967 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2968 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2969 | #else |
| 2970 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2971 | || ('j' <= (c) && (c) <= 'r') \ |
| 2972 | || ('s' <= (c) && (c) <= 'z')) |
| 2973 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2974 | #endif |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 2975 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 2976 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2977 | int |
| 2978 | main () |
| 2979 | { |
| 2980 | int i; |
| 2981 | for (i = 0; i < 256; i++) |
| 2982 | if (XOR (islower (i), ISLOWER (i)) |
| 2983 | || toupper (i) != TOUPPER (i)) |
| 2984 | exit(2); |
| 2985 | exit (0); |
| 2986 | } |
| 2987 | _ACEOF |
| 2988 | rm -f conftest$ac_exeext |
| 2989 | if { (eval echo "$as_me:2989: \"$ac_link\"") >&5 |
| 2990 | (eval $ac_link) 2>&5 |
| 2991 | ac_status=$? |
| 2992 | echo "$as_me:2992: \$? = $ac_status" >&5 |
| 2993 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2994 | { (eval echo "$as_me:2994: \"$ac_try\"") >&5 |
| 2995 | (eval $ac_try) 2>&5 |
| 2996 | ac_status=$? |
| 2997 | echo "$as_me:2997: \$? = $ac_status" >&5 |
| 2998 | (exit $ac_status); }; }; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2999 | : |
| 3000 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3001 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3002 | echo "$as_me: failed program was:" >&5 |
| 3003 | cat conftest.$ac_ext >&5 |
| 3004 | ac_cv_header_stdc=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3005 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3006 | 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] | 3007 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 3008 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3009 | fi |
| 3010 | echo "$as_me:3010: result: $ac_cv_header_stdc" >&5 |
| 3011 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 3012 | if test $ac_cv_header_stdc = yes; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3013 | |
| 3014 | cat >>confdefs.h <<\_ACEOF |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 3015 | #define STDC_HEADERS 1 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3016 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3017 | |
| 3018 | fi |
| 3019 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3020 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3021 | |
| 3022 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3023 | inttypes.h stdint.h unistd.h |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3024 | do |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3025 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3026 | echo "$as_me:3026: checking for $ac_header" >&5 |
| 3027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3030 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3031 | cat >conftest.$ac_ext <<_ACEOF |
| 3032 | #line 3032 "configure" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 3033 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3034 | $ac_includes_default |
| 3035 | |
| 3036 | #include <$ac_header> |
| 3037 | _ACEOF |
| 3038 | rm -f conftest.$ac_objext |
| 3039 | if { (eval echo "$as_me:3039: \"$ac_compile\"") >&5 |
| 3040 | (eval $ac_compile) 2>&5 |
| 3041 | ac_status=$? |
| 3042 | echo "$as_me:3042: \$? = $ac_status" >&5 |
| 3043 | (exit $ac_status); } && |
| 3044 | { ac_try='test -s conftest.$ac_objext' |
| 3045 | { (eval echo "$as_me:3045: \"$ac_try\"") >&5 |
| 3046 | (eval $ac_try) 2>&5 |
| 3047 | ac_status=$? |
| 3048 | echo "$as_me:3048: \$? = $ac_status" >&5 |
| 3049 | (exit $ac_status); }; }; then |
| 3050 | eval "$as_ac_Header=yes" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 3051 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3052 | echo "$as_me: failed program was:" >&5 |
| 3053 | cat conftest.$ac_ext >&5 |
| 3054 | eval "$as_ac_Header=no" |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3055 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3056 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 3057 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3058 | echo "$as_me:3058: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3059 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3060 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3061 | cat >>confdefs.h <<_ACEOF |
| 3062 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3063 | _ACEOF |
| 3064 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 3065 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3066 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3067 | done |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3068 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3069 | 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 |
| 3070 | do |
| 3071 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3072 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3073 | echo "$as_me:3073: checking for $ac_header" >&5 |
| 3074 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3075 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3077 | fi |
| 3078 | echo "$as_me:3078: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3079 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3080 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3081 | # Is the header compilable? |
| 3082 | echo "$as_me:3082: checking $ac_header usability" >&5 |
| 3083 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3084 | cat >conftest.$ac_ext <<_ACEOF |
| 3085 | #line 3085 "configure" |
| 3086 | #include "confdefs.h" |
| 3087 | $ac_includes_default |
| 3088 | #include <$ac_header> |
| 3089 | _ACEOF |
| 3090 | rm -f conftest.$ac_objext |
| 3091 | if { (eval echo "$as_me:3091: \"$ac_compile\"") >&5 |
| 3092 | (eval $ac_compile) 2>&5 |
| 3093 | ac_status=$? |
| 3094 | echo "$as_me:3094: \$? = $ac_status" >&5 |
| 3095 | (exit $ac_status); } && |
| 3096 | { ac_try='test -s conftest.$ac_objext' |
| 3097 | { (eval echo "$as_me:3097: \"$ac_try\"") >&5 |
| 3098 | (eval $ac_try) 2>&5 |
| 3099 | ac_status=$? |
| 3100 | echo "$as_me:3100: \$? = $ac_status" >&5 |
| 3101 | (exit $ac_status); }; }; then |
| 3102 | ac_header_compiler=yes |
| 3103 | else |
| 3104 | echo "$as_me: failed program was:" >&5 |
| 3105 | cat conftest.$ac_ext >&5 |
| 3106 | ac_header_compiler=no |
| 3107 | fi |
| 3108 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3109 | echo "$as_me:3109: result: $ac_header_compiler" >&5 |
| 3110 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3111 | |
| 3112 | # Is the header present? |
| 3113 | echo "$as_me:3113: checking $ac_header presence" >&5 |
| 3114 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3115 | cat >conftest.$ac_ext <<_ACEOF |
| 3116 | #line 3116 "configure" |
| 3117 | #include "confdefs.h" |
| 3118 | #include <$ac_header> |
| 3119 | _ACEOF |
| 3120 | if { (eval echo "$as_me:3120: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3121 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3122 | ac_status=$? |
| 3123 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3124 | rm -f conftest.er1 |
| 3125 | cat conftest.err >&5 |
| 3126 | echo "$as_me:3126: \$? = $ac_status" >&5 |
| 3127 | (exit $ac_status); } >/dev/null; then |
| 3128 | if test -s conftest.err; then |
| 3129 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3130 | else |
| 3131 | ac_cpp_err= |
| 3132 | fi |
| 3133 | else |
| 3134 | ac_cpp_err=yes |
| 3135 | fi |
| 3136 | if test -z "$ac_cpp_err"; then |
| 3137 | ac_header_preproc=yes |
| 3138 | else |
| 3139 | echo "$as_me: failed program was:" >&5 |
| 3140 | cat conftest.$ac_ext >&5 |
| 3141 | ac_header_preproc=no |
| 3142 | fi |
| 3143 | rm -f conftest.err conftest.$ac_ext |
| 3144 | echo "$as_me:3144: result: $ac_header_preproc" >&5 |
| 3145 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3146 | |
| 3147 | # So? What about this header? |
| 3148 | case $ac_header_compiler:$ac_header_preproc in |
| 3149 | yes:no ) |
| 3150 | { echo "$as_me:3150: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3151 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3152 | { echo "$as_me:3152: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3153 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3154 | no:yes ) |
| 3155 | { echo "$as_me:3155: WARNING: $ac_header: present but cannot be compiled." >&5 |
| 3156 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;} |
| 3157 | { echo "$as_me:3157: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3158 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3159 | { echo "$as_me:3159: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3160 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3161 | esac |
| 3162 | echo "$as_me:3162: checking for $ac_header" >&5 |
| 3163 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3164 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3166 | else |
| 3167 | eval "$as_ac_Header=$ac_header_preproc" |
| 3168 | fi |
| 3169 | echo "$as_me:3169: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3170 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3171 | |
| 3172 | fi |
| 3173 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3174 | cat >>confdefs.h <<_ACEOF |
| 3175 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3176 | _ACEOF |
| 3177 | |
| 3178 | fi |
| 3179 | |
| 3180 | done |
| 3181 | |
| 3182 | echo "$as_me:3182: checking for $CC option to accept ANSI C" >&5 |
| 3183 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3184 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3186 | else |
| 3187 | ac_cv_prog_cc_stdc=no |
| 3188 | ac_save_CC=$CC |
| 3189 | cat >conftest.$ac_ext <<_ACEOF |
| 3190 | #line 3190 "configure" |
| 3191 | #include "confdefs.h" |
| 3192 | #include <stdarg.h> |
| 3193 | #include <stdio.h> |
| 3194 | #include <sys/types.h> |
| 3195 | #include <sys/stat.h> |
| 3196 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3197 | struct buf { int x; }; |
| 3198 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3199 | static char *e (p, i) |
| 3200 | char **p; |
| 3201 | int i; |
| 3202 | { |
| 3203 | return p[i]; |
| 3204 | } |
| 3205 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3206 | { |
| 3207 | char *s; |
| 3208 | va_list v; |
| 3209 | va_start (v,p); |
| 3210 | s = g (p, va_arg (v,int)); |
| 3211 | va_end (v); |
| 3212 | return s; |
| 3213 | } |
| 3214 | int test (int i, double x); |
| 3215 | struct s1 {int (*f) (int a);}; |
| 3216 | struct s2 {int (*f) (double a);}; |
| 3217 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3218 | int argc; |
| 3219 | char **argv; |
| 3220 | #ifdef F77_DUMMY_MAIN |
| 3221 | # ifdef __cplusplus |
| 3222 | extern "C" |
| 3223 | # endif |
| 3224 | int F77_DUMMY_MAIN() { return 1; } |
| 3225 | #endif |
| 3226 | int |
| 3227 | main () |
| 3228 | { |
| 3229 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3230 | ; |
| 3231 | return 0; |
| 3232 | } |
| 3233 | _ACEOF |
| 3234 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3235 | # breaks some systems' header files. |
| 3236 | # AIX -qlanglvl=ansi |
| 3237 | # Ultrix and OSF/1 -std1 |
| 3238 | # HP-UX 10.20 and later -Ae |
| 3239 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3240 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3241 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3242 | do |
| 3243 | CC="$ac_save_CC $ac_arg" |
| 3244 | rm -f conftest.$ac_objext |
| 3245 | if { (eval echo "$as_me:3245: \"$ac_compile\"") >&5 |
| 3246 | (eval $ac_compile) 2>&5 |
| 3247 | ac_status=$? |
| 3248 | echo "$as_me:3248: \$? = $ac_status" >&5 |
| 3249 | (exit $ac_status); } && |
| 3250 | { ac_try='test -s conftest.$ac_objext' |
| 3251 | { (eval echo "$as_me:3251: \"$ac_try\"") >&5 |
| 3252 | (eval $ac_try) 2>&5 |
| 3253 | ac_status=$? |
| 3254 | echo "$as_me:3254: \$? = $ac_status" >&5 |
| 3255 | (exit $ac_status); }; }; then |
| 3256 | ac_cv_prog_cc_stdc=$ac_arg |
| 3257 | break |
| 3258 | else |
| 3259 | echo "$as_me: failed program was:" >&5 |
| 3260 | cat conftest.$ac_ext >&5 |
| 3261 | fi |
| 3262 | rm -f conftest.$ac_objext |
| 3263 | done |
| 3264 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3265 | CC=$ac_save_CC |
| 3266 | |
| 3267 | fi |
| 3268 | |
| 3269 | case "x$ac_cv_prog_cc_stdc" in |
| 3270 | x|xno) |
| 3271 | echo "$as_me:3271: result: none needed" >&5 |
| 3272 | echo "${ECHO_T}none needed" >&6 ;; |
| 3273 | *) |
| 3274 | echo "$as_me:3274: result: $ac_cv_prog_cc_stdc" >&5 |
| 3275 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3276 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3277 | esac |
| 3278 | |
| 3279 | echo "$as_me:3279: checking for an ANSI C-conforming const" >&5 |
| 3280 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 3281 | if test "${ac_cv_c_const+set}" = set; then |
| 3282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3283 | else |
| 3284 | cat >conftest.$ac_ext <<_ACEOF |
| 3285 | #line 3285 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3286 | #include "confdefs.h" |
| 3287 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3288 | #ifdef F77_DUMMY_MAIN |
| 3289 | # ifdef __cplusplus |
| 3290 | extern "C" |
| 3291 | # endif |
| 3292 | int F77_DUMMY_MAIN() { return 1; } |
| 3293 | #endif |
| 3294 | int |
| 3295 | main () |
| 3296 | { |
| 3297 | /* FIXME: Include the comments suggested by Paul. */ |
| 3298 | #ifndef __cplusplus |
| 3299 | /* Ultrix mips cc rejects this. */ |
| 3300 | typedef int charset[2]; |
| 3301 | const charset x; |
| 3302 | /* SunOS 4.1.1 cc rejects this. */ |
| 3303 | char const *const *ccp; |
| 3304 | char **p; |
| 3305 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 3306 | struct point {int x, y;}; |
| 3307 | static struct point const zero = {0,0}; |
| 3308 | /* AIX XL C 1.02.0.0 rejects this. |
| 3309 | It does not let you subtract one const X* pointer from another in |
| 3310 | an arm of an if-expression whose if-part is not a constant |
| 3311 | expression */ |
| 3312 | const char *g = "string"; |
| 3313 | ccp = &g + (g ? g-g : 0); |
| 3314 | /* HPUX 7.0 cc rejects these. */ |
| 3315 | ++ccp; |
| 3316 | p = (char**) ccp; |
| 3317 | ccp = (char const *const *) p; |
| 3318 | { /* SCO 3.2v4 cc rejects this. */ |
| 3319 | char *t; |
| 3320 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3321 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3322 | *t++ = 0; |
| 3323 | } |
| 3324 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 3325 | int x[] = {25, 17}; |
| 3326 | const int *foo = &x[0]; |
| 3327 | ++foo; |
| 3328 | } |
| 3329 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 3330 | typedef const int *iptr; |
| 3331 | iptr p = 0; |
| 3332 | ++p; |
| 3333 | } |
| 3334 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 3335 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 3336 | struct s { int j; const int *ap[3]; }; |
| 3337 | struct s *b; b->j = 5; |
| 3338 | } |
| 3339 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 3340 | const int foo = 10; |
| 3341 | } |
| 3342 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3343 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3344 | ; |
| 3345 | return 0; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3346 | } |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3347 | _ACEOF |
| 3348 | rm -f conftest.$ac_objext |
| 3349 | if { (eval echo "$as_me:3349: \"$ac_compile\"") >&5 |
| 3350 | (eval $ac_compile) 2>&5 |
| 3351 | ac_status=$? |
| 3352 | echo "$as_me:3352: \$? = $ac_status" >&5 |
| 3353 | (exit $ac_status); } && |
| 3354 | { ac_try='test -s conftest.$ac_objext' |
| 3355 | { (eval echo "$as_me:3355: \"$ac_try\"") >&5 |
| 3356 | (eval $ac_try) 2>&5 |
| 3357 | ac_status=$? |
| 3358 | echo "$as_me:3358: \$? = $ac_status" >&5 |
| 3359 | (exit $ac_status); }; }; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3360 | ac_cv_c_const=yes |
| 3361 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3362 | echo "$as_me: failed program was:" >&5 |
| 3363 | cat conftest.$ac_ext >&5 |
| 3364 | ac_cv_c_const=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3365 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3366 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3367 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3368 | echo "$as_me:3368: result: $ac_cv_c_const" >&5 |
| 3369 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3370 | if test $ac_cv_c_const = no; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3371 | |
| 3372 | cat >>confdefs.h <<\_ACEOF |
| 3373 | #define const |
| 3374 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3375 | |
| 3376 | fi |
| 3377 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3378 | echo "$as_me:3378: checking return type of signal handlers" >&5 |
| 3379 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 3380 | if test "${ac_cv_type_signal+set}" = set; then |
| 3381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3382 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3383 | cat >conftest.$ac_ext <<_ACEOF |
| 3384 | #line 3384 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3385 | #include "confdefs.h" |
| 3386 | #include <sys/types.h> |
| 3387 | #include <signal.h> |
| 3388 | #ifdef signal |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3389 | # undef signal |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3390 | #endif |
| 3391 | #ifdef __cplusplus |
| 3392 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 3393 | #else |
| 3394 | void (*signal ()) (); |
| 3395 | #endif |
| 3396 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3397 | #ifdef F77_DUMMY_MAIN |
| 3398 | # ifdef __cplusplus |
| 3399 | extern "C" |
| 3400 | # endif |
| 3401 | int F77_DUMMY_MAIN() { return 1; } |
| 3402 | #endif |
| 3403 | int |
| 3404 | main () |
| 3405 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3406 | int i; |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3407 | ; |
| 3408 | return 0; |
| 3409 | } |
| 3410 | _ACEOF |
| 3411 | rm -f conftest.$ac_objext |
| 3412 | if { (eval echo "$as_me:3412: \"$ac_compile\"") >&5 |
| 3413 | (eval $ac_compile) 2>&5 |
| 3414 | ac_status=$? |
| 3415 | echo "$as_me:3415: \$? = $ac_status" >&5 |
| 3416 | (exit $ac_status); } && |
| 3417 | { ac_try='test -s conftest.$ac_objext' |
| 3418 | { (eval echo "$as_me:3418: \"$ac_try\"") >&5 |
| 3419 | (eval $ac_try) 2>&5 |
| 3420 | ac_status=$? |
| 3421 | echo "$as_me:3421: \$? = $ac_status" >&5 |
| 3422 | (exit $ac_status); }; }; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3423 | ac_cv_type_signal=void |
| 3424 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3425 | echo "$as_me: failed program was:" >&5 |
| 3426 | cat conftest.$ac_ext >&5 |
| 3427 | ac_cv_type_signal=int |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3428 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3429 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3430 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3431 | echo "$as_me:3431: result: $ac_cv_type_signal" >&5 |
| 3432 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3433 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3434 | cat >>confdefs.h <<_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3435 | #define RETSIGTYPE $ac_cv_type_signal |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3436 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3437 | |
| 3438 | case "$host" in |
| 3439 | *-sunos5.6* | *-solaris2.6*) |
| 3440 | opsys=sol2-6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3441 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3442 | cat >>confdefs.h <<\_ACEOF |
| 3443 | #define SUNOS_5 |
| 3444 | _ACEOF |
| 3445 | |
| 3446 | echo "$as_me:3446: checking for main in -lxnet" >&5 |
| 3447 | echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6 |
| 3448 | if test "${ac_cv_lib_xnet_main+set}" = set; then |
| 3449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3450 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3451 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3452 | LIBS="-lxnet $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3453 | cat >conftest.$ac_ext <<_ACEOF |
| 3454 | #line 3454 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3455 | #include "confdefs.h" |
| 3456 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3457 | #ifdef F77_DUMMY_MAIN |
| 3458 | # ifdef __cplusplus |
| 3459 | extern "C" |
| 3460 | # endif |
| 3461 | int F77_DUMMY_MAIN() { return 1; } |
| 3462 | #endif |
| 3463 | int |
| 3464 | main () |
| 3465 | { |
| 3466 | main (); |
| 3467 | ; |
| 3468 | return 0; |
| 3469 | } |
| 3470 | _ACEOF |
| 3471 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3472 | if { (eval echo "$as_me:3472: \"$ac_link\"") >&5 |
| 3473 | (eval $ac_link) 2>&5 |
| 3474 | ac_status=$? |
| 3475 | echo "$as_me:3475: \$? = $ac_status" >&5 |
| 3476 | (exit $ac_status); } && |
| 3477 | { ac_try='test -s conftest$ac_exeext' |
| 3478 | { (eval echo "$as_me:3478: \"$ac_try\"") >&5 |
| 3479 | (eval $ac_try) 2>&5 |
| 3480 | ac_status=$? |
| 3481 | echo "$as_me:3481: \$? = $ac_status" >&5 |
| 3482 | (exit $ac_status); }; }; then |
| 3483 | ac_cv_lib_xnet_main=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3484 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3485 | echo "$as_me: failed program was:" >&5 |
| 3486 | cat conftest.$ac_ext >&5 |
| 3487 | ac_cv_lib_xnet_main=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3488 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3489 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3490 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3491 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3492 | echo "$as_me:3492: result: $ac_cv_lib_xnet_main" >&5 |
| 3493 | echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6 |
| 3494 | if test $ac_cv_lib_xnet_main = yes; then |
| 3495 | cat >>confdefs.h <<_ACEOF |
| 3496 | #define HAVE_LIBXNET 1 |
| 3497 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3498 | |
| 3499 | LIBS="-lxnet $LIBS" |
| 3500 | |
| 3501 | fi |
| 3502 | |
| 3503 | CURSES=-lcurses |
| 3504 | ;; |
| 3505 | *-sunos5* | *-solaris2*) |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3506 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3507 | cat >>confdefs.h <<\_ACEOF |
| 3508 | #define SUNOS_5 |
| 3509 | _ACEOF |
| 3510 | |
| 3511 | echo "$as_me:3511: checking for main in -lsocket" >&5 |
| 3512 | echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 |
| 3513 | if test "${ac_cv_lib_socket_main+set}" = set; then |
| 3514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3515 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3516 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3517 | LIBS="-lsocket $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3518 | cat >conftest.$ac_ext <<_ACEOF |
| 3519 | #line 3519 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3520 | #include "confdefs.h" |
| 3521 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3522 | #ifdef F77_DUMMY_MAIN |
| 3523 | # ifdef __cplusplus |
| 3524 | extern "C" |
| 3525 | # endif |
| 3526 | int F77_DUMMY_MAIN() { return 1; } |
| 3527 | #endif |
| 3528 | int |
| 3529 | main () |
| 3530 | { |
| 3531 | main (); |
| 3532 | ; |
| 3533 | return 0; |
| 3534 | } |
| 3535 | _ACEOF |
| 3536 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3537 | if { (eval echo "$as_me:3537: \"$ac_link\"") >&5 |
| 3538 | (eval $ac_link) 2>&5 |
| 3539 | ac_status=$? |
| 3540 | echo "$as_me:3540: \$? = $ac_status" >&5 |
| 3541 | (exit $ac_status); } && |
| 3542 | { ac_try='test -s conftest$ac_exeext' |
| 3543 | { (eval echo "$as_me:3543: \"$ac_try\"") >&5 |
| 3544 | (eval $ac_try) 2>&5 |
| 3545 | ac_status=$? |
| 3546 | echo "$as_me:3546: \$? = $ac_status" >&5 |
| 3547 | (exit $ac_status); }; }; then |
| 3548 | ac_cv_lib_socket_main=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3549 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3550 | echo "$as_me: failed program was:" >&5 |
| 3551 | cat conftest.$ac_ext >&5 |
| 3552 | ac_cv_lib_socket_main=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3553 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3554 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3555 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3556 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3557 | echo "$as_me:3557: result: $ac_cv_lib_socket_main" >&5 |
| 3558 | echo "${ECHO_T}$ac_cv_lib_socket_main" >&6 |
| 3559 | if test $ac_cv_lib_socket_main = yes; then |
| 3560 | cat >>confdefs.h <<_ACEOF |
| 3561 | #define HAVE_LIBSOCKET 1 |
| 3562 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3563 | |
| 3564 | LIBS="-lsocket $LIBS" |
| 3565 | |
| 3566 | fi |
| 3567 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3568 | echo "$as_me:3568: checking for main in -lnsl" >&5 |
| 3569 | echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 |
| 3570 | if test "${ac_cv_lib_nsl_main+set}" = set; then |
| 3571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3572 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3573 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3574 | LIBS="-lnsl $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3575 | cat >conftest.$ac_ext <<_ACEOF |
| 3576 | #line 3576 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3577 | #include "confdefs.h" |
| 3578 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3579 | #ifdef F77_DUMMY_MAIN |
| 3580 | # ifdef __cplusplus |
| 3581 | extern "C" |
| 3582 | # endif |
| 3583 | int F77_DUMMY_MAIN() { return 1; } |
| 3584 | #endif |
| 3585 | int |
| 3586 | main () |
| 3587 | { |
| 3588 | main (); |
| 3589 | ; |
| 3590 | return 0; |
| 3591 | } |
| 3592 | _ACEOF |
| 3593 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3594 | if { (eval echo "$as_me:3594: \"$ac_link\"") >&5 |
| 3595 | (eval $ac_link) 2>&5 |
| 3596 | ac_status=$? |
| 3597 | echo "$as_me:3597: \$? = $ac_status" >&5 |
| 3598 | (exit $ac_status); } && |
| 3599 | { ac_try='test -s conftest$ac_exeext' |
| 3600 | { (eval echo "$as_me:3600: \"$ac_try\"") >&5 |
| 3601 | (eval $ac_try) 2>&5 |
| 3602 | ac_status=$? |
| 3603 | echo "$as_me:3603: \$? = $ac_status" >&5 |
| 3604 | (exit $ac_status); }; }; then |
| 3605 | ac_cv_lib_nsl_main=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3606 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3607 | echo "$as_me: failed program was:" >&5 |
| 3608 | cat conftest.$ac_ext >&5 |
| 3609 | ac_cv_lib_nsl_main=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3610 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3611 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3612 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3613 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3614 | echo "$as_me:3614: result: $ac_cv_lib_nsl_main" >&5 |
| 3615 | echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6 |
| 3616 | if test $ac_cv_lib_nsl_main = yes; then |
| 3617 | cat >>confdefs.h <<_ACEOF |
| 3618 | #define HAVE_LIBNSL 1 |
| 3619 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3620 | |
| 3621 | LIBS="-lnsl $LIBS" |
| 3622 | |
| 3623 | fi |
| 3624 | |
| 3625 | CURSES=-lcurses |
| 3626 | ;; |
| 3627 | *-linux-*) |
| 3628 | opsys=gnu-linux |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3629 | |
| 3630 | cat >>confdefs.h <<\_ACEOF |
| 3631 | #define GNU_LINUX |
| 3632 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3633 | |
| 3634 | ;; |
| 3635 | *-nec-sysv4*) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3636 | |
| 3637 | echo "$as_me:3637: checking for gethostbyname in -lnsl" >&5 |
| 3638 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 3639 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 3640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3641 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3642 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3643 | LIBS="-lnsl $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3644 | cat >conftest.$ac_ext <<_ACEOF |
| 3645 | #line 3645 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3646 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3647 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3648 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3649 | #ifdef __cplusplus |
| 3650 | extern "C" |
| 3651 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3652 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3653 | builtin and then its argument prototype would still apply. */ |
| 3654 | char gethostbyname (); |
| 3655 | #ifdef F77_DUMMY_MAIN |
| 3656 | # ifdef __cplusplus |
| 3657 | extern "C" |
| 3658 | # endif |
| 3659 | int F77_DUMMY_MAIN() { return 1; } |
| 3660 | #endif |
| 3661 | int |
| 3662 | main () |
| 3663 | { |
| 3664 | gethostbyname (); |
| 3665 | ; |
| 3666 | return 0; |
| 3667 | } |
| 3668 | _ACEOF |
| 3669 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3670 | if { (eval echo "$as_me:3670: \"$ac_link\"") >&5 |
| 3671 | (eval $ac_link) 2>&5 |
| 3672 | ac_status=$? |
| 3673 | echo "$as_me:3673: \$? = $ac_status" >&5 |
| 3674 | (exit $ac_status); } && |
| 3675 | { ac_try='test -s conftest$ac_exeext' |
| 3676 | { (eval echo "$as_me:3676: \"$ac_try\"") >&5 |
| 3677 | (eval $ac_try) 2>&5 |
| 3678 | ac_status=$? |
| 3679 | echo "$as_me:3679: \$? = $ac_status" >&5 |
| 3680 | (exit $ac_status); }; }; then |
| 3681 | ac_cv_lib_nsl_gethostbyname=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3682 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3683 | echo "$as_me: failed program was:" >&5 |
| 3684 | cat conftest.$ac_ext >&5 |
| 3685 | ac_cv_lib_nsl_gethostbyname=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3686 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3687 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3688 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3689 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3690 | echo "$as_me:3690: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 3691 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 3692 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 3693 | cat >>confdefs.h <<_ACEOF |
| 3694 | #define HAVE_LIBNSL 1 |
| 3695 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3696 | |
| 3697 | LIBS="-lnsl $LIBS" |
| 3698 | |
| 3699 | fi |
| 3700 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3701 | echo "$as_me:3701: checking for socket in -lsocket" >&5 |
| 3702 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 3703 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 3704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3705 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3706 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3707 | LIBS="-lsocket $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3708 | cat >conftest.$ac_ext <<_ACEOF |
| 3709 | #line 3709 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3710 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3711 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3712 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3713 | #ifdef __cplusplus |
| 3714 | extern "C" |
| 3715 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3716 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3717 | builtin and then its argument prototype would still apply. */ |
| 3718 | char socket (); |
| 3719 | #ifdef F77_DUMMY_MAIN |
| 3720 | # ifdef __cplusplus |
| 3721 | extern "C" |
| 3722 | # endif |
| 3723 | int F77_DUMMY_MAIN() { return 1; } |
| 3724 | #endif |
| 3725 | int |
| 3726 | main () |
| 3727 | { |
| 3728 | socket (); |
| 3729 | ; |
| 3730 | return 0; |
| 3731 | } |
| 3732 | _ACEOF |
| 3733 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3734 | if { (eval echo "$as_me:3734: \"$ac_link\"") >&5 |
| 3735 | (eval $ac_link) 2>&5 |
| 3736 | ac_status=$? |
| 3737 | echo "$as_me:3737: \$? = $ac_status" >&5 |
| 3738 | (exit $ac_status); } && |
| 3739 | { ac_try='test -s conftest$ac_exeext' |
| 3740 | { (eval echo "$as_me:3740: \"$ac_try\"") >&5 |
| 3741 | (eval $ac_try) 2>&5 |
| 3742 | ac_status=$? |
| 3743 | echo "$as_me:3743: \$? = $ac_status" >&5 |
| 3744 | (exit $ac_status); }; }; then |
| 3745 | ac_cv_lib_socket_socket=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3746 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3747 | echo "$as_me: failed program was:" >&5 |
| 3748 | cat conftest.$ac_ext >&5 |
| 3749 | ac_cv_lib_socket_socket=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3750 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3751 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3752 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3753 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3754 | echo "$as_me:3754: result: $ac_cv_lib_socket_socket" >&5 |
| 3755 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 3756 | if test $ac_cv_lib_socket_socket = yes; then |
| 3757 | cat >>confdefs.h <<_ACEOF |
| 3758 | #define HAVE_LIBSOCKET 1 |
| 3759 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3760 | |
| 3761 | LIBS="-lsocket $LIBS" |
| 3762 | |
| 3763 | fi |
| 3764 | |
| 3765 | ;; |
| 3766 | *-freebsd3.2) |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3767 | |
| 3768 | cat >>confdefs.h <<\_ACEOF |
| 3769 | #define FREEBSD_32 |
| 3770 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3771 | |
| 3772 | ;; |
| 3773 | *-openbsd*) |
| 3774 | opsys=openbsd |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3775 | |
| 3776 | cat >>confdefs.h <<\_ACEOF |
| 3777 | #define OPEN_BSD |
| 3778 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3779 | |
| 3780 | ;; |
| 3781 | *-bsdi*) |
| 3782 | opsys=bsdi |
| 3783 | OTHER_METHOD="mtu_kvm.o" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3784 | |
| 3785 | echo "$as_me:3785: checking for main in -lkvm" >&5 |
| 3786 | echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6 |
| 3787 | if test "${ac_cv_lib_kvm_main+set}" = set; then |
| 3788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3789 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3790 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3791 | LIBS="-lkvm $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3792 | cat >conftest.$ac_ext <<_ACEOF |
| 3793 | #line 3793 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3794 | #include "confdefs.h" |
| 3795 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3796 | #ifdef F77_DUMMY_MAIN |
| 3797 | # ifdef __cplusplus |
| 3798 | extern "C" |
| 3799 | # endif |
| 3800 | int F77_DUMMY_MAIN() { return 1; } |
| 3801 | #endif |
| 3802 | int |
| 3803 | main () |
| 3804 | { |
| 3805 | main (); |
| 3806 | ; |
| 3807 | return 0; |
| 3808 | } |
| 3809 | _ACEOF |
| 3810 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3811 | if { (eval echo "$as_me:3811: \"$ac_link\"") >&5 |
| 3812 | (eval $ac_link) 2>&5 |
| 3813 | ac_status=$? |
| 3814 | echo "$as_me:3814: \$? = $ac_status" >&5 |
| 3815 | (exit $ac_status); } && |
| 3816 | { ac_try='test -s conftest$ac_exeext' |
| 3817 | { (eval echo "$as_me:3817: \"$ac_try\"") >&5 |
| 3818 | (eval $ac_try) 2>&5 |
| 3819 | ac_status=$? |
| 3820 | echo "$as_me:3820: \$? = $ac_status" >&5 |
| 3821 | (exit $ac_status); }; }; then |
| 3822 | ac_cv_lib_kvm_main=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3823 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3824 | echo "$as_me: failed program was:" >&5 |
| 3825 | cat conftest.$ac_ext >&5 |
| 3826 | ac_cv_lib_kvm_main=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3827 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3828 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3829 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3830 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3831 | echo "$as_me:3831: result: $ac_cv_lib_kvm_main" >&5 |
| 3832 | echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6 |
| 3833 | if test $ac_cv_lib_kvm_main = yes; then |
| 3834 | cat >>confdefs.h <<_ACEOF |
| 3835 | #define HAVE_LIBKVM 1 |
| 3836 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3837 | |
| 3838 | LIBS="-lkvm $LIBS" |
| 3839 | |
| 3840 | fi |
| 3841 | |
| 3842 | ;; |
| 3843 | esac |
| 3844 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3845 | case "${enable_vtysh}" in |
| 3846 | "yes") VTYSH="vtysh"; |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3847 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3848 | cat >>confdefs.h <<\_ACEOF |
| 3849 | #define VTYSH |
| 3850 | _ACEOF |
| 3851 | |
| 3852 | echo "$as_me:3852: checking for tputs in -ltinfo" >&5 |
| 3853 | echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6 |
| 3854 | if test "${ac_cv_lib_tinfo_tputs+set}" = set; then |
| 3855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3856 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3857 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3858 | LIBS="-ltinfo $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3859 | cat >conftest.$ac_ext <<_ACEOF |
| 3860 | #line 3860 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3861 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3862 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3863 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3864 | #ifdef __cplusplus |
| 3865 | extern "C" |
| 3866 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3867 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3868 | builtin and then its argument prototype would still apply. */ |
| 3869 | char tputs (); |
| 3870 | #ifdef F77_DUMMY_MAIN |
| 3871 | # ifdef __cplusplus |
| 3872 | extern "C" |
| 3873 | # endif |
| 3874 | int F77_DUMMY_MAIN() { return 1; } |
| 3875 | #endif |
| 3876 | int |
| 3877 | main () |
| 3878 | { |
| 3879 | tputs (); |
| 3880 | ; |
| 3881 | return 0; |
| 3882 | } |
| 3883 | _ACEOF |
| 3884 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3885 | if { (eval echo "$as_me:3885: \"$ac_link\"") >&5 |
| 3886 | (eval $ac_link) 2>&5 |
| 3887 | ac_status=$? |
| 3888 | echo "$as_me:3888: \$? = $ac_status" >&5 |
| 3889 | (exit $ac_status); } && |
| 3890 | { ac_try='test -s conftest$ac_exeext' |
| 3891 | { (eval echo "$as_me:3891: \"$ac_try\"") >&5 |
| 3892 | (eval $ac_try) 2>&5 |
| 3893 | ac_status=$? |
| 3894 | echo "$as_me:3894: \$? = $ac_status" >&5 |
| 3895 | (exit $ac_status); }; }; then |
| 3896 | ac_cv_lib_tinfo_tputs=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3897 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3898 | echo "$as_me: failed program was:" >&5 |
| 3899 | cat conftest.$ac_ext >&5 |
| 3900 | ac_cv_lib_tinfo_tputs=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3901 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3902 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3903 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3904 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3905 | echo "$as_me:3905: result: $ac_cv_lib_tinfo_tputs" >&5 |
| 3906 | echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6 |
| 3907 | if test $ac_cv_lib_tinfo_tputs = yes; then |
| 3908 | cat >>confdefs.h <<_ACEOF |
| 3909 | #define HAVE_LIBTINFO 1 |
| 3910 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3911 | |
| 3912 | LIBS="-ltinfo $LIBS" |
| 3913 | |
| 3914 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3915 | |
| 3916 | echo "$as_me:3916: checking for tputs in -lncurses" >&5 |
| 3917 | echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6 |
| 3918 | if test "${ac_cv_lib_ncurses_tputs+set}" = set; then |
| 3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3920 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3921 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3922 | LIBS="-lncurses $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3923 | cat >conftest.$ac_ext <<_ACEOF |
| 3924 | #line 3924 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3925 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3926 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3927 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3928 | #ifdef __cplusplus |
| 3929 | extern "C" |
| 3930 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3931 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3932 | builtin and then its argument prototype would still apply. */ |
| 3933 | char tputs (); |
| 3934 | #ifdef F77_DUMMY_MAIN |
| 3935 | # ifdef __cplusplus |
| 3936 | extern "C" |
| 3937 | # endif |
| 3938 | int F77_DUMMY_MAIN() { return 1; } |
| 3939 | #endif |
| 3940 | int |
| 3941 | main () |
| 3942 | { |
| 3943 | tputs (); |
| 3944 | ; |
| 3945 | return 0; |
| 3946 | } |
| 3947 | _ACEOF |
| 3948 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3949 | if { (eval echo "$as_me:3949: \"$ac_link\"") >&5 |
| 3950 | (eval $ac_link) 2>&5 |
| 3951 | ac_status=$? |
| 3952 | echo "$as_me:3952: \$? = $ac_status" >&5 |
| 3953 | (exit $ac_status); } && |
| 3954 | { ac_try='test -s conftest$ac_exeext' |
| 3955 | { (eval echo "$as_me:3955: \"$ac_try\"") >&5 |
| 3956 | (eval $ac_try) 2>&5 |
| 3957 | ac_status=$? |
| 3958 | echo "$as_me:3958: \$? = $ac_status" >&5 |
| 3959 | (exit $ac_status); }; }; then |
| 3960 | ac_cv_lib_ncurses_tputs=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3961 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3962 | echo "$as_me: failed program was:" >&5 |
| 3963 | cat conftest.$ac_ext >&5 |
| 3964 | ac_cv_lib_ncurses_tputs=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3965 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3966 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3967 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3968 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3969 | echo "$as_me:3969: result: $ac_cv_lib_ncurses_tputs" >&5 |
| 3970 | echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6 |
| 3971 | if test $ac_cv_lib_ncurses_tputs = yes; then |
| 3972 | cat >>confdefs.h <<_ACEOF |
| 3973 | #define HAVE_LIBNCURSES 1 |
| 3974 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3975 | |
| 3976 | LIBS="-lncurses $LIBS" |
| 3977 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 3978 | fi |
| 3979 | |
| 3980 | fi |
| 3981 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3982 | echo "$as_me:3982: checking for main in -lreadline" >&5 |
| 3983 | echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 |
| 3984 | if test "${ac_cv_lib_readline_main+set}" = set; then |
| 3985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 3986 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3987 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3988 | LIBS="-lreadline $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3989 | cat >conftest.$ac_ext <<_ACEOF |
| 3990 | #line 3990 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3991 | #include "confdefs.h" |
| 3992 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 3993 | #ifdef F77_DUMMY_MAIN |
| 3994 | # ifdef __cplusplus |
| 3995 | extern "C" |
| 3996 | # endif |
| 3997 | int F77_DUMMY_MAIN() { return 1; } |
| 3998 | #endif |
| 3999 | int |
| 4000 | main () |
| 4001 | { |
| 4002 | main (); |
| 4003 | ; |
| 4004 | return 0; |
| 4005 | } |
| 4006 | _ACEOF |
| 4007 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4008 | if { (eval echo "$as_me:4008: \"$ac_link\"") >&5 |
| 4009 | (eval $ac_link) 2>&5 |
| 4010 | ac_status=$? |
| 4011 | echo "$as_me:4011: \$? = $ac_status" >&5 |
| 4012 | (exit $ac_status); } && |
| 4013 | { ac_try='test -s conftest$ac_exeext' |
| 4014 | { (eval echo "$as_me:4014: \"$ac_try\"") >&5 |
| 4015 | (eval $ac_try) 2>&5 |
| 4016 | ac_status=$? |
| 4017 | echo "$as_me:4017: \$? = $ac_status" >&5 |
| 4018 | (exit $ac_status); }; }; then |
| 4019 | ac_cv_lib_readline_main=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4020 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4021 | echo "$as_me: failed program was:" >&5 |
| 4022 | cat conftest.$ac_ext >&5 |
| 4023 | ac_cv_lib_readline_main=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4024 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4025 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4026 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4027 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4028 | echo "$as_me:4028: result: $ac_cv_lib_readline_main" >&5 |
| 4029 | echo "${ECHO_T}$ac_cv_lib_readline_main" >&6 |
| 4030 | if test $ac_cv_lib_readline_main = yes; then |
| 4031 | cat >>confdefs.h <<_ACEOF |
| 4032 | #define HAVE_LIBREADLINE 1 |
| 4033 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4034 | |
| 4035 | LIBS="-lreadline $LIBS" |
| 4036 | |
| 4037 | fi |
| 4038 | |
| 4039 | if test $ac_cv_lib_readline_main = no; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4040 | { { echo "$as_me:4040: error: vtysh needs libreadline but was not found on your system." >&5 |
| 4041 | echo "$as_me: error: vtysh needs libreadline but was not found on your system." >&2;} |
| 4042 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4043 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4044 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4045 | echo "$as_me:4045: checking for readline/history.h" >&5 |
| 4046 | echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6 |
| 4047 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4049 | fi |
| 4050 | echo "$as_me:4050: result: $ac_cv_header_readline_history_h" >&5 |
| 4051 | echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4052 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4053 | # Is the header compilable? |
| 4054 | echo "$as_me:4054: checking readline/history.h usability" >&5 |
| 4055 | echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6 |
| 4056 | cat >conftest.$ac_ext <<_ACEOF |
| 4057 | #line 4057 "configure" |
| 4058 | #include "confdefs.h" |
| 4059 | $ac_includes_default |
| 4060 | #include <readline/history.h> |
| 4061 | _ACEOF |
| 4062 | rm -f conftest.$ac_objext |
| 4063 | if { (eval echo "$as_me:4063: \"$ac_compile\"") >&5 |
| 4064 | (eval $ac_compile) 2>&5 |
| 4065 | ac_status=$? |
| 4066 | echo "$as_me:4066: \$? = $ac_status" >&5 |
| 4067 | (exit $ac_status); } && |
| 4068 | { ac_try='test -s conftest.$ac_objext' |
| 4069 | { (eval echo "$as_me:4069: \"$ac_try\"") >&5 |
| 4070 | (eval $ac_try) 2>&5 |
| 4071 | ac_status=$? |
| 4072 | echo "$as_me:4072: \$? = $ac_status" >&5 |
| 4073 | (exit $ac_status); }; }; then |
| 4074 | ac_header_compiler=yes |
| 4075 | else |
| 4076 | echo "$as_me: failed program was:" >&5 |
| 4077 | cat conftest.$ac_ext >&5 |
| 4078 | ac_header_compiler=no |
| 4079 | fi |
| 4080 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4081 | echo "$as_me:4081: result: $ac_header_compiler" >&5 |
| 4082 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4083 | |
| 4084 | # Is the header present? |
| 4085 | echo "$as_me:4085: checking readline/history.h presence" >&5 |
| 4086 | echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6 |
| 4087 | cat >conftest.$ac_ext <<_ACEOF |
| 4088 | #line 4088 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4089 | #include "confdefs.h" |
| 4090 | #include <readline/history.h> |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4091 | _ACEOF |
| 4092 | if { (eval echo "$as_me:4092: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4093 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4094 | ac_status=$? |
| 4095 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4096 | rm -f conftest.er1 |
| 4097 | cat conftest.err >&5 |
| 4098 | echo "$as_me:4098: \$? = $ac_status" >&5 |
| 4099 | (exit $ac_status); } >/dev/null; then |
| 4100 | if test -s conftest.err; then |
| 4101 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4102 | else |
| 4103 | ac_cpp_err= |
| 4104 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4105 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4106 | ac_cpp_err=yes |
| 4107 | fi |
| 4108 | if test -z "$ac_cpp_err"; then |
| 4109 | ac_header_preproc=yes |
| 4110 | else |
| 4111 | echo "$as_me: failed program was:" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4112 | cat conftest.$ac_ext >&5 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4113 | ac_header_preproc=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4114 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4115 | rm -f conftest.err conftest.$ac_ext |
| 4116 | echo "$as_me:4116: result: $ac_header_preproc" >&5 |
| 4117 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4118 | |
| 4119 | # So? What about this header? |
| 4120 | case $ac_header_compiler:$ac_header_preproc in |
| 4121 | yes:no ) |
| 4122 | { echo "$as_me:4122: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4123 | echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4124 | { echo "$as_me:4124: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5 |
| 4125 | echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};; |
| 4126 | no:yes ) |
| 4127 | { echo "$as_me:4127: WARNING: readline/history.h: present but cannot be compiled." >&5 |
| 4128 | echo "$as_me: WARNING: readline/history.h: present but cannot be compiled." >&2;} |
| 4129 | { echo "$as_me:4129: WARNING: readline/history.h: check for missing prerequisite headers?" >&5 |
| 4130 | echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;} |
| 4131 | { echo "$as_me:4131: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5 |
| 4132 | echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};; |
| 4133 | esac |
| 4134 | echo "$as_me:4134: checking for readline/history.h" >&5 |
| 4135 | echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6 |
| 4136 | if test "${ac_cv_header_readline_history_h+set}" = set; then |
| 4137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4138 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4139 | ac_cv_header_readline_history_h=$ac_header_preproc |
| 4140 | fi |
| 4141 | echo "$as_me:4141: result: $ac_cv_header_readline_history_h" >&5 |
| 4142 | echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6 |
| 4143 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4144 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4145 | |
| 4146 | if test $ac_cv_header_readline_history_h = no;then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4147 | { { echo "$as_me:4147: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5 |
| 4148 | echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;} |
| 4149 | { (exit 1); exit 1; }; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4150 | fi |
| 4151 | ;; |
| 4152 | "no" ) VTYSH="";; |
| 4153 | * ) ;; |
| 4154 | esac |
| 4155 | |
| 4156 | if test "$with_libpam" = "yes"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4157 | echo "$as_me:4157: checking for pam_start in -lpam" >&5 |
| 4158 | echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6 |
| 4159 | if test "${ac_cv_lib_pam_pam_start+set}" = set; then |
| 4160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4161 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4162 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4163 | LIBS="-lpam $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4164 | cat >conftest.$ac_ext <<_ACEOF |
| 4165 | #line 4165 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4166 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4167 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4168 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4169 | #ifdef __cplusplus |
| 4170 | extern "C" |
| 4171 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4172 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4173 | builtin and then its argument prototype would still apply. */ |
| 4174 | char pam_start (); |
| 4175 | #ifdef F77_DUMMY_MAIN |
| 4176 | # ifdef __cplusplus |
| 4177 | extern "C" |
| 4178 | # endif |
| 4179 | int F77_DUMMY_MAIN() { return 1; } |
| 4180 | #endif |
| 4181 | int |
| 4182 | main () |
| 4183 | { |
| 4184 | pam_start (); |
| 4185 | ; |
| 4186 | return 0; |
| 4187 | } |
| 4188 | _ACEOF |
| 4189 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4190 | if { (eval echo "$as_me:4190: \"$ac_link\"") >&5 |
| 4191 | (eval $ac_link) 2>&5 |
| 4192 | ac_status=$? |
| 4193 | echo "$as_me:4193: \$? = $ac_status" >&5 |
| 4194 | (exit $ac_status); } && |
| 4195 | { ac_try='test -s conftest$ac_exeext' |
| 4196 | { (eval echo "$as_me:4196: \"$ac_try\"") >&5 |
| 4197 | (eval $ac_try) 2>&5 |
| 4198 | ac_status=$? |
| 4199 | echo "$as_me:4199: \$? = $ac_status" >&5 |
| 4200 | (exit $ac_status); }; }; then |
| 4201 | ac_cv_lib_pam_pam_start=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4202 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4203 | echo "$as_me: failed program was:" >&5 |
| 4204 | cat conftest.$ac_ext >&5 |
| 4205 | ac_cv_lib_pam_pam_start=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4206 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4207 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4208 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4209 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4210 | echo "$as_me:4210: result: $ac_cv_lib_pam_pam_start" >&5 |
| 4211 | echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6 |
| 4212 | if test $ac_cv_lib_pam_pam_start = yes; then |
| 4213 | echo "$as_me:4213: checking for misc_conv in -lpam" >&5 |
| 4214 | echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6 |
| 4215 | if test "${ac_cv_lib_pam_misc_conv+set}" = set; then |
| 4216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4217 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4218 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4219 | LIBS="-lpam $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4220 | cat >conftest.$ac_ext <<_ACEOF |
| 4221 | #line 4221 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4222 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4223 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4224 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4225 | #ifdef __cplusplus |
| 4226 | extern "C" |
| 4227 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4228 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4229 | builtin and then its argument prototype would still apply. */ |
| 4230 | char misc_conv (); |
| 4231 | #ifdef F77_DUMMY_MAIN |
| 4232 | # ifdef __cplusplus |
| 4233 | extern "C" |
| 4234 | # endif |
| 4235 | int F77_DUMMY_MAIN() { return 1; } |
| 4236 | #endif |
| 4237 | int |
| 4238 | main () |
| 4239 | { |
| 4240 | misc_conv (); |
| 4241 | ; |
| 4242 | return 0; |
| 4243 | } |
| 4244 | _ACEOF |
| 4245 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4246 | if { (eval echo "$as_me:4246: \"$ac_link\"") >&5 |
| 4247 | (eval $ac_link) 2>&5 |
| 4248 | ac_status=$? |
| 4249 | echo "$as_me:4249: \$? = $ac_status" >&5 |
| 4250 | (exit $ac_status); } && |
| 4251 | { ac_try='test -s conftest$ac_exeext' |
| 4252 | { (eval echo "$as_me:4252: \"$ac_try\"") >&5 |
| 4253 | (eval $ac_try) 2>&5 |
| 4254 | ac_status=$? |
| 4255 | echo "$as_me:4255: \$? = $ac_status" >&5 |
| 4256 | (exit $ac_status); }; }; then |
| 4257 | ac_cv_lib_pam_misc_conv=yes |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 4258 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4259 | echo "$as_me: failed program was:" >&5 |
| 4260 | cat conftest.$ac_ext >&5 |
| 4261 | ac_cv_lib_pam_misc_conv=no |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 4262 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4263 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4264 | LIBS=$ac_check_lib_save_LIBS |
| 4265 | fi |
| 4266 | echo "$as_me:4266: result: $ac_cv_lib_pam_misc_conv" >&5 |
| 4267 | echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6 |
| 4268 | if test $ac_cv_lib_pam_misc_conv = yes; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 4269 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4270 | cat >>confdefs.h <<\_ACEOF |
| 4271 | #define USE_PAM |
| 4272 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4273 | |
| 4274 | LIBPAM="-lpam" |
| 4275 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4276 | |
| 4277 | cat >>confdefs.h <<\_ACEOF |
| 4278 | #define USE_PAM |
| 4279 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4280 | |
| 4281 | LIBPAM="-lpam -lpam_misc" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4282 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4283 | fi |
| 4284 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4285 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4286 | echo "$as_me:4286: checking for pam_end in -lpam" >&5 |
| 4287 | echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6 |
| 4288 | if test "${ac_cv_lib_pam_pam_end+set}" = set; then |
| 4289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4290 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4291 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4292 | LIBS="-lpam -ldl $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4293 | cat >conftest.$ac_ext <<_ACEOF |
| 4294 | #line 4294 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4295 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4296 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4297 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4298 | #ifdef __cplusplus |
| 4299 | extern "C" |
| 4300 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4301 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4302 | builtin and then its argument prototype would still apply. */ |
| 4303 | char pam_end (); |
| 4304 | #ifdef F77_DUMMY_MAIN |
| 4305 | # ifdef __cplusplus |
| 4306 | extern "C" |
| 4307 | # endif |
| 4308 | int F77_DUMMY_MAIN() { return 1; } |
| 4309 | #endif |
| 4310 | int |
| 4311 | main () |
| 4312 | { |
| 4313 | pam_end (); |
| 4314 | ; |
| 4315 | return 0; |
| 4316 | } |
| 4317 | _ACEOF |
| 4318 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4319 | if { (eval echo "$as_me:4319: \"$ac_link\"") >&5 |
| 4320 | (eval $ac_link) 2>&5 |
| 4321 | ac_status=$? |
| 4322 | echo "$as_me:4322: \$? = $ac_status" >&5 |
| 4323 | (exit $ac_status); } && |
| 4324 | { ac_try='test -s conftest$ac_exeext' |
| 4325 | { (eval echo "$as_me:4325: \"$ac_try\"") >&5 |
| 4326 | (eval $ac_try) 2>&5 |
| 4327 | ac_status=$? |
| 4328 | echo "$as_me:4328: \$? = $ac_status" >&5 |
| 4329 | (exit $ac_status); }; }; then |
| 4330 | ac_cv_lib_pam_pam_end=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4331 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4332 | echo "$as_me: failed program was:" >&5 |
| 4333 | cat conftest.$ac_ext >&5 |
| 4334 | ac_cv_lib_pam_pam_end=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4335 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4336 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4337 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4338 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4339 | echo "$as_me:4339: result: $ac_cv_lib_pam_pam_end" >&5 |
| 4340 | echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6 |
| 4341 | if test $ac_cv_lib_pam_pam_end = yes; then |
| 4342 | echo "$as_me:4342: checking for misc_conv in -lpam" >&5 |
| 4343 | echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6 |
| 4344 | if test "${ac_cv_lib_pam_misc_conv+set}" = set; then |
| 4345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4346 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4347 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4348 | LIBS="-lpam $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4349 | cat >conftest.$ac_ext <<_ACEOF |
| 4350 | #line 4350 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4351 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4352 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4353 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4354 | #ifdef __cplusplus |
| 4355 | extern "C" |
| 4356 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4357 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4358 | builtin and then its argument prototype would still apply. */ |
| 4359 | char misc_conv (); |
| 4360 | #ifdef F77_DUMMY_MAIN |
| 4361 | # ifdef __cplusplus |
| 4362 | extern "C" |
| 4363 | # endif |
| 4364 | int F77_DUMMY_MAIN() { return 1; } |
| 4365 | #endif |
| 4366 | int |
| 4367 | main () |
| 4368 | { |
| 4369 | misc_conv (); |
| 4370 | ; |
| 4371 | return 0; |
| 4372 | } |
| 4373 | _ACEOF |
| 4374 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4375 | if { (eval echo "$as_me:4375: \"$ac_link\"") >&5 |
| 4376 | (eval $ac_link) 2>&5 |
| 4377 | ac_status=$? |
| 4378 | echo "$as_me:4378: \$? = $ac_status" >&5 |
| 4379 | (exit $ac_status); } && |
| 4380 | { ac_try='test -s conftest$ac_exeext' |
| 4381 | { (eval echo "$as_me:4381: \"$ac_try\"") >&5 |
| 4382 | (eval $ac_try) 2>&5 |
| 4383 | ac_status=$? |
| 4384 | echo "$as_me:4384: \$? = $ac_status" >&5 |
| 4385 | (exit $ac_status); }; }; then |
| 4386 | ac_cv_lib_pam_misc_conv=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4387 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4388 | echo "$as_me: failed program was:" >&5 |
| 4389 | cat conftest.$ac_ext >&5 |
| 4390 | ac_cv_lib_pam_misc_conv=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4391 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4392 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4393 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4394 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4395 | echo "$as_me:4395: result: $ac_cv_lib_pam_misc_conv" >&5 |
| 4396 | echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6 |
| 4397 | if test $ac_cv_lib_pam_misc_conv = yes; then |
| 4398 | cat >>confdefs.h <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4399 | #define USE_PAM 1 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4400 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4401 | |
| 4402 | LIBPAM="-lpam -ldl" |
| 4403 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4404 | cat >>confdefs.h <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4405 | #define USE_PAM 1 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4406 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4407 | |
| 4408 | LIBPAM="-lpam -ldl -lpam_misc" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4409 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4410 | fi |
| 4411 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4412 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4413 | { echo "$as_me:4413: WARNING: *** pam support will not be built ***" >&5 |
| 4414 | echo "$as_me: WARNING: *** pam support will not be built ***" >&2;} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4415 | fi |
| 4416 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4417 | fi |
| 4418 | |
| 4419 | fi |
| 4420 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4421 | echo "$as_me:4421: checking whether byte ordering is bigendian" >&5 |
| 4422 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 4423 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4425 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4426 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4427 | cat >conftest.$ac_ext <<_ACEOF |
| 4428 | #line 4428 "configure" |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4429 | #include "confdefs.h" |
| 4430 | #include <sys/types.h> |
| 4431 | #include <sys/param.h> |
| 4432 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4433 | #ifdef F77_DUMMY_MAIN |
| 4434 | # ifdef __cplusplus |
| 4435 | extern "C" |
| 4436 | # endif |
| 4437 | int F77_DUMMY_MAIN() { return 1; } |
| 4438 | #endif |
| 4439 | int |
| 4440 | main () |
| 4441 | { |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4442 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4443 | bogus endian macros |
| 4444 | #endif |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4445 | |
| 4446 | ; |
| 4447 | return 0; |
| 4448 | } |
| 4449 | _ACEOF |
| 4450 | rm -f conftest.$ac_objext |
| 4451 | if { (eval echo "$as_me:4451: \"$ac_compile\"") >&5 |
| 4452 | (eval $ac_compile) 2>&5 |
| 4453 | ac_status=$? |
| 4454 | echo "$as_me:4454: \$? = $ac_status" >&5 |
| 4455 | (exit $ac_status); } && |
| 4456 | { ac_try='test -s conftest.$ac_objext' |
| 4457 | { (eval echo "$as_me:4457: \"$ac_try\"") >&5 |
| 4458 | (eval $ac_try) 2>&5 |
| 4459 | ac_status=$? |
| 4460 | echo "$as_me:4460: \$? = $ac_status" >&5 |
| 4461 | (exit $ac_status); }; }; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4462 | # It does; now see whether it defined to BIG_ENDIAN or not. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4463 | cat >conftest.$ac_ext <<_ACEOF |
| 4464 | #line 4464 "configure" |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4465 | #include "confdefs.h" |
| 4466 | #include <sys/types.h> |
| 4467 | #include <sys/param.h> |
| 4468 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4469 | #ifdef F77_DUMMY_MAIN |
| 4470 | # ifdef __cplusplus |
| 4471 | extern "C" |
| 4472 | # endif |
| 4473 | int F77_DUMMY_MAIN() { return 1; } |
| 4474 | #endif |
| 4475 | int |
| 4476 | main () |
| 4477 | { |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4478 | #if BYTE_ORDER != BIG_ENDIAN |
| 4479 | not big endian |
| 4480 | #endif |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4481 | |
| 4482 | ; |
| 4483 | return 0; |
| 4484 | } |
| 4485 | _ACEOF |
| 4486 | rm -f conftest.$ac_objext |
| 4487 | if { (eval echo "$as_me:4487: \"$ac_compile\"") >&5 |
| 4488 | (eval $ac_compile) 2>&5 |
| 4489 | ac_status=$? |
| 4490 | echo "$as_me:4490: \$? = $ac_status" >&5 |
| 4491 | (exit $ac_status); } && |
| 4492 | { ac_try='test -s conftest.$ac_objext' |
| 4493 | { (eval echo "$as_me:4493: \"$ac_try\"") >&5 |
| 4494 | (eval $ac_try) 2>&5 |
| 4495 | ac_status=$? |
| 4496 | echo "$as_me:4496: \$? = $ac_status" >&5 |
| 4497 | (exit $ac_status); }; }; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4498 | ac_cv_c_bigendian=yes |
| 4499 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4500 | echo "$as_me: failed program was:" >&5 |
| 4501 | cat conftest.$ac_ext >&5 |
| 4502 | ac_cv_c_bigendian=no |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4503 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4504 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4505 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4506 | echo "$as_me: failed program was:" >&5 |
| 4507 | cat conftest.$ac_ext >&5 |
| 4508 | # It does not; compile a test program. |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4509 | if test "$cross_compiling" = yes; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4510 | # try to guess the endianess by grep'ing values into an object file |
| 4511 | ac_cv_c_bigendian=unknown |
| 4512 | cat >conftest.$ac_ext <<_ACEOF |
| 4513 | #line 4513 "configure" |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4514 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4515 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4516 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4517 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4518 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4519 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4520 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4521 | #ifdef F77_DUMMY_MAIN |
| 4522 | # ifdef __cplusplus |
| 4523 | extern "C" |
| 4524 | # endif |
| 4525 | int F77_DUMMY_MAIN() { return 1; } |
| 4526 | #endif |
| 4527 | int |
| 4528 | main () |
| 4529 | { |
| 4530 | _ascii (); _ebcdic (); |
| 4531 | ; |
| 4532 | return 0; |
| 4533 | } |
| 4534 | _ACEOF |
| 4535 | rm -f conftest.$ac_objext |
| 4536 | if { (eval echo "$as_me:4536: \"$ac_compile\"") >&5 |
| 4537 | (eval $ac_compile) 2>&5 |
| 4538 | ac_status=$? |
| 4539 | echo "$as_me:4539: \$? = $ac_status" >&5 |
| 4540 | (exit $ac_status); } && |
| 4541 | { ac_try='test -s conftest.$ac_objext' |
| 4542 | { (eval echo "$as_me:4542: \"$ac_try\"") >&5 |
| 4543 | (eval $ac_try) 2>&5 |
| 4544 | ac_status=$? |
| 4545 | echo "$as_me:4545: \$? = $ac_status" >&5 |
| 4546 | (exit $ac_status); }; }; then |
| 4547 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4548 | ac_cv_c_bigendian=yes |
| 4549 | fi |
| 4550 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4551 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4552 | ac_cv_c_bigendian=no |
| 4553 | else |
| 4554 | # finding both strings is unlikely to happen, but who knows? |
| 4555 | ac_cv_c_bigendian=unknown |
| 4556 | fi |
| 4557 | fi |
| 4558 | else |
| 4559 | echo "$as_me: failed program was:" >&5 |
| 4560 | cat conftest.$ac_ext >&5 |
| 4561 | fi |
| 4562 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4563 | else |
| 4564 | cat >conftest.$ac_ext <<_ACEOF |
| 4565 | #line 4565 "configure" |
| 4566 | #include "confdefs.h" |
| 4567 | int |
| 4568 | main () |
| 4569 | { |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4570 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4571 | union |
| 4572 | { |
| 4573 | long l; |
| 4574 | char c[sizeof (long)]; |
| 4575 | } u; |
| 4576 | u.l = 1; |
| 4577 | exit (u.c[sizeof (long) - 1] == 1); |
| 4578 | } |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4579 | _ACEOF |
| 4580 | rm -f conftest$ac_exeext |
| 4581 | if { (eval echo "$as_me:4581: \"$ac_link\"") >&5 |
| 4582 | (eval $ac_link) 2>&5 |
| 4583 | ac_status=$? |
| 4584 | echo "$as_me:4584: \$? = $ac_status" >&5 |
| 4585 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4586 | { (eval echo "$as_me:4586: \"$ac_try\"") >&5 |
| 4587 | (eval $ac_try) 2>&5 |
| 4588 | ac_status=$? |
| 4589 | echo "$as_me:4589: \$? = $ac_status" >&5 |
| 4590 | (exit $ac_status); }; }; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4591 | ac_cv_c_bigendian=no |
| 4592 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4593 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4594 | echo "$as_me: failed program was:" >&5 |
| 4595 | cat conftest.$ac_ext >&5 |
| 4596 | ac_cv_c_bigendian=yes |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4597 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4598 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4599 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4600 | fi |
| 4601 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4602 | fi |
| 4603 | echo "$as_me:4603: result: $ac_cv_c_bigendian" >&5 |
| 4604 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 4605 | case $ac_cv_c_bigendian in |
| 4606 | yes) |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4607 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4608 | cat >>confdefs.h <<\_ACEOF |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4609 | #define WORDS_BIGENDIAN 1 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4610 | _ACEOF |
| 4611 | ;; |
| 4612 | no) |
| 4613 | ;; |
| 4614 | *) |
| 4615 | { { echo "$as_me:4615: error: unknown endianess |
| 4616 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4617 | echo "$as_me: error: unknown endianess |
| 4618 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4619 | { (exit 1); exit 1; }; } ;; |
| 4620 | esac |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4621 | |
| 4622 | for ac_func in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs |
| 4623 | do |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4624 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4625 | echo "$as_me:4625: checking for $ac_func" >&5 |
| 4626 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4627 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4629 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4630 | cat >conftest.$ac_ext <<_ACEOF |
| 4631 | #line 4631 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4632 | #include "confdefs.h" |
| 4633 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4634 | which can conflict with char $ac_func (); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4635 | #include <assert.h> |
| 4636 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4637 | #ifdef __cplusplus |
| 4638 | extern "C" |
| 4639 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4640 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4641 | builtin and then its argument prototype would still apply. */ |
| 4642 | char $ac_func (); |
| 4643 | char (*f) (); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4644 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4645 | #ifdef F77_DUMMY_MAIN |
| 4646 | # ifdef __cplusplus |
| 4647 | extern "C" |
| 4648 | # endif |
| 4649 | int F77_DUMMY_MAIN() { return 1; } |
| 4650 | #endif |
| 4651 | int |
| 4652 | main () |
| 4653 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4654 | /* The GNU C library defines this for functions which it implements |
| 4655 | to always fail with ENOSYS. Some functions are actually named |
| 4656 | something starting with __ and the normal name is an alias. */ |
| 4657 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4658 | choke me |
| 4659 | #else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4660 | f = $ac_func; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4661 | #endif |
| 4662 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4663 | ; |
| 4664 | return 0; |
| 4665 | } |
| 4666 | _ACEOF |
| 4667 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4668 | if { (eval echo "$as_me:4668: \"$ac_link\"") >&5 |
| 4669 | (eval $ac_link) 2>&5 |
| 4670 | ac_status=$? |
| 4671 | echo "$as_me:4671: \$? = $ac_status" >&5 |
| 4672 | (exit $ac_status); } && |
| 4673 | { ac_try='test -s conftest$ac_exeext' |
| 4674 | { (eval echo "$as_me:4674: \"$ac_try\"") >&5 |
| 4675 | (eval $ac_try) 2>&5 |
| 4676 | ac_status=$? |
| 4677 | echo "$as_me:4677: \$? = $ac_status" >&5 |
| 4678 | (exit $ac_status); }; }; then |
| 4679 | eval "$as_ac_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4680 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4681 | echo "$as_me: failed program was:" >&5 |
| 4682 | cat conftest.$ac_ext >&5 |
| 4683 | eval "$as_ac_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4684 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4685 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4686 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4687 | echo "$as_me:4687: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4688 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4689 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4690 | cat >>confdefs.h <<_ACEOF |
| 4691 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4692 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4693 | |
| 4694 | fi |
| 4695 | done |
| 4696 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4697 | for ac_func in setproctitle |
| 4698 | do |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4699 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4700 | echo "$as_me:4700: checking for $ac_func" >&5 |
| 4701 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4702 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4704 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4705 | cat >conftest.$ac_ext <<_ACEOF |
| 4706 | #line 4706 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4707 | #include "confdefs.h" |
| 4708 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4709 | which can conflict with char $ac_func (); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4710 | #include <assert.h> |
| 4711 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4712 | #ifdef __cplusplus |
| 4713 | extern "C" |
| 4714 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4715 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4716 | builtin and then its argument prototype would still apply. */ |
| 4717 | char $ac_func (); |
| 4718 | char (*f) (); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4719 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4720 | #ifdef F77_DUMMY_MAIN |
| 4721 | # ifdef __cplusplus |
| 4722 | extern "C" |
| 4723 | # endif |
| 4724 | int F77_DUMMY_MAIN() { return 1; } |
| 4725 | #endif |
| 4726 | int |
| 4727 | main () |
| 4728 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4729 | /* The GNU C library defines this for functions which it implements |
| 4730 | to always fail with ENOSYS. Some functions are actually named |
| 4731 | something starting with __ and the normal name is an alias. */ |
| 4732 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4733 | choke me |
| 4734 | #else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4735 | f = $ac_func; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4736 | #endif |
| 4737 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4738 | ; |
| 4739 | return 0; |
| 4740 | } |
| 4741 | _ACEOF |
| 4742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4743 | if { (eval echo "$as_me:4743: \"$ac_link\"") >&5 |
| 4744 | (eval $ac_link) 2>&5 |
| 4745 | ac_status=$? |
| 4746 | echo "$as_me:4746: \$? = $ac_status" >&5 |
| 4747 | (exit $ac_status); } && |
| 4748 | { ac_try='test -s conftest$ac_exeext' |
| 4749 | { (eval echo "$as_me:4749: \"$ac_try\"") >&5 |
| 4750 | (eval $ac_try) 2>&5 |
| 4751 | ac_status=$? |
| 4752 | echo "$as_me:4752: \$? = $ac_status" >&5 |
| 4753 | (exit $ac_status); }; }; then |
| 4754 | eval "$as_ac_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4755 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4756 | echo "$as_me: failed program was:" >&5 |
| 4757 | cat conftest.$ac_ext >&5 |
| 4758 | eval "$as_ac_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4759 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4760 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4761 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4762 | echo "$as_me:4762: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4763 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4764 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4765 | cat >>confdefs.h <<_ACEOF |
| 4766 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4767 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4768 | |
| 4769 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4770 | echo "$as_me:4770: checking for setproctitle in -lutil" >&5 |
| 4771 | echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6 |
| 4772 | if test "${ac_cv_lib_util_setproctitle+set}" = set; then |
| 4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4774 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4775 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4776 | LIBS="-lutil $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4777 | cat >conftest.$ac_ext <<_ACEOF |
| 4778 | #line 4778 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4779 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4780 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4781 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4782 | #ifdef __cplusplus |
| 4783 | extern "C" |
| 4784 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4785 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4786 | builtin and then its argument prototype would still apply. */ |
| 4787 | char setproctitle (); |
| 4788 | #ifdef F77_DUMMY_MAIN |
| 4789 | # ifdef __cplusplus |
| 4790 | extern "C" |
| 4791 | # endif |
| 4792 | int F77_DUMMY_MAIN() { return 1; } |
| 4793 | #endif |
| 4794 | int |
| 4795 | main () |
| 4796 | { |
| 4797 | setproctitle (); |
| 4798 | ; |
| 4799 | return 0; |
| 4800 | } |
| 4801 | _ACEOF |
| 4802 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4803 | if { (eval echo "$as_me:4803: \"$ac_link\"") >&5 |
| 4804 | (eval $ac_link) 2>&5 |
| 4805 | ac_status=$? |
| 4806 | echo "$as_me:4806: \$? = $ac_status" >&5 |
| 4807 | (exit $ac_status); } && |
| 4808 | { ac_try='test -s conftest$ac_exeext' |
| 4809 | { (eval echo "$as_me:4809: \"$ac_try\"") >&5 |
| 4810 | (eval $ac_try) 2>&5 |
| 4811 | ac_status=$? |
| 4812 | echo "$as_me:4812: \$? = $ac_status" >&5 |
| 4813 | (exit $ac_status); }; }; then |
| 4814 | ac_cv_lib_util_setproctitle=yes |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 4815 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4816 | echo "$as_me: failed program was:" >&5 |
| 4817 | cat conftest.$ac_ext >&5 |
| 4818 | ac_cv_lib_util_setproctitle=no |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 4819 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4820 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4821 | LIBS=$ac_check_lib_save_LIBS |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 4822 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4823 | echo "$as_me:4823: result: $ac_cv_lib_util_setproctitle" >&5 |
| 4824 | echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6 |
| 4825 | if test $ac_cv_lib_util_setproctitle = yes; then |
| 4826 | LIBS="$LIBS -lutil"; cat >>confdefs.h <<\_ACEOF |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 4827 | #define HAVE_SETPROCTITLE 1 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4828 | _ACEOF |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 4829 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4830 | fi |
| 4831 | |
| 4832 | fi |
| 4833 | done |
| 4834 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4835 | echo "$as_me:4835: checking zebra between kernel interface method" >&5 |
| 4836 | echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4837 | if test x"$opsys" = x"gnu-linux"; then |
| 4838 | if test "${enable_netlink}" = "yes";then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4839 | echo "$as_me:4839: result: netlink" >&5 |
| 4840 | echo "${ECHO_T}netlink" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4841 | RT_METHOD=rt_netlink.o |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4842 | |
| 4843 | cat >>confdefs.h <<\_ACEOF |
| 4844 | #define HAVE_NETLINK |
| 4845 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4846 | |
| 4847 | netlink=yes |
| 4848 | elif test "${enable_netlink}" = "no"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4849 | echo "$as_me:4849: result: ioctl" >&5 |
| 4850 | echo "${ECHO_T}ioctl" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4851 | RT_METHOD=rt_ioctl.o |
| 4852 | netlink=no |
| 4853 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4854 | echo "$as_me:4854: result: netlink" >&5 |
| 4855 | echo "${ECHO_T}netlink" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4856 | RT_METHOD=rt_netlink.o |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4857 | |
| 4858 | cat >>confdefs.h <<\_ACEOF |
| 4859 | #define HAVE_NETLINK |
| 4860 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4861 | |
| 4862 | netlink=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4863 | fi |
| 4864 | else |
| 4865 | if test "$opsys" = "sol2-6";then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4866 | echo "$as_me:4866: result: solaris" >&5 |
| 4867 | echo "${ECHO_T}solaris" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4868 | KERNEL_METHOD="kernel_socket.o" |
| 4869 | RT_METHOD="rt_socket.o" |
| 4870 | else |
| 4871 | if test "$cross_compiling" = yes; then |
| 4872 | KERNEL_METHOD=kernel_socket.o |
| 4873 | RT_METHOD=rt_socket.o |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4874 | echo "$as_me:4874: result: socket" >&5 |
| 4875 | echo "${ECHO_T}socket" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4876 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4877 | cat >conftest.$ac_ext <<_ACEOF |
| 4878 | #line 4878 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4879 | #include "confdefs.h" |
| 4880 | #include <errno.h> |
| 4881 | #include <sys/types.h> |
| 4882 | #include <sys/socket.h> |
| 4883 | |
| 4884 | main () |
| 4885 | { |
| 4886 | int ac_sock; |
| 4887 | |
| 4888 | ac_sock = socket (AF_ROUTE, SOCK_RAW, 0); |
| 4889 | if (ac_sock < 0 && errno == EINVAL) |
| 4890 | exit (1); |
| 4891 | exit (0); |
| 4892 | } |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4893 | _ACEOF |
| 4894 | rm -f conftest$ac_exeext |
| 4895 | if { (eval echo "$as_me:4895: \"$ac_link\"") >&5 |
| 4896 | (eval $ac_link) 2>&5 |
| 4897 | ac_status=$? |
| 4898 | echo "$as_me:4898: \$? = $ac_status" >&5 |
| 4899 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4900 | { (eval echo "$as_me:4900: \"$ac_try\"") >&5 |
| 4901 | (eval $ac_try) 2>&5 |
| 4902 | ac_status=$? |
| 4903 | echo "$as_me:4903: \$? = $ac_status" >&5 |
| 4904 | (exit $ac_status); }; }; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4905 | KERNEL_METHOD=kernel_socket.o |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4906 | RT_METHOD=rt_socket.o |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4907 | echo "$as_me:4907: result: socket" >&5 |
| 4908 | echo "${ECHO_T}socket" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4909 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4910 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4911 | echo "$as_me: failed program was:" >&5 |
| 4912 | cat conftest.$ac_ext >&5 |
| 4913 | RT_METHOD=rt_ioctl.o |
| 4914 | echo "$as_me:4914: result: ioctl" >&5 |
| 4915 | echo "${ECHO_T}ioctl" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4916 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4917 | 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] | 4918 | fi |
| 4919 | fi |
| 4920 | fi |
| 4921 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4922 | echo "$as_me:4922: checking route read method check" >&5 |
| 4923 | echo $ECHO_N "checking route read method check... $ECHO_C" >&6 |
| 4924 | if test "${zebra_rtread+set}" = set; then |
| 4925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4926 | else |
| 4927 | if test "$netlink" = yes; then |
| 4928 | RTREAD_METHOD="rtread_netlink.o" |
| 4929 | zebra_rtread="netlink" |
| 4930 | else |
| 4931 | for zebra_rtread in /proc/net/route /dev/ip /dev/null; |
| 4932 | do |
| 4933 | test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break |
| 4934 | done |
| 4935 | case $zebra_rtread in |
| 4936 | "/proc/net/route") RTREAD_METHOD="rtread_proc.o" |
| 4937 | zebra_rtread="proc";; |
| 4938 | "/dev/ip") RTREAD_METHOD="rtread_getmsg.o" |
| 4939 | zebra_rtread="getmsg";; |
| 4940 | *) RTREAD_METHOD="rtread_sysctl.o" |
| 4941 | zebra_rtread="sysctl";; |
| 4942 | esac |
| 4943 | fi |
| 4944 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4945 | echo "$as_me:4945: result: $zebra_rtread" >&5 |
| 4946 | echo "${ECHO_T}$zebra_rtread" >&6 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 4947 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4948 | echo "$as_me:4948: checking interface looking up method" >&5 |
| 4949 | echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4950 | if test "$netlink" = yes; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4951 | echo "$as_me:4951: result: netlink" >&5 |
| 4952 | echo "${ECHO_T}netlink" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4953 | IF_METHOD=if_netlink.o |
| 4954 | else |
| 4955 | if test "$opsys" = "sol2-6";then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4956 | echo "$as_me:4956: result: solaris" >&5 |
| 4957 | echo "${ECHO_T}solaris" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4958 | IF_METHOD=if_ioctl.o |
| 4959 | elif test "$opsys" = "openbsd";then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4960 | echo "$as_me:4960: result: openbsd" >&5 |
| 4961 | echo "${ECHO_T}openbsd" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4962 | IF_METHOD=if_ioctl.o |
| 4963 | elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4964 | echo "$as_me:4964: result: sysctl" >&5 |
| 4965 | echo "${ECHO_T}sysctl" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4966 | IF_METHOD=if_sysctl.o |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4967 | |
| 4968 | cat >>confdefs.h <<\_ACEOF |
| 4969 | #define HAVE_NET_RT_IFLIST |
| 4970 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4971 | |
| 4972 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4973 | echo "$as_me:4973: result: ioctl" >&5 |
| 4974 | echo "${ECHO_T}ioctl" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4975 | IF_METHOD=if_ioctl.o |
| 4976 | fi |
| 4977 | fi |
| 4978 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4979 | if test -r /proc/net/dev; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4980 | |
| 4981 | cat >>confdefs.h <<\_ACEOF |
| 4982 | #define HAVE_PROC_NET_DEV |
| 4983 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4984 | |
| 4985 | IF_PROC=if_proc.o |
| 4986 | fi |
| 4987 | |
| 4988 | if test -r /proc/net/if_inet6; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4989 | |
| 4990 | cat >>confdefs.h <<\_ACEOF |
| 4991 | #define HAVE_PROC_NET_IF_INET6 |
| 4992 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4993 | |
| 4994 | IF_PROC=if_proc.o |
| 4995 | fi |
| 4996 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 4997 | echo "$as_me:4997: checking ipforward method check" >&5 |
| 4998 | echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6 |
| 4999 | if test "${zebra_ipforward_path+set}" = set; then |
| 5000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5001 | else |
| 5002 | for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null; |
| 5003 | do |
| 5004 | test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break |
| 5005 | done |
| 5006 | case $zebra_ipforward_path in |
| 5007 | "/proc/net/snmp") IPFORWARD=ipforward_proc.o |
| 5008 | zebra_ipforward_path="proc";; |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5009 | "/dev/ip") |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5010 | case "$host" in |
| 5011 | *-nec-sysv4*) IPFORWARD=ipforward_ews.o |
| 5012 | zebra_ipforward_path="ews";; |
| 5013 | *) IPFORWARD=ipforward_solaris.o |
| 5014 | zebra_ipforward_path="solaris";; |
| 5015 | esac;; |
| 5016 | *) IPFORWARD=ipforward_sysctl.o |
| 5017 | zebra_ipforward_path="sysctl";; |
| 5018 | esac |
| 5019 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5020 | echo "$as_me:5020: result: $zebra_ipforward_path" >&5 |
| 5021 | echo "${ECHO_T}$zebra_ipforward_path" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5022 | |
| 5023 | for ac_func in getaddrinfo |
| 5024 | do |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5025 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5026 | echo "$as_me:5026: checking for $ac_func" >&5 |
| 5027 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5028 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5030 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5031 | cat >conftest.$ac_ext <<_ACEOF |
| 5032 | #line 5032 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5033 | #include "confdefs.h" |
| 5034 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5035 | which can conflict with char $ac_func (); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5036 | #include <assert.h> |
| 5037 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5038 | #ifdef __cplusplus |
| 5039 | extern "C" |
| 5040 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5041 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5042 | builtin and then its argument prototype would still apply. */ |
| 5043 | char $ac_func (); |
| 5044 | char (*f) (); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5045 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5046 | #ifdef F77_DUMMY_MAIN |
| 5047 | # ifdef __cplusplus |
| 5048 | extern "C" |
| 5049 | # endif |
| 5050 | int F77_DUMMY_MAIN() { return 1; } |
| 5051 | #endif |
| 5052 | int |
| 5053 | main () |
| 5054 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5055 | /* The GNU C library defines this for functions which it implements |
| 5056 | to always fail with ENOSYS. Some functions are actually named |
| 5057 | something starting with __ and the normal name is an alias. */ |
| 5058 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5059 | choke me |
| 5060 | #else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5061 | f = $ac_func; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5062 | #endif |
| 5063 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5064 | ; |
| 5065 | return 0; |
| 5066 | } |
| 5067 | _ACEOF |
| 5068 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5069 | if { (eval echo "$as_me:5069: \"$ac_link\"") >&5 |
| 5070 | (eval $ac_link) 2>&5 |
| 5071 | ac_status=$? |
| 5072 | echo "$as_me:5072: \$? = $ac_status" >&5 |
| 5073 | (exit $ac_status); } && |
| 5074 | { ac_try='test -s conftest$ac_exeext' |
| 5075 | { (eval echo "$as_me:5075: \"$ac_try\"") >&5 |
| 5076 | (eval $ac_try) 2>&5 |
| 5077 | ac_status=$? |
| 5078 | echo "$as_me:5078: \$? = $ac_status" >&5 |
| 5079 | (exit $ac_status); }; }; then |
| 5080 | eval "$as_ac_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5081 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5082 | echo "$as_me: failed program was:" >&5 |
| 5083 | cat conftest.$ac_ext >&5 |
| 5084 | eval "$as_ac_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5085 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5086 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5087 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5088 | echo "$as_me:5088: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5089 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5090 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5091 | cat >>confdefs.h <<_ACEOF |
| 5092 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5093 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5094 | have_getaddrinfo=yes |
| 5095 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5096 | have_getaddrinfo=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5097 | fi |
| 5098 | done |
| 5099 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5100 | echo "$as_me:5100: checking whether does this OS have IPv6 stack" >&5 |
| 5101 | echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5102 | if test "${enable_ipv6}" = "no"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5103 | echo "$as_me:5103: result: disabled" >&5 |
| 5104 | echo "${ECHO_T}disabled" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5105 | else |
| 5106 | if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then |
| 5107 | zebra_cv_ipv6=yes |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5108 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5109 | cat >>confdefs.h <<\_ACEOF |
| 5110 | #define HAVE_IPV6 |
| 5111 | _ACEOF |
| 5112 | |
| 5113 | cat >>confdefs.h <<\_ACEOF |
| 5114 | #define INRIA_IPV6 |
| 5115 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5116 | |
| 5117 | RIPNGD="ripngd" |
| 5118 | OSPF6D="ospf6d" |
| 5119 | LIB_IPV6="" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5120 | echo "$as_me:5120: result: INRIA IPv6" >&5 |
| 5121 | echo "${ECHO_T}INRIA IPv6" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5122 | fi |
| 5123 | if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then |
| 5124 | zebra_cv_ipv6=yes |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5125 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5126 | cat >>confdefs.h <<\_ACEOF |
| 5127 | #define HAVE_IPV6 |
| 5128 | _ACEOF |
| 5129 | |
| 5130 | cat >>confdefs.h <<\_ACEOF |
| 5131 | #define KAME |
| 5132 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5133 | |
| 5134 | RIPNGD="ripngd" |
| 5135 | OSPF6D="ospf6d" |
| 5136 | if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then |
| 5137 | LIB_IPV6="-L/usr/local/v6/lib -linet6" |
| 5138 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5139 | echo "$as_me:5139: result: KAME" >&5 |
| 5140 | echo "${ECHO_T}KAME" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5141 | fi |
| 5142 | if grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then |
| 5143 | zebra_cv_ipv6=yes |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5144 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5145 | cat >>confdefs.h <<\_ACEOF |
| 5146 | #define HAVE_IPV6 |
| 5147 | _ACEOF |
| 5148 | |
| 5149 | cat >>confdefs.h <<\_ACEOF |
| 5150 | #define NRL |
| 5151 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5152 | |
| 5153 | RIPNGD="ripngd" |
| 5154 | OSPF6D="ospf6d" |
| 5155 | if test x"$opsys" = x"bsdi";then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5156 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5157 | cat >>confdefs.h <<\_ACEOF |
| 5158 | #define BSDI_NRL |
| 5159 | _ACEOF |
| 5160 | |
| 5161 | echo "$as_me:5161: result: BSDI_NRL" >&5 |
| 5162 | echo "${ECHO_T}BSDI_NRL" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5163 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5164 | echo "$as_me:5164: result: NRL" >&5 |
| 5165 | echo "${ECHO_T}NRL" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5166 | fi |
| 5167 | fi |
| 5168 | |
| 5169 | if test "${enable_ipv6}" = "yes"; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5170 | cat >conftest.$ac_ext <<_ACEOF |
| 5171 | #line 5171 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5172 | #include "confdefs.h" |
| 5173 | |
| 5174 | #include <linux/version.h> |
| 5175 | /* 2.1.128 or later */ |
| 5176 | #if LINUX_VERSION_CODE >= 0x020180 |
| 5177 | yes |
| 5178 | #endif |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5179 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5180 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5181 | egrep "yes" >/dev/null 2>&1; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5182 | zebra_cv_ipv6=yes; zebra_cv_linux_ipv6=yes;echo "$as_me:5182: result: Linux IPv6" >&5 |
| 5183 | echo "${ECHO_T}Linux IPv6" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5184 | fi |
| 5185 | rm -f conftest* |
| 5186 | |
| 5187 | else |
| 5188 | if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route" |
| 5189 | then |
| 5190 | zebra_cv_ipv6=yes |
| 5191 | zebra_cv_linux_ipv6=yes |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5192 | echo "$as_me:5192: result: Linux IPv6" >&5 |
| 5193 | echo "${ECHO_T}Linux IPv6" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5194 | fi |
| 5195 | fi |
| 5196 | |
| 5197 | if test "$zebra_cv_linux_ipv6" = "yes";then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5198 | cat >>confdefs.h <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5199 | #define HAVE_IPV6 1 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5200 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5201 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5202 | echo "$as_me:5202: checking for GNU libc 2.1" >&5 |
| 5203 | echo $ECHO_N "checking for GNU libc 2.1... $ECHO_C" >&6 |
| 5204 | cat >conftest.$ac_ext <<_ACEOF |
| 5205 | #line 5205 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5206 | #include "confdefs.h" |
| 5207 | |
| 5208 | #include <features.h> |
| 5209 | #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 |
| 5210 | yes |
| 5211 | #endif |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5212 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 5214 | egrep "yes" >/dev/null 2>&1; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5215 | glibc=yes; echo "$as_me:5215: result: yes" >&5 |
| 5216 | echo "${ECHO_T}yes" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5217 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5218 | echo "$as_me:5218: result: no" >&5 |
| 5219 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5220 | fi |
| 5221 | rm -f conftest* |
| 5222 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5223 | cat >>confdefs.h <<\_ACEOF |
| 5224 | #define LINUX_IPV6 |
| 5225 | _ACEOF |
| 5226 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5227 | RIPNGD="ripngd" |
| 5228 | OSPF6D="ospf6d" |
| 5229 | if test "$glibc" != "yes"; then |
| 5230 | INCLUDES="-I/usr/inet6/include" |
| 5231 | if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then |
| 5232 | LIB_IPV6="-L/usr/inet6/lib -linet6" |
| 5233 | fi |
| 5234 | fi |
| 5235 | fi |
| 5236 | |
| 5237 | LIBS="$LIB_IPV6 $LIBS" |
| 5238 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5239 | if test x"$RIPNGD" = x""; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5240 | echo "$as_me:5240: result: IPv4 only" >&5 |
| 5241 | echo "${ECHO_T}IPv4 only" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5242 | fi |
| 5243 | fi |
| 5244 | |
| 5245 | if test "${enable_zebra}" = "no";then |
| 5246 | ZEBRA="" |
| 5247 | else |
| 5248 | ZEBRA="zebra" |
| 5249 | fi |
| 5250 | |
| 5251 | if test "${enable_bgpd}" = "no";then |
| 5252 | BGPD="" |
| 5253 | else |
| 5254 | BGPD="bgpd" |
| 5255 | fi |
| 5256 | |
| 5257 | if test "${enable_ripd}" = "no";then |
| 5258 | RIPD="" |
| 5259 | else |
| 5260 | RIPD="ripd" |
| 5261 | fi |
| 5262 | |
| 5263 | if test "${enable_ospfd}" = "no";then |
| 5264 | OSPFD="" |
| 5265 | else |
| 5266 | OSPFD="ospfd" |
| 5267 | fi |
| 5268 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5269 | OSPFAPI="" |
| 5270 | OSPFCLIENT="" |
| 5271 | if test "${enable_opaque_lsa}" = "yes"; then |
| 5272 | if test "${enable_ospfapi}" != "no";then |
| 5273 | OSPFAPI="-DSUPPORT_OSPF_API" |
| 5274 | |
| 5275 | if test "${enable_ospfclient}" != "no";then |
| 5276 | OSPFCLIENT="ospfclient" |
| 5277 | fi |
| 5278 | fi |
| 5279 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 5280 | fi |
| 5281 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5282 | case "${enable_ripngd}" in |
| 5283 | "yes") RIPNGD="ripngd";; |
| 5284 | "no" ) RIPNGD="";; |
| 5285 | * ) ;; |
| 5286 | esac |
| 5287 | |
| 5288 | case "${enable_ospf6d}" in |
| 5289 | "yes") OSPF6D="ospf6d";; |
| 5290 | "no" ) OSPF6D="";; |
| 5291 | * ) ;; |
| 5292 | esac |
| 5293 | |
| 5294 | if test "${enable_bgp_announce}" = "no";then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5295 | |
| 5296 | cat >>confdefs.h <<\_ACEOF |
| 5297 | #define DISABLE_BGP_ANNOUNCE |
| 5298 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5299 | |
| 5300 | fi |
| 5301 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5302 | echo "$as_me:5302: checking for inet_ntop in -lc" >&5 |
| 5303 | echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6 |
| 5304 | if test "${ac_cv_lib_c_inet_ntop+set}" = set; then |
| 5305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5306 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5307 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5308 | LIBS="-lc $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5309 | cat >conftest.$ac_ext <<_ACEOF |
| 5310 | #line 5310 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5311 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5312 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5313 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5314 | #ifdef __cplusplus |
| 5315 | extern "C" |
| 5316 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5317 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5318 | builtin and then its argument prototype would still apply. */ |
| 5319 | char inet_ntop (); |
| 5320 | #ifdef F77_DUMMY_MAIN |
| 5321 | # ifdef __cplusplus |
| 5322 | extern "C" |
| 5323 | # endif |
| 5324 | int F77_DUMMY_MAIN() { return 1; } |
| 5325 | #endif |
| 5326 | int |
| 5327 | main () |
| 5328 | { |
| 5329 | inet_ntop (); |
| 5330 | ; |
| 5331 | return 0; |
| 5332 | } |
| 5333 | _ACEOF |
| 5334 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5335 | if { (eval echo "$as_me:5335: \"$ac_link\"") >&5 |
| 5336 | (eval $ac_link) 2>&5 |
| 5337 | ac_status=$? |
| 5338 | echo "$as_me:5338: \$? = $ac_status" >&5 |
| 5339 | (exit $ac_status); } && |
| 5340 | { ac_try='test -s conftest$ac_exeext' |
| 5341 | { (eval echo "$as_me:5341: \"$ac_try\"") >&5 |
| 5342 | (eval $ac_try) 2>&5 |
| 5343 | ac_status=$? |
| 5344 | echo "$as_me:5344: \$? = $ac_status" >&5 |
| 5345 | (exit $ac_status); }; }; then |
| 5346 | ac_cv_lib_c_inet_ntop=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5347 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5348 | echo "$as_me: failed program was:" >&5 |
| 5349 | cat conftest.$ac_ext >&5 |
| 5350 | ac_cv_lib_c_inet_ntop=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5351 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5352 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5353 | LIBS=$ac_check_lib_save_LIBS |
| 5354 | fi |
| 5355 | echo "$as_me:5355: result: $ac_cv_lib_c_inet_ntop" >&5 |
| 5356 | echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6 |
| 5357 | if test $ac_cv_lib_c_inet_ntop = yes; then |
| 5358 | |
| 5359 | cat >>confdefs.h <<\_ACEOF |
| 5360 | #define HAVE_INET_NTOP |
| 5361 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5362 | |
| 5363 | fi |
| 5364 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5365 | echo "$as_me:5365: checking for inet_pton in -lc" >&5 |
| 5366 | echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6 |
| 5367 | if test "${ac_cv_lib_c_inet_pton+set}" = set; then |
| 5368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5369 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5370 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5371 | LIBS="-lc $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5372 | cat >conftest.$ac_ext <<_ACEOF |
| 5373 | #line 5373 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5374 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5375 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5376 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5377 | #ifdef __cplusplus |
| 5378 | extern "C" |
| 5379 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5380 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5381 | builtin and then its argument prototype would still apply. */ |
| 5382 | char inet_pton (); |
| 5383 | #ifdef F77_DUMMY_MAIN |
| 5384 | # ifdef __cplusplus |
| 5385 | extern "C" |
| 5386 | # endif |
| 5387 | int F77_DUMMY_MAIN() { return 1; } |
| 5388 | #endif |
| 5389 | int |
| 5390 | main () |
| 5391 | { |
| 5392 | inet_pton (); |
| 5393 | ; |
| 5394 | return 0; |
| 5395 | } |
| 5396 | _ACEOF |
| 5397 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5398 | if { (eval echo "$as_me:5398: \"$ac_link\"") >&5 |
| 5399 | (eval $ac_link) 2>&5 |
| 5400 | ac_status=$? |
| 5401 | echo "$as_me:5401: \$? = $ac_status" >&5 |
| 5402 | (exit $ac_status); } && |
| 5403 | { ac_try='test -s conftest$ac_exeext' |
| 5404 | { (eval echo "$as_me:5404: \"$ac_try\"") >&5 |
| 5405 | (eval $ac_try) 2>&5 |
| 5406 | ac_status=$? |
| 5407 | echo "$as_me:5407: \$? = $ac_status" >&5 |
| 5408 | (exit $ac_status); }; }; then |
| 5409 | ac_cv_lib_c_inet_pton=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5410 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5411 | echo "$as_me: failed program was:" >&5 |
| 5412 | cat conftest.$ac_ext >&5 |
| 5413 | ac_cv_lib_c_inet_pton=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5414 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5415 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5416 | LIBS=$ac_check_lib_save_LIBS |
| 5417 | fi |
| 5418 | echo "$as_me:5418: result: $ac_cv_lib_c_inet_pton" >&5 |
| 5419 | echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6 |
| 5420 | if test $ac_cv_lib_c_inet_pton = yes; then |
| 5421 | |
| 5422 | cat >>confdefs.h <<\_ACEOF |
| 5423 | #define HAVE_INET_PTON |
| 5424 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5425 | |
| 5426 | fi |
| 5427 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5428 | echo "$as_me:5428: checking for crypt in -lcrypt" >&5 |
| 5429 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 |
| 5430 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then |
| 5431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5432 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5433 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5434 | LIBS="-lcrypt $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5435 | cat >conftest.$ac_ext <<_ACEOF |
| 5436 | #line 5436 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5437 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5438 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5439 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5440 | #ifdef __cplusplus |
| 5441 | extern "C" |
| 5442 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5443 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5444 | builtin and then its argument prototype would still apply. */ |
| 5445 | char crypt (); |
| 5446 | #ifdef F77_DUMMY_MAIN |
| 5447 | # ifdef __cplusplus |
| 5448 | extern "C" |
| 5449 | # endif |
| 5450 | int F77_DUMMY_MAIN() { return 1; } |
| 5451 | #endif |
| 5452 | int |
| 5453 | main () |
| 5454 | { |
| 5455 | crypt (); |
| 5456 | ; |
| 5457 | return 0; |
| 5458 | } |
| 5459 | _ACEOF |
| 5460 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5461 | if { (eval echo "$as_me:5461: \"$ac_link\"") >&5 |
| 5462 | (eval $ac_link) 2>&5 |
| 5463 | ac_status=$? |
| 5464 | echo "$as_me:5464: \$? = $ac_status" >&5 |
| 5465 | (exit $ac_status); } && |
| 5466 | { ac_try='test -s conftest$ac_exeext' |
| 5467 | { (eval echo "$as_me:5467: \"$ac_try\"") >&5 |
| 5468 | (eval $ac_try) 2>&5 |
| 5469 | ac_status=$? |
| 5470 | echo "$as_me:5470: \$? = $ac_status" >&5 |
| 5471 | (exit $ac_status); }; }; then |
| 5472 | ac_cv_lib_crypt_crypt=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5473 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5474 | echo "$as_me: failed program was:" >&5 |
| 5475 | cat conftest.$ac_ext >&5 |
| 5476 | ac_cv_lib_crypt_crypt=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5477 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5478 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5479 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5480 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5481 | echo "$as_me:5481: result: $ac_cv_lib_crypt_crypt" >&5 |
| 5482 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 |
| 5483 | if test $ac_cv_lib_crypt_crypt = yes; then |
| 5484 | cat >>confdefs.h <<_ACEOF |
| 5485 | #define HAVE_LIBCRYPT 1 |
| 5486 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5487 | |
| 5488 | LIBS="-lcrypt $LIBS" |
| 5489 | |
| 5490 | fi |
| 5491 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5492 | echo "$as_me:5492: checking for res_init in -lresolv" >&5 |
| 5493 | echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6 |
| 5494 | if test "${ac_cv_lib_resolv_res_init+set}" = set; then |
| 5495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5496 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5497 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5498 | LIBS="-lresolv $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5499 | cat >conftest.$ac_ext <<_ACEOF |
| 5500 | #line 5500 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5501 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5502 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5503 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5504 | #ifdef __cplusplus |
| 5505 | extern "C" |
| 5506 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5507 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5508 | builtin and then its argument prototype would still apply. */ |
| 5509 | char res_init (); |
| 5510 | #ifdef F77_DUMMY_MAIN |
| 5511 | # ifdef __cplusplus |
| 5512 | extern "C" |
| 5513 | # endif |
| 5514 | int F77_DUMMY_MAIN() { return 1; } |
| 5515 | #endif |
| 5516 | int |
| 5517 | main () |
| 5518 | { |
| 5519 | res_init (); |
| 5520 | ; |
| 5521 | return 0; |
| 5522 | } |
| 5523 | _ACEOF |
| 5524 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5525 | if { (eval echo "$as_me:5525: \"$ac_link\"") >&5 |
| 5526 | (eval $ac_link) 2>&5 |
| 5527 | ac_status=$? |
| 5528 | echo "$as_me:5528: \$? = $ac_status" >&5 |
| 5529 | (exit $ac_status); } && |
| 5530 | { ac_try='test -s conftest$ac_exeext' |
| 5531 | { (eval echo "$as_me:5531: \"$ac_try\"") >&5 |
| 5532 | (eval $ac_try) 2>&5 |
| 5533 | ac_status=$? |
| 5534 | echo "$as_me:5534: \$? = $ac_status" >&5 |
| 5535 | (exit $ac_status); }; }; then |
| 5536 | ac_cv_lib_resolv_res_init=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5537 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5538 | echo "$as_me: failed program was:" >&5 |
| 5539 | cat conftest.$ac_ext >&5 |
| 5540 | ac_cv_lib_resolv_res_init=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5541 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5542 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5543 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5544 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5545 | echo "$as_me:5545: result: $ac_cv_lib_resolv_res_init" >&5 |
| 5546 | echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6 |
| 5547 | if test $ac_cv_lib_resolv_res_init = yes; then |
| 5548 | cat >>confdefs.h <<_ACEOF |
| 5549 | #define HAVE_LIBRESOLV 1 |
| 5550 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5551 | |
| 5552 | LIBS="-lresolv $LIBS" |
| 5553 | |
| 5554 | fi |
| 5555 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5556 | echo "$as_me:5556: checking for main in -lm" >&5 |
| 5557 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
| 5558 | if test "${ac_cv_lib_m_main+set}" = set; then |
| 5559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5560 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5561 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5562 | LIBS="-lm $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5563 | cat >conftest.$ac_ext <<_ACEOF |
| 5564 | #line 5564 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5565 | #include "confdefs.h" |
| 5566 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5567 | #ifdef F77_DUMMY_MAIN |
| 5568 | # ifdef __cplusplus |
| 5569 | extern "C" |
| 5570 | # endif |
| 5571 | int F77_DUMMY_MAIN() { return 1; } |
| 5572 | #endif |
| 5573 | int |
| 5574 | main () |
| 5575 | { |
| 5576 | main (); |
| 5577 | ; |
| 5578 | return 0; |
| 5579 | } |
| 5580 | _ACEOF |
| 5581 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5582 | if { (eval echo "$as_me:5582: \"$ac_link\"") >&5 |
| 5583 | (eval $ac_link) 2>&5 |
| 5584 | ac_status=$? |
| 5585 | echo "$as_me:5585: \$? = $ac_status" >&5 |
| 5586 | (exit $ac_status); } && |
| 5587 | { ac_try='test -s conftest$ac_exeext' |
| 5588 | { (eval echo "$as_me:5588: \"$ac_try\"") >&5 |
| 5589 | (eval $ac_try) 2>&5 |
| 5590 | ac_status=$? |
| 5591 | echo "$as_me:5591: \$? = $ac_status" >&5 |
| 5592 | (exit $ac_status); }; }; then |
| 5593 | ac_cv_lib_m_main=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5594 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5595 | echo "$as_me: failed program was:" >&5 |
| 5596 | cat conftest.$ac_ext >&5 |
| 5597 | ac_cv_lib_m_main=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5598 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5599 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5600 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5601 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5602 | echo "$as_me:5602: result: $ac_cv_lib_m_main" >&5 |
| 5603 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
| 5604 | if test $ac_cv_lib_m_main = yes; then |
| 5605 | cat >>confdefs.h <<_ACEOF |
| 5606 | #define HAVE_LIBM 1 |
| 5607 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5608 | |
| 5609 | LIBS="-lm $LIBS" |
| 5610 | |
| 5611 | fi |
| 5612 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5613 | echo "$as_me:5613: checking for __inet_ntop" >&5 |
| 5614 | echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6 |
| 5615 | if test "${ac_cv_func___inet_ntop+set}" = set; then |
| 5616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5617 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5618 | cat >conftest.$ac_ext <<_ACEOF |
| 5619 | #line 5619 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5620 | #include "confdefs.h" |
| 5621 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5622 | which can conflict with char __inet_ntop (); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5623 | #include <assert.h> |
| 5624 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5625 | #ifdef __cplusplus |
| 5626 | extern "C" |
| 5627 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5628 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5629 | builtin and then its argument prototype would still apply. */ |
| 5630 | char __inet_ntop (); |
| 5631 | char (*f) (); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5632 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5633 | #ifdef F77_DUMMY_MAIN |
| 5634 | # ifdef __cplusplus |
| 5635 | extern "C" |
| 5636 | # endif |
| 5637 | int F77_DUMMY_MAIN() { return 1; } |
| 5638 | #endif |
| 5639 | int |
| 5640 | main () |
| 5641 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5642 | /* The GNU C library defines this for functions which it implements |
| 5643 | to always fail with ENOSYS. Some functions are actually named |
| 5644 | something starting with __ and the normal name is an alias. */ |
| 5645 | #if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop) |
| 5646 | choke me |
| 5647 | #else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5648 | f = __inet_ntop; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5649 | #endif |
| 5650 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5651 | ; |
| 5652 | return 0; |
| 5653 | } |
| 5654 | _ACEOF |
| 5655 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5656 | if { (eval echo "$as_me:5656: \"$ac_link\"") >&5 |
| 5657 | (eval $ac_link) 2>&5 |
| 5658 | ac_status=$? |
| 5659 | echo "$as_me:5659: \$? = $ac_status" >&5 |
| 5660 | (exit $ac_status); } && |
| 5661 | { ac_try='test -s conftest$ac_exeext' |
| 5662 | { (eval echo "$as_me:5662: \"$ac_try\"") >&5 |
| 5663 | (eval $ac_try) 2>&5 |
| 5664 | ac_status=$? |
| 5665 | echo "$as_me:5665: \$? = $ac_status" >&5 |
| 5666 | (exit $ac_status); }; }; then |
| 5667 | ac_cv_func___inet_ntop=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5668 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5669 | echo "$as_me: failed program was:" >&5 |
| 5670 | cat conftest.$ac_ext >&5 |
| 5671 | ac_cv_func___inet_ntop=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5672 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5673 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5674 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5675 | echo "$as_me:5675: result: $ac_cv_func___inet_ntop" >&5 |
| 5676 | echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6 |
| 5677 | if test $ac_cv_func___inet_ntop = yes; then |
| 5678 | cat >>confdefs.h <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5679 | #define HAVE_INET_NTOP 1 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5680 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5681 | |
| 5682 | fi |
| 5683 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5684 | echo "$as_me:5684: checking for __inet_pton" >&5 |
| 5685 | echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6 |
| 5686 | if test "${ac_cv_func___inet_pton+set}" = set; then |
| 5687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5688 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5689 | cat >conftest.$ac_ext <<_ACEOF |
| 5690 | #line 5690 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5691 | #include "confdefs.h" |
| 5692 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5693 | which can conflict with char __inet_pton (); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5694 | #include <assert.h> |
| 5695 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5696 | #ifdef __cplusplus |
| 5697 | extern "C" |
| 5698 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5699 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5700 | builtin and then its argument prototype would still apply. */ |
| 5701 | char __inet_pton (); |
| 5702 | char (*f) (); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5703 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5704 | #ifdef F77_DUMMY_MAIN |
| 5705 | # ifdef __cplusplus |
| 5706 | extern "C" |
| 5707 | # endif |
| 5708 | int F77_DUMMY_MAIN() { return 1; } |
| 5709 | #endif |
| 5710 | int |
| 5711 | main () |
| 5712 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5713 | /* The GNU C library defines this for functions which it implements |
| 5714 | to always fail with ENOSYS. Some functions are actually named |
| 5715 | something starting with __ and the normal name is an alias. */ |
| 5716 | #if defined (__stub___inet_pton) || defined (__stub_____inet_pton) |
| 5717 | choke me |
| 5718 | #else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5719 | f = __inet_pton; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5720 | #endif |
| 5721 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5722 | ; |
| 5723 | return 0; |
| 5724 | } |
| 5725 | _ACEOF |
| 5726 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5727 | if { (eval echo "$as_me:5727: \"$ac_link\"") >&5 |
| 5728 | (eval $ac_link) 2>&5 |
| 5729 | ac_status=$? |
| 5730 | echo "$as_me:5730: \$? = $ac_status" >&5 |
| 5731 | (exit $ac_status); } && |
| 5732 | { ac_try='test -s conftest$ac_exeext' |
| 5733 | { (eval echo "$as_me:5733: \"$ac_try\"") >&5 |
| 5734 | (eval $ac_try) 2>&5 |
| 5735 | ac_status=$? |
| 5736 | echo "$as_me:5736: \$? = $ac_status" >&5 |
| 5737 | (exit $ac_status); }; }; then |
| 5738 | ac_cv_func___inet_pton=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5739 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5740 | echo "$as_me: failed program was:" >&5 |
| 5741 | cat conftest.$ac_ext >&5 |
| 5742 | ac_cv_func___inet_pton=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5743 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5744 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5745 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5746 | echo "$as_me:5746: result: $ac_cv_func___inet_pton" >&5 |
| 5747 | echo "${ECHO_T}$ac_cv_func___inet_pton" >&6 |
| 5748 | if test $ac_cv_func___inet_pton = yes; then |
| 5749 | cat >>confdefs.h <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5750 | #define HAVE_INET_PTON 1 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5751 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5752 | |
| 5753 | fi |
| 5754 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5755 | echo "$as_me:5755: checking for __inet_aton" >&5 |
| 5756 | echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6 |
| 5757 | if test "${ac_cv_func___inet_aton+set}" = set; then |
| 5758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5759 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5760 | cat >conftest.$ac_ext <<_ACEOF |
| 5761 | #line 5761 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5762 | #include "confdefs.h" |
| 5763 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5764 | which can conflict with char __inet_aton (); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5765 | #include <assert.h> |
| 5766 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5767 | #ifdef __cplusplus |
| 5768 | extern "C" |
| 5769 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5770 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5771 | builtin and then its argument prototype would still apply. */ |
| 5772 | char __inet_aton (); |
| 5773 | char (*f) (); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5774 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5775 | #ifdef F77_DUMMY_MAIN |
| 5776 | # ifdef __cplusplus |
| 5777 | extern "C" |
| 5778 | # endif |
| 5779 | int F77_DUMMY_MAIN() { return 1; } |
| 5780 | #endif |
| 5781 | int |
| 5782 | main () |
| 5783 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5784 | /* The GNU C library defines this for functions which it implements |
| 5785 | to always fail with ENOSYS. Some functions are actually named |
| 5786 | something starting with __ and the normal name is an alias. */ |
| 5787 | #if defined (__stub___inet_aton) || defined (__stub_____inet_aton) |
| 5788 | choke me |
| 5789 | #else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5790 | f = __inet_aton; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5791 | #endif |
| 5792 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5793 | ; |
| 5794 | return 0; |
| 5795 | } |
| 5796 | _ACEOF |
| 5797 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5798 | if { (eval echo "$as_me:5798: \"$ac_link\"") >&5 |
| 5799 | (eval $ac_link) 2>&5 |
| 5800 | ac_status=$? |
| 5801 | echo "$as_me:5801: \$? = $ac_status" >&5 |
| 5802 | (exit $ac_status); } && |
| 5803 | { ac_try='test -s conftest$ac_exeext' |
| 5804 | { (eval echo "$as_me:5804: \"$ac_try\"") >&5 |
| 5805 | (eval $ac_try) 2>&5 |
| 5806 | ac_status=$? |
| 5807 | echo "$as_me:5807: \$? = $ac_status" >&5 |
| 5808 | (exit $ac_status); }; }; then |
| 5809 | ac_cv_func___inet_aton=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5810 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5811 | echo "$as_me: failed program was:" >&5 |
| 5812 | cat conftest.$ac_ext >&5 |
| 5813 | ac_cv_func___inet_aton=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5814 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5815 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5816 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5817 | echo "$as_me:5817: result: $ac_cv_func___inet_aton" >&5 |
| 5818 | echo "${ECHO_T}$ac_cv_func___inet_aton" >&6 |
| 5819 | if test $ac_cv_func___inet_aton = yes; then |
| 5820 | cat >>confdefs.h <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5821 | #define HAVE_INET_ATON 1 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5822 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5823 | |
| 5824 | fi |
| 5825 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5826 | echo "$as_me:5826: checking for regexec in -lc" >&5 |
| 5827 | echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6 |
| 5828 | if test "${ac_cv_lib_c_regexec+set}" = set; then |
| 5829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5830 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5831 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5832 | LIBS="-lc $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5833 | cat >conftest.$ac_ext <<_ACEOF |
| 5834 | #line 5834 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5835 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5836 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5837 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5838 | #ifdef __cplusplus |
| 5839 | extern "C" |
| 5840 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5841 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5842 | builtin and then its argument prototype would still apply. */ |
| 5843 | char regexec (); |
| 5844 | #ifdef F77_DUMMY_MAIN |
| 5845 | # ifdef __cplusplus |
| 5846 | extern "C" |
| 5847 | # endif |
| 5848 | int F77_DUMMY_MAIN() { return 1; } |
| 5849 | #endif |
| 5850 | int |
| 5851 | main () |
| 5852 | { |
| 5853 | regexec (); |
| 5854 | ; |
| 5855 | return 0; |
| 5856 | } |
| 5857 | _ACEOF |
| 5858 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5859 | if { (eval echo "$as_me:5859: \"$ac_link\"") >&5 |
| 5860 | (eval $ac_link) 2>&5 |
| 5861 | ac_status=$? |
| 5862 | echo "$as_me:5862: \$? = $ac_status" >&5 |
| 5863 | (exit $ac_status); } && |
| 5864 | { ac_try='test -s conftest$ac_exeext' |
| 5865 | { (eval echo "$as_me:5865: \"$ac_try\"") >&5 |
| 5866 | (eval $ac_try) 2>&5 |
| 5867 | ac_status=$? |
| 5868 | echo "$as_me:5868: \$? = $ac_status" >&5 |
| 5869 | (exit $ac_status); }; }; then |
| 5870 | ac_cv_lib_c_regexec=yes |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 5871 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5872 | echo "$as_me: failed program was:" >&5 |
| 5873 | cat conftest.$ac_ext >&5 |
| 5874 | ac_cv_lib_c_regexec=no |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 5875 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5876 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5877 | LIBS=$ac_check_lib_save_LIBS |
| 5878 | fi |
| 5879 | echo "$as_me:5879: result: $ac_cv_lib_c_regexec" >&5 |
| 5880 | echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6 |
| 5881 | if test $ac_cv_lib_c_regexec = yes; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 5882 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5883 | cat >>confdefs.h <<\_ACEOF |
| 5884 | #define HAVE_GNU_REGEX |
| 5885 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5886 | |
| 5887 | LIB_REGEX="" |
| 5888 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5889 | LIB_REGEX="regex.o" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5890 | fi |
| 5891 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5892 | if test "${enable_snmp}" = "yes";then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5893 | if test "${HAVE_SNMP}" = ""; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5894 | old_libs="${LIBS}" |
| 5895 | LIBS="-L/usr/lib" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5896 | unset ac_cv_lib_snmp_asn_parse_int |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5897 | echo "$as_me:5897: checking for main in -lcrypto" >&5 |
| 5898 | echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6 |
| 5899 | if test "${ac_cv_lib_crypto_main+set}" = set; then |
| 5900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5901 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5902 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5903 | LIBS="-lcrypto $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5904 | cat >conftest.$ac_ext <<_ACEOF |
| 5905 | #line 5905 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5906 | #include "confdefs.h" |
| 5907 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5908 | #ifdef F77_DUMMY_MAIN |
| 5909 | # ifdef __cplusplus |
| 5910 | extern "C" |
| 5911 | # endif |
| 5912 | int F77_DUMMY_MAIN() { return 1; } |
| 5913 | #endif |
| 5914 | int |
| 5915 | main () |
| 5916 | { |
| 5917 | main (); |
| 5918 | ; |
| 5919 | return 0; |
| 5920 | } |
| 5921 | _ACEOF |
| 5922 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5923 | if { (eval echo "$as_me:5923: \"$ac_link\"") >&5 |
| 5924 | (eval $ac_link) 2>&5 |
| 5925 | ac_status=$? |
| 5926 | echo "$as_me:5926: \$? = $ac_status" >&5 |
| 5927 | (exit $ac_status); } && |
| 5928 | { ac_try='test -s conftest$ac_exeext' |
| 5929 | { (eval echo "$as_me:5929: \"$ac_try\"") >&5 |
| 5930 | (eval $ac_try) 2>&5 |
| 5931 | ac_status=$? |
| 5932 | echo "$as_me:5932: \$? = $ac_status" >&5 |
| 5933 | (exit $ac_status); }; }; then |
| 5934 | ac_cv_lib_crypto_main=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5935 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5936 | echo "$as_me: failed program was:" >&5 |
| 5937 | cat conftest.$ac_ext >&5 |
| 5938 | ac_cv_lib_crypto_main=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5939 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5940 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5941 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5942 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5943 | echo "$as_me:5943: result: $ac_cv_lib_crypto_main" >&5 |
| 5944 | echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6 |
| 5945 | if test $ac_cv_lib_crypto_main = yes; then |
| 5946 | NEED_CRYPTO=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5947 | fi |
| 5948 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5949 | if test "${NEED_CRYPTO}" = ""; then |
| 5950 | echo "$as_me:5950: checking for asn_parse_int in -lnetsnmp" >&5 |
| 5951 | echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6 |
| 5952 | if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then |
| 5953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5954 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5955 | ac_check_lib_save_LIBS=$LIBS |
| 5956 | LIBS="-lnetsnmp $LIBS" |
| 5957 | cat >conftest.$ac_ext <<_ACEOF |
| 5958 | #line 5958 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5959 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5960 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5961 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5962 | #ifdef __cplusplus |
| 5963 | extern "C" |
| 5964 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5965 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5966 | builtin and then its argument prototype would still apply. */ |
| 5967 | char asn_parse_int (); |
| 5968 | #ifdef F77_DUMMY_MAIN |
| 5969 | # ifdef __cplusplus |
| 5970 | extern "C" |
| 5971 | # endif |
| 5972 | int F77_DUMMY_MAIN() { return 1; } |
| 5973 | #endif |
| 5974 | int |
| 5975 | main () |
| 5976 | { |
| 5977 | asn_parse_int (); |
| 5978 | ; |
| 5979 | return 0; |
| 5980 | } |
| 5981 | _ACEOF |
| 5982 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5983 | if { (eval echo "$as_me:5983: \"$ac_link\"") >&5 |
| 5984 | (eval $ac_link) 2>&5 |
| 5985 | ac_status=$? |
| 5986 | echo "$as_me:5986: \$? = $ac_status" >&5 |
| 5987 | (exit $ac_status); } && |
| 5988 | { ac_try='test -s conftest$ac_exeext' |
| 5989 | { (eval echo "$as_me:5989: \"$ac_try\"") >&5 |
| 5990 | (eval $ac_try) 2>&5 |
| 5991 | ac_status=$? |
| 5992 | echo "$as_me:5992: \$? = $ac_status" >&5 |
| 5993 | (exit $ac_status); }; }; then |
| 5994 | ac_cv_lib_netsnmp_asn_parse_int=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5995 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 5996 | echo "$as_me: failed program was:" >&5 |
| 5997 | cat conftest.$ac_ext >&5 |
| 5998 | ac_cv_lib_netsnmp_asn_parse_int=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 5999 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6000 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6001 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6002 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6003 | echo "$as_me:6003: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5 |
| 6004 | echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6 |
| 6005 | if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then |
| 6006 | HAVE_NETSNMP=yes; HAVE_SNMP=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6007 | fi |
| 6008 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6009 | else |
| 6010 | echo "$as_me:6010: checking for asn_parse_int in -lnetsnmp" >&5 |
| 6011 | echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6 |
| 6012 | if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then |
| 6013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6014 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6015 | ac_check_lib_save_LIBS=$LIBS |
| 6016 | LIBS="-lnetsnmp "-lcrypto" $LIBS" |
| 6017 | cat >conftest.$ac_ext <<_ACEOF |
| 6018 | #line 6018 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6019 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6020 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6021 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6022 | #ifdef __cplusplus |
| 6023 | extern "C" |
| 6024 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6025 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6026 | builtin and then its argument prototype would still apply. */ |
| 6027 | char asn_parse_int (); |
| 6028 | #ifdef F77_DUMMY_MAIN |
| 6029 | # ifdef __cplusplus |
| 6030 | extern "C" |
| 6031 | # endif |
| 6032 | int F77_DUMMY_MAIN() { return 1; } |
| 6033 | #endif |
| 6034 | int |
| 6035 | main () |
| 6036 | { |
| 6037 | asn_parse_int (); |
| 6038 | ; |
| 6039 | return 0; |
| 6040 | } |
| 6041 | _ACEOF |
| 6042 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6043 | if { (eval echo "$as_me:6043: \"$ac_link\"") >&5 |
| 6044 | (eval $ac_link) 2>&5 |
| 6045 | ac_status=$? |
| 6046 | echo "$as_me:6046: \$? = $ac_status" >&5 |
| 6047 | (exit $ac_status); } && |
| 6048 | { ac_try='test -s conftest$ac_exeext' |
| 6049 | { (eval echo "$as_me:6049: \"$ac_try\"") >&5 |
| 6050 | (eval $ac_try) 2>&5 |
| 6051 | ac_status=$? |
| 6052 | echo "$as_me:6052: \$? = $ac_status" >&5 |
| 6053 | (exit $ac_status); }; }; then |
| 6054 | ac_cv_lib_netsnmp_asn_parse_int=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6055 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6056 | echo "$as_me: failed program was:" >&5 |
| 6057 | cat conftest.$ac_ext >&5 |
| 6058 | ac_cv_lib_netsnmp_asn_parse_int=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6059 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6060 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6061 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6062 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6063 | echo "$as_me:6063: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5 |
| 6064 | echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6 |
| 6065 | if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then |
| 6066 | HAVE_NETSNMP=yes; HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6067 | fi |
| 6068 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6069 | fi |
| 6070 | LIBS="${old_libs}" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6071 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6072 | if test "${HAVE_SNMP}" = ""; then |
| 6073 | old_libs="${LIBS}" |
| 6074 | LIBS="-L/usr/lib" |
| 6075 | unset ac_cv_lib_snmp_asn_parse_int |
| 6076 | echo "$as_me:6076: checking for asn_parse_int in -lsnmp" >&5 |
| 6077 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6078 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6080 | else |
| 6081 | ac_check_lib_save_LIBS=$LIBS |
| 6082 | LIBS="-lsnmp $LIBS" |
| 6083 | cat >conftest.$ac_ext <<_ACEOF |
| 6084 | #line 6084 "configure" |
| 6085 | #include "confdefs.h" |
| 6086 | |
| 6087 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6088 | #ifdef __cplusplus |
| 6089 | extern "C" |
| 6090 | #endif |
| 6091 | /* We use char because int might match the return type of a gcc2 |
| 6092 | builtin and then its argument prototype would still apply. */ |
| 6093 | char asn_parse_int (); |
| 6094 | #ifdef F77_DUMMY_MAIN |
| 6095 | # ifdef __cplusplus |
| 6096 | extern "C" |
| 6097 | # endif |
| 6098 | int F77_DUMMY_MAIN() { return 1; } |
| 6099 | #endif |
| 6100 | int |
| 6101 | main () |
| 6102 | { |
| 6103 | asn_parse_int (); |
| 6104 | ; |
| 6105 | return 0; |
| 6106 | } |
| 6107 | _ACEOF |
| 6108 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6109 | if { (eval echo "$as_me:6109: \"$ac_link\"") >&5 |
| 6110 | (eval $ac_link) 2>&5 |
| 6111 | ac_status=$? |
| 6112 | echo "$as_me:6112: \$? = $ac_status" >&5 |
| 6113 | (exit $ac_status); } && |
| 6114 | { ac_try='test -s conftest$ac_exeext' |
| 6115 | { (eval echo "$as_me:6115: \"$ac_try\"") >&5 |
| 6116 | (eval $ac_try) 2>&5 |
| 6117 | ac_status=$? |
| 6118 | echo "$as_me:6118: \$? = $ac_status" >&5 |
| 6119 | (exit $ac_status); }; }; then |
| 6120 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6121 | else |
| 6122 | echo "$as_me: failed program was:" >&5 |
| 6123 | cat conftest.$ac_ext >&5 |
| 6124 | ac_cv_lib_snmp_asn_parse_int=no |
| 6125 | fi |
| 6126 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6127 | LIBS=$ac_check_lib_save_LIBS |
| 6128 | fi |
| 6129 | echo "$as_me:6129: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6130 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6131 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6132 | HAVE_SNMP=yes |
| 6133 | fi |
| 6134 | |
| 6135 | if test "${HAVE_SNMP}" = ""; then |
| 6136 | unset ac_cv_lib_snmp_asn_parse_int |
| 6137 | echo "$as_me:6137: checking for main in -lcrypto" >&5 |
| 6138 | echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6 |
| 6139 | if test "${ac_cv_lib_crypto_main+set}" = set; then |
| 6140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6141 | else |
| 6142 | ac_check_lib_save_LIBS=$LIBS |
| 6143 | LIBS="-lcrypto $LIBS" |
| 6144 | cat >conftest.$ac_ext <<_ACEOF |
| 6145 | #line 6145 "configure" |
| 6146 | #include "confdefs.h" |
| 6147 | |
| 6148 | #ifdef F77_DUMMY_MAIN |
| 6149 | # ifdef __cplusplus |
| 6150 | extern "C" |
| 6151 | # endif |
| 6152 | int F77_DUMMY_MAIN() { return 1; } |
| 6153 | #endif |
| 6154 | int |
| 6155 | main () |
| 6156 | { |
| 6157 | main (); |
| 6158 | ; |
| 6159 | return 0; |
| 6160 | } |
| 6161 | _ACEOF |
| 6162 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6163 | if { (eval echo "$as_me:6163: \"$ac_link\"") >&5 |
| 6164 | (eval $ac_link) 2>&5 |
| 6165 | ac_status=$? |
| 6166 | echo "$as_me:6166: \$? = $ac_status" >&5 |
| 6167 | (exit $ac_status); } && |
| 6168 | { ac_try='test -s conftest$ac_exeext' |
| 6169 | { (eval echo "$as_me:6169: \"$ac_try\"") >&5 |
| 6170 | (eval $ac_try) 2>&5 |
| 6171 | ac_status=$? |
| 6172 | echo "$as_me:6172: \$? = $ac_status" >&5 |
| 6173 | (exit $ac_status); }; }; then |
| 6174 | ac_cv_lib_crypto_main=yes |
| 6175 | else |
| 6176 | echo "$as_me: failed program was:" >&5 |
| 6177 | cat conftest.$ac_ext >&5 |
| 6178 | ac_cv_lib_crypto_main=no |
| 6179 | fi |
| 6180 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6181 | LIBS=$ac_check_lib_save_LIBS |
| 6182 | fi |
| 6183 | echo "$as_me:6183: result: $ac_cv_lib_crypto_main" >&5 |
| 6184 | echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6 |
| 6185 | if test $ac_cv_lib_crypto_main = yes; then |
| 6186 | NEED_CRYPTO=yes |
| 6187 | fi |
| 6188 | |
| 6189 | if test "${NEED_CRYPTO}" = "yes"; then |
| 6190 | echo "$as_me:6190: checking for asn_parse_int in -lsnmp" >&5 |
| 6191 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6192 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6194 | else |
| 6195 | ac_check_lib_save_LIBS=$LIBS |
| 6196 | LIBS="-lsnmp "-lcrypto" $LIBS" |
| 6197 | cat >conftest.$ac_ext <<_ACEOF |
| 6198 | #line 6198 "configure" |
| 6199 | #include "confdefs.h" |
| 6200 | |
| 6201 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6202 | #ifdef __cplusplus |
| 6203 | extern "C" |
| 6204 | #endif |
| 6205 | /* We use char because int might match the return type of a gcc2 |
| 6206 | builtin and then its argument prototype would still apply. */ |
| 6207 | char asn_parse_int (); |
| 6208 | #ifdef F77_DUMMY_MAIN |
| 6209 | # ifdef __cplusplus |
| 6210 | extern "C" |
| 6211 | # endif |
| 6212 | int F77_DUMMY_MAIN() { return 1; } |
| 6213 | #endif |
| 6214 | int |
| 6215 | main () |
| 6216 | { |
| 6217 | asn_parse_int (); |
| 6218 | ; |
| 6219 | return 0; |
| 6220 | } |
| 6221 | _ACEOF |
| 6222 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6223 | if { (eval echo "$as_me:6223: \"$ac_link\"") >&5 |
| 6224 | (eval $ac_link) 2>&5 |
| 6225 | ac_status=$? |
| 6226 | echo "$as_me:6226: \$? = $ac_status" >&5 |
| 6227 | (exit $ac_status); } && |
| 6228 | { ac_try='test -s conftest$ac_exeext' |
| 6229 | { (eval echo "$as_me:6229: \"$ac_try\"") >&5 |
| 6230 | (eval $ac_try) 2>&5 |
| 6231 | ac_status=$? |
| 6232 | echo "$as_me:6232: \$? = $ac_status" >&5 |
| 6233 | (exit $ac_status); }; }; then |
| 6234 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6235 | else |
| 6236 | echo "$as_me: failed program was:" >&5 |
| 6237 | cat conftest.$ac_ext >&5 |
| 6238 | ac_cv_lib_snmp_asn_parse_int=no |
| 6239 | fi |
| 6240 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6241 | LIBS=$ac_check_lib_save_LIBS |
| 6242 | fi |
| 6243 | echo "$as_me:6243: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6244 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6245 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6246 | HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto" |
| 6247 | fi |
| 6248 | |
| 6249 | fi |
| 6250 | fi |
| 6251 | LIBS="${old_libs}" |
| 6252 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6253 | |
| 6254 | if test "${HAVE_SNMP}" = ""; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6255 | old_libs="${LIBS}" |
| 6256 | LIBS="-L/usr/local/lib" |
| 6257 | unset ac_cv_lib_snmp_asn_parse_int |
| 6258 | echo "$as_me:6258: checking for asn_parse_int in -lsnmp" >&5 |
| 6259 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6260 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6262 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6263 | ac_check_lib_save_LIBS=$LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6264 | LIBS="-lsnmp $LIBS" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6265 | cat >conftest.$ac_ext <<_ACEOF |
| 6266 | #line 6266 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6267 | #include "confdefs.h" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6268 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6269 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6270 | #ifdef __cplusplus |
| 6271 | extern "C" |
| 6272 | #endif |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6273 | /* We use char because int might match the return type of a gcc2 |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6274 | builtin and then its argument prototype would still apply. */ |
| 6275 | char asn_parse_int (); |
| 6276 | #ifdef F77_DUMMY_MAIN |
| 6277 | # ifdef __cplusplus |
| 6278 | extern "C" |
| 6279 | # endif |
| 6280 | int F77_DUMMY_MAIN() { return 1; } |
| 6281 | #endif |
| 6282 | int |
| 6283 | main () |
| 6284 | { |
| 6285 | asn_parse_int (); |
| 6286 | ; |
| 6287 | return 0; |
| 6288 | } |
| 6289 | _ACEOF |
| 6290 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6291 | if { (eval echo "$as_me:6291: \"$ac_link\"") >&5 |
| 6292 | (eval $ac_link) 2>&5 |
| 6293 | ac_status=$? |
| 6294 | echo "$as_me:6294: \$? = $ac_status" >&5 |
| 6295 | (exit $ac_status); } && |
| 6296 | { ac_try='test -s conftest$ac_exeext' |
| 6297 | { (eval echo "$as_me:6297: \"$ac_try\"") >&5 |
| 6298 | (eval $ac_try) 2>&5 |
| 6299 | ac_status=$? |
| 6300 | echo "$as_me:6300: \$? = $ac_status" >&5 |
| 6301 | (exit $ac_status); }; }; then |
| 6302 | ac_cv_lib_snmp_asn_parse_int=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6303 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6304 | echo "$as_me: failed program was:" >&5 |
| 6305 | cat conftest.$ac_ext >&5 |
| 6306 | ac_cv_lib_snmp_asn_parse_int=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6307 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6308 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6309 | LIBS=$ac_check_lib_save_LIBS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6310 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6311 | echo "$as_me:6311: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6312 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6313 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6314 | HAVE_SNMP=yes |
| 6315 | fi |
| 6316 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6317 | if test "${HAVE_SNMP}" = ""; then |
| 6318 | unset ac_cv_lib_snmp_asn_parse_int |
| 6319 | echo "$as_me:6319: checking for main in -lcrypto" >&5 |
| 6320 | echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6 |
| 6321 | if test "${ac_cv_lib_crypto_main+set}" = set; then |
| 6322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6323 | else |
| 6324 | ac_check_lib_save_LIBS=$LIBS |
| 6325 | LIBS="-lcrypto $LIBS" |
| 6326 | cat >conftest.$ac_ext <<_ACEOF |
| 6327 | #line 6327 "configure" |
| 6328 | #include "confdefs.h" |
| 6329 | |
| 6330 | #ifdef F77_DUMMY_MAIN |
| 6331 | # ifdef __cplusplus |
| 6332 | extern "C" |
| 6333 | # endif |
| 6334 | int F77_DUMMY_MAIN() { return 1; } |
| 6335 | #endif |
| 6336 | int |
| 6337 | main () |
| 6338 | { |
| 6339 | main (); |
| 6340 | ; |
| 6341 | return 0; |
| 6342 | } |
| 6343 | _ACEOF |
| 6344 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6345 | if { (eval echo "$as_me:6345: \"$ac_link\"") >&5 |
| 6346 | (eval $ac_link) 2>&5 |
| 6347 | ac_status=$? |
| 6348 | echo "$as_me:6348: \$? = $ac_status" >&5 |
| 6349 | (exit $ac_status); } && |
| 6350 | { ac_try='test -s conftest$ac_exeext' |
| 6351 | { (eval echo "$as_me:6351: \"$ac_try\"") >&5 |
| 6352 | (eval $ac_try) 2>&5 |
| 6353 | ac_status=$? |
| 6354 | echo "$as_me:6354: \$? = $ac_status" >&5 |
| 6355 | (exit $ac_status); }; }; then |
| 6356 | ac_cv_lib_crypto_main=yes |
| 6357 | else |
| 6358 | echo "$as_me: failed program was:" >&5 |
| 6359 | cat conftest.$ac_ext >&5 |
| 6360 | ac_cv_lib_crypto_main=no |
| 6361 | fi |
| 6362 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6363 | LIBS=$ac_check_lib_save_LIBS |
| 6364 | fi |
| 6365 | echo "$as_me:6365: result: $ac_cv_lib_crypto_main" >&5 |
| 6366 | echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6 |
| 6367 | if test $ac_cv_lib_crypto_main = yes; then |
| 6368 | NEED_CRYPTO=yes |
| 6369 | fi |
| 6370 | |
| 6371 | if test "${NEED_CRYPTO}" = "yes"; then |
| 6372 | echo "$as_me:6372: checking for asn_parse_int in -lsnmp" >&5 |
| 6373 | echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6 |
| 6374 | if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then |
| 6375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6376 | else |
| 6377 | ac_check_lib_save_LIBS=$LIBS |
| 6378 | LIBS="-lsnmp "-lcrypto" $LIBS" |
| 6379 | cat >conftest.$ac_ext <<_ACEOF |
| 6380 | #line 6380 "configure" |
| 6381 | #include "confdefs.h" |
| 6382 | |
| 6383 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6384 | #ifdef __cplusplus |
| 6385 | extern "C" |
| 6386 | #endif |
| 6387 | /* We use char because int might match the return type of a gcc2 |
| 6388 | builtin and then its argument prototype would still apply. */ |
| 6389 | char asn_parse_int (); |
| 6390 | #ifdef F77_DUMMY_MAIN |
| 6391 | # ifdef __cplusplus |
| 6392 | extern "C" |
| 6393 | # endif |
| 6394 | int F77_DUMMY_MAIN() { return 1; } |
| 6395 | #endif |
| 6396 | int |
| 6397 | main () |
| 6398 | { |
| 6399 | asn_parse_int (); |
| 6400 | ; |
| 6401 | return 0; |
| 6402 | } |
| 6403 | _ACEOF |
| 6404 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6405 | if { (eval echo "$as_me:6405: \"$ac_link\"") >&5 |
| 6406 | (eval $ac_link) 2>&5 |
| 6407 | ac_status=$? |
| 6408 | echo "$as_me:6408: \$? = $ac_status" >&5 |
| 6409 | (exit $ac_status); } && |
| 6410 | { ac_try='test -s conftest$ac_exeext' |
| 6411 | { (eval echo "$as_me:6411: \"$ac_try\"") >&5 |
| 6412 | (eval $ac_try) 2>&5 |
| 6413 | ac_status=$? |
| 6414 | echo "$as_me:6414: \$? = $ac_status" >&5 |
| 6415 | (exit $ac_status); }; }; then |
| 6416 | ac_cv_lib_snmp_asn_parse_int=yes |
| 6417 | else |
| 6418 | echo "$as_me: failed program was:" >&5 |
| 6419 | cat conftest.$ac_ext >&5 |
| 6420 | ac_cv_lib_snmp_asn_parse_int=no |
| 6421 | fi |
| 6422 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6423 | LIBS=$ac_check_lib_save_LIBS |
| 6424 | fi |
| 6425 | echo "$as_me:6425: result: $ac_cv_lib_snmp_asn_parse_int" >&5 |
| 6426 | echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6 |
| 6427 | if test $ac_cv_lib_snmp_asn_parse_int = yes; then |
| 6428 | HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto" |
| 6429 | fi |
| 6430 | |
| 6431 | fi |
| 6432 | fi |
| 6433 | LIBS="${old_libs}" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6434 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6435 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6436 | if test "${HAVE_SNMP}" = "yes"; then |
paul | 569c0f0 | 2003-03-02 21:19:26 +0000 | [diff] [blame] | 6437 | 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] | 6438 | do |
| 6439 | test -f "${ac_snmp}" && break |
| 6440 | done |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6441 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6442 | case ${ac_snmp} in |
paul | 569c0f0 | 2003-03-02 21:19:26 +0000 | [diff] [blame] | 6443 | /usr/include/net-snmp/*) |
| 6444 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6445 | cat >>confdefs.h <<\_ACEOF |
| 6446 | #define HAVE_SNMP |
| 6447 | _ACEOF |
paul | 569c0f0 | 2003-03-02 21:19:26 +0000 | [diff] [blame] | 6448 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6449 | cat >>confdefs.h <<\_ACEOF |
| 6450 | #define HAVE_NETSNMP |
| 6451 | _ACEOF |
| 6452 | |
| 6453 | cat >>confdefs.h <<\_ACEOF |
| 6454 | #define UCD_COMPATIBLE |
| 6455 | _ACEOF |
| 6456 | |
| 6457 | CFLAGS="${CFLAGS} -I/usr/include/net-snmp -I/usr/include/net-snmp/library" |
| 6458 | if test "${HAVE_NETSNMP}" = "yes"; then |
| 6459 | LIBS="${LIBS} -lnetsnmp" |
| 6460 | else |
| 6461 | LIBS="${LIBS} -lsnmp" |
| 6462 | fi |
paul | 569c0f0 | 2003-03-02 21:19:26 +0000 | [diff] [blame] | 6463 | ;; |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6464 | /usr/include/ucd-snmp/*) |
| 6465 | |
| 6466 | cat >>confdefs.h <<\_ACEOF |
| 6467 | #define HAVE_SNMP |
| 6468 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6469 | |
| 6470 | CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp" |
| 6471 | LIBS="${LIBS} -lsnmp" |
| 6472 | ;; |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6473 | /usr/local/include/ucd-snmp/*) |
| 6474 | |
| 6475 | cat >>confdefs.h <<\_ACEOF |
| 6476 | #define HAVE_SNMP |
| 6477 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6478 | |
| 6479 | CFLAGS="${CFLAGS} -I/usr/local/include/ucd-snmp" |
| 6480 | LIBS="${LIBS} -L/usr/local/lib -lsnmp" |
| 6481 | ;; |
| 6482 | esac |
| 6483 | if test "${NEED_CRYPTO}" = "yes"; then |
| 6484 | LIBS="${LIBS} -lcrypto" |
| 6485 | fi |
| 6486 | fi |
| 6487 | fi |
| 6488 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6489 | echo "$as_me:6489: checking whether struct sockaddr has a sa_len field" >&5 |
| 6490 | echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6 |
| 6491 | cat >conftest.$ac_ext <<_ACEOF |
| 6492 | #line 6492 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6493 | #include "confdefs.h" |
| 6494 | #include <sys/types.h> |
| 6495 | #include <sys/socket.h> |
| 6496 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6497 | #ifdef F77_DUMMY_MAIN |
| 6498 | # ifdef __cplusplus |
| 6499 | extern "C" |
| 6500 | # endif |
| 6501 | int F77_DUMMY_MAIN() { return 1; } |
| 6502 | #endif |
| 6503 | int |
| 6504 | main () |
| 6505 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6506 | static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len); |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6507 | ; |
| 6508 | return 0; |
| 6509 | } |
| 6510 | _ACEOF |
| 6511 | rm -f conftest.$ac_objext |
| 6512 | if { (eval echo "$as_me:6512: \"$ac_compile\"") >&5 |
| 6513 | (eval $ac_compile) 2>&5 |
| 6514 | ac_status=$? |
| 6515 | echo "$as_me:6515: \$? = $ac_status" >&5 |
| 6516 | (exit $ac_status); } && |
| 6517 | { ac_try='test -s conftest.$ac_objext' |
| 6518 | { (eval echo "$as_me:6518: \"$ac_try\"") >&5 |
| 6519 | (eval $ac_try) 2>&5 |
| 6520 | ac_status=$? |
| 6521 | echo "$as_me:6521: \$? = $ac_status" >&5 |
| 6522 | (exit $ac_status); }; }; then |
| 6523 | echo "$as_me:6523: result: yes" >&5 |
| 6524 | echo "${ECHO_T}yes" >&6 |
| 6525 | |
| 6526 | cat >>confdefs.h <<\_ACEOF |
| 6527 | #define HAVE_SA_LEN |
| 6528 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6529 | |
| 6530 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6531 | echo "$as_me: failed program was:" >&5 |
| 6532 | cat conftest.$ac_ext >&5 |
| 6533 | echo "$as_me:6533: result: no" >&5 |
| 6534 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6535 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6536 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6537 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6538 | echo "$as_me:6538: checking whether struct sockaddr_in has a sin_len field" >&5 |
| 6539 | echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6 |
| 6540 | cat >conftest.$ac_ext <<_ACEOF |
| 6541 | #line 6541 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6542 | #include "confdefs.h" |
| 6543 | #include <sys/types.h> |
| 6544 | #include <netinet/in.h> |
| 6545 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6546 | #ifdef F77_DUMMY_MAIN |
| 6547 | # ifdef __cplusplus |
| 6548 | extern "C" |
| 6549 | # endif |
| 6550 | int F77_DUMMY_MAIN() { return 1; } |
| 6551 | #endif |
| 6552 | int |
| 6553 | main () |
| 6554 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6555 | static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len); |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6556 | ; |
| 6557 | return 0; |
| 6558 | } |
| 6559 | _ACEOF |
| 6560 | rm -f conftest.$ac_objext |
| 6561 | if { (eval echo "$as_me:6561: \"$ac_compile\"") >&5 |
| 6562 | (eval $ac_compile) 2>&5 |
| 6563 | ac_status=$? |
| 6564 | echo "$as_me:6564: \$? = $ac_status" >&5 |
| 6565 | (exit $ac_status); } && |
| 6566 | { ac_try='test -s conftest.$ac_objext' |
| 6567 | { (eval echo "$as_me:6567: \"$ac_try\"") >&5 |
| 6568 | (eval $ac_try) 2>&5 |
| 6569 | ac_status=$? |
| 6570 | echo "$as_me:6570: \$? = $ac_status" >&5 |
| 6571 | (exit $ac_status); }; }; then |
| 6572 | echo "$as_me:6572: result: yes" >&5 |
| 6573 | echo "${ECHO_T}yes" >&6 |
| 6574 | |
| 6575 | cat >>confdefs.h <<\_ACEOF |
| 6576 | #define HAVE_SIN_LEN |
| 6577 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6578 | |
| 6579 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6580 | echo "$as_me: failed program was:" >&5 |
| 6581 | cat conftest.$ac_ext >&5 |
| 6582 | echo "$as_me:6582: result: no" >&5 |
| 6583 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6584 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6585 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6586 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6587 | echo "$as_me:6587: checking whether struct sockaddr_un has a sun_len field" >&5 |
| 6588 | echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6 |
| 6589 | cat >conftest.$ac_ext <<_ACEOF |
| 6590 | #line 6590 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6591 | #include "confdefs.h" |
| 6592 | #include <sys/types.h> |
| 6593 | #include <sys/un.h> |
| 6594 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6595 | #ifdef F77_DUMMY_MAIN |
| 6596 | # ifdef __cplusplus |
| 6597 | extern "C" |
| 6598 | # endif |
| 6599 | int F77_DUMMY_MAIN() { return 1; } |
| 6600 | #endif |
| 6601 | int |
| 6602 | main () |
| 6603 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6604 | static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len); |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6605 | ; |
| 6606 | return 0; |
| 6607 | } |
| 6608 | _ACEOF |
| 6609 | rm -f conftest.$ac_objext |
| 6610 | if { (eval echo "$as_me:6610: \"$ac_compile\"") >&5 |
| 6611 | (eval $ac_compile) 2>&5 |
| 6612 | ac_status=$? |
| 6613 | echo "$as_me:6613: \$? = $ac_status" >&5 |
| 6614 | (exit $ac_status); } && |
| 6615 | { ac_try='test -s conftest.$ac_objext' |
| 6616 | { (eval echo "$as_me:6616: \"$ac_try\"") >&5 |
| 6617 | (eval $ac_try) 2>&5 |
| 6618 | ac_status=$? |
| 6619 | echo "$as_me:6619: \$? = $ac_status" >&5 |
| 6620 | (exit $ac_status); }; }; then |
| 6621 | echo "$as_me:6621: result: yes" >&5 |
| 6622 | echo "${ECHO_T}yes" >&6 |
| 6623 | |
| 6624 | cat >>confdefs.h <<\_ACEOF |
| 6625 | #define HAVE_SUN_LEN |
| 6626 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6627 | |
| 6628 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6629 | echo "$as_me: failed program was:" >&5 |
| 6630 | cat conftest.$ac_ext >&5 |
| 6631 | echo "$as_me:6631: result: no" >&5 |
| 6632 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6633 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6634 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6635 | |
| 6636 | if test "$zebra_cv_ipv6" = yes; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6637 | echo "$as_me:6637: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5 |
| 6638 | echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6 |
| 6639 | cat >conftest.$ac_ext <<_ACEOF |
| 6640 | #line 6640 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6641 | #include "confdefs.h" |
| 6642 | #include <sys/types.h> |
| 6643 | #include <netinet/in.h> |
| 6644 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6645 | #ifdef F77_DUMMY_MAIN |
| 6646 | # ifdef __cplusplus |
| 6647 | extern "C" |
| 6648 | # endif |
| 6649 | int F77_DUMMY_MAIN() { return 1; } |
| 6650 | #endif |
| 6651 | int |
| 6652 | main () |
| 6653 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6654 | static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id); |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6655 | ; |
| 6656 | return 0; |
| 6657 | } |
| 6658 | _ACEOF |
| 6659 | rm -f conftest.$ac_objext |
| 6660 | if { (eval echo "$as_me:6660: \"$ac_compile\"") >&5 |
| 6661 | (eval $ac_compile) 2>&5 |
| 6662 | ac_status=$? |
| 6663 | echo "$as_me:6663: \$? = $ac_status" >&5 |
| 6664 | (exit $ac_status); } && |
| 6665 | { ac_try='test -s conftest.$ac_objext' |
| 6666 | { (eval echo "$as_me:6666: \"$ac_try\"") >&5 |
| 6667 | (eval $ac_try) 2>&5 |
| 6668 | ac_status=$? |
| 6669 | echo "$as_me:6669: \$? = $ac_status" >&5 |
| 6670 | (exit $ac_status); }; }; then |
| 6671 | echo "$as_me:6671: result: yes" >&5 |
| 6672 | echo "${ECHO_T}yes" >&6 |
| 6673 | |
| 6674 | cat >>confdefs.h <<\_ACEOF |
| 6675 | #define HAVE_SIN6_SCOPE_ID |
| 6676 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6677 | |
| 6678 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6679 | echo "$as_me: failed program was:" >&5 |
| 6680 | cat conftest.$ac_ext >&5 |
| 6681 | echo "$as_me:6681: result: no" >&5 |
| 6682 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6683 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6684 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6685 | fi |
| 6686 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6687 | echo "$as_me:6687: checking whther socklen_t is defined" >&5 |
| 6688 | echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6 |
| 6689 | cat >conftest.$ac_ext <<_ACEOF |
| 6690 | #line 6690 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6691 | #include "confdefs.h" |
| 6692 | #include <sys/types.h> |
| 6693 | #include <sys/socket.h> |
| 6694 | #include <netinet/in.h> |
| 6695 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6696 | #ifdef F77_DUMMY_MAIN |
| 6697 | # ifdef __cplusplus |
| 6698 | extern "C" |
| 6699 | # endif |
| 6700 | int F77_DUMMY_MAIN() { return 1; } |
| 6701 | #endif |
| 6702 | int |
| 6703 | main () |
| 6704 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6705 | socklen_t ac_x; |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6706 | ; |
| 6707 | return 0; |
| 6708 | } |
| 6709 | _ACEOF |
| 6710 | rm -f conftest.$ac_objext |
| 6711 | if { (eval echo "$as_me:6711: \"$ac_compile\"") >&5 |
| 6712 | (eval $ac_compile) 2>&5 |
| 6713 | ac_status=$? |
| 6714 | echo "$as_me:6714: \$? = $ac_status" >&5 |
| 6715 | (exit $ac_status); } && |
| 6716 | { ac_try='test -s conftest.$ac_objext' |
| 6717 | { (eval echo "$as_me:6717: \"$ac_try\"") >&5 |
| 6718 | (eval $ac_try) 2>&5 |
| 6719 | ac_status=$? |
| 6720 | echo "$as_me:6720: \$? = $ac_status" >&5 |
| 6721 | (exit $ac_status); }; }; then |
| 6722 | echo "$as_me:6722: result: yes" >&5 |
| 6723 | echo "${ECHO_T}yes" >&6 |
| 6724 | |
| 6725 | cat >>confdefs.h <<\_ACEOF |
| 6726 | #define HAVE_SOCKLEN_T |
| 6727 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6728 | |
| 6729 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6730 | echo "$as_me: failed program was:" >&5 |
| 6731 | cat conftest.$ac_ext >&5 |
| 6732 | echo "$as_me:6732: result: no" >&5 |
| 6733 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6734 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6735 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6736 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6737 | echo "$as_me:6737: checking whether struct sockaddr_dl exist" >&5 |
| 6738 | echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6 |
| 6739 | cat >conftest.$ac_ext <<_ACEOF |
| 6740 | #line 6740 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6741 | #include "confdefs.h" |
| 6742 | #include <net/if_dl.h> |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6743 | |
| 6744 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6745 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6746 | egrep "sockaddr_dl" >/dev/null 2>&1; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6747 | echo "$as_me:6747: result: yes" >&5 |
| 6748 | echo "${ECHO_T}yes" >&6 |
| 6749 | |
| 6750 | cat >>confdefs.h <<\_ACEOF |
| 6751 | #define HAVE_SOCKADDR_DL |
| 6752 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6753 | |
| 6754 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6755 | echo "$as_me:6755: result: no" >&5 |
| 6756 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6757 | fi |
| 6758 | rm -f conftest* |
| 6759 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6760 | echo "$as_me:6760: checking whether struct ifaliasreq exist" >&5 |
| 6761 | echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6 |
| 6762 | cat >conftest.$ac_ext <<_ACEOF |
| 6763 | #line 6763 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6764 | #include "confdefs.h" |
| 6765 | #include <net/if.h> |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6766 | |
| 6767 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6768 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6769 | egrep "ifaliasreq" >/dev/null 2>&1; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6770 | echo "$as_me:6770: result: yes" >&5 |
| 6771 | echo "${ECHO_T}yes" >&6 |
| 6772 | |
| 6773 | cat >>confdefs.h <<\_ACEOF |
| 6774 | #define HAVE_IFALIASREQ |
| 6775 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6776 | |
| 6777 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6778 | echo "$as_me:6778: result: no" >&5 |
| 6779 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6780 | fi |
| 6781 | rm -f conftest* |
| 6782 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6783 | echo "$as_me:6783: checking whether struct if6_aliasreq exist" >&5 |
| 6784 | echo $ECHO_N "checking whether struct if6_aliasreq exist... $ECHO_C" >&6 |
| 6785 | cat >conftest.$ac_ext <<_ACEOF |
| 6786 | #line 6786 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6787 | #include "confdefs.h" |
| 6788 | #include <netinet6/in6_var.h> |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6789 | |
| 6790 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6791 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6792 | egrep "in6_aliasreq" >/dev/null 2>&1; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6793 | echo "$as_me:6793: result: yes" >&5 |
| 6794 | echo "${ECHO_T}yes" >&6 |
| 6795 | |
| 6796 | cat >>confdefs.h <<\_ACEOF |
| 6797 | #define HAVE_IN6_ALIASREQ |
| 6798 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6799 | |
| 6800 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6801 | echo "$as_me:6801: result: no" >&5 |
| 6802 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6803 | fi |
| 6804 | rm -f conftest* |
| 6805 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6806 | echo "$as_me:6806: checking whether struct rt_addrinfo exist" >&5 |
| 6807 | echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6 |
| 6808 | cat >conftest.$ac_ext <<_ACEOF |
| 6809 | #line 6809 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6810 | #include "confdefs.h" |
| 6811 | #include <net/route.h> |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6812 | |
| 6813 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6815 | egrep "rt_addrinfo" >/dev/null 2>&1; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6816 | echo "$as_me:6816: result: yes" >&5 |
| 6817 | echo "${ECHO_T}yes" >&6 |
| 6818 | |
| 6819 | cat >>confdefs.h <<\_ACEOF |
| 6820 | #define HAVE_RT_ADDRINFO |
| 6821 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6822 | |
| 6823 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6824 | echo "$as_me:6824: result: no" >&5 |
| 6825 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6826 | fi |
| 6827 | rm -f conftest* |
| 6828 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6829 | echo "$as_me:6829: checking whether struct in_pktinfo exist" >&5 |
| 6830 | echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6 |
| 6831 | cat >conftest.$ac_ext <<_ACEOF |
| 6832 | #line 6832 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6833 | #include "confdefs.h" |
| 6834 | #include <netinet/in.h> |
| 6835 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6836 | #ifdef F77_DUMMY_MAIN |
| 6837 | # ifdef __cplusplus |
| 6838 | extern "C" |
| 6839 | # endif |
| 6840 | int F77_DUMMY_MAIN() { return 1; } |
| 6841 | #endif |
| 6842 | int |
| 6843 | main () |
| 6844 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6845 | struct in_pktinfo ac_x; |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6846 | ; |
| 6847 | return 0; |
| 6848 | } |
| 6849 | _ACEOF |
| 6850 | rm -f conftest.$ac_objext |
| 6851 | if { (eval echo "$as_me:6851: \"$ac_compile\"") >&5 |
| 6852 | (eval $ac_compile) 2>&5 |
| 6853 | ac_status=$? |
| 6854 | echo "$as_me:6854: \$? = $ac_status" >&5 |
| 6855 | (exit $ac_status); } && |
| 6856 | { ac_try='test -s conftest.$ac_objext' |
| 6857 | { (eval echo "$as_me:6857: \"$ac_try\"") >&5 |
| 6858 | (eval $ac_try) 2>&5 |
| 6859 | ac_status=$? |
| 6860 | echo "$as_me:6860: \$? = $ac_status" >&5 |
| 6861 | (exit $ac_status); }; }; then |
| 6862 | echo "$as_me:6862: result: yes" >&5 |
| 6863 | echo "${ECHO_T}yes" >&6 |
| 6864 | |
| 6865 | cat >>confdefs.h <<\_ACEOF |
| 6866 | #define HAVE_INPKTINFO |
| 6867 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6868 | |
| 6869 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6870 | echo "$as_me: failed program was:" >&5 |
| 6871 | cat conftest.$ac_ext >&5 |
| 6872 | echo "$as_me:6872: result: no" >&5 |
| 6873 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6874 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6875 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6876 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6877 | echo "$as_me:6877: checking whether getrusage is available" >&5 |
| 6878 | echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6 |
| 6879 | cat >conftest.$ac_ext <<_ACEOF |
| 6880 | #line 6880 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6881 | #include "confdefs.h" |
| 6882 | #include <sys/resource.h> |
| 6883 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6884 | #ifdef F77_DUMMY_MAIN |
| 6885 | # ifdef __cplusplus |
| 6886 | extern "C" |
| 6887 | # endif |
| 6888 | int F77_DUMMY_MAIN() { return 1; } |
| 6889 | #endif |
| 6890 | int |
| 6891 | main () |
| 6892 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6893 | struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x); |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6894 | ; |
| 6895 | return 0; |
| 6896 | } |
| 6897 | _ACEOF |
| 6898 | rm -f conftest.$ac_objext |
| 6899 | if { (eval echo "$as_me:6899: \"$ac_compile\"") >&5 |
| 6900 | (eval $ac_compile) 2>&5 |
| 6901 | ac_status=$? |
| 6902 | echo "$as_me:6902: \$? = $ac_status" >&5 |
| 6903 | (exit $ac_status); } && |
| 6904 | { ac_try='test -s conftest.$ac_objext' |
| 6905 | { (eval echo "$as_me:6905: \"$ac_try\"") >&5 |
| 6906 | (eval $ac_try) 2>&5 |
| 6907 | ac_status=$? |
| 6908 | echo "$as_me:6908: \$? = $ac_status" >&5 |
| 6909 | (exit $ac_status); }; }; then |
| 6910 | echo "$as_me:6910: result: yes" >&5 |
| 6911 | echo "${ECHO_T}yes" >&6 |
| 6912 | |
| 6913 | cat >>confdefs.h <<\_ACEOF |
| 6914 | #define HAVE_RUSAGE |
| 6915 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6916 | |
| 6917 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6918 | echo "$as_me: failed program was:" >&5 |
| 6919 | cat conftest.$ac_ext >&5 |
| 6920 | echo "$as_me:6920: result: no" >&5 |
| 6921 | echo "${ECHO_T}no" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6922 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6923 | rm -f conftest.$ac_objext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6924 | |
| 6925 | file="${srcdir}/lib/version.h" |
| 6926 | VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file` |
| 6927 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6928 | echo "$as_me:6928: checking pid file directory" >&5 |
| 6929 | echo $ECHO_N "checking pid file directory... $ECHO_C" >&6 |
| 6930 | if test "${ac_piddir+set}" = set; then |
| 6931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6932 | else |
| 6933 | for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null; |
| 6934 | do |
| 6935 | test -d $ZEBRA_PID_DIR && break |
| 6936 | done |
| 6937 | ac_piddir=$ZEBRA_PID_DIR |
| 6938 | if test $ZEBRA_PID_DIR = "/dev/null"; then |
| 6939 | echo "PID DIRECTORY NOT FOUND!" |
| 6940 | fi |
| 6941 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6942 | echo "$as_me:6942: result: $ac_piddir" >&5 |
| 6943 | echo "${ECHO_T}$ac_piddir" >&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 6944 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6945 | cat >>confdefs.h <<_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6946 | #define PATH_ZEBRA_PID "$ac_piddir/zebra.pid" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6947 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6948 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6949 | cat >>confdefs.h <<_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6950 | #define PATH_RIPD_PID "$ac_piddir/ripd.pid" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6951 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6952 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6953 | cat >>confdefs.h <<_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6954 | #define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6955 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6956 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6957 | cat >>confdefs.h <<_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6958 | #define PATH_BGPD_PID "$ac_piddir/bgpd.pid" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6959 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6960 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6961 | cat >>confdefs.h <<_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6962 | #define PATH_OSPFD_PID "$ac_piddir/ospfd.pid" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6963 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6964 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6965 | cat >>confdefs.h <<_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6966 | #define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid" |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6967 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6968 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6969 | echo "$as_me:6969: checking for working htonl" >&5 |
| 6970 | echo $ECHO_N "checking for working htonl... $ECHO_C" >&6 |
| 6971 | if test "${ac_cv_htonl_works+set}" = set; then |
| 6972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6973 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6974 | |
| 6975 | cat >conftest.$ac_ext <<_ACEOF |
| 6976 | #line 6976 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6977 | #include "confdefs.h" |
| 6978 | #ifdef HAVE_SYS_TYPES_H |
| 6979 | #include <sys/types.h> |
| 6980 | #endif |
| 6981 | #ifdef HAVE_NETDB_H |
| 6982 | #include <netdb.h> |
| 6983 | #endif |
| 6984 | #ifdef HAVE_NETINET_IN_H |
| 6985 | #include <netinet/in.h> |
| 6986 | #endif |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6987 | #ifdef F77_DUMMY_MAIN |
| 6988 | # ifdef __cplusplus |
| 6989 | extern "C" |
| 6990 | # endif |
| 6991 | int F77_DUMMY_MAIN() { return 1; } |
| 6992 | #endif |
| 6993 | int |
| 6994 | main () |
| 6995 | { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6996 | htonl (0); |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 6997 | ; |
| 6998 | return 0; |
| 6999 | } |
| 7000 | _ACEOF |
| 7001 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7002 | if { (eval echo "$as_me:7002: \"$ac_link\"") >&5 |
| 7003 | (eval $ac_link) 2>&5 |
| 7004 | ac_status=$? |
| 7005 | echo "$as_me:7005: \$? = $ac_status" >&5 |
| 7006 | (exit $ac_status); } && |
| 7007 | { ac_try='test -s conftest$ac_exeext' |
| 7008 | { (eval echo "$as_me:7008: \"$ac_try\"") >&5 |
| 7009 | (eval $ac_try) 2>&5 |
| 7010 | ac_status=$? |
| 7011 | echo "$as_me:7011: \$? = $ac_status" >&5 |
| 7012 | (exit $ac_status); }; }; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7013 | ac_cv_htonl_works=yes |
| 7014 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7015 | echo "$as_me: failed program was:" >&5 |
| 7016 | cat conftest.$ac_ext >&5 |
| 7017 | ac_cv_htonl_works=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7018 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7019 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7020 | fi |
| 7021 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7022 | echo "$as_me:7022: result: $ac_cv_htonl_works" >&5 |
| 7023 | echo "${ECHO_T}$ac_cv_htonl_works" >&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7024 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7025 | 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 ospfclient/Makefile" |
| 7026 | cat >confcache <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7027 | # This file is a shell script that caches the results of configure |
| 7028 | # tests run on this system so they can be shared between configure |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7029 | # scripts and configure runs, see configure's option --config-cache. |
| 7030 | # It is not useful on other systems. If it contains results you don't |
| 7031 | # want to keep, you may remove or edit it. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7032 | # |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7033 | # config.status only pays attention to the cache file if you give it |
| 7034 | # the --recheck option to rerun configure. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7035 | # |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7036 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 7037 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 7038 | # following values. |
| 7039 | |
| 7040 | _ACEOF |
| 7041 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7042 | # The following way of writing the cache mishandles newlines in values, |
| 7043 | # but we know of no workaround that is simple, portable, and efficient. |
| 7044 | # So, don't put newlines in cache variables' values. |
| 7045 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7046 | # and sets the high bit in the cache file unless we assign to the vars. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7047 | { |
| 7048 | (set) 2>&1 | |
| 7049 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 7050 | *ac_space=\ *) |
| 7051 | # `set' does not quote correctly, so add quotes (double-quote |
| 7052 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 7053 | sed -n \ |
| 7054 | "s/'/'\\\\''/g; |
| 7055 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 7056 | ;; |
| 7057 | *) |
| 7058 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7059 | sed -n \ |
| 7060 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 7061 | ;; |
| 7062 | esac; |
| 7063 | } | |
| 7064 | sed ' |
| 7065 | t clear |
| 7066 | : clear |
| 7067 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 7068 | t end |
| 7069 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7070 | : end' >>confcache |
| 7071 | if cmp -s $cache_file confcache; then :; else |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7072 | if test -w $cache_file; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7073 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 7074 | cat confcache >$cache_file |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7075 | else |
| 7076 | echo "not updating unwritable cache $cache_file" |
| 7077 | fi |
| 7078 | fi |
| 7079 | rm -f confcache |
| 7080 | |
| 7081 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7082 | # Let make expand exec_prefix. |
| 7083 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7084 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7085 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 7086 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 7087 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 7088 | # (actually we leave an empty line to preserve line numbers). |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7089 | if test "x$srcdir" = x.; then |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7090 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 7091 | s/:*\$(srcdir):*/:/; |
| 7092 | s/:*\${srcdir}:*/:/; |
| 7093 | s/:*@srcdir@:*/:/; |
| 7094 | s/^\([^=]*=[ ]*\):*/\1/; |
| 7095 | s/:*$//; |
| 7096 | s/^[^=]*=[ ]*$//; |
| 7097 | }' |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7098 | fi |
| 7099 | |
| 7100 | DEFS=-DHAVE_CONFIG_H |
| 7101 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7102 | : ${CONFIG_STATUS=./config.status} |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7103 | ac_clean_files_save=$ac_clean_files |
| 7104 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 7105 | { echo "$as_me:7105: creating $CONFIG_STATUS" >&5 |
| 7106 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 7107 | cat >$CONFIG_STATUS <<_ACEOF |
| 7108 | #! $SHELL |
| 7109 | # Generated automatically by $as_me. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7110 | # Run this file to recreate the current configuration. |
| 7111 | # Compiler output produced by configure, useful for debugging |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7112 | # configure, is in config.log if it exists. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7113 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7114 | debug=false |
| 7115 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 7116 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7117 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7118 | cat >>$CONFIG_STATUS <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7119 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7120 | ## --------------------- ## |
| 7121 | ## M4sh Initialization. ## |
| 7122 | ## --------------------- ## |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7123 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7124 | # Be Bourne compatible |
| 7125 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 7126 | emulate sh |
| 7127 | NULLCMD=: |
| 7128 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 7129 | set -o posix |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 7130 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 7131 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7132 | # Name of the executable. |
| 7133 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 7134 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7135 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 7136 | as_expr=expr |
| 7137 | else |
| 7138 | as_expr=false |
| 7139 | fi |
| 7140 | |
| 7141 | rm -f conf$$ conf$$.exe conf$$.file |
| 7142 | echo >conf$$.file |
| 7143 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 7144 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 7145 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 7146 | if test -f conf$$.exe; then |
| 7147 | # Don't use ln at all; we don't have any links |
| 7148 | as_ln_s='cp -p' |
| 7149 | else |
| 7150 | as_ln_s='ln -s' |
| 7151 | fi |
| 7152 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7153 | as_ln_s=ln |
| 7154 | else |
| 7155 | as_ln_s='cp -p' |
| 7156 | fi |
| 7157 | rm -f conf$$ conf$$.exe conf$$.file |
| 7158 | |
| 7159 | as_executable_p="test -f" |
| 7160 | |
| 7161 | # Support unset when possible. |
| 7162 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 7163 | as_unset=unset |
| 7164 | else |
| 7165 | as_unset=false |
| 7166 | fi |
| 7167 | |
| 7168 | # NLS nuisances. |
| 7169 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| 7170 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| 7171 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| 7172 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| 7173 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| 7174 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| 7175 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| 7176 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
| 7177 | |
| 7178 | # IFS |
| 7179 | # We need space, tab and new line, in precisely that order. |
| 7180 | as_nl=' |
| 7181 | ' |
| 7182 | IFS=" $as_nl" |
| 7183 | |
| 7184 | # CDPATH. |
| 7185 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
| 7186 | |
| 7187 | exec 6>&1 |
| 7188 | |
| 7189 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 7190 | # report actual input values of CONFIG_FILES etc. instead of their |
| 7191 | # values after options handling. Logging --version etc. is OK. |
| 7192 | exec 5>>config.log |
| 7193 | { |
| 7194 | echo |
| 7195 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 7196 | ## Running \$as_me. ## |
| 7197 | _ASBOX |
| 7198 | } >&5 |
| 7199 | cat >&5 <<_CSEOF |
| 7200 | |
| 7201 | This file was extended by $as_me, which was |
| 7202 | generated by GNU Autoconf 2.52d. Invocation command line was |
| 7203 | |
| 7204 | CONFIG_FILES = $CONFIG_FILES |
| 7205 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 7206 | CONFIG_LINKS = $CONFIG_LINKS |
| 7207 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 7208 | $ $@ |
| 7209 | |
| 7210 | _CSEOF |
| 7211 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 7212 | echo >&5 |
| 7213 | _ACEOF |
| 7214 | |
| 7215 | # Files that config.status was made for. |
| 7216 | if test -n "$ac_config_files"; then |
| 7217 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 7218 | fi |
| 7219 | |
| 7220 | if test -n "$ac_config_headers"; then |
| 7221 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 7222 | fi |
| 7223 | |
| 7224 | if test -n "$ac_config_links"; then |
| 7225 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 7226 | fi |
| 7227 | |
| 7228 | if test -n "$ac_config_commands"; then |
| 7229 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 7230 | fi |
| 7231 | |
| 7232 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7233 | |
| 7234 | ac_cs_usage="\ |
| 7235 | \`$as_me' instantiates files from templates according to the |
| 7236 | current configuration. |
| 7237 | |
| 7238 | Usage: $0 [OPTIONS] [FILE]... |
| 7239 | |
| 7240 | -h, --help print this help, then exit |
| 7241 | -V, --version print version number, then exit |
| 7242 | -d, --debug don't remove temporary files |
| 7243 | --recheck update $as_me by reconfiguring in the same conditions |
| 7244 | --file=FILE[:TEMPLATE] |
| 7245 | instantiate the configuration file FILE |
| 7246 | --header=FILE[:TEMPLATE] |
| 7247 | instantiate the configuration header FILE |
| 7248 | |
| 7249 | Configuration files: |
| 7250 | $config_files |
| 7251 | |
| 7252 | Configuration headers: |
| 7253 | $config_headers |
| 7254 | |
| 7255 | Configuration commands: |
| 7256 | $config_commands |
| 7257 | |
| 7258 | Report bugs to <bug-autoconf@gnu.org>." |
| 7259 | _ACEOF |
| 7260 | |
| 7261 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7262 | ac_cs_version="\\ |
| 7263 | config.status |
| 7264 | configured by $0, generated by GNU Autoconf 2.52d, |
| 7265 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 7266 | |
| 7267 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 7268 | Free Software Foundation, Inc. |
| 7269 | This config.status script is free software; the Free Software Foundation |
| 7270 | gives unlimited permission to copy, distribute and modify it." |
| 7271 | srcdir=$srcdir |
| 7272 | INSTALL="$INSTALL" |
| 7273 | _ACEOF |
| 7274 | |
| 7275 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7276 | # If no file are specified by the user, then we need to provide default |
| 7277 | # value. By we need to know if files were specified by the user. |
| 7278 | ac_need_defaults=: |
| 7279 | while test $# != 0 |
| 7280 | do |
| 7281 | case $1 in |
| 7282 | --*=*) |
| 7283 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 7284 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 7285 | shift |
| 7286 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 7287 | shift |
| 7288 | ;; |
| 7289 | -*);; |
| 7290 | *) # This is not an option, so the user has probably given explicit |
| 7291 | # arguments. |
| 7292 | ac_need_defaults=false;; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 7293 | esac |
| 7294 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7295 | case $1 in |
| 7296 | # Handling of the options. |
| 7297 | _ACEOF |
| 7298 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7299 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 7300 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 7301 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 7302 | _ACEOF |
| 7303 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7304 | --version | --vers* | -V ) |
| 7305 | echo "$ac_cs_version"; exit 0 ;; |
| 7306 | --he | --h) |
| 7307 | # Conflict between --help and --header |
| 7308 | { { echo "$as_me:7308: error: ambiguous option: $1 |
| 7309 | Try \`$0 --help' for more information." >&5 |
| 7310 | echo "$as_me: error: ambiguous option: $1 |
| 7311 | Try \`$0 --help' for more information." >&2;} |
| 7312 | { (exit 1); exit 1; }; };; |
| 7313 | --help | --hel | -h ) |
| 7314 | echo "$ac_cs_usage"; exit 0 ;; |
| 7315 | --debug | --d* | -d ) |
| 7316 | debug=: ;; |
| 7317 | --file | --fil | --fi | --f ) |
| 7318 | shift |
| 7319 | CONFIG_FILES="$CONFIG_FILES $1" |
| 7320 | ac_need_defaults=false;; |
| 7321 | --header | --heade | --head | --hea ) |
| 7322 | shift |
| 7323 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 7324 | ac_need_defaults=false;; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 7325 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7326 | # This is an error. |
| 7327 | -*) { { echo "$as_me:7327: error: unrecognized option: $1 |
| 7328 | Try \`$0 --help' for more information." >&5 |
| 7329 | echo "$as_me: error: unrecognized option: $1 |
| 7330 | Try \`$0 --help' for more information." >&2;} |
| 7331 | { (exit 1); exit 1; }; } ;; |
| 7332 | |
| 7333 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 7334 | |
| 7335 | esac |
| 7336 | shift |
| 7337 | done |
| 7338 | |
| 7339 | _ACEOF |
| 7340 | |
| 7341 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7342 | # |
| 7343 | # INIT-COMMANDS section. |
| 7344 | # |
| 7345 | |
| 7346 | AMDEP_TRUE="$AMDEP_TRUE" |
| 7347 | ac_aux_dir="$ac_aux_dir" |
| 7348 | |
| 7349 | _ACEOF |
| 7350 | |
| 7351 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7352 | for ac_config_target in $ac_config_targets |
| 7353 | do |
| 7354 | case "$ac_config_target" in |
| 7355 | # Handling of arguments. |
| 7356 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 7357 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 7358 | "zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;; |
| 7359 | "ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;; |
| 7360 | "ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;; |
| 7361 | "bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;; |
| 7362 | "ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;; |
| 7363 | "ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;; |
| 7364 | "vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;; |
| 7365 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 7366 | "ospfclient/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;; |
| 7367 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 7368 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 7369 | *) { { echo "$as_me:7369: error: invalid argument: $ac_config_target" >&5 |
| 7370 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 7371 | { (exit 1); exit 1; }; };; |
| 7372 | esac |
| 7373 | done |
| 7374 | |
| 7375 | # If the user did not use the arguments to specify the items to instantiate, |
| 7376 | # then the envvar interface is used. Set only those that are not. |
| 7377 | # We use the long form for the default assignment because of an extremely |
| 7378 | # bizarre bug on SunOS 4.1.3. |
| 7379 | if $ac_need_defaults; then |
| 7380 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 7381 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 7382 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 7383 | fi |
| 7384 | |
| 7385 | # Create a temporary directory, and hook for its removal unless debugging. |
| 7386 | $debug || |
| 7387 | { |
| 7388 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 7389 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 7390 | } |
| 7391 | |
| 7392 | # Create a (secure) tmp directory for tmp files. |
| 7393 | : ${TMPDIR=/tmp} |
| 7394 | { |
| 7395 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 7396 | test -n "$tmp" && test -d "$tmp" |
| 7397 | } || |
| 7398 | { |
| 7399 | tmp=$TMPDIR/cs$$-$RANDOM |
| 7400 | (umask 077 && mkdir $tmp) |
| 7401 | } || |
| 7402 | { |
| 7403 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 7404 | { (exit 1); exit 1; } |
| 7405 | } |
| 7406 | |
| 7407 | _ACEOF |
| 7408 | |
| 7409 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7410 | |
| 7411 | # |
| 7412 | # CONFIG_FILES section. |
| 7413 | # |
| 7414 | |
| 7415 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 7416 | # This happens for instance when ./config.status config.h |
| 7417 | if test -n "\$CONFIG_FILES"; then |
| 7418 | # Protect against being on the right side of a sed subst in config.status. |
| 7419 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 7420 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 7421 | s,@SHELL@,$SHELL,;t t |
| 7422 | s,@exec_prefix@,$exec_prefix,;t t |
| 7423 | s,@prefix@,$prefix,;t t |
| 7424 | s,@program_transform_name@,$program_transform_name,;t t |
| 7425 | s,@bindir@,$bindir,;t t |
| 7426 | s,@sbindir@,$sbindir,;t t |
| 7427 | s,@libexecdir@,$libexecdir,;t t |
| 7428 | s,@datadir@,$datadir,;t t |
| 7429 | s,@sysconfdir@,$sysconfdir,;t t |
| 7430 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 7431 | s,@localstatedir@,$localstatedir,;t t |
| 7432 | s,@libdir@,$libdir,;t t |
| 7433 | s,@includedir@,$includedir,;t t |
| 7434 | s,@oldincludedir@,$oldincludedir,;t t |
| 7435 | s,@infodir@,$infodir,;t t |
| 7436 | s,@mandir@,$mandir,;t t |
| 7437 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 7438 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 7439 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 7440 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 7441 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 7442 | s,@build_alias@,$build_alias,;t t |
| 7443 | s,@host_alias@,$host_alias,;t t |
| 7444 | s,@target_alias@,$target_alias,;t t |
| 7445 | s,@ECHO_C@,$ECHO_C,;t t |
| 7446 | s,@ECHO_N@,$ECHO_N,;t t |
| 7447 | s,@ECHO_T@,$ECHO_T,;t t |
| 7448 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 7449 | s,@DEFS@,$DEFS,;t t |
| 7450 | s,@LIBS@,$LIBS,;t t |
| 7451 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 7452 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 7453 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 7454 | s,@PACKAGE@,$PACKAGE,;t t |
| 7455 | s,@VERSION@,$VERSION,;t t |
| 7456 | s,@EXEEXT@,$EXEEXT,;t t |
| 7457 | s,@OBJEXT@,$OBJEXT,;t t |
| 7458 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 7459 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 7460 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 7461 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 7462 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 7463 | s,@AMTAR@,$AMTAR,;t t |
| 7464 | s,@install_sh@,$install_sh,;t t |
| 7465 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 7466 | s,@AWK@,$AWK,;t t |
| 7467 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 7468 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 7469 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 7470 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 7471 | s,@DEPDIR@,$DEPDIR,;t t |
| 7472 | s,@build@,$build,;t t |
| 7473 | s,@build_cpu@,$build_cpu,;t t |
| 7474 | s,@build_vendor@,$build_vendor,;t t |
| 7475 | s,@build_os@,$build_os,;t t |
| 7476 | s,@host@,$host,;t t |
| 7477 | s,@host_cpu@,$host_cpu,;t t |
| 7478 | s,@host_vendor@,$host_vendor,;t t |
| 7479 | s,@host_os@,$host_os,;t t |
| 7480 | s,@CC@,$CC,;t t |
| 7481 | s,@CFLAGS@,$CFLAGS,;t t |
| 7482 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 7483 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 7484 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 7485 | s,@am__include@,$am__include,;t t |
| 7486 | s,@am__quote@,$am__quote,;t t |
| 7487 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 7488 | s,@CPP@,$CPP,;t t |
| 7489 | s,@AR@,$AR,;t t |
| 7490 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 7491 | s,@RANLIB@,$RANLIB,;t t |
| 7492 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 7493 | s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t |
| 7494 | s,@LIBPAM@,$LIBPAM,;t t |
| 7495 | s,@RT_METHOD@,$RT_METHOD,;t t |
| 7496 | s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t |
| 7497 | s,@OTHER_METHOD@,$OTHER_METHOD,;t t |
| 7498 | s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t |
| 7499 | s,@IF_METHOD@,$IF_METHOD,;t t |
| 7500 | s,@IF_PROC@,$IF_PROC,;t t |
| 7501 | s,@IPFORWARD@,$IPFORWARD,;t t |
| 7502 | s,@LIB_IPV6@,$LIB_IPV6,;t t |
| 7503 | s,@ZEBRA@,$ZEBRA,;t t |
| 7504 | s,@BGPD@,$BGPD,;t t |
| 7505 | s,@RIPD@,$RIPD,;t t |
| 7506 | s,@RIPNGD@,$RIPNGD,;t t |
| 7507 | s,@OSPFD@,$OSPFD,;t t |
| 7508 | s,@OSPF6D@,$OSPF6D,;t t |
| 7509 | s,@VTYSH@,$VTYSH,;t t |
| 7510 | s,@INCLUDES@,$INCLUDES,;t t |
| 7511 | s,@CURSES@,$CURSES,;t t |
| 7512 | s,@OSPFCLIENT@,$OSPFCLIENT,;t t |
| 7513 | s,@OSPFAPI@,$OSPFAPI,;t t |
| 7514 | s,@LIB_REGEX@,$LIB_REGEX,;t t |
| 7515 | CEOF |
| 7516 | |
| 7517 | _ACEOF |
| 7518 | |
| 7519 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7520 | # Split the substitutions into bite-sized pieces for seds with |
| 7521 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 7522 | ac_max_sed_lines=48 |
| 7523 | ac_sed_frag=1 # Number of current file. |
| 7524 | ac_beg=1 # First line for current file. |
| 7525 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 7526 | ac_more_lines=: |
| 7527 | ac_sed_cmds= |
| 7528 | while $ac_more_lines; do |
| 7529 | if test $ac_beg -gt 1; then |
| 7530 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7531 | else |
| 7532 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7533 | fi |
| 7534 | if test ! -s $tmp/subs.frag; then |
| 7535 | ac_more_lines=false |
| 7536 | else |
| 7537 | # The purpose of the label and of the branching condition is to |
| 7538 | # speed up the sed processing (if there are no `@' at all, there |
| 7539 | # is no need to browse any of the substitutions). |
| 7540 | # These are the two extra sed commands mentioned above. |
| 7541 | (echo ':t |
| 7542 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 7543 | if test -z "$ac_sed_cmds"; then |
| 7544 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7545 | else |
| 7546 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7547 | fi |
| 7548 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 7549 | ac_beg=$ac_end |
| 7550 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 7551 | fi |
| 7552 | done |
| 7553 | if test -z "$ac_sed_cmds"; then |
| 7554 | ac_sed_cmds=cat |
| 7555 | fi |
| 7556 | fi # test -n "$CONFIG_FILES" |
| 7557 | |
| 7558 | _ACEOF |
| 7559 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7560 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 7561 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7562 | case $ac_file in |
| 7563 | - | *:- | *:-:* ) # input from stdin |
| 7564 | cat >$tmp/stdin |
| 7565 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7566 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7567 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7568 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7569 | * ) ac_file_in=$ac_file.in ;; |
| 7570 | esac |
| 7571 | |
| 7572 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 7573 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7574 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7575 | X"$ac_file" : 'X\(//\)$' \| \ |
| 7576 | X"$ac_file" : 'X\(/\)' \| \ |
| 7577 | . : '\(.\)' 2>/dev/null || |
| 7578 | echo X"$ac_file" | |
| 7579 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7580 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7581 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7582 | /^X\(\/\).*/{ s//\1/; q; } |
| 7583 | s/.*/./; q'` |
| 7584 | { case "$ac_dir" in |
| 7585 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 7586 | *) as_incr_dir=.;; |
| 7587 | esac |
| 7588 | as_dummy="$ac_dir" |
| 7589 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 7590 | case $as_mkdir_dir in |
| 7591 | # Skip DOS drivespec |
| 7592 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 7593 | *) |
| 7594 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 7595 | test -d "$as_incr_dir" || |
| 7596 | mkdir "$as_incr_dir" || |
| 7597 | { { echo "$as_me:7597: error: cannot create \"$ac_dir\"" >&5 |
| 7598 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 7599 | { (exit 1); exit 1; }; } |
| 7600 | ;; |
| 7601 | esac |
| 7602 | done; } |
| 7603 | |
| 7604 | if test "$ac_dir" != .; then |
| 7605 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'` |
| 7606 | # A "../" for each directory in $ac_dir_suffix. |
| 7607 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
| 7608 | else |
| 7609 | ac_dir_suffix= ac_top_builddir= |
| 7610 | fi |
| 7611 | |
| 7612 | case $srcdir in |
| 7613 | .) # No --srcdir option. We are building in place. |
| 7614 | ac_srcdir=. |
| 7615 | if test -z "$ac_top_builddir"; then |
| 7616 | ac_top_srcdir=. |
| 7617 | else |
| 7618 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 7619 | fi ;; |
| 7620 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 7621 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 7622 | ac_top_srcdir=$srcdir ;; |
| 7623 | *) # Relative path. |
| 7624 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 7625 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 7626 | esac |
| 7627 | |
| 7628 | case $INSTALL in |
| 7629 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 7630 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 7631 | esac |
| 7632 | |
| 7633 | if test x"$ac_file" != x-; then |
| 7634 | { echo "$as_me:7634: creating $ac_file" >&5 |
| 7635 | echo "$as_me: creating $ac_file" >&6;} |
| 7636 | rm -f "$ac_file" |
| 7637 | fi |
| 7638 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7639 | # use $as_me), people would be surprised to read: |
| 7640 | # /* config.h. Generated automatically by config.status. */ |
| 7641 | configure_input="Generated automatically from `echo $ac_file_in | |
| 7642 | sed 's,.*/,,'` by configure." |
| 7643 | |
| 7644 | # First look for the input files in the build tree, otherwise in the |
| 7645 | # src tree. |
| 7646 | ac_file_inputs=`IFS=: |
| 7647 | for f in $ac_file_in; do |
| 7648 | case $f in |
| 7649 | -) echo $tmp/stdin ;; |
| 7650 | [\\/$]*) |
| 7651 | # Absolute (can't be DOS-style, as IFS=:) |
| 7652 | test -f "$f" || { { echo "$as_me:7652: error: cannot find input file: $f" >&5 |
| 7653 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7654 | { (exit 1); exit 1; }; } |
| 7655 | echo $f;; |
| 7656 | *) # Relative |
| 7657 | if test -f "$f"; then |
| 7658 | # Build tree |
| 7659 | echo $f |
| 7660 | elif test -f "$srcdir/$f"; then |
| 7661 | # Source tree |
| 7662 | echo $srcdir/$f |
| 7663 | else |
| 7664 | # /dev/null tree |
| 7665 | { { echo "$as_me:7665: error: cannot find input file: $f" >&5 |
| 7666 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7667 | { (exit 1); exit 1; }; } |
| 7668 | fi;; |
| 7669 | esac |
| 7670 | done` || { (exit 1); exit 1; } |
| 7671 | _ACEOF |
| 7672 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7673 | sed "$ac_vpsub |
| 7674 | $extrasub |
| 7675 | _ACEOF |
| 7676 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7677 | :t |
| 7678 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 7679 | s,@configure_input@,$configure_input,;t t |
| 7680 | s,@srcdir@,$ac_srcdir,;t t |
| 7681 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 7682 | s,@INSTALL@,$ac_INSTALL,;t t |
| 7683 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 7684 | rm -f $tmp/stdin |
| 7685 | if test x"$ac_file" != x-; then |
| 7686 | mv $tmp/out $ac_file |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame] | 7687 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7688 | cat $tmp/out |
| 7689 | rm -f $tmp/out |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7690 | fi |
| 7691 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7692 | done |
| 7693 | _ACEOF |
| 7694 | cat >>$CONFIG_STATUS <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7695 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7696 | # |
| 7697 | # CONFIG_HEADER section. |
| 7698 | # |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7699 | |
| 7700 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7701 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 7702 | # |
| 7703 | # ac_d sets the value in "#define NAME VALUE" lines. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7704 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7705 | ac_dB='[ ].*$,\1#\2' |
| 7706 | ac_dC=' ' |
| 7707 | ac_dD=',;t' |
| 7708 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 7709 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7710 | ac_uB='$,\1#\2define\3' |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7711 | ac_uC=' ' |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7712 | ac_uD=',;t' |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7713 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7714 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7715 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7716 | case $ac_file in |
| 7717 | - | *:- | *:-:* ) # input from stdin |
| 7718 | cat >$tmp/stdin |
| 7719 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7720 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7721 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7722 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7723 | * ) ac_file_in=$ac_file.in ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7724 | esac |
| 7725 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7726 | test x"$ac_file" != x- && { echo "$as_me:7726: creating $ac_file" >&5 |
| 7727 | echo "$as_me: creating $ac_file" >&6;} |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7728 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7729 | # First look for the input files in the build tree, otherwise in the |
| 7730 | # src tree. |
| 7731 | ac_file_inputs=`IFS=: |
| 7732 | for f in $ac_file_in; do |
| 7733 | case $f in |
| 7734 | -) echo $tmp/stdin ;; |
| 7735 | [\\/$]*) |
| 7736 | # Absolute (can't be DOS-style, as IFS=:) |
| 7737 | test -f "$f" || { { echo "$as_me:7737: error: cannot find input file: $f" >&5 |
| 7738 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7739 | { (exit 1); exit 1; }; } |
| 7740 | echo $f;; |
| 7741 | *) # Relative |
| 7742 | if test -f "$f"; then |
| 7743 | # Build tree |
| 7744 | echo $f |
| 7745 | elif test -f "$srcdir/$f"; then |
| 7746 | # Source tree |
| 7747 | echo $srcdir/$f |
| 7748 | else |
| 7749 | # /dev/null tree |
| 7750 | { { echo "$as_me:7750: error: cannot find input file: $f" >&5 |
| 7751 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7752 | { (exit 1); exit 1; }; } |
| 7753 | fi;; |
| 7754 | esac |
| 7755 | done` || { (exit 1); exit 1; } |
| 7756 | # Remove the trailing spaces. |
| 7757 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7758 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7759 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7760 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7761 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 7762 | # `conftest.undefs', that substitutes the proper values into |
| 7763 | # config.h.in to produce config.h. The first handles `#define' |
| 7764 | # templates, and the second `#undef' templates. |
| 7765 | # And first: Protect against being on the right side of a sed subst in |
| 7766 | # config.status. Protect against being in an unquoted here document |
| 7767 | # in config.status. |
| 7768 | rm -f conftest.defines conftest.undefs |
| 7769 | # Using a here document instead of a string reduces the quoting nightmare. |
| 7770 | # Putting comments in sed scripts is not portable. |
| 7771 | # |
| 7772 | # `end' is used to avoid that the second main sed command (meant for |
| 7773 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 7774 | # See the Autoconf documentation for `clear'. |
| 7775 | cat >confdef2sed.sed <<\_ACEOF |
| 7776 | s/[\\&,]/\\&/g |
| 7777 | s,[\\$`],\\&,g |
| 7778 | t clear |
| 7779 | : clear |
| 7780 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp |
| 7781 | t end |
| 7782 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 7783 | : end |
| 7784 | _ACEOF |
| 7785 | # If some macros were called several times there might be several times |
| 7786 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 7787 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 7788 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 7789 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 7790 | rm -f confdef2sed.sed |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7791 | |
| 7792 | # This sed command replaces #undef with comments. This is necessary, for |
| 7793 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 7794 | # on some systems where configure will not decide to define it. |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7795 | cat >>conftest.undefs <<\_ACEOF |
| 7796 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 7797 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7798 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7799 | # Break up conftest.defines because some shells have a limit on the size |
| 7800 | # of here documents, and old seds have small limits too (100 cmds). |
| 7801 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 7802 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 7803 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 7804 | echo ' :' >>$CONFIG_STATUS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7805 | rm -f conftest.tail |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7806 | while grep . conftest.defines >/dev/null |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7807 | do |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7808 | # Write a limited-size here document to $tmp/defines.sed. |
| 7809 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 7810 | # Speed up: don't consider the non `#define' lines. |
| 7811 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 7812 | # Work around the forget-to-reset-the-flag bug. |
| 7813 | echo 't clr' >>$CONFIG_STATUS |
| 7814 | echo ': clr' >>$CONFIG_STATUS |
| 7815 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7816 | echo 'CEOF |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7817 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 7818 | rm -f $tmp/in |
| 7819 | mv $tmp/out $tmp/in |
| 7820 | ' >>$CONFIG_STATUS |
| 7821 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 7822 | rm -f conftest.defines |
| 7823 | mv conftest.tail conftest.defines |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7824 | done |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7825 | rm -f conftest.defines |
| 7826 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 7827 | echo >>$CONFIG_STATUS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7828 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7829 | # Break up conftest.undefs because some shells have a limit on the size |
| 7830 | # of here documents, and old seds have small limits too (100 cmds). |
| 7831 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 7832 | rm -f conftest.tail |
| 7833 | while grep . conftest.undefs >/dev/null |
| 7834 | do |
| 7835 | # Write a limited-size here document to $tmp/undefs.sed. |
| 7836 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 7837 | # Speed up: don't consider the non `#undef' |
| 7838 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 7839 | # Work around the forget-to-reset-the-flag bug. |
| 7840 | echo 't clr' >>$CONFIG_STATUS |
| 7841 | echo ': clr' >>$CONFIG_STATUS |
| 7842 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 7843 | echo 'CEOF |
| 7844 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 7845 | rm -f $tmp/in |
| 7846 | mv $tmp/out $tmp/in |
| 7847 | ' >>$CONFIG_STATUS |
| 7848 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 7849 | rm -f conftest.undefs |
| 7850 | mv conftest.tail conftest.undefs |
| 7851 | done |
| 7852 | rm -f conftest.undefs |
| 7853 | |
| 7854 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7855 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7856 | # use $as_me), people would be surprised to read: |
| 7857 | # /* config.h. Generated automatically by config.status. */ |
| 7858 | if test x"$ac_file" = x-; then |
| 7859 | echo "/* Generated automatically by configure. */" >$tmp/config.h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7860 | else |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7861 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7862 | fi |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7863 | cat $tmp/in >>$tmp/config.h |
| 7864 | rm -f $tmp/in |
| 7865 | if test x"$ac_file" != x-; then |
| 7866 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 7867 | { echo "$as_me:7867: $ac_file is unchanged" >&5 |
| 7868 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 7869 | else |
| 7870 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7871 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7872 | X"$ac_file" : 'X\(//\)$' \| \ |
| 7873 | X"$ac_file" : 'X\(/\)' \| \ |
| 7874 | . : '\(.\)' 2>/dev/null || |
| 7875 | echo X"$ac_file" | |
| 7876 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7877 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7878 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7879 | /^X\(\/\).*/{ s//\1/; q; } |
| 7880 | s/.*/./; q'` |
| 7881 | { case "$ac_dir" in |
| 7882 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 7883 | *) as_incr_dir=.;; |
| 7884 | esac |
| 7885 | as_dummy="$ac_dir" |
| 7886 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 7887 | case $as_mkdir_dir in |
| 7888 | # Skip DOS drivespec |
| 7889 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 7890 | *) |
| 7891 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 7892 | test -d "$as_incr_dir" || |
| 7893 | mkdir "$as_incr_dir" || |
| 7894 | { { echo "$as_me:7894: error: cannot create \"$ac_dir\"" >&5 |
| 7895 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 7896 | { (exit 1); exit 1; }; } |
| 7897 | ;; |
| 7898 | esac |
| 7899 | done; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7900 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7901 | rm -f $ac_file |
| 7902 | mv $tmp/config.h $ac_file |
| 7903 | fi |
| 7904 | else |
| 7905 | cat $tmp/config.h |
| 7906 | rm -f $tmp/config.h |
| 7907 | fi |
| 7908 | # Run the commands associated with the file. |
| 7909 | case $ac_file in |
| 7910 | config.h ) # update the timestamp |
| 7911 | echo timestamp >"./stamp-h1" |
| 7912 | ;; |
| 7913 | esac |
| 7914 | done |
| 7915 | _ACEOF |
| 7916 | cat >>$CONFIG_STATUS <<\_ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7917 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7918 | # |
| 7919 | # CONFIG_COMMANDS section. |
| 7920 | # |
| 7921 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 7922 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 7923 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7924 | ac_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7925 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 7926 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 7927 | X"$ac_dest" : 'X\(/\)' \| \ |
| 7928 | . : '\(.\)' 2>/dev/null || |
| 7929 | echo X"$ac_dest" | |
| 7930 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7931 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7932 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7933 | /^X\(\/\).*/{ s//\1/; q; } |
| 7934 | s/.*/./; q'` |
| 7935 | if test "$ac_dir" != .; then |
| 7936 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'` |
| 7937 | # A "../" for each directory in $ac_dir_suffix. |
| 7938 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
| 7939 | else |
| 7940 | ac_dir_suffix= ac_top_builddir= |
| 7941 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7942 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7943 | case $srcdir in |
| 7944 | .) # No --srcdir option. We are building in place. |
| 7945 | ac_srcdir=. |
| 7946 | if test -z "$ac_top_builddir"; then |
| 7947 | ac_top_srcdir=. |
| 7948 | else |
| 7949 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 7950 | fi ;; |
| 7951 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 7952 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 7953 | ac_top_srcdir=$srcdir ;; |
| 7954 | *) # Relative path. |
| 7955 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 7956 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 7957 | esac |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 7958 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 7959 | { echo "$as_me:7959: executing $ac_dest commands" >&5 |
| 7960 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 7961 | case $ac_dest in |
| 7962 | default-1 ) |
| 7963 | test x"$AMDEP_TRUE" != x"" || |
| 7964 | for mf in $CONFIG_FILES; do |
| 7965 | case "$mf" in |
| 7966 | Makefile) dirpart=.;; |
| 7967 | */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; |
| 7968 | *) continue;; |
| 7969 | esac |
| 7970 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 7971 | # Extract the definition of DEP_FILES from the Makefile without |
| 7972 | # running `make'. |
| 7973 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 7974 | test -z "$DEPDIR" && continue |
| 7975 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 7976 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 7977 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 7978 | # We invoke sed twice because it is the simplest approach to |
| 7979 | # changing $(DEPDIR) to its actual value in the expansion. |
| 7980 | for file in `sed -n -e ' |
| 7981 | /^DEP_FILES = .*\\\\$/ { |
| 7982 | s/^DEP_FILES = // |
| 7983 | :loop |
| 7984 | s/\\\\$// |
| 7985 | p |
| 7986 | n |
| 7987 | /\\\\$/ b loop |
| 7988 | p |
| 7989 | } |
| 7990 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 7991 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 7992 | # Make sure the directory exists. |
| 7993 | test -f "$dirpart/$file" && continue |
| 7994 | fdir=`echo "$file" | sed -e 's|/[^/]*$||'` |
| 7995 | $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 |
| 7996 | # echo "creating $dirpart/$file" |
| 7997 | echo '# dummy' > "$dirpart/$file" |
| 7998 | done |
| 7999 | done |
| 8000 | ;; |
| 8001 | esac |
| 8002 | done |
| 8003 | _ACEOF |
| 8004 | |
| 8005 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8006 | |
| 8007 | { (exit 0); exit 0; } |
| 8008 | _ACEOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8009 | chmod +x $CONFIG_STATUS |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 8010 | ac_clean_files=$ac_clean_files_save |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8011 | |
paul | 6898008 | 2003-03-25 05:07:42 +0000 | [diff] [blame] | 8012 | # configure is writing to config.log, and then calls config.status. |
| 8013 | # config.status does its own redirection, appending to config.log. |
| 8014 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 8015 | # by configure, so config.status won't be able to write to it; its |
| 8016 | # output is simply discarded. So we exec the FD to /dev/null, |
| 8017 | # effectively closing config.log, so it can be properly (re)opened and |
| 8018 | # appended to by config.status. When coming back to configure, we |
| 8019 | # need to make the FD available again. |
| 8020 | if test "$no_create" != yes; then |
| 8021 | ac_cs_success=: |
| 8022 | exec 5>/dev/null |
| 8023 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 8024 | exec 5>>config.log |
| 8025 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8026 | # would make configure fail if this is the last instruction. |
| 8027 | $ac_cs_success || { (exit 1); exit 1; } |
| 8028 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 8029 | |
| 8030 | echo " |
| 8031 | zebra configuration |
| 8032 | ------------------- |
| 8033 | zebra version : ${VERSION} |
| 8034 | host operationg system : ${host_os} |
| 8035 | source code location : ${srcdir} |
| 8036 | compiler : ${CC} |
| 8037 | compiler flags : ${CFLAGS} |
| 8038 | directory for pid files : ${ac_piddir} |
| 8039 | " |