configure 121 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for libnl 1.1.4.
  4. #
  5. # Report bugs to <tgraf@suug.ch>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. # Preserve -v and -x to the replacement shell.
  203. BASH_ENV=/dev/null
  204. ENV=/dev/null
  205. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  206. export CONFIG_SHELL
  207. case $- in # ((((
  208. *v*x* | *x*v* ) as_opts=-vx ;;
  209. *v* ) as_opts=-v ;;
  210. *x* ) as_opts=-x ;;
  211. * ) as_opts= ;;
  212. esac
  213. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  214. fi
  215. if test x$as_have_required = xno; then :
  216. $as_echo "$0: This script requires a shell more modern than all"
  217. $as_echo "$0: the shells that I found on your system."
  218. if test x${ZSH_VERSION+set} = xset ; then
  219. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  220. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  221. else
  222. $as_echo "$0: Please tell bug-autoconf@gnu.org and tgraf@suug.ch
  223. $0: about your system, including any error possibly output
  224. $0: before this message. Then install a modern shell, or
  225. $0: manually run the script under such a shell if you do
  226. $0: have one."
  227. fi
  228. exit 1
  229. fi
  230. fi
  231. fi
  232. SHELL=${CONFIG_SHELL-/bin/sh}
  233. export SHELL
  234. # Unset more variables known to interfere with behavior of common tools.
  235. CLICOLOR_FORCE= GREP_OPTIONS=
  236. unset CLICOLOR_FORCE GREP_OPTIONS
  237. ## --------------------- ##
  238. ## M4sh Shell Functions. ##
  239. ## --------------------- ##
  240. # as_fn_unset VAR
  241. # ---------------
  242. # Portably unset VAR.
  243. as_fn_unset ()
  244. {
  245. { eval $1=; unset $1;}
  246. }
  247. as_unset=as_fn_unset
  248. # as_fn_set_status STATUS
  249. # -----------------------
  250. # Set $? to STATUS, without forking.
  251. as_fn_set_status ()
  252. {
  253. return $1
  254. } # as_fn_set_status
  255. # as_fn_exit STATUS
  256. # -----------------
  257. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  258. as_fn_exit ()
  259. {
  260. set +e
  261. as_fn_set_status $1
  262. exit $1
  263. } # as_fn_exit
  264. # as_fn_mkdir_p
  265. # -------------
  266. # Create "$as_dir" as a directory, including parents if necessary.
  267. as_fn_mkdir_p ()
  268. {
  269. case $as_dir in #(
  270. -*) as_dir=./$as_dir;;
  271. esac
  272. test -d "$as_dir" || eval $as_mkdir_p || {
  273. as_dirs=
  274. while :; do
  275. case $as_dir in #(
  276. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  277. *) as_qdir=$as_dir;;
  278. esac
  279. as_dirs="'$as_qdir' $as_dirs"
  280. as_dir=`$as_dirname -- "$as_dir" ||
  281. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  282. X"$as_dir" : 'X\(//\)[^/]' \| \
  283. X"$as_dir" : 'X\(//\)$' \| \
  284. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  285. $as_echo X"$as_dir" |
  286. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  287. s//\1/
  288. q
  289. }
  290. /^X\(\/\/\)[^/].*/{
  291. s//\1/
  292. q
  293. }
  294. /^X\(\/\/\)$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\).*/{
  299. s//\1/
  300. q
  301. }
  302. s/.*/./; q'`
  303. test -d "$as_dir" && break
  304. done
  305. test -z "$as_dirs" || eval "mkdir $as_dirs"
  306. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  307. } # as_fn_mkdir_p
  308. # as_fn_append VAR VALUE
  309. # ----------------------
  310. # Append the text in VALUE to the end of the definition contained in VAR. Take
  311. # advantage of any shell optimizations that allow amortized linear growth over
  312. # repeated appends, instead of the typical quadratic growth present in naive
  313. # implementations.
  314. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  315. eval 'as_fn_append ()
  316. {
  317. eval $1+=\$2
  318. }'
  319. else
  320. as_fn_append ()
  321. {
  322. eval $1=\$$1\$2
  323. }
  324. fi # as_fn_append
  325. # as_fn_arith ARG...
  326. # ------------------
  327. # Perform arithmetic evaluation on the ARGs, and store the result in the
  328. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  329. # must be portable across $(()) and expr.
  330. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  331. eval 'as_fn_arith ()
  332. {
  333. as_val=$(( $* ))
  334. }'
  335. else
  336. as_fn_arith ()
  337. {
  338. as_val=`expr "$@" || test $? -eq 1`
  339. }
  340. fi # as_fn_arith
  341. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  342. # ----------------------------------------
  343. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  344. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  345. # script with STATUS, using 1 if that was 0.
  346. as_fn_error ()
  347. {
  348. as_status=$1; test $as_status -eq 0 && as_status=1
  349. if test "$4"; then
  350. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  351. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  352. fi
  353. $as_echo "$as_me: error: $2" >&2
  354. as_fn_exit $as_status
  355. } # as_fn_error
  356. if expr a : '\(a\)' >/dev/null 2>&1 &&
  357. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  358. as_expr=expr
  359. else
  360. as_expr=false
  361. fi
  362. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  363. as_basename=basename
  364. else
  365. as_basename=false
  366. fi
  367. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  368. as_dirname=dirname
  369. else
  370. as_dirname=false
  371. fi
  372. as_me=`$as_basename -- "$0" ||
  373. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  374. X"$0" : 'X\(//\)$' \| \
  375. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  376. $as_echo X/"$0" |
  377. sed '/^.*\/\([^/][^/]*\)\/*$/{
  378. s//\1/
  379. q
  380. }
  381. /^X\/\(\/\/\)$/{
  382. s//\1/
  383. q
  384. }
  385. /^X\/\(\/\).*/{
  386. s//\1/
  387. q
  388. }
  389. s/.*/./; q'`
  390. # Avoid depending upon Character Ranges.
  391. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  392. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  393. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  394. as_cr_digits='0123456789'
  395. as_cr_alnum=$as_cr_Letters$as_cr_digits
  396. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  397. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  398. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  399. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  400. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  401. sed -n '
  402. p
  403. /[$]LINENO/=
  404. ' <$as_myself |
  405. sed '
  406. s/[$]LINENO.*/&-/
  407. t lineno
  408. b
  409. :lineno
  410. N
  411. :loop
  412. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  413. t loop
  414. s/-\n.*//
  415. ' >$as_me.lineno &&
  416. chmod +x "$as_me.lineno" ||
  417. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  418. # Don't try to exec as it changes $[0], causing all sort of problems
  419. # (the dirname of $[0] is not the place where we might find the
  420. # original and so on. Autoconf is especially sensitive to this).
  421. . "./$as_me.lineno"
  422. # Exit status is that of the last command.
  423. exit
  424. }
  425. ECHO_C= ECHO_N= ECHO_T=
  426. case `echo -n x` in #(((((
  427. -n*)
  428. case `echo 'xy\c'` in
  429. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  430. xy) ECHO_C='\c';;
  431. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  432. ECHO_T=' ';;
  433. esac;;
  434. *)
  435. ECHO_N='-n';;
  436. esac
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p='mkdir -p "$as_dir"'
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in #(
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. test -n "$DJDIR" || exec 7<&0 </dev/null
  496. exec 6>&1
  497. # Name of the host.
  498. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  499. # so uname gets run too.
  500. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  501. #
  502. # Initializations.
  503. #
  504. ac_default_prefix=/usr/local
  505. ac_clean_files=
  506. ac_config_libobj_dir=.
  507. LIBOBJS=
  508. cross_compiling=no
  509. subdirs=
  510. MFLAGS=
  511. MAKEFLAGS=
  512. # Identity of this package.
  513. PACKAGE_NAME='libnl'
  514. PACKAGE_TARNAME='libnl'
  515. PACKAGE_VERSION='1.1.4'
  516. PACKAGE_STRING='libnl 1.1.4'
  517. PACKAGE_BUGREPORT='tgraf@suug.ch'
  518. PACKAGE_URL=''
  519. ac_subst_vars='LTLIBOBJS
  520. LIBOBJS
  521. LIBNL_LIB
  522. INSTALL_DATA
  523. INSTALL_SCRIPT
  524. INSTALL_PROGRAM
  525. OBJEXT
  526. EXEEXT
  527. ac_ct_CC
  528. CPPFLAGS
  529. LDFLAGS
  530. CFLAGS
  531. CC
  532. target_alias
  533. host_alias
  534. build_alias
  535. LIBS
  536. ECHO_T
  537. ECHO_N
  538. ECHO_C
  539. DEFS
  540. mandir
  541. localedir
  542. libdir
  543. psdir
  544. pdfdir
  545. dvidir
  546. htmldir
  547. infodir
  548. docdir
  549. oldincludedir
  550. includedir
  551. localstatedir
  552. sharedstatedir
  553. sysconfdir
  554. datadir
  555. datarootdir
  556. libexecdir
  557. sbindir
  558. bindir
  559. program_transform_name
  560. prefix
  561. exec_prefix
  562. PACKAGE_URL
  563. PACKAGE_BUGREPORT
  564. PACKAGE_STRING
  565. PACKAGE_VERSION
  566. PACKAGE_TARNAME
  567. PACKAGE_NAME
  568. PATH_SEPARATOR
  569. SHELL'
  570. ac_subst_files=''
  571. ac_user_opts='
  572. enable_option_checking
  573. enable_verbose_errors
  574. enable_pthreads
  575. '
  576. ac_precious_vars='build_alias
  577. host_alias
  578. target_alias
  579. CC
  580. CFLAGS
  581. LDFLAGS
  582. LIBS
  583. CPPFLAGS'
  584. # Initialize some variables set by options.
  585. ac_init_help=
  586. ac_init_version=false
  587. ac_unrecognized_opts=
  588. ac_unrecognized_sep=
  589. # The variables have the same names as the options, with
  590. # dashes changed to underlines.
  591. cache_file=/dev/null
  592. exec_prefix=NONE
  593. no_create=
  594. no_recursion=
  595. prefix=NONE
  596. program_prefix=NONE
  597. program_suffix=NONE
  598. program_transform_name=s,x,x,
  599. silent=
  600. site=
  601. srcdir=
  602. verbose=
  603. x_includes=NONE
  604. x_libraries=NONE
  605. # Installation directory options.
  606. # These are left unexpanded so users can "make install exec_prefix=/foo"
  607. # and all the variables that are supposed to be based on exec_prefix
  608. # by default will actually change.
  609. # Use braces instead of parens because sh, perl, etc. also accept them.
  610. # (The list follows the same order as the GNU Coding Standards.)
  611. bindir='${exec_prefix}/bin'
  612. sbindir='${exec_prefix}/sbin'
  613. libexecdir='${exec_prefix}/libexec'
  614. datarootdir='${prefix}/share'
  615. datadir='${datarootdir}'
  616. sysconfdir='${prefix}/etc'
  617. sharedstatedir='${prefix}/com'
  618. localstatedir='${prefix}/var'
  619. includedir='${prefix}/include'
  620. oldincludedir='/usr/include'
  621. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  622. infodir='${datarootdir}/info'
  623. htmldir='${docdir}'
  624. dvidir='${docdir}'
  625. pdfdir='${docdir}'
  626. psdir='${docdir}'
  627. libdir='${exec_prefix}/lib'
  628. localedir='${datarootdir}/locale'
  629. mandir='${datarootdir}/man'
  630. ac_prev=
  631. ac_dashdash=
  632. for ac_option
  633. do
  634. # If the previous option needs an argument, assign it.
  635. if test -n "$ac_prev"; then
  636. eval $ac_prev=\$ac_option
  637. ac_prev=
  638. continue
  639. fi
  640. case $ac_option in
  641. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  642. *=) ac_optarg= ;;
  643. *) ac_optarg=yes ;;
  644. esac
  645. # Accept the important Cygnus configure options, so we can diagnose typos.
  646. case $ac_dashdash$ac_option in
  647. --)
  648. ac_dashdash=yes ;;
  649. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  650. ac_prev=bindir ;;
  651. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  652. bindir=$ac_optarg ;;
  653. -build | --build | --buil | --bui | --bu)
  654. ac_prev=build_alias ;;
  655. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  656. build_alias=$ac_optarg ;;
  657. -cache-file | --cache-file | --cache-fil | --cache-fi \
  658. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  659. ac_prev=cache_file ;;
  660. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  661. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  662. cache_file=$ac_optarg ;;
  663. --config-cache | -C)
  664. cache_file=config.cache ;;
  665. -datadir | --datadir | --datadi | --datad)
  666. ac_prev=datadir ;;
  667. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  668. datadir=$ac_optarg ;;
  669. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  670. | --dataroo | --dataro | --datar)
  671. ac_prev=datarootdir ;;
  672. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  673. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  674. datarootdir=$ac_optarg ;;
  675. -disable-* | --disable-*)
  676. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  677. # Reject names that are not valid shell variable names.
  678. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  679. as_fn_error $? "invalid feature name: $ac_useropt"
  680. ac_useropt_orig=$ac_useropt
  681. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  682. case $ac_user_opts in
  683. *"
  684. "enable_$ac_useropt"
  685. "*) ;;
  686. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  687. ac_unrecognized_sep=', ';;
  688. esac
  689. eval enable_$ac_useropt=no ;;
  690. -docdir | --docdir | --docdi | --doc | --do)
  691. ac_prev=docdir ;;
  692. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  693. docdir=$ac_optarg ;;
  694. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  695. ac_prev=dvidir ;;
  696. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  697. dvidir=$ac_optarg ;;
  698. -enable-* | --enable-*)
  699. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  700. # Reject names that are not valid shell variable names.
  701. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  702. as_fn_error $? "invalid feature name: $ac_useropt"
  703. ac_useropt_orig=$ac_useropt
  704. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  705. case $ac_user_opts in
  706. *"
  707. "enable_$ac_useropt"
  708. "*) ;;
  709. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  710. ac_unrecognized_sep=', ';;
  711. esac
  712. eval enable_$ac_useropt=\$ac_optarg ;;
  713. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  714. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  715. | --exec | --exe | --ex)
  716. ac_prev=exec_prefix ;;
  717. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  718. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  719. | --exec=* | --exe=* | --ex=*)
  720. exec_prefix=$ac_optarg ;;
  721. -gas | --gas | --ga | --g)
  722. # Obsolete; use --with-gas.
  723. with_gas=yes ;;
  724. -help | --help | --hel | --he | -h)
  725. ac_init_help=long ;;
  726. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  727. ac_init_help=recursive ;;
  728. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  729. ac_init_help=short ;;
  730. -host | --host | --hos | --ho)
  731. ac_prev=host_alias ;;
  732. -host=* | --host=* | --hos=* | --ho=*)
  733. host_alias=$ac_optarg ;;
  734. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  735. ac_prev=htmldir ;;
  736. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  737. | --ht=*)
  738. htmldir=$ac_optarg ;;
  739. -includedir | --includedir | --includedi | --included | --include \
  740. | --includ | --inclu | --incl | --inc)
  741. ac_prev=includedir ;;
  742. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  743. | --includ=* | --inclu=* | --incl=* | --inc=*)
  744. includedir=$ac_optarg ;;
  745. -infodir | --infodir | --infodi | --infod | --info | --inf)
  746. ac_prev=infodir ;;
  747. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  748. infodir=$ac_optarg ;;
  749. -libdir | --libdir | --libdi | --libd)
  750. ac_prev=libdir ;;
  751. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  752. libdir=$ac_optarg ;;
  753. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  754. | --libexe | --libex | --libe)
  755. ac_prev=libexecdir ;;
  756. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  757. | --libexe=* | --libex=* | --libe=*)
  758. libexecdir=$ac_optarg ;;
  759. -localedir | --localedir | --localedi | --localed | --locale)
  760. ac_prev=localedir ;;
  761. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  762. localedir=$ac_optarg ;;
  763. -localstatedir | --localstatedir | --localstatedi | --localstated \
  764. | --localstate | --localstat | --localsta | --localst | --locals)
  765. ac_prev=localstatedir ;;
  766. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  767. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  768. localstatedir=$ac_optarg ;;
  769. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  770. ac_prev=mandir ;;
  771. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  772. mandir=$ac_optarg ;;
  773. -nfp | --nfp | --nf)
  774. # Obsolete; use --without-fp.
  775. with_fp=no ;;
  776. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  777. | --no-cr | --no-c | -n)
  778. no_create=yes ;;
  779. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  780. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  781. no_recursion=yes ;;
  782. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  783. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  784. | --oldin | --oldi | --old | --ol | --o)
  785. ac_prev=oldincludedir ;;
  786. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  787. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  788. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  789. oldincludedir=$ac_optarg ;;
  790. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  791. ac_prev=prefix ;;
  792. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  793. prefix=$ac_optarg ;;
  794. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  795. | --program-pre | --program-pr | --program-p)
  796. ac_prev=program_prefix ;;
  797. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  798. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  799. program_prefix=$ac_optarg ;;
  800. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  801. | --program-suf | --program-su | --program-s)
  802. ac_prev=program_suffix ;;
  803. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  804. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  805. program_suffix=$ac_optarg ;;
  806. -program-transform-name | --program-transform-name \
  807. | --program-transform-nam | --program-transform-na \
  808. | --program-transform-n | --program-transform- \
  809. | --program-transform | --program-transfor \
  810. | --program-transfo | --program-transf \
  811. | --program-trans | --program-tran \
  812. | --progr-tra | --program-tr | --program-t)
  813. ac_prev=program_transform_name ;;
  814. -program-transform-name=* | --program-transform-name=* \
  815. | --program-transform-nam=* | --program-transform-na=* \
  816. | --program-transform-n=* | --program-transform-=* \
  817. | --program-transform=* | --program-transfor=* \
  818. | --program-transfo=* | --program-transf=* \
  819. | --program-trans=* | --program-tran=* \
  820. | --progr-tra=* | --program-tr=* | --program-t=*)
  821. program_transform_name=$ac_optarg ;;
  822. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  823. ac_prev=pdfdir ;;
  824. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  825. pdfdir=$ac_optarg ;;
  826. -psdir | --psdir | --psdi | --psd | --ps)
  827. ac_prev=psdir ;;
  828. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  829. psdir=$ac_optarg ;;
  830. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  831. | -silent | --silent | --silen | --sile | --sil)
  832. silent=yes ;;
  833. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  834. ac_prev=sbindir ;;
  835. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  836. | --sbi=* | --sb=*)
  837. sbindir=$ac_optarg ;;
  838. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  839. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  840. | --sharedst | --shareds | --shared | --share | --shar \
  841. | --sha | --sh)
  842. ac_prev=sharedstatedir ;;
  843. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  844. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  845. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  846. | --sha=* | --sh=*)
  847. sharedstatedir=$ac_optarg ;;
  848. -site | --site | --sit)
  849. ac_prev=site ;;
  850. -site=* | --site=* | --sit=*)
  851. site=$ac_optarg ;;
  852. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  853. ac_prev=srcdir ;;
  854. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  855. srcdir=$ac_optarg ;;
  856. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  857. | --syscon | --sysco | --sysc | --sys | --sy)
  858. ac_prev=sysconfdir ;;
  859. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  860. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  861. sysconfdir=$ac_optarg ;;
  862. -target | --target | --targe | --targ | --tar | --ta | --t)
  863. ac_prev=target_alias ;;
  864. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  865. target_alias=$ac_optarg ;;
  866. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  867. verbose=yes ;;
  868. -version | --version | --versio | --versi | --vers | -V)
  869. ac_init_version=: ;;
  870. -with-* | --with-*)
  871. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  872. # Reject names that are not valid shell variable names.
  873. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  874. as_fn_error $? "invalid package name: $ac_useropt"
  875. ac_useropt_orig=$ac_useropt
  876. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  877. case $ac_user_opts in
  878. *"
  879. "with_$ac_useropt"
  880. "*) ;;
  881. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  882. ac_unrecognized_sep=', ';;
  883. esac
  884. eval with_$ac_useropt=\$ac_optarg ;;
  885. -without-* | --without-*)
  886. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  887. # Reject names that are not valid shell variable names.
  888. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  889. as_fn_error $? "invalid package name: $ac_useropt"
  890. ac_useropt_orig=$ac_useropt
  891. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  892. case $ac_user_opts in
  893. *"
  894. "with_$ac_useropt"
  895. "*) ;;
  896. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  897. ac_unrecognized_sep=', ';;
  898. esac
  899. eval with_$ac_useropt=no ;;
  900. --x)
  901. # Obsolete; use --with-x.
  902. with_x=yes ;;
  903. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  904. | --x-incl | --x-inc | --x-in | --x-i)
  905. ac_prev=x_includes ;;
  906. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  907. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  908. x_includes=$ac_optarg ;;
  909. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  910. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  911. ac_prev=x_libraries ;;
  912. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  913. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  914. x_libraries=$ac_optarg ;;
  915. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  916. Try \`$0 --help' for more information"
  917. ;;
  918. *=*)
  919. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  920. # Reject names that are not valid shell variable names.
  921. case $ac_envvar in #(
  922. '' | [0-9]* | *[!_$as_cr_alnum]* )
  923. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  924. esac
  925. eval $ac_envvar=\$ac_optarg
  926. export $ac_envvar ;;
  927. *)
  928. # FIXME: should be removed in autoconf 3.0.
  929. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  930. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  931. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  932. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  933. ;;
  934. esac
  935. done
  936. if test -n "$ac_prev"; then
  937. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  938. as_fn_error $? "missing argument to $ac_option"
  939. fi
  940. if test -n "$ac_unrecognized_opts"; then
  941. case $enable_option_checking in
  942. no) ;;
  943. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  944. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  945. esac
  946. fi
  947. # Check all directory arguments for consistency.
  948. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  949. datadir sysconfdir sharedstatedir localstatedir includedir \
  950. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  951. libdir localedir mandir
  952. do
  953. eval ac_val=\$$ac_var
  954. # Remove trailing slashes.
  955. case $ac_val in
  956. */ )
  957. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  958. eval $ac_var=\$ac_val;;
  959. esac
  960. # Be sure to have absolute directory names.
  961. case $ac_val in
  962. [\\/$]* | ?:[\\/]* ) continue;;
  963. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  964. esac
  965. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  966. done
  967. # There might be people who depend on the old broken behavior: `$host'
  968. # used to hold the argument of --host etc.
  969. # FIXME: To remove some day.
  970. build=$build_alias
  971. host=$host_alias
  972. target=$target_alias
  973. # FIXME: To remove some day.
  974. if test "x$host_alias" != x; then
  975. if test "x$build_alias" = x; then
  976. cross_compiling=maybe
  977. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  978. If a cross compiler is detected then cross compile mode will be used" >&2
  979. elif test "x$build_alias" != "x$host_alias"; then
  980. cross_compiling=yes
  981. fi
  982. fi
  983. ac_tool_prefix=
  984. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  985. test "$silent" = yes && exec 6>/dev/null
  986. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  987. ac_ls_di=`ls -di .` &&
  988. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  989. as_fn_error $? "working directory cannot be determined"
  990. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  991. as_fn_error $? "pwd does not report name of working directory"
  992. # Find the source files, if location was not specified.
  993. if test -z "$srcdir"; then
  994. ac_srcdir_defaulted=yes
  995. # Try the directory containing this script, then the parent directory.
  996. ac_confdir=`$as_dirname -- "$as_myself" ||
  997. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  998. X"$as_myself" : 'X\(//\)[^/]' \| \
  999. X"$as_myself" : 'X\(//\)$' \| \
  1000. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1001. $as_echo X"$as_myself" |
  1002. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1003. s//\1/
  1004. q
  1005. }
  1006. /^X\(\/\/\)[^/].*/{
  1007. s//\1/
  1008. q
  1009. }
  1010. /^X\(\/\/\)$/{
  1011. s//\1/
  1012. q
  1013. }
  1014. /^X\(\/\).*/{
  1015. s//\1/
  1016. q
  1017. }
  1018. s/.*/./; q'`
  1019. srcdir=$ac_confdir
  1020. if test ! -r "$srcdir/$ac_unique_file"; then
  1021. srcdir=..
  1022. fi
  1023. else
  1024. ac_srcdir_defaulted=no
  1025. fi
  1026. if test ! -r "$srcdir/$ac_unique_file"; then
  1027. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1028. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1029. fi
  1030. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1031. ac_abs_confdir=`(
  1032. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1033. pwd)`
  1034. # When building in place, set srcdir=.
  1035. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1036. srcdir=.
  1037. fi
  1038. # Remove unnecessary trailing slashes from srcdir.
  1039. # Double slashes in file names in object file debugging info
  1040. # mess up M-x gdb in Emacs.
  1041. case $srcdir in
  1042. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1043. esac
  1044. for ac_var in $ac_precious_vars; do
  1045. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1046. eval ac_env_${ac_var}_value=\$${ac_var}
  1047. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1048. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1049. done
  1050. #
  1051. # Report the --help message.
  1052. #
  1053. if test "$ac_init_help" = "long"; then
  1054. # Omit some internal or obsolete options to make the list less imposing.
  1055. # This message is too long to be a string in the A/UX 3.1 sh.
  1056. cat <<_ACEOF
  1057. \`configure' configures libnl 1.1.4 to adapt to many kinds of systems.
  1058. Usage: $0 [OPTION]... [VAR=VALUE]...
  1059. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1060. VAR=VALUE. See below for descriptions of some of the useful variables.
  1061. Defaults for the options are specified in brackets.
  1062. Configuration:
  1063. -h, --help display this help and exit
  1064. --help=short display options specific to this package
  1065. --help=recursive display the short help of all the included packages
  1066. -V, --version display version information and exit
  1067. -q, --quiet, --silent do not print \`checking ...' messages
  1068. --cache-file=FILE cache test results in FILE [disabled]
  1069. -C, --config-cache alias for \`--cache-file=config.cache'
  1070. -n, --no-create do not create output files
  1071. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1072. Installation directories:
  1073. --prefix=PREFIX install architecture-independent files in PREFIX
  1074. [$ac_default_prefix]
  1075. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1076. [PREFIX]
  1077. By default, \`make install' will install all the files in
  1078. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1079. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1080. for instance \`--prefix=\$HOME'.
  1081. For better control, use the options below.
  1082. Fine tuning of the installation directories:
  1083. --bindir=DIR user executables [EPREFIX/bin]
  1084. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1085. --libexecdir=DIR program executables [EPREFIX/libexec]
  1086. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1087. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1088. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1089. --libdir=DIR object code libraries [EPREFIX/lib]
  1090. --includedir=DIR C header files [PREFIX/include]
  1091. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1092. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1093. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1094. --infodir=DIR info documentation [DATAROOTDIR/info]
  1095. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1096. --mandir=DIR man documentation [DATAROOTDIR/man]
  1097. --docdir=DIR documentation root [DATAROOTDIR/doc/libnl]
  1098. --htmldir=DIR html documentation [DOCDIR]
  1099. --dvidir=DIR dvi documentation [DOCDIR]
  1100. --pdfdir=DIR pdf documentation [DOCDIR]
  1101. --psdir=DIR ps documentation [DOCDIR]
  1102. _ACEOF
  1103. cat <<\_ACEOF
  1104. _ACEOF
  1105. fi
  1106. if test -n "$ac_init_help"; then
  1107. case $ac_init_help in
  1108. short | recursive ) echo "Configuration of libnl 1.1.4:";;
  1109. esac
  1110. cat <<\_ACEOF
  1111. Optional Features:
  1112. --disable-option-checking ignore unrecognized --enable/--with options
  1113. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1114. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1115. --enable-verbose-errors enable verbose errors (debugging)
  1116. --disable-pthreads Disable pthreads support
  1117. Some influential environment variables:
  1118. CC C compiler command
  1119. CFLAGS C compiler flags
  1120. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1121. nonstandard directory <lib dir>
  1122. LIBS libraries to pass to the linker, e.g. -l<library>
  1123. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1124. you have headers in a nonstandard directory <include dir>
  1125. Use these variables to override the choices made by `configure' or to help
  1126. it to find libraries and programs with nonstandard names/locations.
  1127. Report bugs to <tgraf@suug.ch>.
  1128. _ACEOF
  1129. ac_status=$?
  1130. fi
  1131. if test "$ac_init_help" = "recursive"; then
  1132. # If there are subdirs, report their specific --help.
  1133. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1134. test -d "$ac_dir" ||
  1135. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1136. continue
  1137. ac_builddir=.
  1138. case "$ac_dir" in
  1139. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1140. *)
  1141. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1142. # A ".." for each directory in $ac_dir_suffix.
  1143. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1144. case $ac_top_builddir_sub in
  1145. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1146. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1147. esac ;;
  1148. esac
  1149. ac_abs_top_builddir=$ac_pwd
  1150. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1151. # for backward compatibility:
  1152. ac_top_builddir=$ac_top_build_prefix
  1153. case $srcdir in
  1154. .) # We are building in place.
  1155. ac_srcdir=.
  1156. ac_top_srcdir=$ac_top_builddir_sub
  1157. ac_abs_top_srcdir=$ac_pwd ;;
  1158. [\\/]* | ?:[\\/]* ) # Absolute name.
  1159. ac_srcdir=$srcdir$ac_dir_suffix;
  1160. ac_top_srcdir=$srcdir
  1161. ac_abs_top_srcdir=$srcdir ;;
  1162. *) # Relative name.
  1163. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1164. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1165. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1166. esac
  1167. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1168. cd "$ac_dir" || { ac_status=$?; continue; }
  1169. # Check for guested configure.
  1170. if test -f "$ac_srcdir/configure.gnu"; then
  1171. echo &&
  1172. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1173. elif test -f "$ac_srcdir/configure"; then
  1174. echo &&
  1175. $SHELL "$ac_srcdir/configure" --help=recursive
  1176. else
  1177. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1178. fi || ac_status=$?
  1179. cd "$ac_pwd" || { ac_status=$?; break; }
  1180. done
  1181. fi
  1182. test -n "$ac_init_help" && exit $ac_status
  1183. if $ac_init_version; then
  1184. cat <<\_ACEOF
  1185. libnl configure 1.1.4
  1186. generated by GNU Autoconf 2.68
  1187. Copyright (C) 2010 Free Software Foundation, Inc.
  1188. This configure script is free software; the Free Software Foundation
  1189. gives unlimited permission to copy, distribute and modify it.
  1190. _ACEOF
  1191. exit
  1192. fi
  1193. ## ------------------------ ##
  1194. ## Autoconf initialization. ##
  1195. ## ------------------------ ##
  1196. # ac_fn_c_try_compile LINENO
  1197. # --------------------------
  1198. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1199. ac_fn_c_try_compile ()
  1200. {
  1201. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1202. rm -f conftest.$ac_objext
  1203. if { { ac_try="$ac_compile"
  1204. case "(($ac_try" in
  1205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1206. *) ac_try_echo=$ac_try;;
  1207. esac
  1208. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1209. $as_echo "$ac_try_echo"; } >&5
  1210. (eval "$ac_compile") 2>conftest.err
  1211. ac_status=$?
  1212. if test -s conftest.err; then
  1213. grep -v '^ *+' conftest.err >conftest.er1
  1214. cat conftest.er1 >&5
  1215. mv -f conftest.er1 conftest.err
  1216. fi
  1217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1218. test $ac_status = 0; } && {
  1219. test -z "$ac_c_werror_flag" ||
  1220. test ! -s conftest.err
  1221. } && test -s conftest.$ac_objext; then :
  1222. ac_retval=0
  1223. else
  1224. $as_echo "$as_me: failed program was:" >&5
  1225. sed 's/^/| /' conftest.$ac_ext >&5
  1226. ac_retval=1
  1227. fi
  1228. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1229. as_fn_set_status $ac_retval
  1230. } # ac_fn_c_try_compile
  1231. # ac_fn_c_try_link LINENO
  1232. # -----------------------
  1233. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1234. ac_fn_c_try_link ()
  1235. {
  1236. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1237. rm -f conftest.$ac_objext conftest$ac_exeext
  1238. if { { ac_try="$ac_link"
  1239. case "(($ac_try" in
  1240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1241. *) ac_try_echo=$ac_try;;
  1242. esac
  1243. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1244. $as_echo "$ac_try_echo"; } >&5
  1245. (eval "$ac_link") 2>conftest.err
  1246. ac_status=$?
  1247. if test -s conftest.err; then
  1248. grep -v '^ *+' conftest.err >conftest.er1
  1249. cat conftest.er1 >&5
  1250. mv -f conftest.er1 conftest.err
  1251. fi
  1252. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1253. test $ac_status = 0; } && {
  1254. test -z "$ac_c_werror_flag" ||
  1255. test ! -s conftest.err
  1256. } && test -s conftest$ac_exeext && {
  1257. test "$cross_compiling" = yes ||
  1258. $as_test_x conftest$ac_exeext
  1259. }; then :
  1260. ac_retval=0
  1261. else
  1262. $as_echo "$as_me: failed program was:" >&5
  1263. sed 's/^/| /' conftest.$ac_ext >&5
  1264. ac_retval=1
  1265. fi
  1266. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1267. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1268. # interfere with the next link command; also delete a directory that is
  1269. # left behind by Apple's compiler. We do this before executing the actions.
  1270. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1271. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1272. as_fn_set_status $ac_retval
  1273. } # ac_fn_c_try_link
  1274. cat >config.log <<_ACEOF
  1275. This file contains any messages produced by compilers while
  1276. running configure, to aid debugging if configure makes a mistake.
  1277. It was created by libnl $as_me 1.1.4, which was
  1278. generated by GNU Autoconf 2.68. Invocation command line was
  1279. $ $0 $@
  1280. _ACEOF
  1281. exec 5>>config.log
  1282. {
  1283. cat <<_ASUNAME
  1284. ## --------- ##
  1285. ## Platform. ##
  1286. ## --------- ##
  1287. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1288. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1289. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1290. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1291. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1292. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1293. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1294. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1295. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1296. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1297. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1298. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1299. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1300. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1301. _ASUNAME
  1302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1303. for as_dir in $PATH
  1304. do
  1305. IFS=$as_save_IFS
  1306. test -z "$as_dir" && as_dir=.
  1307. $as_echo "PATH: $as_dir"
  1308. done
  1309. IFS=$as_save_IFS
  1310. } >&5
  1311. cat >&5 <<_ACEOF
  1312. ## ----------- ##
  1313. ## Core tests. ##
  1314. ## ----------- ##
  1315. _ACEOF
  1316. # Keep a trace of the command line.
  1317. # Strip out --no-create and --no-recursion so they do not pile up.
  1318. # Strip out --silent because we don't want to record it for future runs.
  1319. # Also quote any args containing shell meta-characters.
  1320. # Make two passes to allow for proper duplicate-argument suppression.
  1321. ac_configure_args=
  1322. ac_configure_args0=
  1323. ac_configure_args1=
  1324. ac_must_keep_next=false
  1325. for ac_pass in 1 2
  1326. do
  1327. for ac_arg
  1328. do
  1329. case $ac_arg in
  1330. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1331. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1332. | -silent | --silent | --silen | --sile | --sil)
  1333. continue ;;
  1334. *\'*)
  1335. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1336. esac
  1337. case $ac_pass in
  1338. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1339. 2)
  1340. as_fn_append ac_configure_args1 " '$ac_arg'"
  1341. if test $ac_must_keep_next = true; then
  1342. ac_must_keep_next=false # Got value, back to normal.
  1343. else
  1344. case $ac_arg in
  1345. *=* | --config-cache | -C | -disable-* | --disable-* \
  1346. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1347. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1348. | -with-* | --with-* | -without-* | --without-* | --x)
  1349. case "$ac_configure_args0 " in
  1350. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1351. esac
  1352. ;;
  1353. -* ) ac_must_keep_next=true ;;
  1354. esac
  1355. fi
  1356. as_fn_append ac_configure_args " '$ac_arg'"
  1357. ;;
  1358. esac
  1359. done
  1360. done
  1361. { ac_configure_args0=; unset ac_configure_args0;}
  1362. { ac_configure_args1=; unset ac_configure_args1;}
  1363. # When interrupted or exit'd, cleanup temporary files, and complete
  1364. # config.log. We remove comments because anyway the quotes in there
  1365. # would cause problems or look ugly.
  1366. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1367. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1368. trap 'exit_status=$?
  1369. # Save into config.log some information that might help in debugging.
  1370. {
  1371. echo
  1372. $as_echo "## ---------------- ##
  1373. ## Cache variables. ##
  1374. ## ---------------- ##"
  1375. echo
  1376. # The following way of writing the cache mishandles newlines in values,
  1377. (
  1378. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1379. eval ac_val=\$$ac_var
  1380. case $ac_val in #(
  1381. *${as_nl}*)
  1382. case $ac_var in #(
  1383. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1384. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1385. esac
  1386. case $ac_var in #(
  1387. _ | IFS | as_nl) ;; #(
  1388. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1389. *) { eval $ac_var=; unset $ac_var;} ;;
  1390. esac ;;
  1391. esac
  1392. done
  1393. (set) 2>&1 |
  1394. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1395. *${as_nl}ac_space=\ *)
  1396. sed -n \
  1397. "s/'\''/'\''\\\\'\'''\''/g;
  1398. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1399. ;; #(
  1400. *)
  1401. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1402. ;;
  1403. esac |
  1404. sort
  1405. )
  1406. echo
  1407. $as_echo "## ----------------- ##
  1408. ## Output variables. ##
  1409. ## ----------------- ##"
  1410. echo
  1411. for ac_var in $ac_subst_vars
  1412. do
  1413. eval ac_val=\$$ac_var
  1414. case $ac_val in
  1415. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1416. esac
  1417. $as_echo "$ac_var='\''$ac_val'\''"
  1418. done | sort
  1419. echo
  1420. if test -n "$ac_subst_files"; then
  1421. $as_echo "## ------------------- ##
  1422. ## File substitutions. ##
  1423. ## ------------------- ##"
  1424. echo
  1425. for ac_var in $ac_subst_files
  1426. do
  1427. eval ac_val=\$$ac_var
  1428. case $ac_val in
  1429. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1430. esac
  1431. $as_echo "$ac_var='\''$ac_val'\''"
  1432. done | sort
  1433. echo
  1434. fi
  1435. if test -s confdefs.h; then
  1436. $as_echo "## ----------- ##
  1437. ## confdefs.h. ##
  1438. ## ----------- ##"
  1439. echo
  1440. cat confdefs.h
  1441. echo
  1442. fi
  1443. test "$ac_signal" != 0 &&
  1444. $as_echo "$as_me: caught signal $ac_signal"
  1445. $as_echo "$as_me: exit $exit_status"
  1446. } >&5
  1447. rm -f core *.core core.conftest.* &&
  1448. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1449. exit $exit_status
  1450. ' 0
  1451. for ac_signal in 1 2 13 15; do
  1452. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1453. done
  1454. ac_signal=0
  1455. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1456. rm -f -r conftest* confdefs.h
  1457. $as_echo "/* confdefs.h */" > confdefs.h
  1458. # Predefined preprocessor variables.
  1459. cat >>confdefs.h <<_ACEOF
  1460. #define PACKAGE_NAME "$PACKAGE_NAME"
  1461. _ACEOF
  1462. cat >>confdefs.h <<_ACEOF
  1463. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1464. _ACEOF
  1465. cat >>confdefs.h <<_ACEOF
  1466. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1467. _ACEOF
  1468. cat >>confdefs.h <<_ACEOF
  1469. #define PACKAGE_STRING "$PACKAGE_STRING"
  1470. _ACEOF
  1471. cat >>confdefs.h <<_ACEOF
  1472. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1473. _ACEOF
  1474. cat >>confdefs.h <<_ACEOF
  1475. #define PACKAGE_URL "$PACKAGE_URL"
  1476. _ACEOF
  1477. # Let the site file select an alternate cache file if it wants to.
  1478. # Prefer an explicitly selected file to automatically selected ones.
  1479. ac_site_file1=NONE
  1480. ac_site_file2=NONE
  1481. if test -n "$CONFIG_SITE"; then
  1482. # We do not want a PATH search for config.site.
  1483. case $CONFIG_SITE in #((
  1484. -*) ac_site_file1=./$CONFIG_SITE;;
  1485. */*) ac_site_file1=$CONFIG_SITE;;
  1486. *) ac_site_file1=./$CONFIG_SITE;;
  1487. esac
  1488. elif test "x$prefix" != xNONE; then
  1489. ac_site_file1=$prefix/share/config.site
  1490. ac_site_file2=$prefix/etc/config.site
  1491. else
  1492. ac_site_file1=$ac_default_prefix/share/config.site
  1493. ac_site_file2=$ac_default_prefix/etc/config.site
  1494. fi
  1495. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1496. do
  1497. test "x$ac_site_file" = xNONE && continue
  1498. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1500. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1501. sed 's/^/| /' "$ac_site_file" >&5
  1502. . "$ac_site_file" \
  1503. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1504. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1505. as_fn_error $? "failed to load site script $ac_site_file
  1506. See \`config.log' for more details" "$LINENO" 5; }
  1507. fi
  1508. done
  1509. if test -r "$cache_file"; then
  1510. # Some versions of bash will fail to source /dev/null (special files
  1511. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1512. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1514. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1515. case $cache_file in
  1516. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1517. *) . "./$cache_file";;
  1518. esac
  1519. fi
  1520. else
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1522. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1523. >$cache_file
  1524. fi
  1525. # Check that the precious variables saved in the cache have kept the same
  1526. # value.
  1527. ac_cache_corrupted=false
  1528. for ac_var in $ac_precious_vars; do
  1529. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1530. eval ac_new_set=\$ac_env_${ac_var}_set
  1531. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1532. eval ac_new_val=\$ac_env_${ac_var}_value
  1533. case $ac_old_set,$ac_new_set in
  1534. set,)
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1536. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1537. ac_cache_corrupted=: ;;
  1538. ,set)
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1540. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1541. ac_cache_corrupted=: ;;
  1542. ,);;
  1543. *)
  1544. if test "x$ac_old_val" != "x$ac_new_val"; then
  1545. # differences in whitespace do not lead to failure.
  1546. ac_old_val_w=`echo x $ac_old_val`
  1547. ac_new_val_w=`echo x $ac_new_val`
  1548. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1550. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1551. ac_cache_corrupted=:
  1552. else
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1554. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1555. eval $ac_var=\$ac_old_val
  1556. fi
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1558. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1560. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1561. fi;;
  1562. esac
  1563. # Pass precious variables to config.status.
  1564. if test "$ac_new_set" = set; then
  1565. case $ac_new_val in
  1566. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1567. *) ac_arg=$ac_var=$ac_new_val ;;
  1568. esac
  1569. case " $ac_configure_args " in
  1570. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1571. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1572. esac
  1573. fi
  1574. done
  1575. if $ac_cache_corrupted; then
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1577. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1578. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1579. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1580. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1581. fi
  1582. ## -------------------- ##
  1583. ## Main body of script. ##
  1584. ## -------------------- ##
  1585. ac_ext=c
  1586. ac_cpp='$CPP $CPPFLAGS'
  1587. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1588. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1589. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1590. ac_config_headers="$ac_config_headers lib/defs.h"
  1591. save_CFLAGS="${CFLAGS}"
  1592. save_LDFLAGS="${LDFLAGS}"
  1593. save_CPPFLAGS="${CPPFLAGS}"
  1594. ac_ext=c
  1595. ac_cpp='$CPP $CPPFLAGS'
  1596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1599. if test -n "$ac_tool_prefix"; then
  1600. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1601. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1603. $as_echo_n "checking for $ac_word... " >&6; }
  1604. if ${ac_cv_prog_CC+:} false; then :
  1605. $as_echo_n "(cached) " >&6
  1606. else
  1607. if test -n "$CC"; then
  1608. ac_cv_prog_CC="$CC" # Let the user override the test.
  1609. else
  1610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1611. for as_dir in $PATH
  1612. do
  1613. IFS=$as_save_IFS
  1614. test -z "$as_dir" && as_dir=.
  1615. for ac_exec_ext in '' $ac_executable_extensions; do
  1616. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1617. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1619. break 2
  1620. fi
  1621. done
  1622. done
  1623. IFS=$as_save_IFS
  1624. fi
  1625. fi
  1626. CC=$ac_cv_prog_CC
  1627. if test -n "$CC"; then
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1629. $as_echo "$CC" >&6; }
  1630. else
  1631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1632. $as_echo "no" >&6; }
  1633. fi
  1634. fi
  1635. if test -z "$ac_cv_prog_CC"; then
  1636. ac_ct_CC=$CC
  1637. # Extract the first word of "gcc", so it can be a program name with args.
  1638. set dummy gcc; ac_word=$2
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1640. $as_echo_n "checking for $ac_word... " >&6; }
  1641. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  1642. $as_echo_n "(cached) " >&6
  1643. else
  1644. if test -n "$ac_ct_CC"; then
  1645. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1646. else
  1647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1648. for as_dir in $PATH
  1649. do
  1650. IFS=$as_save_IFS
  1651. test -z "$as_dir" && as_dir=.
  1652. for ac_exec_ext in '' $ac_executable_extensions; do
  1653. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1654. ac_cv_prog_ac_ct_CC="gcc"
  1655. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1656. break 2
  1657. fi
  1658. done
  1659. done
  1660. IFS=$as_save_IFS
  1661. fi
  1662. fi
  1663. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1664. if test -n "$ac_ct_CC"; then
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  1666. $as_echo "$ac_ct_CC" >&6; }
  1667. else
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1669. $as_echo "no" >&6; }
  1670. fi
  1671. if test "x$ac_ct_CC" = x; then
  1672. CC=""
  1673. else
  1674. case $cross_compiling:$ac_tool_warned in
  1675. yes:)
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1677. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1678. ac_tool_warned=yes ;;
  1679. esac
  1680. CC=$ac_ct_CC
  1681. fi
  1682. else
  1683. CC="$ac_cv_prog_CC"
  1684. fi
  1685. if test -z "$CC"; then
  1686. if test -n "$ac_tool_prefix"; then
  1687. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1688. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1690. $as_echo_n "checking for $ac_word... " >&6; }
  1691. if ${ac_cv_prog_CC+:} false; then :
  1692. $as_echo_n "(cached) " >&6
  1693. else
  1694. if test -n "$CC"; then
  1695. ac_cv_prog_CC="$CC" # Let the user override the test.
  1696. else
  1697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1698. for as_dir in $PATH
  1699. do
  1700. IFS=$as_save_IFS
  1701. test -z "$as_dir" && as_dir=.
  1702. for ac_exec_ext in '' $ac_executable_extensions; do
  1703. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1704. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1706. break 2
  1707. fi
  1708. done
  1709. done
  1710. IFS=$as_save_IFS
  1711. fi
  1712. fi
  1713. CC=$ac_cv_prog_CC
  1714. if test -n "$CC"; then
  1715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1716. $as_echo "$CC" >&6; }
  1717. else
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1719. $as_echo "no" >&6; }
  1720. fi
  1721. fi
  1722. fi
  1723. if test -z "$CC"; then
  1724. # Extract the first word of "cc", so it can be a program name with args.
  1725. set dummy cc; ac_word=$2
  1726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1727. $as_echo_n "checking for $ac_word... " >&6; }
  1728. if ${ac_cv_prog_CC+:} false; then :
  1729. $as_echo_n "(cached) " >&6
  1730. else
  1731. if test -n "$CC"; then
  1732. ac_cv_prog_CC="$CC" # Let the user override the test.
  1733. else
  1734. ac_prog_rejected=no
  1735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1736. for as_dir in $PATH
  1737. do
  1738. IFS=$as_save_IFS
  1739. test -z "$as_dir" && as_dir=.
  1740. for ac_exec_ext in '' $ac_executable_extensions; do
  1741. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1742. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1743. ac_prog_rejected=yes
  1744. continue
  1745. fi
  1746. ac_cv_prog_CC="cc"
  1747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1748. break 2
  1749. fi
  1750. done
  1751. done
  1752. IFS=$as_save_IFS
  1753. if test $ac_prog_rejected = yes; then
  1754. # We found a bogon in the path, so make sure we never use it.
  1755. set dummy $ac_cv_prog_CC
  1756. shift
  1757. if test $# != 0; then
  1758. # We chose a different compiler from the bogus one.
  1759. # However, it has the same basename, so the bogon will be chosen
  1760. # first if we set CC to just the basename; use the full file name.
  1761. shift
  1762. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1763. fi
  1764. fi
  1765. fi
  1766. fi
  1767. CC=$ac_cv_prog_CC
  1768. if test -n "$CC"; then
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1770. $as_echo "$CC" >&6; }
  1771. else
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1773. $as_echo "no" >&6; }
  1774. fi
  1775. fi
  1776. if test -z "$CC"; then
  1777. if test -n "$ac_tool_prefix"; then
  1778. for ac_prog in cl.exe
  1779. do
  1780. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1781. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1783. $as_echo_n "checking for $ac_word... " >&6; }
  1784. if ${ac_cv_prog_CC+:} false; then :
  1785. $as_echo_n "(cached) " >&6
  1786. else
  1787. if test -n "$CC"; then
  1788. ac_cv_prog_CC="$CC" # Let the user override the test.
  1789. else
  1790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1791. for as_dir in $PATH
  1792. do
  1793. IFS=$as_save_IFS
  1794. test -z "$as_dir" && as_dir=.
  1795. for ac_exec_ext in '' $ac_executable_extensions; do
  1796. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1797. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1799. break 2
  1800. fi
  1801. done
  1802. done
  1803. IFS=$as_save_IFS
  1804. fi
  1805. fi
  1806. CC=$ac_cv_prog_CC
  1807. if test -n "$CC"; then
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1809. $as_echo "$CC" >&6; }
  1810. else
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1812. $as_echo "no" >&6; }
  1813. fi
  1814. test -n "$CC" && break
  1815. done
  1816. fi
  1817. if test -z "$CC"; then
  1818. ac_ct_CC=$CC
  1819. for ac_prog in cl.exe
  1820. do
  1821. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1822. set dummy $ac_prog; ac_word=$2
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1824. $as_echo_n "checking for $ac_word... " >&6; }
  1825. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  1826. $as_echo_n "(cached) " >&6
  1827. else
  1828. if test -n "$ac_ct_CC"; then
  1829. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1830. else
  1831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1832. for as_dir in $PATH
  1833. do
  1834. IFS=$as_save_IFS
  1835. test -z "$as_dir" && as_dir=.
  1836. for ac_exec_ext in '' $ac_executable_extensions; do
  1837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1838. ac_cv_prog_ac_ct_CC="$ac_prog"
  1839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1840. break 2
  1841. fi
  1842. done
  1843. done
  1844. IFS=$as_save_IFS
  1845. fi
  1846. fi
  1847. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1848. if test -n "$ac_ct_CC"; then
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  1850. $as_echo "$ac_ct_CC" >&6; }
  1851. else
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1853. $as_echo "no" >&6; }
  1854. fi
  1855. test -n "$ac_ct_CC" && break
  1856. done
  1857. if test "x$ac_ct_CC" = x; then
  1858. CC=""
  1859. else
  1860. case $cross_compiling:$ac_tool_warned in
  1861. yes:)
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1863. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1864. ac_tool_warned=yes ;;
  1865. esac
  1866. CC=$ac_ct_CC
  1867. fi
  1868. fi
  1869. fi
  1870. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1871. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1872. as_fn_error $? "no acceptable C compiler found in \$PATH
  1873. See \`config.log' for more details" "$LINENO" 5; }
  1874. # Provide some information about the compiler.
  1875. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  1876. set X $ac_compile
  1877. ac_compiler=$2
  1878. for ac_option in --version -v -V -qversion; do
  1879. { { ac_try="$ac_compiler $ac_option >&5"
  1880. case "(($ac_try" in
  1881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1882. *) ac_try_echo=$ac_try;;
  1883. esac
  1884. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1885. $as_echo "$ac_try_echo"; } >&5
  1886. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  1887. ac_status=$?
  1888. if test -s conftest.err; then
  1889. sed '10a\
  1890. ... rest of stderr output deleted ...
  1891. 10q' conftest.err >conftest.er1
  1892. cat conftest.er1 >&5
  1893. fi
  1894. rm -f conftest.er1 conftest.err
  1895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1896. test $ac_status = 0; }
  1897. done
  1898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1899. /* end confdefs.h. */
  1900. int
  1901. main ()
  1902. {
  1903. ;
  1904. return 0;
  1905. }
  1906. _ACEOF
  1907. ac_clean_files_save=$ac_clean_files
  1908. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1909. # Try to create an executable without -o first, disregard a.out.
  1910. # It will help us diagnose broken compilers, and finding out an intuition
  1911. # of exeext.
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  1913. $as_echo_n "checking whether the C compiler works... " >&6; }
  1914. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1915. # The possible output files:
  1916. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1917. ac_rmfiles=
  1918. for ac_file in $ac_files
  1919. do
  1920. case $ac_file in
  1921. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1922. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1923. esac
  1924. done
  1925. rm -f $ac_rmfiles
  1926. if { { ac_try="$ac_link_default"
  1927. case "(($ac_try" in
  1928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1929. *) ac_try_echo=$ac_try;;
  1930. esac
  1931. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1932. $as_echo "$ac_try_echo"; } >&5
  1933. (eval "$ac_link_default") 2>&5
  1934. ac_status=$?
  1935. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1936. test $ac_status = 0; }; then :
  1937. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1938. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1939. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1940. # so that the user can short-circuit this test for compilers unknown to
  1941. # Autoconf.
  1942. for ac_file in $ac_files ''
  1943. do
  1944. test -f "$ac_file" || continue
  1945. case $ac_file in
  1946. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1947. ;;
  1948. [ab].out )
  1949. # We found the default executable, but exeext='' is most
  1950. # certainly right.
  1951. break;;
  1952. *.* )
  1953. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1954. then :; else
  1955. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1956. fi
  1957. # We set ac_cv_exeext here because the later test for it is not
  1958. # safe: cross compilers may not add the suffix if given an `-o'
  1959. # argument, so we may need to know it at that point already.
  1960. # Even if this section looks crufty: it has the advantage of
  1961. # actually working.
  1962. break;;
  1963. * )
  1964. break;;
  1965. esac
  1966. done
  1967. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1968. else
  1969. ac_file=''
  1970. fi
  1971. if test -z "$ac_file"; then :
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1973. $as_echo "no" >&6; }
  1974. $as_echo "$as_me: failed program was:" >&5
  1975. sed 's/^/| /' conftest.$ac_ext >&5
  1976. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1977. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1978. as_fn_error 77 "C compiler cannot create executables
  1979. See \`config.log' for more details" "$LINENO" 5; }
  1980. else
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1982. $as_echo "yes" >&6; }
  1983. fi
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  1985. $as_echo_n "checking for C compiler default output file name... " >&6; }
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  1987. $as_echo "$ac_file" >&6; }
  1988. ac_exeext=$ac_cv_exeext
  1989. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1990. ac_clean_files=$ac_clean_files_save
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  1992. $as_echo_n "checking for suffix of executables... " >&6; }
  1993. if { { ac_try="$ac_link"
  1994. case "(($ac_try" in
  1995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1996. *) ac_try_echo=$ac_try;;
  1997. esac
  1998. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1999. $as_echo "$ac_try_echo"; } >&5
  2000. (eval "$ac_link") 2>&5
  2001. ac_status=$?
  2002. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2003. test $ac_status = 0; }; then :
  2004. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2005. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2006. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2007. # `rm'.
  2008. for ac_file in conftest.exe conftest conftest.*; do
  2009. test -f "$ac_file" || continue
  2010. case $ac_file in
  2011. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2012. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2013. break;;
  2014. * ) break;;
  2015. esac
  2016. done
  2017. else
  2018. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2019. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2020. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2021. See \`config.log' for more details" "$LINENO" 5; }
  2022. fi
  2023. rm -f conftest conftest$ac_cv_exeext
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2025. $as_echo "$ac_cv_exeext" >&6; }
  2026. rm -f conftest.$ac_ext
  2027. EXEEXT=$ac_cv_exeext
  2028. ac_exeext=$EXEEXT
  2029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2030. /* end confdefs.h. */
  2031. #include <stdio.h>
  2032. int
  2033. main ()
  2034. {
  2035. FILE *f = fopen ("conftest.out", "w");
  2036. return ferror (f) || fclose (f) != 0;
  2037. ;
  2038. return 0;
  2039. }
  2040. _ACEOF
  2041. ac_clean_files="$ac_clean_files conftest.out"
  2042. # Check that the compiler produces executables we can run. If not, either
  2043. # the compiler is broken, or we cross compile.
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2045. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2046. if test "$cross_compiling" != yes; then
  2047. { { ac_try="$ac_link"
  2048. case "(($ac_try" in
  2049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2050. *) ac_try_echo=$ac_try;;
  2051. esac
  2052. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2053. $as_echo "$ac_try_echo"; } >&5
  2054. (eval "$ac_link") 2>&5
  2055. ac_status=$?
  2056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2057. test $ac_status = 0; }
  2058. if { ac_try='./conftest$ac_cv_exeext'
  2059. { { case "(($ac_try" in
  2060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2061. *) ac_try_echo=$ac_try;;
  2062. esac
  2063. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2064. $as_echo "$ac_try_echo"; } >&5
  2065. (eval "$ac_try") 2>&5
  2066. ac_status=$?
  2067. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2068. test $ac_status = 0; }; }; then
  2069. cross_compiling=no
  2070. else
  2071. if test "$cross_compiling" = maybe; then
  2072. cross_compiling=yes
  2073. else
  2074. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2075. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2076. as_fn_error $? "cannot run C compiled programs.
  2077. If you meant to cross compile, use \`--host'.
  2078. See \`config.log' for more details" "$LINENO" 5; }
  2079. fi
  2080. fi
  2081. fi
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2083. $as_echo "$cross_compiling" >&6; }
  2084. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2085. ac_clean_files=$ac_clean_files_save
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2087. $as_echo_n "checking for suffix of object files... " >&6; }
  2088. if ${ac_cv_objext+:} false; then :
  2089. $as_echo_n "(cached) " >&6
  2090. else
  2091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2092. /* end confdefs.h. */
  2093. int
  2094. main ()
  2095. {
  2096. ;
  2097. return 0;
  2098. }
  2099. _ACEOF
  2100. rm -f conftest.o conftest.obj
  2101. if { { ac_try="$ac_compile"
  2102. case "(($ac_try" in
  2103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2104. *) ac_try_echo=$ac_try;;
  2105. esac
  2106. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2107. $as_echo "$ac_try_echo"; } >&5
  2108. (eval "$ac_compile") 2>&5
  2109. ac_status=$?
  2110. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2111. test $ac_status = 0; }; then :
  2112. for ac_file in conftest.o conftest.obj conftest.*; do
  2113. test -f "$ac_file" || continue;
  2114. case $ac_file in
  2115. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2116. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2117. break;;
  2118. esac
  2119. done
  2120. else
  2121. $as_echo "$as_me: failed program was:" >&5
  2122. sed 's/^/| /' conftest.$ac_ext >&5
  2123. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2124. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2125. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2126. See \`config.log' for more details" "$LINENO" 5; }
  2127. fi
  2128. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2129. fi
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2131. $as_echo "$ac_cv_objext" >&6; }
  2132. OBJEXT=$ac_cv_objext
  2133. ac_objext=$OBJEXT
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2135. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2136. if ${ac_cv_c_compiler_gnu+:} false; then :
  2137. $as_echo_n "(cached) " >&6
  2138. else
  2139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2140. /* end confdefs.h. */
  2141. int
  2142. main ()
  2143. {
  2144. #ifndef __GNUC__
  2145. choke me
  2146. #endif
  2147. ;
  2148. return 0;
  2149. }
  2150. _ACEOF
  2151. if ac_fn_c_try_compile "$LINENO"; then :
  2152. ac_compiler_gnu=yes
  2153. else
  2154. ac_compiler_gnu=no
  2155. fi
  2156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2157. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2158. fi
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2160. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2161. if test $ac_compiler_gnu = yes; then
  2162. GCC=yes
  2163. else
  2164. GCC=
  2165. fi
  2166. ac_test_CFLAGS=${CFLAGS+set}
  2167. ac_save_CFLAGS=$CFLAGS
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2169. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2170. if ${ac_cv_prog_cc_g+:} false; then :
  2171. $as_echo_n "(cached) " >&6
  2172. else
  2173. ac_save_c_werror_flag=$ac_c_werror_flag
  2174. ac_c_werror_flag=yes
  2175. ac_cv_prog_cc_g=no
  2176. CFLAGS="-g"
  2177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2178. /* end confdefs.h. */
  2179. int
  2180. main ()
  2181. {
  2182. ;
  2183. return 0;
  2184. }
  2185. _ACEOF
  2186. if ac_fn_c_try_compile "$LINENO"; then :
  2187. ac_cv_prog_cc_g=yes
  2188. else
  2189. CFLAGS=""
  2190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2191. /* end confdefs.h. */
  2192. int
  2193. main ()
  2194. {
  2195. ;
  2196. return 0;
  2197. }
  2198. _ACEOF
  2199. if ac_fn_c_try_compile "$LINENO"; then :
  2200. else
  2201. ac_c_werror_flag=$ac_save_c_werror_flag
  2202. CFLAGS="-g"
  2203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2204. /* end confdefs.h. */
  2205. int
  2206. main ()
  2207. {
  2208. ;
  2209. return 0;
  2210. }
  2211. _ACEOF
  2212. if ac_fn_c_try_compile "$LINENO"; then :
  2213. ac_cv_prog_cc_g=yes
  2214. fi
  2215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2216. fi
  2217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2218. fi
  2219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2220. ac_c_werror_flag=$ac_save_c_werror_flag
  2221. fi
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2223. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2224. if test "$ac_test_CFLAGS" = set; then
  2225. CFLAGS=$ac_save_CFLAGS
  2226. elif test $ac_cv_prog_cc_g = yes; then
  2227. if test "$GCC" = yes; then
  2228. CFLAGS="-g -O2"
  2229. else
  2230. CFLAGS="-g"
  2231. fi
  2232. else
  2233. if test "$GCC" = yes; then
  2234. CFLAGS="-O2"
  2235. else
  2236. CFLAGS=
  2237. fi
  2238. fi
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2240. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2241. if ${ac_cv_prog_cc_c89+:} false; then :
  2242. $as_echo_n "(cached) " >&6
  2243. else
  2244. ac_cv_prog_cc_c89=no
  2245. ac_save_CC=$CC
  2246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2247. /* end confdefs.h. */
  2248. #include <stdarg.h>
  2249. #include <stdio.h>
  2250. #include <sys/types.h>
  2251. #include <sys/stat.h>
  2252. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2253. struct buf { int x; };
  2254. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2255. static char *e (p, i)
  2256. char **p;
  2257. int i;
  2258. {
  2259. return p[i];
  2260. }
  2261. static char *f (char * (*g) (char **, int), char **p, ...)
  2262. {
  2263. char *s;
  2264. va_list v;
  2265. va_start (v,p);
  2266. s = g (p, va_arg (v,int));
  2267. va_end (v);
  2268. return s;
  2269. }
  2270. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2271. function prototypes and stuff, but not '\xHH' hex character constants.
  2272. These don't provoke an error unfortunately, instead are silently treated
  2273. as 'x'. The following induces an error, until -std is added to get
  2274. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2275. array size at least. It's necessary to write '\x00'==0 to get something
  2276. that's true only with -std. */
  2277. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2278. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2279. inside strings and character constants. */
  2280. #define FOO(x) 'x'
  2281. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2282. int test (int i, double x);
  2283. struct s1 {int (*f) (int a);};
  2284. struct s2 {int (*f) (double a);};
  2285. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2286. int argc;
  2287. char **argv;
  2288. int
  2289. main ()
  2290. {
  2291. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2292. ;
  2293. return 0;
  2294. }
  2295. _ACEOF
  2296. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2297. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2298. do
  2299. CC="$ac_save_CC $ac_arg"
  2300. if ac_fn_c_try_compile "$LINENO"; then :
  2301. ac_cv_prog_cc_c89=$ac_arg
  2302. fi
  2303. rm -f core conftest.err conftest.$ac_objext
  2304. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2305. done
  2306. rm -f conftest.$ac_ext
  2307. CC=$ac_save_CC
  2308. fi
  2309. # AC_CACHE_VAL
  2310. case "x$ac_cv_prog_cc_c89" in
  2311. x)
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2313. $as_echo "none needed" >&6; } ;;
  2314. xno)
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2316. $as_echo "unsupported" >&6; } ;;
  2317. *)
  2318. CC="$CC $ac_cv_prog_cc_c89"
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2320. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2321. esac
  2322. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2323. fi
  2324. ac_ext=c
  2325. ac_cpp='$CPP $CPPFLAGS'
  2326. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2327. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2328. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2329. ac_aux_dir=
  2330. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2331. if test -f "$ac_dir/install-sh"; then
  2332. ac_aux_dir=$ac_dir
  2333. ac_install_sh="$ac_aux_dir/install-sh -c"
  2334. break
  2335. elif test -f "$ac_dir/install.sh"; then
  2336. ac_aux_dir=$ac_dir
  2337. ac_install_sh="$ac_aux_dir/install.sh -c"
  2338. break
  2339. elif test -f "$ac_dir/shtool"; then
  2340. ac_aux_dir=$ac_dir
  2341. ac_install_sh="$ac_aux_dir/shtool install -c"
  2342. break
  2343. fi
  2344. done
  2345. if test -z "$ac_aux_dir"; then
  2346. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2347. fi
  2348. # These three variables are undocumented and unsupported,
  2349. # and are intended to be withdrawn in a future Autoconf release.
  2350. # They can cause serious problems if a builder's source tree is in a directory
  2351. # whose full name contains unusual characters.
  2352. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2353. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2354. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2355. # Find a good install program. We prefer a C program (faster),
  2356. # so one script is as good as another. But avoid the broken or
  2357. # incompatible versions:
  2358. # SysV /etc/install, /usr/sbin/install
  2359. # SunOS /usr/etc/install
  2360. # IRIX /sbin/install
  2361. # AIX /bin/install
  2362. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2363. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2364. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2365. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2366. # OS/2's system install, which has a completely different semantic
  2367. # ./install, which can be erroneously created by make from ./install.sh.
  2368. # Reject install programs that cannot install multiple files.
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2370. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2371. if test -z "$INSTALL"; then
  2372. if ${ac_cv_path_install+:} false; then :
  2373. $as_echo_n "(cached) " >&6
  2374. else
  2375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2376. for as_dir in $PATH
  2377. do
  2378. IFS=$as_save_IFS
  2379. test -z "$as_dir" && as_dir=.
  2380. # Account for people who put trailing slashes in PATH elements.
  2381. case $as_dir/ in #((
  2382. ./ | .// | /[cC]/* | \
  2383. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2384. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2385. /usr/ucb/* ) ;;
  2386. *)
  2387. # OSF1 and SCO ODT 3.0 have their own names for install.
  2388. # Don't use installbsd from OSF since it installs stuff as root
  2389. # by default.
  2390. for ac_prog in ginstall scoinst install; do
  2391. for ac_exec_ext in '' $ac_executable_extensions; do
  2392. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2393. if test $ac_prog = install &&
  2394. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2395. # AIX install. It has an incompatible calling convention.
  2396. :
  2397. elif test $ac_prog = install &&
  2398. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2399. # program-specific install script used by HP pwplus--don't use.
  2400. :
  2401. else
  2402. rm -rf conftest.one conftest.two conftest.dir
  2403. echo one > conftest.one
  2404. echo two > conftest.two
  2405. mkdir conftest.dir
  2406. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2407. test -s conftest.one && test -s conftest.two &&
  2408. test -s conftest.dir/conftest.one &&
  2409. test -s conftest.dir/conftest.two
  2410. then
  2411. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2412. break 3
  2413. fi
  2414. fi
  2415. fi
  2416. done
  2417. done
  2418. ;;
  2419. esac
  2420. done
  2421. IFS=$as_save_IFS
  2422. rm -rf conftest.one conftest.two conftest.dir
  2423. fi
  2424. if test "${ac_cv_path_install+set}" = set; then
  2425. INSTALL=$ac_cv_path_install
  2426. else
  2427. # As a last resort, use the slow shell script. Don't cache a
  2428. # value for INSTALL within a source directory, because that will
  2429. # break other packages using the cache if that directory is
  2430. # removed, or if the value is a relative name.
  2431. INSTALL=$ac_install_sh
  2432. fi
  2433. fi
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2435. $as_echo "$INSTALL" >&6; }
  2436. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2437. # It thinks the first close brace ends the variable substitution.
  2438. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2439. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2440. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  2442. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  2443. if ${ac_cv_c_const+:} false; then :
  2444. $as_echo_n "(cached) " >&6
  2445. else
  2446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2447. /* end confdefs.h. */
  2448. int
  2449. main ()
  2450. {
  2451. /* FIXME: Include the comments suggested by Paul. */
  2452. #ifndef __cplusplus
  2453. /* Ultrix mips cc rejects this. */
  2454. typedef int charset[2];
  2455. const charset cs;
  2456. /* SunOS 4.1.1 cc rejects this. */
  2457. char const *const *pcpcc;
  2458. char **ppc;
  2459. /* NEC SVR4.0.2 mips cc rejects this. */
  2460. struct point {int x, y;};
  2461. static struct point const zero = {0,0};
  2462. /* AIX XL C 1.02.0.0 rejects this.
  2463. It does not let you subtract one const X* pointer from another in
  2464. an arm of an if-expression whose if-part is not a constant
  2465. expression */
  2466. const char *g = "string";
  2467. pcpcc = &g + (g ? g-g : 0);
  2468. /* HPUX 7.0 cc rejects these. */
  2469. ++pcpcc;
  2470. ppc = (char**) pcpcc;
  2471. pcpcc = (char const *const *) ppc;
  2472. { /* SCO 3.2v4 cc rejects this. */
  2473. char *t;
  2474. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2475. *t++ = 0;
  2476. if (s) return 0;
  2477. }
  2478. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2479. int x[] = {25, 17};
  2480. const int *foo = &x[0];
  2481. ++foo;
  2482. }
  2483. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2484. typedef const int *iptr;
  2485. iptr p = 0;
  2486. ++p;
  2487. }
  2488. { /* AIX XL C 1.02.0.0 rejects this saying
  2489. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2490. struct s { int j; const int *ap[3]; };
  2491. struct s *b; b->j = 5;
  2492. }
  2493. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2494. const int foo = 10;
  2495. if (!foo) return 0;
  2496. }
  2497. return !cs[0] && !zero.x;
  2498. #endif
  2499. ;
  2500. return 0;
  2501. }
  2502. _ACEOF
  2503. if ac_fn_c_try_compile "$LINENO"; then :
  2504. ac_cv_c_const=yes
  2505. else
  2506. ac_cv_c_const=no
  2507. fi
  2508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2509. fi
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  2511. $as_echo "$ac_cv_c_const" >&6; }
  2512. if test $ac_cv_c_const = no; then
  2513. $as_echo "#define const /**/" >>confdefs.h
  2514. fi
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  2516. $as_echo_n "checking for inline... " >&6; }
  2517. if ${ac_cv_c_inline+:} false; then :
  2518. $as_echo_n "(cached) " >&6
  2519. else
  2520. ac_cv_c_inline=no
  2521. for ac_kw in inline __inline__ __inline; do
  2522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2523. /* end confdefs.h. */
  2524. #ifndef __cplusplus
  2525. typedef int foo_t;
  2526. static $ac_kw foo_t static_foo () {return 0; }
  2527. $ac_kw foo_t foo () {return 0; }
  2528. #endif
  2529. _ACEOF
  2530. if ac_fn_c_try_compile "$LINENO"; then :
  2531. ac_cv_c_inline=$ac_kw
  2532. fi
  2533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2534. test "$ac_cv_c_inline" != no && break
  2535. done
  2536. fi
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  2538. $as_echo "$ac_cv_c_inline" >&6; }
  2539. case $ac_cv_c_inline in
  2540. inline | yes) ;;
  2541. *)
  2542. case $ac_cv_c_inline in
  2543. no) ac_val=;;
  2544. *) ac_val=$ac_cv_c_inline;;
  2545. esac
  2546. cat >>confdefs.h <<_ACEOF
  2547. #ifndef __cplusplus
  2548. #define inline $ac_val
  2549. #endif
  2550. _ACEOF
  2551. ;;
  2552. esac
  2553. #####################################################################
  2554. ##
  2555. ## libm check
  2556. ##
  2557. #####################################################################
  2558. M="No "
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  2560. $as_echo_n "checking for pow in -lm... " >&6; }
  2561. if ${ac_cv_lib_m_pow+:} false; then :
  2562. $as_echo_n "(cached) " >&6
  2563. else
  2564. ac_check_lib_save_LIBS=$LIBS
  2565. LIBS="-lm $LIBS"
  2566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2567. /* end confdefs.h. */
  2568. /* Override any GCC internal prototype to avoid an error.
  2569. Use char because int might match the return type of a GCC
  2570. builtin and then its argument prototype would still apply. */
  2571. #ifdef __cplusplus
  2572. extern "C"
  2573. #endif
  2574. char pow ();
  2575. int
  2576. main ()
  2577. {
  2578. return pow ();
  2579. ;
  2580. return 0;
  2581. }
  2582. _ACEOF
  2583. if ac_fn_c_try_link "$LINENO"; then :
  2584. ac_cv_lib_m_pow=yes
  2585. else
  2586. ac_cv_lib_m_pow=no
  2587. fi
  2588. rm -f core conftest.err conftest.$ac_objext \
  2589. conftest$ac_exeext conftest.$ac_ext
  2590. LIBS=$ac_check_lib_save_LIBS
  2591. fi
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  2593. $as_echo "$ac_cv_lib_m_pow" >&6; }
  2594. if test "x$ac_cv_lib_m_pow" = xyes; then :
  2595. LIBM="-lm"
  2596. M="Yes"
  2597. else
  2598. echo
  2599. echo "*** Error: libm required ***"
  2600. echo
  2601. exit
  2602. fi
  2603. #####################################################################
  2604. ##
  2605. ## verbose error strings
  2606. ##
  2607. #####################################################################
  2608. # Check whether --enable-verbose-errors was given.
  2609. if test "${enable_verbose_errors+set}" = set; then :
  2610. enableval=$enable_verbose_errors;
  2611. if test x$enableval = xyes; then
  2612. cat >>confdefs.h <<_ACEOF
  2613. #define VERBOSE_ERRORS "1"
  2614. _ACEOF
  2615. fi
  2616. fi
  2617. # Check whether --enable-pthreads was given.
  2618. if test "${enable_pthreads+set}" = set; then :
  2619. enableval=$enable_pthreads; enable_pthreads="$enableval"
  2620. else
  2621. enable_pthreads="yes"
  2622. fi
  2623. if test "x$enable_pthreads" = "xno"; then
  2624. $as_echo "#define DISABLE_PTHREADS 1" >>confdefs.h
  2625. else
  2626. # libpthread
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
  2628. $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
  2629. if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. ac_check_lib_save_LIBS=$LIBS
  2633. LIBS="-lpthread $LIBS"
  2634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2635. /* end confdefs.h. */
  2636. /* Override any GCC internal prototype to avoid an error.
  2637. Use char because int might match the return type of a GCC
  2638. builtin and then its argument prototype would still apply. */
  2639. #ifdef __cplusplus
  2640. extern "C"
  2641. #endif
  2642. char pthread_mutex_lock ();
  2643. int
  2644. main ()
  2645. {
  2646. return pthread_mutex_lock ();
  2647. ;
  2648. return 0;
  2649. }
  2650. _ACEOF
  2651. if ac_fn_c_try_link "$LINENO"; then :
  2652. ac_cv_lib_pthread_pthread_mutex_lock=yes
  2653. else
  2654. ac_cv_lib_pthread_pthread_mutex_lock=no
  2655. fi
  2656. rm -f core conftest.err conftest.$ac_objext \
  2657. conftest$ac_exeext conftest.$ac_ext
  2658. LIBS=$ac_check_lib_save_LIBS
  2659. fi
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
  2661. $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
  2662. if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
  2663. LIBPTHREAD="-lpthread"
  2664. PTHREAD="Yes"
  2665. else
  2666. as_fn_error $? "libpthread is required" "$LINENO" 5
  2667. fi
  2668. fi
  2669. #####################################################################
  2670. ##
  2671. ## compile decisions
  2672. ##
  2673. #####################################################################
  2674. COMPILE_LIBNL="Yes "
  2675. LIBNL_LIB="$LIBM $LIBPTHREAD"
  2676. ac_config_files="$ac_config_files Makefile.opts libnl-1.pc doc/Doxyfile"
  2677. cat >confcache <<\_ACEOF
  2678. # This file is a shell script that caches the results of configure
  2679. # tests run on this system so they can be shared between configure
  2680. # scripts and configure runs, see configure's option --config-cache.
  2681. # It is not useful on other systems. If it contains results you don't
  2682. # want to keep, you may remove or edit it.
  2683. #
  2684. # config.status only pays attention to the cache file if you give it
  2685. # the --recheck option to rerun configure.
  2686. #
  2687. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2688. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2689. # following values.
  2690. _ACEOF
  2691. # The following way of writing the cache mishandles newlines in values,
  2692. # but we know of no workaround that is simple, portable, and efficient.
  2693. # So, we kill variables containing newlines.
  2694. # Ultrix sh set writes to stderr and can't be redirected directly,
  2695. # and sets the high bit in the cache file unless we assign to the vars.
  2696. (
  2697. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  2698. eval ac_val=\$$ac_var
  2699. case $ac_val in #(
  2700. *${as_nl}*)
  2701. case $ac_var in #(
  2702. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2703. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2704. esac
  2705. case $ac_var in #(
  2706. _ | IFS | as_nl) ;; #(
  2707. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2708. *) { eval $ac_var=; unset $ac_var;} ;;
  2709. esac ;;
  2710. esac
  2711. done
  2712. (set) 2>&1 |
  2713. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  2714. *${as_nl}ac_space=\ *)
  2715. # `set' does not quote correctly, so add quotes: double-quote
  2716. # substitution turns \\\\ into \\, and sed turns \\ into \.
  2717. sed -n \
  2718. "s/'/'\\\\''/g;
  2719. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2720. ;; #(
  2721. *)
  2722. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2723. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2724. ;;
  2725. esac |
  2726. sort
  2727. ) |
  2728. sed '
  2729. /^ac_cv_env_/b end
  2730. t clear
  2731. :clear
  2732. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2733. t end
  2734. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2735. :end' >>confcache
  2736. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  2737. if test -w "$cache_file"; then
  2738. if test "x$cache_file" != "x/dev/null"; then
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  2740. $as_echo "$as_me: updating cache $cache_file" >&6;}
  2741. if test ! -f "$cache_file" || test -h "$cache_file"; then
  2742. cat confcache >"$cache_file"
  2743. else
  2744. case $cache_file in #(
  2745. */* | ?:*)
  2746. mv -f confcache "$cache_file"$$ &&
  2747. mv -f "$cache_file"$$ "$cache_file" ;; #(
  2748. *)
  2749. mv -f confcache "$cache_file" ;;
  2750. esac
  2751. fi
  2752. fi
  2753. else
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  2755. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  2756. fi
  2757. fi
  2758. rm -f confcache
  2759. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2760. # Let make expand exec_prefix.
  2761. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2762. DEFS=-DHAVE_CONFIG_H
  2763. ac_libobjs=
  2764. ac_ltlibobjs=
  2765. U=
  2766. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  2767. # 1. Remove the extension, and $U if already installed.
  2768. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  2769. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  2770. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  2771. # will be set to the directory where LIBOBJS objects are built.
  2772. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  2773. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  2774. done
  2775. LIBOBJS=$ac_libobjs
  2776. LTLIBOBJS=$ac_ltlibobjs
  2777. : "${CONFIG_STATUS=./config.status}"
  2778. ac_write_fail=0
  2779. ac_clean_files_save=$ac_clean_files
  2780. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  2782. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  2783. as_write_fail=0
  2784. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  2785. #! $SHELL
  2786. # Generated by $as_me.
  2787. # Run this file to recreate the current configuration.
  2788. # Compiler output produced by configure, useful for debugging
  2789. # configure, is in config.log if it exists.
  2790. debug=false
  2791. ac_cs_recheck=false
  2792. ac_cs_silent=false
  2793. SHELL=\${CONFIG_SHELL-$SHELL}
  2794. export SHELL
  2795. _ASEOF
  2796. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  2797. ## -------------------- ##
  2798. ## M4sh Initialization. ##
  2799. ## -------------------- ##
  2800. # Be more Bourne compatible
  2801. DUALCASE=1; export DUALCASE # for MKS sh
  2802. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  2803. emulate sh
  2804. NULLCMD=:
  2805. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  2806. # is contrary to our usage. Disable this feature.
  2807. alias -g '${1+"$@"}'='"$@"'
  2808. setopt NO_GLOB_SUBST
  2809. else
  2810. case `(set -o) 2>/dev/null` in #(
  2811. *posix*) :
  2812. set -o posix ;; #(
  2813. *) :
  2814. ;;
  2815. esac
  2816. fi
  2817. as_nl='
  2818. '
  2819. export as_nl
  2820. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  2821. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2822. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  2823. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  2824. # Prefer a ksh shell builtin over an external printf program on Solaris,
  2825. # but without wasting forks for bash or zsh.
  2826. if test -z "$BASH_VERSION$ZSH_VERSION" \
  2827. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  2828. as_echo='print -r --'
  2829. as_echo_n='print -rn --'
  2830. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  2831. as_echo='printf %s\n'
  2832. as_echo_n='printf %s'
  2833. else
  2834. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  2835. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  2836. as_echo_n='/usr/ucb/echo -n'
  2837. else
  2838. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  2839. as_echo_n_body='eval
  2840. arg=$1;
  2841. case $arg in #(
  2842. *"$as_nl"*)
  2843. expr "X$arg" : "X\\(.*\\)$as_nl";
  2844. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  2845. esac;
  2846. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  2847. '
  2848. export as_echo_n_body
  2849. as_echo_n='sh -c $as_echo_n_body as_echo'
  2850. fi
  2851. export as_echo_body
  2852. as_echo='sh -c $as_echo_body as_echo'
  2853. fi
  2854. # The user is always right.
  2855. if test "${PATH_SEPARATOR+set}" != set; then
  2856. PATH_SEPARATOR=:
  2857. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  2858. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  2859. PATH_SEPARATOR=';'
  2860. }
  2861. fi
  2862. # IFS
  2863. # We need space, tab and new line, in precisely that order. Quoting is
  2864. # there to prevent editors from complaining about space-tab.
  2865. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  2866. # splitting by setting IFS to empty value.)
  2867. IFS=" "" $as_nl"
  2868. # Find who we are. Look in the path if we contain no directory separator.
  2869. as_myself=
  2870. case $0 in #((
  2871. *[\\/]* ) as_myself=$0 ;;
  2872. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2873. for as_dir in $PATH
  2874. do
  2875. IFS=$as_save_IFS
  2876. test -z "$as_dir" && as_dir=.
  2877. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  2878. done
  2879. IFS=$as_save_IFS
  2880. ;;
  2881. esac
  2882. # We did not find ourselves, most probably we were run as `sh COMMAND'
  2883. # in which case we are not to be found in the path.
  2884. if test "x$as_myself" = x; then
  2885. as_myself=$0
  2886. fi
  2887. if test ! -f "$as_myself"; then
  2888. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  2889. exit 1
  2890. fi
  2891. # Unset variables that we do not need and which cause bugs (e.g. in
  2892. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  2893. # suppresses any "Segmentation fault" message there. '((' could
  2894. # trigger a bug in pdksh 5.2.14.
  2895. for as_var in BASH_ENV ENV MAIL MAILPATH
  2896. do eval test x\${$as_var+set} = xset \
  2897. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  2898. done
  2899. PS1='$ '
  2900. PS2='> '
  2901. PS4='+ '
  2902. # NLS nuisances.
  2903. LC_ALL=C
  2904. export LC_ALL
  2905. LANGUAGE=C
  2906. export LANGUAGE
  2907. # CDPATH.
  2908. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2909. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  2910. # ----------------------------------------
  2911. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  2912. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  2913. # script with STATUS, using 1 if that was 0.
  2914. as_fn_error ()
  2915. {
  2916. as_status=$1; test $as_status -eq 0 && as_status=1
  2917. if test "$4"; then
  2918. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  2920. fi
  2921. $as_echo "$as_me: error: $2" >&2
  2922. as_fn_exit $as_status
  2923. } # as_fn_error
  2924. # as_fn_set_status STATUS
  2925. # -----------------------
  2926. # Set $? to STATUS, without forking.
  2927. as_fn_set_status ()
  2928. {
  2929. return $1
  2930. } # as_fn_set_status
  2931. # as_fn_exit STATUS
  2932. # -----------------
  2933. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  2934. as_fn_exit ()
  2935. {
  2936. set +e
  2937. as_fn_set_status $1
  2938. exit $1
  2939. } # as_fn_exit
  2940. # as_fn_unset VAR
  2941. # ---------------
  2942. # Portably unset VAR.
  2943. as_fn_unset ()
  2944. {
  2945. { eval $1=; unset $1;}
  2946. }
  2947. as_unset=as_fn_unset
  2948. # as_fn_append VAR VALUE
  2949. # ----------------------
  2950. # Append the text in VALUE to the end of the definition contained in VAR. Take
  2951. # advantage of any shell optimizations that allow amortized linear growth over
  2952. # repeated appends, instead of the typical quadratic growth present in naive
  2953. # implementations.
  2954. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  2955. eval 'as_fn_append ()
  2956. {
  2957. eval $1+=\$2
  2958. }'
  2959. else
  2960. as_fn_append ()
  2961. {
  2962. eval $1=\$$1\$2
  2963. }
  2964. fi # as_fn_append
  2965. # as_fn_arith ARG...
  2966. # ------------------
  2967. # Perform arithmetic evaluation on the ARGs, and store the result in the
  2968. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  2969. # must be portable across $(()) and expr.
  2970. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  2971. eval 'as_fn_arith ()
  2972. {
  2973. as_val=$(( $* ))
  2974. }'
  2975. else
  2976. as_fn_arith ()
  2977. {
  2978. as_val=`expr "$@" || test $? -eq 1`
  2979. }
  2980. fi # as_fn_arith
  2981. if expr a : '\(a\)' >/dev/null 2>&1 &&
  2982. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  2983. as_expr=expr
  2984. else
  2985. as_expr=false
  2986. fi
  2987. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  2988. as_basename=basename
  2989. else
  2990. as_basename=false
  2991. fi
  2992. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  2993. as_dirname=dirname
  2994. else
  2995. as_dirname=false
  2996. fi
  2997. as_me=`$as_basename -- "$0" ||
  2998. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  2999. X"$0" : 'X\(//\)$' \| \
  3000. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  3001. $as_echo X/"$0" |
  3002. sed '/^.*\/\([^/][^/]*\)\/*$/{
  3003. s//\1/
  3004. q
  3005. }
  3006. /^X\/\(\/\/\)$/{
  3007. s//\1/
  3008. q
  3009. }
  3010. /^X\/\(\/\).*/{
  3011. s//\1/
  3012. q
  3013. }
  3014. s/.*/./; q'`
  3015. # Avoid depending upon Character Ranges.
  3016. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3017. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3018. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3019. as_cr_digits='0123456789'
  3020. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3021. ECHO_C= ECHO_N= ECHO_T=
  3022. case `echo -n x` in #(((((
  3023. -n*)
  3024. case `echo 'xy\c'` in
  3025. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  3026. xy) ECHO_C='\c';;
  3027. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  3028. ECHO_T=' ';;
  3029. esac;;
  3030. *)
  3031. ECHO_N='-n';;
  3032. esac
  3033. rm -f conf$$ conf$$.exe conf$$.file
  3034. if test -d conf$$.dir; then
  3035. rm -f conf$$.dir/conf$$.file
  3036. else
  3037. rm -f conf$$.dir
  3038. mkdir conf$$.dir 2>/dev/null
  3039. fi
  3040. if (echo >conf$$.file) 2>/dev/null; then
  3041. if ln -s conf$$.file conf$$ 2>/dev/null; then
  3042. as_ln_s='ln -s'
  3043. # ... but there are two gotchas:
  3044. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  3045. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  3046. # In both cases, we have to default to `cp -p'.
  3047. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  3048. as_ln_s='cp -p'
  3049. elif ln conf$$.file conf$$ 2>/dev/null; then
  3050. as_ln_s=ln
  3051. else
  3052. as_ln_s='cp -p'
  3053. fi
  3054. else
  3055. as_ln_s='cp -p'
  3056. fi
  3057. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  3058. rmdir conf$$.dir 2>/dev/null
  3059. # as_fn_mkdir_p
  3060. # -------------
  3061. # Create "$as_dir" as a directory, including parents if necessary.
  3062. as_fn_mkdir_p ()
  3063. {
  3064. case $as_dir in #(
  3065. -*) as_dir=./$as_dir;;
  3066. esac
  3067. test -d "$as_dir" || eval $as_mkdir_p || {
  3068. as_dirs=
  3069. while :; do
  3070. case $as_dir in #(
  3071. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  3072. *) as_qdir=$as_dir;;
  3073. esac
  3074. as_dirs="'$as_qdir' $as_dirs"
  3075. as_dir=`$as_dirname -- "$as_dir" ||
  3076. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3077. X"$as_dir" : 'X\(//\)[^/]' \| \
  3078. X"$as_dir" : 'X\(//\)$' \| \
  3079. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  3080. $as_echo X"$as_dir" |
  3081. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3082. s//\1/
  3083. q
  3084. }
  3085. /^X\(\/\/\)[^/].*/{
  3086. s//\1/
  3087. q
  3088. }
  3089. /^X\(\/\/\)$/{
  3090. s//\1/
  3091. q
  3092. }
  3093. /^X\(\/\).*/{
  3094. s//\1/
  3095. q
  3096. }
  3097. s/.*/./; q'`
  3098. test -d "$as_dir" && break
  3099. done
  3100. test -z "$as_dirs" || eval "mkdir $as_dirs"
  3101. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  3102. } # as_fn_mkdir_p
  3103. if mkdir -p . 2>/dev/null; then
  3104. as_mkdir_p='mkdir -p "$as_dir"'
  3105. else
  3106. test -d ./-p && rmdir ./-p
  3107. as_mkdir_p=false
  3108. fi
  3109. if test -x / >/dev/null 2>&1; then
  3110. as_test_x='test -x'
  3111. else
  3112. if ls -dL / >/dev/null 2>&1; then
  3113. as_ls_L_option=L
  3114. else
  3115. as_ls_L_option=
  3116. fi
  3117. as_test_x='
  3118. eval sh -c '\''
  3119. if test -d "$1"; then
  3120. test -d "$1/.";
  3121. else
  3122. case $1 in #(
  3123. -*)set "./$1";;
  3124. esac;
  3125. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  3126. ???[sx]*):;;*)false;;esac;fi
  3127. '\'' sh
  3128. '
  3129. fi
  3130. as_executable_p=$as_test_x
  3131. # Sed expression to map a string onto a valid CPP name.
  3132. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  3133. # Sed expression to map a string onto a valid variable name.
  3134. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  3135. exec 6>&1
  3136. ## ----------------------------------- ##
  3137. ## Main body of $CONFIG_STATUS script. ##
  3138. ## ----------------------------------- ##
  3139. _ASEOF
  3140. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  3141. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3142. # Save the log message, to keep $0 and so on meaningful, and to
  3143. # report actual input values of CONFIG_FILES etc. instead of their
  3144. # values after options handling.
  3145. ac_log="
  3146. This file was extended by libnl $as_me 1.1.4, which was
  3147. generated by GNU Autoconf 2.68. Invocation command line was
  3148. CONFIG_FILES = $CONFIG_FILES
  3149. CONFIG_HEADERS = $CONFIG_HEADERS
  3150. CONFIG_LINKS = $CONFIG_LINKS
  3151. CONFIG_COMMANDS = $CONFIG_COMMANDS
  3152. $ $0 $@
  3153. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  3154. "
  3155. _ACEOF
  3156. case $ac_config_files in *"
  3157. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  3158. esac
  3159. case $ac_config_headers in *"
  3160. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  3161. esac
  3162. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3163. # Files that config.status was made for.
  3164. config_files="$ac_config_files"
  3165. config_headers="$ac_config_headers"
  3166. _ACEOF
  3167. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3168. ac_cs_usage="\
  3169. \`$as_me' instantiates files and other configuration actions
  3170. from templates according to the current configuration. Unless the files
  3171. and actions are specified as TAGs, all are instantiated by default.
  3172. Usage: $0 [OPTION]... [TAG]...
  3173. -h, --help print this help, then exit
  3174. -V, --version print version number and configuration settings, then exit
  3175. --config print configuration, then exit
  3176. -q, --quiet, --silent
  3177. do not print progress messages
  3178. -d, --debug don't remove temporary files
  3179. --recheck update $as_me by reconfiguring in the same conditions
  3180. --file=FILE[:TEMPLATE]
  3181. instantiate the configuration file FILE
  3182. --header=FILE[:TEMPLATE]
  3183. instantiate the configuration header FILE
  3184. Configuration files:
  3185. $config_files
  3186. Configuration headers:
  3187. $config_headers
  3188. Report bugs to <tgraf@suug.ch>."
  3189. _ACEOF
  3190. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3191. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  3192. ac_cs_version="\\
  3193. libnl config.status 1.1.4
  3194. configured by $0, generated by GNU Autoconf 2.68,
  3195. with options \\"\$ac_cs_config\\"
  3196. Copyright (C) 2010 Free Software Foundation, Inc.
  3197. This config.status script is free software; the Free Software Foundation
  3198. gives unlimited permission to copy, distribute and modify it."
  3199. ac_pwd='$ac_pwd'
  3200. srcdir='$srcdir'
  3201. INSTALL='$INSTALL'
  3202. test -n "\$AWK" || AWK=awk
  3203. _ACEOF
  3204. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3205. # The default lists apply if the user does not specify any file.
  3206. ac_need_defaults=:
  3207. while test $# != 0
  3208. do
  3209. case $1 in
  3210. --*=?*)
  3211. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  3212. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  3213. ac_shift=:
  3214. ;;
  3215. --*=)
  3216. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  3217. ac_optarg=
  3218. ac_shift=:
  3219. ;;
  3220. *)
  3221. ac_option=$1
  3222. ac_optarg=$2
  3223. ac_shift=shift
  3224. ;;
  3225. esac
  3226. case $ac_option in
  3227. # Handling of the options.
  3228. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3229. ac_cs_recheck=: ;;
  3230. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  3231. $as_echo "$ac_cs_version"; exit ;;
  3232. --config | --confi | --conf | --con | --co | --c )
  3233. $as_echo "$ac_cs_config"; exit ;;
  3234. --debug | --debu | --deb | --de | --d | -d )
  3235. debug=: ;;
  3236. --file | --fil | --fi | --f )
  3237. $ac_shift
  3238. case $ac_optarg in
  3239. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  3240. '') as_fn_error $? "missing file argument" ;;
  3241. esac
  3242. as_fn_append CONFIG_FILES " '$ac_optarg'"
  3243. ac_need_defaults=false;;
  3244. --header | --heade | --head | --hea )
  3245. $ac_shift
  3246. case $ac_optarg in
  3247. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  3248. esac
  3249. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  3250. ac_need_defaults=false;;
  3251. --he | --h)
  3252. # Conflict between --help and --header
  3253. as_fn_error $? "ambiguous option: \`$1'
  3254. Try \`$0 --help' for more information.";;
  3255. --help | --hel | -h )
  3256. $as_echo "$ac_cs_usage"; exit ;;
  3257. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3258. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  3259. ac_cs_silent=: ;;
  3260. # This is an error.
  3261. -*) as_fn_error $? "unrecognized option: \`$1'
  3262. Try \`$0 --help' for more information." ;;
  3263. *) as_fn_append ac_config_targets " $1"
  3264. ac_need_defaults=false ;;
  3265. esac
  3266. shift
  3267. done
  3268. ac_configure_extra_args=
  3269. if $ac_cs_silent; then
  3270. exec 6>/dev/null
  3271. ac_configure_extra_args="$ac_configure_extra_args --silent"
  3272. fi
  3273. _ACEOF
  3274. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3275. if \$ac_cs_recheck; then
  3276. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3277. shift
  3278. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  3279. CONFIG_SHELL='$SHELL'
  3280. export CONFIG_SHELL
  3281. exec "\$@"
  3282. fi
  3283. _ACEOF
  3284. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3285. exec 5>>config.log
  3286. {
  3287. echo
  3288. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  3289. ## Running $as_me. ##
  3290. _ASBOX
  3291. $as_echo "$ac_log"
  3292. } >&5
  3293. _ACEOF
  3294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3295. _ACEOF
  3296. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3297. # Handling of arguments.
  3298. for ac_config_target in $ac_config_targets
  3299. do
  3300. case $ac_config_target in
  3301. "lib/defs.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/defs.h" ;;
  3302. "Makefile.opts") CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
  3303. "libnl-1.pc") CONFIG_FILES="$CONFIG_FILES libnl-1.pc" ;;
  3304. "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
  3305. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  3306. esac
  3307. done
  3308. # If the user did not use the arguments to specify the items to instantiate,
  3309. # then the envvar interface is used. Set only those that are not.
  3310. # We use the long form for the default assignment because of an extremely
  3311. # bizarre bug on SunOS 4.1.3.
  3312. if $ac_need_defaults; then
  3313. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  3314. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  3315. fi
  3316. # Have a temporary directory for convenience. Make it in the build tree
  3317. # simply because there is no reason against having it here, and in addition,
  3318. # creating and moving files from /tmp can sometimes cause problems.
  3319. # Hook for its removal unless debugging.
  3320. # Note that there is a small window in which the directory will not be cleaned:
  3321. # after its creation but before its name has been assigned to `$tmp'.
  3322. $debug ||
  3323. {
  3324. tmp= ac_tmp=
  3325. trap 'exit_status=$?
  3326. : "${ac_tmp:=$tmp}"
  3327. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  3328. ' 0
  3329. trap 'as_fn_exit 1' 1 2 13 15
  3330. }
  3331. # Create a (secure) tmp directory for tmp files.
  3332. {
  3333. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  3334. test -d "$tmp"
  3335. } ||
  3336. {
  3337. tmp=./conf$$-$RANDOM
  3338. (umask 077 && mkdir "$tmp")
  3339. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  3340. ac_tmp=$tmp
  3341. # Set up the scripts for CONFIG_FILES section.
  3342. # No need to generate them if there are no CONFIG_FILES.
  3343. # This happens for instance with `./config.status config.h'.
  3344. if test -n "$CONFIG_FILES"; then
  3345. ac_cr=`echo X | tr X '\015'`
  3346. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  3347. # But we know of no other shell where ac_cr would be empty at this
  3348. # point, so we can use a bashism as a fallback.
  3349. if test "x$ac_cr" = x; then
  3350. eval ac_cr=\$\'\\r\'
  3351. fi
  3352. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  3353. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  3354. ac_cs_awk_cr='\\r'
  3355. else
  3356. ac_cs_awk_cr=$ac_cr
  3357. fi
  3358. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  3359. _ACEOF
  3360. {
  3361. echo "cat >conf$$subs.awk <<_ACEOF" &&
  3362. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  3363. echo "_ACEOF"
  3364. } >conf$$subs.sh ||
  3365. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  3366. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  3367. ac_delim='%!_!# '
  3368. for ac_last_try in false false false false false :; do
  3369. . ./conf$$subs.sh ||
  3370. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  3371. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  3372. if test $ac_delim_n = $ac_delim_num; then
  3373. break
  3374. elif $ac_last_try; then
  3375. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  3376. else
  3377. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  3378. fi
  3379. done
  3380. rm -f conf$$subs.sh
  3381. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3382. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  3383. _ACEOF
  3384. sed -n '
  3385. h
  3386. s/^/S["/; s/!.*/"]=/
  3387. p
  3388. g
  3389. s/^[^!]*!//
  3390. :repl
  3391. t repl
  3392. s/'"$ac_delim"'$//
  3393. t delim
  3394. :nl
  3395. h
  3396. s/\(.\{148\}\)..*/\1/
  3397. t more1
  3398. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  3399. p
  3400. n
  3401. b repl
  3402. :more1
  3403. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3404. p
  3405. g
  3406. s/.\{148\}//
  3407. t nl
  3408. :delim
  3409. h
  3410. s/\(.\{148\}\)..*/\1/
  3411. t more2
  3412. s/["\\]/\\&/g; s/^/"/; s/$/"/
  3413. p
  3414. b
  3415. :more2
  3416. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3417. p
  3418. g
  3419. s/.\{148\}//
  3420. t delim
  3421. ' <conf$$subs.awk | sed '
  3422. /^[^""]/{
  3423. N
  3424. s/\n//
  3425. }
  3426. ' >>$CONFIG_STATUS || ac_write_fail=1
  3427. rm -f conf$$subs.awk
  3428. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3429. _ACAWK
  3430. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  3431. for (key in S) S_is_set[key] = 1
  3432. FS = ""
  3433. }
  3434. {
  3435. line = $ 0
  3436. nfields = split(line, field, "@")
  3437. substed = 0
  3438. len = length(field[1])
  3439. for (i = 2; i < nfields; i++) {
  3440. key = field[i]
  3441. keylen = length(key)
  3442. if (S_is_set[key]) {
  3443. value = S[key]
  3444. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  3445. len += length(value) + length(field[++i])
  3446. substed = 1
  3447. } else
  3448. len += 1 + keylen
  3449. }
  3450. print line
  3451. }
  3452. _ACAWK
  3453. _ACEOF
  3454. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3455. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  3456. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  3457. else
  3458. cat
  3459. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  3460. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  3461. _ACEOF
  3462. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  3463. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  3464. # trailing colons and then remove the whole line if VPATH becomes empty
  3465. # (actually we leave an empty line to preserve line numbers).
  3466. if test "x$srcdir" = x.; then
  3467. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  3468. h
  3469. s///
  3470. s/^/:/
  3471. s/[ ]*$/:/
  3472. s/:\$(srcdir):/:/g
  3473. s/:\${srcdir}:/:/g
  3474. s/:@srcdir@:/:/g
  3475. s/^:*//
  3476. s/:*$//
  3477. x
  3478. s/\(=[ ]*\).*/\1/
  3479. G
  3480. s/\n//
  3481. s/^[^=]*=[ ]*$//
  3482. }'
  3483. fi
  3484. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3485. fi # test -n "$CONFIG_FILES"
  3486. # Set up the scripts for CONFIG_HEADERS section.
  3487. # No need to generate them if there are no CONFIG_HEADERS.
  3488. # This happens for instance with `./config.status Makefile'.
  3489. if test -n "$CONFIG_HEADERS"; then
  3490. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  3491. BEGIN {
  3492. _ACEOF
  3493. # Transform confdefs.h into an awk script `defines.awk', embedded as
  3494. # here-document in config.status, that substitutes the proper values into
  3495. # config.h.in to produce config.h.
  3496. # Create a delimiter string that does not exist in confdefs.h, to ease
  3497. # handling of long lines.
  3498. ac_delim='%!_!# '
  3499. for ac_last_try in false false :; do
  3500. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  3501. if test -z "$ac_tt"; then
  3502. break
  3503. elif $ac_last_try; then
  3504. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  3505. else
  3506. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  3507. fi
  3508. done
  3509. # For the awk script, D is an array of macro values keyed by name,
  3510. # likewise P contains macro parameters if any. Preserve backslash
  3511. # newline sequences.
  3512. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  3513. sed -n '
  3514. s/.\{148\}/&'"$ac_delim"'/g
  3515. t rset
  3516. :rset
  3517. s/^[ ]*#[ ]*define[ ][ ]*/ /
  3518. t def
  3519. d
  3520. :def
  3521. s/\\$//
  3522. t bsnl
  3523. s/["\\]/\\&/g
  3524. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  3525. D["\1"]=" \3"/p
  3526. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  3527. d
  3528. :bsnl
  3529. s/["\\]/\\&/g
  3530. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  3531. D["\1"]=" \3\\\\\\n"\\/p
  3532. t cont
  3533. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  3534. t cont
  3535. d
  3536. :cont
  3537. n
  3538. s/.\{148\}/&'"$ac_delim"'/g
  3539. t clear
  3540. :clear
  3541. s/\\$//
  3542. t bsnlc
  3543. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  3544. d
  3545. :bsnlc
  3546. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  3547. b cont
  3548. ' <confdefs.h | sed '
  3549. s/'"$ac_delim"'/"\\\
  3550. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  3551. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3552. for (key in D) D_is_set[key] = 1
  3553. FS = ""
  3554. }
  3555. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  3556. line = \$ 0
  3557. split(line, arg, " ")
  3558. if (arg[1] == "#") {
  3559. defundef = arg[2]
  3560. mac1 = arg[3]
  3561. } else {
  3562. defundef = substr(arg[1], 2)
  3563. mac1 = arg[2]
  3564. }
  3565. split(mac1, mac2, "(") #)
  3566. macro = mac2[1]
  3567. prefix = substr(line, 1, index(line, defundef) - 1)
  3568. if (D_is_set[macro]) {
  3569. # Preserve the white space surrounding the "#".
  3570. print prefix "define", macro P[macro] D[macro]
  3571. next
  3572. } else {
  3573. # Replace #undef with comments. This is necessary, for example,
  3574. # in the case of _POSIX_SOURCE, which is predefined and required
  3575. # on some systems where configure will not decide to define it.
  3576. if (defundef == "undef") {
  3577. print "/*", prefix defundef, macro, "*/"
  3578. next
  3579. }
  3580. }
  3581. }
  3582. { print }
  3583. _ACAWK
  3584. _ACEOF
  3585. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3586. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  3587. fi # test -n "$CONFIG_HEADERS"
  3588. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  3589. shift
  3590. for ac_tag
  3591. do
  3592. case $ac_tag in
  3593. :[FHLC]) ac_mode=$ac_tag; continue;;
  3594. esac
  3595. case $ac_mode$ac_tag in
  3596. :[FHL]*:*);;
  3597. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  3598. :[FH]-) ac_tag=-:-;;
  3599. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  3600. esac
  3601. ac_save_IFS=$IFS
  3602. IFS=:
  3603. set x $ac_tag
  3604. IFS=$ac_save_IFS
  3605. shift
  3606. ac_file=$1
  3607. shift
  3608. case $ac_mode in
  3609. :L) ac_source=$1;;
  3610. :[FH])
  3611. ac_file_inputs=
  3612. for ac_f
  3613. do
  3614. case $ac_f in
  3615. -) ac_f="$ac_tmp/stdin";;
  3616. *) # Look for the file first in the build tree, then in the source tree
  3617. # (if the path is not absolute). The absolute path cannot be DOS-style,
  3618. # because $ac_f cannot contain `:'.
  3619. test -f "$ac_f" ||
  3620. case $ac_f in
  3621. [\\/$]*) false;;
  3622. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  3623. esac ||
  3624. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  3625. esac
  3626. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  3627. as_fn_append ac_file_inputs " '$ac_f'"
  3628. done
  3629. # Let's still pretend it is `configure' which instantiates (i.e., don't
  3630. # use $as_me), people would be surprised to read:
  3631. # /* config.h. Generated by config.status. */
  3632. configure_input='Generated from '`
  3633. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  3634. `' by configure.'
  3635. if test x"$ac_file" != x-; then
  3636. configure_input="$ac_file. $configure_input"
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  3638. $as_echo "$as_me: creating $ac_file" >&6;}
  3639. fi
  3640. # Neutralize special characters interpreted by sed in replacement strings.
  3641. case $configure_input in #(
  3642. *\&* | *\|* | *\\* )
  3643. ac_sed_conf_input=`$as_echo "$configure_input" |
  3644. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  3645. *) ac_sed_conf_input=$configure_input;;
  3646. esac
  3647. case $ac_tag in
  3648. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  3649. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  3650. esac
  3651. ;;
  3652. esac
  3653. ac_dir=`$as_dirname -- "$ac_file" ||
  3654. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3655. X"$ac_file" : 'X\(//\)[^/]' \| \
  3656. X"$ac_file" : 'X\(//\)$' \| \
  3657. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  3658. $as_echo X"$ac_file" |
  3659. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3660. s//\1/
  3661. q
  3662. }
  3663. /^X\(\/\/\)[^/].*/{
  3664. s//\1/
  3665. q
  3666. }
  3667. /^X\(\/\/\)$/{
  3668. s//\1/
  3669. q
  3670. }
  3671. /^X\(\/\).*/{
  3672. s//\1/
  3673. q
  3674. }
  3675. s/.*/./; q'`
  3676. as_dir="$ac_dir"; as_fn_mkdir_p
  3677. ac_builddir=.
  3678. case "$ac_dir" in
  3679. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3680. *)
  3681. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  3682. # A ".." for each directory in $ac_dir_suffix.
  3683. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  3684. case $ac_top_builddir_sub in
  3685. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3686. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  3687. esac ;;
  3688. esac
  3689. ac_abs_top_builddir=$ac_pwd
  3690. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  3691. # for backward compatibility:
  3692. ac_top_builddir=$ac_top_build_prefix
  3693. case $srcdir in
  3694. .) # We are building in place.
  3695. ac_srcdir=.
  3696. ac_top_srcdir=$ac_top_builddir_sub
  3697. ac_abs_top_srcdir=$ac_pwd ;;
  3698. [\\/]* | ?:[\\/]* ) # Absolute name.
  3699. ac_srcdir=$srcdir$ac_dir_suffix;
  3700. ac_top_srcdir=$srcdir
  3701. ac_abs_top_srcdir=$srcdir ;;
  3702. *) # Relative name.
  3703. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  3704. ac_top_srcdir=$ac_top_build_prefix$srcdir
  3705. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  3706. esac
  3707. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  3708. case $ac_mode in
  3709. :F)
  3710. #
  3711. # CONFIG_FILE
  3712. #
  3713. case $INSTALL in
  3714. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  3715. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  3716. esac
  3717. _ACEOF
  3718. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3719. # If the template does not know about datarootdir, expand it.
  3720. # FIXME: This hack should be removed a few years after 2.60.
  3721. ac_datarootdir_hack=; ac_datarootdir_seen=
  3722. ac_sed_dataroot='
  3723. /datarootdir/ {
  3724. p
  3725. q
  3726. }
  3727. /@datadir@/p
  3728. /@docdir@/p
  3729. /@infodir@/p
  3730. /@localedir@/p
  3731. /@mandir@/p'
  3732. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  3733. *datarootdir*) ac_datarootdir_seen=yes;;
  3734. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  3736. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  3737. _ACEOF
  3738. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3739. ac_datarootdir_hack='
  3740. s&@datadir@&$datadir&g
  3741. s&@docdir@&$docdir&g
  3742. s&@infodir@&$infodir&g
  3743. s&@localedir@&$localedir&g
  3744. s&@mandir@&$mandir&g
  3745. s&\\\${datarootdir}&$datarootdir&g' ;;
  3746. esac
  3747. _ACEOF
  3748. # Neutralize VPATH when `$srcdir' = `.'.
  3749. # Shell code in configure.ac might set extrasub.
  3750. # FIXME: do we really want to maintain this feature?
  3751. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3752. ac_sed_extra="$ac_vpsub
  3753. $extrasub
  3754. _ACEOF
  3755. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3756. :t
  3757. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  3758. s|@configure_input@|$ac_sed_conf_input|;t t
  3759. s&@top_builddir@&$ac_top_builddir_sub&;t t
  3760. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  3761. s&@srcdir@&$ac_srcdir&;t t
  3762. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  3763. s&@top_srcdir@&$ac_top_srcdir&;t t
  3764. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  3765. s&@builddir@&$ac_builddir&;t t
  3766. s&@abs_builddir@&$ac_abs_builddir&;t t
  3767. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  3768. s&@INSTALL@&$ac_INSTALL&;t t
  3769. $ac_datarootdir_hack
  3770. "
  3771. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  3772. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  3773. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  3774. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  3775. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  3776. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3778. which seems to be undefined. Please make sure it is defined" >&5
  3779. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3780. which seems to be undefined. Please make sure it is defined" >&2;}
  3781. rm -f "$ac_tmp/stdin"
  3782. case $ac_file in
  3783. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  3784. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  3785. esac \
  3786. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  3787. ;;
  3788. :H)
  3789. #
  3790. # CONFIG_HEADER
  3791. #
  3792. if test x"$ac_file" != x-; then
  3793. {
  3794. $as_echo "/* $configure_input */" \
  3795. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  3796. } >"$ac_tmp/config.h" \
  3797. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  3798. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  3800. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  3801. else
  3802. rm -f "$ac_file"
  3803. mv "$ac_tmp/config.h" "$ac_file" \
  3804. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  3805. fi
  3806. else
  3807. $as_echo "/* $configure_input */" \
  3808. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  3809. || as_fn_error $? "could not create -" "$LINENO" 5
  3810. fi
  3811. ;;
  3812. esac
  3813. done # for ac_tag
  3814. as_fn_exit 0
  3815. _ACEOF
  3816. ac_clean_files=$ac_clean_files_save
  3817. test $ac_write_fail = 0 ||
  3818. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  3819. # configure is writing to config.log, and then calls config.status.
  3820. # config.status does its own redirection, appending to config.log.
  3821. # Unfortunately, on DOS this fails, as config.log is still kept open
  3822. # by configure, so config.status won't be able to write to it; its
  3823. # output is simply discarded. So we exec the FD to /dev/null,
  3824. # effectively closing config.log, so it can be properly (re)opened and
  3825. # appended to by config.status. When coming back to configure, we
  3826. # need to make the FD available again.
  3827. if test "$no_create" != yes; then
  3828. ac_cs_success=:
  3829. ac_config_status_args=
  3830. test "$silent" = yes &&
  3831. ac_config_status_args="$ac_config_status_args --quiet"
  3832. exec 5>/dev/null
  3833. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  3834. exec 5>>config.log
  3835. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  3836. # would make configure fail if this is the last instruction.
  3837. $ac_cs_success || as_fn_exit 1
  3838. fi
  3839. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  3841. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  3842. fi
  3843. #####################################################################
  3844. ##
  3845. ## status report
  3846. ##
  3847. #####################################################################
  3848. echo "
  3849. ----------------------------------------------------------------------
  3850. SUMMARY:
  3851. Included in Compilation:
  3852. libnl: $COMPILE_LIBNL $LIBNL_LIB
  3853. Dependencies:
  3854. libm $M (required)"