004-ldap_configure.patch 138 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257
  1. Index: freeradius-server-2.2.7/src/modules/rlm_ldap/configure
  2. ===================================================================
  3. --- freeradius-server-2.2.7.orig/src/modules/rlm_ldap/configure
  4. +++ freeradius-server-2.2.7/src/modules/rlm_ldap/configure
  5. @@ -1,10 +1,10 @@
  6. #! /bin/sh
  7. # From configure.in Revision.
  8. # Guess values for system-dependent variables and create Makefiles.
  9. -# Generated by GNU Autoconf 2.61.
  10. +# Generated by GNU Autoconf 2.63.
  11. #
  12. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  13. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  14. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  15. # This configure script is free software; the Free Software Foundation
  16. # gives unlimited permission to copy, distribute and modify it.
  17. ## --------------------- ##
  18. @@ -16,7 +16,7 @@ DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20. emulate sh
  21. NULLCMD=:
  22. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  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. @@ -38,17 +38,45 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTE
  28. as_cr_digits='0123456789'
  29. as_cr_alnum=$as_cr_Letters$as_cr_digits
  30. -# The user is always right.
  31. -if test "${PATH_SEPARATOR+set}" != set; then
  32. - echo "#! /bin/sh" >conf$$.sh
  33. - echo "exit 0" >>conf$$.sh
  34. - chmod +x conf$$.sh
  35. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  36. - PATH_SEPARATOR=';'
  37. +as_nl='
  38. +'
  39. +export as_nl
  40. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  41. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  42. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  43. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  44. +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. + as_echo='printf %s\n'
  46. + as_echo_n='printf %s'
  47. +else
  48. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. + as_echo_n='/usr/ucb/echo -n'
  51. else
  52. - PATH_SEPARATOR=:
  53. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  54. + as_echo_n_body='eval
  55. + arg=$1;
  56. + case $arg in
  57. + *"$as_nl"*)
  58. + expr "X$arg" : "X\\(.*\\)$as_nl";
  59. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  60. + esac;
  61. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  62. + '
  63. + export as_echo_n_body
  64. + as_echo_n='sh -c $as_echo_n_body as_echo'
  65. fi
  66. - rm -f conf$$.sh
  67. + export as_echo_body
  68. + as_echo='sh -c $as_echo_body as_echo'
  69. +fi
  70. +
  71. +# The user is always right.
  72. +if test "${PATH_SEPARATOR+set}" != set; then
  73. + PATH_SEPARATOR=:
  74. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. + PATH_SEPARATOR=';'
  77. + }
  78. fi
  79. # Support unset when possible.
  80. @@ -64,8 +92,6 @@ fi
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. -as_nl='
  85. -'
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. @@ -88,7 +114,7 @@ if test "x$as_myself" = x; then
  89. as_myself=$0
  90. fi
  91. if test ! -f "$as_myself"; then
  92. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  93. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  94. { (exit 1); exit 1; }
  95. fi
  96. @@ -101,17 +127,10 @@ PS2='> '
  97. PS4='+ '
  98. # NLS nuisances.
  99. -for as_var in \
  100. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  101. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  102. - LC_TELEPHONE LC_TIME
  103. -do
  104. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  105. - eval $as_var=C; export $as_var
  106. - else
  107. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  108. - fi
  109. -done
  110. +LC_ALL=C
  111. +export LC_ALL
  112. +LANGUAGE=C
  113. +export LANGUAGE
  114. # Required to use basename.
  115. if expr a : '\(a\)' >/dev/null 2>&1 &&
  116. @@ -133,7 +152,7 @@ as_me=`$as_basename -- "$0" ||
  117. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  118. X"$0" : 'X\(//\)$' \| \
  119. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  120. -echo X/"$0" |
  121. +$as_echo X/"$0" |
  122. sed '/^.*\/\([^/][^/]*\)\/*$/{
  123. s//\1/
  124. q
  125. @@ -159,7 +178,7 @@ else
  126. as_have_required=no
  127. fi
  128. - if test $as_have_required = yes && (eval ":
  129. + if test $as_have_required = yes && (eval ":
  130. (as_func_return () {
  131. (exit \$1)
  132. }
  133. @@ -241,7 +260,7 @@ IFS=$as_save_IFS
  134. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  135. emulate sh
  136. NULLCMD=:
  137. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  138. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  139. # is contrary to our usage. Disable this feature.
  140. alias -g '${1+"$@"}'='"$@"'
  141. setopt NO_GLOB_SUBST
  142. @@ -262,7 +281,7 @@ _ASEOF
  143. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  144. emulate sh
  145. NULLCMD=:
  146. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  147. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  148. # is contrary to our usage. Disable this feature.
  149. alias -g '${1+"$@"}'='"$@"'
  150. setopt NO_GLOB_SUBST
  151. @@ -342,10 +361,10 @@ fi
  152. if test "x$CONFIG_SHELL" != x; then
  153. for as_var in BASH_ENV ENV
  154. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  155. - done
  156. - export CONFIG_SHELL
  157. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  158. + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  159. + done
  160. + export CONFIG_SHELL
  161. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  162. fi
  163. @@ -414,9 +433,10 @@ fi
  164. test \$exitcode = 0") || {
  165. echo No shell found that supports shell functions.
  166. - echo Please tell autoconf@gnu.org about your system,
  167. - echo including any error possibly output before this
  168. - echo message
  169. + echo Please tell bug-autoconf@gnu.org about your system,
  170. + echo including any error possibly output before this message.
  171. + echo This can help us improve future autoconf versions.
  172. + echo Configuration will now proceed without shell functions.
  173. }
  174. @@ -452,7 +472,7 @@ test \$exitcode = 0") || {
  175. s/-\n.*//
  176. ' >$as_me.lineno &&
  177. chmod +x "$as_me.lineno" ||
  178. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  179. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  180. { (exit 1); exit 1; }; }
  181. # Don't try to exec as it changes $[0], causing all sort of problems
  182. @@ -480,7 +500,6 @@ case `echo -n x` in
  183. *)
  184. ECHO_N='-n';;
  185. esac
  186. -
  187. if expr a : '\(a\)' >/dev/null 2>&1 &&
  188. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  189. as_expr=expr
  190. @@ -493,19 +512,22 @@ if test -d conf$$.dir; then
  191. rm -f conf$$.dir/conf$$.file
  192. else
  193. rm -f conf$$.dir
  194. - mkdir conf$$.dir
  195. + mkdir conf$$.dir 2>/dev/null
  196. fi
  197. -echo >conf$$.file
  198. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  199. - as_ln_s='ln -s'
  200. - # ... but there are two gotchas:
  201. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  202. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  203. - # In both cases, we have to default to `cp -p'.
  204. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  205. +if (echo >conf$$.file) 2>/dev/null; then
  206. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  207. + as_ln_s='ln -s'
  208. + # ... but there are two gotchas:
  209. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  210. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  211. + # In both cases, we have to default to `cp -p'.
  212. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  213. + as_ln_s='cp -p'
  214. + elif ln conf$$.file conf$$ 2>/dev/null; then
  215. + as_ln_s=ln
  216. + else
  217. as_ln_s='cp -p'
  218. -elif ln conf$$.file conf$$ 2>/dev/null; then
  219. - as_ln_s=ln
  220. + fi
  221. else
  222. as_ln_s='cp -p'
  223. fi
  224. @@ -530,10 +552,10 @@ else
  225. as_test_x='
  226. eval sh -c '\''
  227. if test -d "$1"; then
  228. - test -d "$1/.";
  229. + test -d "$1/.";
  230. else
  231. case $1 in
  232. - -*)set "./$1";;
  233. + -*)set "./$1";;
  234. esac;
  235. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  236. ???[sx]*):;;*)false;;esac;fi
  237. @@ -578,57 +600,65 @@ PACKAGE_STRING=
  238. PACKAGE_BUGREPORT=
  239. ac_unique_file="rlm_ldap.c"
  240. -ac_subst_vars='SHELL
  241. -PATH_SEPARATOR
  242. -PACKAGE_NAME
  243. -PACKAGE_TARNAME
  244. -PACKAGE_VERSION
  245. -PACKAGE_STRING
  246. -PACKAGE_BUGREPORT
  247. -exec_prefix
  248. -prefix
  249. -program_transform_name
  250. -bindir
  251. -sbindir
  252. -libexecdir
  253. -datarootdir
  254. -datadir
  255. -sysconfdir
  256. -sharedstatedir
  257. -localstatedir
  258. -includedir
  259. -oldincludedir
  260. -docdir
  261. -infodir
  262. -htmldir
  263. -dvidir
  264. -pdfdir
  265. -psdir
  266. -libdir
  267. -localedir
  268. -mandir
  269. -DEFS
  270. -ECHO_C
  271. -ECHO_N
  272. -ECHO_T
  273. -LIBS
  274. -build_alias
  275. -host_alias
  276. -target_alias
  277. -CC
  278. -CFLAGS
  279. -LDFLAGS
  280. -CPPFLAGS
  281. -ac_ct_CC
  282. -EXEEXT
  283. -OBJEXT
  284. -edir
  285. -ldap_ldflags
  286. -ldap_cflags
  287. -targetname
  288. +ac_subst_vars='LTLIBOBJS
  289. LIBOBJS
  290. -LTLIBOBJS'
  291. +targetname
  292. +ldap_cflags
  293. +ldap_ldflags
  294. +edir
  295. +OBJEXT
  296. +EXEEXT
  297. +ac_ct_CC
  298. +CPPFLAGS
  299. +LDFLAGS
  300. +CFLAGS
  301. +CC
  302. +target_alias
  303. +host_alias
  304. +build_alias
  305. +LIBS
  306. +ECHO_T
  307. +ECHO_N
  308. +ECHO_C
  309. +DEFS
  310. +mandir
  311. +localedir
  312. +libdir
  313. +psdir
  314. +pdfdir
  315. +dvidir
  316. +htmldir
  317. +infodir
  318. +docdir
  319. +oldincludedir
  320. +includedir
  321. +localstatedir
  322. +sharedstatedir
  323. +sysconfdir
  324. +datadir
  325. +datarootdir
  326. +libexecdir
  327. +sbindir
  328. +bindir
  329. +program_transform_name
  330. +prefix
  331. +exec_prefix
  332. +PACKAGE_BUGREPORT
  333. +PACKAGE_STRING
  334. +PACKAGE_VERSION
  335. +PACKAGE_TARNAME
  336. +PACKAGE_NAME
  337. +PATH_SEPARATOR
  338. +SHELL'
  339. ac_subst_files=''
  340. +ac_user_opts='
  341. +enable_option_checking
  342. +with_rlm_ldap_lib_dir
  343. +with_rlm_ldap_include_dir
  344. +enable_shared
  345. +with_threads
  346. +with_edir
  347. +'
  348. ac_precious_vars='build_alias
  349. host_alias
  350. target_alias
  351. @@ -642,6 +672,8 @@ CPPFLAGS'
  352. # Initialize some variables set by options.
  353. ac_init_help=
  354. ac_init_version=false
  355. +ac_unrecognized_opts=
  356. +ac_unrecognized_sep=
  357. # The variables have the same names as the options, with
  358. # dashes changed to underlines.
  359. cache_file=/dev/null
  360. @@ -740,13 +772,21 @@ do
  361. datarootdir=$ac_optarg ;;
  362. -disable-* | --disable-*)
  363. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  364. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  365. # Reject names that are not valid shell variable names.
  366. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  367. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  368. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  369. + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  370. { (exit 1); exit 1; }; }
  371. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  372. - eval enable_$ac_feature=no ;;
  373. + ac_useropt_orig=$ac_useropt
  374. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  375. + case $ac_user_opts in
  376. + *"
  377. +"enable_$ac_useropt"
  378. +"*) ;;
  379. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  380. + ac_unrecognized_sep=', ';;
  381. + esac
  382. + eval enable_$ac_useropt=no ;;
  383. -docdir | --docdir | --docdi | --doc | --do)
  384. ac_prev=docdir ;;
  385. @@ -759,13 +799,21 @@ do
  386. dvidir=$ac_optarg ;;
  387. -enable-* | --enable-*)
  388. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  389. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  390. # Reject names that are not valid shell variable names.
  391. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  392. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  393. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  394. + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  395. { (exit 1); exit 1; }; }
  396. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  397. - eval enable_$ac_feature=\$ac_optarg ;;
  398. + ac_useropt_orig=$ac_useropt
  399. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  400. + case $ac_user_opts in
  401. + *"
  402. +"enable_$ac_useropt"
  403. +"*) ;;
  404. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  405. + ac_unrecognized_sep=', ';;
  406. + esac
  407. + eval enable_$ac_useropt=\$ac_optarg ;;
  408. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  409. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  410. @@ -956,22 +1004,38 @@ do
  411. ac_init_version=: ;;
  412. -with-* | --with-*)
  413. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  414. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  415. # Reject names that are not valid shell variable names.
  416. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  417. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  418. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  419. + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  420. { (exit 1); exit 1; }; }
  421. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  422. - eval with_$ac_package=\$ac_optarg ;;
  423. + ac_useropt_orig=$ac_useropt
  424. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  425. + case $ac_user_opts in
  426. + *"
  427. +"with_$ac_useropt"
  428. +"*) ;;
  429. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  430. + ac_unrecognized_sep=', ';;
  431. + esac
  432. + eval with_$ac_useropt=\$ac_optarg ;;
  433. -without-* | --without-*)
  434. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  435. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  436. # Reject names that are not valid shell variable names.
  437. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  438. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  439. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  440. + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  441. { (exit 1); exit 1; }; }
  442. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  443. - eval with_$ac_package=no ;;
  444. + ac_useropt_orig=$ac_useropt
  445. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  446. + case $ac_user_opts in
  447. + *"
  448. +"with_$ac_useropt"
  449. +"*) ;;
  450. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  451. + ac_unrecognized_sep=', ';;
  452. + esac
  453. + eval with_$ac_useropt=no ;;
  454. --x)
  455. # Obsolete; use --with-x.
  456. @@ -991,7 +1055,7 @@ do
  457. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  458. x_libraries=$ac_optarg ;;
  459. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  460. + -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  461. Try \`$0 --help' for more information." >&2
  462. { (exit 1); exit 1; }; }
  463. ;;
  464. @@ -1000,16 +1064,16 @@ Try \`$0 --help' for more information."
  465. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  466. # Reject names that are not valid shell variable names.
  467. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  468. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  469. + { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  470. { (exit 1); exit 1; }; }
  471. eval $ac_envvar=\$ac_optarg
  472. export $ac_envvar ;;
  473. *)
  474. # FIXME: should be removed in autoconf 3.0.
  475. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  476. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  477. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  478. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  479. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  480. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  481. ;;
  482. @@ -1018,22 +1082,38 @@ done
  483. if test -n "$ac_prev"; then
  484. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  485. - { echo "$as_me: error: missing argument to $ac_option" >&2
  486. + { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  487. { (exit 1); exit 1; }; }
  488. fi
  489. -# Be sure to have absolute directory names.
  490. +if test -n "$ac_unrecognized_opts"; then
  491. + case $enable_option_checking in
  492. + no) ;;
  493. + fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  494. + { (exit 1); exit 1; }; } ;;
  495. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  496. + esac
  497. +fi
  498. +
  499. +# Check all directory arguments for consistency.
  500. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  501. datadir sysconfdir sharedstatedir localstatedir includedir \
  502. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  503. libdir localedir mandir
  504. do
  505. eval ac_val=\$$ac_var
  506. + # Remove trailing slashes.
  507. + case $ac_val in
  508. + */ )
  509. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  510. + eval $ac_var=\$ac_val;;
  511. + esac
  512. + # Be sure to have absolute directory names.
  513. case $ac_val in
  514. [\\/$]* | ?:[\\/]* ) continue;;
  515. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  516. esac
  517. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  518. + { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  519. { (exit 1); exit 1; }; }
  520. done
  521. @@ -1048,7 +1128,7 @@ target=$target_alias
  522. if test "x$host_alias" != x; then
  523. if test "x$build_alias" = x; then
  524. cross_compiling=maybe
  525. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  526. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  527. If a cross compiler is detected then cross compile mode will be used." >&2
  528. elif test "x$build_alias" != "x$host_alias"; then
  529. cross_compiling=yes
  530. @@ -1064,10 +1144,10 @@ test "$silent" = yes && exec 6>/dev/null
  531. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  532. ac_ls_di=`ls -di .` &&
  533. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  534. - { echo "$as_me: error: Working directory cannot be determined" >&2
  535. + { $as_echo "$as_me: error: working directory cannot be determined" >&2
  536. { (exit 1); exit 1; }; }
  537. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  538. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  539. + { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  540. { (exit 1); exit 1; }; }
  541. @@ -1075,12 +1155,12 @@ test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  542. if test -z "$srcdir"; then
  543. ac_srcdir_defaulted=yes
  544. # Try the directory containing this script, then the parent directory.
  545. - ac_confdir=`$as_dirname -- "$0" ||
  546. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  547. - X"$0" : 'X\(//\)[^/]' \| \
  548. - X"$0" : 'X\(//\)$' \| \
  549. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  550. -echo X"$0" |
  551. + ac_confdir=`$as_dirname -- "$as_myself" ||
  552. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  553. + X"$as_myself" : 'X\(//\)[^/]' \| \
  554. + X"$as_myself" : 'X\(//\)$' \| \
  555. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  556. +$as_echo X"$as_myself" |
  557. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  558. s//\1/
  559. q
  560. @@ -1107,12 +1187,12 @@ else
  561. fi
  562. if test ! -r "$srcdir/$ac_unique_file"; then
  563. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  564. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  565. + { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  566. { (exit 1); exit 1; }; }
  567. fi
  568. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  569. ac_abs_confdir=`(
  570. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  571. + cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  572. { (exit 1); exit 1; }; }
  573. pwd)`
  574. # When building in place, set srcdir=.
  575. @@ -1161,9 +1241,9 @@ Configuration:
  576. Installation directories:
  577. --prefix=PREFIX install architecture-independent files in PREFIX
  578. - [$ac_default_prefix]
  579. + [$ac_default_prefix]
  580. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  581. - [PREFIX]
  582. + [PREFIX]
  583. By default, \`make install' will install all the files in
  584. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  585. @@ -1173,25 +1253,25 @@ for instance \`--prefix=\$HOME'.
  586. For better control, use the options below.
  587. Fine tuning of the installation directories:
  588. - --bindir=DIR user executables [EPREFIX/bin]
  589. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  590. - --libexecdir=DIR program executables [EPREFIX/libexec]
  591. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  592. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  593. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  594. - --libdir=DIR object code libraries [EPREFIX/lib]
  595. - --includedir=DIR C header files [PREFIX/include]
  596. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  597. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  598. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  599. - --infodir=DIR info documentation [DATAROOTDIR/info]
  600. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  601. - --mandir=DIR man documentation [DATAROOTDIR/man]
  602. - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  603. - --htmldir=DIR html documentation [DOCDIR]
  604. - --dvidir=DIR dvi documentation [DOCDIR]
  605. - --pdfdir=DIR pdf documentation [DOCDIR]
  606. - --psdir=DIR ps documentation [DOCDIR]
  607. + --bindir=DIR user executables [EPREFIX/bin]
  608. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  609. + --libexecdir=DIR program executables [EPREFIX/libexec]
  610. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  611. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  612. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  613. + --libdir=DIR object code libraries [EPREFIX/lib]
  614. + --includedir=DIR C header files [PREFIX/include]
  615. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  616. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  617. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  618. + --infodir=DIR info documentation [DATAROOTDIR/info]
  619. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  620. + --mandir=DIR man documentation [DATAROOTDIR/man]
  621. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  622. + --htmldir=DIR html documentation [DOCDIR]
  623. + --dvidir=DIR dvi documentation [DOCDIR]
  624. + --pdfdir=DIR pdf documentation [DOCDIR]
  625. + --psdir=DIR ps documentation [DOCDIR]
  626. _ACEOF
  627. cat <<\_ACEOF
  628. @@ -1203,6 +1283,7 @@ if test -n "$ac_init_help"; then
  629. cat <<\_ACEOF
  630. Optional Features:
  631. + --disable-option-checking ignore unrecognized --enable/--with options
  632. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  633. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  634. --enable-shared[=PKGS] build shared libraries [default=yes]
  635. @@ -1234,15 +1315,17 @@ fi
  636. if test "$ac_init_help" = "recursive"; then
  637. # If there are subdirs, report their specific --help.
  638. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  639. - test -d "$ac_dir" || continue
  640. + test -d "$ac_dir" ||
  641. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  642. + continue
  643. ac_builddir=.
  644. case "$ac_dir" in
  645. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  646. *)
  647. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  648. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  649. # A ".." for each directory in $ac_dir_suffix.
  650. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  651. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  652. case $ac_top_builddir_sub in
  653. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  654. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  655. @@ -1278,7 +1361,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
  656. echo &&
  657. $SHELL "$ac_srcdir/configure" --help=recursive
  658. else
  659. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  660. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  661. fi || ac_status=$?
  662. cd "$ac_pwd" || { ac_status=$?; break; }
  663. done
  664. @@ -1288,10 +1371,10 @@ test -n "$ac_init_help" && exit $ac_stat
  665. if $ac_init_version; then
  666. cat <<\_ACEOF
  667. configure
  668. -generated by GNU Autoconf 2.61
  669. +generated by GNU Autoconf 2.63
  670. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  671. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  672. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  673. This configure script is free software; the Free Software Foundation
  674. gives unlimited permission to copy, distribute and modify it.
  675. _ACEOF
  676. @@ -1302,7 +1385,7 @@ This file contains any messages produced
  677. running configure, to aid debugging if configure makes a mistake.
  678. It was created by $as_me, which was
  679. -generated by GNU Autoconf 2.61. Invocation command line was
  680. +generated by GNU Autoconf 2.63. Invocation command line was
  681. $ $0 $@
  682. @@ -1338,7 +1421,7 @@ for as_dir in $PATH
  683. do
  684. IFS=$as_save_IFS
  685. test -z "$as_dir" && as_dir=.
  686. - echo "PATH: $as_dir"
  687. + $as_echo "PATH: $as_dir"
  688. done
  689. IFS=$as_save_IFS
  690. @@ -1373,7 +1456,7 @@ do
  691. | -silent | --silent | --silen | --sile | --sil)
  692. continue ;;
  693. *\'*)
  694. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  695. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  696. esac
  697. case $ac_pass in
  698. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  699. @@ -1425,11 +1508,12 @@ _ASBOX
  700. case $ac_val in #(
  701. *${as_nl}*)
  702. case $ac_var in #(
  703. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  704. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  705. + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  706. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  707. esac
  708. case $ac_var in #(
  709. _ | IFS | as_nl) ;; #(
  710. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  711. *) $as_unset $ac_var ;;
  712. esac ;;
  713. esac
  714. @@ -1459,9 +1543,9 @@ _ASBOX
  715. do
  716. eval ac_val=\$$ac_var
  717. case $ac_val in
  718. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  719. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  720. esac
  721. - echo "$ac_var='\''$ac_val'\''"
  722. + $as_echo "$ac_var='\''$ac_val'\''"
  723. done | sort
  724. echo
  725. @@ -1476,9 +1560,9 @@ _ASBOX
  726. do
  727. eval ac_val=\$$ac_var
  728. case $ac_val in
  729. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  730. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  731. esac
  732. - echo "$ac_var='\''$ac_val'\''"
  733. + $as_echo "$ac_var='\''$ac_val'\''"
  734. done | sort
  735. echo
  736. fi
  737. @@ -1494,8 +1578,8 @@ _ASBOX
  738. echo
  739. fi
  740. test "$ac_signal" != 0 &&
  741. - echo "$as_me: caught signal $ac_signal"
  742. - echo "$as_me: exit $exit_status"
  743. + $as_echo "$as_me: caught signal $ac_signal"
  744. + $as_echo "$as_me: exit $exit_status"
  745. } >&5
  746. rm -f core *.core core.conftest.* &&
  747. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  748. @@ -1537,21 +1621,24 @@ _ACEOF
  749. # Let the site file select an alternate cache file if it wants to.
  750. -# Prefer explicitly selected file to automatically selected ones.
  751. +# Prefer an explicitly selected file to automatically selected ones.
  752. +ac_site_file1=NONE
  753. +ac_site_file2=NONE
  754. if test -n "$CONFIG_SITE"; then
  755. - set x "$CONFIG_SITE"
  756. + ac_site_file1=$CONFIG_SITE
  757. elif test "x$prefix" != xNONE; then
  758. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  759. + ac_site_file1=$prefix/share/config.site
  760. + ac_site_file2=$prefix/etc/config.site
  761. else
  762. - set x "$ac_default_prefix/share/config.site" \
  763. - "$ac_default_prefix/etc/config.site"
  764. + ac_site_file1=$ac_default_prefix/share/config.site
  765. + ac_site_file2=$ac_default_prefix/etc/config.site
  766. fi
  767. -shift
  768. -for ac_site_file
  769. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  770. do
  771. + test "x$ac_site_file" = xNONE && continue
  772. if test -r "$ac_site_file"; then
  773. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  774. -echo "$as_me: loading site script $ac_site_file" >&6;}
  775. + { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  776. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  777. sed 's/^/| /' "$ac_site_file" >&5
  778. . "$ac_site_file"
  779. fi
  780. @@ -1561,16 +1648,16 @@ if test -r "$cache_file"; then
  781. # Some versions of bash will fail to source /dev/null (special
  782. # files actually), so we avoid doing that.
  783. if test -f "$cache_file"; then
  784. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  785. -echo "$as_me: loading cache $cache_file" >&6;}
  786. + { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  787. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  788. case $cache_file in
  789. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  790. *) . "./$cache_file";;
  791. esac
  792. fi
  793. else
  794. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  795. -echo "$as_me: creating cache $cache_file" >&6;}
  796. + { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  797. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  798. >$cache_file
  799. fi
  800. @@ -1584,29 +1671,38 @@ for ac_var in $ac_precious_vars; do
  801. eval ac_new_val=\$ac_env_${ac_var}_value
  802. case $ac_old_set,$ac_new_set in
  803. set,)
  804. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  805. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  806. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  807. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  808. ac_cache_corrupted=: ;;
  809. ,set)
  810. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  811. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  812. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  813. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  814. ac_cache_corrupted=: ;;
  815. ,);;
  816. *)
  817. if test "x$ac_old_val" != "x$ac_new_val"; then
  818. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  819. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  820. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  821. -echo "$as_me: former value: $ac_old_val" >&2;}
  822. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  823. -echo "$as_me: current value: $ac_new_val" >&2;}
  824. - ac_cache_corrupted=:
  825. + # differences in whitespace do not lead to failure.
  826. + ac_old_val_w=`echo x $ac_old_val`
  827. + ac_new_val_w=`echo x $ac_new_val`
  828. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  829. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  830. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  831. + ac_cache_corrupted=:
  832. + else
  833. + { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  834. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  835. + eval $ac_var=\$ac_old_val
  836. + fi
  837. + { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  838. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  839. + { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  840. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  841. fi;;
  842. esac
  843. # Pass precious variables to config.status.
  844. if test "$ac_new_set" = set; then
  845. case $ac_new_val in
  846. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  847. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  848. *) ac_arg=$ac_var=$ac_new_val ;;
  849. esac
  850. case " $ac_configure_args " in
  851. @@ -1616,10 +1712,12 @@ echo "$as_me: current value: $ac_new_v
  852. fi
  853. done
  854. if $ac_cache_corrupted; then
  855. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  856. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  857. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  858. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  859. + { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  860. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  861. + { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  862. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  863. + { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  864. +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  865. { (exit 1); exit 1; }; }
  866. fi
  867. @@ -1662,10 +1760,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  868. if test -n "$ac_tool_prefix"; then
  869. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  870. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  871. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  872. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  873. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  874. +$as_echo_n "checking for $ac_word... " >&6; }
  875. if test "${ac_cv_prog_CC+set}" = set; then
  876. - echo $ECHO_N "(cached) $ECHO_C" >&6
  877. + $as_echo_n "(cached) " >&6
  878. else
  879. if test -n "$CC"; then
  880. ac_cv_prog_CC="$CC" # Let the user override the test.
  881. @@ -1678,7 +1776,7 @@ do
  882. for ac_exec_ext in '' $ac_executable_extensions; do
  883. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  884. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  885. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  886. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  887. break 2
  888. fi
  889. done
  890. @@ -1689,11 +1787,11 @@ fi
  891. fi
  892. CC=$ac_cv_prog_CC
  893. if test -n "$CC"; then
  894. - { echo "$as_me:$LINENO: result: $CC" >&5
  895. -echo "${ECHO_T}$CC" >&6; }
  896. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  897. +$as_echo "$CC" >&6; }
  898. else
  899. - { echo "$as_me:$LINENO: result: no" >&5
  900. -echo "${ECHO_T}no" >&6; }
  901. + { $as_echo "$as_me:$LINENO: result: no" >&5
  902. +$as_echo "no" >&6; }
  903. fi
  904. @@ -1702,10 +1800,10 @@ if test -z "$ac_cv_prog_CC"; then
  905. ac_ct_CC=$CC
  906. # Extract the first word of "gcc", so it can be a program name with args.
  907. set dummy gcc; ac_word=$2
  908. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  909. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  910. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  911. +$as_echo_n "checking for $ac_word... " >&6; }
  912. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  913. - echo $ECHO_N "(cached) $ECHO_C" >&6
  914. + $as_echo_n "(cached) " >&6
  915. else
  916. if test -n "$ac_ct_CC"; then
  917. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  918. @@ -1718,7 +1816,7 @@ do
  919. for ac_exec_ext in '' $ac_executable_extensions; do
  920. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  921. ac_cv_prog_ac_ct_CC="gcc"
  922. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  923. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  924. break 2
  925. fi
  926. done
  927. @@ -1729,11 +1827,11 @@ fi
  928. fi
  929. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  930. if test -n "$ac_ct_CC"; then
  931. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  932. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  933. + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  934. +$as_echo "$ac_ct_CC" >&6; }
  935. else
  936. - { echo "$as_me:$LINENO: result: no" >&5
  937. -echo "${ECHO_T}no" >&6; }
  938. + { $as_echo "$as_me:$LINENO: result: no" >&5
  939. +$as_echo "no" >&6; }
  940. fi
  941. if test "x$ac_ct_CC" = x; then
  942. @@ -1741,12 +1839,8 @@ fi
  943. else
  944. case $cross_compiling:$ac_tool_warned in
  945. yes:)
  946. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  947. -whose name does not start with the host triplet. If you think this
  948. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  949. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  950. -whose name does not start with the host triplet. If you think this
  951. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  952. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  953. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  954. ac_tool_warned=yes ;;
  955. esac
  956. CC=$ac_ct_CC
  957. @@ -1759,10 +1853,10 @@ if test -z "$CC"; then
  958. if test -n "$ac_tool_prefix"; then
  959. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  960. set dummy ${ac_tool_prefix}cc; ac_word=$2
  961. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  962. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  963. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  964. +$as_echo_n "checking for $ac_word... " >&6; }
  965. if test "${ac_cv_prog_CC+set}" = set; then
  966. - echo $ECHO_N "(cached) $ECHO_C" >&6
  967. + $as_echo_n "(cached) " >&6
  968. else
  969. if test -n "$CC"; then
  970. ac_cv_prog_CC="$CC" # Let the user override the test.
  971. @@ -1775,7 +1869,7 @@ do
  972. for ac_exec_ext in '' $ac_executable_extensions; do
  973. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  974. ac_cv_prog_CC="${ac_tool_prefix}cc"
  975. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  976. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  977. break 2
  978. fi
  979. done
  980. @@ -1786,11 +1880,11 @@ fi
  981. fi
  982. CC=$ac_cv_prog_CC
  983. if test -n "$CC"; then
  984. - { echo "$as_me:$LINENO: result: $CC" >&5
  985. -echo "${ECHO_T}$CC" >&6; }
  986. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  987. +$as_echo "$CC" >&6; }
  988. else
  989. - { echo "$as_me:$LINENO: result: no" >&5
  990. -echo "${ECHO_T}no" >&6; }
  991. + { $as_echo "$as_me:$LINENO: result: no" >&5
  992. +$as_echo "no" >&6; }
  993. fi
  994. @@ -1799,10 +1893,10 @@ fi
  995. if test -z "$CC"; then
  996. # Extract the first word of "cc", so it can be a program name with args.
  997. set dummy cc; ac_word=$2
  998. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  999. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1000. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1001. +$as_echo_n "checking for $ac_word... " >&6; }
  1002. if test "${ac_cv_prog_CC+set}" = set; then
  1003. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1004. + $as_echo_n "(cached) " >&6
  1005. else
  1006. if test -n "$CC"; then
  1007. ac_cv_prog_CC="$CC" # Let the user override the test.
  1008. @@ -1820,7 +1914,7 @@ do
  1009. continue
  1010. fi
  1011. ac_cv_prog_CC="cc"
  1012. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1013. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1014. break 2
  1015. fi
  1016. done
  1017. @@ -1843,11 +1937,11 @@ fi
  1018. fi
  1019. CC=$ac_cv_prog_CC
  1020. if test -n "$CC"; then
  1021. - { echo "$as_me:$LINENO: result: $CC" >&5
  1022. -echo "${ECHO_T}$CC" >&6; }
  1023. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  1024. +$as_echo "$CC" >&6; }
  1025. else
  1026. - { echo "$as_me:$LINENO: result: no" >&5
  1027. -echo "${ECHO_T}no" >&6; }
  1028. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1029. +$as_echo "no" >&6; }
  1030. fi
  1031. @@ -1858,10 +1952,10 @@ if test -z "$CC"; then
  1032. do
  1033. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1034. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1035. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  1036. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1037. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1038. +$as_echo_n "checking for $ac_word... " >&6; }
  1039. if test "${ac_cv_prog_CC+set}" = set; then
  1040. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1041. + $as_echo_n "(cached) " >&6
  1042. else
  1043. if test -n "$CC"; then
  1044. ac_cv_prog_CC="$CC" # Let the user override the test.
  1045. @@ -1874,7 +1968,7 @@ do
  1046. for ac_exec_ext in '' $ac_executable_extensions; do
  1047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1048. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1049. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1050. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1051. break 2
  1052. fi
  1053. done
  1054. @@ -1885,11 +1979,11 @@ fi
  1055. fi
  1056. CC=$ac_cv_prog_CC
  1057. if test -n "$CC"; then
  1058. - { echo "$as_me:$LINENO: result: $CC" >&5
  1059. -echo "${ECHO_T}$CC" >&6; }
  1060. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  1061. +$as_echo "$CC" >&6; }
  1062. else
  1063. - { echo "$as_me:$LINENO: result: no" >&5
  1064. -echo "${ECHO_T}no" >&6; }
  1065. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1066. +$as_echo "no" >&6; }
  1067. fi
  1068. @@ -1902,10 +1996,10 @@ if test -z "$CC"; then
  1069. do
  1070. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1071. set dummy $ac_prog; ac_word=$2
  1072. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  1073. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1074. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1075. +$as_echo_n "checking for $ac_word... " >&6; }
  1076. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1077. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1078. + $as_echo_n "(cached) " >&6
  1079. else
  1080. if test -n "$ac_ct_CC"; then
  1081. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1082. @@ -1918,7 +2012,7 @@ do
  1083. for ac_exec_ext in '' $ac_executable_extensions; do
  1084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1085. ac_cv_prog_ac_ct_CC="$ac_prog"
  1086. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1087. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1088. break 2
  1089. fi
  1090. done
  1091. @@ -1929,11 +2023,11 @@ fi
  1092. fi
  1093. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1094. if test -n "$ac_ct_CC"; then
  1095. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1096. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  1097. + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1098. +$as_echo "$ac_ct_CC" >&6; }
  1099. else
  1100. - { echo "$as_me:$LINENO: result: no" >&5
  1101. -echo "${ECHO_T}no" >&6; }
  1102. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1103. +$as_echo "no" >&6; }
  1104. fi
  1105. @@ -1945,12 +2039,8 @@ done
  1106. else
  1107. case $cross_compiling:$ac_tool_warned in
  1108. yes:)
  1109. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1110. -whose name does not start with the host triplet. If you think this
  1111. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  1112. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1113. -whose name does not start with the host triplet. If you think this
  1114. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1115. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1116. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1117. ac_tool_warned=yes ;;
  1118. esac
  1119. CC=$ac_ct_CC
  1120. @@ -1960,44 +2050,50 @@ fi
  1121. fi
  1122. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1123. +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1124. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1125. +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1126. See \`config.log' for more details." >&5
  1127. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  1128. +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  1129. See \`config.log' for more details." >&2;}
  1130. - { (exit 1); exit 1; }; }
  1131. + { (exit 1); exit 1; }; }; }
  1132. # Provide some information about the compiler.
  1133. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  1134. -ac_compiler=`set X $ac_compile; echo $2`
  1135. +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  1136. +set X $ac_compile
  1137. +ac_compiler=$2
  1138. { (ac_try="$ac_compiler --version >&5"
  1139. case "(($ac_try" in
  1140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1141. *) ac_try_echo=$ac_try;;
  1142. esac
  1143. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1144. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1145. +$as_echo "$ac_try_echo") >&5
  1146. (eval "$ac_compiler --version >&5") 2>&5
  1147. ac_status=$?
  1148. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1149. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1150. (exit $ac_status); }
  1151. { (ac_try="$ac_compiler -v >&5"
  1152. case "(($ac_try" in
  1153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1154. *) ac_try_echo=$ac_try;;
  1155. esac
  1156. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1157. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1158. +$as_echo "$ac_try_echo") >&5
  1159. (eval "$ac_compiler -v >&5") 2>&5
  1160. ac_status=$?
  1161. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1162. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1163. (exit $ac_status); }
  1164. { (ac_try="$ac_compiler -V >&5"
  1165. case "(($ac_try" in
  1166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1167. *) ac_try_echo=$ac_try;;
  1168. esac
  1169. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1170. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1171. +$as_echo "$ac_try_echo") >&5
  1172. (eval "$ac_compiler -V >&5") 2>&5
  1173. ac_status=$?
  1174. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1175. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1176. (exit $ac_status); }
  1177. cat >conftest.$ac_ext <<_ACEOF
  1178. @@ -2016,27 +2112,22 @@ main ()
  1179. }
  1180. _ACEOF
  1181. ac_clean_files_save=$ac_clean_files
  1182. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1183. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1184. # Try to create an executable without -o first, disregard a.out.
  1185. # It will help us diagnose broken compilers, and finding out an intuition
  1186. # of exeext.
  1187. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1188. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  1189. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1190. -#
  1191. -# List of possible output files, starting from the most likely.
  1192. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1193. -# only as a last resort. b.out is created by i960 compilers.
  1194. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1195. -#
  1196. -# The IRIX 6 linker writes into existing files which may not be
  1197. -# executable, retaining their permissions. Remove them first so a
  1198. -# subsequent execution test works.
  1199. +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1200. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  1201. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1202. +
  1203. +# The possible output files:
  1204. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1205. +
  1206. ac_rmfiles=
  1207. for ac_file in $ac_files
  1208. do
  1209. case $ac_file in
  1210. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1211. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1212. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1213. esac
  1214. done
  1215. @@ -2047,10 +2138,11 @@ case "(($ac_try" in
  1216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1217. *) ac_try_echo=$ac_try;;
  1218. esac
  1219. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1220. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1221. +$as_echo "$ac_try_echo") >&5
  1222. (eval "$ac_link_default") 2>&5
  1223. ac_status=$?
  1224. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1225. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1226. (exit $ac_status); }; then
  1227. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1228. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1229. @@ -2061,7 +2153,7 @@ for ac_file in $ac_files ''
  1230. do
  1231. test -f "$ac_file" || continue
  1232. case $ac_file in
  1233. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1234. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1235. ;;
  1236. [ab].out )
  1237. # We found the default executable, but exeext='' is most
  1238. @@ -2088,25 +2180,27 @@ else
  1239. ac_file=''
  1240. fi
  1241. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  1242. -echo "${ECHO_T}$ac_file" >&6; }
  1243. +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  1244. +$as_echo "$ac_file" >&6; }
  1245. if test -z "$ac_file"; then
  1246. - echo "$as_me: failed program was:" >&5
  1247. + $as_echo "$as_me: failed program was:" >&5
  1248. sed 's/^/| /' conftest.$ac_ext >&5
  1249. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1250. +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1251. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1252. +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  1253. See \`config.log' for more details." >&5
  1254. -echo "$as_me: error: C compiler cannot create executables
  1255. +$as_echo "$as_me: error: C compiler cannot create executables
  1256. See \`config.log' for more details." >&2;}
  1257. - { (exit 77); exit 77; }; }
  1258. + { (exit 77); exit 77; }; }; }
  1259. fi
  1260. ac_exeext=$ac_cv_exeext
  1261. # Check that the compiler produces executables we can run. If not, either
  1262. # the compiler is broken, or we cross compile.
  1263. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1264. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  1265. +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1266. +$as_echo_n "checking whether the C compiler works... " >&6; }
  1267. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1268. # If not cross compiling, check that we can run a simple program.
  1269. if test "$cross_compiling" != yes; then
  1270. @@ -2115,49 +2209,53 @@ if test "$cross_compiling" != yes; then
  1271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1272. *) ac_try_echo=$ac_try;;
  1273. esac
  1274. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1275. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1276. +$as_echo "$ac_try_echo") >&5
  1277. (eval "$ac_try") 2>&5
  1278. ac_status=$?
  1279. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1280. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1281. (exit $ac_status); }; }; then
  1282. cross_compiling=no
  1283. else
  1284. if test "$cross_compiling" = maybe; then
  1285. cross_compiling=yes
  1286. else
  1287. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1288. + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1289. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1290. +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1291. If you meant to cross compile, use \`--host'.
  1292. See \`config.log' for more details." >&5
  1293. -echo "$as_me: error: cannot run C compiled programs.
  1294. +$as_echo "$as_me: error: cannot run C compiled programs.
  1295. If you meant to cross compile, use \`--host'.
  1296. See \`config.log' for more details." >&2;}
  1297. - { (exit 1); exit 1; }; }
  1298. + { (exit 1); exit 1; }; }; }
  1299. fi
  1300. fi
  1301. fi
  1302. -{ echo "$as_me:$LINENO: result: yes" >&5
  1303. -echo "${ECHO_T}yes" >&6; }
  1304. +{ $as_echo "$as_me:$LINENO: result: yes" >&5
  1305. +$as_echo "yes" >&6; }
  1306. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1307. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1308. ac_clean_files=$ac_clean_files_save
  1309. # Check that the compiler produces executables we can run. If not, either
  1310. # the compiler is broken, or we cross compile.
  1311. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1312. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1313. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1314. -echo "${ECHO_T}$cross_compiling" >&6; }
  1315. +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1316. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  1317. +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1318. +$as_echo "$cross_compiling" >&6; }
  1319. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1320. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1321. +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1322. +$as_echo_n "checking for suffix of executables... " >&6; }
  1323. if { (ac_try="$ac_link"
  1324. case "(($ac_try" in
  1325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1326. *) ac_try_echo=$ac_try;;
  1327. esac
  1328. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1329. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1330. +$as_echo "$ac_try_echo") >&5
  1331. (eval "$ac_link") 2>&5
  1332. ac_status=$?
  1333. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1334. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1335. (exit $ac_status); }; then
  1336. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1337. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1338. @@ -2166,31 +2264,33 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
  1339. for ac_file in conftest.exe conftest conftest.*; do
  1340. test -f "$ac_file" || continue
  1341. case $ac_file in
  1342. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1343. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1344. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1345. break;;
  1346. * ) break;;
  1347. esac
  1348. done
  1349. else
  1350. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1351. + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1352. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1353. +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1354. See \`config.log' for more details." >&5
  1355. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1356. +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1357. See \`config.log' for more details." >&2;}
  1358. - { (exit 1); exit 1; }; }
  1359. + { (exit 1); exit 1; }; }; }
  1360. fi
  1361. rm -f conftest$ac_cv_exeext
  1362. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1363. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1364. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1365. +$as_echo "$ac_cv_exeext" >&6; }
  1366. rm -f conftest.$ac_ext
  1367. EXEEXT=$ac_cv_exeext
  1368. ac_exeext=$EXEEXT
  1369. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1370. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1371. +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1372. +$as_echo_n "checking for suffix of object files... " >&6; }
  1373. if test "${ac_cv_objext+set}" = set; then
  1374. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1375. + $as_echo_n "(cached) " >&6
  1376. else
  1377. cat >conftest.$ac_ext <<_ACEOF
  1378. /* confdefs.h. */
  1379. @@ -2213,40 +2313,43 @@ case "(($ac_try" in
  1380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1381. *) ac_try_echo=$ac_try;;
  1382. esac
  1383. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1384. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1385. +$as_echo "$ac_try_echo") >&5
  1386. (eval "$ac_compile") 2>&5
  1387. ac_status=$?
  1388. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1389. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1390. (exit $ac_status); }; then
  1391. for ac_file in conftest.o conftest.obj conftest.*; do
  1392. test -f "$ac_file" || continue;
  1393. case $ac_file in
  1394. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  1395. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  1396. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1397. break;;
  1398. esac
  1399. done
  1400. else
  1401. - echo "$as_me: failed program was:" >&5
  1402. + $as_echo "$as_me: failed program was:" >&5
  1403. sed 's/^/| /' conftest.$ac_ext >&5
  1404. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1405. +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1406. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1407. +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1408. See \`config.log' for more details." >&5
  1409. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1410. +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1411. See \`config.log' for more details." >&2;}
  1412. - { (exit 1); exit 1; }; }
  1413. + { (exit 1); exit 1; }; }; }
  1414. fi
  1415. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1416. fi
  1417. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1418. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  1419. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1420. +$as_echo "$ac_cv_objext" >&6; }
  1421. OBJEXT=$ac_cv_objext
  1422. ac_objext=$OBJEXT
  1423. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1424. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  1425. +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1426. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  1427. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1428. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1429. + $as_echo_n "(cached) " >&6
  1430. else
  1431. cat >conftest.$ac_ext <<_ACEOF
  1432. /* confdefs.h. */
  1433. @@ -2272,20 +2375,21 @@ case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1438. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1439. +$as_echo "$ac_try_echo") >&5
  1440. (eval "$ac_compile") 2>conftest.er1
  1441. ac_status=$?
  1442. grep -v '^ *+' conftest.er1 >conftest.err
  1443. rm -f conftest.er1
  1444. cat conftest.err >&5
  1445. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1446. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1447. (exit $ac_status); } && {
  1448. test -z "$ac_c_werror_flag" ||
  1449. test ! -s conftest.err
  1450. } && test -s conftest.$ac_objext; then
  1451. ac_compiler_gnu=yes
  1452. else
  1453. - echo "$as_me: failed program was:" >&5
  1454. + $as_echo "$as_me: failed program was:" >&5
  1455. sed 's/^/| /' conftest.$ac_ext >&5
  1456. ac_compiler_gnu=no
  1457. @@ -2295,15 +2399,19 @@ rm -f core conftest.err conftest.$ac_obj
  1458. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1459. fi
  1460. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1461. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  1462. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  1463. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1464. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  1465. +if test $ac_compiler_gnu = yes; then
  1466. + GCC=yes
  1467. +else
  1468. + GCC=
  1469. +fi
  1470. ac_test_CFLAGS=${CFLAGS+set}
  1471. ac_save_CFLAGS=$CFLAGS
  1472. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1473. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  1474. +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1475. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  1476. if test "${ac_cv_prog_cc_g+set}" = set; then
  1477. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1478. + $as_echo_n "(cached) " >&6
  1479. else
  1480. ac_save_c_werror_flag=$ac_c_werror_flag
  1481. ac_c_werror_flag=yes
  1482. @@ -2330,20 +2438,21 @@ case "(($ac_try" in
  1483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1484. *) ac_try_echo=$ac_try;;
  1485. esac
  1486. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1487. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1488. +$as_echo "$ac_try_echo") >&5
  1489. (eval "$ac_compile") 2>conftest.er1
  1490. ac_status=$?
  1491. grep -v '^ *+' conftest.er1 >conftest.err
  1492. rm -f conftest.er1
  1493. cat conftest.err >&5
  1494. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1495. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1496. (exit $ac_status); } && {
  1497. test -z "$ac_c_werror_flag" ||
  1498. test ! -s conftest.err
  1499. } && test -s conftest.$ac_objext; then
  1500. ac_cv_prog_cc_g=yes
  1501. else
  1502. - echo "$as_me: failed program was:" >&5
  1503. + $as_echo "$as_me: failed program was:" >&5
  1504. sed 's/^/| /' conftest.$ac_ext >&5
  1505. CFLAGS=""
  1506. @@ -2368,20 +2477,21 @@ case "(($ac_try" in
  1507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1508. *) ac_try_echo=$ac_try;;
  1509. esac
  1510. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1511. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1512. +$as_echo "$ac_try_echo") >&5
  1513. (eval "$ac_compile") 2>conftest.er1
  1514. ac_status=$?
  1515. grep -v '^ *+' conftest.er1 >conftest.err
  1516. rm -f conftest.er1
  1517. cat conftest.err >&5
  1518. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1519. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1520. (exit $ac_status); } && {
  1521. test -z "$ac_c_werror_flag" ||
  1522. test ! -s conftest.err
  1523. } && test -s conftest.$ac_objext; then
  1524. :
  1525. else
  1526. - echo "$as_me: failed program was:" >&5
  1527. + $as_echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. ac_c_werror_flag=$ac_save_c_werror_flag
  1530. @@ -2407,20 +2517,21 @@ case "(($ac_try" in
  1531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1532. *) ac_try_echo=$ac_try;;
  1533. esac
  1534. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1535. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1536. +$as_echo "$ac_try_echo") >&5
  1537. (eval "$ac_compile") 2>conftest.er1
  1538. ac_status=$?
  1539. grep -v '^ *+' conftest.er1 >conftest.err
  1540. rm -f conftest.er1
  1541. cat conftest.err >&5
  1542. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1543. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1544. (exit $ac_status); } && {
  1545. test -z "$ac_c_werror_flag" ||
  1546. test ! -s conftest.err
  1547. } && test -s conftest.$ac_objext; then
  1548. ac_cv_prog_cc_g=yes
  1549. else
  1550. - echo "$as_me: failed program was:" >&5
  1551. + $as_echo "$as_me: failed program was:" >&5
  1552. sed 's/^/| /' conftest.$ac_ext >&5
  1553. @@ -2435,8 +2546,8 @@ fi
  1554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1555. ac_c_werror_flag=$ac_save_c_werror_flag
  1556. fi
  1557. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1558. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  1559. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1560. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  1561. if test "$ac_test_CFLAGS" = set; then
  1562. CFLAGS=$ac_save_CFLAGS
  1563. elif test $ac_cv_prog_cc_g = yes; then
  1564. @@ -2452,10 +2563,10 @@ else
  1565. CFLAGS=
  1566. fi
  1567. fi
  1568. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  1569. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  1570. +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  1571. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  1572. if test "${ac_cv_prog_cc_c89+set}" = set; then
  1573. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1574. + $as_echo_n "(cached) " >&6
  1575. else
  1576. ac_cv_prog_cc_c89=no
  1577. ac_save_CC=$CC
  1578. @@ -2526,20 +2637,21 @@ case "(($ac_try" in
  1579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1580. *) ac_try_echo=$ac_try;;
  1581. esac
  1582. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1583. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1584. +$as_echo "$ac_try_echo") >&5
  1585. (eval "$ac_compile") 2>conftest.er1
  1586. ac_status=$?
  1587. grep -v '^ *+' conftest.er1 >conftest.err
  1588. rm -f conftest.er1
  1589. cat conftest.err >&5
  1590. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1591. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1592. (exit $ac_status); } && {
  1593. test -z "$ac_c_werror_flag" ||
  1594. test ! -s conftest.err
  1595. } && test -s conftest.$ac_objext; then
  1596. ac_cv_prog_cc_c89=$ac_arg
  1597. else
  1598. - echo "$as_me: failed program was:" >&5
  1599. + $as_echo "$as_me: failed program was:" >&5
  1600. sed 's/^/| /' conftest.$ac_ext >&5
  1601. @@ -2555,15 +2667,15 @@ fi
  1602. # AC_CACHE_VAL
  1603. case "x$ac_cv_prog_cc_c89" in
  1604. x)
  1605. - { echo "$as_me:$LINENO: result: none needed" >&5
  1606. -echo "${ECHO_T}none needed" >&6; } ;;
  1607. + { $as_echo "$as_me:$LINENO: result: none needed" >&5
  1608. +$as_echo "none needed" >&6; } ;;
  1609. xno)
  1610. - { echo "$as_me:$LINENO: result: unsupported" >&5
  1611. -echo "${ECHO_T}unsupported" >&6; } ;;
  1612. + { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  1613. +$as_echo "unsupported" >&6; } ;;
  1614. *)
  1615. CC="$CC $ac_cv_prog_cc_c89"
  1616. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  1617. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  1618. + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  1619. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  1620. esac
  1621. @@ -2581,8 +2693,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1622. if test "${with_rlm_ldap_lib_dir+set}" = set; then
  1623. withval=$with_rlm_ldap_lib_dir; case "$withval" in
  1624. no)
  1625. - { { echo "$as_me:$LINENO: error: Need rlm-ldap-lib-dir" >&5
  1626. -echo "$as_me: error: Need rlm-ldap-lib-dir" >&2;}
  1627. + { { $as_echo "$as_me:$LINENO: error: Need rlm-ldap-lib-dir" >&5
  1628. +$as_echo "$as_me: error: Need rlm-ldap-lib-dir" >&2;}
  1629. { (exit 1); exit 1; }; }
  1630. ;;
  1631. yes)
  1632. @@ -2601,8 +2713,8 @@ fi
  1633. if test "${with_rlm_ldap_include_dir+set}" = set; then
  1634. withval=$with_rlm_ldap_include_dir; case "$withval" in
  1635. no)
  1636. - { { echo "$as_me:$LINENO: error: Need rlm-ldap-include-dir" >&5
  1637. -echo "$as_me: error: Need rlm-ldap-include-dir" >&2;}
  1638. + { { $as_echo "$as_me:$LINENO: error: Need rlm-ldap-include-dir" >&5
  1639. +$as_echo "$as_me: error: Need rlm-ldap-include-dir" >&2;}
  1640. { (exit 1); exit 1; }; }
  1641. ;;
  1642. yes)
  1643. @@ -2641,8 +2753,8 @@ fi
  1644. if test "x$enable_shared" = "xno"; then
  1645. - { echo "$as_me:$LINENO: WARNING: Static linking with libldap will probably result in unresolved symbols." >&5
  1646. -echo "$as_me: WARNING: Static linking with libldap will probably result in unresolved symbols." >&2;}
  1647. + { $as_echo "$as_me:$LINENO: WARNING: Static linking with libldap will probably result in unresolved symbols." >&5
  1648. +$as_echo "$as_me: WARNING: Static linking with libldap will probably result in unresolved symbols." >&2;}
  1649. fi
  1650. rlm_ldap_with_threads=yes
  1651. @@ -2661,10 +2773,10 @@ fi
  1652. if test "x$rlm_ldap_with_threads" = "xyes"; then
  1653. - { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  1654. -echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
  1655. + { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  1656. +$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  1657. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  1658. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1659. + $as_echo_n "(cached) " >&6
  1660. else
  1661. ac_check_lib_save_LIBS=$LIBS
  1662. LIBS="-lpthread $LIBS"
  1663. @@ -2696,39 +2808,43 @@ case "(($ac_try" in
  1664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1665. *) ac_try_echo=$ac_try;;
  1666. esac
  1667. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1668. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1669. +$as_echo "$ac_try_echo") >&5
  1670. (eval "$ac_link") 2>conftest.er1
  1671. ac_status=$?
  1672. grep -v '^ *+' conftest.er1 >conftest.err
  1673. rm -f conftest.er1
  1674. cat conftest.err >&5
  1675. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1676. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1677. (exit $ac_status); } && {
  1678. test -z "$ac_c_werror_flag" ||
  1679. test ! -s conftest.err
  1680. - } && test -s conftest$ac_exeext &&
  1681. - $as_test_x conftest$ac_exeext; then
  1682. + } && test -s conftest$ac_exeext && {
  1683. + test "$cross_compiling" = yes ||
  1684. + $as_test_x conftest$ac_exeext
  1685. + }; then
  1686. ac_cv_lib_pthread_pthread_create=yes
  1687. else
  1688. - echo "$as_me: failed program was:" >&5
  1689. + $as_echo "$as_me: failed program was:" >&5
  1690. sed 's/^/| /' conftest.$ac_ext >&5
  1691. ac_cv_lib_pthread_pthread_create=no
  1692. fi
  1693. +rm -rf conftest.dSYM
  1694. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  1695. conftest$ac_exeext conftest.$ac_ext
  1696. LIBS=$ac_check_lib_save_LIBS
  1697. fi
  1698. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  1699. -echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
  1700. -if test $ac_cv_lib_pthread_pthread_create = yes; then
  1701. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  1702. +$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  1703. +if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
  1704. LIBS="-lpthread $LIBS"
  1705. else
  1706. - { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
  1707. -echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
  1708. + { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
  1709. +$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
  1710. if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
  1711. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1712. + $as_echo_n "(cached) " >&6
  1713. else
  1714. ac_check_lib_save_LIBS=$LIBS
  1715. LIBS="-lc_r $LIBS"
  1716. @@ -2761,33 +2877,37 @@ case "(($ac_try" in
  1717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1718. *) ac_try_echo=$ac_try;;
  1719. esac
  1720. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1721. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1722. +$as_echo "$ac_try_echo") >&5
  1723. (eval "$ac_link") 2>conftest.er1
  1724. ac_status=$?
  1725. grep -v '^ *+' conftest.er1 >conftest.err
  1726. rm -f conftest.er1
  1727. cat conftest.err >&5
  1728. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1729. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1730. (exit $ac_status); } && {
  1731. test -z "$ac_c_werror_flag" ||
  1732. test ! -s conftest.err
  1733. - } && test -s conftest$ac_exeext &&
  1734. - $as_test_x conftest$ac_exeext; then
  1735. + } && test -s conftest$ac_exeext && {
  1736. + test "$cross_compiling" = yes ||
  1737. + $as_test_x conftest$ac_exeext
  1738. + }; then
  1739. ac_cv_lib_c_r_pthread_create=yes
  1740. else
  1741. - echo "$as_me: failed program was:" >&5
  1742. + $as_echo "$as_me: failed program was:" >&5
  1743. sed 's/^/| /' conftest.$ac_ext >&5
  1744. ac_cv_lib_c_r_pthread_create=no
  1745. fi
  1746. +rm -rf conftest.dSYM
  1747. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  1748. conftest$ac_exeext conftest.$ac_ext
  1749. LIBS=$ac_check_lib_save_LIBS
  1750. fi
  1751. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
  1752. -echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
  1753. -if test $ac_cv_lib_c_r_pthread_create = yes; then
  1754. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
  1755. +$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
  1756. +if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
  1757. LIBS="-lc_r $LIBS"
  1758. else
  1759. rlm_ldap_with_threads="no"
  1760. @@ -2799,14 +2919,12 @@ fi
  1761. fi
  1762. - smart_try_dir=$rlm_ldap_lib_dir
  1763. - if test "x$rlm_ldap_with_threads" = "xyes"; then
  1764. -sm_lib_safe=`echo "ldap_r" | sed 'y%./+-%__p_%'`
  1765. -sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
  1766. -{ echo "$as_me:$LINENO: checking for ldap_init in -lldap_r" >&5
  1767. -echo $ECHO_N "checking for ldap_init in -lldap_r... $ECHO_C" >&6; }
  1768. +sm_lib_safe=`echo "sasl" | sed 'y%./+-%__p_%'`
  1769. +sm_func_safe=`echo "sasl_encode" | sed 'y%./+-%__p_%'`
  1770. +{ $as_echo "$as_me:$LINENO: checking for sasl_encode in -lsasl" >&5
  1771. +$as_echo_n "checking for sasl_encode in -lsasl... " >&6; }
  1772. old_LIBS="$LIBS"
  1773. smart_lib=
  1774. @@ -2814,18 +2932,18 @@ smart_lib_dir=
  1775. if test "x$smart_try_dir" != "x"; then
  1776. for try in $smart_try_dir; do
  1777. - LIBS="-L$try -lldap_r $old_LIBS"
  1778. + LIBS="-L$try -lsasl $old_LIBS"
  1779. cat >conftest.$ac_ext <<_ACEOF
  1780. /* confdefs.h. */
  1781. _ACEOF
  1782. cat confdefs.h >>conftest.$ac_ext
  1783. cat >>conftest.$ac_ext <<_ACEOF
  1784. /* end confdefs.h. */
  1785. -extern char ldap_init();
  1786. +extern char sasl_encode();
  1787. int
  1788. main ()
  1789. {
  1790. - ldap_init()
  1791. + sasl_encode()
  1792. ;
  1793. return 0;
  1794. }
  1795. @@ -2836,26 +2954,30 @@ case "(($ac_try" in
  1796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1797. *) ac_try_echo=$ac_try;;
  1798. esac
  1799. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1800. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1801. +$as_echo "$ac_try_echo") >&5
  1802. (eval "$ac_link") 2>conftest.er1
  1803. ac_status=$?
  1804. grep -v '^ *+' conftest.er1 >conftest.err
  1805. rm -f conftest.er1
  1806. cat conftest.err >&5
  1807. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1808. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1809. (exit $ac_status); } && {
  1810. test -z "$ac_c_werror_flag" ||
  1811. test ! -s conftest.err
  1812. - } && test -s conftest$ac_exeext &&
  1813. - $as_test_x conftest$ac_exeext; then
  1814. - smart_lib="-L$try -lldap_r"
  1815. + } && test -s conftest$ac_exeext && {
  1816. + test "$cross_compiling" = yes ||
  1817. + $as_test_x conftest$ac_exeext
  1818. + }; then
  1819. + smart_lib="-L$try -lsasl"
  1820. else
  1821. - echo "$as_me: failed program was:" >&5
  1822. + $as_echo "$as_me: failed program was:" >&5
  1823. sed 's/^/| /' conftest.$ac_ext >&5
  1824. fi
  1825. +rm -rf conftest.dSYM
  1826. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  1827. conftest$ac_exeext conftest.$ac_ext
  1828. if test "x$smart_lib" != "x"; then
  1829. @@ -2866,18 +2988,18 @@ rm -f core conftest.err conftest.$ac_obj
  1830. fi
  1831. if test "x$smart_lib" = "x"; then
  1832. - LIBS="-lldap_r $old_LIBS"
  1833. + LIBS="-lsasl $old_LIBS"
  1834. cat >conftest.$ac_ext <<_ACEOF
  1835. /* confdefs.h. */
  1836. _ACEOF
  1837. cat confdefs.h >>conftest.$ac_ext
  1838. cat >>conftest.$ac_ext <<_ACEOF
  1839. /* end confdefs.h. */
  1840. -extern char ldap_init();
  1841. +extern char sasl_encode();
  1842. int
  1843. main ()
  1844. {
  1845. - ldap_init()
  1846. + sasl_encode()
  1847. ;
  1848. return 0;
  1849. }
  1850. @@ -2888,26 +3010,30 @@ case "(($ac_try" in
  1851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1852. *) ac_try_echo=$ac_try;;
  1853. esac
  1854. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1855. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1856. +$as_echo "$ac_try_echo") >&5
  1857. (eval "$ac_link") 2>conftest.er1
  1858. ac_status=$?
  1859. grep -v '^ *+' conftest.er1 >conftest.err
  1860. rm -f conftest.er1
  1861. cat conftest.err >&5
  1862. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1863. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); } && {
  1865. test -z "$ac_c_werror_flag" ||
  1866. test ! -s conftest.err
  1867. - } && test -s conftest$ac_exeext &&
  1868. - $as_test_x conftest$ac_exeext; then
  1869. - smart_lib="-lldap_r"
  1870. + } && test -s conftest$ac_exeext && {
  1871. + test "$cross_compiling" = yes ||
  1872. + $as_test_x conftest$ac_exeext
  1873. + }; then
  1874. + smart_lib="-lsasl"
  1875. else
  1876. - echo "$as_me: failed program was:" >&5
  1877. + $as_echo "$as_me: failed program was:" >&5
  1878. sed 's/^/| /' conftest.$ac_ext >&5
  1879. fi
  1880. +rm -rf conftest.dSYM
  1881. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  1882. conftest$ac_exeext conftest.$ac_ext
  1883. LIBS="$old_LIBS"
  1884. @@ -2918,7 +3044,7 @@ if test "x$smart_lib" = "x"; then
  1885. if test "x$LOCATE" != "x"; then
  1886. DIRS=
  1887. - file=libldap_r${libltdl_cv_shlibext}
  1888. + file=libsasl${libltdl_cv_shlibext}
  1889. for x in `${LOCATE} $file 2>/dev/null`; do
  1890. base=`echo $x | sed "s%/${file}%%"`
  1891. @@ -2945,7 +3071,7 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
  1892. if test "x$LOCATE" != "x"; then
  1893. DIRS=
  1894. - file=libldap_r.a
  1895. + file=libsasl.a
  1896. for x in `${LOCATE} $file 2>/dev/null`; do
  1897. base=`echo $x | sed "s%/${file}%%"`
  1898. @@ -2970,18 +3096,18 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
  1899. for try in $smart_lib_dir /usr/local/lib /opt/lib; do
  1900. - LIBS="-L$try -lldap_r $old_LIBS"
  1901. + LIBS="-L$try -lsasl $old_LIBS"
  1902. cat >conftest.$ac_ext <<_ACEOF
  1903. /* confdefs.h. */
  1904. _ACEOF
  1905. cat confdefs.h >>conftest.$ac_ext
  1906. cat >>conftest.$ac_ext <<_ACEOF
  1907. /* end confdefs.h. */
  1908. -extern char ldap_init();
  1909. +extern char sasl_encode();
  1910. int
  1911. main ()
  1912. {
  1913. - ldap_init()
  1914. + sasl_encode()
  1915. ;
  1916. return 0;
  1917. }
  1918. @@ -2992,26 +3118,30 @@ case "(($ac_try" in
  1919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1920. *) ac_try_echo=$ac_try;;
  1921. esac
  1922. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1923. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1924. +$as_echo "$ac_try_echo") >&5
  1925. (eval "$ac_link") 2>conftest.er1
  1926. ac_status=$?
  1927. grep -v '^ *+' conftest.er1 >conftest.err
  1928. rm -f conftest.er1
  1929. cat conftest.err >&5
  1930. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1931. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1932. (exit $ac_status); } && {
  1933. test -z "$ac_c_werror_flag" ||
  1934. test ! -s conftest.err
  1935. - } && test -s conftest$ac_exeext &&
  1936. - $as_test_x conftest$ac_exeext; then
  1937. - smart_lib="-L$try -lldap_r"
  1938. + } && test -s conftest$ac_exeext && {
  1939. + test "$cross_compiling" = yes ||
  1940. + $as_test_x conftest$ac_exeext
  1941. + }; then
  1942. + smart_lib="-L$try -lsasl"
  1943. else
  1944. - echo "$as_me: failed program was:" >&5
  1945. + $as_echo "$as_me: failed program was:" >&5
  1946. sed 's/^/| /' conftest.$ac_ext >&5
  1947. fi
  1948. +rm -rf conftest.dSYM
  1949. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  1950. conftest$ac_exeext conftest.$ac_ext
  1951. if test "x$smart_lib" != "x"; then
  1952. @@ -3022,26 +3152,22 @@ rm -f core conftest.err conftest.$ac_obj
  1953. fi
  1954. if test "x$smart_lib" != "x"; then
  1955. - { echo "$as_me:$LINENO: result: yes" >&5
  1956. -echo "${ECHO_T}yes" >&6; }
  1957. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  1958. +$as_echo "yes" >&6; }
  1959. eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
  1960. LIBS="$smart_lib $old_LIBS"
  1961. SMART_LIBS="$smart_lib $SMART_LIBS"
  1962. else
  1963. - { echo "$as_me:$LINENO: result: no" >&5
  1964. -echo "${ECHO_T}no" >&6; }
  1965. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1966. +$as_echo "no" >&6; }
  1967. fi
  1968. - if test "x$ac_cv_lib_ldap_r_ldap_init" != "xyes"; then
  1969. - fail="$fail libldap_r"
  1970. - fi
  1971. - else
  1972. -sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
  1973. -sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
  1974. -{ echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
  1975. -echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
  1976. +sm_lib_safe=`echo "lber" | sed 'y%./+-%__p_%'`
  1977. +sm_func_safe=`echo "ber_init" | sed 'y%./+-%__p_%'`
  1978. +{ $as_echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
  1979. +$as_echo_n "checking for ber_init in -llber... " >&6; }
  1980. old_LIBS="$LIBS"
  1981. smart_lib=
  1982. @@ -3049,18 +3175,18 @@ smart_lib_dir=
  1983. if test "x$smart_try_dir" != "x"; then
  1984. for try in $smart_try_dir; do
  1985. - LIBS="-L$try -lldap $old_LIBS"
  1986. + LIBS="-L$try -llber $old_LIBS"
  1987. cat >conftest.$ac_ext <<_ACEOF
  1988. /* confdefs.h. */
  1989. _ACEOF
  1990. cat confdefs.h >>conftest.$ac_ext
  1991. cat >>conftest.$ac_ext <<_ACEOF
  1992. /* end confdefs.h. */
  1993. -extern char ldap_init();
  1994. +extern char ber_init();
  1995. int
  1996. main ()
  1997. {
  1998. - ldap_init()
  1999. + ber_init()
  2000. ;
  2001. return 0;
  2002. }
  2003. @@ -3071,26 +3197,30 @@ case "(($ac_try" in
  2004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2005. *) ac_try_echo=$ac_try;;
  2006. esac
  2007. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2008. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2009. +$as_echo "$ac_try_echo") >&5
  2010. (eval "$ac_link") 2>conftest.er1
  2011. ac_status=$?
  2012. grep -v '^ *+' conftest.er1 >conftest.err
  2013. rm -f conftest.er1
  2014. cat conftest.err >&5
  2015. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2016. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2017. (exit $ac_status); } && {
  2018. test -z "$ac_c_werror_flag" ||
  2019. test ! -s conftest.err
  2020. - } && test -s conftest$ac_exeext &&
  2021. - $as_test_x conftest$ac_exeext; then
  2022. - smart_lib="-L$try -lldap"
  2023. + } && test -s conftest$ac_exeext && {
  2024. + test "$cross_compiling" = yes ||
  2025. + $as_test_x conftest$ac_exeext
  2026. + }; then
  2027. + smart_lib="-L$try -llber"
  2028. else
  2029. - echo "$as_me: failed program was:" >&5
  2030. + $as_echo "$as_me: failed program was:" >&5
  2031. sed 's/^/| /' conftest.$ac_ext >&5
  2032. fi
  2033. +rm -rf conftest.dSYM
  2034. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2035. conftest$ac_exeext conftest.$ac_ext
  2036. if test "x$smart_lib" != "x"; then
  2037. @@ -3101,18 +3231,18 @@ rm -f core conftest.err conftest.$ac_obj
  2038. fi
  2039. if test "x$smart_lib" = "x"; then
  2040. - LIBS="-lldap $old_LIBS"
  2041. + LIBS="-llber $old_LIBS"
  2042. cat >conftest.$ac_ext <<_ACEOF
  2043. /* confdefs.h. */
  2044. _ACEOF
  2045. cat confdefs.h >>conftest.$ac_ext
  2046. cat >>conftest.$ac_ext <<_ACEOF
  2047. /* end confdefs.h. */
  2048. -extern char ldap_init();
  2049. +extern char ber_init();
  2050. int
  2051. main ()
  2052. {
  2053. - ldap_init()
  2054. + ber_init()
  2055. ;
  2056. return 0;
  2057. }
  2058. @@ -3123,26 +3253,30 @@ case "(($ac_try" in
  2059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2060. *) ac_try_echo=$ac_try;;
  2061. esac
  2062. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2063. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2064. +$as_echo "$ac_try_echo") >&5
  2065. (eval "$ac_link") 2>conftest.er1
  2066. ac_status=$?
  2067. grep -v '^ *+' conftest.er1 >conftest.err
  2068. rm -f conftest.er1
  2069. cat conftest.err >&5
  2070. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2071. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2072. (exit $ac_status); } && {
  2073. test -z "$ac_c_werror_flag" ||
  2074. test ! -s conftest.err
  2075. - } && test -s conftest$ac_exeext &&
  2076. - $as_test_x conftest$ac_exeext; then
  2077. - smart_lib="-lldap"
  2078. + } && test -s conftest$ac_exeext && {
  2079. + test "$cross_compiling" = yes ||
  2080. + $as_test_x conftest$ac_exeext
  2081. + }; then
  2082. + smart_lib="-llber"
  2083. else
  2084. - echo "$as_me: failed program was:" >&5
  2085. + $as_echo "$as_me: failed program was:" >&5
  2086. sed 's/^/| /' conftest.$ac_ext >&5
  2087. fi
  2088. +rm -rf conftest.dSYM
  2089. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2090. conftest$ac_exeext conftest.$ac_ext
  2091. LIBS="$old_LIBS"
  2092. @@ -3153,7 +3287,7 @@ if test "x$smart_lib" = "x"; then
  2093. if test "x$LOCATE" != "x"; then
  2094. DIRS=
  2095. - file=libldap${libltdl_cv_shlibext}
  2096. + file=liblber${libltdl_cv_shlibext}
  2097. for x in `${LOCATE} $file 2>/dev/null`; do
  2098. base=`echo $x | sed "s%/${file}%%"`
  2099. @@ -3180,7 +3314,7 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
  2100. if test "x$LOCATE" != "x"; then
  2101. DIRS=
  2102. - file=libldap.a
  2103. + file=liblber.a
  2104. for x in `${LOCATE} $file 2>/dev/null`; do
  2105. base=`echo $x | sed "s%/${file}%%"`
  2106. @@ -3205,18 +3339,18 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
  2107. for try in $smart_lib_dir /usr/local/lib /opt/lib; do
  2108. - LIBS="-L$try -lldap $old_LIBS"
  2109. + LIBS="-L$try -llber $old_LIBS"
  2110. cat >conftest.$ac_ext <<_ACEOF
  2111. /* confdefs.h. */
  2112. _ACEOF
  2113. cat confdefs.h >>conftest.$ac_ext
  2114. cat >>conftest.$ac_ext <<_ACEOF
  2115. /* end confdefs.h. */
  2116. -extern char ldap_init();
  2117. +extern char ber_init();
  2118. int
  2119. main ()
  2120. {
  2121. - ldap_init()
  2122. + ber_init()
  2123. ;
  2124. return 0;
  2125. }
  2126. @@ -3227,26 +3361,30 @@ case "(($ac_try" in
  2127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2128. *) ac_try_echo=$ac_try;;
  2129. esac
  2130. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2131. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2132. +$as_echo "$ac_try_echo") >&5
  2133. (eval "$ac_link") 2>conftest.er1
  2134. ac_status=$?
  2135. grep -v '^ *+' conftest.er1 >conftest.err
  2136. rm -f conftest.er1
  2137. cat conftest.err >&5
  2138. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2139. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2140. (exit $ac_status); } && {
  2141. test -z "$ac_c_werror_flag" ||
  2142. test ! -s conftest.err
  2143. - } && test -s conftest$ac_exeext &&
  2144. - $as_test_x conftest$ac_exeext; then
  2145. - smart_lib="-L$try -lldap"
  2146. + } && test -s conftest$ac_exeext && {
  2147. + test "$cross_compiling" = yes ||
  2148. + $as_test_x conftest$ac_exeext
  2149. + }; then
  2150. + smart_lib="-L$try -llber"
  2151. else
  2152. - echo "$as_me: failed program was:" >&5
  2153. + $as_echo "$as_me: failed program was:" >&5
  2154. sed 's/^/| /' conftest.$ac_ext >&5
  2155. fi
  2156. +rm -rf conftest.dSYM
  2157. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2158. conftest$ac_exeext conftest.$ac_ext
  2159. if test "x$smart_lib" != "x"; then
  2160. @@ -3257,136 +3395,145 @@ rm -f core conftest.err conftest.$ac_obj
  2161. fi
  2162. if test "x$smart_lib" != "x"; then
  2163. - { echo "$as_me:$LINENO: result: yes" >&5
  2164. -echo "${ECHO_T}yes" >&6; }
  2165. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  2166. +$as_echo "yes" >&6; }
  2167. eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
  2168. LIBS="$smart_lib $old_LIBS"
  2169. SMART_LIBS="$smart_lib $SMART_LIBS"
  2170. else
  2171. - { echo "$as_me:$LINENO: result: no" >&5
  2172. -echo "${ECHO_T}no" >&6; }
  2173. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2174. +$as_echo "no" >&6; }
  2175. fi
  2176. - if test "x$ac_cv_lib_ldap_ldap_init" != "xyes"; then
  2177. - fail="$fail libldap"
  2178. - fi
  2179. - fi
  2180. -
  2181. - smart_try_dir=$rlm_ldap_include_dir
  2182. + smart_try_dir=$rlm_ldap_lib_dir
  2183. + if test "x$rlm_ldap_with_threads" = "xyes"; then
  2184. -ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
  2185. -{ echo "$as_me:$LINENO: checking for ldap.h" >&5
  2186. -echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
  2187. +sm_lib_safe=`echo "ldap_r" | sed 'y%./+-%__p_%'`
  2188. +sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
  2189. +{ $as_echo "$as_me:$LINENO: checking for ldap_init in -lldap_r" >&5
  2190. +$as_echo_n "checking for ldap_init in -lldap_r... " >&6; }
  2191. -old_CFLAGS="$CFLAGS"
  2192. -smart_include=
  2193. -smart_include_dir=
  2194. +old_LIBS="$LIBS"
  2195. +smart_lib=
  2196. +smart_lib_dir=
  2197. if test "x$smart_try_dir" != "x"; then
  2198. for try in $smart_try_dir; do
  2199. - CFLAGS="$old_CFLAGS -I$try"
  2200. + LIBS="-L$try -lldap_r $old_LIBS"
  2201. cat >conftest.$ac_ext <<_ACEOF
  2202. /* confdefs.h. */
  2203. _ACEOF
  2204. cat confdefs.h >>conftest.$ac_ext
  2205. cat >>conftest.$ac_ext <<_ACEOF
  2206. /* end confdefs.h. */
  2207. -
  2208. - #include <ldap.h>
  2209. +extern char ldap_init();
  2210. int
  2211. main ()
  2212. {
  2213. - int a = 1;
  2214. + ldap_init()
  2215. ;
  2216. return 0;
  2217. }
  2218. _ACEOF
  2219. -rm -f conftest.$ac_objext
  2220. -if { (ac_try="$ac_compile"
  2221. +rm -f conftest.$ac_objext conftest$ac_exeext
  2222. +if { (ac_try="$ac_link"
  2223. case "(($ac_try" in
  2224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2225. *) ac_try_echo=$ac_try;;
  2226. esac
  2227. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2228. - (eval "$ac_compile") 2>conftest.er1
  2229. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2230. +$as_echo "$ac_try_echo") >&5
  2231. + (eval "$ac_link") 2>conftest.er1
  2232. ac_status=$?
  2233. grep -v '^ *+' conftest.er1 >conftest.err
  2234. rm -f conftest.er1
  2235. cat conftest.err >&5
  2236. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2237. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2238. (exit $ac_status); } && {
  2239. test -z "$ac_c_werror_flag" ||
  2240. test ! -s conftest.err
  2241. - } && test -s conftest.$ac_objext; then
  2242. - smart_include="-I$try"
  2243. + } && test -s conftest$ac_exeext && {
  2244. + test "$cross_compiling" = yes ||
  2245. + $as_test_x conftest$ac_exeext
  2246. + }; then
  2247. + smart_lib="-L$try -lldap_r"
  2248. else
  2249. - echo "$as_me: failed program was:" >&5
  2250. + $as_echo "$as_me: failed program was:" >&5
  2251. sed 's/^/| /' conftest.$ac_ext >&5
  2252. - smart_include=
  2253. +
  2254. fi
  2255. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2256. - if test "x$smart_include" != "x"; then
  2257. +rm -rf conftest.dSYM
  2258. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2259. + conftest$ac_exeext conftest.$ac_ext
  2260. + if test "x$smart_lib" != "x"; then
  2261. break;
  2262. fi
  2263. done
  2264. - CFLAGS="$old_CFLAGS"
  2265. + LIBS="$old_LIBS"
  2266. fi
  2267. -if test "x$smart_include" = "x"; then
  2268. +if test "x$smart_lib" = "x"; then
  2269. + LIBS="-lldap_r $old_LIBS"
  2270. cat >conftest.$ac_ext <<_ACEOF
  2271. /* confdefs.h. */
  2272. _ACEOF
  2273. cat confdefs.h >>conftest.$ac_ext
  2274. cat >>conftest.$ac_ext <<_ACEOF
  2275. /* end confdefs.h. */
  2276. -
  2277. - #include <ldap.h>
  2278. +extern char ldap_init();
  2279. int
  2280. main ()
  2281. {
  2282. - int a = 1;
  2283. + ldap_init()
  2284. ;
  2285. return 0;
  2286. }
  2287. _ACEOF
  2288. -rm -f conftest.$ac_objext
  2289. -if { (ac_try="$ac_compile"
  2290. +rm -f conftest.$ac_objext conftest$ac_exeext
  2291. +if { (ac_try="$ac_link"
  2292. case "(($ac_try" in
  2293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2294. *) ac_try_echo=$ac_try;;
  2295. esac
  2296. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2297. - (eval "$ac_compile") 2>conftest.er1
  2298. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2299. +$as_echo "$ac_try_echo") >&5
  2300. + (eval "$ac_link") 2>conftest.er1
  2301. ac_status=$?
  2302. grep -v '^ *+' conftest.er1 >conftest.err
  2303. rm -f conftest.er1
  2304. cat conftest.err >&5
  2305. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2306. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2307. (exit $ac_status); } && {
  2308. test -z "$ac_c_werror_flag" ||
  2309. test ! -s conftest.err
  2310. - } && test -s conftest.$ac_objext; then
  2311. - smart_include=" "
  2312. + } && test -s conftest$ac_exeext && {
  2313. + test "$cross_compiling" = yes ||
  2314. + $as_test_x conftest$ac_exeext
  2315. + }; then
  2316. + smart_lib="-lldap_r"
  2317. else
  2318. - echo "$as_me: failed program was:" >&5
  2319. + $as_echo "$as_me: failed program was:" >&5
  2320. sed 's/^/| /' conftest.$ac_ext >&5
  2321. - smart_include=
  2322. +
  2323. fi
  2324. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2325. +rm -rf conftest.dSYM
  2326. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2327. + conftest$ac_exeext conftest.$ac_ext
  2328. + LIBS="$old_LIBS"
  2329. fi
  2330. -if test "x$smart_include" = "x"; then
  2331. +if test "x$smart_lib" = "x"; then
  2332. if test "x$LOCATE" != "x"; then
  2333. DIRS=
  2334. - file=ldap.h
  2335. + file=libldap_r${libltdl_cv_shlibext}
  2336. for x in `${LOCATE} $file 2>/dev/null`; do
  2337. base=`echo $x | sed "s%/${file}%%"`
  2338. @@ -3400,19 +3547,505 @@ if test "x$LOCATE" != "x"; then
  2339. continue
  2340. fi
  2341. - already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
  2342. + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
  2343. if test "x$already" = "x"; then
  2344. DIRS="$DIRS $dir"
  2345. fi
  2346. done
  2347. fi
  2348. -eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
  2349. +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
  2350. - for try in $smart_include_dir /usr/local/include /opt/include; do
  2351. - CFLAGS="$old_CFLAGS -I$try"
  2352. - cat >conftest.$ac_ext <<_ACEOF
  2353. +
  2354. +if test "x$LOCATE" != "x"; then
  2355. + DIRS=
  2356. + file=libldap_r.a
  2357. +
  2358. + for x in `${LOCATE} $file 2>/dev/null`; do
  2359. + base=`echo $x | sed "s%/${file}%%"`
  2360. + if test "x$x" = "x$base"; then
  2361. + continue;
  2362. + fi
  2363. +
  2364. + dir=`${DIRNAME} $x 2>/dev/null`
  2365. + exclude=`echo ${dir} | ${GREP} /home`
  2366. + if test "x$exclude" != "x"; then
  2367. + continue
  2368. + fi
  2369. +
  2370. + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
  2371. + if test "x$already" = "x"; then
  2372. + DIRS="$DIRS $dir"
  2373. + fi
  2374. + done
  2375. +fi
  2376. +
  2377. +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
  2378. +
  2379. +
  2380. + for try in $smart_lib_dir /usr/local/lib /opt/lib; do
  2381. + LIBS="-L$try -lldap_r $old_LIBS"
  2382. + cat >conftest.$ac_ext <<_ACEOF
  2383. +/* confdefs.h. */
  2384. +_ACEOF
  2385. +cat confdefs.h >>conftest.$ac_ext
  2386. +cat >>conftest.$ac_ext <<_ACEOF
  2387. +/* end confdefs.h. */
  2388. +extern char ldap_init();
  2389. +int
  2390. +main ()
  2391. +{
  2392. + ldap_init()
  2393. + ;
  2394. + return 0;
  2395. +}
  2396. +_ACEOF
  2397. +rm -f conftest.$ac_objext conftest$ac_exeext
  2398. +if { (ac_try="$ac_link"
  2399. +case "(($ac_try" in
  2400. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2401. + *) ac_try_echo=$ac_try;;
  2402. +esac
  2403. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2404. +$as_echo "$ac_try_echo") >&5
  2405. + (eval "$ac_link") 2>conftest.er1
  2406. + ac_status=$?
  2407. + grep -v '^ *+' conftest.er1 >conftest.err
  2408. + rm -f conftest.er1
  2409. + cat conftest.err >&5
  2410. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2411. + (exit $ac_status); } && {
  2412. + test -z "$ac_c_werror_flag" ||
  2413. + test ! -s conftest.err
  2414. + } && test -s conftest$ac_exeext && {
  2415. + test "$cross_compiling" = yes ||
  2416. + $as_test_x conftest$ac_exeext
  2417. + }; then
  2418. + smart_lib="-L$try -lldap_r"
  2419. +else
  2420. + $as_echo "$as_me: failed program was:" >&5
  2421. +sed 's/^/| /' conftest.$ac_ext >&5
  2422. +
  2423. +
  2424. +fi
  2425. +
  2426. +rm -rf conftest.dSYM
  2427. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2428. + conftest$ac_exeext conftest.$ac_ext
  2429. + if test "x$smart_lib" != "x"; then
  2430. + break;
  2431. + fi
  2432. + done
  2433. + LIBS="$old_LIBS"
  2434. +fi
  2435. +
  2436. +if test "x$smart_lib" != "x"; then
  2437. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  2438. +$as_echo "yes" >&6; }
  2439. + eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
  2440. + LIBS="$smart_lib $old_LIBS"
  2441. + SMART_LIBS="$smart_lib $SMART_LIBS"
  2442. +else
  2443. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2444. +$as_echo "no" >&6; }
  2445. +fi
  2446. +
  2447. + if test "x$ac_cv_lib_ldap_r_ldap_init" != "xyes"; then
  2448. + fail="$fail libldap_r"
  2449. + fi
  2450. + else
  2451. +
  2452. +
  2453. +sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
  2454. +sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
  2455. +{ $as_echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
  2456. +$as_echo_n "checking for ldap_init in -lldap... " >&6; }
  2457. +
  2458. +old_LIBS="$LIBS"
  2459. +smart_lib=
  2460. +smart_lib_dir=
  2461. +
  2462. +if test "x$smart_try_dir" != "x"; then
  2463. + for try in $smart_try_dir; do
  2464. + LIBS="-L$try -lldap $old_LIBS"
  2465. + cat >conftest.$ac_ext <<_ACEOF
  2466. +/* confdefs.h. */
  2467. +_ACEOF
  2468. +cat confdefs.h >>conftest.$ac_ext
  2469. +cat >>conftest.$ac_ext <<_ACEOF
  2470. +/* end confdefs.h. */
  2471. +extern char ldap_init();
  2472. +int
  2473. +main ()
  2474. +{
  2475. + ldap_init()
  2476. + ;
  2477. + return 0;
  2478. +}
  2479. +_ACEOF
  2480. +rm -f conftest.$ac_objext conftest$ac_exeext
  2481. +if { (ac_try="$ac_link"
  2482. +case "(($ac_try" in
  2483. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2484. + *) ac_try_echo=$ac_try;;
  2485. +esac
  2486. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2487. +$as_echo "$ac_try_echo") >&5
  2488. + (eval "$ac_link") 2>conftest.er1
  2489. + ac_status=$?
  2490. + grep -v '^ *+' conftest.er1 >conftest.err
  2491. + rm -f conftest.er1
  2492. + cat conftest.err >&5
  2493. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2494. + (exit $ac_status); } && {
  2495. + test -z "$ac_c_werror_flag" ||
  2496. + test ! -s conftest.err
  2497. + } && test -s conftest$ac_exeext && {
  2498. + test "$cross_compiling" = yes ||
  2499. + $as_test_x conftest$ac_exeext
  2500. + }; then
  2501. + smart_lib="-L$try -lldap"
  2502. +else
  2503. + $as_echo "$as_me: failed program was:" >&5
  2504. +sed 's/^/| /' conftest.$ac_ext >&5
  2505. +
  2506. +
  2507. +fi
  2508. +
  2509. +rm -rf conftest.dSYM
  2510. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2511. + conftest$ac_exeext conftest.$ac_ext
  2512. + if test "x$smart_lib" != "x"; then
  2513. + break;
  2514. + fi
  2515. + done
  2516. + LIBS="$old_LIBS"
  2517. +fi
  2518. +
  2519. +if test "x$smart_lib" = "x"; then
  2520. + LIBS="-lldap $old_LIBS"
  2521. + cat >conftest.$ac_ext <<_ACEOF
  2522. +/* confdefs.h. */
  2523. +_ACEOF
  2524. +cat confdefs.h >>conftest.$ac_ext
  2525. +cat >>conftest.$ac_ext <<_ACEOF
  2526. +/* end confdefs.h. */
  2527. +extern char ldap_init();
  2528. +int
  2529. +main ()
  2530. +{
  2531. + ldap_init()
  2532. + ;
  2533. + return 0;
  2534. +}
  2535. +_ACEOF
  2536. +rm -f conftest.$ac_objext conftest$ac_exeext
  2537. +if { (ac_try="$ac_link"
  2538. +case "(($ac_try" in
  2539. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2540. + *) ac_try_echo=$ac_try;;
  2541. +esac
  2542. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2543. +$as_echo "$ac_try_echo") >&5
  2544. + (eval "$ac_link") 2>conftest.er1
  2545. + ac_status=$?
  2546. + grep -v '^ *+' conftest.er1 >conftest.err
  2547. + rm -f conftest.er1
  2548. + cat conftest.err >&5
  2549. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2550. + (exit $ac_status); } && {
  2551. + test -z "$ac_c_werror_flag" ||
  2552. + test ! -s conftest.err
  2553. + } && test -s conftest$ac_exeext && {
  2554. + test "$cross_compiling" = yes ||
  2555. + $as_test_x conftest$ac_exeext
  2556. + }; then
  2557. + smart_lib="-lldap"
  2558. +else
  2559. + $as_echo "$as_me: failed program was:" >&5
  2560. +sed 's/^/| /' conftest.$ac_ext >&5
  2561. +
  2562. +
  2563. +fi
  2564. +
  2565. +rm -rf conftest.dSYM
  2566. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2567. + conftest$ac_exeext conftest.$ac_ext
  2568. + LIBS="$old_LIBS"
  2569. +fi
  2570. +
  2571. +if test "x$smart_lib" = "x"; then
  2572. +
  2573. +
  2574. +if test "x$LOCATE" != "x"; then
  2575. + DIRS=
  2576. + file=libldap${libltdl_cv_shlibext}
  2577. +
  2578. + for x in `${LOCATE} $file 2>/dev/null`; do
  2579. + base=`echo $x | sed "s%/${file}%%"`
  2580. + if test "x$x" = "x$base"; then
  2581. + continue;
  2582. + fi
  2583. +
  2584. + dir=`${DIRNAME} $x 2>/dev/null`
  2585. + exclude=`echo ${dir} | ${GREP} /home`
  2586. + if test "x$exclude" != "x"; then
  2587. + continue
  2588. + fi
  2589. +
  2590. + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
  2591. + if test "x$already" = "x"; then
  2592. + DIRS="$DIRS $dir"
  2593. + fi
  2594. + done
  2595. +fi
  2596. +
  2597. +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
  2598. +
  2599. +
  2600. +
  2601. +if test "x$LOCATE" != "x"; then
  2602. + DIRS=
  2603. + file=libldap.a
  2604. +
  2605. + for x in `${LOCATE} $file 2>/dev/null`; do
  2606. + base=`echo $x | sed "s%/${file}%%"`
  2607. + if test "x$x" = "x$base"; then
  2608. + continue;
  2609. + fi
  2610. +
  2611. + dir=`${DIRNAME} $x 2>/dev/null`
  2612. + exclude=`echo ${dir} | ${GREP} /home`
  2613. + if test "x$exclude" != "x"; then
  2614. + continue
  2615. + fi
  2616. +
  2617. + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
  2618. + if test "x$already" = "x"; then
  2619. + DIRS="$DIRS $dir"
  2620. + fi
  2621. + done
  2622. +fi
  2623. +
  2624. +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
  2625. +
  2626. +
  2627. + for try in $smart_lib_dir /usr/local/lib /opt/lib; do
  2628. + LIBS="-L$try -lldap $old_LIBS"
  2629. + cat >conftest.$ac_ext <<_ACEOF
  2630. +/* confdefs.h. */
  2631. +_ACEOF
  2632. +cat confdefs.h >>conftest.$ac_ext
  2633. +cat >>conftest.$ac_ext <<_ACEOF
  2634. +/* end confdefs.h. */
  2635. +extern char ldap_init();
  2636. +int
  2637. +main ()
  2638. +{
  2639. + ldap_init()
  2640. + ;
  2641. + return 0;
  2642. +}
  2643. +_ACEOF
  2644. +rm -f conftest.$ac_objext conftest$ac_exeext
  2645. +if { (ac_try="$ac_link"
  2646. +case "(($ac_try" in
  2647. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2648. + *) ac_try_echo=$ac_try;;
  2649. +esac
  2650. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2651. +$as_echo "$ac_try_echo") >&5
  2652. + (eval "$ac_link") 2>conftest.er1
  2653. + ac_status=$?
  2654. + grep -v '^ *+' conftest.er1 >conftest.err
  2655. + rm -f conftest.er1
  2656. + cat conftest.err >&5
  2657. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2658. + (exit $ac_status); } && {
  2659. + test -z "$ac_c_werror_flag" ||
  2660. + test ! -s conftest.err
  2661. + } && test -s conftest$ac_exeext && {
  2662. + test "$cross_compiling" = yes ||
  2663. + $as_test_x conftest$ac_exeext
  2664. + }; then
  2665. + smart_lib="-L$try -lldap"
  2666. +else
  2667. + $as_echo "$as_me: failed program was:" >&5
  2668. +sed 's/^/| /' conftest.$ac_ext >&5
  2669. +
  2670. +
  2671. +fi
  2672. +
  2673. +rm -rf conftest.dSYM
  2674. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2675. + conftest$ac_exeext conftest.$ac_ext
  2676. + if test "x$smart_lib" != "x"; then
  2677. + break;
  2678. + fi
  2679. + done
  2680. + LIBS="$old_LIBS"
  2681. +fi
  2682. +
  2683. +if test "x$smart_lib" != "x"; then
  2684. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  2685. +$as_echo "yes" >&6; }
  2686. + eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
  2687. + LIBS="$smart_lib $old_LIBS"
  2688. + SMART_LIBS="$smart_lib $SMART_LIBS"
  2689. +else
  2690. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2691. +$as_echo "no" >&6; }
  2692. +fi
  2693. +
  2694. + if test "x$ac_cv_lib_ldap_ldap_init" != "xyes"; then
  2695. + fail="$fail libldap"
  2696. + fi
  2697. + fi
  2698. +
  2699. +
  2700. + smart_try_dir=$rlm_ldap_include_dir
  2701. +
  2702. +
  2703. +ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
  2704. +{ $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
  2705. +$as_echo_n "checking for ldap.h... " >&6; }
  2706. +
  2707. +old_CFLAGS="$CFLAGS"
  2708. +smart_include=
  2709. +smart_include_dir=
  2710. +
  2711. +if test "x$smart_try_dir" != "x"; then
  2712. + for try in $smart_try_dir; do
  2713. + CFLAGS="$old_CFLAGS -I$try"
  2714. + cat >conftest.$ac_ext <<_ACEOF
  2715. +/* confdefs.h. */
  2716. +_ACEOF
  2717. +cat confdefs.h >>conftest.$ac_ext
  2718. +cat >>conftest.$ac_ext <<_ACEOF
  2719. +/* end confdefs.h. */
  2720. +
  2721. + #include <ldap.h>
  2722. +int
  2723. +main ()
  2724. +{
  2725. + int a = 1;
  2726. + ;
  2727. + return 0;
  2728. +}
  2729. +_ACEOF
  2730. +rm -f conftest.$ac_objext
  2731. +if { (ac_try="$ac_compile"
  2732. +case "(($ac_try" in
  2733. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2734. + *) ac_try_echo=$ac_try;;
  2735. +esac
  2736. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2737. +$as_echo "$ac_try_echo") >&5
  2738. + (eval "$ac_compile") 2>conftest.er1
  2739. + ac_status=$?
  2740. + grep -v '^ *+' conftest.er1 >conftest.err
  2741. + rm -f conftest.er1
  2742. + cat conftest.err >&5
  2743. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2744. + (exit $ac_status); } && {
  2745. + test -z "$ac_c_werror_flag" ||
  2746. + test ! -s conftest.err
  2747. + } && test -s conftest.$ac_objext; then
  2748. + smart_include="-I$try"
  2749. +else
  2750. + $as_echo "$as_me: failed program was:" >&5
  2751. +sed 's/^/| /' conftest.$ac_ext >&5
  2752. +
  2753. + smart_include=
  2754. +fi
  2755. +
  2756. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2757. + if test "x$smart_include" != "x"; then
  2758. + break;
  2759. + fi
  2760. + done
  2761. + CFLAGS="$old_CFLAGS"
  2762. +fi
  2763. +
  2764. +if test "x$smart_include" = "x"; then
  2765. + cat >conftest.$ac_ext <<_ACEOF
  2766. +/* confdefs.h. */
  2767. +_ACEOF
  2768. +cat confdefs.h >>conftest.$ac_ext
  2769. +cat >>conftest.$ac_ext <<_ACEOF
  2770. +/* end confdefs.h. */
  2771. +
  2772. + #include <ldap.h>
  2773. +int
  2774. +main ()
  2775. +{
  2776. + int a = 1;
  2777. + ;
  2778. + return 0;
  2779. +}
  2780. +_ACEOF
  2781. +rm -f conftest.$ac_objext
  2782. +if { (ac_try="$ac_compile"
  2783. +case "(($ac_try" in
  2784. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2785. + *) ac_try_echo=$ac_try;;
  2786. +esac
  2787. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2788. +$as_echo "$ac_try_echo") >&5
  2789. + (eval "$ac_compile") 2>conftest.er1
  2790. + ac_status=$?
  2791. + grep -v '^ *+' conftest.er1 >conftest.err
  2792. + rm -f conftest.er1
  2793. + cat conftest.err >&5
  2794. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2795. + (exit $ac_status); } && {
  2796. + test -z "$ac_c_werror_flag" ||
  2797. + test ! -s conftest.err
  2798. + } && test -s conftest.$ac_objext; then
  2799. + smart_include=" "
  2800. +else
  2801. + $as_echo "$as_me: failed program was:" >&5
  2802. +sed 's/^/| /' conftest.$ac_ext >&5
  2803. +
  2804. + smart_include=
  2805. +fi
  2806. +
  2807. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2808. +fi
  2809. +
  2810. +if test "x$smart_include" = "x"; then
  2811. +
  2812. +
  2813. +if test "x$LOCATE" != "x"; then
  2814. + DIRS=
  2815. + file=ldap.h
  2816. +
  2817. + for x in `${LOCATE} $file 2>/dev/null`; do
  2818. + base=`echo $x | sed "s%/${file}%%"`
  2819. + if test "x$x" = "x$base"; then
  2820. + continue;
  2821. + fi
  2822. +
  2823. + dir=`${DIRNAME} $x 2>/dev/null`
  2824. + exclude=`echo ${dir} | ${GREP} /home`
  2825. + if test "x$exclude" != "x"; then
  2826. + continue
  2827. + fi
  2828. +
  2829. + already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
  2830. + if test "x$already" = "x"; then
  2831. + DIRS="$DIRS $dir"
  2832. + fi
  2833. + done
  2834. +fi
  2835. +
  2836. +eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
  2837. +
  2838. +
  2839. + for try in $smart_include_dir /usr/local/include /opt/include; do
  2840. + CFLAGS="$old_CFLAGS -I$try"
  2841. + cat >conftest.$ac_ext <<_ACEOF
  2842. /* confdefs.h. */
  2843. _ACEOF
  2844. cat confdefs.h >>conftest.$ac_ext
  2845. @@ -3434,20 +4067,21 @@ case "(($ac_try" in
  2846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2847. *) ac_try_echo=$ac_try;;
  2848. esac
  2849. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2850. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2851. +$as_echo "$ac_try_echo") >&5
  2852. (eval "$ac_compile") 2>conftest.er1
  2853. ac_status=$?
  2854. grep -v '^ *+' conftest.er1 >conftest.err
  2855. rm -f conftest.er1
  2856. cat conftest.err >&5
  2857. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2858. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2859. (exit $ac_status); } && {
  2860. test -z "$ac_c_werror_flag" ||
  2861. test ! -s conftest.err
  2862. } && test -s conftest.$ac_objext; then
  2863. smart_include="-I$try"
  2864. else
  2865. - echo "$as_me: failed program was:" >&5
  2866. + $as_echo "$as_me: failed program was:" >&5
  2867. sed 's/^/| /' conftest.$ac_ext >&5
  2868. smart_include=
  2869. @@ -3462,14 +4096,14 @@ rm -f core conftest.err conftest.$ac_obj
  2870. fi
  2871. if test "x$smart_include" != "x"; then
  2872. - { echo "$as_me:$LINENO: result: yes" >&5
  2873. -echo "${ECHO_T}yes" >&6; }
  2874. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  2875. +$as_echo "yes" >&6; }
  2876. eval "ac_cv_header_$ac_safe=yes"
  2877. CFLAGS="$old_CFLAGS $smart_include"
  2878. SMART_CFLAGS="$SMART_CFLAGS $smart_include"
  2879. else
  2880. - { echo "$as_me:$LINENO: result: no" >&5
  2881. -echo "${ECHO_T}no" >&6; }
  2882. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2883. +$as_echo "no" >&6; }
  2884. fi
  2885. if test "$ac_cv_header_ldap_h" != "yes"; then
  2886. @@ -3478,10 +4112,10 @@ fi
  2887. if test "x$fail" = "x"; then
  2888. - { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
  2889. -echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; }
  2890. + { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
  2891. +$as_echo_n "checking for ldap_start_tls_s... " >&6; }
  2892. if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
  2893. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2894. + $as_echo_n "(cached) " >&6
  2895. else
  2896. cat >conftest.$ac_ext <<_ACEOF
  2897. /* confdefs.h. */
  2898. @@ -3534,39 +4168,43 @@ case "(($ac_try" in
  2899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2900. *) ac_try_echo=$ac_try;;
  2901. esac
  2902. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2903. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2904. +$as_echo "$ac_try_echo") >&5
  2905. (eval "$ac_link") 2>conftest.er1
  2906. ac_status=$?
  2907. grep -v '^ *+' conftest.er1 >conftest.err
  2908. rm -f conftest.er1
  2909. cat conftest.err >&5
  2910. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2911. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2912. (exit $ac_status); } && {
  2913. test -z "$ac_c_werror_flag" ||
  2914. test ! -s conftest.err
  2915. - } && test -s conftest$ac_exeext &&
  2916. - $as_test_x conftest$ac_exeext; then
  2917. + } && test -s conftest$ac_exeext && {
  2918. + test "$cross_compiling" = yes ||
  2919. + $as_test_x conftest$ac_exeext
  2920. + }; then
  2921. ac_cv_func_ldap_start_tls_s=yes
  2922. else
  2923. - echo "$as_me: failed program was:" >&5
  2924. + $as_echo "$as_me: failed program was:" >&5
  2925. sed 's/^/| /' conftest.$ac_ext >&5
  2926. ac_cv_func_ldap_start_tls_s=no
  2927. fi
  2928. +rm -rf conftest.dSYM
  2929. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2930. conftest$ac_exeext conftest.$ac_ext
  2931. fi
  2932. -{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
  2933. -echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
  2934. -if test $ac_cv_func_ldap_start_tls_s = yes; then
  2935. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
  2936. +$as_echo "$ac_cv_func_ldap_start_tls_s" >&6; }
  2937. +if test "x$ac_cv_func_ldap_start_tls_s" = x""yes; then
  2938. SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_START_TLS"
  2939. fi
  2940. - { echo "$as_me:$LINENO: checking for ldap_initialize" >&5
  2941. -echo $ECHO_N "checking for ldap_initialize... $ECHO_C" >&6; }
  2942. + { $as_echo "$as_me:$LINENO: checking for ldap_initialize" >&5
  2943. +$as_echo_n "checking for ldap_initialize... " >&6; }
  2944. if test "${ac_cv_func_ldap_initialize+set}" = set; then
  2945. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2946. + $as_echo_n "(cached) " >&6
  2947. else
  2948. cat >conftest.$ac_ext <<_ACEOF
  2949. /* confdefs.h. */
  2950. @@ -3619,39 +4257,43 @@ case "(($ac_try" in
  2951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2952. *) ac_try_echo=$ac_try;;
  2953. esac
  2954. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2955. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2956. +$as_echo "$ac_try_echo") >&5
  2957. (eval "$ac_link") 2>conftest.er1
  2958. ac_status=$?
  2959. grep -v '^ *+' conftest.er1 >conftest.err
  2960. rm -f conftest.er1
  2961. cat conftest.err >&5
  2962. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2963. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2964. (exit $ac_status); } && {
  2965. test -z "$ac_c_werror_flag" ||
  2966. test ! -s conftest.err
  2967. - } && test -s conftest$ac_exeext &&
  2968. - $as_test_x conftest$ac_exeext; then
  2969. + } && test -s conftest$ac_exeext && {
  2970. + test "$cross_compiling" = yes ||
  2971. + $as_test_x conftest$ac_exeext
  2972. + }; then
  2973. ac_cv_func_ldap_initialize=yes
  2974. else
  2975. - echo "$as_me: failed program was:" >&5
  2976. + $as_echo "$as_me: failed program was:" >&5
  2977. sed 's/^/| /' conftest.$ac_ext >&5
  2978. ac_cv_func_ldap_initialize=no
  2979. fi
  2980. +rm -rf conftest.dSYM
  2981. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2982. conftest$ac_exeext conftest.$ac_ext
  2983. fi
  2984. -{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_initialize" >&5
  2985. -echo "${ECHO_T}$ac_cv_func_ldap_initialize" >&6; }
  2986. -if test $ac_cv_func_ldap_initialize = yes; then
  2987. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_initialize" >&5
  2988. +$as_echo "$ac_cv_func_ldap_initialize" >&6; }
  2989. +if test "x$ac_cv_func_ldap_initialize" = x""yes; then
  2990. SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INITIALIZE"
  2991. fi
  2992. - { echo "$as_me:$LINENO: checking for ldap_int_tls_config" >&5
  2993. -echo $ECHO_N "checking for ldap_int_tls_config... $ECHO_C" >&6; }
  2994. + { $as_echo "$as_me:$LINENO: checking for ldap_int_tls_config" >&5
  2995. +$as_echo_n "checking for ldap_int_tls_config... " >&6; }
  2996. if test "${ac_cv_func_ldap_int_tls_config+set}" = set; then
  2997. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2998. + $as_echo_n "(cached) " >&6
  2999. else
  3000. cat >conftest.$ac_ext <<_ACEOF
  3001. /* confdefs.h. */
  3002. @@ -3704,32 +4346,36 @@ case "(($ac_try" in
  3003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3004. *) ac_try_echo=$ac_try;;
  3005. esac
  3006. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3007. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3008. +$as_echo "$ac_try_echo") >&5
  3009. (eval "$ac_link") 2>conftest.er1
  3010. ac_status=$?
  3011. grep -v '^ *+' conftest.er1 >conftest.err
  3012. rm -f conftest.er1
  3013. cat conftest.err >&5
  3014. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3015. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3016. (exit $ac_status); } && {
  3017. test -z "$ac_c_werror_flag" ||
  3018. test ! -s conftest.err
  3019. - } && test -s conftest$ac_exeext &&
  3020. - $as_test_x conftest$ac_exeext; then
  3021. + } && test -s conftest$ac_exeext && {
  3022. + test "$cross_compiling" = yes ||
  3023. + $as_test_x conftest$ac_exeext
  3024. + }; then
  3025. ac_cv_func_ldap_int_tls_config=yes
  3026. else
  3027. - echo "$as_me: failed program was:" >&5
  3028. + $as_echo "$as_me: failed program was:" >&5
  3029. sed 's/^/| /' conftest.$ac_ext >&5
  3030. ac_cv_func_ldap_int_tls_config=no
  3031. fi
  3032. +rm -rf conftest.dSYM
  3033. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3034. conftest$ac_exeext conftest.$ac_ext
  3035. fi
  3036. -{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_int_tls_config" >&5
  3037. -echo "${ECHO_T}$ac_cv_func_ldap_int_tls_config" >&6; }
  3038. -if test $ac_cv_func_ldap_int_tls_config = yes; then
  3039. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_int_tls_config" >&5
  3040. +$as_echo "$ac_cv_func_ldap_int_tls_config" >&6; }
  3041. +if test "x$ac_cv_func_ldap_int_tls_config" = x""yes; then
  3042. SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INT_TLS_CONFIG"
  3043. fi
  3044. @@ -3738,11 +4384,11 @@ fi
  3045. for ac_func in ldap_set_rebind_proc
  3046. do
  3047. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3048. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  3049. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  3050. +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3051. +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  3052. +$as_echo_n "checking for $ac_func... " >&6; }
  3053. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  3054. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3055. + $as_echo_n "(cached) " >&6
  3056. else
  3057. cat >conftest.$ac_ext <<_ACEOF
  3058. /* confdefs.h. */
  3059. @@ -3795,44 +4441,51 @@ case "(($ac_try" in
  3060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3061. *) ac_try_echo=$ac_try;;
  3062. esac
  3063. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3064. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3065. +$as_echo "$ac_try_echo") >&5
  3066. (eval "$ac_link") 2>conftest.er1
  3067. ac_status=$?
  3068. grep -v '^ *+' conftest.er1 >conftest.err
  3069. rm -f conftest.er1
  3070. cat conftest.err >&5
  3071. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3072. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3073. (exit $ac_status); } && {
  3074. test -z "$ac_c_werror_flag" ||
  3075. test ! -s conftest.err
  3076. - } && test -s conftest$ac_exeext &&
  3077. - $as_test_x conftest$ac_exeext; then
  3078. + } && test -s conftest$ac_exeext && {
  3079. + test "$cross_compiling" = yes ||
  3080. + $as_test_x conftest$ac_exeext
  3081. + }; then
  3082. eval "$as_ac_var=yes"
  3083. else
  3084. - echo "$as_me: failed program was:" >&5
  3085. + $as_echo "$as_me: failed program was:" >&5
  3086. sed 's/^/| /' conftest.$ac_ext >&5
  3087. eval "$as_ac_var=no"
  3088. fi
  3089. +rm -rf conftest.dSYM
  3090. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3091. conftest$ac_exeext conftest.$ac_ext
  3092. fi
  3093. -ac_res=`eval echo '${'$as_ac_var'}'`
  3094. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  3095. -echo "${ECHO_T}$ac_res" >&6; }
  3096. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  3097. +ac_res=`eval 'as_val=${'$as_ac_var'}
  3098. + $as_echo "$as_val"'`
  3099. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  3100. +$as_echo "$ac_res" >&6; }
  3101. +as_val=`eval 'as_val=${'$as_ac_var'}
  3102. + $as_echo "$as_val"'`
  3103. + if test "x$as_val" = x""yes; then
  3104. cat >>confdefs.h <<_ACEOF
  3105. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3106. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3107. _ACEOF
  3108. fi
  3109. done
  3110. - { echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
  3111. -echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6; }
  3112. + { $as_echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
  3113. +$as_echo_n "checking whether ldap_set_rebind_proc takes 3 arguments... " >&6; }
  3114. if test "${ac_cv_ldap_set_rebind_proc+set}" = set; then
  3115. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3116. + $as_echo_n "(cached) " >&6
  3117. else
  3118. cat >conftest.$ac_ext <<_ACEOF
  3119. @@ -3858,20 +4511,21 @@ case "(($ac_try" in
  3120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3121. *) ac_try_echo=$ac_try;;
  3122. esac
  3123. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3124. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3125. +$as_echo "$ac_try_echo") >&5
  3126. (eval "$ac_compile") 2>conftest.er1
  3127. ac_status=$?
  3128. grep -v '^ *+' conftest.er1 >conftest.err
  3129. rm -f conftest.er1
  3130. cat conftest.err >&5
  3131. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3132. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3133. (exit $ac_status); } && {
  3134. test -z "$ac_c_werror_flag" ||
  3135. test ! -s conftest.err
  3136. } && test -s conftest.$ac_objext; then
  3137. ac_cv_ldap_set_rebind_proc=3
  3138. else
  3139. - echo "$as_me: failed program was:" >&5
  3140. + $as_echo "$as_me: failed program was:" >&5
  3141. sed 's/^/| /' conftest.$ac_ext >&5
  3142. ac_cv_ldap_set_rebind_proc=2
  3143. @@ -3879,8 +4533,8 @@ fi
  3144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3145. fi
  3146. -{ echo "$as_me:$LINENO: result: $ac_cv_ldap_set_rebind_proc" >&5
  3147. -echo "${ECHO_T}$ac_cv_ldap_set_rebind_proc" >&6; }
  3148. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_ldap_set_rebind_proc" >&5
  3149. +$as_echo "$ac_cv_ldap_set_rebind_proc" >&6; }
  3150. fi
  3151. targetname=rlm_ldap
  3152. @@ -3891,21 +4545,21 @@ fi
  3153. if test x"$fail" != x""; then
  3154. if test x"${enable_strict_dependencies}" = x"yes"; then
  3155. - { { echo "$as_me:$LINENO: error: set --without-rlm_ldap to disable it explicitly." >&5
  3156. -echo "$as_me: error: set --without-rlm_ldap to disable it explicitly." >&2;}
  3157. + { { $as_echo "$as_me:$LINENO: error: set --without-rlm_ldap to disable it explicitly." >&5
  3158. +$as_echo "$as_me: error: set --without-rlm_ldap to disable it explicitly." >&2;}
  3159. { (exit 1); exit 1; }; }
  3160. else
  3161. - { echo "$as_me:$LINENO: WARNING: silently not building rlm_ldap." >&5
  3162. -echo "$as_me: WARNING: silently not building rlm_ldap." >&2;}
  3163. - { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_ldap requires: $fail." >&5
  3164. -echo "$as_me: WARNING: FAILURE: rlm_ldap requires: $fail." >&2;}
  3165. + { $as_echo "$as_me:$LINENO: WARNING: silently not building rlm_ldap." >&5
  3166. +$as_echo "$as_me: WARNING: silently not building rlm_ldap." >&2;}
  3167. + { $as_echo "$as_me:$LINENO: WARNING: FAILURE: rlm_ldap requires: $fail." >&5
  3168. +$as_echo "$as_me: WARNING: FAILURE: rlm_ldap requires: $fail." >&2;}
  3169. if test x"$headersuggestion" != x; then
  3170. - { echo "$as_me:$LINENO: WARNING: $headersuggestion" >&5
  3171. -echo "$as_me: WARNING: $headersuggestion" >&2;}
  3172. + { $as_echo "$as_me:$LINENO: WARNING: $headersuggestion" >&5
  3173. +$as_echo "$as_me: WARNING: $headersuggestion" >&2;}
  3174. fi
  3175. if test x"$libsuggestion" != x; then
  3176. - { echo "$as_me:$LINENO: WARNING: $libsuggestion" >&5
  3177. -echo "$as_me: WARNING: $libsuggestion" >&2;}
  3178. + { $as_echo "$as_me:$LINENO: WARNING: $libsuggestion" >&5
  3179. +$as_echo "$as_me: WARNING: $libsuggestion" >&2;}
  3180. fi
  3181. targetname=""
  3182. fi
  3183. @@ -3966,11 +4620,12 @@ _ACEOF
  3184. case $ac_val in #(
  3185. *${as_nl}*)
  3186. case $ac_var in #(
  3187. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3188. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3189. + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3190. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3191. esac
  3192. case $ac_var in #(
  3193. _ | IFS | as_nl) ;; #(
  3194. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3195. *) $as_unset $ac_var ;;
  3196. esac ;;
  3197. esac
  3198. @@ -4003,12 +4658,12 @@ echo "$as_me: WARNING: Cache variable $a
  3199. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3200. if test -w "$cache_file"; then
  3201. test "x$cache_file" != "x/dev/null" &&
  3202. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3203. -echo "$as_me: updating cache $cache_file" >&6;}
  3204. + { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3205. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  3206. cat confcache >$cache_file
  3207. else
  3208. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3209. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3210. + { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3211. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3212. fi
  3213. fi
  3214. rm -f confcache
  3215. @@ -4025,6 +4680,12 @@ test "x$exec_prefix" = xNONE && exec_pre
  3216. # take arguments), then branch to the quote section. Otherwise,
  3217. # look for a macro that doesn't take arguments.
  3218. ac_script='
  3219. +:mline
  3220. +/\\$/{
  3221. + N
  3222. + s,\\\n,,
  3223. + b mline
  3224. +}
  3225. t clear
  3226. :clear
  3227. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  3228. @@ -4054,7 +4715,7 @@ ac_ltlibobjs=
  3229. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3230. # 1. Remove the extension, and $U if already installed.
  3231. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3232. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  3233. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  3234. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3235. # will be set to the directory where LIBOBJS objects are built.
  3236. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3237. @@ -4067,11 +4728,12 @@ LTLIBOBJS=$ac_ltlibobjs
  3238. : ${CONFIG_STATUS=./config.status}
  3239. +ac_write_fail=0
  3240. ac_clean_files_save=$ac_clean_files
  3241. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3242. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  3243. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3244. -cat >$CONFIG_STATUS <<_ACEOF
  3245. +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  3246. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3247. +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3248. #! $SHELL
  3249. # Generated by $as_me.
  3250. # Run this file to recreate the current configuration.
  3251. @@ -4084,7 +4746,7 @@ ac_cs_silent=false
  3252. SHELL=\${CONFIG_SHELL-$SHELL}
  3253. _ACEOF
  3254. -cat >>$CONFIG_STATUS <<\_ACEOF
  3255. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3256. ## --------------------- ##
  3257. ## M4sh Initialization. ##
  3258. ## --------------------- ##
  3259. @@ -4094,7 +4756,7 @@ DUALCASE=1; export DUALCASE # for MKS sh
  3260. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  3261. emulate sh
  3262. NULLCMD=:
  3263. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  3264. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  3265. # is contrary to our usage. Disable this feature.
  3266. alias -g '${1+"$@"}'='"$@"'
  3267. setopt NO_GLOB_SUBST
  3268. @@ -4116,17 +4778,45 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTE
  3269. as_cr_digits='0123456789'
  3270. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3271. -# The user is always right.
  3272. -if test "${PATH_SEPARATOR+set}" != set; then
  3273. - echo "#! /bin/sh" >conf$$.sh
  3274. - echo "exit 0" >>conf$$.sh
  3275. - chmod +x conf$$.sh
  3276. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3277. - PATH_SEPARATOR=';'
  3278. +as_nl='
  3279. +'
  3280. +export as_nl
  3281. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  3282. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3283. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  3284. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  3285. +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  3286. + as_echo='printf %s\n'
  3287. + as_echo_n='printf %s'
  3288. +else
  3289. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  3290. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  3291. + as_echo_n='/usr/ucb/echo -n'
  3292. else
  3293. - PATH_SEPARATOR=:
  3294. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  3295. + as_echo_n_body='eval
  3296. + arg=$1;
  3297. + case $arg in
  3298. + *"$as_nl"*)
  3299. + expr "X$arg" : "X\\(.*\\)$as_nl";
  3300. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  3301. + esac;
  3302. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  3303. + '
  3304. + export as_echo_n_body
  3305. + as_echo_n='sh -c $as_echo_n_body as_echo'
  3306. fi
  3307. - rm -f conf$$.sh
  3308. + export as_echo_body
  3309. + as_echo='sh -c $as_echo_body as_echo'
  3310. +fi
  3311. +
  3312. +# The user is always right.
  3313. +if test "${PATH_SEPARATOR+set}" != set; then
  3314. + PATH_SEPARATOR=:
  3315. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  3316. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  3317. + PATH_SEPARATOR=';'
  3318. + }
  3319. fi
  3320. # Support unset when possible.
  3321. @@ -4142,8 +4832,6 @@ fi
  3322. # there to prevent editors from complaining about space-tab.
  3323. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  3324. # splitting by setting IFS to empty value.)
  3325. -as_nl='
  3326. -'
  3327. IFS=" "" $as_nl"
  3328. # Find who we are. Look in the path if we contain no directory separator.
  3329. @@ -4166,7 +4854,7 @@ if test "x$as_myself" = x; then
  3330. as_myself=$0
  3331. fi
  3332. if test ! -f "$as_myself"; then
  3333. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3334. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3335. { (exit 1); exit 1; }
  3336. fi
  3337. @@ -4179,17 +4867,10 @@ PS2='> '
  3338. PS4='+ '
  3339. # NLS nuisances.
  3340. -for as_var in \
  3341. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  3342. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  3343. - LC_TELEPHONE LC_TIME
  3344. -do
  3345. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  3346. - eval $as_var=C; export $as_var
  3347. - else
  3348. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  3349. - fi
  3350. -done
  3351. +LC_ALL=C
  3352. +export LC_ALL
  3353. +LANGUAGE=C
  3354. +export LANGUAGE
  3355. # Required to use basename.
  3356. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3357. @@ -4211,7 +4892,7 @@ as_me=`$as_basename -- "$0" ||
  3358. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3359. X"$0" : 'X\(//\)$' \| \
  3360. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  3361. -echo X/"$0" |
  3362. +$as_echo X/"$0" |
  3363. sed '/^.*\/\([^/][^/]*\)\/*$/{
  3364. s//\1/
  3365. q
  3366. @@ -4262,7 +4943,7 @@ $as_unset CDPATH
  3367. s/-\n.*//
  3368. ' >$as_me.lineno &&
  3369. chmod +x "$as_me.lineno" ||
  3370. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  3371. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  3372. { (exit 1); exit 1; }; }
  3373. # Don't try to exec as it changes $[0], causing all sort of problems
  3374. @@ -4290,7 +4971,6 @@ case `echo -n x` in
  3375. *)
  3376. ECHO_N='-n';;
  3377. esac
  3378. -
  3379. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3380. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  3381. as_expr=expr
  3382. @@ -4303,19 +4983,22 @@ if test -d conf$$.dir; then
  3383. rm -f conf$$.dir/conf$$.file
  3384. else
  3385. rm -f conf$$.dir
  3386. - mkdir conf$$.dir
  3387. + mkdir conf$$.dir 2>/dev/null
  3388. fi
  3389. -echo >conf$$.file
  3390. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  3391. - as_ln_s='ln -s'
  3392. - # ... but there are two gotchas:
  3393. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  3394. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  3395. - # In both cases, we have to default to `cp -p'.
  3396. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  3397. +if (echo >conf$$.file) 2>/dev/null; then
  3398. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  3399. + as_ln_s='ln -s'
  3400. + # ... but there are two gotchas:
  3401. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  3402. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  3403. + # In both cases, we have to default to `cp -p'.
  3404. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  3405. + as_ln_s='cp -p'
  3406. + elif ln conf$$.file conf$$ 2>/dev/null; then
  3407. + as_ln_s=ln
  3408. + else
  3409. as_ln_s='cp -p'
  3410. -elif ln conf$$.file conf$$ 2>/dev/null; then
  3411. - as_ln_s=ln
  3412. + fi
  3413. else
  3414. as_ln_s='cp -p'
  3415. fi
  3416. @@ -4340,10 +5023,10 @@ else
  3417. as_test_x='
  3418. eval sh -c '\''
  3419. if test -d "$1"; then
  3420. - test -d "$1/.";
  3421. + test -d "$1/.";
  3422. else
  3423. case $1 in
  3424. - -*)set "./$1";;
  3425. + -*)set "./$1";;
  3426. esac;
  3427. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  3428. ???[sx]*):;;*)false;;esac;fi
  3429. @@ -4366,7 +5049,7 @@ exec 6>&1
  3430. # values after options handling.
  3431. ac_log="
  3432. This file was extended by $as_me, which was
  3433. -generated by GNU Autoconf 2.61. Invocation command line was
  3434. +generated by GNU Autoconf 2.63. Invocation command line was
  3435. CONFIG_FILES = $CONFIG_FILES
  3436. CONFIG_HEADERS = $CONFIG_HEADERS
  3437. @@ -4379,26 +5062,33 @@ on `(hostname || uname -n) 2>/dev/null |
  3438. _ACEOF
  3439. -cat >>$CONFIG_STATUS <<_ACEOF
  3440. +case $ac_config_files in *"
  3441. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  3442. +esac
  3443. +
  3444. +
  3445. +
  3446. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3447. # Files that config.status was made for.
  3448. config_files="$ac_config_files"
  3449. _ACEOF
  3450. -cat >>$CONFIG_STATUS <<\_ACEOF
  3451. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3452. ac_cs_usage="\
  3453. \`$as_me' instantiates files from templates according to the
  3454. current configuration.
  3455. -Usage: $0 [OPTIONS] [FILE]...
  3456. +Usage: $0 [OPTION]... [FILE]...
  3457. -h, --help print this help, then exit
  3458. -V, --version print version number and configuration settings, then exit
  3459. - -q, --quiet do not print progress messages
  3460. + -q, --quiet, --silent
  3461. + do not print progress messages
  3462. -d, --debug don't remove temporary files
  3463. --recheck update $as_me by reconfiguring in the same conditions
  3464. - --file=FILE[:TEMPLATE]
  3465. - instantiate the configuration file FILE
  3466. + --file=FILE[:TEMPLATE]
  3467. + instantiate the configuration file FILE
  3468. Configuration files:
  3469. $config_files
  3470. @@ -4406,23 +5096,23 @@ $config_files
  3471. Report bugs to <bug-autoconf@gnu.org>."
  3472. _ACEOF
  3473. -cat >>$CONFIG_STATUS <<_ACEOF
  3474. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3475. ac_cs_version="\\
  3476. config.status
  3477. -configured by $0, generated by GNU Autoconf 2.61,
  3478. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  3479. +configured by $0, generated by GNU Autoconf 2.63,
  3480. + with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  3481. -Copyright (C) 2006 Free Software Foundation, Inc.
  3482. +Copyright (C) 2008 Free Software Foundation, Inc.
  3483. This config.status script is free software; the Free Software Foundation
  3484. gives unlimited permission to copy, distribute and modify it."
  3485. ac_pwd='$ac_pwd'
  3486. srcdir='$srcdir'
  3487. +test -n "\$AWK" || AWK=awk
  3488. _ACEOF
  3489. -cat >>$CONFIG_STATUS <<\_ACEOF
  3490. -# If no file are specified by the user, then we need to provide default
  3491. -# value. By we need to know if files were specified by the user.
  3492. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3493. +# The default lists apply if the user does not specify any file.
  3494. ac_need_defaults=:
  3495. while test $# != 0
  3496. do
  3497. @@ -4444,21 +5134,24 @@ do
  3498. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3499. ac_cs_recheck=: ;;
  3500. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  3501. - echo "$ac_cs_version"; exit ;;
  3502. + $as_echo "$ac_cs_version"; exit ;;
  3503. --debug | --debu | --deb | --de | --d | -d )
  3504. debug=: ;;
  3505. --file | --fil | --fi | --f )
  3506. $ac_shift
  3507. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  3508. + case $ac_optarg in
  3509. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  3510. + esac
  3511. + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  3512. ac_need_defaults=false;;
  3513. --he | --h | --help | --hel | -h )
  3514. - echo "$ac_cs_usage"; exit ;;
  3515. + $as_echo "$ac_cs_usage"; exit ;;
  3516. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3517. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  3518. ac_cs_silent=: ;;
  3519. # This is an error.
  3520. - -*) { echo "$as_me: error: unrecognized option: $1
  3521. + -*) { $as_echo "$as_me: error: unrecognized option: $1
  3522. Try \`$0 --help' for more information." >&2
  3523. { (exit 1); exit 1; }; } ;;
  3524. @@ -4477,30 +5170,32 @@ if $ac_cs_silent; then
  3525. fi
  3526. _ACEOF
  3527. -cat >>$CONFIG_STATUS <<_ACEOF
  3528. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3529. if \$ac_cs_recheck; then
  3530. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  3531. - CONFIG_SHELL=$SHELL
  3532. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3533. + shift
  3534. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  3535. + CONFIG_SHELL='$SHELL'
  3536. export CONFIG_SHELL
  3537. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3538. + exec "\$@"
  3539. fi
  3540. _ACEOF
  3541. -cat >>$CONFIG_STATUS <<\_ACEOF
  3542. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3543. exec 5>>config.log
  3544. {
  3545. echo
  3546. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  3547. ## Running $as_me. ##
  3548. _ASBOX
  3549. - echo "$ac_log"
  3550. + $as_echo "$ac_log"
  3551. } >&5
  3552. _ACEOF
  3553. -cat >>$CONFIG_STATUS <<_ACEOF
  3554. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3555. _ACEOF
  3556. -cat >>$CONFIG_STATUS <<\_ACEOF
  3557. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3558. # Handling of arguments.
  3559. for ac_config_target in $ac_config_targets
  3560. @@ -4508,8 +5203,8 @@ do
  3561. case $ac_config_target in
  3562. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  3563. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  3564. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  3565. + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  3566. +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  3567. { (exit 1); exit 1; }; };;
  3568. esac
  3569. done
  3570. @@ -4548,114 +5243,143 @@ $debug ||
  3571. (umask 077 && mkdir "$tmp")
  3572. } ||
  3573. {
  3574. - echo "$me: cannot create a temporary directory in ." >&2
  3575. + $as_echo "$as_me: cannot create a temporary directory in ." >&2
  3576. { (exit 1); exit 1; }
  3577. }
  3578. -#
  3579. -# Set up the sed scripts for CONFIG_FILES section.
  3580. -#
  3581. -
  3582. -# No need to generate the scripts if there are no CONFIG_FILES.
  3583. -# This happens for instance when ./config.status config.h
  3584. +# Set up the scripts for CONFIG_FILES section.
  3585. +# No need to generate them if there are no CONFIG_FILES.
  3586. +# This happens for instance with `./config.status config.h'.
  3587. if test -n "$CONFIG_FILES"; then
  3588. -_ACEOF
  3589. +ac_cr=' '
  3590. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  3591. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  3592. + ac_cs_awk_cr='\\r'
  3593. +else
  3594. + ac_cs_awk_cr=$ac_cr
  3595. +fi
  3596. +
  3597. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  3598. +_ACEOF
  3599. +{
  3600. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  3601. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  3602. + echo "_ACEOF"
  3603. +} >conf$$subs.sh ||
  3604. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  3605. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  3606. + { (exit 1); exit 1; }; }
  3607. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  3608. ac_delim='%!_!# '
  3609. for ac_last_try in false false false false false :; do
  3610. - cat >conf$$subs.sed <<_ACEOF
  3611. -SHELL!$SHELL$ac_delim
  3612. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  3613. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  3614. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  3615. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  3616. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  3617. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  3618. -exec_prefix!$exec_prefix$ac_delim
  3619. -prefix!$prefix$ac_delim
  3620. -program_transform_name!$program_transform_name$ac_delim
  3621. -bindir!$bindir$ac_delim
  3622. -sbindir!$sbindir$ac_delim
  3623. -libexecdir!$libexecdir$ac_delim
  3624. -datarootdir!$datarootdir$ac_delim
  3625. -datadir!$datadir$ac_delim
  3626. -sysconfdir!$sysconfdir$ac_delim
  3627. -sharedstatedir!$sharedstatedir$ac_delim
  3628. -localstatedir!$localstatedir$ac_delim
  3629. -includedir!$includedir$ac_delim
  3630. -oldincludedir!$oldincludedir$ac_delim
  3631. -docdir!$docdir$ac_delim
  3632. -infodir!$infodir$ac_delim
  3633. -htmldir!$htmldir$ac_delim
  3634. -dvidir!$dvidir$ac_delim
  3635. -pdfdir!$pdfdir$ac_delim
  3636. -psdir!$psdir$ac_delim
  3637. -libdir!$libdir$ac_delim
  3638. -localedir!$localedir$ac_delim
  3639. -mandir!$mandir$ac_delim
  3640. -DEFS!$DEFS$ac_delim
  3641. -ECHO_C!$ECHO_C$ac_delim
  3642. -ECHO_N!$ECHO_N$ac_delim
  3643. -ECHO_T!$ECHO_T$ac_delim
  3644. -LIBS!$LIBS$ac_delim
  3645. -build_alias!$build_alias$ac_delim
  3646. -host_alias!$host_alias$ac_delim
  3647. -target_alias!$target_alias$ac_delim
  3648. -CC!$CC$ac_delim
  3649. -CFLAGS!$CFLAGS$ac_delim
  3650. -LDFLAGS!$LDFLAGS$ac_delim
  3651. -CPPFLAGS!$CPPFLAGS$ac_delim
  3652. -ac_ct_CC!$ac_ct_CC$ac_delim
  3653. -EXEEXT!$EXEEXT$ac_delim
  3654. -OBJEXT!$OBJEXT$ac_delim
  3655. -edir!$edir$ac_delim
  3656. -ldap_ldflags!$ldap_ldflags$ac_delim
  3657. -ldap_cflags!$ldap_cflags$ac_delim
  3658. -targetname!$targetname$ac_delim
  3659. -LIBOBJS!$LIBOBJS$ac_delim
  3660. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  3661. -_ACEOF
  3662. + . ./conf$$subs.sh ||
  3663. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  3664. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  3665. + { (exit 1); exit 1; }; }
  3666. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
  3667. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  3668. + if test $ac_delim_n = $ac_delim_num; then
  3669. break
  3670. elif $ac_last_try; then
  3671. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  3672. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  3673. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  3674. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  3675. { (exit 1); exit 1; }; }
  3676. else
  3677. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  3678. fi
  3679. done
  3680. +rm -f conf$$subs.sh
  3681. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  3682. -if test -n "$ac_eof"; then
  3683. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  3684. - ac_eof=`expr $ac_eof + 1`
  3685. -fi
  3686. -
  3687. -cat >>$CONFIG_STATUS <<_ACEOF
  3688. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  3689. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  3690. -_ACEOF
  3691. -sed '
  3692. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  3693. -s/^/s,@/; s/!/@,|#_!!_#|/
  3694. -:n
  3695. -t n
  3696. -s/'"$ac_delim"'$/,g/; t
  3697. -s/$/\\/; p
  3698. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  3699. -' >>$CONFIG_STATUS <conf$$subs.sed
  3700. -rm -f conf$$subs.sed
  3701. -cat >>$CONFIG_STATUS <<_ACEOF
  3702. -:end
  3703. -s/|#_!!_#|//g
  3704. -CEOF$ac_eof
  3705. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3706. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  3707. _ACEOF
  3708. +sed -n '
  3709. +h
  3710. +s/^/S["/; s/!.*/"]=/
  3711. +p
  3712. +g
  3713. +s/^[^!]*!//
  3714. +:repl
  3715. +t repl
  3716. +s/'"$ac_delim"'$//
  3717. +t delim
  3718. +:nl
  3719. +h
  3720. +s/\(.\{148\}\).*/\1/
  3721. +t more1
  3722. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  3723. +p
  3724. +n
  3725. +b repl
  3726. +:more1
  3727. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3728. +p
  3729. +g
  3730. +s/.\{148\}//
  3731. +t nl
  3732. +:delim
  3733. +h
  3734. +s/\(.\{148\}\).*/\1/
  3735. +t more2
  3736. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  3737. +p
  3738. +b
  3739. +:more2
  3740. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3741. +p
  3742. +g
  3743. +s/.\{148\}//
  3744. +t delim
  3745. +' <conf$$subs.awk | sed '
  3746. +/^[^""]/{
  3747. + N
  3748. + s/\n//
  3749. +}
  3750. +' >>$CONFIG_STATUS || ac_write_fail=1
  3751. +rm -f conf$$subs.awk
  3752. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3753. +_ACAWK
  3754. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  3755. + for (key in S) S_is_set[key] = 1
  3756. + FS = ""
  3757. +}
  3758. +{
  3759. + line = $ 0
  3760. + nfields = split(line, field, "@")
  3761. + substed = 0
  3762. + len = length(field[1])
  3763. + for (i = 2; i < nfields; i++) {
  3764. + key = field[i]
  3765. + keylen = length(key)
  3766. + if (S_is_set[key]) {
  3767. + value = S[key]
  3768. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  3769. + len += length(value) + length(field[++i])
  3770. + substed = 1
  3771. + } else
  3772. + len += 1 + keylen
  3773. + }
  3774. +
  3775. + print line
  3776. +}
  3777. +
  3778. +_ACAWK
  3779. +_ACEOF
  3780. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3781. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  3782. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  3783. +else
  3784. + cat
  3785. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  3786. + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  3787. +$as_echo "$as_me: error: could not setup config files machinery" >&2;}
  3788. + { (exit 1); exit 1; }; }
  3789. +_ACEOF
  3790. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  3791. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  3792. @@ -4672,19 +5396,21 @@ s/^[^=]*=[ ]*$//
  3793. }'
  3794. fi
  3795. -cat >>$CONFIG_STATUS <<\_ACEOF
  3796. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3797. fi # test -n "$CONFIG_FILES"
  3798. -for ac_tag in :F $CONFIG_FILES
  3799. +eval set X " :F $CONFIG_FILES "
  3800. +shift
  3801. +for ac_tag
  3802. do
  3803. case $ac_tag in
  3804. :[FHLC]) ac_mode=$ac_tag; continue;;
  3805. esac
  3806. case $ac_mode$ac_tag in
  3807. :[FHL]*:*);;
  3808. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  3809. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  3810. + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  3811. +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  3812. { (exit 1); exit 1; }; };;
  3813. :[FH]-) ac_tag=-:-;;
  3814. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  3815. @@ -4713,26 +5439,38 @@ echo "$as_me: error: Invalid tag $ac_tag
  3816. [\\/$]*) false;;
  3817. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  3818. esac ||
  3819. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  3820. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  3821. + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  3822. +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  3823. { (exit 1); exit 1; }; };;
  3824. esac
  3825. - ac_file_inputs="$ac_file_inputs $ac_f"
  3826. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  3827. + ac_file_inputs="$ac_file_inputs '$ac_f'"
  3828. done
  3829. # Let's still pretend it is `configure' which instantiates (i.e., don't
  3830. # use $as_me), people would be surprised to read:
  3831. # /* config.h. Generated by config.status. */
  3832. - configure_input="Generated from "`IFS=:
  3833. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  3834. + configure_input='Generated from '`
  3835. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  3836. + `' by configure.'
  3837. if test x"$ac_file" != x-; then
  3838. configure_input="$ac_file. $configure_input"
  3839. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  3840. -echo "$as_me: creating $ac_file" >&6;}
  3841. + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  3842. +$as_echo "$as_me: creating $ac_file" >&6;}
  3843. fi
  3844. + # Neutralize special characters interpreted by sed in replacement strings.
  3845. + case $configure_input in #(
  3846. + *\&* | *\|* | *\\* )
  3847. + ac_sed_conf_input=`$as_echo "$configure_input" |
  3848. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  3849. + *) ac_sed_conf_input=$configure_input;;
  3850. + esac
  3851. case $ac_tag in
  3852. - *:-:* | *:-) cat >"$tmp/stdin";;
  3853. + *:-:* | *:-) cat >"$tmp/stdin" \
  3854. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  3855. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  3856. + { (exit 1); exit 1; }; } ;;
  3857. esac
  3858. ;;
  3859. esac
  3860. @@ -4742,7 +5480,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^
  3861. X"$ac_file" : 'X\(//\)[^/]' \| \
  3862. X"$ac_file" : 'X\(//\)$' \| \
  3863. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  3864. -echo X"$ac_file" |
  3865. +$as_echo X"$ac_file" |
  3866. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3867. s//\1/
  3868. q
  3869. @@ -4768,7 +5506,7 @@ echo X"$ac_file" |
  3870. as_dirs=
  3871. while :; do
  3872. case $as_dir in #(
  3873. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  3874. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  3875. *) as_qdir=$as_dir;;
  3876. esac
  3877. as_dirs="'$as_qdir' $as_dirs"
  3878. @@ -4777,7 +5515,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/
  3879. X"$as_dir" : 'X\(//\)[^/]' \| \
  3880. X"$as_dir" : 'X\(//\)$' \| \
  3881. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  3882. -echo X"$as_dir" |
  3883. +$as_echo X"$as_dir" |
  3884. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3885. s//\1/
  3886. q
  3887. @@ -4798,17 +5536,17 @@ echo X"$as_dir" |
  3888. test -d "$as_dir" && break
  3889. done
  3890. test -z "$as_dirs" || eval "mkdir $as_dirs"
  3891. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  3892. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  3893. + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  3894. +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  3895. { (exit 1); exit 1; }; }; }
  3896. ac_builddir=.
  3897. case "$ac_dir" in
  3898. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3899. *)
  3900. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  3901. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  3902. # A ".." for each directory in $ac_dir_suffix.
  3903. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  3904. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  3905. case $ac_top_builddir_sub in
  3906. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3907. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  3908. @@ -4844,12 +5582,13 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
  3909. _ACEOF
  3910. -cat >>$CONFIG_STATUS <<\_ACEOF
  3911. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3912. # If the template does not know about datarootdir, expand it.
  3913. # FIXME: This hack should be removed a few years after 2.60.
  3914. ac_datarootdir_hack=; ac_datarootdir_seen=
  3915. -case `sed -n '/datarootdir/ {
  3916. +ac_sed_dataroot='
  3917. +/datarootdir/ {
  3918. p
  3919. q
  3920. }
  3921. @@ -4858,13 +5597,14 @@ case `sed -n '/datarootdir/ {
  3922. /@infodir@/p
  3923. /@localedir@/p
  3924. /@mandir@/p
  3925. -' $ac_file_inputs` in
  3926. +'
  3927. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  3928. *datarootdir*) ac_datarootdir_seen=yes;;
  3929. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  3930. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  3931. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  3932. + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  3933. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  3934. _ACEOF
  3935. -cat >>$CONFIG_STATUS <<_ACEOF
  3936. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3937. ac_datarootdir_hack='
  3938. s&@datadir@&$datadir&g
  3939. s&@docdir@&$docdir&g
  3940. @@ -4878,15 +5618,16 @@ _ACEOF
  3941. # Neutralize VPATH when `$srcdir' = `.'.
  3942. # Shell code in configure.ac might set extrasub.
  3943. # FIXME: do we really want to maintain this feature?
  3944. -cat >>$CONFIG_STATUS <<_ACEOF
  3945. - sed "$ac_vpsub
  3946. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3947. +ac_sed_extra="$ac_vpsub
  3948. $extrasub
  3949. _ACEOF
  3950. -cat >>$CONFIG_STATUS <<\_ACEOF
  3951. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3952. :t
  3953. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  3954. -s&@configure_input@&$configure_input&;t t
  3955. +s|@configure_input@|$ac_sed_conf_input|;t t
  3956. s&@top_builddir@&$ac_top_builddir_sub&;t t
  3957. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  3958. s&@srcdir@&$ac_srcdir&;t t
  3959. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  3960. s&@top_srcdir@&$ac_top_srcdir&;t t
  3961. @@ -4895,21 +5636,28 @@ s&@builddir@&$ac_builddir&;t t
  3962. s&@abs_builddir@&$ac_abs_builddir&;t t
  3963. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  3964. $ac_datarootdir_hack
  3965. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  3966. +"
  3967. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  3968. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  3969. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  3970. + { (exit 1); exit 1; }; }
  3971. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  3972. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  3973. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  3974. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3975. + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3976. which seems to be undefined. Please make sure it is defined." >&5
  3977. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3978. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3979. which seems to be undefined. Please make sure it is defined." >&2;}
  3980. rm -f "$tmp/stdin"
  3981. case $ac_file in
  3982. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  3983. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  3984. - esac
  3985. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  3986. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  3987. + esac \
  3988. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  3989. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  3990. + { (exit 1); exit 1; }; }
  3991. ;;
  3992. @@ -4924,6 +5672,11 @@ _ACEOF
  3993. chmod +x $CONFIG_STATUS
  3994. ac_clean_files=$ac_clean_files_save
  3995. +test $ac_write_fail = 0 ||
  3996. + { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  3997. +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  3998. + { (exit 1); exit 1; }; }
  3999. +
  4000. # configure is writing to config.log, and then calls config.status.
  4001. # config.status does its own redirection, appending to config.log.
  4002. @@ -4945,5 +5698,9 @@ if test "$no_create" != yes; then
  4003. # would make configure fail if this is the last instruction.
  4004. $ac_cs_success || { (exit 1); exit 1; }
  4005. fi
  4006. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  4007. + { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  4008. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  4009. +fi
  4010. Index: freeradius-server-2.2.7/src/modules/rlm_ldap/configure.in
  4011. ===================================================================
  4012. --- freeradius-server-2.2.7.orig/src/modules/rlm_ldap/configure.in
  4013. +++ freeradius-server-2.2.7/src/modules/rlm_ldap/configure.in
  4014. @@ -87,6 +87,9 @@ if test x$with_[]modname != xno; then
  4015. )
  4016. fi
  4017. + FR_SMART_CHECK_LIB(sasl, sasl_encode)
  4018. + FR_SMART_CHECK_LIB(lber, ber_init)
  4019. +
  4020. dnl Try only "-lldap_r" or "-lldap"
  4021. dnl Static linking will probably not work, but nobody ever
  4022. dnl complained about it.