paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1 | #! /bin/sh |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4 | # Generated automatically using autoconf version 2.13 |
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 6 | # |
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 | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 10 | # Defaults: |
| 11 | ac_help= |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 12 | ac_default_prefix=/usr/local |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --with-cflags Set CFLAGS for use in compilation." |
| 16 | ac_help="$ac_help |
| 17 | --enable-vtysh, Make integrated VTY version of zebra" |
| 18 | ac_help="$ac_help |
| 19 | --disable-ipv6 turn off IPv6 related features and daemons" |
| 20 | ac_help="$ac_help |
| 21 | --disable-zebra do not build zebra daemon" |
| 22 | ac_help="$ac_help |
| 23 | --disable-bgpd do not build bgpd" |
| 24 | ac_help="$ac_help |
| 25 | --disable-ripd do not build ripd" |
| 26 | ac_help="$ac_help |
| 27 | --disable-ripngd do not build ripngd" |
| 28 | ac_help="$ac_help |
| 29 | --disable-ospfd do not build ospfd" |
| 30 | ac_help="$ac_help |
| 31 | --disable-ospfclient do not build ospfclient" |
| 32 | ac_help="$ac_help |
| 33 | --disable-ospf6d do not build ospf6d" |
| 34 | ac_help="$ac_help |
| 35 | --disable-bgp-announce, turn off BGP route announcement" |
| 36 | ac_help="$ac_help |
| 37 | --enable-netlink force to use Linux netlink interface" |
| 38 | ac_help="$ac_help |
| 39 | --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X" |
| 40 | ac_help="$ac_help |
| 41 | --enable-snmp enable SNMP support" |
| 42 | ac_help="$ac_help |
| 43 | --with-libpam use libpam for PAM support in vtysh" |
| 44 | ac_help="$ac_help |
| 45 | --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon" |
| 46 | ac_help="$ac_help |
| 47 | --enable-nssa enable OSPF NSSA option" |
| 48 | ac_help="$ac_help |
| 49 | --enable-opaque-lsa enable OSPF Opaque-LSA support (RFC2370)" |
| 50 | ac_help="$ac_help |
| 51 | --enable-ospf-te enable Traffic Engineering Extension to OSPF" |
| 52 | ac_help="$ac_help |
| 53 | --enable-multipath=ARG enable multipath function, ARG must be digit" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 54 | |
| 55 | # Initialize some variables set by options. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 56 | # The variables have the same names as the options, with |
| 57 | # dashes changed to underlines. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 58 | build=NONE |
| 59 | cache_file=./config.cache |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 60 | exec_prefix=NONE |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 61 | host=NONE |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 62 | no_create= |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 63 | nonopt=NONE |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 64 | no_recursion= |
| 65 | prefix=NONE |
| 66 | program_prefix=NONE |
| 67 | program_suffix=NONE |
| 68 | program_transform_name=s,x,x, |
| 69 | silent= |
| 70 | site= |
| 71 | srcdir= |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 72 | target=NONE |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 73 | verbose= |
| 74 | x_includes=NONE |
| 75 | x_libraries=NONE |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 76 | bindir='${exec_prefix}/bin' |
| 77 | sbindir='${exec_prefix}/sbin' |
| 78 | libexecdir='${exec_prefix}/libexec' |
| 79 | datadir='${prefix}/share' |
| 80 | sysconfdir='${prefix}/etc' |
| 81 | sharedstatedir='${prefix}/com' |
| 82 | localstatedir='${prefix}/var' |
| 83 | libdir='${exec_prefix}/lib' |
| 84 | includedir='${prefix}/include' |
| 85 | oldincludedir='/usr/include' |
| 86 | infodir='${prefix}/info' |
| 87 | mandir='${prefix}/man' |
| 88 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 89 | # Initialize some other variables. |
| 90 | subdirs= |
| 91 | MFLAGS= MAKEFLAGS= |
| 92 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 93 | # Maximum number of lines to put in a shell here document. |
| 94 | ac_max_here_lines=12 |
| 95 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 96 | ac_prev= |
| 97 | for ac_option |
| 98 | do |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 99 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 100 | # If the previous option needs an argument, assign it. |
| 101 | if test -n "$ac_prev"; then |
| 102 | eval "$ac_prev=\$ac_option" |
| 103 | ac_prev= |
| 104 | continue |
| 105 | fi |
| 106 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 107 | case "$ac_option" in |
| 108 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 109 | *) ac_optarg= ;; |
| 110 | esac |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 111 | |
| 112 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 113 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 114 | case "$ac_option" in |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 115 | |
| 116 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 117 | ac_prev=bindir ;; |
| 118 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 119 | bindir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 120 | |
| 121 | -build | --build | --buil | --bui | --bu) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 122 | ac_prev=build ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 123 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 124 | build="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 125 | |
| 126 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 127 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 128 | ac_prev=cache_file ;; |
| 129 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 130 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 131 | cache_file="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 132 | |
| 133 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 134 | ac_prev=datadir ;; |
| 135 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 136 | | --da=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 137 | datadir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 138 | |
| 139 | -disable-* | --disable-*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 140 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 141 | # Reject names that are not valid shell variable names. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 142 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 143 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 144 | fi |
| 145 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 146 | eval "enable_${ac_feature}=no" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 147 | |
| 148 | -enable-* | --enable-*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 149 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 150 | # Reject names that are not valid shell variable names. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 151 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 152 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 153 | fi |
| 154 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 155 | case "$ac_option" in |
| 156 | *=*) ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 157 | *) ac_optarg=yes ;; |
| 158 | esac |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 159 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 160 | |
| 161 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 162 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 163 | | --exec | --exe | --ex) |
| 164 | ac_prev=exec_prefix ;; |
| 165 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 166 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 167 | | --exec=* | --exe=* | --ex=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 168 | exec_prefix="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 169 | |
| 170 | -gas | --gas | --ga | --g) |
| 171 | # Obsolete; use --with-gas. |
| 172 | with_gas=yes ;; |
| 173 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 174 | -help | --help | --hel | --he) |
| 175 | # Omit some internal or obsolete options to make the list less imposing. |
| 176 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 177 | cat << EOF |
| 178 | Usage: configure [options] [host] |
| 179 | Options: [defaults in brackets after descriptions] |
| 180 | Configuration: |
| 181 | --cache-file=FILE cache test results in FILE |
| 182 | --help print this message |
| 183 | --no-create do not create output files |
| 184 | --quiet, --silent do not print \`checking...' messages |
| 185 | --version print the version of autoconf that created configure |
| 186 | Directory and file names: |
| 187 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 188 | [$ac_default_prefix] |
| 189 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 190 | [same as prefix] |
| 191 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 192 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 193 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 194 | --datadir=DIR read-only architecture-independent data in DIR |
| 195 | [PREFIX/share] |
| 196 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 197 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 198 | [PREFIX/com] |
| 199 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 200 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 201 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 202 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 203 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 204 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 205 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 206 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 207 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 208 | --program-transform-name=PROGRAM |
| 209 | run sed PROGRAM on installed program names |
| 210 | EOF |
| 211 | cat << EOF |
| 212 | Host type: |
| 213 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 214 | --host=HOST configure for HOST [guessed] |
| 215 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 216 | Features and packages: |
| 217 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 218 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 219 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 220 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 221 | --x-includes=DIR X include files are in DIR |
| 222 | --x-libraries=DIR X library files are in DIR |
| 223 | EOF |
| 224 | if test -n "$ac_help"; then |
| 225 | echo "--enable and --with options recognized:$ac_help" |
| 226 | fi |
| 227 | exit 0 ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 228 | |
| 229 | -host | --host | --hos | --ho) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 230 | ac_prev=host ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 231 | -host=* | --host=* | --hos=* | --ho=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 232 | host="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 233 | |
| 234 | -includedir | --includedir | --includedi | --included | --include \ |
| 235 | | --includ | --inclu | --incl | --inc) |
| 236 | ac_prev=includedir ;; |
| 237 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 238 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 239 | includedir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 240 | |
| 241 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 242 | ac_prev=infodir ;; |
| 243 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 244 | infodir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 245 | |
| 246 | -libdir | --libdir | --libdi | --libd) |
| 247 | ac_prev=libdir ;; |
| 248 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 249 | libdir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 250 | |
| 251 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 252 | | --libexe | --libex | --libe) |
| 253 | ac_prev=libexecdir ;; |
| 254 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 255 | | --libexe=* | --libex=* | --libe=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 256 | libexecdir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 257 | |
| 258 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 259 | | --localstate | --localstat | --localsta | --localst \ |
| 260 | | --locals | --local | --loca | --loc | --lo) |
| 261 | ac_prev=localstatedir ;; |
| 262 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 263 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 264 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 265 | localstatedir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 266 | |
| 267 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 268 | ac_prev=mandir ;; |
| 269 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 270 | mandir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 271 | |
| 272 | -nfp | --nfp | --nf) |
| 273 | # Obsolete; use --without-fp. |
| 274 | with_fp=no ;; |
| 275 | |
| 276 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 277 | | --no-cr | --no-c) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 278 | no_create=yes ;; |
| 279 | |
| 280 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 281 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 282 | no_recursion=yes ;; |
| 283 | |
| 284 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 285 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 286 | | --oldin | --oldi | --old | --ol | --o) |
| 287 | ac_prev=oldincludedir ;; |
| 288 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 289 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 290 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 291 | oldincludedir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 292 | |
| 293 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 294 | ac_prev=prefix ;; |
| 295 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 296 | prefix="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 297 | |
| 298 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 299 | | --program-pre | --program-pr | --program-p) |
| 300 | ac_prev=program_prefix ;; |
| 301 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 302 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 303 | program_prefix="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 304 | |
| 305 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 306 | | --program-suf | --program-su | --program-s) |
| 307 | ac_prev=program_suffix ;; |
| 308 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 309 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 310 | program_suffix="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 311 | |
| 312 | -program-transform-name | --program-transform-name \ |
| 313 | | --program-transform-nam | --program-transform-na \ |
| 314 | | --program-transform-n | --program-transform- \ |
| 315 | | --program-transform | --program-transfor \ |
| 316 | | --program-transfo | --program-transf \ |
| 317 | | --program-trans | --program-tran \ |
| 318 | | --progr-tra | --program-tr | --program-t) |
| 319 | ac_prev=program_transform_name ;; |
| 320 | -program-transform-name=* | --program-transform-name=* \ |
| 321 | | --program-transform-nam=* | --program-transform-na=* \ |
| 322 | | --program-transform-n=* | --program-transform-=* \ |
| 323 | | --program-transform=* | --program-transfor=* \ |
| 324 | | --program-transfo=* | --program-transf=* \ |
| 325 | | --program-trans=* | --program-tran=* \ |
| 326 | | --progr-tra=* | --program-tr=* | --program-t=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 327 | program_transform_name="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 328 | |
| 329 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 330 | | -silent | --silent | --silen | --sile | --sil) |
| 331 | silent=yes ;; |
| 332 | |
| 333 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 334 | ac_prev=sbindir ;; |
| 335 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 336 | | --sbi=* | --sb=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 337 | sbindir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 338 | |
| 339 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 340 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 341 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 342 | | --sha | --sh) |
| 343 | ac_prev=sharedstatedir ;; |
| 344 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 345 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 346 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 347 | | --sha=* | --sh=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 348 | sharedstatedir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 349 | |
| 350 | -site | --site | --sit) |
| 351 | ac_prev=site ;; |
| 352 | -site=* | --site=* | --sit=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 353 | site="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 354 | |
| 355 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 356 | ac_prev=srcdir ;; |
| 357 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 358 | srcdir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 359 | |
| 360 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 361 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 362 | ac_prev=sysconfdir ;; |
| 363 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 364 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 365 | sysconfdir="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 366 | |
| 367 | -target | --target | --targe | --targ | --tar | --ta | --t) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 368 | ac_prev=target ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 369 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 370 | target="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 371 | |
| 372 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 373 | verbose=yes ;; |
| 374 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 375 | -version | --version | --versio | --versi | --vers) |
| 376 | echo "configure generated by autoconf version 2.13" |
| 377 | exit 0 ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 378 | |
| 379 | -with-* | --with-*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 380 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 381 | # Reject names that are not valid shell variable names. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 382 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 383 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 384 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 385 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 386 | case "$ac_option" in |
| 387 | *=*) ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 388 | *) ac_optarg=yes ;; |
| 389 | esac |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 390 | eval "with_${ac_package}='$ac_optarg'" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 391 | |
| 392 | -without-* | --without-*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 393 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 394 | # Reject names that are not valid shell variable names. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 395 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 396 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 397 | fi |
| 398 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 399 | eval "with_${ac_package}=no" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 400 | |
| 401 | --x) |
| 402 | # Obsolete; use --with-x. |
| 403 | with_x=yes ;; |
| 404 | |
| 405 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 406 | | --x-incl | --x-inc | --x-in | --x-i) |
| 407 | ac_prev=x_includes ;; |
| 408 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 409 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 410 | x_includes="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 411 | |
| 412 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 413 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 414 | ac_prev=x_libraries ;; |
| 415 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 416 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 417 | x_libraries="$ac_optarg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 418 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 419 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 420 | ;; |
| 421 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 422 | *) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 423 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 424 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 425 | fi |
| 426 | if test "x$nonopt" != xNONE; then |
| 427 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 428 | fi |
| 429 | nonopt="$ac_option" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 430 | ;; |
| 431 | |
| 432 | esac |
| 433 | done |
| 434 | |
| 435 | if test -n "$ac_prev"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 436 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 437 | fi |
| 438 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 439 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 440 | |
| 441 | # File descriptor usage: |
| 442 | # 0 standard input |
| 443 | # 1 file creation |
| 444 | # 2 errors and warnings |
| 445 | # 3 some systems may open it to /dev/tty |
| 446 | # 4 used on the Kubota Titan |
| 447 | # 6 checking for... messages and results |
| 448 | # 5 compiler messages saved in config.log |
| 449 | if test "$silent" = yes; then |
| 450 | exec 6>/dev/null |
| 451 | else |
| 452 | exec 6>&1 |
| 453 | fi |
| 454 | exec 5>./config.log |
| 455 | |
| 456 | echo "\ |
| 457 | This file contains any messages produced by compilers while |
| 458 | running configure, to aid debugging if configure makes a mistake. |
| 459 | " 1>&5 |
| 460 | |
| 461 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 462 | # Also quote any args containing shell metacharacters. |
| 463 | ac_configure_args= |
| 464 | for ac_arg |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 465 | do |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 466 | case "$ac_arg" in |
| 467 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 468 | | --no-cr | --no-c) ;; |
| 469 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 470 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 471 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 472 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 473 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 474 | esac |
| 475 | done |
| 476 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 477 | # NLS nuisances. |
| 478 | # Only set these to C if already set. These must not be set unconditionally |
| 479 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 480 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 481 | # Non-C LC_CTYPE values break the ctype check. |
| 482 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 483 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 484 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 485 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 486 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 487 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 488 | rm -rf conftest* confdefs.h |
| 489 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 490 | echo > confdefs.h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 491 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 492 | # A filename unique to this package, relative to the directory that |
| 493 | # configure is in, which we can look for to find out if srcdir is correct. |
| 494 | ac_unique_file=lib/zebra.h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 495 | |
| 496 | # Find the source files, if location was not specified. |
| 497 | if test -z "$srcdir"; then |
| 498 | ac_srcdir_defaulted=yes |
| 499 | # Try the directory containing this script, then its parent. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 500 | ac_prog=$0 |
| 501 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 502 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 503 | srcdir=$ac_confdir |
| 504 | if test ! -r $srcdir/$ac_unique_file; then |
| 505 | srcdir=.. |
| 506 | fi |
| 507 | else |
| 508 | ac_srcdir_defaulted=no |
| 509 | fi |
| 510 | if test ! -r $srcdir/$ac_unique_file; then |
| 511 | if test "$ac_srcdir_defaulted" = yes; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 512 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 513 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 514 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 515 | fi |
| 516 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 517 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 518 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 519 | # Prefer explicitly selected file to automatically selected ones. |
| 520 | if test -z "$CONFIG_SITE"; then |
| 521 | if test "x$prefix" != xNONE; then |
| 522 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 523 | else |
| 524 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 525 | fi |
| 526 | fi |
| 527 | for ac_site_file in $CONFIG_SITE; do |
| 528 | if test -r "$ac_site_file"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 529 | echo "loading site script $ac_site_file" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 530 | . "$ac_site_file" |
| 531 | fi |
| 532 | done |
| 533 | |
| 534 | if test -r "$cache_file"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 535 | echo "loading cache $cache_file" |
| 536 | . $cache_file |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 537 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 538 | echo "creating cache $cache_file" |
| 539 | > $cache_file |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 540 | fi |
| 541 | |
| 542 | ac_ext=c |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 543 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 544 | ac_cpp='$CPP $CPPFLAGS' |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 545 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 546 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 547 | cross_compiling=$ac_cv_prog_cc_cross |
| 548 | |
| 549 | ac_exeext= |
| 550 | ac_objext=o |
| 551 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 552 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 553 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 554 | ac_n= ac_c=' |
| 555 | ' ac_t=' ' |
| 556 | else |
| 557 | ac_n=-n ac_c= ac_t= |
| 558 | fi |
| 559 | else |
| 560 | ac_n= ac_c='\c' ac_t= |
| 561 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 562 | |
| 563 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 564 | ac_aux_dir= |
| 565 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 566 | if test -f $ac_dir/install-sh; then |
| 567 | ac_aux_dir=$ac_dir |
| 568 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 569 | break |
| 570 | elif test -f $ac_dir/install.sh; then |
| 571 | ac_aux_dir=$ac_dir |
| 572 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 573 | break |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 574 | fi |
| 575 | done |
| 576 | if test -z "$ac_aux_dir"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 577 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 578 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 579 | ac_config_guess=$ac_aux_dir/config.guess |
| 580 | ac_config_sub=$ac_aux_dir/config.sub |
| 581 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 582 | |
| 583 | # Find a good install program. We prefer a C program (faster), |
| 584 | # so one script is as good as another. But avoid the broken or |
| 585 | # incompatible versions: |
| 586 | # SysV /etc/install, /usr/sbin/install |
| 587 | # SunOS /usr/etc/install |
| 588 | # IRIX /sbin/install |
| 589 | # AIX /bin/install |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 590 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 591 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 592 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 593 | # ./install, which can be erroneously created by make from ./install.sh. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 594 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 595 | echo "configure:596: checking for a BSD compatible install" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 596 | if test -z "$INSTALL"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 597 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 598 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 599 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 600 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 601 | for ac_dir in $PATH; do |
| 602 | # Account for people who put trailing slashes in PATH elements. |
| 603 | case "$ac_dir/" in |
| 604 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 605 | *) |
| 606 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 607 | # Don't use installbsd from OSF since it installs stuff as root |
| 608 | # by default. |
| 609 | for ac_prog in ginstall scoinst install; do |
| 610 | if test -f $ac_dir/$ac_prog; then |
| 611 | if test $ac_prog = install && |
| 612 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 613 | # AIX install. It has an incompatible calling convention. |
| 614 | : |
| 615 | else |
| 616 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 617 | break 2 |
| 618 | fi |
| 619 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 620 | done |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 621 | ;; |
| 622 | esac |
| 623 | done |
| 624 | IFS="$ac_save_IFS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 625 | |
| 626 | fi |
| 627 | if test "${ac_cv_path_install+set}" = set; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 628 | INSTALL="$ac_cv_path_install" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 629 | else |
| 630 | # As a last resort, use the slow shell script. We don't cache a |
| 631 | # path for INSTALL within a source directory, because that will |
| 632 | # break other packages using the cache if that directory is |
| 633 | # removed, or if the path is relative. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 634 | INSTALL="$ac_install_sh" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 635 | fi |
| 636 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 637 | echo "$ac_t""$INSTALL" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 638 | |
| 639 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 640 | # It thinks the first close brace ends the variable substitution. |
| 641 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 642 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 643 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 644 | |
| 645 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 646 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 647 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
| 648 | echo "configure:649: checking whether build environment is sane" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 649 | # Just in case |
| 650 | sleep 1 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 651 | echo timestamp > conftestfile |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 652 | # Do `set' in a subshell so we don't clobber the current shell's |
| 653 | # arguments. Must try -L first in case configure is actually a |
| 654 | # symlink; some systems play weird games with the mod time of symlinks |
| 655 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 656 | # directory). |
| 657 | if ( |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 658 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 659 | if test "$*" = "X"; then |
| 660 | # -L didn't work. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 661 | set X `ls -t $srcdir/configure conftestfile` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 662 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 663 | if test "$*" != "X $srcdir/configure conftestfile" \ |
| 664 | && test "$*" != "X conftestfile $srcdir/configure"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 665 | |
| 666 | # If neither matched, then we have a broken ls. This can happen |
| 667 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 668 | # broken ls alias from the environment. This has actually |
| 669 | # happened. Such a system could not be considered "sane". |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 670 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
| 671 | alias in your environment" 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 672 | fi |
| 673 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 674 | test "$2" = conftestfile |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 675 | ) |
| 676 | then |
| 677 | # Ok. |
| 678 | : |
| 679 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 680 | { echo "configure: error: newly created file is older than distributed files! |
| 681 | Check your system clock" 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 682 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 683 | rm -f conftest* |
| 684 | echo "$ac_t""yes" 1>&6 |
| 685 | if test "$program_transform_name" = s,x,x,; then |
| 686 | program_transform_name= |
| 687 | else |
| 688 | # Double any \ or $. echo might interpret backslashes. |
| 689 | cat <<\EOF_SED > conftestsed |
| 690 | s,\\,\\\\,g; s,\$,$$,g |
| 691 | EOF_SED |
| 692 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
| 693 | rm -f conftestsed |
| 694 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 695 | test "$program_prefix" != NONE && |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 696 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 697 | # Use a double $ so make ignores it. |
| 698 | test "$program_suffix" != NONE && |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 699 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 700 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 701 | # sed with no file args requires a program. |
| 702 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 703 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 704 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 705 | echo "configure:706: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 706 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 707 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 708 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 709 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 710 | cat > conftestmake <<\EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 711 | all: |
| 712 | @echo 'ac_maketemp="${MAKE}"' |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 713 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 714 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 715 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 716 | if test -n "$ac_maketemp"; then |
| 717 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 718 | else |
| 719 | eval ac_cv_prog_make_${ac_make}_set=no |
| 720 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 721 | rm -f conftestmake |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 722 | fi |
| 723 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 724 | echo "$ac_t""yes" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 725 | SET_MAKE= |
| 726 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 727 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 728 | SET_MAKE="MAKE=${MAKE-make}" |
| 729 | fi |
| 730 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 731 | |
| 732 | PACKAGE=zebra |
| 733 | |
| 734 | VERSION=0.94 |
| 735 | |
| 736 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
| 737 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 738 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 739 | cat >> confdefs.h <<EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 740 | #define PACKAGE "$PACKAGE" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 741 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 742 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 743 | cat >> confdefs.h <<EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 744 | #define VERSION "$VERSION" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 745 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 746 | |
| 747 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 748 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 749 | missing_dir=`cd $ac_aux_dir && pwd` |
| 750 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
| 751 | echo "configure:752: checking for working aclocal" >&5 |
| 752 | # Run test in a subshell; some versions of sh will print an error if |
| 753 | # an executable is not found, even if stderr is redirected. |
| 754 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 755 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
| 756 | ACLOCAL=aclocal |
| 757 | echo "$ac_t""found" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 758 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 759 | ACLOCAL="$missing_dir/missing aclocal" |
| 760 | echo "$ac_t""missing" 1>&6 |
| 761 | fi |
| 762 | |
| 763 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
| 764 | echo "configure:765: checking for working autoconf" >&5 |
| 765 | # Run test in a subshell; some versions of sh will print an error if |
| 766 | # an executable is not found, even if stderr is redirected. |
| 767 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 768 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
| 769 | AUTOCONF=autoconf |
| 770 | echo "$ac_t""found" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 771 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 772 | AUTOCONF="$missing_dir/missing autoconf" |
| 773 | echo "$ac_t""missing" 1>&6 |
| 774 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 775 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 776 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
| 777 | echo "configure:778: checking for working automake" >&5 |
| 778 | # Run test in a subshell; some versions of sh will print an error if |
| 779 | # an executable is not found, even if stderr is redirected. |
| 780 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 781 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
| 782 | AUTOMAKE=automake |
| 783 | echo "$ac_t""found" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 784 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 785 | AUTOMAKE="$missing_dir/missing automake" |
| 786 | echo "$ac_t""missing" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 787 | fi |
| 788 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 789 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
| 790 | echo "configure:791: checking for working autoheader" >&5 |
| 791 | # Run test in a subshell; some versions of sh will print an error if |
| 792 | # an executable is not found, even if stderr is redirected. |
| 793 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 794 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
| 795 | AUTOHEADER=autoheader |
| 796 | echo "$ac_t""found" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 797 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 798 | AUTOHEADER="$missing_dir/missing autoheader" |
| 799 | echo "$ac_t""missing" 1>&6 |
| 800 | fi |
| 801 | |
| 802 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
| 803 | echo "configure:804: checking for working makeinfo" >&5 |
| 804 | # Run test in a subshell; some versions of sh will print an error if |
| 805 | # an executable is not found, even if stderr is redirected. |
| 806 | # Redirect stdin to placate older versions of autoconf. Sigh. |
| 807 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
| 808 | MAKEINFO=makeinfo |
| 809 | echo "$ac_t""found" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 810 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 811 | MAKEINFO="$missing_dir/missing makeinfo" |
| 812 | echo "$ac_t""missing" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 813 | fi |
| 814 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 815 | |
| 816 | |
| 817 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 818 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 819 | |
| 820 | |
| 821 | # Make sure we can run config.sub. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 822 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 823 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 824 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 825 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 826 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
| 827 | echo "configure:828: checking host system type" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 828 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 829 | host_alias=$host |
| 830 | case "$host_alias" in |
| 831 | NONE) |
| 832 | case $nonopt in |
| 833 | NONE) |
| 834 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| 835 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 836 | fi ;; |
| 837 | *) host_alias=$nonopt ;; |
| 838 | esac ;; |
| 839 | esac |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 840 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 841 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| 842 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 843 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 844 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 845 | echo "$ac_t""$host" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 846 | |
| 847 | |
| 848 | # Check whether --with-cflags or --without-cflags was given. |
| 849 | if test "${with_cflags+set}" = set; then |
| 850 | withval="$with_cflags" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 851 | : |
| 852 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 853 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 854 | if test "x$with_cflags" != "x" ; then |
| 855 | CFLAGS="$with_cflags" ; cflags_specified=yes ; |
| 856 | elif test -n "$CFLAGS" ; then |
| 857 | cflags_specified=yes ; |
| 858 | fi |
| 859 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 860 | # Extract the first word of "gcc", so it can be a program name with args. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 861 | set dummy gcc; ac_word=$2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 862 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 863 | echo "configure:864: checking for $ac_word" >&5 |
| 864 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 865 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 866 | else |
| 867 | if test -n "$CC"; then |
| 868 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 869 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 870 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 871 | ac_dummy="$PATH" |
| 872 | for ac_dir in $ac_dummy; do |
| 873 | test -z "$ac_dir" && ac_dir=. |
| 874 | if test -f $ac_dir/$ac_word; then |
| 875 | ac_cv_prog_CC="gcc" |
| 876 | break |
| 877 | fi |
| 878 | done |
| 879 | IFS="$ac_save_ifs" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 880 | fi |
| 881 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 882 | CC="$ac_cv_prog_CC" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 883 | if test -n "$CC"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 884 | echo "$ac_t""$CC" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 885 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 886 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 887 | fi |
| 888 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 889 | if test -z "$CC"; then |
| 890 | # Extract the first word of "cc", so it can be a program name with args. |
| 891 | set dummy cc; ac_word=$2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 892 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 893 | echo "configure:894: checking for $ac_word" >&5 |
| 894 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 895 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 896 | else |
| 897 | if test -n "$CC"; then |
| 898 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 899 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 900 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 901 | ac_prog_rejected=no |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 902 | ac_dummy="$PATH" |
| 903 | for ac_dir in $ac_dummy; do |
| 904 | test -z "$ac_dir" && ac_dir=. |
| 905 | if test -f $ac_dir/$ac_word; then |
| 906 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 907 | ac_prog_rejected=yes |
| 908 | continue |
| 909 | fi |
| 910 | ac_cv_prog_CC="cc" |
| 911 | break |
| 912 | fi |
| 913 | done |
| 914 | IFS="$ac_save_ifs" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 915 | if test $ac_prog_rejected = yes; then |
| 916 | # We found a bogon in the path, so make sure we never use it. |
| 917 | set dummy $ac_cv_prog_CC |
| 918 | shift |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 919 | if test $# -gt 0; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 920 | # We chose a different compiler from the bogus one. |
| 921 | # However, it has the same basename, so the bogon will be chosen |
| 922 | # first if we set CC to just the basename; use the full file name. |
| 923 | shift |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 924 | set dummy "$ac_dir/$ac_word" "$@" |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 925 | shift |
| 926 | ac_cv_prog_CC="$@" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 927 | fi |
| 928 | fi |
| 929 | fi |
| 930 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 931 | CC="$ac_cv_prog_CC" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 932 | if test -n "$CC"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 933 | echo "$ac_t""$CC" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 934 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 935 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 936 | fi |
| 937 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 938 | if test -z "$CC"; then |
| 939 | case "`uname -s`" in |
| 940 | *win32* | *WIN32*) |
| 941 | # Extract the first word of "cl", so it can be a program name with args. |
| 942 | set dummy cl; ac_word=$2 |
| 943 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 944 | echo "configure:945: checking for $ac_word" >&5 |
| 945 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 946 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 947 | else |
| 948 | if test -n "$CC"; then |
| 949 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 950 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 951 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 952 | ac_dummy="$PATH" |
| 953 | for ac_dir in $ac_dummy; do |
| 954 | test -z "$ac_dir" && ac_dir=. |
| 955 | if test -f $ac_dir/$ac_word; then |
| 956 | ac_cv_prog_CC="cl" |
| 957 | break |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 958 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 959 | done |
| 960 | IFS="$ac_save_ifs" |
| 961 | fi |
| 962 | fi |
| 963 | CC="$ac_cv_prog_CC" |
| 964 | if test -n "$CC"; then |
| 965 | echo "$ac_t""$CC" 1>&6 |
| 966 | else |
| 967 | echo "$ac_t""no" 1>&6 |
| 968 | fi |
| 969 | ;; |
| 970 | esac |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 971 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 972 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 973 | fi |
| 974 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 975 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 976 | echo "configure:977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 977 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 978 | ac_ext=c |
| 979 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 980 | ac_cpp='$CPP $CPPFLAGS' |
| 981 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 982 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 983 | cross_compiling=$ac_cv_prog_cc_cross |
| 984 | |
| 985 | cat > conftest.$ac_ext << EOF |
| 986 | |
| 987 | #line 988 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 988 | #include "confdefs.h" |
| 989 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 990 | main(){return(0);} |
| 991 | EOF |
| 992 | if { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 993 | ac_cv_prog_cc_works=yes |
| 994 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 995 | if (./conftest; exit) 2>/dev/null; then |
| 996 | ac_cv_prog_cc_cross=no |
| 997 | else |
| 998 | ac_cv_prog_cc_cross=yes |
| 999 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1000 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1001 | echo "configure: failed program was:" >&5 |
| 1002 | cat conftest.$ac_ext >&5 |
| 1003 | ac_cv_prog_cc_works=no |
| 1004 | fi |
| 1005 | rm -fr conftest* |
| 1006 | ac_ext=c |
| 1007 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1008 | ac_cpp='$CPP $CPPFLAGS' |
| 1009 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1010 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1011 | cross_compiling=$ac_cv_prog_cc_cross |
| 1012 | |
| 1013 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1014 | if test $ac_cv_prog_cc_works = no; then |
| 1015 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1016 | fi |
| 1017 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 1018 | echo "configure:1019: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 1019 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1020 | cross_compiling=$ac_cv_prog_cc_cross |
| 1021 | |
| 1022 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 1023 | echo "configure:1024: checking whether we are using GNU C" >&5 |
| 1024 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 1025 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1026 | else |
| 1027 | cat > conftest.c <<EOF |
| 1028 | #ifdef __GNUC__ |
| 1029 | yes; |
| 1030 | #endif |
| 1031 | EOF |
| 1032 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 1033 | ac_cv_prog_gcc=yes |
| 1034 | else |
| 1035 | ac_cv_prog_gcc=no |
| 1036 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1037 | fi |
| 1038 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1039 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 1040 | |
| 1041 | if test $ac_cv_prog_gcc = yes; then |
| 1042 | GCC=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1043 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1044 | GCC= |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1045 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1046 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1047 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1048 | ac_save_CFLAGS="$CFLAGS" |
| 1049 | CFLAGS= |
| 1050 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 1051 | echo "configure:1052: checking whether ${CC-cc} accepts -g" >&5 |
| 1052 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 1053 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1054 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1055 | echo 'void f(){}' > conftest.c |
| 1056 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1057 | ac_cv_prog_cc_g=yes |
| 1058 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1059 | ac_cv_prog_cc_g=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1060 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1061 | rm -f conftest* |
| 1062 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1063 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1064 | |
| 1065 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1066 | if test "$ac_test_CFLAGS" = set; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1067 | CFLAGS="$ac_save_CFLAGS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1068 | elif test $ac_cv_prog_cc_g = yes; then |
| 1069 | if test "$GCC" = yes; then |
| 1070 | CFLAGS="-g -O2" |
| 1071 | else |
| 1072 | CFLAGS="-g" |
| 1073 | fi |
| 1074 | else |
| 1075 | if test "$GCC" = yes; then |
| 1076 | CFLAGS="-O2" |
| 1077 | else |
| 1078 | CFLAGS= |
| 1079 | fi |
| 1080 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1081 | |
| 1082 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1083 | if test "x$cflags_specified" = "x" ; then |
| 1084 | CFLAGS="$CFLAGS -Wall" |
| 1085 | fi |
| 1086 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1087 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1088 | echo "configure:1089: checking how to run the C preprocessor" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1089 | # On Suns, sometimes $CPP names a directory. |
| 1090 | if test -n "$CPP" && test -d "$CPP"; then |
| 1091 | CPP= |
| 1092 | fi |
| 1093 | if test -z "$CPP"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1094 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1095 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1096 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1097 | # This must be in double quotes, not single quotes, because CPP may get |
| 1098 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1099 | CPP="${CC-cc} -E" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1100 | # On the NeXT, cc -E runs the code through the compiler's parser, |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1101 | # not just through cpp. |
| 1102 | cat > conftest.$ac_ext <<EOF |
| 1103 | #line 1104 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1104 | #include "confdefs.h" |
| 1105 | #include <assert.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1106 | Syntax Error |
| 1107 | EOF |
| 1108 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1109 | { (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1110 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1111 | if test -z "$ac_err"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1112 | : |
| 1113 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1114 | echo "$ac_err" >&5 |
| 1115 | echo "configure: failed program was:" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1116 | cat conftest.$ac_ext >&5 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1117 | rm -rf conftest* |
| 1118 | CPP="${CC-cc} -E -traditional-cpp" |
| 1119 | cat > conftest.$ac_ext <<EOF |
| 1120 | #line 1121 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1121 | #include "confdefs.h" |
| 1122 | #include <assert.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1123 | Syntax Error |
| 1124 | EOF |
| 1125 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1126 | { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1127 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1128 | if test -z "$ac_err"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1129 | : |
| 1130 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1131 | echo "$ac_err" >&5 |
| 1132 | echo "configure: failed program was:" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1133 | cat conftest.$ac_ext >&5 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1134 | rm -rf conftest* |
| 1135 | CPP="${CC-cc} -nologo -E" |
| 1136 | cat > conftest.$ac_ext <<EOF |
| 1137 | #line 1138 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1138 | #include "confdefs.h" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1139 | #include <assert.h> |
| 1140 | Syntax Error |
| 1141 | EOF |
| 1142 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1143 | { (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1144 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1145 | if test -z "$ac_err"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1146 | : |
| 1147 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1148 | echo "$ac_err" >&5 |
| 1149 | echo "configure: failed program was:" >&5 |
| 1150 | cat conftest.$ac_ext >&5 |
| 1151 | rm -rf conftest* |
| 1152 | CPP=/lib/cpp |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1153 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1154 | rm -f conftest* |
| 1155 | fi |
| 1156 | rm -f conftest* |
| 1157 | fi |
| 1158 | rm -f conftest* |
| 1159 | ac_cv_prog_CPP="$CPP" |
| 1160 | fi |
| 1161 | CPP="$ac_cv_prog_CPP" |
| 1162 | else |
| 1163 | ac_cv_prog_CPP="$CPP" |
| 1164 | fi |
| 1165 | echo "$ac_t""$CPP" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1166 | |
| 1167 | # Find a good install program. We prefer a C program (faster), |
| 1168 | # so one script is as good as another. But avoid the broken or |
| 1169 | # incompatible versions: |
| 1170 | # SysV /etc/install, /usr/sbin/install |
| 1171 | # SunOS /usr/etc/install |
| 1172 | # IRIX /sbin/install |
| 1173 | # AIX /bin/install |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1174 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1175 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1176 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1177 | # ./install, which can be erroneously created by make from ./install.sh. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1178 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 1179 | echo "configure:1180: checking for a BSD compatible install" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1180 | if test -z "$INSTALL"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1181 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1182 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1183 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1184 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 1185 | for ac_dir in $PATH; do |
| 1186 | # Account for people who put trailing slashes in PATH elements. |
| 1187 | case "$ac_dir/" in |
| 1188 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1189 | *) |
| 1190 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1191 | # Don't use installbsd from OSF since it installs stuff as root |
| 1192 | # by default. |
| 1193 | for ac_prog in ginstall scoinst install; do |
| 1194 | if test -f $ac_dir/$ac_prog; then |
| 1195 | if test $ac_prog = install && |
| 1196 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1197 | # AIX install. It has an incompatible calling convention. |
| 1198 | : |
| 1199 | else |
| 1200 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1201 | break 2 |
| 1202 | fi |
| 1203 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1204 | done |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1205 | ;; |
| 1206 | esac |
| 1207 | done |
| 1208 | IFS="$ac_save_IFS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1209 | |
| 1210 | fi |
| 1211 | if test "${ac_cv_path_install+set}" = set; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1212 | INSTALL="$ac_cv_path_install" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1213 | else |
| 1214 | # As a last resort, use the slow shell script. We don't cache a |
| 1215 | # path for INSTALL within a source directory, because that will |
| 1216 | # break other packages using the cache if that directory is |
| 1217 | # removed, or if the path is relative. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1218 | INSTALL="$ac_install_sh" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1219 | fi |
| 1220 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1221 | echo "$ac_t""$INSTALL" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1222 | |
| 1223 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1224 | # It thinks the first close brace ends the variable substitution. |
| 1225 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1226 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1227 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1228 | |
| 1229 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1230 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1231 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 1232 | echo "configure:1233: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1233 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 1234 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1235 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1236 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1237 | cat > conftestmake <<\EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1238 | all: |
| 1239 | @echo 'ac_maketemp="${MAKE}"' |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1240 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1241 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1242 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1243 | if test -n "$ac_maketemp"; then |
| 1244 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1245 | else |
| 1246 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1247 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1248 | rm -f conftestmake |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1249 | fi |
| 1250 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1251 | echo "$ac_t""yes" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1252 | SET_MAKE= |
| 1253 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1254 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1255 | SET_MAKE="MAKE=${MAKE-make}" |
| 1256 | fi |
| 1257 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1258 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
| 1259 | echo "configure:1260: checking build system type" >&5 |
| 1260 | |
| 1261 | build_alias=$build |
| 1262 | case "$build_alias" in |
| 1263 | NONE) |
| 1264 | case $nonopt in |
| 1265 | NONE) build_alias=$host_alias ;; |
| 1266 | *) build_alias=$nonopt ;; |
| 1267 | esac ;; |
| 1268 | esac |
| 1269 | |
| 1270 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 1271 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1272 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1273 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1274 | echo "$ac_t""$build" 1>&6 |
| 1275 | |
| 1276 | if test $host != $build; then |
| 1277 | ac_tool_prefix=${host_alias}- |
| 1278 | else |
| 1279 | ac_tool_prefix= |
| 1280 | fi |
| 1281 | |
| 1282 | # 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] | 1283 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1284 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1285 | echo "configure:1286: checking for $ac_word" >&5 |
| 1286 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 1287 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1288 | else |
| 1289 | if test -n "$AR"; then |
| 1290 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1291 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1292 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1293 | ac_dummy="$PATH" |
| 1294 | for ac_dir in $ac_dummy; do |
| 1295 | test -z "$ac_dir" && ac_dir=. |
| 1296 | if test -f $ac_dir/$ac_word; then |
| 1297 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 1298 | break |
| 1299 | fi |
| 1300 | done |
| 1301 | IFS="$ac_save_ifs" |
| 1302 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1303 | fi |
| 1304 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1305 | AR="$ac_cv_prog_AR" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1306 | if test -n "$AR"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1307 | echo "$ac_t""$AR" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1308 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1309 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1310 | fi |
| 1311 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1312 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1313 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1314 | # 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] | 1315 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1316 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1317 | echo "configure:1318: checking for $ac_word" >&5 |
| 1318 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1319 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1320 | else |
| 1321 | if test -n "$RANLIB"; then |
| 1322 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1323 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1324 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1325 | ac_dummy="$PATH" |
| 1326 | for ac_dir in $ac_dummy; do |
| 1327 | test -z "$ac_dir" && ac_dir=. |
| 1328 | if test -f $ac_dir/$ac_word; then |
| 1329 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 1330 | break |
| 1331 | fi |
| 1332 | done |
| 1333 | IFS="$ac_save_ifs" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1334 | fi |
| 1335 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1336 | RANLIB="$ac_cv_prog_RANLIB" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1337 | if test -n "$RANLIB"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1338 | echo "$ac_t""$RANLIB" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1339 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1340 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1341 | fi |
| 1342 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1343 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1344 | if test -z "$ac_cv_prog_RANLIB"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1345 | if test -n "$ac_tool_prefix"; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1346 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1347 | set dummy ranlib; ac_word=$2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1348 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1349 | echo "configure:1350: checking for $ac_word" >&5 |
| 1350 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1351 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1352 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1353 | if test -n "$RANLIB"; then |
| 1354 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1355 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1356 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1357 | ac_dummy="$PATH" |
| 1358 | for ac_dir in $ac_dummy; do |
| 1359 | test -z "$ac_dir" && ac_dir=. |
| 1360 | if test -f $ac_dir/$ac_word; then |
| 1361 | ac_cv_prog_RANLIB="ranlib" |
| 1362 | break |
| 1363 | fi |
| 1364 | done |
| 1365 | IFS="$ac_save_ifs" |
| 1366 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1367 | fi |
| 1368 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1369 | RANLIB="$ac_cv_prog_RANLIB" |
| 1370 | if test -n "$RANLIB"; then |
| 1371 | echo "$ac_t""$RANLIB" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1372 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1373 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1374 | fi |
| 1375 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1376 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1377 | RANLIB=":" |
| 1378 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1379 | fi |
| 1380 | |
| 1381 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1382 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
| 1383 | echo "configure:1384: checking for AIX" >&5 |
| 1384 | cat > conftest.$ac_ext <<EOF |
| 1385 | #line 1386 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1386 | #include "confdefs.h" |
| 1387 | #ifdef _AIX |
| 1388 | yes |
| 1389 | #endif |
| 1390 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1391 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1392 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1393 | egrep "yes" >/dev/null 2>&1; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1394 | rm -rf conftest* |
| 1395 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1396 | #define _ALL_SOURCE 1 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1397 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1398 | |
| 1399 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1400 | rm -rf conftest* |
| 1401 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1402 | fi |
| 1403 | rm -f conftest* |
| 1404 | |
| 1405 | |
| 1406 | |
| 1407 | # Check whether --enable-vtysh or --disable-vtysh was given. |
| 1408 | if test "${enable_vtysh+set}" = set; then |
| 1409 | enableval="$enable_vtysh" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1410 | : |
| 1411 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1412 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1413 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 1414 | if test "${enable_ipv6+set}" = set; then |
| 1415 | enableval="$enable_ipv6" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1416 | : |
| 1417 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1418 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1419 | # Check whether --enable-zebra or --disable-zebra was given. |
| 1420 | if test "${enable_zebra+set}" = set; then |
| 1421 | enableval="$enable_zebra" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1422 | : |
| 1423 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1424 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1425 | # Check whether --enable-bgpd or --disable-bgpd was given. |
| 1426 | if test "${enable_bgpd+set}" = set; then |
| 1427 | enableval="$enable_bgpd" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1428 | : |
| 1429 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1430 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1431 | # Check whether --enable-ripd or --disable-ripd was given. |
| 1432 | if test "${enable_ripd+set}" = set; then |
| 1433 | enableval="$enable_ripd" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1434 | : |
| 1435 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1436 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1437 | # Check whether --enable-ripngd or --disable-ripngd was given. |
| 1438 | if test "${enable_ripngd+set}" = set; then |
| 1439 | enableval="$enable_ripngd" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1440 | : |
| 1441 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1442 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1443 | # Check whether --enable-ospfd or --disable-ospfd was given. |
| 1444 | if test "${enable_ospfd+set}" = set; then |
| 1445 | enableval="$enable_ospfd" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1446 | : |
| 1447 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1448 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1449 | # Check whether --enable-ospfclient or --disable-ospfclient was given. |
| 1450 | if test "${enable_ospfclient+set}" = set; then |
| 1451 | enableval="$enable_ospfclient" |
| 1452 | : |
| 1453 | fi |
| 1454 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1455 | # Check whether --enable-ospf6d or --disable-ospf6d was given. |
| 1456 | if test "${enable_ospf6d+set}" = set; then |
| 1457 | enableval="$enable_ospf6d" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1458 | : |
| 1459 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1460 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1461 | # Check whether --enable-bgp-announce or --disable-bgp-announce was given. |
| 1462 | if test "${enable_bgp_announce+set}" = set; then |
| 1463 | enableval="$enable_bgp_announce" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1464 | : |
| 1465 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1466 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1467 | # Check whether --enable-netlink or --disable-netlink was given. |
| 1468 | if test "${enable_netlink+set}" = set; then |
| 1469 | enableval="$enable_netlink" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1470 | : |
| 1471 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1472 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1473 | # Check whether --enable-broken-aliases or --disable-broken-aliases was given. |
| 1474 | if test "${enable_broken_aliases+set}" = set; then |
| 1475 | enableval="$enable_broken_aliases" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1476 | : |
| 1477 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1478 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1479 | # Check whether --enable-snmp or --disable-snmp was given. |
| 1480 | if test "${enable_snmp+set}" = set; then |
| 1481 | enableval="$enable_snmp" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1482 | : |
| 1483 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1484 | |
| 1485 | # Check whether --with-libpam or --without-libpam was given. |
| 1486 | if test "${with_libpam+set}" = set; then |
| 1487 | withval="$with_libpam" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1488 | : |
| 1489 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1490 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1491 | # Check whether --enable-tcpsock or --disable-tcpsock was given. |
| 1492 | if test "${enable_tcpsock+set}" = set; then |
| 1493 | enableval="$enable_tcpsock" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1494 | : |
| 1495 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1496 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1497 | # Check whether --enable-nssa or --disable-nssa was given. |
| 1498 | if test "${enable_nssa+set}" = set; then |
| 1499 | enableval="$enable_nssa" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1500 | : |
| 1501 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1502 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1503 | # Check whether --enable-opaque-lsa or --disable-opaque-lsa was given. |
| 1504 | if test "${enable_opaque_lsa+set}" = set; then |
| 1505 | enableval="$enable_opaque_lsa" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1506 | : |
| 1507 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1508 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1509 | # Check whether --enable-ospf-te or --disable-ospf-te was given. |
| 1510 | if test "${enable_ospf_te+set}" = set; then |
| 1511 | enableval="$enable_ospf_te" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1512 | : |
| 1513 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1514 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1515 | # Check whether --enable-multipath or --disable-multipath was given. |
| 1516 | if test "${enable_multipath+set}" = set; then |
| 1517 | enableval="$enable_multipath" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1518 | : |
| 1519 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1520 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1521 | |
| 1522 | |
| 1523 | if test "${enable_broken_aliases}" = "yes"; then |
| 1524 | if test "${enable_netlink}" = "yes" |
| 1525 | then |
| 1526 | echo "Sorry, you can't use netlink with broken aliases" |
| 1527 | exit 1 |
| 1528 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1529 | cat >> confdefs.h <<\EOF |
| 1530 | #define HAVE_BROKEN_ALIASES |
| 1531 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1532 | |
| 1533 | enable_netlink=no |
| 1534 | fi |
| 1535 | |
| 1536 | if test "${enable_tcp_zebra}" = "yes"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1537 | cat >> confdefs.h <<\EOF |
| 1538 | #define HAVE_TCP_ZEBRA |
| 1539 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1540 | |
| 1541 | fi |
| 1542 | |
| 1543 | if test "${enable_nssa}" = "yes"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1544 | cat >> confdefs.h <<\EOF |
| 1545 | #define HAVE_NSSA |
| 1546 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1547 | |
| 1548 | fi |
| 1549 | |
| 1550 | if test "${enable_opaque_lsa}" = "yes"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1551 | cat >> confdefs.h <<\EOF |
| 1552 | #define HAVE_OPAQUE_LSA |
| 1553 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1554 | |
| 1555 | fi |
| 1556 | |
| 1557 | if test "${enable_ospf_te}" = "yes"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1558 | cat >> confdefs.h <<\EOF |
| 1559 | #define HAVE_OPAQUE_LSA |
| 1560 | EOF |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1561 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1562 | cat >> confdefs.h <<\EOF |
| 1563 | #define HAVE_OSPF_TE |
| 1564 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1565 | |
| 1566 | fi |
| 1567 | |
| 1568 | |
| 1569 | |
| 1570 | MULTIPATH_NUM=1 |
| 1571 | |
| 1572 | case "${enable_multipath}" in |
| 1573 | [0-9]|[1-9][0-9]) |
| 1574 | MULTIPATH_NUM="${enable_multipath}" |
| 1575 | ;; |
| 1576 | "") |
| 1577 | ;; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1578 | *) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1579 | echo "Please specify digit to --enable-multipath ARG." |
| 1580 | exit 1 |
| 1581 | ;; |
| 1582 | esac |
| 1583 | |
| 1584 | |
| 1585 | |
| 1586 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1587 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 1588 | echo "configure:1589: checking for ANSI C header files" >&5 |
| 1589 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1590 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1591 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1592 | cat > conftest.$ac_ext <<EOF |
| 1593 | #line 1594 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1594 | #include "confdefs.h" |
| 1595 | #include <stdlib.h> |
| 1596 | #include <stdarg.h> |
| 1597 | #include <string.h> |
| 1598 | #include <float.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1599 | EOF |
| 1600 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1601 | { (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1602 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1603 | if test -z "$ac_err"; then |
| 1604 | rm -rf conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1605 | ac_cv_header_stdc=yes |
| 1606 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1607 | echo "$ac_err" >&5 |
| 1608 | echo "configure: failed program was:" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1609 | cat conftest.$ac_ext >&5 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1610 | rm -rf conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1611 | ac_cv_header_stdc=no |
| 1612 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1613 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1614 | |
| 1615 | if test $ac_cv_header_stdc = yes; then |
| 1616 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1617 | cat > conftest.$ac_ext <<EOF |
| 1618 | #line 1619 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1619 | #include "confdefs.h" |
| 1620 | #include <string.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1621 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1623 | egrep "memchr" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1624 | : |
| 1625 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1626 | rm -rf conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1627 | ac_cv_header_stdc=no |
| 1628 | fi |
| 1629 | rm -f conftest* |
| 1630 | |
| 1631 | fi |
| 1632 | |
| 1633 | if test $ac_cv_header_stdc = yes; then |
| 1634 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1635 | cat > conftest.$ac_ext <<EOF |
| 1636 | #line 1637 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1637 | #include "confdefs.h" |
| 1638 | #include <stdlib.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1639 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1640 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1641 | egrep "free" >/dev/null 2>&1; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1642 | : |
| 1643 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1644 | rm -rf conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1645 | ac_cv_header_stdc=no |
| 1646 | fi |
| 1647 | rm -f conftest* |
| 1648 | |
| 1649 | fi |
| 1650 | |
| 1651 | if test $ac_cv_header_stdc = yes; then |
| 1652 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1653 | if test "$cross_compiling" = yes; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1654 | : |
| 1655 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1656 | cat > conftest.$ac_ext <<EOF |
| 1657 | #line 1658 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1658 | #include "confdefs.h" |
| 1659 | #include <ctype.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1660 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1661 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1662 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1663 | int main () { int i; for (i = 0; i < 256; i++) |
| 1664 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1665 | exit (0); } |
| 1666 | |
| 1667 | EOF |
| 1668 | if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1669 | then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1670 | : |
| 1671 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1672 | echo "configure: failed program was:" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1673 | cat conftest.$ac_ext >&5 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1674 | rm -fr conftest* |
| 1675 | ac_cv_header_stdc=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1676 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1677 | rm -fr conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1678 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1679 | |
| 1680 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1681 | fi |
| 1682 | |
| 1683 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 1684 | if test $ac_cv_header_stdc = yes; then |
| 1685 | cat >> confdefs.h <<\EOF |
| 1686 | #define STDC_HEADERS 1 |
| 1687 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1688 | |
| 1689 | fi |
| 1690 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1691 | for ac_hdr 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 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1692 | do |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1693 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1694 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1695 | echo "configure:1696: checking for $ac_hdr" >&5 |
| 1696 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1697 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1698 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1699 | cat > conftest.$ac_ext <<EOF |
| 1700 | #line 1701 "configure" |
| 1701 | #include "confdefs.h" |
| 1702 | #include <$ac_hdr> |
| 1703 | EOF |
| 1704 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1705 | { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1706 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1707 | if test -z "$ac_err"; then |
| 1708 | rm -rf conftest* |
| 1709 | eval "ac_cv_header_$ac_safe=yes" |
| 1710 | else |
| 1711 | echo "$ac_err" >&5 |
| 1712 | echo "configure: failed program was:" >&5 |
| 1713 | cat conftest.$ac_ext >&5 |
| 1714 | rm -rf conftest* |
| 1715 | eval "ac_cv_header_$ac_safe=no" |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1716 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1717 | rm -f conftest* |
| 1718 | fi |
| 1719 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1720 | echo "$ac_t""yes" 1>&6 |
| 1721 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1722 | cat >> confdefs.h <<EOF |
| 1723 | #define $ac_tr_hdr 1 |
| 1724 | EOF |
| 1725 | |
| 1726 | else |
| 1727 | echo "$ac_t""no" 1>&6 |
| 1728 | fi |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1729 | done |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1730 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1731 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1732 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 1733 | echo "configure:1734: checking for working const" >&5 |
| 1734 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 1735 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1736 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1737 | cat > conftest.$ac_ext <<EOF |
| 1738 | #line 1739 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1739 | #include "confdefs.h" |
| 1740 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1741 | int main() { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1742 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1743 | /* Ultrix mips cc rejects this. */ |
| 1744 | typedef int charset[2]; const charset x; |
| 1745 | /* SunOS 4.1.1 cc rejects this. */ |
| 1746 | char const *const *ccp; |
| 1747 | char **p; |
| 1748 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 1749 | struct point {int x, y;}; |
| 1750 | static struct point const zero = {0,0}; |
| 1751 | /* AIX XL C 1.02.0.0 rejects this. |
| 1752 | It does not let you subtract one const X* pointer from another in an arm |
| 1753 | of an if-expression whose if-part is not a constant expression */ |
| 1754 | const char *g = "string"; |
| 1755 | ccp = &g + (g ? g-g : 0); |
| 1756 | /* HPUX 7.0 cc rejects these. */ |
| 1757 | ++ccp; |
| 1758 | p = (char**) ccp; |
| 1759 | ccp = (char const *const *) p; |
| 1760 | { /* SCO 3.2v4 cc rejects this. */ |
| 1761 | char *t; |
| 1762 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1763 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1764 | *t++ = 0; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1765 | } |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1766 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 1767 | int x[] = {25, 17}; |
| 1768 | const int *foo = &x[0]; |
| 1769 | ++foo; |
| 1770 | } |
| 1771 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 1772 | typedef const int *iptr; |
| 1773 | iptr p = 0; |
| 1774 | ++p; |
| 1775 | } |
| 1776 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 1777 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 1778 | struct s { int j; const int *ap[3]; }; |
| 1779 | struct s *b; b->j = 5; |
| 1780 | } |
| 1781 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 1782 | const int foo = 10; |
| 1783 | } |
| 1784 | |
| 1785 | ; return 0; } |
| 1786 | EOF |
| 1787 | if { (eval echo configure:1788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1788 | rm -rf conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1789 | ac_cv_c_const=yes |
| 1790 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1791 | echo "configure: failed program was:" >&5 |
| 1792 | cat conftest.$ac_ext >&5 |
| 1793 | rm -rf conftest* |
| 1794 | ac_cv_c_const=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1795 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1796 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1797 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1798 | |
| 1799 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1800 | if test $ac_cv_c_const = no; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1801 | cat >> confdefs.h <<\EOF |
| 1802 | #define const |
| 1803 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1804 | |
| 1805 | fi |
| 1806 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1807 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
| 1808 | echo "configure:1809: checking return type of signal handlers" >&5 |
| 1809 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 1810 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1811 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1812 | cat > conftest.$ac_ext <<EOF |
| 1813 | #line 1814 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1814 | #include "confdefs.h" |
| 1815 | #include <sys/types.h> |
| 1816 | #include <signal.h> |
| 1817 | #ifdef signal |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1818 | #undef signal |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1819 | #endif |
| 1820 | #ifdef __cplusplus |
| 1821 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1822 | #else |
| 1823 | void (*signal ()) (); |
| 1824 | #endif |
| 1825 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1826 | int main() { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1827 | int i; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1828 | ; return 0; } |
| 1829 | EOF |
| 1830 | if { (eval echo configure:1831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1831 | rm -rf conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1832 | ac_cv_type_signal=void |
| 1833 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1834 | echo "configure: failed program was:" >&5 |
| 1835 | cat conftest.$ac_ext >&5 |
| 1836 | rm -rf conftest* |
| 1837 | ac_cv_type_signal=int |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1838 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1839 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1840 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1841 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1842 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
| 1843 | cat >> confdefs.h <<EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1844 | #define RETSIGTYPE $ac_cv_type_signal |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1845 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1846 | |
| 1847 | |
| 1848 | |
| 1849 | case "$host" in |
| 1850 | *-sunos5.6* | *-solaris2.6*) |
| 1851 | opsys=sol2-6 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1852 | cat >> confdefs.h <<\EOF |
| 1853 | #define SUNOS_5 |
| 1854 | EOF |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1855 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1856 | echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6 |
| 1857 | echo "configure:1858: checking for main in -lxnet" >&5 |
| 1858 | ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'` |
| 1859 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1860 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1861 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1862 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1863 | LIBS="-lxnet $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1864 | cat > conftest.$ac_ext <<EOF |
| 1865 | #line 1866 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1866 | #include "confdefs.h" |
| 1867 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1868 | int main() { |
| 1869 | main() |
| 1870 | ; return 0; } |
| 1871 | EOF |
| 1872 | if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1873 | rm -rf conftest* |
| 1874 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1875 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1876 | echo "configure: failed program was:" >&5 |
| 1877 | cat conftest.$ac_ext >&5 |
| 1878 | rm -rf conftest* |
| 1879 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1880 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1881 | rm -f conftest* |
| 1882 | LIBS="$ac_save_LIBS" |
| 1883 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1884 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1885 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1886 | echo "$ac_t""yes" 1>&6 |
| 1887 | ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 1888 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 1889 | cat >> confdefs.h <<EOF |
| 1890 | #define $ac_tr_lib 1 |
| 1891 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1892 | |
| 1893 | LIBS="-lxnet $LIBS" |
| 1894 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1895 | else |
| 1896 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1897 | fi |
| 1898 | |
| 1899 | CURSES=-lcurses |
| 1900 | ;; |
| 1901 | *-sunos5* | *-solaris2*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1902 | cat >> confdefs.h <<\EOF |
| 1903 | #define SUNOS_5 |
| 1904 | EOF |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 1905 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1906 | echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 |
| 1907 | echo "configure:1908: checking for main in -lsocket" >&5 |
| 1908 | ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` |
| 1909 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1910 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1911 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1912 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1913 | LIBS="-lsocket $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1914 | cat > conftest.$ac_ext <<EOF |
| 1915 | #line 1916 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1916 | #include "confdefs.h" |
| 1917 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1918 | int main() { |
| 1919 | main() |
| 1920 | ; return 0; } |
| 1921 | EOF |
| 1922 | if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1923 | rm -rf conftest* |
| 1924 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1925 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1926 | echo "configure: failed program was:" >&5 |
| 1927 | cat conftest.$ac_ext >&5 |
| 1928 | rm -rf conftest* |
| 1929 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1930 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1931 | rm -f conftest* |
| 1932 | LIBS="$ac_save_LIBS" |
| 1933 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1934 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1935 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1936 | echo "$ac_t""yes" 1>&6 |
| 1937 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 1938 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 1939 | cat >> confdefs.h <<EOF |
| 1940 | #define $ac_tr_lib 1 |
| 1941 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1942 | |
| 1943 | LIBS="-lsocket $LIBS" |
| 1944 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1945 | else |
| 1946 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1947 | fi |
| 1948 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1949 | echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 |
| 1950 | echo "configure:1951: checking for main in -lnsl" >&5 |
| 1951 | ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` |
| 1952 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1953 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1954 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1955 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1956 | LIBS="-lnsl $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1957 | cat > conftest.$ac_ext <<EOF |
| 1958 | #line 1959 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1959 | #include "confdefs.h" |
| 1960 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1961 | int main() { |
| 1962 | main() |
| 1963 | ; return 0; } |
| 1964 | EOF |
| 1965 | if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1966 | rm -rf conftest* |
| 1967 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1968 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1969 | echo "configure: failed program was:" >&5 |
| 1970 | cat conftest.$ac_ext >&5 |
| 1971 | rm -rf conftest* |
| 1972 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1973 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1974 | rm -f conftest* |
| 1975 | LIBS="$ac_save_LIBS" |
| 1976 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1977 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1978 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1979 | echo "$ac_t""yes" 1>&6 |
| 1980 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 1981 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 1982 | cat >> confdefs.h <<EOF |
| 1983 | #define $ac_tr_lib 1 |
| 1984 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1985 | |
| 1986 | LIBS="-lnsl $LIBS" |
| 1987 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1988 | else |
| 1989 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1990 | fi |
| 1991 | |
| 1992 | CURSES=-lcurses |
| 1993 | ;; |
| 1994 | *-linux-*) |
| 1995 | opsys=gnu-linux |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 1996 | cat >> confdefs.h <<\EOF |
| 1997 | #define GNU_LINUX |
| 1998 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1999 | |
| 2000 | ;; |
| 2001 | *-nec-sysv4*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2002 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
| 2003 | echo "configure:2004: checking for gethostbyname in -lnsl" >&5 |
| 2004 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 2005 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2006 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2007 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2008 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2009 | LIBS="-lnsl $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2010 | cat > conftest.$ac_ext <<EOF |
| 2011 | #line 2012 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2012 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2013 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2014 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2015 | builtin and then its argument prototype would still apply. */ |
| 2016 | char gethostbyname(); |
| 2017 | |
| 2018 | int main() { |
| 2019 | gethostbyname() |
| 2020 | ; return 0; } |
| 2021 | EOF |
| 2022 | if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2023 | rm -rf conftest* |
| 2024 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2025 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2026 | echo "configure: failed program was:" >&5 |
| 2027 | cat conftest.$ac_ext >&5 |
| 2028 | rm -rf conftest* |
| 2029 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2030 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2031 | rm -f conftest* |
| 2032 | LIBS="$ac_save_LIBS" |
| 2033 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2034 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2035 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2036 | echo "$ac_t""yes" 1>&6 |
| 2037 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2038 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2039 | cat >> confdefs.h <<EOF |
| 2040 | #define $ac_tr_lib 1 |
| 2041 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2042 | |
| 2043 | LIBS="-lnsl $LIBS" |
| 2044 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2045 | else |
| 2046 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2047 | fi |
| 2048 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2049 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
| 2050 | echo "configure:2051: checking for socket in -lsocket" >&5 |
| 2051 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 2052 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2053 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2054 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2055 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2056 | LIBS="-lsocket $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2057 | cat > conftest.$ac_ext <<EOF |
| 2058 | #line 2059 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2059 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2060 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2061 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2062 | builtin and then its argument prototype would still apply. */ |
| 2063 | char socket(); |
| 2064 | |
| 2065 | int main() { |
| 2066 | socket() |
| 2067 | ; return 0; } |
| 2068 | EOF |
| 2069 | if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2070 | rm -rf conftest* |
| 2071 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2072 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2073 | echo "configure: failed program was:" >&5 |
| 2074 | cat conftest.$ac_ext >&5 |
| 2075 | rm -rf conftest* |
| 2076 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2077 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2078 | rm -f conftest* |
| 2079 | LIBS="$ac_save_LIBS" |
| 2080 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2081 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2082 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2083 | echo "$ac_t""yes" 1>&6 |
| 2084 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2085 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2086 | cat >> confdefs.h <<EOF |
| 2087 | #define $ac_tr_lib 1 |
| 2088 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2089 | |
| 2090 | LIBS="-lsocket $LIBS" |
| 2091 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2092 | else |
| 2093 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2094 | fi |
| 2095 | |
| 2096 | ;; |
| 2097 | *-freebsd3.2) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2098 | cat >> confdefs.h <<\EOF |
| 2099 | #define FREEBSD_32 |
| 2100 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2101 | |
| 2102 | ;; |
| 2103 | *-openbsd*) |
| 2104 | opsys=openbsd |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2105 | cat >> confdefs.h <<\EOF |
| 2106 | #define OPEN_BSD |
| 2107 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2108 | |
| 2109 | ;; |
| 2110 | *-bsdi*) |
| 2111 | opsys=bsdi |
| 2112 | OTHER_METHOD="mtu_kvm.o" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2113 | echo $ac_n "checking for main in -lkvm""... $ac_c" 1>&6 |
| 2114 | echo "configure:2115: checking for main in -lkvm" >&5 |
| 2115 | ac_lib_var=`echo kvm'_'main | sed 'y%./+-%__p_%'` |
| 2116 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2117 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2118 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2119 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2120 | LIBS="-lkvm $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2121 | cat > conftest.$ac_ext <<EOF |
| 2122 | #line 2123 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2123 | #include "confdefs.h" |
| 2124 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2125 | int main() { |
| 2126 | main() |
| 2127 | ; return 0; } |
| 2128 | EOF |
| 2129 | if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2130 | rm -rf conftest* |
| 2131 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2132 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2133 | echo "configure: failed program was:" >&5 |
| 2134 | cat conftest.$ac_ext >&5 |
| 2135 | rm -rf conftest* |
| 2136 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2137 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2138 | rm -f conftest* |
| 2139 | LIBS="$ac_save_LIBS" |
| 2140 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2141 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2142 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2143 | echo "$ac_t""yes" 1>&6 |
| 2144 | ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2145 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2146 | cat >> confdefs.h <<EOF |
| 2147 | #define $ac_tr_lib 1 |
| 2148 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2149 | |
| 2150 | LIBS="-lkvm $LIBS" |
| 2151 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2152 | else |
| 2153 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2154 | fi |
| 2155 | |
| 2156 | ;; |
| 2157 | esac |
| 2158 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2159 | case "${enable_vtysh}" in |
| 2160 | "yes") VTYSH="vtysh"; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2161 | cat >> confdefs.h <<\EOF |
| 2162 | #define VTYSH |
| 2163 | EOF |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2164 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2165 | echo $ac_n "checking for tputs in -ltinfo""... $ac_c" 1>&6 |
| 2166 | echo "configure:2167: checking for tputs in -ltinfo" >&5 |
| 2167 | ac_lib_var=`echo tinfo'_'tputs | sed 'y%./+-%__p_%'` |
| 2168 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2169 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2170 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2171 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2172 | LIBS="-ltinfo $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2173 | cat > conftest.$ac_ext <<EOF |
| 2174 | #line 2175 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2175 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2176 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2177 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2178 | builtin and then its argument prototype would still apply. */ |
| 2179 | char tputs(); |
| 2180 | |
| 2181 | int main() { |
| 2182 | tputs() |
| 2183 | ; return 0; } |
| 2184 | EOF |
| 2185 | if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2186 | rm -rf conftest* |
| 2187 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2188 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2189 | echo "configure: failed program was:" >&5 |
| 2190 | cat conftest.$ac_ext >&5 |
| 2191 | rm -rf conftest* |
| 2192 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2193 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2194 | rm -f conftest* |
| 2195 | LIBS="$ac_save_LIBS" |
| 2196 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2197 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2198 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2199 | echo "$ac_t""yes" 1>&6 |
| 2200 | ac_tr_lib=HAVE_LIB`echo tinfo | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2201 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2202 | cat >> confdefs.h <<EOF |
| 2203 | #define $ac_tr_lib 1 |
| 2204 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2205 | |
| 2206 | LIBS="-ltinfo $LIBS" |
| 2207 | |
| 2208 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2209 | echo "$ac_t""no" 1>&6 |
| 2210 | echo $ac_n "checking for tputs in -lncurses""... $ac_c" 1>&6 |
| 2211 | echo "configure:2212: checking for tputs in -lncurses" >&5 |
| 2212 | ac_lib_var=`echo ncurses'_'tputs | sed 'y%./+-%__p_%'` |
| 2213 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2214 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2215 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2216 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2217 | LIBS="-lncurses $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2218 | cat > conftest.$ac_ext <<EOF |
| 2219 | #line 2220 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2220 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2221 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2222 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2223 | builtin and then its argument prototype would still apply. */ |
| 2224 | char tputs(); |
| 2225 | |
| 2226 | int main() { |
| 2227 | tputs() |
| 2228 | ; return 0; } |
| 2229 | EOF |
| 2230 | if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2231 | rm -rf conftest* |
| 2232 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2233 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2234 | echo "configure: failed program was:" >&5 |
| 2235 | cat conftest.$ac_ext >&5 |
| 2236 | rm -rf conftest* |
| 2237 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2238 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2239 | rm -f conftest* |
| 2240 | LIBS="$ac_save_LIBS" |
| 2241 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2242 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2243 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2244 | echo "$ac_t""yes" 1>&6 |
| 2245 | ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/^a-zA-Z0-9_/_/g' \ |
| 2246 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2247 | cat >> confdefs.h <<EOF |
| 2248 | #define $ac_tr_lib 1 |
| 2249 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2250 | |
| 2251 | LIBS="-lncurses $LIBS" |
| 2252 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2253 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2254 | echo "$ac_t""no" 1>&6 |
| 2255 | fi |
| 2256 | |
| 2257 | fi |
| 2258 | |
| 2259 | echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6 |
| 2260 | echo "configure:2261: checking for main in -lreadline" >&5 |
| 2261 | ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'` |
| 2262 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2263 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2264 | else |
| 2265 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2266 | LIBS="-lreadline $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2267 | cat > conftest.$ac_ext <<EOF |
| 2268 | #line 2269 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2269 | #include "confdefs.h" |
| 2270 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2271 | int main() { |
| 2272 | main() |
| 2273 | ; return 0; } |
| 2274 | EOF |
| 2275 | if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2276 | rm -rf conftest* |
| 2277 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2278 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2279 | echo "configure: failed program was:" >&5 |
| 2280 | cat conftest.$ac_ext >&5 |
| 2281 | rm -rf conftest* |
| 2282 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2283 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2284 | rm -f conftest* |
| 2285 | LIBS="$ac_save_LIBS" |
| 2286 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2287 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2288 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2289 | echo "$ac_t""yes" 1>&6 |
| 2290 | ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2291 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2292 | cat >> confdefs.h <<EOF |
| 2293 | #define $ac_tr_lib 1 |
| 2294 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2295 | |
| 2296 | LIBS="-lreadline $LIBS" |
| 2297 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2298 | else |
| 2299 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2300 | fi |
| 2301 | |
| 2302 | if test $ac_cv_lib_readline_main = no; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2303 | { echo "configure: error: vtysh needs libreadline but was not found on your system." 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2304 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2305 | ac_safe=`echo "readline/history.h" | sed 'y%./+-%__p_%'` |
| 2306 | echo $ac_n "checking for readline/history.h""... $ac_c" 1>&6 |
| 2307 | echo "configure:2308: checking for readline/history.h" >&5 |
| 2308 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2309 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2310 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2311 | cat > conftest.$ac_ext <<EOF |
| 2312 | #line 2313 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2313 | #include "confdefs.h" |
| 2314 | #include <readline/history.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2315 | EOF |
| 2316 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2317 | { (eval echo configure:2318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2318 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2319 | if test -z "$ac_err"; then |
| 2320 | rm -rf conftest* |
| 2321 | eval "ac_cv_header_$ac_safe=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2322 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2323 | echo "$ac_err" >&5 |
| 2324 | echo "configure: failed program was:" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2325 | cat conftest.$ac_ext >&5 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2326 | rm -rf conftest* |
| 2327 | eval "ac_cv_header_$ac_safe=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2328 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2329 | rm -f conftest* |
| 2330 | fi |
| 2331 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2332 | echo "$ac_t""yes" 1>&6 |
| 2333 | : |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2334 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2335 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2336 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2337 | |
| 2338 | if test $ac_cv_header_readline_history_h = no;then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2339 | { echo "configure: error: readline is too old to have readline/history.h, please update to the latest readline library." 1>&2; exit 1; } |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2340 | fi |
| 2341 | ;; |
| 2342 | "no" ) VTYSH="";; |
| 2343 | * ) ;; |
| 2344 | esac |
| 2345 | |
| 2346 | if test "$with_libpam" = "yes"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2347 | echo $ac_n "checking for pam_start in -lpam""... $ac_c" 1>&6 |
| 2348 | echo "configure:2349: checking for pam_start in -lpam" >&5 |
| 2349 | ac_lib_var=`echo pam'_'pam_start | sed 'y%./+-%__p_%'` |
| 2350 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2351 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2352 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2353 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2354 | LIBS="-lpam $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2355 | cat > conftest.$ac_ext <<EOF |
| 2356 | #line 2357 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2357 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2358 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2359 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2360 | builtin and then its argument prototype would still apply. */ |
| 2361 | char pam_start(); |
| 2362 | |
| 2363 | int main() { |
| 2364 | pam_start() |
| 2365 | ; return 0; } |
| 2366 | EOF |
| 2367 | if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2368 | rm -rf conftest* |
| 2369 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2370 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2371 | echo "configure: failed program was:" >&5 |
| 2372 | cat conftest.$ac_ext >&5 |
| 2373 | rm -rf conftest* |
| 2374 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2375 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2376 | rm -f conftest* |
| 2377 | LIBS="$ac_save_LIBS" |
| 2378 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2379 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2380 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2381 | echo "$ac_t""yes" 1>&6 |
| 2382 | echo $ac_n "checking for misc_conv in -lpam""... $ac_c" 1>&6 |
| 2383 | echo "configure:2384: checking for misc_conv in -lpam" >&5 |
| 2384 | ac_lib_var=`echo pam'_'misc_conv | sed 'y%./+-%__p_%'` |
| 2385 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2386 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2387 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2388 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2389 | LIBS="-lpam $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2390 | cat > conftest.$ac_ext <<EOF |
| 2391 | #line 2392 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2392 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2393 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2394 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2395 | builtin and then its argument prototype would still apply. */ |
| 2396 | char misc_conv(); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2397 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2398 | int main() { |
| 2399 | misc_conv() |
| 2400 | ; return 0; } |
| 2401 | EOF |
| 2402 | if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2403 | rm -rf conftest* |
| 2404 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2405 | else |
| 2406 | echo "configure: failed program was:" >&5 |
| 2407 | cat conftest.$ac_ext >&5 |
| 2408 | rm -rf conftest* |
| 2409 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2410 | fi |
| 2411 | rm -f conftest* |
| 2412 | LIBS="$ac_save_LIBS" |
| 2413 | |
| 2414 | fi |
| 2415 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2416 | echo "$ac_t""yes" 1>&6 |
| 2417 | cat >> confdefs.h <<\EOF |
| 2418 | #define USE_PAM |
| 2419 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2420 | |
| 2421 | LIBPAM="-lpam" |
| 2422 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2423 | echo "$ac_t""no" 1>&6 |
| 2424 | cat >> confdefs.h <<\EOF |
| 2425 | #define USE_PAM |
| 2426 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2427 | |
| 2428 | LIBPAM="-lpam -lpam_misc" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2429 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2430 | fi |
| 2431 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2432 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2433 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2434 | echo "$ac_t""no" 1>&6 |
| 2435 | echo $ac_n "checking for pam_end in -lpam""... $ac_c" 1>&6 |
| 2436 | echo "configure:2437: checking for pam_end in -lpam" >&5 |
| 2437 | ac_lib_var=`echo pam'_'pam_end | sed 'y%./+-%__p_%'` |
| 2438 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2439 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2440 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2441 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2442 | LIBS="-lpam -ldl $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2443 | cat > conftest.$ac_ext <<EOF |
| 2444 | #line 2445 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2445 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2446 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2447 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2448 | builtin and then its argument prototype would still apply. */ |
| 2449 | char pam_end(); |
| 2450 | |
| 2451 | int main() { |
| 2452 | pam_end() |
| 2453 | ; return 0; } |
| 2454 | EOF |
| 2455 | if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2456 | rm -rf conftest* |
| 2457 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2458 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2459 | echo "configure: failed program was:" >&5 |
| 2460 | cat conftest.$ac_ext >&5 |
| 2461 | rm -rf conftest* |
| 2462 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2463 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2464 | rm -f conftest* |
| 2465 | LIBS="$ac_save_LIBS" |
| 2466 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2467 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2468 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2469 | echo "$ac_t""yes" 1>&6 |
| 2470 | echo $ac_n "checking for misc_conv in -lpam""... $ac_c" 1>&6 |
| 2471 | echo "configure:2472: checking for misc_conv in -lpam" >&5 |
| 2472 | ac_lib_var=`echo pam'_'misc_conv | sed 'y%./+-%__p_%'` |
| 2473 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2474 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2475 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2476 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2477 | LIBS="-lpam $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2478 | cat > conftest.$ac_ext <<EOF |
| 2479 | #line 2480 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2480 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2481 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2482 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2483 | builtin and then its argument prototype would still apply. */ |
| 2484 | char misc_conv(); |
| 2485 | |
| 2486 | int main() { |
| 2487 | misc_conv() |
| 2488 | ; return 0; } |
| 2489 | EOF |
| 2490 | if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2491 | rm -rf conftest* |
| 2492 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2493 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2494 | echo "configure: failed program was:" >&5 |
| 2495 | cat conftest.$ac_ext >&5 |
| 2496 | rm -rf conftest* |
| 2497 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2498 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2499 | rm -f conftest* |
| 2500 | LIBS="$ac_save_LIBS" |
| 2501 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2502 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2503 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2504 | echo "$ac_t""yes" 1>&6 |
| 2505 | cat >> confdefs.h <<\EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2506 | #define USE_PAM 1 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2507 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2508 | |
| 2509 | LIBPAM="-lpam -ldl" |
| 2510 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2511 | echo "$ac_t""no" 1>&6 |
| 2512 | cat >> confdefs.h <<\EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2513 | #define USE_PAM 1 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2514 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2515 | |
| 2516 | LIBPAM="-lpam -ldl -lpam_misc" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2517 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2518 | fi |
| 2519 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2520 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2521 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2522 | echo "$ac_t""no" 1>&6 |
| 2523 | echo "configure: warning: *** pam support will not be built ***" 1>&2 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2524 | fi |
| 2525 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2526 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2527 | |
| 2528 | fi |
| 2529 | |
| 2530 | fi |
| 2531 | |
| 2532 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2533 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
| 2534 | echo "configure:2535: checking whether byte ordering is bigendian" >&5 |
| 2535 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
| 2536 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2537 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2538 | ac_cv_c_bigendian=unknown |
| 2539 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 2540 | cat > conftest.$ac_ext <<EOF |
| 2541 | #line 2542 "configure" |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2542 | #include "confdefs.h" |
| 2543 | #include <sys/types.h> |
| 2544 | #include <sys/param.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2545 | int main() { |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2546 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2547 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 2548 | bogus endian macros |
| 2549 | #endif |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2550 | ; return 0; } |
| 2551 | EOF |
| 2552 | if { (eval echo configure:2553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2553 | rm -rf conftest* |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2554 | # It does; now see whether it defined to BIG_ENDIAN or not. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2555 | cat > conftest.$ac_ext <<EOF |
| 2556 | #line 2557 "configure" |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2557 | #include "confdefs.h" |
| 2558 | #include <sys/types.h> |
| 2559 | #include <sys/param.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2560 | int main() { |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2561 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2562 | #if BYTE_ORDER != BIG_ENDIAN |
| 2563 | not big endian |
| 2564 | #endif |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2565 | ; return 0; } |
| 2566 | EOF |
| 2567 | if { (eval echo configure:2568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2568 | rm -rf conftest* |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2569 | ac_cv_c_bigendian=yes |
| 2570 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2571 | echo "configure: failed program was:" >&5 |
| 2572 | cat conftest.$ac_ext >&5 |
| 2573 | rm -rf conftest* |
| 2574 | ac_cv_c_bigendian=no |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2575 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2576 | rm -f conftest* |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2577 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2578 | echo "configure: failed program was:" >&5 |
| 2579 | cat conftest.$ac_ext >&5 |
| 2580 | fi |
| 2581 | rm -f conftest* |
| 2582 | if test $ac_cv_c_bigendian = unknown; then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2583 | if test "$cross_compiling" = yes; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2584 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2585 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2586 | cat > conftest.$ac_ext <<EOF |
| 2587 | #line 2588 "configure" |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2588 | #include "confdefs.h" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2589 | main () { |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2590 | /* Are we little or big endian? From Harbison&Steele. */ |
| 2591 | union |
| 2592 | { |
| 2593 | long l; |
| 2594 | char c[sizeof (long)]; |
| 2595 | } u; |
| 2596 | u.l = 1; |
| 2597 | exit (u.c[sizeof (long) - 1] == 1); |
| 2598 | } |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2599 | EOF |
| 2600 | if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2601 | then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2602 | ac_cv_c_bigendian=no |
| 2603 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2604 | echo "configure: failed program was:" >&5 |
| 2605 | cat conftest.$ac_ext >&5 |
| 2606 | rm -fr conftest* |
| 2607 | ac_cv_c_bigendian=yes |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2608 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2609 | rm -fr conftest* |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2610 | fi |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2611 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2612 | fi |
| 2613 | fi |
| 2614 | |
| 2615 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 2616 | if test $ac_cv_c_bigendian = yes; then |
| 2617 | cat >> confdefs.h <<\EOF |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2618 | #define WORDS_BIGENDIAN 1 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2619 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2620 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2621 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2622 | |
| 2623 | |
| 2624 | |
| 2625 | for ac_func in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs |
| 2626 | do |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2627 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2628 | echo "configure:2629: checking for $ac_func" >&5 |
| 2629 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2630 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2631 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2632 | cat > conftest.$ac_ext <<EOF |
| 2633 | #line 2634 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2634 | #include "confdefs.h" |
| 2635 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2636 | which can conflict with char $ac_func(); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2637 | #include <assert.h> |
| 2638 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2639 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2640 | builtin and then its argument prototype would still apply. */ |
| 2641 | char $ac_func(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2642 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2643 | int main() { |
| 2644 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2645 | /* The GNU C library defines this for functions which it implements |
| 2646 | to always fail with ENOSYS. Some functions are actually named |
| 2647 | something starting with __ and the normal name is an alias. */ |
| 2648 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2649 | choke me |
| 2650 | #else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2651 | $ac_func(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2652 | #endif |
| 2653 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2654 | ; return 0; } |
| 2655 | EOF |
| 2656 | if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2657 | rm -rf conftest* |
| 2658 | eval "ac_cv_func_$ac_func=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2659 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2660 | echo "configure: failed program was:" >&5 |
| 2661 | cat conftest.$ac_ext >&5 |
| 2662 | rm -rf conftest* |
| 2663 | eval "ac_cv_func_$ac_func=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2664 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2665 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2666 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2667 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2668 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2669 | echo "$ac_t""yes" 1>&6 |
| 2670 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2671 | cat >> confdefs.h <<EOF |
| 2672 | #define $ac_tr_func 1 |
| 2673 | EOF |
| 2674 | |
| 2675 | else |
| 2676 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2677 | fi |
| 2678 | done |
| 2679 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2680 | for ac_func in setproctitle |
| 2681 | do |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2682 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2683 | echo "configure:2684: checking for $ac_func" >&5 |
| 2684 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2685 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2686 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2687 | cat > conftest.$ac_ext <<EOF |
| 2688 | #line 2689 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2689 | #include "confdefs.h" |
| 2690 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2691 | which can conflict with char $ac_func(); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2692 | #include <assert.h> |
| 2693 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2694 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2695 | builtin and then its argument prototype would still apply. */ |
| 2696 | char $ac_func(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2697 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2698 | int main() { |
| 2699 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2700 | /* The GNU C library defines this for functions which it implements |
| 2701 | to always fail with ENOSYS. Some functions are actually named |
| 2702 | something starting with __ and the normal name is an alias. */ |
| 2703 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2704 | choke me |
| 2705 | #else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2706 | $ac_func(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2707 | #endif |
| 2708 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2709 | ; return 0; } |
| 2710 | EOF |
| 2711 | if { (eval echo configure:2712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2712 | rm -rf conftest* |
| 2713 | eval "ac_cv_func_$ac_func=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2714 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2715 | echo "configure: failed program was:" >&5 |
| 2716 | cat conftest.$ac_ext >&5 |
| 2717 | rm -rf conftest* |
| 2718 | eval "ac_cv_func_$ac_func=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2719 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2720 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2721 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2722 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2723 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2724 | echo "$ac_t""yes" 1>&6 |
| 2725 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2726 | cat >> confdefs.h <<EOF |
| 2727 | #define $ac_tr_func 1 |
| 2728 | EOF |
| 2729 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2730 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2731 | echo "$ac_t""no" 1>&6 |
| 2732 | echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6 |
| 2733 | echo "configure:2734: checking for setproctitle in -lutil" >&5 |
| 2734 | ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'` |
| 2735 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2736 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2737 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2738 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2739 | LIBS="-lutil $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2740 | cat > conftest.$ac_ext <<EOF |
| 2741 | #line 2742 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2742 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2743 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2744 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2745 | builtin and then its argument prototype would still apply. */ |
| 2746 | char setproctitle(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2747 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2748 | int main() { |
| 2749 | setproctitle() |
| 2750 | ; return 0; } |
| 2751 | EOF |
| 2752 | if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2753 | rm -rf conftest* |
| 2754 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2755 | else |
| 2756 | echo "configure: failed program was:" >&5 |
| 2757 | cat conftest.$ac_ext >&5 |
| 2758 | rm -rf conftest* |
| 2759 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2760 | fi |
| 2761 | rm -f conftest* |
| 2762 | LIBS="$ac_save_LIBS" |
| 2763 | |
| 2764 | fi |
| 2765 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2766 | echo "$ac_t""yes" 1>&6 |
| 2767 | LIBS="$LIBS -lutil"; cat >> confdefs.h <<\EOF |
| 2768 | #define HAVE_SETPROCTITLE 1 |
| 2769 | EOF |
| 2770 | |
| 2771 | else |
| 2772 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2773 | fi |
| 2774 | |
| 2775 | fi |
| 2776 | done |
| 2777 | |
| 2778 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2779 | echo $ac_n "checking zebra between kernel interface method""... $ac_c" 1>&6 |
| 2780 | echo "configure:2781: checking zebra between kernel interface method" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2781 | if test x"$opsys" = x"gnu-linux"; then |
| 2782 | if test "${enable_netlink}" = "yes";then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2783 | echo "$ac_t""netlink" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2784 | RT_METHOD=rt_netlink.o |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2785 | cat >> confdefs.h <<\EOF |
| 2786 | #define HAVE_NETLINK |
| 2787 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2788 | |
| 2789 | netlink=yes |
| 2790 | elif test "${enable_netlink}" = "no"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2791 | echo "$ac_t""ioctl" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2792 | RT_METHOD=rt_ioctl.o |
| 2793 | netlink=no |
| 2794 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2795 | echo "$ac_t""netlink" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2796 | RT_METHOD=rt_netlink.o |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2797 | cat >> confdefs.h <<\EOF |
| 2798 | #define HAVE_NETLINK |
| 2799 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2800 | |
| 2801 | netlink=yes |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2802 | fi |
| 2803 | else |
| 2804 | if test "$opsys" = "sol2-6";then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2805 | echo "$ac_t""solaris" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2806 | KERNEL_METHOD="kernel_socket.o" |
| 2807 | RT_METHOD="rt_socket.o" |
| 2808 | else |
| 2809 | if test "$cross_compiling" = yes; then |
| 2810 | KERNEL_METHOD=kernel_socket.o |
| 2811 | RT_METHOD=rt_socket.o |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2812 | echo "$ac_t""socket" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2813 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2814 | cat > conftest.$ac_ext <<EOF |
| 2815 | #line 2816 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2816 | #include "confdefs.h" |
| 2817 | #include <errno.h> |
| 2818 | #include <sys/types.h> |
| 2819 | #include <sys/socket.h> |
| 2820 | |
| 2821 | main () |
| 2822 | { |
| 2823 | int ac_sock; |
| 2824 | |
| 2825 | ac_sock = socket (AF_ROUTE, SOCK_RAW, 0); |
| 2826 | if (ac_sock < 0 && errno == EINVAL) |
| 2827 | exit (1); |
| 2828 | exit (0); |
| 2829 | } |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2830 | EOF |
| 2831 | if { (eval echo configure:2832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2832 | then |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 2833 | KERNEL_METHOD=kernel_socket.o |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2834 | RT_METHOD=rt_socket.o |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2835 | echo "$ac_t""socket" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2836 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2837 | echo "configure: failed program was:" >&5 |
| 2838 | cat conftest.$ac_ext >&5 |
| 2839 | rm -fr conftest* |
| 2840 | RT_METHOD=rt_ioctl.o |
| 2841 | echo "$ac_t""ioctl" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2842 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2843 | rm -fr conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2844 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2845 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2846 | fi |
| 2847 | fi |
| 2848 | |
| 2849 | |
| 2850 | |
| 2851 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2852 | echo $ac_n "checking route read method check""... $ac_c" 1>&6 |
| 2853 | echo "configure:2854: checking route read method check" >&5 |
| 2854 | if eval "test \"`echo '$''{'zebra_rtread'+set}'`\" = set"; then |
| 2855 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2856 | else |
| 2857 | if test "$netlink" = yes; then |
| 2858 | RTREAD_METHOD="rtread_netlink.o" |
| 2859 | zebra_rtread="netlink" |
| 2860 | else |
| 2861 | for zebra_rtread in /proc/net/route /dev/ip /dev/null; |
| 2862 | do |
| 2863 | test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break |
| 2864 | done |
| 2865 | case $zebra_rtread in |
| 2866 | "/proc/net/route") RTREAD_METHOD="rtread_proc.o" |
| 2867 | zebra_rtread="proc";; |
| 2868 | "/dev/ip") RTREAD_METHOD="rtread_getmsg.o" |
| 2869 | zebra_rtread="getmsg";; |
| 2870 | *) RTREAD_METHOD="rtread_sysctl.o" |
| 2871 | zebra_rtread="sysctl";; |
| 2872 | esac |
| 2873 | fi |
| 2874 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2875 | |
| 2876 | echo "$ac_t""$zebra_rtread" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2877 | |
| 2878 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2879 | echo $ac_n "checking interface looking up method""... $ac_c" 1>&6 |
| 2880 | echo "configure:2881: checking interface looking up method" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2881 | if test "$netlink" = yes; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2882 | echo "$ac_t""netlink" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2883 | IF_METHOD=if_netlink.o |
| 2884 | else |
| 2885 | if test "$opsys" = "sol2-6";then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2886 | echo "$ac_t""solaris" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2887 | IF_METHOD=if_ioctl.o |
| 2888 | elif test "$opsys" = "openbsd";then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2889 | echo "$ac_t""openbsd" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2890 | IF_METHOD=if_ioctl.o |
| 2891 | elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2892 | echo "$ac_t""sysctl" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2893 | IF_METHOD=if_sysctl.o |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2894 | cat >> confdefs.h <<\EOF |
| 2895 | #define HAVE_NET_RT_IFLIST |
| 2896 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2897 | |
| 2898 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2899 | echo "$ac_t""ioctl" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2900 | IF_METHOD=if_ioctl.o |
| 2901 | fi |
| 2902 | fi |
| 2903 | |
| 2904 | |
| 2905 | if test -r /proc/net/dev; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2906 | cat >> confdefs.h <<\EOF |
| 2907 | #define HAVE_PROC_NET_DEV |
| 2908 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2909 | |
| 2910 | IF_PROC=if_proc.o |
| 2911 | fi |
| 2912 | |
| 2913 | if test -r /proc/net/if_inet6; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2914 | cat >> confdefs.h <<\EOF |
| 2915 | #define HAVE_PROC_NET_IF_INET6 |
| 2916 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2917 | |
| 2918 | IF_PROC=if_proc.o |
| 2919 | fi |
| 2920 | |
| 2921 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2922 | echo $ac_n "checking ipforward method check""... $ac_c" 1>&6 |
| 2923 | echo "configure:2924: checking ipforward method check" >&5 |
| 2924 | if eval "test \"`echo '$''{'zebra_ipforward_path'+set}'`\" = set"; then |
| 2925 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2926 | else |
| 2927 | for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null; |
| 2928 | do |
| 2929 | test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break |
| 2930 | done |
| 2931 | case $zebra_ipforward_path in |
| 2932 | "/proc/net/snmp") IPFORWARD=ipforward_proc.o |
| 2933 | zebra_ipforward_path="proc";; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2934 | "/dev/ip") |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2935 | case "$host" in |
| 2936 | *-nec-sysv4*) IPFORWARD=ipforward_ews.o |
| 2937 | zebra_ipforward_path="ews";; |
| 2938 | *) IPFORWARD=ipforward_solaris.o |
| 2939 | zebra_ipforward_path="solaris";; |
| 2940 | esac;; |
| 2941 | *) IPFORWARD=ipforward_sysctl.o |
| 2942 | zebra_ipforward_path="sysctl";; |
| 2943 | esac |
| 2944 | fi |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2945 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2946 | echo "$ac_t""$zebra_ipforward_path" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2947 | |
| 2948 | |
| 2949 | for ac_func in getaddrinfo |
| 2950 | do |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2951 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2952 | echo "configure:2953: checking for $ac_func" >&5 |
| 2953 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2954 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2955 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2956 | cat > conftest.$ac_ext <<EOF |
| 2957 | #line 2958 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2958 | #include "confdefs.h" |
| 2959 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2960 | which can conflict with char $ac_func(); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2961 | #include <assert.h> |
| 2962 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2963 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2964 | builtin and then its argument prototype would still apply. */ |
| 2965 | char $ac_func(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2966 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2967 | int main() { |
| 2968 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2969 | /* The GNU C library defines this for functions which it implements |
| 2970 | to always fail with ENOSYS. Some functions are actually named |
| 2971 | something starting with __ and the normal name is an alias. */ |
| 2972 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2973 | choke me |
| 2974 | #else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2975 | $ac_func(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2976 | #endif |
| 2977 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2978 | ; return 0; } |
| 2979 | EOF |
| 2980 | if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2981 | rm -rf conftest* |
| 2982 | eval "ac_cv_func_$ac_func=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2983 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2984 | echo "configure: failed program was:" >&5 |
| 2985 | cat conftest.$ac_ext >&5 |
| 2986 | rm -rf conftest* |
| 2987 | eval "ac_cv_func_$ac_func=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2988 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2989 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2990 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 2991 | |
| 2992 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2993 | echo "$ac_t""yes" 1>&6 |
| 2994 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2995 | cat >> confdefs.h <<EOF |
| 2996 | #define $ac_tr_func 1 |
| 2997 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 2998 | have_getaddrinfo=yes |
| 2999 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3000 | echo "$ac_t""no" 1>&6 |
| 3001 | have_getaddrinfo=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3002 | fi |
| 3003 | done |
| 3004 | |
| 3005 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3006 | echo $ac_n "checking whether does this OS have IPv6 stack""... $ac_c" 1>&6 |
| 3007 | echo "configure:3008: checking whether does this OS have IPv6 stack" >&5 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3008 | if test "${enable_ipv6}" = "no"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3009 | echo "$ac_t""disabled" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3010 | else |
| 3011 | if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then |
| 3012 | zebra_cv_ipv6=yes |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3013 | cat >> confdefs.h <<\EOF |
| 3014 | #define HAVE_IPV6 |
| 3015 | EOF |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3016 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3017 | cat >> confdefs.h <<\EOF |
| 3018 | #define INRIA_IPV6 |
| 3019 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3020 | |
| 3021 | RIPNGD="ripngd" |
| 3022 | OSPF6D="ospf6d" |
| 3023 | LIB_IPV6="" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3024 | echo "$ac_t""INRIA IPv6" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3025 | fi |
| 3026 | if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then |
| 3027 | zebra_cv_ipv6=yes |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3028 | cat >> confdefs.h <<\EOF |
| 3029 | #define HAVE_IPV6 |
| 3030 | EOF |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3031 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3032 | cat >> confdefs.h <<\EOF |
| 3033 | #define KAME |
| 3034 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3035 | |
| 3036 | RIPNGD="ripngd" |
| 3037 | OSPF6D="ospf6d" |
| 3038 | if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then |
| 3039 | LIB_IPV6="-L/usr/local/v6/lib -linet6" |
| 3040 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3041 | echo "$ac_t""KAME" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3042 | fi |
| 3043 | if grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then |
| 3044 | zebra_cv_ipv6=yes |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3045 | cat >> confdefs.h <<\EOF |
| 3046 | #define HAVE_IPV6 |
| 3047 | EOF |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3048 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3049 | cat >> confdefs.h <<\EOF |
| 3050 | #define NRL |
| 3051 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3052 | |
| 3053 | RIPNGD="ripngd" |
| 3054 | OSPF6D="ospf6d" |
| 3055 | if test x"$opsys" = x"bsdi";then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3056 | cat >> confdefs.h <<\EOF |
| 3057 | #define BSDI_NRL |
| 3058 | EOF |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3059 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3060 | echo "$ac_t""BSDI_NRL" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3061 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3062 | echo "$ac_t""NRL" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3063 | fi |
| 3064 | fi |
| 3065 | |
| 3066 | if test "${enable_ipv6}" = "yes"; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3067 | cat > conftest.$ac_ext <<EOF |
| 3068 | #line 3069 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3069 | #include "confdefs.h" |
| 3070 | |
| 3071 | #include <linux/version.h> |
| 3072 | /* 2.1.128 or later */ |
| 3073 | #if LINUX_VERSION_CODE >= 0x020180 |
| 3074 | yes |
| 3075 | #endif |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3076 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3077 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3078 | egrep "yes" >/dev/null 2>&1; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3079 | rm -rf conftest* |
| 3080 | zebra_cv_ipv6=yes; zebra_cv_linux_ipv6=yes;echo "$ac_t""Linux IPv6" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3081 | fi |
| 3082 | rm -f conftest* |
| 3083 | |
| 3084 | else |
| 3085 | if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route" |
| 3086 | then |
| 3087 | zebra_cv_ipv6=yes |
| 3088 | zebra_cv_linux_ipv6=yes |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3089 | echo "$ac_t""Linux IPv6" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3090 | fi |
| 3091 | fi |
| 3092 | |
| 3093 | if test "$zebra_cv_linux_ipv6" = "yes";then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3094 | cat >> confdefs.h <<\EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3095 | #define HAVE_IPV6 1 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3096 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3097 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3098 | echo $ac_n "checking for GNU libc 2.1""... $ac_c" 1>&6 |
| 3099 | echo "configure:3100: checking for GNU libc 2.1" >&5 |
| 3100 | cat > conftest.$ac_ext <<EOF |
| 3101 | #line 3102 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3102 | #include "confdefs.h" |
| 3103 | |
| 3104 | #include <features.h> |
| 3105 | #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 |
| 3106 | yes |
| 3107 | #endif |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3108 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3109 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3110 | egrep "yes" >/dev/null 2>&1; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3111 | rm -rf conftest* |
| 3112 | glibc=yes; echo "$ac_t""yes" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3113 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3114 | rm -rf conftest* |
| 3115 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3116 | fi |
| 3117 | rm -f conftest* |
| 3118 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3119 | cat >> confdefs.h <<\EOF |
| 3120 | #define LINUX_IPV6 |
| 3121 | EOF |
| 3122 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3123 | RIPNGD="ripngd" |
| 3124 | OSPF6D="ospf6d" |
| 3125 | if test "$glibc" != "yes"; then |
| 3126 | INCLUDES="-I/usr/inet6/include" |
| 3127 | if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then |
| 3128 | LIB_IPV6="-L/usr/inet6/lib -linet6" |
| 3129 | fi |
| 3130 | fi |
| 3131 | fi |
| 3132 | |
| 3133 | LIBS="$LIB_IPV6 $LIBS" |
| 3134 | |
| 3135 | |
| 3136 | if test x"$RIPNGD" = x""; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3137 | echo "$ac_t""IPv4 only" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3138 | fi |
| 3139 | fi |
| 3140 | |
| 3141 | if test "${enable_zebra}" = "no";then |
| 3142 | ZEBRA="" |
| 3143 | else |
| 3144 | ZEBRA="zebra" |
| 3145 | fi |
| 3146 | |
| 3147 | if test "${enable_bgpd}" = "no";then |
| 3148 | BGPD="" |
| 3149 | else |
| 3150 | BGPD="bgpd" |
| 3151 | fi |
| 3152 | |
| 3153 | if test "${enable_ripd}" = "no";then |
| 3154 | RIPD="" |
| 3155 | else |
| 3156 | RIPD="ripd" |
| 3157 | fi |
| 3158 | |
| 3159 | if test "${enable_ospfd}" = "no";then |
| 3160 | OSPFD="" |
| 3161 | else |
| 3162 | OSPFD="ospfd" |
| 3163 | fi |
| 3164 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3165 | if test "${enable_ospfclient}" = "no";then |
| 3166 | OSPFCLIENT="" |
| 3167 | else |
| 3168 | OSPFCLIENT="ospfclient" |
| 3169 | fi |
| 3170 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3171 | case "${enable_ripngd}" in |
| 3172 | "yes") RIPNGD="ripngd";; |
| 3173 | "no" ) RIPNGD="";; |
| 3174 | * ) ;; |
| 3175 | esac |
| 3176 | |
| 3177 | case "${enable_ospf6d}" in |
| 3178 | "yes") OSPF6D="ospf6d";; |
| 3179 | "no" ) OSPF6D="";; |
| 3180 | * ) ;; |
| 3181 | esac |
| 3182 | |
| 3183 | if test "${enable_bgp_announce}" = "no";then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3184 | cat >> confdefs.h <<\EOF |
| 3185 | #define DISABLE_BGP_ANNOUNCE |
| 3186 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3187 | |
| 3188 | fi |
| 3189 | |
| 3190 | |
| 3191 | |
| 3192 | |
| 3193 | |
| 3194 | |
| 3195 | |
| 3196 | |
| 3197 | |
| 3198 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3199 | |
| 3200 | echo $ac_n "checking for inet_ntop in -lc""... $ac_c" 1>&6 |
| 3201 | echo "configure:3202: checking for inet_ntop in -lc" >&5 |
| 3202 | ac_lib_var=`echo c'_'inet_ntop | sed 'y%./+-%__p_%'` |
| 3203 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3204 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3205 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3206 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3207 | LIBS="-lc $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3208 | cat > conftest.$ac_ext <<EOF |
| 3209 | #line 3210 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3210 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3211 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3212 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3213 | builtin and then its argument prototype would still apply. */ |
| 3214 | char inet_ntop(); |
| 3215 | |
| 3216 | int main() { |
| 3217 | inet_ntop() |
| 3218 | ; return 0; } |
| 3219 | EOF |
| 3220 | if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3221 | rm -rf conftest* |
| 3222 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3223 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3224 | echo "configure: failed program was:" >&5 |
| 3225 | cat conftest.$ac_ext >&5 |
| 3226 | rm -rf conftest* |
| 3227 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3228 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3229 | rm -f conftest* |
| 3230 | LIBS="$ac_save_LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3231 | |
| 3232 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3233 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3234 | echo "$ac_t""yes" 1>&6 |
| 3235 | cat >> confdefs.h <<\EOF |
| 3236 | #define HAVE_INET_NTOP |
| 3237 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3238 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3239 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3240 | echo "$ac_t""no" 1>&6 |
| 3241 | fi |
| 3242 | |
| 3243 | echo $ac_n "checking for inet_pton in -lc""... $ac_c" 1>&6 |
| 3244 | echo "configure:3245: checking for inet_pton in -lc" >&5 |
| 3245 | ac_lib_var=`echo c'_'inet_pton | sed 'y%./+-%__p_%'` |
| 3246 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3247 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3248 | else |
| 3249 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3250 | LIBS="-lc $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3251 | cat > conftest.$ac_ext <<EOF |
| 3252 | #line 3253 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3253 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3254 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3255 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3256 | builtin and then its argument prototype would still apply. */ |
| 3257 | char inet_pton(); |
| 3258 | |
| 3259 | int main() { |
| 3260 | inet_pton() |
| 3261 | ; return 0; } |
| 3262 | EOF |
| 3263 | if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3264 | rm -rf conftest* |
| 3265 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3266 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3267 | echo "configure: failed program was:" >&5 |
| 3268 | cat conftest.$ac_ext >&5 |
| 3269 | rm -rf conftest* |
| 3270 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3271 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3272 | rm -f conftest* |
| 3273 | LIBS="$ac_save_LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3274 | |
| 3275 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3276 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3277 | echo "$ac_t""yes" 1>&6 |
| 3278 | cat >> confdefs.h <<\EOF |
| 3279 | #define HAVE_INET_PTON |
| 3280 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3281 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3282 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3283 | echo "$ac_t""no" 1>&6 |
| 3284 | fi |
| 3285 | |
| 3286 | echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 |
| 3287 | echo "configure:3288: checking for crypt in -lcrypt" >&5 |
| 3288 | ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` |
| 3289 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3290 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3291 | else |
| 3292 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3293 | LIBS="-lcrypt $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3294 | cat > conftest.$ac_ext <<EOF |
| 3295 | #line 3296 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3296 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3297 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3298 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3299 | builtin and then its argument prototype would still apply. */ |
| 3300 | char crypt(); |
| 3301 | |
| 3302 | int main() { |
| 3303 | crypt() |
| 3304 | ; return 0; } |
| 3305 | EOF |
| 3306 | if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3307 | rm -rf conftest* |
| 3308 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3309 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3310 | echo "configure: failed program was:" >&5 |
| 3311 | cat conftest.$ac_ext >&5 |
| 3312 | rm -rf conftest* |
| 3313 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3314 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3315 | rm -f conftest* |
| 3316 | LIBS="$ac_save_LIBS" |
| 3317 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3318 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3319 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3320 | echo "$ac_t""yes" 1>&6 |
| 3321 | ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3322 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 3323 | cat >> confdefs.h <<EOF |
| 3324 | #define $ac_tr_lib 1 |
| 3325 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3326 | |
| 3327 | LIBS="-lcrypt $LIBS" |
| 3328 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3329 | else |
| 3330 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3331 | fi |
| 3332 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3333 | echo $ac_n "checking for res_init in -lresolv""... $ac_c" 1>&6 |
| 3334 | echo "configure:3335: checking for res_init in -lresolv" >&5 |
| 3335 | ac_lib_var=`echo resolv'_'res_init | sed 'y%./+-%__p_%'` |
| 3336 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3337 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3338 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3339 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3340 | LIBS="-lresolv $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3341 | cat > conftest.$ac_ext <<EOF |
| 3342 | #line 3343 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3343 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3344 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3345 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3346 | builtin and then its argument prototype would still apply. */ |
| 3347 | char res_init(); |
| 3348 | |
| 3349 | int main() { |
| 3350 | res_init() |
| 3351 | ; return 0; } |
| 3352 | EOF |
| 3353 | if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3354 | rm -rf conftest* |
| 3355 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3356 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3357 | echo "configure: failed program was:" >&5 |
| 3358 | cat conftest.$ac_ext >&5 |
| 3359 | rm -rf conftest* |
| 3360 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3361 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3362 | rm -f conftest* |
| 3363 | LIBS="$ac_save_LIBS" |
| 3364 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3365 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3366 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3367 | echo "$ac_t""yes" 1>&6 |
| 3368 | ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3369 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 3370 | cat >> confdefs.h <<EOF |
| 3371 | #define $ac_tr_lib 1 |
| 3372 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3373 | |
| 3374 | LIBS="-lresolv $LIBS" |
| 3375 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3376 | else |
| 3377 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3378 | fi |
| 3379 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3380 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 |
| 3381 | echo "configure:3382: checking for main in -lm" >&5 |
| 3382 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` |
| 3383 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3384 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3385 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3386 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3387 | LIBS="-lm $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3388 | cat > conftest.$ac_ext <<EOF |
| 3389 | #line 3390 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3390 | #include "confdefs.h" |
| 3391 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3392 | int main() { |
| 3393 | main() |
| 3394 | ; return 0; } |
| 3395 | EOF |
| 3396 | if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3397 | rm -rf conftest* |
| 3398 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3399 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3400 | echo "configure: failed program was:" >&5 |
| 3401 | cat conftest.$ac_ext >&5 |
| 3402 | rm -rf conftest* |
| 3403 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3404 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3405 | rm -f conftest* |
| 3406 | LIBS="$ac_save_LIBS" |
| 3407 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3408 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3409 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3410 | echo "$ac_t""yes" 1>&6 |
| 3411 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3412 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 3413 | cat >> confdefs.h <<EOF |
| 3414 | #define $ac_tr_lib 1 |
| 3415 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3416 | |
| 3417 | LIBS="-lm $LIBS" |
| 3418 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3419 | else |
| 3420 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3421 | fi |
| 3422 | |
| 3423 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3424 | echo $ac_n "checking for __inet_ntop""... $ac_c" 1>&6 |
| 3425 | echo "configure:3426: checking for __inet_ntop" >&5 |
| 3426 | if eval "test \"`echo '$''{'ac_cv_func___inet_ntop'+set}'`\" = set"; then |
| 3427 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3428 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3429 | cat > conftest.$ac_ext <<EOF |
| 3430 | #line 3431 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3431 | #include "confdefs.h" |
| 3432 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3433 | which can conflict with char __inet_ntop(); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3434 | #include <assert.h> |
| 3435 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3436 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3437 | builtin and then its argument prototype would still apply. */ |
| 3438 | char __inet_ntop(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3439 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3440 | int main() { |
| 3441 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3442 | /* The GNU C library defines this for functions which it implements |
| 3443 | to always fail with ENOSYS. Some functions are actually named |
| 3444 | something starting with __ and the normal name is an alias. */ |
| 3445 | #if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop) |
| 3446 | choke me |
| 3447 | #else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3448 | __inet_ntop(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3449 | #endif |
| 3450 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3451 | ; return 0; } |
| 3452 | EOF |
| 3453 | if { (eval echo configure:3454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3454 | rm -rf conftest* |
| 3455 | eval "ac_cv_func___inet_ntop=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3456 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3457 | echo "configure: failed program was:" >&5 |
| 3458 | cat conftest.$ac_ext >&5 |
| 3459 | rm -rf conftest* |
| 3460 | eval "ac_cv_func___inet_ntop=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3461 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3462 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3463 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3464 | |
| 3465 | if eval "test \"`echo '$ac_cv_func_'__inet_ntop`\" = yes"; then |
| 3466 | echo "$ac_t""yes" 1>&6 |
| 3467 | cat >> confdefs.h <<\EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3468 | #define HAVE_INET_NTOP 1 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3469 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3470 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3471 | else |
| 3472 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3473 | fi |
| 3474 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3475 | echo $ac_n "checking for __inet_pton""... $ac_c" 1>&6 |
| 3476 | echo "configure:3477: checking for __inet_pton" >&5 |
| 3477 | if eval "test \"`echo '$''{'ac_cv_func___inet_pton'+set}'`\" = set"; then |
| 3478 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3479 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3480 | cat > conftest.$ac_ext <<EOF |
| 3481 | #line 3482 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3482 | #include "confdefs.h" |
| 3483 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3484 | which can conflict with char __inet_pton(); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3485 | #include <assert.h> |
| 3486 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3487 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3488 | builtin and then its argument prototype would still apply. */ |
| 3489 | char __inet_pton(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3490 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3491 | int main() { |
| 3492 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3493 | /* The GNU C library defines this for functions which it implements |
| 3494 | to always fail with ENOSYS. Some functions are actually named |
| 3495 | something starting with __ and the normal name is an alias. */ |
| 3496 | #if defined (__stub___inet_pton) || defined (__stub_____inet_pton) |
| 3497 | choke me |
| 3498 | #else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3499 | __inet_pton(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3500 | #endif |
| 3501 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3502 | ; return 0; } |
| 3503 | EOF |
| 3504 | if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3505 | rm -rf conftest* |
| 3506 | eval "ac_cv_func___inet_pton=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3507 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3508 | echo "configure: failed program was:" >&5 |
| 3509 | cat conftest.$ac_ext >&5 |
| 3510 | rm -rf conftest* |
| 3511 | eval "ac_cv_func___inet_pton=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3512 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3513 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3514 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3515 | |
| 3516 | if eval "test \"`echo '$ac_cv_func_'__inet_pton`\" = yes"; then |
| 3517 | echo "$ac_t""yes" 1>&6 |
| 3518 | cat >> confdefs.h <<\EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3519 | #define HAVE_INET_PTON 1 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3520 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3521 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3522 | else |
| 3523 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3524 | fi |
| 3525 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3526 | echo $ac_n "checking for __inet_aton""... $ac_c" 1>&6 |
| 3527 | echo "configure:3528: checking for __inet_aton" >&5 |
| 3528 | if eval "test \"`echo '$''{'ac_cv_func___inet_aton'+set}'`\" = set"; then |
| 3529 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3530 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3531 | cat > conftest.$ac_ext <<EOF |
| 3532 | #line 3533 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3533 | #include "confdefs.h" |
| 3534 | /* System header to define __stub macros and hopefully few prototypes, |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3535 | which can conflict with char __inet_aton(); below. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3536 | #include <assert.h> |
| 3537 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3538 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3539 | builtin and then its argument prototype would still apply. */ |
| 3540 | char __inet_aton(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3541 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3542 | int main() { |
| 3543 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3544 | /* The GNU C library defines this for functions which it implements |
| 3545 | to always fail with ENOSYS. Some functions are actually named |
| 3546 | something starting with __ and the normal name is an alias. */ |
| 3547 | #if defined (__stub___inet_aton) || defined (__stub_____inet_aton) |
| 3548 | choke me |
| 3549 | #else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3550 | __inet_aton(); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3551 | #endif |
| 3552 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3553 | ; return 0; } |
| 3554 | EOF |
| 3555 | if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3556 | rm -rf conftest* |
| 3557 | eval "ac_cv_func___inet_aton=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3558 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3559 | echo "configure: failed program was:" >&5 |
| 3560 | cat conftest.$ac_ext >&5 |
| 3561 | rm -rf conftest* |
| 3562 | eval "ac_cv_func___inet_aton=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3563 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3564 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3565 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3566 | |
| 3567 | if eval "test \"`echo '$ac_cv_func_'__inet_aton`\" = yes"; then |
| 3568 | echo "$ac_t""yes" 1>&6 |
| 3569 | cat >> confdefs.h <<\EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3570 | #define HAVE_INET_ATON 1 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3571 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3572 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3573 | else |
| 3574 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3575 | fi |
| 3576 | |
| 3577 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3578 | echo $ac_n "checking for regexec in -lc""... $ac_c" 1>&6 |
| 3579 | echo "configure:3580: checking for regexec in -lc" >&5 |
| 3580 | ac_lib_var=`echo c'_'regexec | sed 'y%./+-%__p_%'` |
| 3581 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3582 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3583 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3584 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3585 | LIBS="-lc $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3586 | cat > conftest.$ac_ext <<EOF |
| 3587 | #line 3588 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3588 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3589 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3590 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3591 | builtin and then its argument prototype would still apply. */ |
| 3592 | char regexec(); |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 3593 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3594 | int main() { |
| 3595 | regexec() |
| 3596 | ; return 0; } |
| 3597 | EOF |
| 3598 | if { (eval echo configure:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3599 | rm -rf conftest* |
| 3600 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3601 | else |
| 3602 | echo "configure: failed program was:" >&5 |
| 3603 | cat conftest.$ac_ext >&5 |
| 3604 | rm -rf conftest* |
| 3605 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3606 | fi |
| 3607 | rm -f conftest* |
| 3608 | LIBS="$ac_save_LIBS" |
| 3609 | |
| 3610 | fi |
| 3611 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3612 | echo "$ac_t""yes" 1>&6 |
| 3613 | cat >> confdefs.h <<\EOF |
| 3614 | #define HAVE_GNU_REGEX |
| 3615 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3616 | |
| 3617 | LIB_REGEX="" |
| 3618 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3619 | echo "$ac_t""no" 1>&6 |
| 3620 | LIB_REGEX="regex.o" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3621 | fi |
| 3622 | |
| 3623 | |
| 3624 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3625 | if test "${enable_snmp}" = "yes";then |
| 3626 | old_libs="${LIBS}" |
| 3627 | LIBS="-L/usr/local/lib" |
| 3628 | unset ac_cv_lib_snmp_asn_parse_int |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3629 | echo $ac_n "checking for asn_parse_int in -lsnmp""... $ac_c" 1>&6 |
| 3630 | echo "configure:3631: checking for asn_parse_int in -lsnmp" >&5 |
| 3631 | ac_lib_var=`echo snmp'_'asn_parse_int | sed 'y%./+-%__p_%'` |
| 3632 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3633 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3634 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3635 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3636 | LIBS="-lsnmp $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3637 | cat > conftest.$ac_ext <<EOF |
| 3638 | #line 3639 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3639 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3640 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3641 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3642 | builtin and then its argument prototype would still apply. */ |
| 3643 | char asn_parse_int(); |
| 3644 | |
| 3645 | int main() { |
| 3646 | asn_parse_int() |
| 3647 | ; return 0; } |
| 3648 | EOF |
| 3649 | if { (eval echo configure:3650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3650 | rm -rf conftest* |
| 3651 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3652 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3653 | echo "configure: failed program was:" >&5 |
| 3654 | cat conftest.$ac_ext >&5 |
| 3655 | rm -rf conftest* |
| 3656 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3657 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3658 | rm -f conftest* |
| 3659 | LIBS="$ac_save_LIBS" |
| 3660 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3661 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3662 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3663 | echo "$ac_t""yes" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3664 | HAVE_SNMP=yes |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3665 | else |
| 3666 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3667 | fi |
| 3668 | |
| 3669 | if test "${HAVE_SNMP}" = ""; then |
| 3670 | unset ac_cv_lib_snmp_asn_parse_int |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3671 | echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6 |
| 3672 | echo "configure:3673: checking for main in -lcrypto" >&5 |
| 3673 | ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'` |
| 3674 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3675 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3676 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3677 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3678 | LIBS="-lcrypto $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3679 | cat > conftest.$ac_ext <<EOF |
| 3680 | #line 3681 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3681 | #include "confdefs.h" |
| 3682 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3683 | int main() { |
| 3684 | main() |
| 3685 | ; return 0; } |
| 3686 | EOF |
| 3687 | if { (eval echo configure:3688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3688 | rm -rf conftest* |
| 3689 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3690 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3691 | echo "configure: failed program was:" >&5 |
| 3692 | cat conftest.$ac_ext >&5 |
| 3693 | rm -rf conftest* |
| 3694 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3695 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3696 | rm -f conftest* |
| 3697 | LIBS="$ac_save_LIBS" |
| 3698 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3699 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3700 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3701 | echo "$ac_t""yes" 1>&6 |
| 3702 | NEED_CRYPTO=yes |
| 3703 | else |
| 3704 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3705 | fi |
| 3706 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3707 | if test "${NEED_CRYPTO}" = ""; then |
| 3708 | echo $ac_n "checking for asn_parse_int in -lsnmp""... $ac_c" 1>&6 |
| 3709 | echo "configure:3710: checking for asn_parse_int in -lsnmp" >&5 |
| 3710 | ac_lib_var=`echo snmp'_'asn_parse_int | sed 'y%./+-%__p_%'` |
| 3711 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3712 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3713 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3714 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3715 | LIBS="-lsnmp $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3716 | cat > conftest.$ac_ext <<EOF |
| 3717 | #line 3718 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3718 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3719 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3720 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3721 | builtin and then its argument prototype would still apply. */ |
| 3722 | char asn_parse_int(); |
| 3723 | |
| 3724 | int main() { |
| 3725 | asn_parse_int() |
| 3726 | ; return 0; } |
| 3727 | EOF |
| 3728 | if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3729 | rm -rf conftest* |
| 3730 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3731 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3732 | echo "configure: failed program was:" >&5 |
| 3733 | cat conftest.$ac_ext >&5 |
| 3734 | rm -rf conftest* |
| 3735 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3736 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3737 | rm -f conftest* |
| 3738 | LIBS="$ac_save_LIBS" |
| 3739 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3740 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3741 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3742 | echo "$ac_t""yes" 1>&6 |
| 3743 | HAVE_SNMP=yes; NEED_CRYPTO=yes |
| 3744 | else |
| 3745 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3746 | fi |
| 3747 | |
| 3748 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3749 | echo $ac_n "checking for asn_parse_int in -lsnmp""... $ac_c" 1>&6 |
| 3750 | echo "configure:3751: checking for asn_parse_int in -lsnmp" >&5 |
| 3751 | ac_lib_var=`echo snmp'_'asn_parse_int | sed 'y%./+-%__p_%'` |
| 3752 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3753 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3754 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3755 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3756 | LIBS="-lsnmp "-lcrypto" $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3757 | cat > conftest.$ac_ext <<EOF |
| 3758 | #line 3759 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3759 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3760 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3761 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3762 | builtin and then its argument prototype would still apply. */ |
| 3763 | char asn_parse_int(); |
| 3764 | |
| 3765 | int main() { |
| 3766 | asn_parse_int() |
| 3767 | ; return 0; } |
| 3768 | EOF |
| 3769 | if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3770 | rm -rf conftest* |
| 3771 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3772 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3773 | echo "configure: failed program was:" >&5 |
| 3774 | cat conftest.$ac_ext >&5 |
| 3775 | rm -rf conftest* |
| 3776 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3777 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3778 | rm -f conftest* |
| 3779 | LIBS="$ac_save_LIBS" |
| 3780 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3781 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3782 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3783 | echo "$ac_t""yes" 1>&6 |
| 3784 | HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto" |
| 3785 | else |
| 3786 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3787 | fi |
| 3788 | |
| 3789 | fi |
| 3790 | fi |
| 3791 | LIBS="${old_libs}" |
| 3792 | |
| 3793 | if test "${HAVE_SNMP}" = ""; then |
| 3794 | old_libs="${LIBS}" |
| 3795 | LIBS="-L/usr/local/lib" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3796 | echo $ac_n "checking for asn_parse_int in -lsnmp""... $ac_c" 1>&6 |
| 3797 | echo "configure:3798: checking for asn_parse_int in -lsnmp" >&5 |
| 3798 | ac_lib_var=`echo snmp'_'asn_parse_int | sed 'y%./+-%__p_%'` |
| 3799 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3800 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3801 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3802 | ac_save_LIBS="$LIBS" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3803 | LIBS="-lsnmp $LIBS" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3804 | cat > conftest.$ac_ext <<EOF |
| 3805 | #line 3806 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3806 | #include "confdefs.h" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3807 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3808 | /* We use char because int might match the return type of a gcc2 |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3809 | builtin and then its argument prototype would still apply. */ |
| 3810 | char asn_parse_int(); |
| 3811 | |
| 3812 | int main() { |
| 3813 | asn_parse_int() |
| 3814 | ; return 0; } |
| 3815 | EOF |
| 3816 | if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3817 | rm -rf conftest* |
| 3818 | eval "ac_cv_lib_$ac_lib_var=yes" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3819 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3820 | echo "configure: failed program was:" >&5 |
| 3821 | cat conftest.$ac_ext >&5 |
| 3822 | rm -rf conftest* |
| 3823 | eval "ac_cv_lib_$ac_lib_var=no" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3824 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3825 | rm -f conftest* |
| 3826 | LIBS="$ac_save_LIBS" |
| 3827 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3828 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3829 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3830 | echo "$ac_t""yes" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3831 | HAVE_SNMP=yes |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3832 | else |
| 3833 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3834 | fi |
| 3835 | |
| 3836 | LIBS="${old_libs}" |
| 3837 | fi |
| 3838 | if test "${HAVE_SNMP}" = "yes"; then |
paul | 569c0f0 | 2003-03-02 21:19:26 +0000 | [diff] [blame] | 3839 | 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] | 3840 | do |
| 3841 | test -f "${ac_snmp}" && break |
| 3842 | done |
| 3843 | case ${ac_snmp} in |
paul | 569c0f0 | 2003-03-02 21:19:26 +0000 | [diff] [blame] | 3844 | /usr/include/net-snmp/*) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3845 | cat >> confdefs.h <<\EOF |
| 3846 | #define HAVE_SNMP |
| 3847 | EOF |
paul | 569c0f0 | 2003-03-02 21:19:26 +0000 | [diff] [blame] | 3848 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3849 | cat >> confdefs.h <<\EOF |
| 3850 | #define UCD_COMPATIBLE |
| 3851 | EOF |
paul | 569c0f0 | 2003-03-02 21:19:26 +0000 | [diff] [blame] | 3852 | |
| 3853 | CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp" |
| 3854 | LIBS="${LIBS} -lsnmp" |
| 3855 | ;; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3856 | /usr/include/ucd-snmp/*) |
| 3857 | cat >> confdefs.h <<\EOF |
| 3858 | #define HAVE_SNMP |
| 3859 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3860 | |
| 3861 | CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp" |
| 3862 | LIBS="${LIBS} -lsnmp" |
| 3863 | ;; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3864 | /usr/local/include/ucd-snmp/*) |
| 3865 | cat >> confdefs.h <<\EOF |
| 3866 | #define HAVE_SNMP |
| 3867 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3868 | |
| 3869 | CFLAGS="${CFLAGS} -I/usr/local/include/ucd-snmp" |
| 3870 | LIBS="${LIBS} -L/usr/local/lib -lsnmp" |
| 3871 | ;; |
| 3872 | esac |
| 3873 | if test "${NEED_CRYPTO}" = "yes"; then |
| 3874 | LIBS="${LIBS} -lcrypto" |
| 3875 | fi |
| 3876 | fi |
| 3877 | fi |
| 3878 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3879 | echo $ac_n "checking whether struct sockaddr has a sa_len field""... $ac_c" 1>&6 |
| 3880 | echo "configure:3881: checking whether struct sockaddr has a sa_len field" >&5 |
| 3881 | cat > conftest.$ac_ext <<EOF |
| 3882 | #line 3883 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3883 | #include "confdefs.h" |
| 3884 | #include <sys/types.h> |
| 3885 | #include <sys/socket.h> |
| 3886 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3887 | int main() { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3888 | static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len); |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3889 | ; return 0; } |
| 3890 | EOF |
| 3891 | if { (eval echo configure:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3892 | rm -rf conftest* |
| 3893 | echo "$ac_t""yes" 1>&6 |
| 3894 | cat >> confdefs.h <<\EOF |
| 3895 | #define HAVE_SA_LEN |
| 3896 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3897 | |
| 3898 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3899 | echo "configure: failed program was:" >&5 |
| 3900 | cat conftest.$ac_ext >&5 |
| 3901 | rm -rf conftest* |
| 3902 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3903 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3904 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3905 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3906 | echo $ac_n "checking whether struct sockaddr_in has a sin_len field""... $ac_c" 1>&6 |
| 3907 | echo "configure:3908: checking whether struct sockaddr_in has a sin_len field" >&5 |
| 3908 | cat > conftest.$ac_ext <<EOF |
| 3909 | #line 3910 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3910 | #include "confdefs.h" |
| 3911 | #include <sys/types.h> |
| 3912 | #include <netinet/in.h> |
| 3913 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3914 | int main() { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3915 | static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len); |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3916 | ; return 0; } |
| 3917 | EOF |
| 3918 | if { (eval echo configure:3919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3919 | rm -rf conftest* |
| 3920 | echo "$ac_t""yes" 1>&6 |
| 3921 | cat >> confdefs.h <<\EOF |
| 3922 | #define HAVE_SIN_LEN |
| 3923 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3924 | |
| 3925 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3926 | echo "configure: failed program was:" >&5 |
| 3927 | cat conftest.$ac_ext >&5 |
| 3928 | rm -rf conftest* |
| 3929 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3930 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3931 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3932 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3933 | echo $ac_n "checking whether struct sockaddr_un has a sun_len field""... $ac_c" 1>&6 |
| 3934 | echo "configure:3935: checking whether struct sockaddr_un has a sun_len field" >&5 |
| 3935 | cat > conftest.$ac_ext <<EOF |
| 3936 | #line 3937 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3937 | #include "confdefs.h" |
| 3938 | #include <sys/types.h> |
| 3939 | #include <sys/un.h> |
| 3940 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3941 | int main() { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3942 | static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len); |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3943 | ; return 0; } |
| 3944 | EOF |
| 3945 | if { (eval echo configure:3946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3946 | rm -rf conftest* |
| 3947 | echo "$ac_t""yes" 1>&6 |
| 3948 | cat >> confdefs.h <<\EOF |
| 3949 | #define HAVE_SUN_LEN |
| 3950 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3951 | |
| 3952 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3953 | echo "configure: failed program was:" >&5 |
| 3954 | cat conftest.$ac_ext >&5 |
| 3955 | rm -rf conftest* |
| 3956 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3957 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3958 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3959 | |
| 3960 | if test "$zebra_cv_ipv6" = yes; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3961 | echo $ac_n "checking whether struct sockaddr_in6 has a sin6_scope_id field""... $ac_c" 1>&6 |
| 3962 | echo "configure:3963: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5 |
| 3963 | cat > conftest.$ac_ext <<EOF |
| 3964 | #line 3965 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3965 | #include "confdefs.h" |
| 3966 | #include <sys/types.h> |
| 3967 | #include <netinet/in.h> |
| 3968 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3969 | int main() { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3970 | static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id); |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3971 | ; return 0; } |
| 3972 | EOF |
| 3973 | if { (eval echo configure:3974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3974 | rm -rf conftest* |
| 3975 | echo "$ac_t""yes" 1>&6 |
| 3976 | cat >> confdefs.h <<\EOF |
| 3977 | #define HAVE_SIN6_SCOPE_ID |
| 3978 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3979 | |
| 3980 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3981 | echo "configure: failed program was:" >&5 |
| 3982 | cat conftest.$ac_ext >&5 |
| 3983 | rm -rf conftest* |
| 3984 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3985 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3986 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3987 | fi |
| 3988 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3989 | echo $ac_n "checking whther socklen_t is defined""... $ac_c" 1>&6 |
| 3990 | echo "configure:3991: checking whther socklen_t is defined" >&5 |
| 3991 | cat > conftest.$ac_ext <<EOF |
| 3992 | #line 3993 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3993 | #include "confdefs.h" |
| 3994 | #include <sys/types.h> |
| 3995 | #include <sys/socket.h> |
| 3996 | #include <netinet/in.h> |
| 3997 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 3998 | int main() { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3999 | socklen_t ac_x; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4000 | ; return 0; } |
| 4001 | EOF |
| 4002 | if { (eval echo configure:4003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4003 | rm -rf conftest* |
| 4004 | echo "$ac_t""yes" 1>&6 |
| 4005 | cat >> confdefs.h <<\EOF |
| 4006 | #define HAVE_SOCKLEN_T |
| 4007 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4008 | |
| 4009 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4010 | echo "configure: failed program was:" >&5 |
| 4011 | cat conftest.$ac_ext >&5 |
| 4012 | rm -rf conftest* |
| 4013 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4014 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4015 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4016 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4017 | echo $ac_n "checking whether struct sockaddr_dl exist""... $ac_c" 1>&6 |
| 4018 | echo "configure:4019: checking whether struct sockaddr_dl exist" >&5 |
| 4019 | cat > conftest.$ac_ext <<EOF |
| 4020 | #line 4021 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4021 | #include "confdefs.h" |
| 4022 | #include <net/if_dl.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4023 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4024 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4025 | egrep "sockaddr_dl" >/dev/null 2>&1; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4026 | rm -rf conftest* |
| 4027 | echo "$ac_t""yes" 1>&6 |
| 4028 | cat >> confdefs.h <<\EOF |
| 4029 | #define HAVE_SOCKADDR_DL |
| 4030 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4031 | |
| 4032 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4033 | rm -rf conftest* |
| 4034 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4035 | fi |
| 4036 | rm -f conftest* |
| 4037 | |
| 4038 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4039 | echo $ac_n "checking whether struct ifaliasreq exist""... $ac_c" 1>&6 |
| 4040 | echo "configure:4041: checking whether struct ifaliasreq exist" >&5 |
| 4041 | cat > conftest.$ac_ext <<EOF |
| 4042 | #line 4043 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4043 | #include "confdefs.h" |
| 4044 | #include <net/if.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4045 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4046 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4047 | egrep "ifaliasreq" >/dev/null 2>&1; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4048 | rm -rf conftest* |
| 4049 | echo "$ac_t""yes" 1>&6 |
| 4050 | cat >> confdefs.h <<\EOF |
| 4051 | #define HAVE_IFALIASREQ |
| 4052 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4053 | |
| 4054 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4055 | rm -rf conftest* |
| 4056 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4057 | fi |
| 4058 | rm -f conftest* |
| 4059 | |
| 4060 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4061 | echo $ac_n "checking whether struct if6_aliasreq exist""... $ac_c" 1>&6 |
| 4062 | echo "configure:4063: checking whether struct if6_aliasreq exist" >&5 |
| 4063 | cat > conftest.$ac_ext <<EOF |
| 4064 | #line 4065 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4065 | #include "confdefs.h" |
| 4066 | #include <netinet6/in6_var.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4067 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4068 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4069 | egrep "in6_aliasreq" >/dev/null 2>&1; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4070 | rm -rf conftest* |
| 4071 | echo "$ac_t""yes" 1>&6 |
| 4072 | cat >> confdefs.h <<\EOF |
| 4073 | #define HAVE_IN6_ALIASREQ |
| 4074 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4075 | |
| 4076 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4077 | rm -rf conftest* |
| 4078 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4079 | fi |
| 4080 | rm -f conftest* |
| 4081 | |
| 4082 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4083 | echo $ac_n "checking whether struct rt_addrinfo exist""... $ac_c" 1>&6 |
| 4084 | echo "configure:4085: checking whether struct rt_addrinfo exist" >&5 |
| 4085 | cat > conftest.$ac_ext <<EOF |
| 4086 | #line 4087 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4087 | #include "confdefs.h" |
| 4088 | #include <net/route.h> |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4089 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4090 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4091 | egrep "rt_addrinfo" >/dev/null 2>&1; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4092 | rm -rf conftest* |
| 4093 | echo "$ac_t""yes" 1>&6 |
| 4094 | cat >> confdefs.h <<\EOF |
| 4095 | #define HAVE_RT_ADDRINFO |
| 4096 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4097 | |
| 4098 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4099 | rm -rf conftest* |
| 4100 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4101 | fi |
| 4102 | rm -f conftest* |
| 4103 | |
| 4104 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4105 | echo $ac_n "checking whether struct in_pktinfo exist""... $ac_c" 1>&6 |
| 4106 | echo "configure:4107: checking whether struct in_pktinfo exist" >&5 |
| 4107 | cat > conftest.$ac_ext <<EOF |
| 4108 | #line 4109 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4109 | #include "confdefs.h" |
| 4110 | #include <netinet/in.h> |
| 4111 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4112 | int main() { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4113 | struct in_pktinfo ac_x; |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4114 | ; return 0; } |
| 4115 | EOF |
| 4116 | if { (eval echo configure:4117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4117 | rm -rf conftest* |
| 4118 | echo "$ac_t""yes" 1>&6 |
| 4119 | cat >> confdefs.h <<\EOF |
| 4120 | #define HAVE_INPKTINFO |
| 4121 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4122 | |
| 4123 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4124 | echo "configure: failed program was:" >&5 |
| 4125 | cat conftest.$ac_ext >&5 |
| 4126 | rm -rf conftest* |
| 4127 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4128 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4129 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4130 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4131 | echo $ac_n "checking whether getrusage is available""... $ac_c" 1>&6 |
| 4132 | echo "configure:4133: checking whether getrusage is available" >&5 |
| 4133 | cat > conftest.$ac_ext <<EOF |
| 4134 | #line 4135 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4135 | #include "confdefs.h" |
| 4136 | #include <sys/resource.h> |
| 4137 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4138 | int main() { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4139 | struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x); |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4140 | ; return 0; } |
| 4141 | EOF |
| 4142 | if { (eval echo configure:4143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4143 | rm -rf conftest* |
| 4144 | echo "$ac_t""yes" 1>&6 |
| 4145 | cat >> confdefs.h <<\EOF |
| 4146 | #define HAVE_RUSAGE |
| 4147 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4148 | |
| 4149 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4150 | echo "configure: failed program was:" >&5 |
| 4151 | cat conftest.$ac_ext >&5 |
| 4152 | rm -rf conftest* |
| 4153 | echo "$ac_t""no" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4154 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4155 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4156 | |
| 4157 | file="${srcdir}/lib/version.h" |
| 4158 | VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file` |
| 4159 | |
| 4160 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4161 | echo $ac_n "checking pid file directory""... $ac_c" 1>&6 |
| 4162 | echo "configure:4163: checking pid file directory" >&5 |
| 4163 | if eval "test \"`echo '$''{'ac_piddir'+set}'`\" = set"; then |
| 4164 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4165 | else |
| 4166 | for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null; |
| 4167 | do |
| 4168 | test -d $ZEBRA_PID_DIR && break |
| 4169 | done |
| 4170 | ac_piddir=$ZEBRA_PID_DIR |
| 4171 | if test $ZEBRA_PID_DIR = "/dev/null"; then |
| 4172 | echo "PID DIRECTORY NOT FOUND!" |
| 4173 | fi |
| 4174 | fi |
paul | ccf3557 | 2003-03-01 11:42:20 +0000 | [diff] [blame] | 4175 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4176 | echo "$ac_t""$ac_piddir" 1>&6 |
| 4177 | cat >> confdefs.h <<EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4178 | #define PATH_ZEBRA_PID "$ac_piddir/zebra.pid" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4179 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4180 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4181 | cat >> confdefs.h <<EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4182 | #define PATH_RIPD_PID "$ac_piddir/ripd.pid" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4183 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4184 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4185 | cat >> confdefs.h <<EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4186 | #define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4187 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4188 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4189 | cat >> confdefs.h <<EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4190 | #define PATH_BGPD_PID "$ac_piddir/bgpd.pid" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4191 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4192 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4193 | cat >> confdefs.h <<EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4194 | #define PATH_OSPFD_PID "$ac_piddir/ospfd.pid" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4195 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4196 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4197 | cat >> confdefs.h <<EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4198 | #define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid" |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4199 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4200 | |
| 4201 | |
| 4202 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4203 | echo $ac_n "checking for working htonl""... $ac_c" 1>&6 |
| 4204 | echo "configure:4205: checking for working htonl" >&5 |
| 4205 | if eval "test \"`echo '$''{'ac_cv_htonl_works'+set}'`\" = set"; then |
| 4206 | echo $ac_n "(cached) $ac_c" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4207 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4208 | |
| 4209 | cat > conftest.$ac_ext <<EOF |
| 4210 | #line 4211 "configure" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4211 | #include "confdefs.h" |
| 4212 | #ifdef HAVE_SYS_TYPES_H |
| 4213 | #include <sys/types.h> |
| 4214 | #endif |
| 4215 | #ifdef HAVE_NETDB_H |
| 4216 | #include <netdb.h> |
| 4217 | #endif |
| 4218 | #ifdef HAVE_NETINET_IN_H |
| 4219 | #include <netinet/in.h> |
| 4220 | #endif |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4221 | int main() { |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4222 | htonl (0); |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4223 | ; return 0; } |
| 4224 | EOF |
| 4225 | if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4226 | rm -rf conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4227 | ac_cv_htonl_works=yes |
| 4228 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4229 | echo "configure: failed program was:" >&5 |
| 4230 | cat conftest.$ac_ext >&5 |
| 4231 | rm -rf conftest* |
| 4232 | ac_cv_htonl_works=no |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4233 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4234 | rm -f conftest* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4235 | fi |
| 4236 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4237 | echo "$ac_t""$ac_cv_htonl_works" 1>&6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4238 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4239 | trap '' 1 2 15 |
| 4240 | cat > confcache <<\EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4241 | # This file is a shell script that caches the results of configure |
| 4242 | # tests run on this system so they can be shared between configure |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4243 | # scripts and configure runs. It is not useful on other systems. |
| 4244 | # If it contains results you don't want to keep, you may remove or edit it. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4245 | # |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4246 | # By default, configure uses ./config.cache as the cache file, |
| 4247 | # creating it if it does not exist already. You can give configure |
| 4248 | # the --cache-file=FILE option to use a different cache file; that is |
| 4249 | # what configure does when it calls configure scripts in |
| 4250 | # subdirectories, so they share the cache. |
| 4251 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 4252 | # config.status only pays attention to the cache file if you give it the |
| 4253 | # --recheck option to rerun configure. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4254 | # |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4255 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4256 | # The following way of writing the cache mishandles newlines in values, |
| 4257 | # but we know of no workaround that is simple, portable, and efficient. |
| 4258 | # So, don't put newlines in cache variables' values. |
| 4259 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4260 | # and sets the high bit in the cache file unless we assign to the vars. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4261 | (set) 2>&1 | |
| 4262 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 4263 | *ac_space=\ *) |
| 4264 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 4265 | # turns \\\\ into \\, and sed turns \\ into \). |
| 4266 | sed -n \ |
| 4267 | -e "s/'/'\\\\''/g" \ |
| 4268 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 4269 | ;; |
| 4270 | *) |
| 4271 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4272 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 4273 | ;; |
| 4274 | esac >> confcache |
| 4275 | if cmp -s $cache_file confcache; then |
| 4276 | : |
| 4277 | else |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4278 | if test -w $cache_file; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4279 | echo "updating cache $cache_file" |
| 4280 | cat confcache > $cache_file |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4281 | else |
| 4282 | echo "not updating unwritable cache $cache_file" |
| 4283 | fi |
| 4284 | fi |
| 4285 | rm -f confcache |
| 4286 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4287 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 4288 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4289 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4290 | # Let make expand exec_prefix. |
| 4291 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 4292 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4293 | # Any assignment to VPATH causes Sun make to only execute |
| 4294 | # the first set of double-colon rules, so remove it if not needed. |
| 4295 | # If there is a colon in the path, we need to keep it. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4296 | if test "x$srcdir" = x.; then |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4297 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4298 | fi |
| 4299 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4300 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 4301 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4302 | DEFS=-DHAVE_CONFIG_H |
| 4303 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4304 | # Without the "./", some shells look in PATH for config.status. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4305 | : ${CONFIG_STATUS=./config.status} |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4306 | |
| 4307 | echo creating $CONFIG_STATUS |
| 4308 | rm -f $CONFIG_STATUS |
| 4309 | cat > $CONFIG_STATUS <<EOF |
| 4310 | #! /bin/sh |
| 4311 | # Generated automatically by configure. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4312 | # Run this file to recreate the current configuration. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4313 | # This directory was configured as follows, |
| 4314 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 4315 | # |
| 4316 | # $0 $ac_configure_args |
| 4317 | # |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4318 | # Compiler output produced by configure, useful for debugging |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4319 | # configure, is in ./config.log if it exists. |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4320 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4321 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 4322 | for ac_option |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4323 | do |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4324 | case "\$ac_option" in |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4325 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4326 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 4327 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 4328 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 4329 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 4330 | exit 0 ;; |
| 4331 | -help | --help | --hel | --he | --h) |
| 4332 | echo "\$ac_cs_usage"; exit 0 ;; |
| 4333 | *) echo "\$ac_cs_usage"; exit 1 ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4334 | esac |
| 4335 | done |
| 4336 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4337 | ac_given_srcdir=$srcdir |
| 4338 | ac_given_INSTALL="$INSTALL" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4339 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4340 | trap 'rm -fr `echo "Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 4341 | EOF |
| 4342 | cat >> $CONFIG_STATUS <<EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4343 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4344 | # Protect against being on the right side of a sed subst in config.status. |
| 4345 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 4346 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 4347 | $ac_vpsub |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4348 | $extrasub |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4349 | s%@SHELL@%$SHELL%g |
| 4350 | s%@CFLAGS@%$CFLAGS%g |
| 4351 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 4352 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 4353 | s%@FFLAGS@%$FFLAGS%g |
| 4354 | s%@DEFS@%$DEFS%g |
| 4355 | s%@LDFLAGS@%$LDFLAGS%g |
| 4356 | s%@LIBS@%$LIBS%g |
| 4357 | s%@exec_prefix@%$exec_prefix%g |
| 4358 | s%@prefix@%$prefix%g |
| 4359 | s%@program_transform_name@%$program_transform_name%g |
| 4360 | s%@bindir@%$bindir%g |
| 4361 | s%@sbindir@%$sbindir%g |
| 4362 | s%@libexecdir@%$libexecdir%g |
| 4363 | s%@datadir@%$datadir%g |
| 4364 | s%@sysconfdir@%$sysconfdir%g |
| 4365 | s%@sharedstatedir@%$sharedstatedir%g |
| 4366 | s%@localstatedir@%$localstatedir%g |
| 4367 | s%@libdir@%$libdir%g |
| 4368 | s%@includedir@%$includedir%g |
| 4369 | s%@oldincludedir@%$oldincludedir%g |
| 4370 | s%@infodir@%$infodir%g |
| 4371 | s%@mandir@%$mandir%g |
| 4372 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 4373 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 4374 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 4375 | s%@PACKAGE@%$PACKAGE%g |
| 4376 | s%@VERSION@%$VERSION%g |
| 4377 | s%@ACLOCAL@%$ACLOCAL%g |
| 4378 | s%@AUTOCONF@%$AUTOCONF%g |
| 4379 | s%@AUTOMAKE@%$AUTOMAKE%g |
| 4380 | s%@AUTOHEADER@%$AUTOHEADER%g |
| 4381 | s%@MAKEINFO@%$MAKEINFO%g |
| 4382 | s%@SET_MAKE@%$SET_MAKE%g |
| 4383 | s%@host@%$host%g |
| 4384 | s%@host_alias@%$host_alias%g |
| 4385 | s%@host_cpu@%$host_cpu%g |
| 4386 | s%@host_vendor@%$host_vendor%g |
| 4387 | s%@host_os@%$host_os%g |
| 4388 | s%@CC@%$CC%g |
| 4389 | s%@CPP@%$CPP%g |
| 4390 | s%@build@%$build%g |
| 4391 | s%@build_alias@%$build_alias%g |
| 4392 | s%@build_cpu@%$build_cpu%g |
| 4393 | s%@build_vendor@%$build_vendor%g |
| 4394 | s%@build_os@%$build_os%g |
| 4395 | s%@AR@%$AR%g |
| 4396 | s%@RANLIB@%$RANLIB%g |
| 4397 | s%@MULTIPATH_NUM@%$MULTIPATH_NUM%g |
| 4398 | s%@LIBPAM@%$LIBPAM%g |
| 4399 | s%@RT_METHOD@%$RT_METHOD%g |
| 4400 | s%@KERNEL_METHOD@%$KERNEL_METHOD%g |
| 4401 | s%@OTHER_METHOD@%$OTHER_METHOD%g |
| 4402 | s%@RTREAD_METHOD@%$RTREAD_METHOD%g |
| 4403 | s%@IF_METHOD@%$IF_METHOD%g |
| 4404 | s%@IF_PROC@%$IF_PROC%g |
| 4405 | s%@IPFORWARD@%$IPFORWARD%g |
| 4406 | s%@LIB_IPV6@%$LIB_IPV6%g |
| 4407 | s%@ZEBRA@%$ZEBRA%g |
| 4408 | s%@BGPD@%$BGPD%g |
| 4409 | s%@RIPD@%$RIPD%g |
| 4410 | s%@RIPNGD@%$RIPNGD%g |
| 4411 | s%@OSPFD@%$OSPFD%g |
| 4412 | s%@OSPF6D@%$OSPF6D%g |
| 4413 | s%@VTYSH@%$VTYSH%g |
| 4414 | s%@INCLUDES@%$INCLUDES%g |
| 4415 | s%@CURSES@%$CURSES%g |
| 4416 | s%@OSPFCLIENT@%$OSPFCLIENT%g |
| 4417 | s%@LIB_REGEX@%$LIB_REGEX%g |
| 4418 | |
| 4419 | CEOF |
| 4420 | EOF |
| 4421 | |
| 4422 | cat >> $CONFIG_STATUS <<\EOF |
| 4423 | |
| 4424 | # Split the substitutions into bite-sized pieces for seds with |
| 4425 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 4426 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 4427 | ac_file=1 # Number of current file. |
| 4428 | ac_beg=1 # First line for current file. |
| 4429 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 4430 | ac_more_lines=: |
| 4431 | ac_sed_cmds="" |
| 4432 | while $ac_more_lines; do |
| 4433 | if test $ac_beg -gt 1; then |
| 4434 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4435 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4436 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4437 | fi |
| 4438 | if test ! -s conftest.s$ac_file; then |
| 4439 | ac_more_lines=false |
| 4440 | rm -f conftest.s$ac_file |
| 4441 | else |
| 4442 | if test -z "$ac_sed_cmds"; then |
| 4443 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 4444 | else |
| 4445 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 4446 | fi |
| 4447 | ac_file=`expr $ac_file + 1` |
| 4448 | ac_beg=$ac_end |
| 4449 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 4450 | fi |
| 4451 | done |
| 4452 | if test -z "$ac_sed_cmds"; then |
| 4453 | ac_sed_cmds=cat |
| 4454 | fi |
| 4455 | EOF |
| 4456 | |
| 4457 | cat >> $CONFIG_STATUS <<EOF |
| 4458 | |
| 4459 | CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile"} |
| 4460 | EOF |
| 4461 | cat >> $CONFIG_STATUS <<\EOF |
| 4462 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 4463 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 4464 | case "$ac_file" in |
| 4465 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 4466 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 4467 | *) ac_file_in="${ac_file}.in" ;; |
| 4468 | esac |
| 4469 | |
| 4470 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 4471 | |
| 4472 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 4473 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 4474 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4475 | # The file is in a subdirectory. |
| 4476 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 4477 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 4478 | # A "../" for each directory in $ac_dir_suffix. |
| 4479 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 4480 | else |
| 4481 | ac_dir_suffix= ac_dots= |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4482 | fi |
| 4483 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4484 | case "$ac_given_srcdir" in |
| 4485 | .) srcdir=. |
| 4486 | if test -z "$ac_dots"; then top_srcdir=. |
| 4487 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 4488 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 4489 | *) # Relative path. |
| 4490 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 4491 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 4492 | esac |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4493 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4494 | case "$ac_given_INSTALL" in |
| 4495 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 4496 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 4497 | esac |
| 4498 | |
| 4499 | echo creating "$ac_file" |
| 4500 | rm -f "$ac_file" |
| 4501 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 4502 | case "$ac_file" in |
| 4503 | *Makefile*) ac_comsub="1i\\ |
| 4504 | # $configure_input" ;; |
| 4505 | *) ac_comsub= ;; |
| 4506 | esac |
| 4507 | |
| 4508 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 4509 | sed -e "$ac_comsub |
| 4510 | s%@configure_input@%$configure_input%g |
| 4511 | s%@srcdir@%$srcdir%g |
| 4512 | s%@top_srcdir@%$top_srcdir%g |
| 4513 | s%@INSTALL@%$INSTALL%g |
| 4514 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 4515 | fi; done |
| 4516 | rm -f conftest.s* |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4517 | |
| 4518 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 4519 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 4520 | # |
| 4521 | # ac_d sets the value in "#define NAME VALUE" lines. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4522 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 4523 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 4524 | ac_dC='\3' |
| 4525 | ac_dD='%g' |
| 4526 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 4527 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 4528 | ac_uB='\([ ]\)%\1#\2define\3' |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4529 | ac_uC=' ' |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4530 | ac_uD='\4%g' |
| 4531 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 4532 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 4533 | ac_eB='$%\1#\2define\3' |
| 4534 | ac_eC=' ' |
| 4535 | ac_eD='%g' |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4536 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4537 | if test "${CONFIG_HEADERS+set}" != set; then |
| 4538 | EOF |
| 4539 | cat >> $CONFIG_STATUS <<EOF |
| 4540 | CONFIG_HEADERS="config.h" |
| 4541 | EOF |
| 4542 | cat >> $CONFIG_STATUS <<\EOF |
| 4543 | fi |
| 4544 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4545 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4546 | case "$ac_file" in |
| 4547 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 4548 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 4549 | *) ac_file_in="${ac_file}.in" ;; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4550 | esac |
| 4551 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4552 | echo creating $ac_file |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4553 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4554 | rm -f conftest.frag conftest.in conftest.out |
| 4555 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 4556 | cat $ac_file_inputs > conftest.in |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4557 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4558 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4559 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4560 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 4561 | # the proper values into config.h.in to produce config.h. And first: |
| 4562 | # Protect against being on the right side of a sed subst in config.status. |
| 4563 | # Protect against being in an unquoted here document in config.status. |
| 4564 | rm -f conftest.vals |
| 4565 | cat > conftest.hdr <<\EOF |
| 4566 | s/[\\&%]/\\&/g |
| 4567 | s%[\\$`]%\\&%g |
| 4568 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 4569 | s%ac_d%ac_u%gp |
| 4570 | s%ac_u%ac_e%gp |
| 4571 | EOF |
| 4572 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 4573 | rm -f conftest.hdr |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4574 | |
| 4575 | # This sed command replaces #undef with comments. This is necessary, for |
| 4576 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 4577 | # on some systems where configure will not decide to define it. |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4578 | cat >> conftest.vals <<\EOF |
| 4579 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 4580 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4581 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4582 | # Break up conftest.vals because some shells have a limit on |
| 4583 | # the size of here documents, and old seds have small limits too. |
| 4584 | |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4585 | rm -f conftest.tail |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4586 | while : |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4587 | do |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4588 | ac_lines=`grep -c . conftest.vals` |
| 4589 | # grep -c gives empty output for an empty file on some AIX systems. |
| 4590 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 4591 | # Write a limited-size here document to conftest.frag. |
| 4592 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 4593 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4594 | echo 'CEOF |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4595 | sed -f conftest.frag conftest.in > conftest.out |
| 4596 | rm -f conftest.in |
| 4597 | mv conftest.out conftest.in |
| 4598 | ' >> $CONFIG_STATUS |
| 4599 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 4600 | rm -f conftest.vals |
| 4601 | mv conftest.tail conftest.vals |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4602 | done |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4603 | rm -f conftest.vals |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4604 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4605 | cat >> $CONFIG_STATUS <<\EOF |
| 4606 | rm -f conftest.frag conftest.h |
| 4607 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 4608 | cat conftest.in >> conftest.h |
| 4609 | rm -f conftest.in |
| 4610 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 4611 | echo "$ac_file is unchanged" |
| 4612 | rm -f conftest.h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4613 | else |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4614 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 4615 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 4616 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4617 | # The file is in a subdirectory. |
| 4618 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4619 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4620 | rm -f $ac_file |
| 4621 | mv conftest.h $ac_file |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4622 | fi |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4623 | fi; done |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4624 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4625 | EOF |
| 4626 | cat >> $CONFIG_STATUS <<EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4627 | |
| 4628 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4629 | EOF |
| 4630 | cat >> $CONFIG_STATUS <<\EOF |
| 4631 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4632 | |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4633 | exit 0 |
| 4634 | EOF |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4635 | chmod +x $CONFIG_STATUS |
paul | 1bb066b | 2003-03-17 01:18:55 +0000 | [diff] [blame^] | 4636 | rm -fr confdefs* $ac_clean_files |
| 4637 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 4638 | |
| 4639 | |
| 4640 | echo " |
| 4641 | zebra configuration |
| 4642 | ------------------- |
| 4643 | zebra version : ${VERSION} |
| 4644 | host operationg system : ${host_os} |
| 4645 | source code location : ${srcdir} |
| 4646 | compiler : ${CC} |
| 4647 | compiler flags : ${CFLAGS} |
| 4648 | directory for pid files : ${ac_piddir} |
| 4649 | " |