configure 88 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by Autoconf 2.52.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. # Avoid depending upon Character Ranges.
  10. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13. as_cr_digits='0123456789'
  14. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15. # Sed expression to map a string onto a valid variable name.
  16. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  17. # Sed expression to map a string onto a valid CPP name.
  18. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  19. # Be Bourne compatible
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21. emulate sh
  22. NULLCMD=:
  23. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  24. set -o posix
  25. fi
  26. # Name of the executable.
  27. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  28. if expr a : '\(a\)' >/dev/null 2>&1; then
  29. as_expr=expr
  30. else
  31. as_expr=false
  32. fi
  33. rm -f conf$$ conf$$.exe conf$$.file
  34. echo >conf$$.file
  35. if ln -s conf$$.file conf$$ 2>/dev/null; then
  36. # We could just check for DJGPP; but this test a) works b) is more generic
  37. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  38. if test -f conf$$.exe; then
  39. # Don't use ln at all; we don't have any links
  40. as_ln_s='cp -p'
  41. else
  42. as_ln_s='ln -s'
  43. fi
  44. elif ln conf$$.file conf$$ 2>/dev/null; then
  45. as_ln_s=ln
  46. else
  47. as_ln_s='cp -p'
  48. fi
  49. rm -f conf$$ conf$$.exe conf$$.file
  50. as_executable_p="test -f"
  51. # Support unset when possible.
  52. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  53. as_unset=unset
  54. else
  55. as_unset=false
  56. fi
  57. # NLS nuisances.
  58. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  59. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  60. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  61. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  62. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  63. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  64. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  65. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  66. # IFS
  67. # We need space, tab and new line, in precisely that order.
  68. as_nl='
  69. '
  70. IFS=" $as_nl"
  71. # CDPATH.
  72. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  73. # Name of the host.
  74. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  75. # so uname gets run too.
  76. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  77. exec 6>&1
  78. #
  79. # Initializations.
  80. #
  81. ac_default_prefix=/usr/local
  82. cross_compiling=no
  83. subdirs=
  84. MFLAGS= MAKEFLAGS=
  85. SHELL=${CONFIG_SHELL-/bin/sh}
  86. # Maximum number of lines to put in a shell here document.
  87. # This variable seems obsolete. It should probably be removed, and
  88. # only ac_max_sed_lines should be used.
  89. : ${ac_max_here_lines=38}
  90. # Initialize some variables set by options.
  91. ac_init_help=
  92. ac_init_version=false
  93. # The variables have the same names as the options, with
  94. # dashes changed to underlines.
  95. cache_file=/dev/null
  96. exec_prefix=NONE
  97. no_create=
  98. no_recursion=
  99. prefix=NONE
  100. program_prefix=NONE
  101. program_suffix=NONE
  102. program_transform_name=s,x,x,
  103. silent=
  104. site=
  105. srcdir=
  106. verbose=
  107. x_includes=NONE
  108. x_libraries=NONE
  109. # Installation directory options.
  110. # These are left unexpanded so users can "make install exec_prefix=/foo"
  111. # and all the variables that are supposed to be based on exec_prefix
  112. # by default will actually change.
  113. # Use braces instead of parens because sh, perl, etc. also accept them.
  114. bindir='${exec_prefix}/bin'
  115. sbindir='${exec_prefix}/sbin'
  116. libexecdir='${exec_prefix}/libexec'
  117. datadir='${prefix}/share'
  118. sysconfdir='${prefix}/etc'
  119. sharedstatedir='${prefix}/com'
  120. localstatedir='${prefix}/var'
  121. libdir='${exec_prefix}/lib'
  122. includedir='${prefix}/include'
  123. oldincludedir='/usr/include'
  124. infodir='${prefix}/info'
  125. mandir='${prefix}/man'
  126. # Identity of this package.
  127. PACKAGE_NAME=
  128. PACKAGE_TARNAME=
  129. PACKAGE_VERSION=
  130. PACKAGE_STRING=
  131. PACKAGE_BUGREPORT=
  132. ac_prev=
  133. for ac_option
  134. do
  135. # If the previous option needs an argument, assign it.
  136. if test -n "$ac_prev"; then
  137. eval "$ac_prev=\$ac_option"
  138. ac_prev=
  139. continue
  140. fi
  141. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  142. # Accept the important Cygnus configure options, so we can diagnose typos.
  143. case $ac_option in
  144. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  145. ac_prev=bindir ;;
  146. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  147. bindir=$ac_optarg ;;
  148. -build | --build | --buil | --bui | --bu)
  149. ac_prev=build_alias ;;
  150. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  151. build_alias=$ac_optarg ;;
  152. -cache-file | --cache-file | --cache-fil | --cache-fi \
  153. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  154. ac_prev=cache_file ;;
  155. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  156. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  157. cache_file=$ac_optarg ;;
  158. --config-cache | -C)
  159. cache_file=config.cache ;;
  160. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  161. ac_prev=datadir ;;
  162. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  163. | --da=*)
  164. datadir=$ac_optarg ;;
  165. -disable-* | --disable-*)
  166. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  167. # Reject names that are not valid shell variable names.
  168. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  169. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  170. { (exit 1); exit 1; }; }
  171. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  172. eval "enable_$ac_feature=no" ;;
  173. -enable-* | --enable-*)
  174. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  175. # Reject names that are not valid shell variable names.
  176. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  177. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  178. { (exit 1); exit 1; }; }
  179. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  180. case $ac_option in
  181. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  182. *) ac_optarg=yes ;;
  183. esac
  184. eval "enable_$ac_feature='$ac_optarg'" ;;
  185. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  186. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  187. | --exec | --exe | --ex)
  188. ac_prev=exec_prefix ;;
  189. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  190. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  191. | --exec=* | --exe=* | --ex=*)
  192. exec_prefix=$ac_optarg ;;
  193. -gas | --gas | --ga | --g)
  194. # Obsolete; use --with-gas.
  195. with_gas=yes ;;
  196. -help | --help | --hel | --he | -h)
  197. ac_init_help=long ;;
  198. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  199. ac_init_help=recursive ;;
  200. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  201. ac_init_help=short ;;
  202. -host | --host | --hos | --ho)
  203. ac_prev=host_alias ;;
  204. -host=* | --host=* | --hos=* | --ho=*)
  205. host_alias=$ac_optarg ;;
  206. -includedir | --includedir | --includedi | --included | --include \
  207. | --includ | --inclu | --incl | --inc)
  208. ac_prev=includedir ;;
  209. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  210. | --includ=* | --inclu=* | --incl=* | --inc=*)
  211. includedir=$ac_optarg ;;
  212. -infodir | --infodir | --infodi | --infod | --info | --inf)
  213. ac_prev=infodir ;;
  214. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  215. infodir=$ac_optarg ;;
  216. -libdir | --libdir | --libdi | --libd)
  217. ac_prev=libdir ;;
  218. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  219. libdir=$ac_optarg ;;
  220. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  221. | --libexe | --libex | --libe)
  222. ac_prev=libexecdir ;;
  223. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  224. | --libexe=* | --libex=* | --libe=*)
  225. libexecdir=$ac_optarg ;;
  226. -localstatedir | --localstatedir | --localstatedi | --localstated \
  227. | --localstate | --localstat | --localsta | --localst \
  228. | --locals | --local | --loca | --loc | --lo)
  229. ac_prev=localstatedir ;;
  230. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  231. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  232. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  233. localstatedir=$ac_optarg ;;
  234. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  235. ac_prev=mandir ;;
  236. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  237. mandir=$ac_optarg ;;
  238. -nfp | --nfp | --nf)
  239. # Obsolete; use --without-fp.
  240. with_fp=no ;;
  241. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  242. | --no-cr | --no-c)
  243. no_create=yes ;;
  244. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  245. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  246. no_recursion=yes ;;
  247. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  248. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  249. | --oldin | --oldi | --old | --ol | --o)
  250. ac_prev=oldincludedir ;;
  251. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  252. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  253. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  254. oldincludedir=$ac_optarg ;;
  255. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  256. ac_prev=prefix ;;
  257. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  258. prefix=$ac_optarg ;;
  259. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  260. | --program-pre | --program-pr | --program-p)
  261. ac_prev=program_prefix ;;
  262. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  263. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  264. program_prefix=$ac_optarg ;;
  265. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  266. | --program-suf | --program-su | --program-s)
  267. ac_prev=program_suffix ;;
  268. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  269. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  270. program_suffix=$ac_optarg ;;
  271. -program-transform-name | --program-transform-name \
  272. | --program-transform-nam | --program-transform-na \
  273. | --program-transform-n | --program-transform- \
  274. | --program-transform | --program-transfor \
  275. | --program-transfo | --program-transf \
  276. | --program-trans | --program-tran \
  277. | --progr-tra | --program-tr | --program-t)
  278. ac_prev=program_transform_name ;;
  279. -program-transform-name=* | --program-transform-name=* \
  280. | --program-transform-nam=* | --program-transform-na=* \
  281. | --program-transform-n=* | --program-transform-=* \
  282. | --program-transform=* | --program-transfor=* \
  283. | --program-transfo=* | --program-transf=* \
  284. | --program-trans=* | --program-tran=* \
  285. | --progr-tra=* | --program-tr=* | --program-t=*)
  286. program_transform_name=$ac_optarg ;;
  287. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  288. | -silent | --silent | --silen | --sile | --sil)
  289. silent=yes ;;
  290. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  291. ac_prev=sbindir ;;
  292. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  293. | --sbi=* | --sb=*)
  294. sbindir=$ac_optarg ;;
  295. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  296. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  297. | --sharedst | --shareds | --shared | --share | --shar \
  298. | --sha | --sh)
  299. ac_prev=sharedstatedir ;;
  300. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  301. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  302. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  303. | --sha=* | --sh=*)
  304. sharedstatedir=$ac_optarg ;;
  305. -site | --site | --sit)
  306. ac_prev=site ;;
  307. -site=* | --site=* | --sit=*)
  308. site=$ac_optarg ;;
  309. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  310. ac_prev=srcdir ;;
  311. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  312. srcdir=$ac_optarg ;;
  313. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  314. | --syscon | --sysco | --sysc | --sys | --sy)
  315. ac_prev=sysconfdir ;;
  316. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  317. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  318. sysconfdir=$ac_optarg ;;
  319. -target | --target | --targe | --targ | --tar | --ta | --t)
  320. ac_prev=target_alias ;;
  321. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  322. target_alias=$ac_optarg ;;
  323. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  324. verbose=yes ;;
  325. -version | --version | --versio | --versi | --vers | -V)
  326. ac_init_version=: ;;
  327. -with-* | --with-*)
  328. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  329. # Reject names that are not valid shell variable names.
  330. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  331. { echo "$as_me: error: invalid package name: $ac_package" >&2
  332. { (exit 1); exit 1; }; }
  333. ac_package=`echo $ac_package| sed 's/-/_/g'`
  334. case $ac_option in
  335. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  336. *) ac_optarg=yes ;;
  337. esac
  338. eval "with_$ac_package='$ac_optarg'" ;;
  339. -without-* | --without-*)
  340. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  341. # Reject names that are not valid shell variable names.
  342. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  343. { echo "$as_me: error: invalid package name: $ac_package" >&2
  344. { (exit 1); exit 1; }; }
  345. ac_package=`echo $ac_package | sed 's/-/_/g'`
  346. eval "with_$ac_package=no" ;;
  347. --x)
  348. # Obsolete; use --with-x.
  349. with_x=yes ;;
  350. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  351. | --x-incl | --x-inc | --x-in | --x-i)
  352. ac_prev=x_includes ;;
  353. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  354. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  355. x_includes=$ac_optarg ;;
  356. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  357. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  358. ac_prev=x_libraries ;;
  359. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  360. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  361. x_libraries=$ac_optarg ;;
  362. -*) { echo "$as_me: error: unrecognized option: $ac_option
  363. Try \`$0 --help' for more information." >&2
  364. { (exit 1); exit 1; }; }
  365. ;;
  366. *=*)
  367. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  368. # Reject names that are not valid shell variable names.
  369. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  370. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  371. { (exit 1); exit 1; }; }
  372. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  373. eval "$ac_envvar='$ac_optarg'"
  374. export $ac_envvar ;;
  375. *)
  376. # FIXME: should be removed in autoconf 3.0.
  377. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  378. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  379. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  380. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  381. ;;
  382. esac
  383. done
  384. if test -n "$ac_prev"; then
  385. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  386. { echo "$as_me: error: missing argument to $ac_option" >&2
  387. { (exit 1); exit 1; }; }
  388. fi
  389. # Be sure to have absolute paths.
  390. for ac_var in exec_prefix prefix
  391. do
  392. eval ac_val=$`echo $ac_var`
  393. case $ac_val in
  394. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  395. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  396. { (exit 1); exit 1; }; };;
  397. esac
  398. done
  399. # Be sure to have absolute paths.
  400. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  401. localstatedir libdir includedir oldincludedir infodir mandir
  402. do
  403. eval ac_val=$`echo $ac_var`
  404. case $ac_val in
  405. [\\/$]* | ?:[\\/]* ) ;;
  406. *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
  407. { (exit 1); exit 1; }; };;
  408. esac
  409. done
  410. # There might be people who depend on the old broken behavior: `$host'
  411. # used to hold the argument of --host etc.
  412. build=$build_alias
  413. host=$host_alias
  414. target=$target_alias
  415. # FIXME: should be removed in autoconf 3.0.
  416. if test "x$host_alias" != x; then
  417. if test "x$build_alias" = x; then
  418. cross_compiling=maybe
  419. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  420. If a cross compiler is detected then cross compile mode will be used." >&2
  421. elif test "x$build_alias" != "x$host_alias"; then
  422. cross_compiling=yes
  423. fi
  424. fi
  425. ac_tool_prefix=
  426. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  427. test "$silent" = yes && exec 6>/dev/null
  428. # Find the source files, if location was not specified.
  429. if test -z "$srcdir"; then
  430. ac_srcdir_defaulted=yes
  431. # Try the directory containing this script, then its parent.
  432. ac_prog=$0
  433. ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
  434. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  435. srcdir=$ac_confdir
  436. if test ! -r $srcdir/$ac_unique_file; then
  437. srcdir=..
  438. fi
  439. else
  440. ac_srcdir_defaulted=no
  441. fi
  442. if test ! -r $srcdir/$ac_unique_file; then
  443. if test "$ac_srcdir_defaulted" = yes; then
  444. { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
  445. { (exit 1); exit 1; }; }
  446. else
  447. { echo "$as_me: error: cannot find sources in $srcdir" >&2
  448. { (exit 1); exit 1; }; }
  449. fi
  450. fi
  451. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  452. ac_env_build_alias_set=${build_alias+set}
  453. ac_env_build_alias_value=$build_alias
  454. ac_cv_env_build_alias_set=${build_alias+set}
  455. ac_cv_env_build_alias_value=$build_alias
  456. ac_env_host_alias_set=${host_alias+set}
  457. ac_env_host_alias_value=$host_alias
  458. ac_cv_env_host_alias_set=${host_alias+set}
  459. ac_cv_env_host_alias_value=$host_alias
  460. ac_env_target_alias_set=${target_alias+set}
  461. ac_env_target_alias_value=$target_alias
  462. ac_cv_env_target_alias_set=${target_alias+set}
  463. ac_cv_env_target_alias_value=$target_alias
  464. ac_env_CC_set=${CC+set}
  465. ac_env_CC_value=$CC
  466. ac_cv_env_CC_set=${CC+set}
  467. ac_cv_env_CC_value=$CC
  468. ac_env_CFLAGS_set=${CFLAGS+set}
  469. ac_env_CFLAGS_value=$CFLAGS
  470. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  471. ac_cv_env_CFLAGS_value=$CFLAGS
  472. ac_env_LDFLAGS_set=${LDFLAGS+set}
  473. ac_env_LDFLAGS_value=$LDFLAGS
  474. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  475. ac_cv_env_LDFLAGS_value=$LDFLAGS
  476. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  477. ac_env_CPPFLAGS_value=$CPPFLAGS
  478. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  479. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  480. ac_env_CXX_set=${CXX+set}
  481. ac_env_CXX_value=$CXX
  482. ac_cv_env_CXX_set=${CXX+set}
  483. ac_cv_env_CXX_value=$CXX
  484. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  485. ac_env_CXXFLAGS_value=$CXXFLAGS
  486. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  487. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  488. #
  489. # Report the --help message.
  490. #
  491. if test "$ac_init_help" = "long"; then
  492. # Omit some internal or obsolete options to make the list less imposing.
  493. # This message is too long to be a string in the A/UX 3.1 sh.
  494. cat <<EOF
  495. \`configure' configures this package to adapt to many kinds of systems.
  496. Usage: $0 [OPTION]... [VAR=VALUE]...
  497. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  498. VAR=VALUE. See below for descriptions of some of the useful variables.
  499. Defaults for the options are specified in brackets.
  500. Configuration:
  501. -h, --help display this help and exit
  502. --help=short display options specific to this package
  503. --help=recursive display the short help of all the included packages
  504. -V, --version display version information and exit
  505. -q, --quiet, --silent do not print \`checking...' messages
  506. --cache-file=FILE cache test results in FILE [disabled]
  507. -C, --config-cache alias for \`--cache-file=config.cache'
  508. -n, --no-create do not create output files
  509. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  510. EOF
  511. cat <<EOF
  512. Installation directories:
  513. --prefix=PREFIX install architecture-independent files in PREFIX
  514. [$ac_default_prefix]
  515. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  516. [PREFIX]
  517. By default, \`make install' will install all the files in
  518. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  519. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  520. for instance \`--prefix=\$HOME'.
  521. For better control, use the options below.
  522. Fine tuning of the installation directories:
  523. --bindir=DIR user executables [EPREFIX/bin]
  524. --sbindir=DIR system admin executables [EPREFIX/sbin]
  525. --libexecdir=DIR program executables [EPREFIX/libexec]
  526. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  527. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  528. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  529. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  530. --libdir=DIR object code libraries [EPREFIX/lib]
  531. --includedir=DIR C header files [PREFIX/include]
  532. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  533. --infodir=DIR info documentation [PREFIX/info]
  534. --mandir=DIR man documentation [PREFIX/man]
  535. EOF
  536. cat <<\EOF
  537. EOF
  538. fi
  539. if test -n "$ac_init_help"; then
  540. cat <<\EOF
  541. Some influential environment variables:
  542. CC C compiler command
  543. CFLAGS C compiler flags
  544. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  545. nonstandard directory <lib dir>
  546. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  547. headers in a nonstandard directory <include dir>
  548. CXX C++ compiler command
  549. CXXFLAGS C++ compiler flags
  550. Use these variables to override the choices made by `configure' or to help
  551. it to find libraries and programs with nonstandard names/locations.
  552. EOF
  553. fi
  554. if test "$ac_init_help" = "recursive"; then
  555. # If there are subdirs, report their specific --help.
  556. ac_popdir=`pwd`
  557. for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
  558. cd $ac_subdir
  559. # A "../" for each directory in /$ac_subdir.
  560. ac_dots=`echo $ac_subdir |
  561. sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
  562. case $srcdir in
  563. .) # No --srcdir option. We are building in place.
  564. ac_sub_srcdir=$srcdir ;;
  565. [\\/]* | ?:[\\/]* ) # Absolute path.
  566. ac_sub_srcdir=$srcdir/$ac_subdir ;;
  567. *) # Relative path.
  568. ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
  569. esac
  570. # Check for guested configure; otherwise get Cygnus style configure.
  571. if test -f $ac_sub_srcdir/configure.gnu; then
  572. echo
  573. $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
  574. elif test -f $ac_sub_srcdir/configure; then
  575. echo
  576. $SHELL $ac_sub_srcdir/configure --help=recursive
  577. elif test -f $ac_sub_srcdir/configure.ac ||
  578. test -f $ac_sub_srcdir/configure.in; then
  579. echo
  580. $ac_configure --help
  581. else
  582. echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
  583. fi
  584. cd $ac_popdir
  585. done
  586. fi
  587. test -n "$ac_init_help" && exit 0
  588. if $ac_init_version; then
  589. cat <<\EOF
  590. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  591. Free Software Foundation, Inc.
  592. This configure script is free software; the Free Software Foundation
  593. gives unlimited permission to copy, distribute and modify it.
  594. EOF
  595. exit 0
  596. fi
  597. exec 5>config.log
  598. cat >&5 <<EOF
  599. This file contains any messages produced by compilers while
  600. running configure, to aid debugging if configure makes a mistake.
  601. It was created by $as_me, which was
  602. generated by GNU Autoconf 2.52. Invocation command line was
  603. $ $0 $@
  604. EOF
  605. {
  606. cat <<_ASUNAME
  607. ## ---------- ##
  608. ## Platform. ##
  609. ## ---------- ##
  610. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  611. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  612. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  613. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  614. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  615. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  616. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  617. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  618. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  619. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  620. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  621. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  622. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  623. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  624. PATH = $PATH
  625. _ASUNAME
  626. } >&5
  627. cat >&5 <<EOF
  628. ## ------------ ##
  629. ## Core tests. ##
  630. ## ------------ ##
  631. EOF
  632. # Keep a trace of the command line.
  633. # Strip out --no-create and --no-recursion so they do not pile up.
  634. # Also quote any args containing shell meta-characters.
  635. ac_configure_args=
  636. ac_sep=
  637. for ac_arg
  638. do
  639. case $ac_arg in
  640. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  641. | --no-cr | --no-c) ;;
  642. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  643. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  644. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  645. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  646. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  647. ac_sep=" " ;;
  648. *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
  649. ac_sep=" " ;;
  650. esac
  651. # Get rid of the leading space.
  652. done
  653. # When interrupted or exit'd, cleanup temporary files, and complete
  654. # config.log. We remove comments because anyway the quotes in there
  655. # would cause problems or look ugly.
  656. trap 'exit_status=$?
  657. # Save into config.log some information that might help in debugging.
  658. echo >&5
  659. echo "## ----------------- ##" >&5
  660. echo "## Cache variables. ##" >&5
  661. echo "## ----------------- ##" >&5
  662. echo >&5
  663. # The following way of writing the cache mishandles newlines in values,
  664. {
  665. (set) 2>&1 |
  666. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  667. *ac_space=\ *)
  668. sed -n \
  669. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  670. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  671. ;;
  672. *)
  673. sed -n \
  674. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  675. ;;
  676. esac;
  677. } >&5
  678. sed "/^$/d" confdefs.h >conftest.log
  679. if test -s conftest.log; then
  680. echo >&5
  681. echo "## ------------ ##" >&5
  682. echo "## confdefs.h. ##" >&5
  683. echo "## ------------ ##" >&5
  684. echo >&5
  685. cat conftest.log >&5
  686. fi
  687. (echo; echo) >&5
  688. test "$ac_signal" != 0 &&
  689. echo "$as_me: caught signal $ac_signal" >&5
  690. echo "$as_me: exit $exit_status" >&5
  691. rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
  692. exit $exit_status
  693. ' 0
  694. for ac_signal in 1 2 13 15; do
  695. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  696. done
  697. ac_signal=0
  698. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  699. rm -rf conftest* confdefs.h
  700. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  701. echo >confdefs.h
  702. # Let the site file select an alternate cache file if it wants to.
  703. # Prefer explicitly selected file to automatically selected ones.
  704. if test -z "$CONFIG_SITE"; then
  705. if test "x$prefix" != xNONE; then
  706. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  707. else
  708. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  709. fi
  710. fi
  711. for ac_site_file in $CONFIG_SITE; do
  712. if test -r "$ac_site_file"; then
  713. { echo "$as_me:822: loading site script $ac_site_file" >&5
  714. echo "$as_me: loading site script $ac_site_file" >&6;}
  715. cat "$ac_site_file" >&5
  716. . "$ac_site_file"
  717. fi
  718. done
  719. if test -r "$cache_file"; then
  720. # Some versions of bash will fail to source /dev/null (special
  721. # files actually), so we avoid doing that.
  722. if test -f "$cache_file"; then
  723. { echo "$as_me:833: loading cache $cache_file" >&5
  724. echo "$as_me: loading cache $cache_file" >&6;}
  725. case $cache_file in
  726. [\\/]* | ?:[\\/]* ) . $cache_file;;
  727. *) . ./$cache_file;;
  728. esac
  729. fi
  730. else
  731. { echo "$as_me:841: creating cache $cache_file" >&5
  732. echo "$as_me: creating cache $cache_file" >&6;}
  733. >$cache_file
  734. fi
  735. # Check that the precious variables saved in the cache have kept the same
  736. # value.
  737. ac_cache_corrupted=false
  738. for ac_var in `(set) 2>&1 |
  739. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  740. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  741. eval ac_new_set=\$ac_env_${ac_var}_set
  742. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  743. eval ac_new_val="\$ac_env_${ac_var}_value"
  744. case $ac_old_set,$ac_new_set in
  745. set,)
  746. { echo "$as_me:857: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  747. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  748. ac_cache_corrupted=: ;;
  749. ,set)
  750. { echo "$as_me:861: error: \`$ac_var' was not set in the previous run" >&5
  751. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  752. ac_cache_corrupted=: ;;
  753. ,);;
  754. *)
  755. if test "x$ac_old_val" != "x$ac_new_val"; then
  756. { echo "$as_me:867: error: \`$ac_var' has changed since the previous run:" >&5
  757. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  758. { echo "$as_me:869: former value: $ac_old_val" >&5
  759. echo "$as_me: former value: $ac_old_val" >&2;}
  760. { echo "$as_me:871: current value: $ac_new_val" >&5
  761. echo "$as_me: current value: $ac_new_val" >&2;}
  762. ac_cache_corrupted=:
  763. fi;;
  764. esac
  765. # Pass precious variables to config.status. It doesn't matter if
  766. # we pass some twice (in addition to the command line arguments).
  767. if test "$ac_new_set" = set; then
  768. case $ac_new_val in
  769. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  770. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
  771. ac_configure_args="$ac_configure_args '$ac_arg'"
  772. ;;
  773. *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
  774. ;;
  775. esac
  776. fi
  777. done
  778. if $ac_cache_corrupted; then
  779. { echo "$as_me:890: error: changes in the environment can compromise the build" >&5
  780. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  781. { { echo "$as_me:892: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  782. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  783. { (exit 1); exit 1; }; }
  784. fi
  785. ac_ext=c
  786. ac_cpp='$CPP $CPPFLAGS'
  787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  790. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  791. *c*,-n*) ECHO_N= ECHO_C='
  792. ' ECHO_T=' ' ;;
  793. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  794. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  795. esac
  796. echo "#! $SHELL" >conftest.sh
  797. echo "exit 0" >>conftest.sh
  798. chmod +x conftest.sh
  799. if { (echo "$as_me:912: PATH=\".;.\"; conftest.sh") >&5
  800. (PATH=".;."; conftest.sh) 2>&5
  801. ac_status=$?
  802. echo "$as_me:915: \$? = $ac_status" >&5
  803. (exit $ac_status); }; then
  804. ac_path_separator=';'
  805. else
  806. ac_path_separator=:
  807. fi
  808. PATH_SEPARATOR="$ac_path_separator"
  809. rm -f conftest.sh
  810. ac_config_headers="$ac_config_headers Source/cmConfigure.h"
  811. CMAKE_CONFIG_DIR=`pwd`
  812. #
  813. # check for some programs we use
  814. #
  815. ac_ext=c
  816. ac_cpp='$CPP $CPPFLAGS'
  817. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  818. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  819. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  820. if test -n "$ac_tool_prefix"; then
  821. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  822. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  823. echo "$as_me:939: checking for $ac_word" >&5
  824. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  825. if test "${ac_cv_prog_CC+set}" = set; then
  826. echo $ECHO_N "(cached) $ECHO_C" >&6
  827. else
  828. if test -n "$CC"; then
  829. ac_cv_prog_CC="$CC" # Let the user override the test.
  830. else
  831. ac_save_IFS=$IFS; IFS=$ac_path_separator
  832. ac_dummy="$PATH"
  833. for ac_dir in $ac_dummy; do
  834. IFS=$ac_save_IFS
  835. test -z "$ac_dir" && ac_dir=.
  836. $as_executable_p "$ac_dir/$ac_word" || continue
  837. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  838. echo "$as_me:954: found $ac_dir/$ac_word" >&5
  839. break
  840. done
  841. fi
  842. fi
  843. CC=$ac_cv_prog_CC
  844. if test -n "$CC"; then
  845. echo "$as_me:962: result: $CC" >&5
  846. echo "${ECHO_T}$CC" >&6
  847. else
  848. echo "$as_me:965: result: no" >&5
  849. echo "${ECHO_T}no" >&6
  850. fi
  851. fi
  852. if test -z "$ac_cv_prog_CC"; then
  853. ac_ct_CC=$CC
  854. # Extract the first word of "gcc", so it can be a program name with args.
  855. set dummy gcc; ac_word=$2
  856. echo "$as_me:974: checking for $ac_word" >&5
  857. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  858. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  859. echo $ECHO_N "(cached) $ECHO_C" >&6
  860. else
  861. if test -n "$ac_ct_CC"; then
  862. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  863. else
  864. ac_save_IFS=$IFS; IFS=$ac_path_separator
  865. ac_dummy="$PATH"
  866. for ac_dir in $ac_dummy; do
  867. IFS=$ac_save_IFS
  868. test -z "$ac_dir" && ac_dir=.
  869. $as_executable_p "$ac_dir/$ac_word" || continue
  870. ac_cv_prog_ac_ct_CC="gcc"
  871. echo "$as_me:989: found $ac_dir/$ac_word" >&5
  872. break
  873. done
  874. fi
  875. fi
  876. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  877. if test -n "$ac_ct_CC"; then
  878. echo "$as_me:997: result: $ac_ct_CC" >&5
  879. echo "${ECHO_T}$ac_ct_CC" >&6
  880. else
  881. echo "$as_me:1000: result: no" >&5
  882. echo "${ECHO_T}no" >&6
  883. fi
  884. CC=$ac_ct_CC
  885. else
  886. CC="$ac_cv_prog_CC"
  887. fi
  888. if test -z "$CC"; then
  889. if test -n "$ac_tool_prefix"; then
  890. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  891. set dummy ${ac_tool_prefix}cc; ac_word=$2
  892. echo "$as_me:1013: checking for $ac_word" >&5
  893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  894. if test "${ac_cv_prog_CC+set}" = set; then
  895. echo $ECHO_N "(cached) $ECHO_C" >&6
  896. else
  897. if test -n "$CC"; then
  898. ac_cv_prog_CC="$CC" # Let the user override the test.
  899. else
  900. ac_save_IFS=$IFS; IFS=$ac_path_separator
  901. ac_dummy="$PATH"
  902. for ac_dir in $ac_dummy; do
  903. IFS=$ac_save_IFS
  904. test -z "$ac_dir" && ac_dir=.
  905. $as_executable_p "$ac_dir/$ac_word" || continue
  906. ac_cv_prog_CC="${ac_tool_prefix}cc"
  907. echo "$as_me:1028: found $ac_dir/$ac_word" >&5
  908. break
  909. done
  910. fi
  911. fi
  912. CC=$ac_cv_prog_CC
  913. if test -n "$CC"; then
  914. echo "$as_me:1036: result: $CC" >&5
  915. echo "${ECHO_T}$CC" >&6
  916. else
  917. echo "$as_me:1039: result: no" >&5
  918. echo "${ECHO_T}no" >&6
  919. fi
  920. fi
  921. if test -z "$ac_cv_prog_CC"; then
  922. ac_ct_CC=$CC
  923. # Extract the first word of "cc", so it can be a program name with args.
  924. set dummy cc; ac_word=$2
  925. echo "$as_me:1048: checking for $ac_word" >&5
  926. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  927. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  928. echo $ECHO_N "(cached) $ECHO_C" >&6
  929. else
  930. if test -n "$ac_ct_CC"; then
  931. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  932. else
  933. ac_save_IFS=$IFS; IFS=$ac_path_separator
  934. ac_dummy="$PATH"
  935. for ac_dir in $ac_dummy; do
  936. IFS=$ac_save_IFS
  937. test -z "$ac_dir" && ac_dir=.
  938. $as_executable_p "$ac_dir/$ac_word" || continue
  939. ac_cv_prog_ac_ct_CC="cc"
  940. echo "$as_me:1063: found $ac_dir/$ac_word" >&5
  941. break
  942. done
  943. fi
  944. fi
  945. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  946. if test -n "$ac_ct_CC"; then
  947. echo "$as_me:1071: result: $ac_ct_CC" >&5
  948. echo "${ECHO_T}$ac_ct_CC" >&6
  949. else
  950. echo "$as_me:1074: result: no" >&5
  951. echo "${ECHO_T}no" >&6
  952. fi
  953. CC=$ac_ct_CC
  954. else
  955. CC="$ac_cv_prog_CC"
  956. fi
  957. fi
  958. if test -z "$CC"; then
  959. # Extract the first word of "cc", so it can be a program name with args.
  960. set dummy cc; ac_word=$2
  961. echo "$as_me:1087: checking for $ac_word" >&5
  962. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  963. if test "${ac_cv_prog_CC+set}" = set; then
  964. echo $ECHO_N "(cached) $ECHO_C" >&6
  965. else
  966. if test -n "$CC"; then
  967. ac_cv_prog_CC="$CC" # Let the user override the test.
  968. else
  969. ac_prog_rejected=no
  970. ac_save_IFS=$IFS; IFS=$ac_path_separator
  971. ac_dummy="$PATH"
  972. for ac_dir in $ac_dummy; do
  973. IFS=$ac_save_IFS
  974. test -z "$ac_dir" && ac_dir=.
  975. $as_executable_p "$ac_dir/$ac_word" || continue
  976. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  977. ac_prog_rejected=yes
  978. continue
  979. fi
  980. ac_cv_prog_CC="cc"
  981. echo "$as_me:1107: found $ac_dir/$ac_word" >&5
  982. break
  983. done
  984. if test $ac_prog_rejected = yes; then
  985. # We found a bogon in the path, so make sure we never use it.
  986. set dummy $ac_cv_prog_CC
  987. shift
  988. if test $# != 0; then
  989. # We chose a different compiler from the bogus one.
  990. # However, it has the same basename, so the bogon will be chosen
  991. # first if we set CC to just the basename; use the full file name.
  992. shift
  993. set dummy "$ac_dir/$ac_word" ${1+"$@"}
  994. shift
  995. ac_cv_prog_CC="$@"
  996. fi
  997. fi
  998. fi
  999. fi
  1000. CC=$ac_cv_prog_CC
  1001. if test -n "$CC"; then
  1002. echo "$as_me:1129: result: $CC" >&5
  1003. echo "${ECHO_T}$CC" >&6
  1004. else
  1005. echo "$as_me:1132: result: no" >&5
  1006. echo "${ECHO_T}no" >&6
  1007. fi
  1008. fi
  1009. if test -z "$CC"; then
  1010. if test -n "$ac_tool_prefix"; then
  1011. for ac_prog in cl
  1012. do
  1013. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1014. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1015. echo "$as_me:1143: checking for $ac_word" >&5
  1016. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1017. if test "${ac_cv_prog_CC+set}" = set; then
  1018. echo $ECHO_N "(cached) $ECHO_C" >&6
  1019. else
  1020. if test -n "$CC"; then
  1021. ac_cv_prog_CC="$CC" # Let the user override the test.
  1022. else
  1023. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1024. ac_dummy="$PATH"
  1025. for ac_dir in $ac_dummy; do
  1026. IFS=$ac_save_IFS
  1027. test -z "$ac_dir" && ac_dir=.
  1028. $as_executable_p "$ac_dir/$ac_word" || continue
  1029. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1030. echo "$as_me:1158: found $ac_dir/$ac_word" >&5
  1031. break
  1032. done
  1033. fi
  1034. fi
  1035. CC=$ac_cv_prog_CC
  1036. if test -n "$CC"; then
  1037. echo "$as_me:1166: result: $CC" >&5
  1038. echo "${ECHO_T}$CC" >&6
  1039. else
  1040. echo "$as_me:1169: result: no" >&5
  1041. echo "${ECHO_T}no" >&6
  1042. fi
  1043. test -n "$CC" && break
  1044. done
  1045. fi
  1046. if test -z "$CC"; then
  1047. ac_ct_CC=$CC
  1048. for ac_prog in cl
  1049. do
  1050. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1051. set dummy $ac_prog; ac_word=$2
  1052. echo "$as_me:1182: checking for $ac_word" >&5
  1053. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1054. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1055. echo $ECHO_N "(cached) $ECHO_C" >&6
  1056. else
  1057. if test -n "$ac_ct_CC"; then
  1058. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1059. else
  1060. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1061. ac_dummy="$PATH"
  1062. for ac_dir in $ac_dummy; do
  1063. IFS=$ac_save_IFS
  1064. test -z "$ac_dir" && ac_dir=.
  1065. $as_executable_p "$ac_dir/$ac_word" || continue
  1066. ac_cv_prog_ac_ct_CC="$ac_prog"
  1067. echo "$as_me:1197: found $ac_dir/$ac_word" >&5
  1068. break
  1069. done
  1070. fi
  1071. fi
  1072. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1073. if test -n "$ac_ct_CC"; then
  1074. echo "$as_me:1205: result: $ac_ct_CC" >&5
  1075. echo "${ECHO_T}$ac_ct_CC" >&6
  1076. else
  1077. echo "$as_me:1208: result: no" >&5
  1078. echo "${ECHO_T}no" >&6
  1079. fi
  1080. test -n "$ac_ct_CC" && break
  1081. done
  1082. CC=$ac_ct_CC
  1083. fi
  1084. fi
  1085. test -z "$CC" && { { echo "$as_me:1220: error: no acceptable cc found in \$PATH" >&5
  1086. echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
  1087. { (exit 1); exit 1; }; }
  1088. # Provide some information about the compiler.
  1089. echo "$as_me:1225:" \
  1090. "checking for C compiler version" >&5
  1091. ac_compiler=`set X $ac_compile; echo $2`
  1092. { (eval echo "$as_me:1228: \"$ac_compiler --version </dev/null >&5\"") >&5
  1093. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1094. ac_status=$?
  1095. echo "$as_me:1231: \$? = $ac_status" >&5
  1096. (exit $ac_status); }
  1097. { (eval echo "$as_me:1233: \"$ac_compiler -v </dev/null >&5\"") >&5
  1098. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1099. ac_status=$?
  1100. echo "$as_me:1236: \$? = $ac_status" >&5
  1101. (exit $ac_status); }
  1102. { (eval echo "$as_me:1238: \"$ac_compiler -V </dev/null >&5\"") >&5
  1103. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1104. ac_status=$?
  1105. echo "$as_me:1241: \$? = $ac_status" >&5
  1106. (exit $ac_status); }
  1107. cat >conftest.$ac_ext <<_ACEOF
  1108. #line 1245 "configure"
  1109. #include "confdefs.h"
  1110. int
  1111. main ()
  1112. {
  1113. ;
  1114. return 0;
  1115. }
  1116. _ACEOF
  1117. ac_clean_files_save=$ac_clean_files
  1118. ac_clean_files="$ac_clean_files a.out a.exe"
  1119. # Try to create an executable without -o first, disregard a.out.
  1120. # It will help us diagnose broken compilers, and finding out an intuition
  1121. # of exeext.
  1122. echo "$as_me:1261: checking for C compiler default output" >&5
  1123. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1124. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1125. if { (eval echo "$as_me:1264: \"$ac_link_default\"") >&5
  1126. (eval $ac_link_default) 2>&5
  1127. ac_status=$?
  1128. echo "$as_me:1267: \$? = $ac_status" >&5
  1129. (exit $ac_status); }; then
  1130. # Find the output, starting from the most likely. This scheme is
  1131. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1132. # resort.
  1133. for ac_file in `ls a.exe conftest.exe 2>/dev/null;
  1134. ls a.out conftest 2>/dev/null;
  1135. ls a.* conftest.* 2>/dev/null`; do
  1136. case $ac_file in
  1137. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1138. a.out ) # We found the default executable, but exeext='' is most
  1139. # certainly right.
  1140. break;;
  1141. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1142. # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
  1143. export ac_cv_exeext
  1144. break;;
  1145. * ) break;;
  1146. esac
  1147. done
  1148. else
  1149. echo "$as_me: failed program was:" >&5
  1150. cat conftest.$ac_ext >&5
  1151. { { echo "$as_me:1290: error: C compiler cannot create executables" >&5
  1152. echo "$as_me: error: C compiler cannot create executables" >&2;}
  1153. { (exit 77); exit 77; }; }
  1154. fi
  1155. ac_exeext=$ac_cv_exeext
  1156. echo "$as_me:1296: result: $ac_file" >&5
  1157. echo "${ECHO_T}$ac_file" >&6
  1158. # Check the compiler produces executables we can run. If not, either
  1159. # the compiler is broken, or we cross compile.
  1160. echo "$as_me:1301: checking whether the C compiler works" >&5
  1161. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1162. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1163. # If not cross compiling, check that we can run a simple program.
  1164. if test "$cross_compiling" != yes; then
  1165. if { ac_try='./$ac_file'
  1166. { (eval echo "$as_me:1307: \"$ac_try\"") >&5
  1167. (eval $ac_try) 2>&5
  1168. ac_status=$?
  1169. echo "$as_me:1310: \$? = $ac_status" >&5
  1170. (exit $ac_status); }; }; then
  1171. cross_compiling=no
  1172. else
  1173. if test "$cross_compiling" = maybe; then
  1174. cross_compiling=yes
  1175. else
  1176. { { echo "$as_me:1317: error: cannot run C compiled programs.
  1177. If you meant to cross compile, use \`--host'." >&5
  1178. echo "$as_me: error: cannot run C compiled programs.
  1179. If you meant to cross compile, use \`--host'." >&2;}
  1180. { (exit 1); exit 1; }; }
  1181. fi
  1182. fi
  1183. fi
  1184. echo "$as_me:1325: result: yes" >&5
  1185. echo "${ECHO_T}yes" >&6
  1186. rm -f a.out a.exe conftest$ac_cv_exeext
  1187. ac_clean_files=$ac_clean_files_save
  1188. # Check the compiler produces executables we can run. If not, either
  1189. # the compiler is broken, or we cross compile.
  1190. echo "$as_me:1332: checking whether we are cross compiling" >&5
  1191. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1192. echo "$as_me:1334: result: $cross_compiling" >&5
  1193. echo "${ECHO_T}$cross_compiling" >&6
  1194. echo "$as_me:1337: checking for executable suffix" >&5
  1195. echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
  1196. if { (eval echo "$as_me:1339: \"$ac_link\"") >&5
  1197. (eval $ac_link) 2>&5
  1198. ac_status=$?
  1199. echo "$as_me:1342: \$? = $ac_status" >&5
  1200. (exit $ac_status); }; then
  1201. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1202. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1203. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1204. # `rm'.
  1205. for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
  1206. case $ac_file in
  1207. *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1208. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1209. export ac_cv_exeext
  1210. break;;
  1211. * ) break;;
  1212. esac
  1213. done
  1214. else
  1215. { { echo "$as_me:1358: error: cannot compute EXEEXT: cannot compile and link" >&5
  1216. echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
  1217. { (exit 1); exit 1; }; }
  1218. fi
  1219. rm -f conftest$ac_cv_exeext
  1220. echo "$as_me:1364: result: $ac_cv_exeext" >&5
  1221. echo "${ECHO_T}$ac_cv_exeext" >&6
  1222. rm -f conftest.$ac_ext
  1223. EXEEXT=$ac_cv_exeext
  1224. ac_exeext=$EXEEXT
  1225. echo "$as_me:1370: checking for object suffix" >&5
  1226. echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
  1227. if test "${ac_cv_objext+set}" = set; then
  1228. echo $ECHO_N "(cached) $ECHO_C" >&6
  1229. else
  1230. cat >conftest.$ac_ext <<_ACEOF
  1231. #line 1376 "configure"
  1232. #include "confdefs.h"
  1233. int
  1234. main ()
  1235. {
  1236. ;
  1237. return 0;
  1238. }
  1239. _ACEOF
  1240. rm -f conftest.o conftest.obj
  1241. if { (eval echo "$as_me:1388: \"$ac_compile\"") >&5
  1242. (eval $ac_compile) 2>&5
  1243. ac_status=$?
  1244. echo "$as_me:1391: \$? = $ac_status" >&5
  1245. (exit $ac_status); }; then
  1246. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1247. case $ac_file in
  1248. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
  1249. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1250. break;;
  1251. esac
  1252. done
  1253. else
  1254. echo "$as_me: failed program was:" >&5
  1255. cat conftest.$ac_ext >&5
  1256. { { echo "$as_me:1403: error: cannot compute OBJEXT: cannot compile" >&5
  1257. echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
  1258. { (exit 1); exit 1; }; }
  1259. fi
  1260. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1261. fi
  1262. echo "$as_me:1410: result: $ac_cv_objext" >&5
  1263. echo "${ECHO_T}$ac_cv_objext" >&6
  1264. OBJEXT=$ac_cv_objext
  1265. ac_objext=$OBJEXT
  1266. echo "$as_me:1414: checking whether we are using the GNU C compiler" >&5
  1267. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1268. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1269. echo $ECHO_N "(cached) $ECHO_C" >&6
  1270. else
  1271. cat >conftest.$ac_ext <<_ACEOF
  1272. #line 1420 "configure"
  1273. #include "confdefs.h"
  1274. int
  1275. main ()
  1276. {
  1277. #ifndef __GNUC__
  1278. choke me
  1279. #endif
  1280. ;
  1281. return 0;
  1282. }
  1283. _ACEOF
  1284. rm -f conftest.$ac_objext
  1285. if { (eval echo "$as_me:1435: \"$ac_compile\"") >&5
  1286. (eval $ac_compile) 2>&5
  1287. ac_status=$?
  1288. echo "$as_me:1438: \$? = $ac_status" >&5
  1289. (exit $ac_status); } &&
  1290. { ac_try='test -s conftest.$ac_objext'
  1291. { (eval echo "$as_me:1441: \"$ac_try\"") >&5
  1292. (eval $ac_try) 2>&5
  1293. ac_status=$?
  1294. echo "$as_me:1444: \$? = $ac_status" >&5
  1295. (exit $ac_status); }; }; then
  1296. ac_compiler_gnu=yes
  1297. else
  1298. echo "$as_me: failed program was:" >&5
  1299. cat conftest.$ac_ext >&5
  1300. ac_compiler_gnu=no
  1301. fi
  1302. rm -f conftest.$ac_objext conftest.$ac_ext
  1303. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1304. fi
  1305. echo "$as_me:1456: result: $ac_cv_c_compiler_gnu" >&5
  1306. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1307. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1308. ac_test_CFLAGS=${CFLAGS+set}
  1309. ac_save_CFLAGS=$CFLAGS
  1310. CFLAGS="-g"
  1311. echo "$as_me:1462: checking whether $CC accepts -g" >&5
  1312. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1313. if test "${ac_cv_prog_cc_g+set}" = set; then
  1314. echo $ECHO_N "(cached) $ECHO_C" >&6
  1315. else
  1316. cat >conftest.$ac_ext <<_ACEOF
  1317. #line 1468 "configure"
  1318. #include "confdefs.h"
  1319. int
  1320. main ()
  1321. {
  1322. ;
  1323. return 0;
  1324. }
  1325. _ACEOF
  1326. rm -f conftest.$ac_objext
  1327. if { (eval echo "$as_me:1480: \"$ac_compile\"") >&5
  1328. (eval $ac_compile) 2>&5
  1329. ac_status=$?
  1330. echo "$as_me:1483: \$? = $ac_status" >&5
  1331. (exit $ac_status); } &&
  1332. { ac_try='test -s conftest.$ac_objext'
  1333. { (eval echo "$as_me:1486: \"$ac_try\"") >&5
  1334. (eval $ac_try) 2>&5
  1335. ac_status=$?
  1336. echo "$as_me:1489: \$? = $ac_status" >&5
  1337. (exit $ac_status); }; }; then
  1338. ac_cv_prog_cc_g=yes
  1339. else
  1340. echo "$as_me: failed program was:" >&5
  1341. cat conftest.$ac_ext >&5
  1342. ac_cv_prog_cc_g=no
  1343. fi
  1344. rm -f conftest.$ac_objext conftest.$ac_ext
  1345. fi
  1346. echo "$as_me:1499: result: $ac_cv_prog_cc_g" >&5
  1347. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1348. if test "$ac_test_CFLAGS" = set; then
  1349. CFLAGS=$ac_save_CFLAGS
  1350. elif test $ac_cv_prog_cc_g = yes; then
  1351. if test "$GCC" = yes; then
  1352. CFLAGS="-g -O2"
  1353. else
  1354. CFLAGS="-g"
  1355. fi
  1356. else
  1357. if test "$GCC" = yes; then
  1358. CFLAGS="-O2"
  1359. else
  1360. CFLAGS=
  1361. fi
  1362. fi
  1363. # Some people use a C++ compiler to compile C. Since we use `exit',
  1364. # in C++ we need to declare it. In case someone uses the same compiler
  1365. # for both compiling C and C++ we need to have the C++ compiler decide
  1366. # the declaration of exit, since it's the most demanding environment.
  1367. cat >conftest.$ac_ext <<_ACEOF
  1368. #ifndef __cplusplus
  1369. choke me
  1370. #endif
  1371. _ACEOF
  1372. rm -f conftest.$ac_objext
  1373. if { (eval echo "$as_me:1526: \"$ac_compile\"") >&5
  1374. (eval $ac_compile) 2>&5
  1375. ac_status=$?
  1376. echo "$as_me:1529: \$? = $ac_status" >&5
  1377. (exit $ac_status); } &&
  1378. { ac_try='test -s conftest.$ac_objext'
  1379. { (eval echo "$as_me:1532: \"$ac_try\"") >&5
  1380. (eval $ac_try) 2>&5
  1381. ac_status=$?
  1382. echo "$as_me:1535: \$? = $ac_status" >&5
  1383. (exit $ac_status); }; }; then
  1384. for ac_declaration in \
  1385. ''\
  1386. '#include <stdlib.h>' \
  1387. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1388. 'extern "C" void std::exit (int); using std::exit;' \
  1389. 'extern "C" void exit (int) throw ();' \
  1390. 'extern "C" void exit (int);' \
  1391. 'void exit (int);'
  1392. do
  1393. cat >conftest.$ac_ext <<_ACEOF
  1394. #line 1547 "configure"
  1395. #include "confdefs.h"
  1396. #include <stdlib.h>
  1397. $ac_declaration
  1398. int
  1399. main ()
  1400. {
  1401. exit (42);
  1402. ;
  1403. return 0;
  1404. }
  1405. _ACEOF
  1406. rm -f conftest.$ac_objext
  1407. if { (eval echo "$as_me:1560: \"$ac_compile\"") >&5
  1408. (eval $ac_compile) 2>&5
  1409. ac_status=$?
  1410. echo "$as_me:1563: \$? = $ac_status" >&5
  1411. (exit $ac_status); } &&
  1412. { ac_try='test -s conftest.$ac_objext'
  1413. { (eval echo "$as_me:1566: \"$ac_try\"") >&5
  1414. (eval $ac_try) 2>&5
  1415. ac_status=$?
  1416. echo "$as_me:1569: \$? = $ac_status" >&5
  1417. (exit $ac_status); }; }; then
  1418. :
  1419. else
  1420. echo "$as_me: failed program was:" >&5
  1421. cat conftest.$ac_ext >&5
  1422. continue
  1423. fi
  1424. rm -f conftest.$ac_objext conftest.$ac_ext
  1425. cat >conftest.$ac_ext <<_ACEOF
  1426. #line 1579 "configure"
  1427. #include "confdefs.h"
  1428. $ac_declaration
  1429. int
  1430. main ()
  1431. {
  1432. exit (42);
  1433. ;
  1434. return 0;
  1435. }
  1436. _ACEOF
  1437. rm -f conftest.$ac_objext
  1438. if { (eval echo "$as_me:1591: \"$ac_compile\"") >&5
  1439. (eval $ac_compile) 2>&5
  1440. ac_status=$?
  1441. echo "$as_me:1594: \$? = $ac_status" >&5
  1442. (exit $ac_status); } &&
  1443. { ac_try='test -s conftest.$ac_objext'
  1444. { (eval echo "$as_me:1597: \"$ac_try\"") >&5
  1445. (eval $ac_try) 2>&5
  1446. ac_status=$?
  1447. echo "$as_me:1600: \$? = $ac_status" >&5
  1448. (exit $ac_status); }; }; then
  1449. break
  1450. else
  1451. echo "$as_me: failed program was:" >&5
  1452. cat conftest.$ac_ext >&5
  1453. fi
  1454. rm -f conftest.$ac_objext conftest.$ac_ext
  1455. done
  1456. rm -f conftest*
  1457. if test -n "$ac_declaration"; then
  1458. echo '#ifdef __cplusplus' >>confdefs.h
  1459. echo $ac_declaration >>confdefs.h
  1460. echo '#endif' >>confdefs.h
  1461. fi
  1462. else
  1463. echo "$as_me: failed program was:" >&5
  1464. cat conftest.$ac_ext >&5
  1465. fi
  1466. rm -f conftest.$ac_objext conftest.$ac_ext
  1467. ac_ext=c
  1468. ac_cpp='$CPP $CPPFLAGS'
  1469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1472. ac_ext=cc
  1473. ac_cpp='$CXXCPP $CPPFLAGS'
  1474. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1475. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1476. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1477. if test -n "$ac_tool_prefix"; then
  1478. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1479. do
  1480. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1481. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1482. echo "$as_me:1637: checking for $ac_word" >&5
  1483. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1484. if test "${ac_cv_prog_CXX+set}" = set; then
  1485. echo $ECHO_N "(cached) $ECHO_C" >&6
  1486. else
  1487. if test -n "$CXX"; then
  1488. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1489. else
  1490. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1491. ac_dummy="$PATH"
  1492. for ac_dir in $ac_dummy; do
  1493. IFS=$ac_save_IFS
  1494. test -z "$ac_dir" && ac_dir=.
  1495. $as_executable_p "$ac_dir/$ac_word" || continue
  1496. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1497. echo "$as_me:1652: found $ac_dir/$ac_word" >&5
  1498. break
  1499. done
  1500. fi
  1501. fi
  1502. CXX=$ac_cv_prog_CXX
  1503. if test -n "$CXX"; then
  1504. echo "$as_me:1660: result: $CXX" >&5
  1505. echo "${ECHO_T}$CXX" >&6
  1506. else
  1507. echo "$as_me:1663: result: no" >&5
  1508. echo "${ECHO_T}no" >&6
  1509. fi
  1510. test -n "$CXX" && break
  1511. done
  1512. fi
  1513. if test -z "$CXX"; then
  1514. ac_ct_CXX=$CXX
  1515. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1516. do
  1517. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1518. set dummy $ac_prog; ac_word=$2
  1519. echo "$as_me:1676: checking for $ac_word" >&5
  1520. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1521. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1522. echo $ECHO_N "(cached) $ECHO_C" >&6
  1523. else
  1524. if test -n "$ac_ct_CXX"; then
  1525. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1526. else
  1527. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1528. ac_dummy="$PATH"
  1529. for ac_dir in $ac_dummy; do
  1530. IFS=$ac_save_IFS
  1531. test -z "$ac_dir" && ac_dir=.
  1532. $as_executable_p "$ac_dir/$ac_word" || continue
  1533. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1534. echo "$as_me:1691: found $ac_dir/$ac_word" >&5
  1535. break
  1536. done
  1537. fi
  1538. fi
  1539. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1540. if test -n "$ac_ct_CXX"; then
  1541. echo "$as_me:1699: result: $ac_ct_CXX" >&5
  1542. echo "${ECHO_T}$ac_ct_CXX" >&6
  1543. else
  1544. echo "$as_me:1702: result: no" >&5
  1545. echo "${ECHO_T}no" >&6
  1546. fi
  1547. test -n "$ac_ct_CXX" && break
  1548. done
  1549. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1550. CXX=$ac_ct_CXX
  1551. fi
  1552. # Provide some information about the compiler.
  1553. echo "$as_me:1714:" \
  1554. "checking for C++ compiler version" >&5
  1555. ac_compiler=`set X $ac_compile; echo $2`
  1556. { (eval echo "$as_me:1717: \"$ac_compiler --version </dev/null >&5\"") >&5
  1557. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1558. ac_status=$?
  1559. echo "$as_me:1720: \$? = $ac_status" >&5
  1560. (exit $ac_status); }
  1561. { (eval echo "$as_me:1722: \"$ac_compiler -v </dev/null >&5\"") >&5
  1562. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1563. ac_status=$?
  1564. echo "$as_me:1725: \$? = $ac_status" >&5
  1565. (exit $ac_status); }
  1566. { (eval echo "$as_me:1727: \"$ac_compiler -V </dev/null >&5\"") >&5
  1567. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1568. ac_status=$?
  1569. echo "$as_me:1730: \$? = $ac_status" >&5
  1570. (exit $ac_status); }
  1571. echo "$as_me:1733: checking whether we are using the GNU C++ compiler" >&5
  1572. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1573. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1574. echo $ECHO_N "(cached) $ECHO_C" >&6
  1575. else
  1576. cat >conftest.$ac_ext <<_ACEOF
  1577. #line 1739 "configure"
  1578. #include "confdefs.h"
  1579. int
  1580. main ()
  1581. {
  1582. #ifndef __GNUC__
  1583. choke me
  1584. #endif
  1585. ;
  1586. return 0;
  1587. }
  1588. _ACEOF
  1589. rm -f conftest.$ac_objext
  1590. if { (eval echo "$as_me:1754: \"$ac_compile\"") >&5
  1591. (eval $ac_compile) 2>&5
  1592. ac_status=$?
  1593. echo "$as_me:1757: \$? = $ac_status" >&5
  1594. (exit $ac_status); } &&
  1595. { ac_try='test -s conftest.$ac_objext'
  1596. { (eval echo "$as_me:1760: \"$ac_try\"") >&5
  1597. (eval $ac_try) 2>&5
  1598. ac_status=$?
  1599. echo "$as_me:1763: \$? = $ac_status" >&5
  1600. (exit $ac_status); }; }; then
  1601. ac_compiler_gnu=yes
  1602. else
  1603. echo "$as_me: failed program was:" >&5
  1604. cat conftest.$ac_ext >&5
  1605. ac_compiler_gnu=no
  1606. fi
  1607. rm -f conftest.$ac_objext conftest.$ac_ext
  1608. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1609. fi
  1610. echo "$as_me:1775: result: $ac_cv_cxx_compiler_gnu" >&5
  1611. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  1612. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1613. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1614. ac_save_CXXFLAGS=$CXXFLAGS
  1615. CXXFLAGS="-g"
  1616. echo "$as_me:1781: checking whether $CXX accepts -g" >&5
  1617. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  1618. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1619. echo $ECHO_N "(cached) $ECHO_C" >&6
  1620. else
  1621. cat >conftest.$ac_ext <<_ACEOF
  1622. #line 1787 "configure"
  1623. #include "confdefs.h"
  1624. int
  1625. main ()
  1626. {
  1627. ;
  1628. return 0;
  1629. }
  1630. _ACEOF
  1631. rm -f conftest.$ac_objext
  1632. if { (eval echo "$as_me:1799: \"$ac_compile\"") >&5
  1633. (eval $ac_compile) 2>&5
  1634. ac_status=$?
  1635. echo "$as_me:1802: \$? = $ac_status" >&5
  1636. (exit $ac_status); } &&
  1637. { ac_try='test -s conftest.$ac_objext'
  1638. { (eval echo "$as_me:1805: \"$ac_try\"") >&5
  1639. (eval $ac_try) 2>&5
  1640. ac_status=$?
  1641. echo "$as_me:1808: \$? = $ac_status" >&5
  1642. (exit $ac_status); }; }; then
  1643. ac_cv_prog_cxx_g=yes
  1644. else
  1645. echo "$as_me: failed program was:" >&5
  1646. cat conftest.$ac_ext >&5
  1647. ac_cv_prog_cxx_g=no
  1648. fi
  1649. rm -f conftest.$ac_objext conftest.$ac_ext
  1650. fi
  1651. echo "$as_me:1818: result: $ac_cv_prog_cxx_g" >&5
  1652. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  1653. if test "$ac_test_CXXFLAGS" = set; then
  1654. CXXFLAGS=$ac_save_CXXFLAGS
  1655. elif test $ac_cv_prog_cxx_g = yes; then
  1656. if test "$GXX" = yes; then
  1657. CXXFLAGS="-g -O2"
  1658. else
  1659. CXXFLAGS="-g"
  1660. fi
  1661. else
  1662. if test "$GXX" = yes; then
  1663. CXXFLAGS="-O2"
  1664. else
  1665. CXXFLAGS=
  1666. fi
  1667. fi
  1668. for ac_declaration in \
  1669. ''\
  1670. '#include <stdlib.h>' \
  1671. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1672. 'extern "C" void std::exit (int); using std::exit;' \
  1673. 'extern "C" void exit (int) throw ();' \
  1674. 'extern "C" void exit (int);' \
  1675. 'void exit (int);'
  1676. do
  1677. cat >conftest.$ac_ext <<_ACEOF
  1678. #line 1845 "configure"
  1679. #include "confdefs.h"
  1680. #include <stdlib.h>
  1681. $ac_declaration
  1682. int
  1683. main ()
  1684. {
  1685. exit (42);
  1686. ;
  1687. return 0;
  1688. }
  1689. _ACEOF
  1690. rm -f conftest.$ac_objext
  1691. if { (eval echo "$as_me:1858: \"$ac_compile\"") >&5
  1692. (eval $ac_compile) 2>&5
  1693. ac_status=$?
  1694. echo "$as_me:1861: \$? = $ac_status" >&5
  1695. (exit $ac_status); } &&
  1696. { ac_try='test -s conftest.$ac_objext'
  1697. { (eval echo "$as_me:1864: \"$ac_try\"") >&5
  1698. (eval $ac_try) 2>&5
  1699. ac_status=$?
  1700. echo "$as_me:1867: \$? = $ac_status" >&5
  1701. (exit $ac_status); }; }; then
  1702. :
  1703. else
  1704. echo "$as_me: failed program was:" >&5
  1705. cat conftest.$ac_ext >&5
  1706. continue
  1707. fi
  1708. rm -f conftest.$ac_objext conftest.$ac_ext
  1709. cat >conftest.$ac_ext <<_ACEOF
  1710. #line 1877 "configure"
  1711. #include "confdefs.h"
  1712. $ac_declaration
  1713. int
  1714. main ()
  1715. {
  1716. exit (42);
  1717. ;
  1718. return 0;
  1719. }
  1720. _ACEOF
  1721. rm -f conftest.$ac_objext
  1722. if { (eval echo "$as_me:1889: \"$ac_compile\"") >&5
  1723. (eval $ac_compile) 2>&5
  1724. ac_status=$?
  1725. echo "$as_me:1892: \$? = $ac_status" >&5
  1726. (exit $ac_status); } &&
  1727. { ac_try='test -s conftest.$ac_objext'
  1728. { (eval echo "$as_me:1895: \"$ac_try\"") >&5
  1729. (eval $ac_try) 2>&5
  1730. ac_status=$?
  1731. echo "$as_me:1898: \$? = $ac_status" >&5
  1732. (exit $ac_status); }; }; then
  1733. break
  1734. else
  1735. echo "$as_me: failed program was:" >&5
  1736. cat conftest.$ac_ext >&5
  1737. fi
  1738. rm -f conftest.$ac_objext conftest.$ac_ext
  1739. done
  1740. rm -f conftest*
  1741. if test -n "$ac_declaration"; then
  1742. echo '#ifdef __cplusplus' >>confdefs.h
  1743. echo $ac_declaration >>confdefs.h
  1744. echo '#endif' >>confdefs.h
  1745. fi
  1746. ac_ext=c
  1747. ac_cpp='$CPP $CPPFLAGS'
  1748. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1749. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1750. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1751. fullSrcDir=`cd $srcdir; pwd`
  1752. CMAKE_ROOT_DIR=$fullSrcDir
  1753. # Step 1: set the variable "system" to hold the name and version number
  1754. # for the system. This can usually be done via the "uname" command, but
  1755. # there are a few systems, like Next, where this doesn't work.
  1756. echo "$as_me:1927: checking system version (for dynamic loading)" >&5
  1757. echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6
  1758. if test -f /usr/lib/NextStep/software_version; then
  1759. system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
  1760. else
  1761. system=`uname -s`-`uname -r`
  1762. if test "$?" -ne 0 ; then
  1763. echo "$as_me:1934: result: unknown (can't find uname command)" >&5
  1764. echo "${ECHO_T}unknown (can't find uname command)" >&6
  1765. system=unknown
  1766. else
  1767. # Special check for weird MP-RAS system (uname returns weird
  1768. # results, and the version is kept in special file).
  1769. if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
  1770. system=MP-RAS-`awk '{print $3}' /etc/.relid'`
  1771. fi
  1772. echo "$as_me:1944: result: $system" >&5
  1773. echo "${ECHO_T}$system" >&6
  1774. fi
  1775. fi
  1776. CMAKE_ANSI_CFLAGS=""
  1777. # on hp use -Aa for ansi
  1778. if test $ac_cv_cxx_compiler_gnu = no; then
  1779. case $system in
  1780. HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
  1781. echo $ac_n "checking whether ${CC} accepts -Aa""... $ac_c" 1>&6
  1782. echo 'void f(){}' > conftest.c
  1783. if test -z "`${CC} -Aa -c conftest.c 2>&1`"; then
  1784. echo "$ac_t""yes" 1>&6
  1785. CMAKE_ANSI_CFLAGS="-Aa"
  1786. else
  1787. echo "$ac_t""no" 1>&6
  1788. fi
  1789. rm -f conftest*
  1790. ;;
  1791. IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
  1792. echo $ac_n "checking whether ${CC} accepts -LANG:std""... $ac_c" 1>&6
  1793. echo 'void f(){}' > conftest.c
  1794. if test -z "`${CC} -LANG:std -c conftest.c 2>&1`"; then
  1795. echo "$ac_t""yes" 1>&6
  1796. CMAKE_ANSI_CFLAGS="-LANG:std"
  1797. else
  1798. echo "$ac_t""no" 1>&6
  1799. fi
  1800. rm -f conftest*
  1801. ;;
  1802. esac
  1803. fi
  1804. # if we are not running g++ then we might need some other flags
  1805. # to get the templates compiled correctly
  1806. CMAKE_TEMPLATE_FLAGS=""
  1807. if test $ac_cv_cxx_compiler_gnu = no; then
  1808. echo $ac_n "checking whether ${CXX} accepts -ptused -no_prelink""... $ac_c" 1>&6
  1809. echo 'void f(){}' > conftest.cc
  1810. if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
  1811. echo "$ac_t""yes" 1>&6
  1812. CMAKE_TEMPLATE_FLAGS="-ptused -no_prelink"
  1813. else
  1814. echo "$ac_t""no" 1>&6
  1815. fi
  1816. rm -f conftest*
  1817. echo $ac_n "checking whether ${CXX} accepts -instances=semiexplicit""... $ac_c" 1>&6
  1818. echo 'void f(){}' > conftest.cc
  1819. if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
  1820. echo "$ac_t""yes" 1>&6
  1821. CMAKE_TEMPLATE_FLAGS="-instances=static"
  1822. else
  1823. echo "$ac_t""no" 1>&6
  1824. fi
  1825. fi
  1826. # check no g++ compilers to see if they have the standard
  1827. # ansi stream files (without the .h)
  1828. if test $ac_cv_cxx_compiler_gnu = no; then
  1829. echo "$as_me:2004: checking ansi standard C++ stream headers " >&5
  1830. echo $ECHO_N "checking ansi standard C++ stream headers ... $ECHO_C" >&6
  1831. rm -rf conftest.*
  1832. cat > conftest.cc <<!
  1833. #include <iostream>
  1834. !
  1835. if test -z "`${CXX} $CMAKE_ANSI_CFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
  1836. echo "$ac_t""yes" 1>&6
  1837. else
  1838. cat >>confdefs.h <<\EOF
  1839. #define CMAKE_NO_ANSI_STREAM_HEADERS 1
  1840. EOF
  1841. echo "$ac_t""no" 1>&6
  1842. fi
  1843. fi
  1844. # check to see if stl is in the std namespace
  1845. if test $ac_cv_cxx_compiler_gnu = no; then
  1846. echo "$as_me:2023: checking ansi standard namespace support " >&5
  1847. echo $ECHO_N "checking ansi standard namespace support ... $ECHO_C" >&6
  1848. rm -rf conftest.*
  1849. cat > conftest.cc <<!
  1850. #include <list>
  1851. void foo() { std::list<int> l; }
  1852. !
  1853. if test -z "`${CXX} $CMAKE_ANSI_CFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
  1854. echo "$ac_t""yes" 1>&6
  1855. else
  1856. cat >>confdefs.h <<\EOF
  1857. #define CMAKE_NO_STD_NAMESPACE 1
  1858. EOF
  1859. echo "$ac_t""no" 1>&6
  1860. fi
  1861. fi
  1862. # check to see if for scoping is supported
  1863. if test $ac_cv_cxx_compiler_gnu = no; then
  1864. echo "$as_me:2043: checking ansi for scope support " >&5
  1865. echo $ECHO_N "checking ansi for scope support ... $ECHO_C" >&6
  1866. rm -rf conftest.*
  1867. cat > conftest.cc <<!
  1868. void foo() { for(int i;;); for(int i;;); }
  1869. !
  1870. if test -z "`${CXX} $CMAKE_ANSI_CFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
  1871. echo "$ac_t""yes" 1>&6
  1872. else
  1873. cat >>confdefs.h <<\EOF
  1874. #define CMAKE_NO_ANSI_FOR_SCOPE 1
  1875. EOF
  1876. echo "$ac_t""no" 1>&6
  1877. fi
  1878. fi
  1879. # find make to use to build cmake, prefer gmake
  1880. for ac_prog in gmake make
  1881. do
  1882. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1883. set dummy $ac_prog; ac_word=$2
  1884. echo "$as_me:2065: checking for $ac_word" >&5
  1885. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1886. if test "${ac_cv_path_RUNMAKE+set}" = set; then
  1887. echo $ECHO_N "(cached) $ECHO_C" >&6
  1888. else
  1889. case $RUNMAKE in
  1890. [\\/]* | ?:[\\/]*)
  1891. ac_cv_path_RUNMAKE="$RUNMAKE" # Let the user override the test with a path.
  1892. ;;
  1893. *)
  1894. ac_save_IFS=$IFS; IFS=$ac_path_separator
  1895. ac_dummy="$PATH"
  1896. for ac_dir in $ac_dummy; do
  1897. IFS=$ac_save_IFS
  1898. test -z "$ac_dir" && ac_dir=.
  1899. if $as_executable_p "$ac_dir/$ac_word"; then
  1900. ac_cv_path_RUNMAKE="$ac_dir/$ac_word"
  1901. echo "$as_me:2082: found $ac_dir/$ac_word" >&5
  1902. break
  1903. fi
  1904. done
  1905. ;;
  1906. esac
  1907. fi
  1908. RUNMAKE=$ac_cv_path_RUNMAKE
  1909. if test -n "$RUNMAKE"; then
  1910. echo "$as_me:2093: result: $RUNMAKE" >&5
  1911. echo "${ECHO_T}$RUNMAKE" >&6
  1912. else
  1913. echo "$as_me:2096: result: no" >&5
  1914. echo "${ECHO_T}no" >&6
  1915. fi
  1916. test -n "$RUNMAKE" && break
  1917. done
  1918. ac_config_files="$ac_config_files Makefile Source/Makefile"
  1919. cat >confcache <<\_ACEOF
  1920. # This file is a shell script that caches the results of configure
  1921. # tests run on this system so they can be shared between configure
  1922. # scripts and configure runs, see configure's option --config-cache.
  1923. # It is not useful on other systems. If it contains results you don't
  1924. # want to keep, you may remove or edit it.
  1925. #
  1926. # config.status only pays attention to the cache file if you give it
  1927. # the --recheck option to rerun configure.
  1928. #
  1929. # `ac_cv_env_foo' variables (set or unset) will be overriden when
  1930. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  1931. # following values.
  1932. _ACEOF
  1933. # The following way of writing the cache mishandles newlines in values,
  1934. # but we know of no workaround that is simple, portable, and efficient.
  1935. # So, don't put newlines in cache variables' values.
  1936. # Ultrix sh set writes to stderr and can't be redirected directly,
  1937. # and sets the high bit in the cache file unless we assign to the vars.
  1938. {
  1939. (set) 2>&1 |
  1940. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1941. *ac_space=\ *)
  1942. # `set' does not quote correctly, so add quotes (double-quote
  1943. # substitution turns \\\\ into \\, and sed turns \\ into \).
  1944. sed -n \
  1945. "s/'/'\\\\''/g;
  1946. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  1947. ;;
  1948. *)
  1949. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1950. sed -n \
  1951. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1952. ;;
  1953. esac;
  1954. } |
  1955. sed '
  1956. t clear
  1957. : clear
  1958. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  1959. t end
  1960. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  1961. : end' >>confcache
  1962. if cmp -s $cache_file confcache; then :; else
  1963. if test -w $cache_file; then
  1964. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  1965. cat confcache >$cache_file
  1966. else
  1967. echo "not updating unwritable cache $cache_file"
  1968. fi
  1969. fi
  1970. rm -f confcache
  1971. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1972. # Let make expand exec_prefix.
  1973. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1974. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  1975. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  1976. # trailing colons and then remove the whole line if VPATH becomes empty
  1977. # (actually we leave an empty line to preserve line numbers).
  1978. if test "x$srcdir" = x.; then
  1979. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  1980. s/:*\$(srcdir):*/:/;
  1981. s/:*\${srcdir}:*/:/;
  1982. s/:*@srcdir@:*/:/;
  1983. s/^\([^=]*=[ ]*\):*/\1/;
  1984. s/:*$//;
  1985. s/^[^=]*=[ ]*$//;
  1986. }'
  1987. fi
  1988. DEFS=-DHAVE_CONFIG_H
  1989. : ${CONFIG_STATUS=./config.status}
  1990. ac_clean_files_save=$ac_clean_files
  1991. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  1992. { echo "$as_me:2183: creating $CONFIG_STATUS" >&5
  1993. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  1994. cat >$CONFIG_STATUS <<_ACEOF
  1995. #! $SHELL
  1996. # Generated automatically by configure.
  1997. # Run this file to recreate the current configuration.
  1998. # Compiler output produced by configure, useful for debugging
  1999. # configure, is in config.log if it exists.
  2000. debug=false
  2001. SHELL=\${CONFIG_SHELL-$SHELL}
  2002. ac_cs_invocation="\$0 \$@"
  2003. _ACEOF
  2004. cat >>$CONFIG_STATUS <<\_ACEOF
  2005. # Be Bourne compatible
  2006. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  2007. emulate sh
  2008. NULLCMD=:
  2009. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  2010. set -o posix
  2011. fi
  2012. # Name of the executable.
  2013. as_me=`echo "$0" |sed 's,.*[\\/],,'`
  2014. if expr a : '\(a\)' >/dev/null 2>&1; then
  2015. as_expr=expr
  2016. else
  2017. as_expr=false
  2018. fi
  2019. rm -f conf$$ conf$$.exe conf$$.file
  2020. echo >conf$$.file
  2021. if ln -s conf$$.file conf$$ 2>/dev/null; then
  2022. # We could just check for DJGPP; but this test a) works b) is more generic
  2023. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  2024. if test -f conf$$.exe; then
  2025. # Don't use ln at all; we don't have any links
  2026. as_ln_s='cp -p'
  2027. else
  2028. as_ln_s='ln -s'
  2029. fi
  2030. elif ln conf$$.file conf$$ 2>/dev/null; then
  2031. as_ln_s=ln
  2032. else
  2033. as_ln_s='cp -p'
  2034. fi
  2035. rm -f conf$$ conf$$.exe conf$$.file
  2036. as_executable_p="test -f"
  2037. # Support unset when possible.
  2038. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  2039. as_unset=unset
  2040. else
  2041. as_unset=false
  2042. fi
  2043. # NLS nuisances.
  2044. $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
  2045. $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
  2046. $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
  2047. $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
  2048. $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
  2049. $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
  2050. $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
  2051. $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
  2052. # IFS
  2053. # We need space, tab and new line, in precisely that order.
  2054. as_nl='
  2055. '
  2056. IFS=" $as_nl"
  2057. # CDPATH.
  2058. $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
  2059. exec 6>&1
  2060. _ACEOF
  2061. # Files that config.status was made for.
  2062. if test -n "$ac_config_files"; then
  2063. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  2064. fi
  2065. if test -n "$ac_config_headers"; then
  2066. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  2067. fi
  2068. if test -n "$ac_config_links"; then
  2069. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  2070. fi
  2071. if test -n "$ac_config_commands"; then
  2072. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  2073. fi
  2074. cat >>$CONFIG_STATUS <<\EOF
  2075. ac_cs_usage="\
  2076. \`$as_me' instantiates files from templates according to the
  2077. current configuration.
  2078. Usage: $0 [OPTIONS] [FILE]...
  2079. -h, --help print this help, then exit
  2080. -V, --version print version number, then exit
  2081. -d, --debug don't remove temporary files
  2082. --recheck update $as_me by reconfiguring in the same conditions
  2083. --file=FILE[:TEMPLATE]
  2084. instantiate the configuration file FILE
  2085. --header=FILE[:TEMPLATE]
  2086. instantiate the configuration header FILE
  2087. Configuration files:
  2088. $config_files
  2089. Configuration headers:
  2090. $config_headers
  2091. Report bugs to <[email protected]>."
  2092. EOF
  2093. cat >>$CONFIG_STATUS <<EOF
  2094. ac_cs_version="\\
  2095. config.status
  2096. configured by $0, generated by GNU Autoconf 2.52,
  2097. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  2098. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  2099. Free Software Foundation, Inc.
  2100. This config.status script is free software; the Free Software Foundation
  2101. gives unlimited permission to copy, distribute and modify it."
  2102. srcdir=$srcdir
  2103. EOF
  2104. cat >>$CONFIG_STATUS <<\EOF
  2105. # If no file are specified by the user, then we need to provide default
  2106. # value. By we need to know if files were specified by the user.
  2107. ac_need_defaults=:
  2108. while test $# != 0
  2109. do
  2110. case $1 in
  2111. --*=*)
  2112. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  2113. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  2114. shift
  2115. set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
  2116. shift
  2117. ;;
  2118. -*);;
  2119. *) # This is not an option, so the user has probably given explicit
  2120. # arguments.
  2121. ac_need_defaults=false;;
  2122. esac
  2123. case $1 in
  2124. # Handling of the options.
  2125. EOF
  2126. cat >>$CONFIG_STATUS <<EOF
  2127. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2128. echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
  2129. exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
  2130. EOF
  2131. cat >>$CONFIG_STATUS <<\EOF
  2132. --version | --vers* | -V )
  2133. echo "$ac_cs_version"; exit 0 ;;
  2134. --he | --h)
  2135. # Conflict between --help and --header
  2136. { { echo "$as_me:2355: error: ambiguous option: $1
  2137. Try \`$0 --help' for more information." >&5
  2138. echo "$as_me: error: ambiguous option: $1
  2139. Try \`$0 --help' for more information." >&2;}
  2140. { (exit 1); exit 1; }; };;
  2141. --help | --hel | -h )
  2142. echo "$ac_cs_usage"; exit 0 ;;
  2143. --debug | --d* | -d )
  2144. debug=: ;;
  2145. --file | --fil | --fi | --f )
  2146. shift
  2147. CONFIG_FILES="$CONFIG_FILES $1"
  2148. ac_need_defaults=false;;
  2149. --header | --heade | --head | --hea )
  2150. shift
  2151. CONFIG_HEADERS="$CONFIG_HEADERS $1"
  2152. ac_need_defaults=false;;
  2153. # This is an error.
  2154. -*) { { echo "$as_me:2374: error: unrecognized option: $1
  2155. Try \`$0 --help' for more information." >&5
  2156. echo "$as_me: error: unrecognized option: $1
  2157. Try \`$0 --help' for more information." >&2;}
  2158. { (exit 1); exit 1; }; } ;;
  2159. *) ac_config_targets="$ac_config_targets $1" ;;
  2160. esac
  2161. shift
  2162. done
  2163. exec 5>>config.log
  2164. cat >&5 << _ACEOF
  2165. ## ----------------------- ##
  2166. ## Running config.status. ##
  2167. ## ----------------------- ##
  2168. This file was extended by $as_me 2.52, executed with
  2169. CONFIG_FILES = $CONFIG_FILES
  2170. CONFIG_HEADERS = $CONFIG_HEADERS
  2171. CONFIG_LINKS = $CONFIG_LINKS
  2172. CONFIG_COMMANDS = $CONFIG_COMMANDS
  2173. > $ac_cs_invocation
  2174. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  2175. _ACEOF
  2176. EOF
  2177. cat >>$CONFIG_STATUS <<\EOF
  2178. for ac_config_target in $ac_config_targets
  2179. do
  2180. case "$ac_config_target" in
  2181. # Handling of arguments.
  2182. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  2183. "Source/Makefile" ) CONFIG_FILES="$CONFIG_FILES Source/Makefile" ;;
  2184. "Source/cmConfigure.h" ) CONFIG_HEADERS="$CONFIG_HEADERS Source/cmConfigure.h" ;;
  2185. *) { { echo "$as_me:2412: error: invalid argument: $ac_config_target" >&5
  2186. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  2187. { (exit 1); exit 1; }; };;
  2188. esac
  2189. done
  2190. # If the user did not use the arguments to specify the items to instantiate,
  2191. # then the envvar interface is used. Set only those that are not.
  2192. # We use the long form for the default assignment because of an extremely
  2193. # bizarre bug on SunOS 4.1.3.
  2194. if $ac_need_defaults; then
  2195. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  2196. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  2197. fi
  2198. # Create a temporary directory, and hook for its removal unless debugging.
  2199. $debug ||
  2200. {
  2201. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  2202. trap '{ (exit 1); exit 1; }' 1 2 13 15
  2203. }
  2204. # Create a (secure) tmp directory for tmp files.
  2205. : ${TMPDIR=/tmp}
  2206. {
  2207. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
  2208. test -n "$tmp" && test -d "$tmp"
  2209. } ||
  2210. {
  2211. tmp=$TMPDIR/cs$$-$RANDOM
  2212. (umask 077 && mkdir $tmp)
  2213. } ||
  2214. {
  2215. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  2216. { (exit 1); exit 1; }
  2217. }
  2218. EOF
  2219. cat >>$CONFIG_STATUS <<EOF
  2220. #
  2221. # CONFIG_FILES section.
  2222. #
  2223. # No need to generate the scripts if there are no CONFIG_FILES.
  2224. # This happens for instance when ./config.status config.h
  2225. if test -n "\$CONFIG_FILES"; then
  2226. # Protect against being on the right side of a sed subst in config.status.
  2227. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  2228. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  2229. s,@SHELL@,$SHELL,;t t
  2230. s,@exec_prefix@,$exec_prefix,;t t
  2231. s,@prefix@,$prefix,;t t
  2232. s,@program_transform_name@,$program_transform_name,;t t
  2233. s,@bindir@,$bindir,;t t
  2234. s,@sbindir@,$sbindir,;t t
  2235. s,@libexecdir@,$libexecdir,;t t
  2236. s,@datadir@,$datadir,;t t
  2237. s,@sysconfdir@,$sysconfdir,;t t
  2238. s,@sharedstatedir@,$sharedstatedir,;t t
  2239. s,@localstatedir@,$localstatedir,;t t
  2240. s,@libdir@,$libdir,;t t
  2241. s,@includedir@,$includedir,;t t
  2242. s,@oldincludedir@,$oldincludedir,;t t
  2243. s,@infodir@,$infodir,;t t
  2244. s,@mandir@,$mandir,;t t
  2245. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  2246. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  2247. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  2248. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  2249. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  2250. s,@build_alias@,$build_alias,;t t
  2251. s,@host_alias@,$host_alias,;t t
  2252. s,@target_alias@,$target_alias,;t t
  2253. s,@ECHO_C@,$ECHO_C,;t t
  2254. s,@ECHO_N@,$ECHO_N,;t t
  2255. s,@ECHO_T@,$ECHO_T,;t t
  2256. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  2257. s,@DEFS@,$DEFS,;t t
  2258. s,@LIBS@,$LIBS,;t t
  2259. s,@CMAKE_CONFIG_DIR@,$CMAKE_CONFIG_DIR,;t t
  2260. s,@CC@,$CC,;t t
  2261. s,@CFLAGS@,$CFLAGS,;t t
  2262. s,@LDFLAGS@,$LDFLAGS,;t t
  2263. s,@CPPFLAGS@,$CPPFLAGS,;t t
  2264. s,@ac_ct_CC@,$ac_ct_CC,;t t
  2265. s,@EXEEXT@,$EXEEXT,;t t
  2266. s,@OBJEXT@,$OBJEXT,;t t
  2267. s,@CXX@,$CXX,;t t
  2268. s,@CXXFLAGS@,$CXXFLAGS,;t t
  2269. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  2270. s,@CMAKE_ROOT_DIR@,$CMAKE_ROOT_DIR,;t t
  2271. s,@CMAKE_ANSI_CFLAGS@,$CMAKE_ANSI_CFLAGS,;t t
  2272. s,@CMAKE_TEMPLATE_FLAGS@,$CMAKE_TEMPLATE_FLAGS,;t t
  2273. s,@RUNMAKE@,$RUNMAKE,;t t
  2274. CEOF
  2275. EOF
  2276. cat >>$CONFIG_STATUS <<\EOF
  2277. # Split the substitutions into bite-sized pieces for seds with
  2278. # small command number limits, like on Digital OSF/1 and HP-UX.
  2279. ac_max_sed_lines=48
  2280. ac_sed_frag=1 # Number of current file.
  2281. ac_beg=1 # First line for current file.
  2282. ac_end=$ac_max_sed_lines # Line after last line for current file.
  2283. ac_more_lines=:
  2284. ac_sed_cmds=
  2285. while $ac_more_lines; do
  2286. if test $ac_beg -gt 1; then
  2287. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  2288. else
  2289. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  2290. fi
  2291. if test ! -s $tmp/subs.frag; then
  2292. ac_more_lines=false
  2293. else
  2294. # The purpose of the label and of the branching condition is to
  2295. # speed up the sed processing (if there are no `@' at all, there
  2296. # is no need to browse any of the substitutions).
  2297. # These are the two extra sed commands mentioned above.
  2298. (echo ':t
  2299. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  2300. if test -z "$ac_sed_cmds"; then
  2301. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  2302. else
  2303. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  2304. fi
  2305. ac_sed_frag=`expr $ac_sed_frag + 1`
  2306. ac_beg=$ac_end
  2307. ac_end=`expr $ac_end + $ac_max_sed_lines`
  2308. fi
  2309. done
  2310. if test -z "$ac_sed_cmds"; then
  2311. ac_sed_cmds=cat
  2312. fi
  2313. fi # test -n "$CONFIG_FILES"
  2314. EOF
  2315. cat >>$CONFIG_STATUS <<\EOF
  2316. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  2317. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2318. case $ac_file in
  2319. - | *:- | *:-:* ) # input from stdin
  2320. cat >$tmp/stdin
  2321. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  2322. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  2323. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  2324. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  2325. * ) ac_file_in=$ac_file.in ;;
  2326. esac
  2327. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  2328. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2329. X"$ac_file" : 'X\(//\)[^/]' \| \
  2330. X"$ac_file" : 'X\(//\)$' \| \
  2331. X"$ac_file" : 'X\(/\)' \| \
  2332. . : '\(.\)' 2>/dev/null ||
  2333. echo X"$ac_file" |
  2334. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  2335. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  2336. /^X\(\/\/\)$/{ s//\1/; q; }
  2337. /^X\(\/\).*/{ s//\1/; q; }
  2338. s/.*/./; q'`
  2339. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2340. { case "$ac_dir" in
  2341. [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  2342. *) as_incr_dir=.;;
  2343. esac
  2344. as_dummy="$ac_dir"
  2345. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  2346. case $as_mkdir_dir in
  2347. # Skip DOS drivespec
  2348. ?:) as_incr_dir=$as_mkdir_dir ;;
  2349. *)
  2350. as_incr_dir=$as_incr_dir/$as_mkdir_dir
  2351. test -d "$as_incr_dir" || mkdir "$as_incr_dir"
  2352. ;;
  2353. esac
  2354. done; }
  2355. ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
  2356. # A "../" for each directory in $ac_dir_suffix.
  2357. ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
  2358. else
  2359. ac_dir_suffix= ac_dots=
  2360. fi
  2361. case $srcdir in
  2362. .) ac_srcdir=.
  2363. if test -z "$ac_dots"; then
  2364. ac_top_srcdir=.
  2365. else
  2366. ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
  2367. fi ;;
  2368. [\\/]* | ?:[\\/]* )
  2369. ac_srcdir=$srcdir$ac_dir_suffix;
  2370. ac_top_srcdir=$srcdir ;;
  2371. *) # Relative path.
  2372. ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
  2373. ac_top_srcdir=$ac_dots$srcdir ;;
  2374. esac
  2375. if test x"$ac_file" != x-; then
  2376. { echo "$as_me:2617: creating $ac_file" >&5
  2377. echo "$as_me: creating $ac_file" >&6;}
  2378. rm -f "$ac_file"
  2379. fi
  2380. # Let's still pretend it is `configure' which instantiates (i.e., don't
  2381. # use $as_me), people would be surprised to read:
  2382. # /* config.h. Generated automatically by config.status. */
  2383. configure_input="Generated automatically from `echo $ac_file_in |
  2384. sed 's,.*/,,'` by configure."
  2385. # First look for the input files in the build tree, otherwise in the
  2386. # src tree.
  2387. ac_file_inputs=`IFS=:
  2388. for f in $ac_file_in; do
  2389. case $f in
  2390. -) echo $tmp/stdin ;;
  2391. [\\/$]*)
  2392. # Absolute (can't be DOS-style, as IFS=:)
  2393. test -f "$f" || { { echo "$as_me:2635: error: cannot find input file: $f" >&5
  2394. echo "$as_me: error: cannot find input file: $f" >&2;}
  2395. { (exit 1); exit 1; }; }
  2396. echo $f;;
  2397. *) # Relative
  2398. if test -f "$f"; then
  2399. # Build tree
  2400. echo $f
  2401. elif test -f "$srcdir/$f"; then
  2402. # Source tree
  2403. echo $srcdir/$f
  2404. else
  2405. # /dev/null tree
  2406. { { echo "$as_me:2648: error: cannot find input file: $f" >&5
  2407. echo "$as_me: error: cannot find input file: $f" >&2;}
  2408. { (exit 1); exit 1; }; }
  2409. fi;;
  2410. esac
  2411. done` || { (exit 1); exit 1; }
  2412. EOF
  2413. cat >>$CONFIG_STATUS <<EOF
  2414. sed "$ac_vpsub
  2415. $extrasub
  2416. EOF
  2417. cat >>$CONFIG_STATUS <<\EOF
  2418. :t
  2419. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  2420. s,@configure_input@,$configure_input,;t t
  2421. s,@srcdir@,$ac_srcdir,;t t
  2422. s,@top_srcdir@,$ac_top_srcdir,;t t
  2423. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  2424. rm -f $tmp/stdin
  2425. if test x"$ac_file" != x-; then
  2426. mv $tmp/out $ac_file
  2427. else
  2428. cat $tmp/out
  2429. rm -f $tmp/out
  2430. fi
  2431. done
  2432. EOF
  2433. cat >>$CONFIG_STATUS <<\EOF
  2434. #
  2435. # CONFIG_HEADER section.
  2436. #
  2437. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2438. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2439. #
  2440. # ac_d sets the value in "#define NAME VALUE" lines.
  2441. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  2442. ac_dB='[ ].*$,\1#\2'
  2443. ac_dC=' '
  2444. ac_dD=',;t'
  2445. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2446. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  2447. ac_uB='$,\1#\2define\3'
  2448. ac_uC=' '
  2449. ac_uD=',;t'
  2450. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  2451. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2452. case $ac_file in
  2453. - | *:- | *:-:* ) # input from stdin
  2454. cat >$tmp/stdin
  2455. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  2456. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  2457. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  2458. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  2459. * ) ac_file_in=$ac_file.in ;;
  2460. esac
  2461. test x"$ac_file" != x- && { echo "$as_me:2708: creating $ac_file" >&5
  2462. echo "$as_me: creating $ac_file" >&6;}
  2463. # First look for the input files in the build tree, otherwise in the
  2464. # src tree.
  2465. ac_file_inputs=`IFS=:
  2466. for f in $ac_file_in; do
  2467. case $f in
  2468. -) echo $tmp/stdin ;;
  2469. [\\/$]*)
  2470. # Absolute (can't be DOS-style, as IFS=:)
  2471. test -f "$f" || { { echo "$as_me:2719: error: cannot find input file: $f" >&5
  2472. echo "$as_me: error: cannot find input file: $f" >&2;}
  2473. { (exit 1); exit 1; }; }
  2474. echo $f;;
  2475. *) # Relative
  2476. if test -f "$f"; then
  2477. # Build tree
  2478. echo $f
  2479. elif test -f "$srcdir/$f"; then
  2480. # Source tree
  2481. echo $srcdir/$f
  2482. else
  2483. # /dev/null tree
  2484. { { echo "$as_me:2732: error: cannot find input file: $f" >&5
  2485. echo "$as_me: error: cannot find input file: $f" >&2;}
  2486. { (exit 1); exit 1; }; }
  2487. fi;;
  2488. esac
  2489. done` || { (exit 1); exit 1; }
  2490. # Remove the trailing spaces.
  2491. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  2492. EOF
  2493. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  2494. # `conftest.undefs', that substitutes the proper values into
  2495. # config.h.in to produce config.h. The first handles `#define'
  2496. # templates, and the second `#undef' templates.
  2497. # And first: Protect against being on the right side of a sed subst in
  2498. # config.status. Protect against being in an unquoted here document
  2499. # in config.status.
  2500. rm -f conftest.defines conftest.undefs
  2501. # Using a here document instead of a string reduces the quoting nightmare.
  2502. # Putting comments in sed scripts is not portable.
  2503. #
  2504. # `end' is used to avoid that the second main sed command (meant for
  2505. # 0-ary CPP macros) applies to n-ary macro definitions.
  2506. # See the Autoconf documentation for `clear'.
  2507. cat >confdef2sed.sed <<\EOF
  2508. s/[\\&,]/\\&/g
  2509. s,[\\$`],\\&,g
  2510. t clear
  2511. : clear
  2512. s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
  2513. t end
  2514. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  2515. : end
  2516. EOF
  2517. # If some macros were called several times there might be several times
  2518. # the same #defines, which is useless. Nevertheless, we may not want to
  2519. # sort them, since we want the *last* AC-DEFINE to be honored.
  2520. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  2521. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  2522. rm -f confdef2sed.sed
  2523. # This sed command replaces #undef with comments. This is necessary, for
  2524. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2525. # on some systems where configure will not decide to define it.
  2526. cat >>conftest.undefs <<\EOF
  2527. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  2528. EOF
  2529. # Break up conftest.defines because some shells have a limit on the size
  2530. # of here documents, and old seds have small limits too (100 cmds).
  2531. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  2532. echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  2533. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  2534. echo ' :' >>$CONFIG_STATUS
  2535. rm -f conftest.tail
  2536. while grep . conftest.defines >/dev/null
  2537. do
  2538. # Write a limited-size here document to $tmp/defines.sed.
  2539. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  2540. # Speed up: don't consider the non `#define' lines.
  2541. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  2542. # Work around the forget-to-reset-the-flag bug.
  2543. echo 't clr' >>$CONFIG_STATUS
  2544. echo ': clr' >>$CONFIG_STATUS
  2545. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  2546. echo 'CEOF
  2547. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  2548. rm -f $tmp/in
  2549. mv $tmp/out $tmp/in
  2550. ' >>$CONFIG_STATUS
  2551. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  2552. rm -f conftest.defines
  2553. mv conftest.tail conftest.defines
  2554. done
  2555. rm -f conftest.defines
  2556. echo ' fi # egrep' >>$CONFIG_STATUS
  2557. echo >>$CONFIG_STATUS
  2558. # Break up conftest.undefs because some shells have a limit on the size
  2559. # of here documents, and old seds have small limits too (100 cmds).
  2560. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  2561. rm -f conftest.tail
  2562. while grep . conftest.undefs >/dev/null
  2563. do
  2564. # Write a limited-size here document to $tmp/undefs.sed.
  2565. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  2566. # Speed up: don't consider the non `#undef'
  2567. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  2568. # Work around the forget-to-reset-the-flag bug.
  2569. echo 't clr' >>$CONFIG_STATUS
  2570. echo ': clr' >>$CONFIG_STATUS
  2571. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  2572. echo 'CEOF
  2573. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  2574. rm -f $tmp/in
  2575. mv $tmp/out $tmp/in
  2576. ' >>$CONFIG_STATUS
  2577. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  2578. rm -f conftest.undefs
  2579. mv conftest.tail conftest.undefs
  2580. done
  2581. rm -f conftest.undefs
  2582. cat >>$CONFIG_STATUS <<\EOF
  2583. # Let's still pretend it is `configure' which instantiates (i.e., don't
  2584. # use $as_me), people would be surprised to read:
  2585. # /* config.h. Generated automatically by config.status. */
  2586. if test x"$ac_file" = x-; then
  2587. echo "/* Generated automatically by configure. */" >$tmp/config.h
  2588. else
  2589. echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
  2590. fi
  2591. cat $tmp/in >>$tmp/config.h
  2592. rm -f $tmp/in
  2593. if test x"$ac_file" != x-; then
  2594. if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
  2595. { echo "$as_me:2849: $ac_file is unchanged" >&5
  2596. echo "$as_me: $ac_file is unchanged" >&6;}
  2597. else
  2598. ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2599. X"$ac_file" : 'X\(//\)[^/]' \| \
  2600. X"$ac_file" : 'X\(//\)$' \| \
  2601. X"$ac_file" : 'X\(/\)' \| \
  2602. . : '\(.\)' 2>/dev/null ||
  2603. echo X"$ac_file" |
  2604. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  2605. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  2606. /^X\(\/\/\)$/{ s//\1/; q; }
  2607. /^X\(\/\).*/{ s//\1/; q; }
  2608. s/.*/./; q'`
  2609. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2610. { case "$ac_dir" in
  2611. [\\/]* | ?:[\\/]* ) as_incr_dir=;;
  2612. *) as_incr_dir=.;;
  2613. esac
  2614. as_dummy="$ac_dir"
  2615. for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
  2616. case $as_mkdir_dir in
  2617. # Skip DOS drivespec
  2618. ?:) as_incr_dir=$as_mkdir_dir ;;
  2619. *)
  2620. as_incr_dir=$as_incr_dir/$as_mkdir_dir
  2621. test -d "$as_incr_dir" || mkdir "$as_incr_dir"
  2622. ;;
  2623. esac
  2624. done; }
  2625. fi
  2626. rm -f $ac_file
  2627. mv $tmp/config.h $ac_file
  2628. fi
  2629. else
  2630. cat $tmp/config.h
  2631. rm -f $tmp/config.h
  2632. fi
  2633. done
  2634. EOF
  2635. cat >>$CONFIG_STATUS <<\EOF
  2636. { (exit 0); exit 0; }
  2637. EOF
  2638. chmod +x $CONFIG_STATUS
  2639. ac_clean_files=$ac_clean_files_save
  2640. # configure is writing to config.log, and then calls config.status.
  2641. # config.status does its own redirection, appending to config.log.
  2642. # Unfortunately, on DOS this fails, as config.log is still kept open
  2643. # by configure, so config.status won't be able to write to it; its
  2644. # output is simply discarded. So we exec the FD to /dev/null,
  2645. # effectively closing config.log, so it can be properly (re)opened and
  2646. # appended to by config.status. When coming back to configure, we
  2647. # need to make the FD available again.
  2648. if test "$no_create" != yes; then
  2649. ac_cs_success=:
  2650. exec 5>/dev/null
  2651. $SHELL $CONFIG_STATUS || ac_cs_success=false
  2652. exec 5>>config.log
  2653. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  2654. # would make configure fail if this is the last instruction.
  2655. $ac_cs_success || { (exit 1); exit 1; }
  2656. fi
  2657. # build cmake
  2658. $RUNMAKE
  2659. # run cmake
  2660. ./Source/cmake $fullSrcDir
  2661. # run cmake depends
  2662. $RUNMAKE depend