configure 52 KB

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