configure 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.12
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. # Initialize some variables set by options.
  13. # The variables have the same names as the options, with
  14. # dashes changed to underlines.
  15. build=NONE
  16. cache_file=./config.cache
  17. exec_prefix=NONE
  18. host=NONE
  19. no_create=
  20. nonopt=NONE
  21. no_recursion=
  22. prefix=NONE
  23. program_prefix=NONE
  24. program_suffix=NONE
  25. program_transform_name=s,x,x,
  26. silent=
  27. site=
  28. srcdir=
  29. target=NONE
  30. verbose=
  31. x_includes=NONE
  32. x_libraries=NONE
  33. bindir='${exec_prefix}/bin'
  34. sbindir='${exec_prefix}/sbin'
  35. libexecdir='${exec_prefix}/libexec'
  36. datadir='${prefix}/share'
  37. sysconfdir='${prefix}/etc'
  38. sharedstatedir='${prefix}/com'
  39. localstatedir='${prefix}/var'
  40. libdir='${exec_prefix}/lib'
  41. includedir='${prefix}/include'
  42. oldincludedir='/usr/include'
  43. infodir='${prefix}/info'
  44. mandir='${prefix}/man'
  45. # Initialize some other variables.
  46. subdirs=
  47. MFLAGS= MAKEFLAGS=
  48. # Maximum number of lines to put in a shell here document.
  49. ac_max_here_lines=12
  50. ac_prev=
  51. for ac_option
  52. do
  53. # If the previous option needs an argument, assign it.
  54. if test -n "$ac_prev"; then
  55. eval "$ac_prev=\$ac_option"
  56. ac_prev=
  57. continue
  58. fi
  59. case "$ac_option" in
  60. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  61. *) ac_optarg= ;;
  62. esac
  63. # Accept the important Cygnus configure options, so we can diagnose typos.
  64. case "$ac_option" in
  65. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  66. ac_prev=bindir ;;
  67. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  68. bindir="$ac_optarg" ;;
  69. -build | --build | --buil | --bui | --bu)
  70. ac_prev=build ;;
  71. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  72. build="$ac_optarg" ;;
  73. -cache-file | --cache-file | --cache-fil | --cache-fi \
  74. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  75. ac_prev=cache_file ;;
  76. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  77. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  78. cache_file="$ac_optarg" ;;
  79. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  80. ac_prev=datadir ;;
  81. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  82. | --da=*)
  83. datadir="$ac_optarg" ;;
  84. -disable-* | --disable-*)
  85. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  86. # Reject names that are not valid shell variable names.
  87. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  88. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  89. fi
  90. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  91. eval "enable_${ac_feature}=no" ;;
  92. -enable-* | --enable-*)
  93. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  94. # Reject names that are not valid shell variable names.
  95. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  96. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  97. fi
  98. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  99. case "$ac_option" in
  100. *=*) ;;
  101. *) ac_optarg=yes ;;
  102. esac
  103. eval "enable_${ac_feature}='$ac_optarg'" ;;
  104. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  105. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  106. | --exec | --exe | --ex)
  107. ac_prev=exec_prefix ;;
  108. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  109. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  110. | --exec=* | --exe=* | --ex=*)
  111. exec_prefix="$ac_optarg" ;;
  112. -gas | --gas | --ga | --g)
  113. # Obsolete; use --with-gas.
  114. with_gas=yes ;;
  115. -help | --help | --hel | --he)
  116. # Omit some internal or obsolete options to make the list less imposing.
  117. # This message is too long to be a string in the A/UX 3.1 sh.
  118. cat << EOF
  119. Usage: configure [options] [host]
  120. Options: [defaults in brackets after descriptions]
  121. Configuration:
  122. --cache-file=FILE cache test results in FILE
  123. --help print this message
  124. --no-create do not create output files
  125. --quiet, --silent do not print \`checking...' messages
  126. --version print the version of autoconf that created configure
  127. Directory and file names:
  128. --prefix=PREFIX install architecture-independent files in PREFIX
  129. [$ac_default_prefix]
  130. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  131. [same as prefix]
  132. --bindir=DIR user executables in DIR [EPREFIX/bin]
  133. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  134. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  135. --datadir=DIR read-only architecture-independent data in DIR
  136. [PREFIX/share]
  137. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  138. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  139. [PREFIX/com]
  140. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  141. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  142. --includedir=DIR C header files in DIR [PREFIX/include]
  143. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  144. --infodir=DIR info documentation in DIR [PREFIX/info]
  145. --mandir=DIR man documentation in DIR [PREFIX/man]
  146. --srcdir=DIR find the sources in DIR [configure dir or ..]
  147. --program-prefix=PREFIX prepend PREFIX to installed program names
  148. --program-suffix=SUFFIX append SUFFIX to installed program names
  149. --program-transform-name=PROGRAM
  150. run sed PROGRAM on installed program names
  151. EOF
  152. cat << EOF
  153. Host type:
  154. --build=BUILD configure for building on BUILD [BUILD=HOST]
  155. --host=HOST configure for HOST [guessed]
  156. --target=TARGET configure for TARGET [TARGET=HOST]
  157. Features and packages:
  158. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  159. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  160. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  161. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  162. --x-includes=DIR X include files are in DIR
  163. --x-libraries=DIR X library files are in DIR
  164. EOF
  165. if test -n "$ac_help"; then
  166. echo "--enable and --with options recognized:$ac_help"
  167. fi
  168. exit 0 ;;
  169. -host | --host | --hos | --ho)
  170. ac_prev=host ;;
  171. -host=* | --host=* | --hos=* | --ho=*)
  172. host="$ac_optarg" ;;
  173. -includedir | --includedir | --includedi | --included | --include \
  174. | --includ | --inclu | --incl | --inc)
  175. ac_prev=includedir ;;
  176. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  177. | --includ=* | --inclu=* | --incl=* | --inc=*)
  178. includedir="$ac_optarg" ;;
  179. -infodir | --infodir | --infodi | --infod | --info | --inf)
  180. ac_prev=infodir ;;
  181. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  182. infodir="$ac_optarg" ;;
  183. -libdir | --libdir | --libdi | --libd)
  184. ac_prev=libdir ;;
  185. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  186. libdir="$ac_optarg" ;;
  187. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  188. | --libexe | --libex | --libe)
  189. ac_prev=libexecdir ;;
  190. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  191. | --libexe=* | --libex=* | --libe=*)
  192. libexecdir="$ac_optarg" ;;
  193. -localstatedir | --localstatedir | --localstatedi | --localstated \
  194. | --localstate | --localstat | --localsta | --localst \
  195. | --locals | --local | --loca | --loc | --lo)
  196. ac_prev=localstatedir ;;
  197. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  198. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  199. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  200. localstatedir="$ac_optarg" ;;
  201. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  202. ac_prev=mandir ;;
  203. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  204. mandir="$ac_optarg" ;;
  205. -nfp | --nfp | --nf)
  206. # Obsolete; use --without-fp.
  207. with_fp=no ;;
  208. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  209. | --no-cr | --no-c)
  210. no_create=yes ;;
  211. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  212. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  213. no_recursion=yes ;;
  214. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  215. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  216. | --oldin | --oldi | --old | --ol | --o)
  217. ac_prev=oldincludedir ;;
  218. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  219. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  220. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  221. oldincludedir="$ac_optarg" ;;
  222. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  223. ac_prev=prefix ;;
  224. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  225. prefix="$ac_optarg" ;;
  226. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  227. | --program-pre | --program-pr | --program-p)
  228. ac_prev=program_prefix ;;
  229. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  230. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  231. program_prefix="$ac_optarg" ;;
  232. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  233. | --program-suf | --program-su | --program-s)
  234. ac_prev=program_suffix ;;
  235. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  236. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  237. program_suffix="$ac_optarg" ;;
  238. -program-transform-name | --program-transform-name \
  239. | --program-transform-nam | --program-transform-na \
  240. | --program-transform-n | --program-transform- \
  241. | --program-transform | --program-transfor \
  242. | --program-transfo | --program-transf \
  243. | --program-trans | --program-tran \
  244. | --progr-tra | --program-tr | --program-t)
  245. ac_prev=program_transform_name ;;
  246. -program-transform-name=* | --program-transform-name=* \
  247. | --program-transform-nam=* | --program-transform-na=* \
  248. | --program-transform-n=* | --program-transform-=* \
  249. | --program-transform=* | --program-transfor=* \
  250. | --program-transfo=* | --program-transf=* \
  251. | --program-trans=* | --program-tran=* \
  252. | --progr-tra=* | --program-tr=* | --program-t=*)
  253. program_transform_name="$ac_optarg" ;;
  254. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  255. | -silent | --silent | --silen | --sile | --sil)
  256. silent=yes ;;
  257. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  258. ac_prev=sbindir ;;
  259. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  260. | --sbi=* | --sb=*)
  261. sbindir="$ac_optarg" ;;
  262. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  263. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  264. | --sharedst | --shareds | --shared | --share | --shar \
  265. | --sha | --sh)
  266. ac_prev=sharedstatedir ;;
  267. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  268. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  269. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  270. | --sha=* | --sh=*)
  271. sharedstatedir="$ac_optarg" ;;
  272. -site | --site | --sit)
  273. ac_prev=site ;;
  274. -site=* | --site=* | --sit=*)
  275. site="$ac_optarg" ;;
  276. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  277. ac_prev=srcdir ;;
  278. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  279. srcdir="$ac_optarg" ;;
  280. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  281. | --syscon | --sysco | --sysc | --sys | --sy)
  282. ac_prev=sysconfdir ;;
  283. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  284. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  285. sysconfdir="$ac_optarg" ;;
  286. -target | --target | --targe | --targ | --tar | --ta | --t)
  287. ac_prev=target ;;
  288. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  289. target="$ac_optarg" ;;
  290. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  291. verbose=yes ;;
  292. -version | --version | --versio | --versi | --vers)
  293. echo "configure generated by autoconf version 2.12"
  294. exit 0 ;;
  295. -with-* | --with-*)
  296. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  297. # Reject names that are not valid shell variable names.
  298. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  299. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  300. fi
  301. ac_package=`echo $ac_package| sed 's/-/_/g'`
  302. case "$ac_option" in
  303. *=*) ;;
  304. *) ac_optarg=yes ;;
  305. esac
  306. eval "with_${ac_package}='$ac_optarg'" ;;
  307. -without-* | --without-*)
  308. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  309. # Reject names that are not valid shell variable names.
  310. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  311. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  312. fi
  313. ac_package=`echo $ac_package| sed 's/-/_/g'`
  314. eval "with_${ac_package}=no" ;;
  315. --x)
  316. # Obsolete; use --with-x.
  317. with_x=yes ;;
  318. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  319. | --x-incl | --x-inc | --x-in | --x-i)
  320. ac_prev=x_includes ;;
  321. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  322. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  323. x_includes="$ac_optarg" ;;
  324. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  325. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  326. ac_prev=x_libraries ;;
  327. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  328. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  329. x_libraries="$ac_optarg" ;;
  330. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  331. ;;
  332. *)
  333. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  334. echo "configure: warning: $ac_option: invalid host type" 1>&2
  335. fi
  336. if test "x$nonopt" != xNONE; then
  337. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  338. fi
  339. nonopt="$ac_option"
  340. ;;
  341. esac
  342. done
  343. if test -n "$ac_prev"; then
  344. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  345. fi
  346. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  347. # File descriptor usage:
  348. # 0 standard input
  349. # 1 file creation
  350. # 2 errors and warnings
  351. # 3 some systems may open it to /dev/tty
  352. # 4 used on the Kubota Titan
  353. # 6 checking for... messages and results
  354. # 5 compiler messages saved in config.log
  355. if test "$silent" = yes; then
  356. exec 6>/dev/null
  357. else
  358. exec 6>&1
  359. fi
  360. exec 5>./config.log
  361. echo "\
  362. This file contains any messages produced by compilers while
  363. running configure, to aid debugging if configure makes a mistake.
  364. " 1>&5
  365. # Strip out --no-create and --no-recursion so they do not pile up.
  366. # Also quote any args containing shell metacharacters.
  367. ac_configure_args=
  368. for ac_arg
  369. do
  370. case "$ac_arg" in
  371. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  372. | --no-cr | --no-c) ;;
  373. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  374. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  375. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  376. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  377. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  378. esac
  379. done
  380. # NLS nuisances.
  381. # Only set these to C if already set. These must not be set unconditionally
  382. # because not all systems understand e.g. LANG=C (notably SCO).
  383. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  384. # Non-C LC_CTYPE values break the ctype check.
  385. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  386. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  387. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  388. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  389. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  390. rm -rf conftest* confdefs.h
  391. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  392. echo > confdefs.h
  393. # A filename unique to this package, relative to the directory that
  394. # configure is in, which we can look for to find out if srcdir is correct.
  395. ac_unique_file=tcpreplay.c
  396. # Find the source files, if location was not specified.
  397. if test -z "$srcdir"; then
  398. ac_srcdir_defaulted=yes
  399. # Try the directory containing this script, then its parent.
  400. ac_prog=$0
  401. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  402. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  403. srcdir=$ac_confdir
  404. if test ! -r $srcdir/$ac_unique_file; then
  405. srcdir=..
  406. fi
  407. else
  408. ac_srcdir_defaulted=no
  409. fi
  410. if test ! -r $srcdir/$ac_unique_file; then
  411. if test "$ac_srcdir_defaulted" = yes; then
  412. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  413. else
  414. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  415. fi
  416. fi
  417. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  418. # Prefer explicitly selected file to automatically selected ones.
  419. if test -z "$CONFIG_SITE"; then
  420. if test "x$prefix" != xNONE; then
  421. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  422. else
  423. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  424. fi
  425. fi
  426. for ac_site_file in $CONFIG_SITE; do
  427. if test -r "$ac_site_file"; then
  428. echo "loading site script $ac_site_file"
  429. . "$ac_site_file"
  430. fi
  431. done
  432. if test -r "$cache_file"; then
  433. echo "loading cache $cache_file"
  434. . $cache_file
  435. else
  436. echo "creating cache $cache_file"
  437. > $cache_file
  438. fi
  439. ac_ext=c
  440. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  441. ac_cpp='$CPP $CPPFLAGS'
  442. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  443. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  444. cross_compiling=$ac_cv_prog_cc_cross
  445. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  446. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  447. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  448. ac_n= ac_c='
  449. ' ac_t=' '
  450. else
  451. ac_n=-n ac_c= ac_t=
  452. fi
  453. else
  454. ac_n= ac_c='\c' ac_t=
  455. fi
  456. # Extract the first word of "gcc", so it can be a program name with args.
  457. set dummy gcc; ac_word=$2
  458. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  459. echo "configure:526: checking for $ac_word" >&5
  460. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  461. echo $ac_n "(cached) $ac_c" 1>&6
  462. else
  463. if test -n "$CC"; then
  464. ac_cv_prog_CC="$CC" # Let the user override the test.
  465. else
  466. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  467. for ac_dir in $PATH; do
  468. test -z "$ac_dir" && ac_dir=.
  469. if test -f $ac_dir/$ac_word; then
  470. ac_cv_prog_CC="gcc"
  471. break
  472. fi
  473. done
  474. IFS="$ac_save_ifs"
  475. fi
  476. fi
  477. CC="$ac_cv_prog_CC"
  478. if test -n "$CC"; then
  479. echo "$ac_t""$CC" 1>&6
  480. else
  481. echo "$ac_t""no" 1>&6
  482. fi
  483. if test -z "$CC"; then
  484. # Extract the first word of "cc", so it can be a program name with args.
  485. set dummy cc; ac_word=$2
  486. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  487. echo "configure:555: checking for $ac_word" >&5
  488. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  489. echo $ac_n "(cached) $ac_c" 1>&6
  490. else
  491. if test -n "$CC"; then
  492. ac_cv_prog_CC="$CC" # Let the user override the test.
  493. else
  494. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  495. ac_prog_rejected=no
  496. for ac_dir in $PATH; do
  497. test -z "$ac_dir" && ac_dir=.
  498. if test -f $ac_dir/$ac_word; then
  499. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  500. ac_prog_rejected=yes
  501. continue
  502. fi
  503. ac_cv_prog_CC="cc"
  504. break
  505. fi
  506. done
  507. IFS="$ac_save_ifs"
  508. if test $ac_prog_rejected = yes; then
  509. # We found a bogon in the path, so make sure we never use it.
  510. set dummy $ac_cv_prog_CC
  511. shift
  512. if test $# -gt 0; then
  513. # We chose a different compiler from the bogus one.
  514. # However, it has the same basename, so the bogon will be chosen
  515. # first if we set CC to just the basename; use the full file name.
  516. shift
  517. set dummy "$ac_dir/$ac_word" "$@"
  518. shift
  519. ac_cv_prog_CC="$@"
  520. fi
  521. fi
  522. fi
  523. fi
  524. CC="$ac_cv_prog_CC"
  525. if test -n "$CC"; then
  526. echo "$ac_t""$CC" 1>&6
  527. else
  528. echo "$ac_t""no" 1>&6
  529. fi
  530. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  531. fi
  532. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  533. echo "configure:603: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  534. ac_ext=c
  535. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  536. ac_cpp='$CPP $CPPFLAGS'
  537. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  538. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  539. cross_compiling=$ac_cv_prog_cc_cross
  540. cat > conftest.$ac_ext <<EOF
  541. #line 613 "configure"
  542. #include "confdefs.h"
  543. main(){return(0);}
  544. EOF
  545. if { (eval echo configure:617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  546. ac_cv_prog_cc_works=yes
  547. # If we can't run a trivial program, we are probably using a cross compiler.
  548. if (./conftest; exit) 2>/dev/null; then
  549. ac_cv_prog_cc_cross=no
  550. else
  551. ac_cv_prog_cc_cross=yes
  552. fi
  553. else
  554. echo "configure: failed program was:" >&5
  555. cat conftest.$ac_ext >&5
  556. ac_cv_prog_cc_works=no
  557. fi
  558. rm -fr conftest*
  559. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  560. if test $ac_cv_prog_cc_works = no; then
  561. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  562. fi
  563. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  564. echo "configure:637: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  565. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  566. cross_compiling=$ac_cv_prog_cc_cross
  567. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  568. echo "configure:642: checking whether we are using GNU C" >&5
  569. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  570. echo $ac_n "(cached) $ac_c" 1>&6
  571. else
  572. cat > conftest.c <<EOF
  573. #ifdef __GNUC__
  574. yes;
  575. #endif
  576. EOF
  577. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  578. ac_cv_prog_gcc=yes
  579. else
  580. ac_cv_prog_gcc=no
  581. fi
  582. fi
  583. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  584. if test $ac_cv_prog_gcc = yes; then
  585. GCC=yes
  586. ac_test_CFLAGS="${CFLAGS+set}"
  587. ac_save_CFLAGS="$CFLAGS"
  588. CFLAGS=
  589. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  590. echo "configure:666: checking whether ${CC-cc} accepts -g" >&5
  591. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  592. echo $ac_n "(cached) $ac_c" 1>&6
  593. else
  594. echo 'void f(){}' > conftest.c
  595. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  596. ac_cv_prog_cc_g=yes
  597. else
  598. ac_cv_prog_cc_g=no
  599. fi
  600. rm -f conftest*
  601. fi
  602. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  603. if test "$ac_test_CFLAGS" = set; then
  604. CFLAGS="$ac_save_CFLAGS"
  605. elif test $ac_cv_prog_cc_g = yes; then
  606. CFLAGS="-g -O2"
  607. else
  608. CFLAGS="-O2"
  609. fi
  610. else
  611. GCC=
  612. test "${CFLAGS+set}" = set || CFLAGS="-g"
  613. fi
  614. ac_aux_dir=
  615. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  616. if test -f $ac_dir/install-sh; then
  617. ac_aux_dir=$ac_dir
  618. ac_install_sh="$ac_aux_dir/install-sh -c"
  619. break
  620. elif test -f $ac_dir/install.sh; then
  621. ac_aux_dir=$ac_dir
  622. ac_install_sh="$ac_aux_dir/install.sh -c"
  623. break
  624. fi
  625. done
  626. if test -z "$ac_aux_dir"; then
  627. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  628. fi
  629. ac_config_guess=$ac_aux_dir/config.guess
  630. ac_config_sub=$ac_aux_dir/config.sub
  631. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  632. # Find a good install program. We prefer a C program (faster),
  633. # so one script is as good as another. But avoid the broken or
  634. # incompatible versions:
  635. # SysV /etc/install, /usr/sbin/install
  636. # SunOS /usr/etc/install
  637. # IRIX /sbin/install
  638. # AIX /bin/install
  639. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  640. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  641. # ./install, which can be erroneously created by make from ./install.sh.
  642. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  643. echo "configure:723: checking for a BSD compatible install" >&5
  644. if test -z "$INSTALL"; then
  645. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  646. echo $ac_n "(cached) $ac_c" 1>&6
  647. else
  648. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  649. for ac_dir in $PATH; do
  650. # Account for people who put trailing slashes in PATH elements.
  651. case "$ac_dir/" in
  652. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  653. *)
  654. # OSF1 and SCO ODT 3.0 have their own names for install.
  655. for ac_prog in ginstall installbsd scoinst install; do
  656. if test -f $ac_dir/$ac_prog; then
  657. if test $ac_prog = install &&
  658. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  659. # AIX install. It has an incompatible calling convention.
  660. # OSF/1 installbsd also uses dspmsg, but is usable.
  661. :
  662. else
  663. ac_cv_path_install="$ac_dir/$ac_prog -c"
  664. break 2
  665. fi
  666. fi
  667. done
  668. ;;
  669. esac
  670. done
  671. IFS="$ac_save_IFS"
  672. fi
  673. if test "${ac_cv_path_install+set}" = set; then
  674. INSTALL="$ac_cv_path_install"
  675. else
  676. # As a last resort, use the slow shell script. We don't cache a
  677. # path for INSTALL within a source directory, because that will
  678. # break other packages using the cache if that directory is
  679. # removed, or if the path is relative.
  680. INSTALL="$ac_install_sh"
  681. fi
  682. fi
  683. echo "$ac_t""$INSTALL" 1>&6
  684. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  685. # It thinks the first close brace ends the variable substitution.
  686. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  687. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  688. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  689. echo "configure:773: checking whether ${MAKE-make} sets \${MAKE}" >&5
  690. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  691. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  692. echo $ac_n "(cached) $ac_c" 1>&6
  693. else
  694. cat > conftestmake <<\EOF
  695. all:
  696. @echo 'ac_maketemp="${MAKE}"'
  697. EOF
  698. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  699. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  700. if test -n "$ac_maketemp"; then
  701. eval ac_cv_prog_make_${ac_make}_set=yes
  702. else
  703. eval ac_cv_prog_make_${ac_make}_set=no
  704. fi
  705. rm -f conftestmake
  706. fi
  707. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  708. echo "$ac_t""yes" 1>&6
  709. SET_MAKE=
  710. else
  711. echo "$ac_t""no" 1>&6
  712. SET_MAKE="MAKE=${MAKE-make}"
  713. fi
  714. if test $ac_cv_prog_gcc = yes; then
  715. CCOPTS='-O3 -pipe -Wall'
  716. CFLAGS="$CCOPTS"
  717. fi
  718. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  719. echo "configure:806: checking for socket in -lsocket" >&5
  720. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  721. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  722. echo $ac_n "(cached) $ac_c" 1>&6
  723. else
  724. ac_save_LIBS="$LIBS"
  725. LIBS="-lsocket $LIBS"
  726. cat > conftest.$ac_ext <<EOF
  727. #line 814 "configure"
  728. #include "confdefs.h"
  729. /* Override any gcc2 internal prototype to avoid an error. */
  730. /* We use char because int might match the return type of a gcc2
  731. builtin and then its argument prototype would still apply. */
  732. char socket();
  733. int main() {
  734. socket()
  735. ; return 0; }
  736. EOF
  737. if { (eval echo configure:825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  738. rm -rf conftest*
  739. eval "ac_cv_lib_$ac_lib_var=yes"
  740. else
  741. echo "configure: failed program was:" >&5
  742. cat conftest.$ac_ext >&5
  743. rm -rf conftest*
  744. eval "ac_cv_lib_$ac_lib_var=no"
  745. fi
  746. rm -f conftest*
  747. LIBS="$ac_save_LIBS"
  748. fi
  749. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  750. echo "$ac_t""yes" 1>&6
  751. ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  752. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  753. cat >> confdefs.h <<EOF
  754. #define $ac_tr_lib 1
  755. EOF
  756. LIBS="-lsocket $LIBS"
  757. else
  758. echo "$ac_t""no" 1>&6
  759. fi
  760. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  761. echo "configure:853: checking for gethostbyname in -lnsl" >&5
  762. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  763. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  764. echo $ac_n "(cached) $ac_c" 1>&6
  765. else
  766. ac_save_LIBS="$LIBS"
  767. LIBS="-lnsl $LIBS"
  768. cat > conftest.$ac_ext <<EOF
  769. #line 861 "configure"
  770. #include "confdefs.h"
  771. /* Override any gcc2 internal prototype to avoid an error. */
  772. /* We use char because int might match the return type of a gcc2
  773. builtin and then its argument prototype would still apply. */
  774. char gethostbyname();
  775. int main() {
  776. gethostbyname()
  777. ; return 0; }
  778. EOF
  779. if { (eval echo configure:872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  780. rm -rf conftest*
  781. eval "ac_cv_lib_$ac_lib_var=yes"
  782. else
  783. echo "configure: failed program was:" >&5
  784. cat conftest.$ac_ext >&5
  785. rm -rf conftest*
  786. eval "ac_cv_lib_$ac_lib_var=no"
  787. fi
  788. rm -f conftest*
  789. LIBS="$ac_save_LIBS"
  790. fi
  791. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  792. echo "$ac_t""yes" 1>&6
  793. ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  794. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  795. cat >> confdefs.h <<EOF
  796. #define $ac_tr_lib 1
  797. EOF
  798. LIBS="-lnsl $LIBS"
  799. else
  800. echo "$ac_t""no" 1>&6
  801. fi
  802. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  803. echo "configure:901: checking how to run the C preprocessor" >&5
  804. # On Suns, sometimes $CPP names a directory.
  805. if test -n "$CPP" && test -d "$CPP"; then
  806. CPP=
  807. fi
  808. if test -z "$CPP"; then
  809. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  810. echo $ac_n "(cached) $ac_c" 1>&6
  811. else
  812. # This must be in double quotes, not single quotes, because CPP may get
  813. # substituted into the Makefile and "${CC-cc}" will confuse make.
  814. CPP="${CC-cc} -E"
  815. # On the NeXT, cc -E runs the code through the compiler's parser,
  816. # not just through cpp.
  817. cat > conftest.$ac_ext <<EOF
  818. #line 916 "configure"
  819. #include "confdefs.h"
  820. #include <assert.h>
  821. Syntax Error
  822. EOF
  823. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  824. { (eval echo configure:922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  825. ac_err=`grep -v '^ *+' conftest.out`
  826. if test -z "$ac_err"; then
  827. :
  828. else
  829. echo "$ac_err" >&5
  830. echo "configure: failed program was:" >&5
  831. cat conftest.$ac_ext >&5
  832. rm -rf conftest*
  833. CPP="${CC-cc} -E -traditional-cpp"
  834. cat > conftest.$ac_ext <<EOF
  835. #line 933 "configure"
  836. #include "confdefs.h"
  837. #include <assert.h>
  838. Syntax Error
  839. EOF
  840. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  841. { (eval echo configure:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  842. ac_err=`grep -v '^ *+' conftest.out`
  843. if test -z "$ac_err"; then
  844. :
  845. else
  846. echo "$ac_err" >&5
  847. echo "configure: failed program was:" >&5
  848. cat conftest.$ac_ext >&5
  849. rm -rf conftest*
  850. CPP=/lib/cpp
  851. fi
  852. rm -f conftest*
  853. fi
  854. rm -f conftest*
  855. ac_cv_prog_CPP="$CPP"
  856. fi
  857. CPP="$ac_cv_prog_CPP"
  858. else
  859. ac_cv_prog_CPP="$CPP"
  860. fi
  861. echo "$ac_t""$CPP" 1>&6
  862. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  863. echo "configure:962: checking for ANSI C header files" >&5
  864. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  865. echo $ac_n "(cached) $ac_c" 1>&6
  866. else
  867. cat > conftest.$ac_ext <<EOF
  868. #line 967 "configure"
  869. #include "confdefs.h"
  870. #include <stdlib.h>
  871. #include <stdarg.h>
  872. #include <string.h>
  873. #include <float.h>
  874. EOF
  875. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  876. { (eval echo configure:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  877. ac_err=`grep -v '^ *+' conftest.out`
  878. if test -z "$ac_err"; then
  879. rm -rf conftest*
  880. ac_cv_header_stdc=yes
  881. else
  882. echo "$ac_err" >&5
  883. echo "configure: failed program was:" >&5
  884. cat conftest.$ac_ext >&5
  885. rm -rf conftest*
  886. ac_cv_header_stdc=no
  887. fi
  888. rm -f conftest*
  889. if test $ac_cv_header_stdc = yes; then
  890. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  891. cat > conftest.$ac_ext <<EOF
  892. #line 992 "configure"
  893. #include "confdefs.h"
  894. #include <string.h>
  895. EOF
  896. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  897. egrep "memchr" >/dev/null 2>&1; then
  898. :
  899. else
  900. rm -rf conftest*
  901. ac_cv_header_stdc=no
  902. fi
  903. rm -f conftest*
  904. fi
  905. if test $ac_cv_header_stdc = yes; then
  906. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  907. cat > conftest.$ac_ext <<EOF
  908. #line 1010 "configure"
  909. #include "confdefs.h"
  910. #include <stdlib.h>
  911. EOF
  912. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  913. egrep "free" >/dev/null 2>&1; then
  914. :
  915. else
  916. rm -rf conftest*
  917. ac_cv_header_stdc=no
  918. fi
  919. rm -f conftest*
  920. fi
  921. if test $ac_cv_header_stdc = yes; then
  922. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  923. if test "$cross_compiling" = yes; then
  924. :
  925. else
  926. cat > conftest.$ac_ext <<EOF
  927. #line 1031 "configure"
  928. #include "confdefs.h"
  929. #include <ctype.h>
  930. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  931. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  932. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  933. int main () { int i; for (i = 0; i < 256; i++)
  934. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  935. exit (0); }
  936. EOF
  937. if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  938. then
  939. :
  940. else
  941. echo "configure: failed program was:" >&5
  942. cat conftest.$ac_ext >&5
  943. rm -fr conftest*
  944. ac_cv_header_stdc=no
  945. fi
  946. rm -fr conftest*
  947. fi
  948. fi
  949. fi
  950. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  951. if test $ac_cv_header_stdc = yes; then
  952. cat >> confdefs.h <<\EOF
  953. #define STDC_HEADERS 1
  954. EOF
  955. fi
  956. for ac_hdr in sys/time.h
  957. do
  958. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  959. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  960. echo "configure:1069: checking for $ac_hdr" >&5
  961. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  962. echo $ac_n "(cached) $ac_c" 1>&6
  963. else
  964. cat > conftest.$ac_ext <<EOF
  965. #line 1074 "configure"
  966. #include "confdefs.h"
  967. #include <$ac_hdr>
  968. EOF
  969. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  970. { (eval echo configure:1079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  971. ac_err=`grep -v '^ *+' conftest.out`
  972. if test -z "$ac_err"; then
  973. rm -rf conftest*
  974. eval "ac_cv_header_$ac_safe=yes"
  975. else
  976. echo "$ac_err" >&5
  977. echo "configure: failed program was:" >&5
  978. cat conftest.$ac_ext >&5
  979. rm -rf conftest*
  980. eval "ac_cv_header_$ac_safe=no"
  981. fi
  982. rm -f conftest*
  983. fi
  984. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  985. echo "$ac_t""yes" 1>&6
  986. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  987. cat >> confdefs.h <<EOF
  988. #define $ac_tr_hdr 1
  989. EOF
  990. else
  991. echo "$ac_t""no" 1>&6
  992. fi
  993. done
  994. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  995. echo "configure:1107: checking whether time.h and sys/time.h may both be included" >&5
  996. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  997. echo $ac_n "(cached) $ac_c" 1>&6
  998. else
  999. cat > conftest.$ac_ext <<EOF
  1000. #line 1112 "configure"
  1001. #include "confdefs.h"
  1002. #include <sys/types.h>
  1003. #include <sys/time.h>
  1004. #include <time.h>
  1005. int main() {
  1006. struct tm *tp;
  1007. ; return 0; }
  1008. EOF
  1009. if { (eval echo configure:1121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1010. rm -rf conftest*
  1011. ac_cv_header_time=yes
  1012. else
  1013. echo "configure: failed program was:" >&5
  1014. cat conftest.$ac_ext >&5
  1015. rm -rf conftest*
  1016. ac_cv_header_time=no
  1017. fi
  1018. rm -f conftest*
  1019. fi
  1020. echo "$ac_t""$ac_cv_header_time" 1>&6
  1021. if test $ac_cv_header_time = yes; then
  1022. cat >> confdefs.h <<\EOF
  1023. #define TIME_WITH_SYS_TIME 1
  1024. EOF
  1025. fi
  1026. for ac_func in gettimeofday
  1027. do
  1028. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1029. echo "configure:1145: checking for $ac_func" >&5
  1030. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1031. echo $ac_n "(cached) $ac_c" 1>&6
  1032. else
  1033. cat > conftest.$ac_ext <<EOF
  1034. #line 1150 "configure"
  1035. #include "confdefs.h"
  1036. /* System header to define __stub macros and hopefully few prototypes,
  1037. which can conflict with char $ac_func(); below. */
  1038. #include <assert.h>
  1039. /* Override any gcc2 internal prototype to avoid an error. */
  1040. /* We use char because int might match the return type of a gcc2
  1041. builtin and then its argument prototype would still apply. */
  1042. char $ac_func();
  1043. int main() {
  1044. /* The GNU C library defines this for functions which it implements
  1045. to always fail with ENOSYS. Some functions are actually named
  1046. something starting with __ and the normal name is an alias. */
  1047. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1048. choke me
  1049. #else
  1050. $ac_func();
  1051. #endif
  1052. ; return 0; }
  1053. EOF
  1054. if { (eval echo configure:1173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1055. rm -rf conftest*
  1056. eval "ac_cv_func_$ac_func=yes"
  1057. else
  1058. echo "configure: failed program was:" >&5
  1059. cat conftest.$ac_ext >&5
  1060. rm -rf conftest*
  1061. eval "ac_cv_func_$ac_func=no"
  1062. fi
  1063. rm -f conftest*
  1064. fi
  1065. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1066. echo "$ac_t""yes" 1>&6
  1067. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1068. cat >> confdefs.h <<EOF
  1069. #define $ac_tr_func 1
  1070. EOF
  1071. else
  1072. echo "$ac_t""no" 1>&6
  1073. fi
  1074. done
  1075. subdirs="Libnet-0.99 libpcap-0.4"
  1076. trap '' 1 2 15
  1077. cat > confcache <<\EOF
  1078. # This file is a shell script that caches the results of configure
  1079. # tests run on this system so they can be shared between configure
  1080. # scripts and configure runs. It is not useful on other systems.
  1081. # If it contains results you don't want to keep, you may remove or edit it.
  1082. #
  1083. # By default, configure uses ./config.cache as the cache file,
  1084. # creating it if it does not exist already. You can give configure
  1085. # the --cache-file=FILE option to use a different cache file; that is
  1086. # what configure does when it calls configure scripts in
  1087. # subdirectories, so they share the cache.
  1088. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1089. # config.status only pays attention to the cache file if you give it the
  1090. # --recheck option to rerun configure.
  1091. #
  1092. EOF
  1093. # The following way of writing the cache mishandles newlines in values,
  1094. # but we know of no workaround that is simple, portable, and efficient.
  1095. # So, don't put newlines in cache variables' values.
  1096. # Ultrix sh set writes to stderr and can't be redirected directly,
  1097. # and sets the high bit in the cache file unless we assign to the vars.
  1098. (set) 2>&1 |
  1099. case `(ac_space=' '; set) 2>&1` in
  1100. *ac_space=\ *)
  1101. # `set' does not quote correctly, so add quotes (double-quote substitution
  1102. # turns \\\\ into \\, and sed turns \\ into \).
  1103. sed -n \
  1104. -e "s/'/'\\\\''/g" \
  1105. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1106. ;;
  1107. *)
  1108. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1109. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1110. ;;
  1111. esac >> confcache
  1112. if cmp -s $cache_file confcache; then
  1113. :
  1114. else
  1115. if test -w $cache_file; then
  1116. echo "updating cache $cache_file"
  1117. cat confcache > $cache_file
  1118. else
  1119. echo "not updating unwritable cache $cache_file"
  1120. fi
  1121. fi
  1122. rm -f confcache
  1123. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1124. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1125. # Let make expand exec_prefix.
  1126. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1127. # Any assignment to VPATH causes Sun make to only execute
  1128. # the first set of double-colon rules, so remove it if not needed.
  1129. # If there is a colon in the path, we need to keep it.
  1130. if test "x$srcdir" = x.; then
  1131. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1132. fi
  1133. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1134. DEFS=-DHAVE_CONFIG_H
  1135. # Without the "./", some shells look in PATH for config.status.
  1136. : ${CONFIG_STATUS=./config.status}
  1137. echo creating $CONFIG_STATUS
  1138. rm -f $CONFIG_STATUS
  1139. cat > $CONFIG_STATUS <<EOF
  1140. #! /bin/sh
  1141. # Generated automatically by configure.
  1142. # Run this file to recreate the current configuration.
  1143. # This directory was configured as follows,
  1144. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1145. #
  1146. # $0 $ac_configure_args
  1147. #
  1148. # Compiler output produced by configure, useful for debugging
  1149. # configure, is in ./config.log if it exists.
  1150. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1151. for ac_option
  1152. do
  1153. case "\$ac_option" in
  1154. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1155. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1156. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1157. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1158. echo "$CONFIG_STATUS generated by autoconf version 2.12"
  1159. exit 0 ;;
  1160. -help | --help | --hel | --he | --h)
  1161. echo "\$ac_cs_usage"; exit 0 ;;
  1162. *) echo "\$ac_cs_usage"; exit 1 ;;
  1163. esac
  1164. done
  1165. ac_given_srcdir=$srcdir
  1166. ac_given_INSTALL="$INSTALL"
  1167. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1168. EOF
  1169. cat >> $CONFIG_STATUS <<EOF
  1170. # Protect against being on the right side of a sed subst in config.status.
  1171. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1172. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1173. $ac_vpsub
  1174. $extrasub
  1175. s%@CFLAGS@%$CFLAGS%g
  1176. s%@CPPFLAGS@%$CPPFLAGS%g
  1177. s%@CXXFLAGS@%$CXXFLAGS%g
  1178. s%@DEFS@%$DEFS%g
  1179. s%@LDFLAGS@%$LDFLAGS%g
  1180. s%@LIBS@%$LIBS%g
  1181. s%@exec_prefix@%$exec_prefix%g
  1182. s%@prefix@%$prefix%g
  1183. s%@program_transform_name@%$program_transform_name%g
  1184. s%@bindir@%$bindir%g
  1185. s%@sbindir@%$sbindir%g
  1186. s%@libexecdir@%$libexecdir%g
  1187. s%@datadir@%$datadir%g
  1188. s%@sysconfdir@%$sysconfdir%g
  1189. s%@sharedstatedir@%$sharedstatedir%g
  1190. s%@localstatedir@%$localstatedir%g
  1191. s%@libdir@%$libdir%g
  1192. s%@includedir@%$includedir%g
  1193. s%@oldincludedir@%$oldincludedir%g
  1194. s%@infodir@%$infodir%g
  1195. s%@mandir@%$mandir%g
  1196. s%@CC@%$CC%g
  1197. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1198. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1199. s%@SET_MAKE@%$SET_MAKE%g
  1200. s%@CPP@%$CPP%g
  1201. s%@subdirs@%$subdirs%g
  1202. CEOF
  1203. EOF
  1204. cat >> $CONFIG_STATUS <<\EOF
  1205. # Split the substitutions into bite-sized pieces for seds with
  1206. # small command number limits, like on Digital OSF/1 and HP-UX.
  1207. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1208. ac_file=1 # Number of current file.
  1209. ac_beg=1 # First line for current file.
  1210. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1211. ac_more_lines=:
  1212. ac_sed_cmds=""
  1213. while $ac_more_lines; do
  1214. if test $ac_beg -gt 1; then
  1215. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1216. else
  1217. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1218. fi
  1219. if test ! -s conftest.s$ac_file; then
  1220. ac_more_lines=false
  1221. rm -f conftest.s$ac_file
  1222. else
  1223. if test -z "$ac_sed_cmds"; then
  1224. ac_sed_cmds="sed -f conftest.s$ac_file"
  1225. else
  1226. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1227. fi
  1228. ac_file=`expr $ac_file + 1`
  1229. ac_beg=$ac_end
  1230. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1231. fi
  1232. done
  1233. if test -z "$ac_sed_cmds"; then
  1234. ac_sed_cmds=cat
  1235. fi
  1236. EOF
  1237. cat >> $CONFIG_STATUS <<EOF
  1238. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1239. EOF
  1240. cat >> $CONFIG_STATUS <<\EOF
  1241. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1242. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1243. case "$ac_file" in
  1244. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1245. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1246. *) ac_file_in="${ac_file}.in" ;;
  1247. esac
  1248. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1249. # Remove last slash and all that follows it. Not all systems have dirname.
  1250. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1251. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1252. # The file is in a subdirectory.
  1253. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1254. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1255. # A "../" for each directory in $ac_dir_suffix.
  1256. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1257. else
  1258. ac_dir_suffix= ac_dots=
  1259. fi
  1260. case "$ac_given_srcdir" in
  1261. .) srcdir=.
  1262. if test -z "$ac_dots"; then top_srcdir=.
  1263. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1264. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1265. *) # Relative path.
  1266. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1267. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1268. esac
  1269. case "$ac_given_INSTALL" in
  1270. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1271. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1272. esac
  1273. echo creating "$ac_file"
  1274. rm -f "$ac_file"
  1275. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1276. case "$ac_file" in
  1277. *Makefile*) ac_comsub="1i\\
  1278. # $configure_input" ;;
  1279. *) ac_comsub= ;;
  1280. esac
  1281. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1282. sed -e "$ac_comsub
  1283. s%@configure_input@%$configure_input%g
  1284. s%@srcdir@%$srcdir%g
  1285. s%@top_srcdir@%$top_srcdir%g
  1286. s%@INSTALL@%$INSTALL%g
  1287. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1288. fi; done
  1289. rm -f conftest.s*
  1290. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1291. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1292. #
  1293. # ac_d sets the value in "#define NAME VALUE" lines.
  1294. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  1295. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  1296. ac_dC='\3'
  1297. ac_dD='%g'
  1298. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1299. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1300. ac_uB='\([ ]\)%\1#\2define\3'
  1301. ac_uC=' '
  1302. ac_uD='\4%g'
  1303. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1304. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1305. ac_eB='$%\1#\2define\3'
  1306. ac_eC=' '
  1307. ac_eD='%g'
  1308. if test "${CONFIG_HEADERS+set}" != set; then
  1309. EOF
  1310. cat >> $CONFIG_STATUS <<EOF
  1311. CONFIG_HEADERS="config.h"
  1312. EOF
  1313. cat >> $CONFIG_STATUS <<\EOF
  1314. fi
  1315. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1316. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1317. case "$ac_file" in
  1318. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1319. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1320. *) ac_file_in="${ac_file}.in" ;;
  1321. esac
  1322. echo creating $ac_file
  1323. rm -f conftest.frag conftest.in conftest.out
  1324. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1325. cat $ac_file_inputs > conftest.in
  1326. EOF
  1327. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1328. # the proper values into config.h.in to produce config.h. And first:
  1329. # Protect against being on the right side of a sed subst in config.status.
  1330. # Protect against being in an unquoted here document in config.status.
  1331. rm -f conftest.vals
  1332. cat > conftest.hdr <<\EOF
  1333. s/[\\&%]/\\&/g
  1334. s%[\\$`]%\\&%g
  1335. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1336. s%ac_d%ac_u%gp
  1337. s%ac_u%ac_e%gp
  1338. EOF
  1339. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1340. rm -f conftest.hdr
  1341. # This sed command replaces #undef with comments. This is necessary, for
  1342. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1343. # on some systems where configure will not decide to define it.
  1344. cat >> conftest.vals <<\EOF
  1345. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1346. EOF
  1347. # Break up conftest.vals because some shells have a limit on
  1348. # the size of here documents, and old seds have small limits too.
  1349. rm -f conftest.tail
  1350. while :
  1351. do
  1352. ac_lines=`grep -c . conftest.vals`
  1353. # grep -c gives empty output for an empty file on some AIX systems.
  1354. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1355. # Write a limited-size here document to conftest.frag.
  1356. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1357. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1358. echo 'CEOF
  1359. sed -f conftest.frag conftest.in > conftest.out
  1360. rm -f conftest.in
  1361. mv conftest.out conftest.in
  1362. ' >> $CONFIG_STATUS
  1363. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1364. rm -f conftest.vals
  1365. mv conftest.tail conftest.vals
  1366. done
  1367. rm -f conftest.vals
  1368. cat >> $CONFIG_STATUS <<\EOF
  1369. rm -f conftest.frag conftest.h
  1370. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  1371. cat conftest.in >> conftest.h
  1372. rm -f conftest.in
  1373. if cmp -s $ac_file conftest.h 2>/dev/null; then
  1374. echo "$ac_file is unchanged"
  1375. rm -f conftest.h
  1376. else
  1377. # Remove last slash and all that follows it. Not all systems have dirname.
  1378. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1379. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1380. # The file is in a subdirectory.
  1381. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1382. fi
  1383. rm -f $ac_file
  1384. mv conftest.h $ac_file
  1385. fi
  1386. fi; done
  1387. EOF
  1388. cat >> $CONFIG_STATUS <<EOF
  1389. EOF
  1390. cat >> $CONFIG_STATUS <<\EOF
  1391. exit 0
  1392. EOF
  1393. chmod +x $CONFIG_STATUS
  1394. rm -fr confdefs* $ac_clean_files
  1395. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1396. if test "$no_recursion" != yes; then
  1397. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1398. ac_sub_configure_args=
  1399. ac_prev=
  1400. for ac_arg in $ac_configure_args; do
  1401. if test -n "$ac_prev"; then
  1402. ac_prev=
  1403. continue
  1404. fi
  1405. case "$ac_arg" in
  1406. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1407. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1408. ac_prev=cache_file ;;
  1409. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1410. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1411. ;;
  1412. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1413. ac_prev=srcdir ;;
  1414. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1415. ;;
  1416. *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  1417. esac
  1418. done
  1419. for ac_config_dir in Libnet-0.99 libpcap-0.4; do
  1420. # Do not complain, so a configure script can configure whichever
  1421. # parts of a large source tree are present.
  1422. if test ! -d $srcdir/$ac_config_dir; then
  1423. continue
  1424. fi
  1425. echo configuring in $ac_config_dir
  1426. case "$srcdir" in
  1427. .) ;;
  1428. *)
  1429. if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
  1430. else
  1431. { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
  1432. fi
  1433. ;;
  1434. esac
  1435. ac_popdir=`pwd`
  1436. cd $ac_config_dir
  1437. # A "../" for each directory in /$ac_config_dir.
  1438. ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
  1439. case "$srcdir" in
  1440. .) # No --srcdir option. We are building in place.
  1441. ac_sub_srcdir=$srcdir ;;
  1442. /*) # Absolute path.
  1443. ac_sub_srcdir=$srcdir/$ac_config_dir ;;
  1444. *) # Relative path.
  1445. ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
  1446. esac
  1447. # Check for guested configure; otherwise get Cygnus style configure.
  1448. if test -f $ac_sub_srcdir/configure; then
  1449. ac_sub_configure=$ac_sub_srcdir/configure
  1450. elif test -f $ac_sub_srcdir/configure.in; then
  1451. ac_sub_configure=$ac_configure
  1452. else
  1453. echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
  1454. ac_sub_configure=
  1455. fi
  1456. # The recursion is here.
  1457. if test -n "$ac_sub_configure"; then
  1458. # Make the cache file name correct relative to the subdirectory.
  1459. case "$cache_file" in
  1460. /*) ac_sub_cache_file=$cache_file ;;
  1461. *) # Relative path.
  1462. ac_sub_cache_file="$ac_dots$cache_file" ;;
  1463. esac
  1464. case "$ac_given_INSTALL" in
  1465. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1466. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1467. esac
  1468. echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
  1469. # The eval makes quoting arguments work.
  1470. if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
  1471. then :
  1472. else
  1473. { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
  1474. fi
  1475. fi
  1476. cd $ac_popdir
  1477. done
  1478. fi