configure 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708
  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. # find make to use to build cmake, prefer gmake
  460. for ac_prog in gmake make
  461. do
  462. # Extract the first word of "$ac_prog", so it can be a program name with args.
  463. set dummy $ac_prog; ac_word=$2
  464. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  465. echo "configure:534: checking for $ac_word" >&5
  466. if eval "test \"`echo '$''{'ac_cv_path_RUNMAKE'+set}'`\" = set"; then
  467. echo $ac_n "(cached) $ac_c" 1>&6
  468. else
  469. case "$RUNMAKE" in
  470. /*)
  471. ac_cv_path_RUNMAKE="$RUNMAKE" # Let the user override the test with a path.
  472. ;;
  473. ?:/*)
  474. ac_cv_path_RUNMAKE="$RUNMAKE" # Let the user override the test with a dos path.
  475. ;;
  476. *)
  477. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  478. ac_dummy="$PATH"
  479. for ac_dir in $ac_dummy; do
  480. test -z "$ac_dir" && ac_dir=.
  481. if test -f $ac_dir/$ac_word; then
  482. ac_cv_path_RUNMAKE="$ac_dir/$ac_word"
  483. break
  484. fi
  485. done
  486. IFS="$ac_save_ifs"
  487. ;;
  488. esac
  489. fi
  490. RUNMAKE="$ac_cv_path_RUNMAKE"
  491. if test -n "$RUNMAKE"; then
  492. echo "$ac_t""$RUNMAKE" 1>&6
  493. else
  494. echo "$ac_t""no" 1>&6
  495. fi
  496. test -n "$RUNMAKE" && break
  497. done
  498. fullSrcDir=`cd $srcdir; pwd`
  499. CMAKE_ROOT_DIR=$fullSrcDir
  500. if test "x$BUILD_CMAKE_IN_SUBDIR" = "xtrue"; then
  501. #
  502. # check for some programs we use
  503. #
  504. # save the CFLAGS and CXXFLAGS specified by the user
  505. save_CFLAGS=$CFLAGS
  506. save_CXXFLAGS=$CXXFLAGS
  507. # let autoconf find cc and CC, it will try to add -g -O2 to CFLAGS and CXXFLAGS
  508. # Extract the first word of "gcc", so it can be a program name with args.
  509. set dummy gcc; ac_word=$2
  510. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  511. echo "configure:587: checking for $ac_word" >&5
  512. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  513. echo $ac_n "(cached) $ac_c" 1>&6
  514. else
  515. if test -n "$CC"; then
  516. ac_cv_prog_CC="$CC" # Let the user override the test.
  517. else
  518. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  519. ac_dummy="$PATH"
  520. for ac_dir in $ac_dummy; do
  521. test -z "$ac_dir" && ac_dir=.
  522. if test -f $ac_dir/$ac_word; then
  523. ac_cv_prog_CC="gcc"
  524. break
  525. fi
  526. done
  527. IFS="$ac_save_ifs"
  528. fi
  529. fi
  530. CC="$ac_cv_prog_CC"
  531. if test -n "$CC"; then
  532. echo "$ac_t""$CC" 1>&6
  533. else
  534. echo "$ac_t""no" 1>&6
  535. fi
  536. if test -z "$CC"; then
  537. # Extract the first word of "cc", so it can be a program name with args.
  538. set dummy cc; ac_word=$2
  539. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  540. echo "configure:617: checking for $ac_word" >&5
  541. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  542. echo $ac_n "(cached) $ac_c" 1>&6
  543. else
  544. if test -n "$CC"; then
  545. ac_cv_prog_CC="$CC" # Let the user override the test.
  546. else
  547. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  548. ac_prog_rejected=no
  549. ac_dummy="$PATH"
  550. for ac_dir in $ac_dummy; do
  551. test -z "$ac_dir" && ac_dir=.
  552. if test -f $ac_dir/$ac_word; then
  553. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  554. ac_prog_rejected=yes
  555. continue
  556. fi
  557. ac_cv_prog_CC="cc"
  558. break
  559. fi
  560. done
  561. IFS="$ac_save_ifs"
  562. if test $ac_prog_rejected = yes; then
  563. # We found a bogon in the path, so make sure we never use it.
  564. set dummy $ac_cv_prog_CC
  565. shift
  566. if test $# -gt 0; then
  567. # We chose a different compiler from the bogus one.
  568. # However, it has the same basename, so the bogon will be chosen
  569. # first if we set CC to just the basename; use the full file name.
  570. shift
  571. set dummy "$ac_dir/$ac_word" "$@"
  572. shift
  573. ac_cv_prog_CC="$@"
  574. fi
  575. fi
  576. fi
  577. fi
  578. CC="$ac_cv_prog_CC"
  579. if test -n "$CC"; then
  580. echo "$ac_t""$CC" 1>&6
  581. else
  582. echo "$ac_t""no" 1>&6
  583. fi
  584. if test -z "$CC"; then
  585. case "`uname -s`" in
  586. *win32* | *WIN32*)
  587. # Extract the first word of "cl", so it can be a program name with args.
  588. set dummy cl; ac_word=$2
  589. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  590. echo "configure:668: checking for $ac_word" >&5
  591. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  592. echo $ac_n "(cached) $ac_c" 1>&6
  593. else
  594. if test -n "$CC"; then
  595. ac_cv_prog_CC="$CC" # Let the user override the test.
  596. else
  597. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  598. ac_dummy="$PATH"
  599. for ac_dir in $ac_dummy; do
  600. test -z "$ac_dir" && ac_dir=.
  601. if test -f $ac_dir/$ac_word; then
  602. ac_cv_prog_CC="cl"
  603. break
  604. fi
  605. done
  606. IFS="$ac_save_ifs"
  607. fi
  608. fi
  609. CC="$ac_cv_prog_CC"
  610. if test -n "$CC"; then
  611. echo "$ac_t""$CC" 1>&6
  612. else
  613. echo "$ac_t""no" 1>&6
  614. fi
  615. ;;
  616. esac
  617. fi
  618. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  619. fi
  620. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  621. echo "configure:700: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  622. ac_ext=c
  623. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  624. ac_cpp='$CPP $CPPFLAGS'
  625. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  626. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  627. cross_compiling=$ac_cv_prog_cc_cross
  628. cat > conftest.$ac_ext << EOF
  629. #line 711 "configure"
  630. #include "confdefs.h"
  631. main(){return(0);}
  632. EOF
  633. if { (eval echo configure:716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  634. ac_cv_prog_cc_works=yes
  635. # If we can't run a trivial program, we are probably using a cross compiler.
  636. if (./conftest; exit) 2>/dev/null; then
  637. ac_cv_prog_cc_cross=no
  638. else
  639. ac_cv_prog_cc_cross=yes
  640. fi
  641. else
  642. echo "configure: failed program was:" >&5
  643. cat conftest.$ac_ext >&5
  644. ac_cv_prog_cc_works=no
  645. fi
  646. rm -fr conftest*
  647. ac_ext=c
  648. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  649. ac_cpp='$CPP $CPPFLAGS'
  650. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  651. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  652. cross_compiling=$ac_cv_prog_cc_cross
  653. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  654. if test $ac_cv_prog_cc_works = no; then
  655. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  656. fi
  657. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  658. echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  659. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  660. cross_compiling=$ac_cv_prog_cc_cross
  661. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  662. echo "configure:747: checking whether we are using GNU C" >&5
  663. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  664. echo $ac_n "(cached) $ac_c" 1>&6
  665. else
  666. cat > conftest.c <<EOF
  667. #ifdef __GNUC__
  668. yes;
  669. #endif
  670. EOF
  671. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  672. ac_cv_prog_gcc=yes
  673. else
  674. ac_cv_prog_gcc=no
  675. fi
  676. fi
  677. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  678. if test $ac_cv_prog_gcc = yes; then
  679. GCC=yes
  680. else
  681. GCC=
  682. fi
  683. ac_test_CFLAGS="${CFLAGS+set}"
  684. ac_save_CFLAGS="$CFLAGS"
  685. CFLAGS=
  686. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  687. echo "configure:775: checking whether ${CC-cc} accepts -g" >&5
  688. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  689. echo $ac_n "(cached) $ac_c" 1>&6
  690. else
  691. echo 'void f(){}' > conftest.c
  692. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  693. ac_cv_prog_cc_g=yes
  694. else
  695. ac_cv_prog_cc_g=no
  696. fi
  697. rm -f conftest*
  698. fi
  699. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  700. if test "$ac_test_CFLAGS" = set; then
  701. CFLAGS="$ac_save_CFLAGS"
  702. elif test $ac_cv_prog_cc_g = yes; then
  703. if test "$GCC" = yes; then
  704. CFLAGS="-g -O2"
  705. else
  706. CFLAGS="-g"
  707. fi
  708. else
  709. if test "$GCC" = yes; then
  710. CFLAGS="-O2"
  711. else
  712. CFLAGS=
  713. fi
  714. fi
  715. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  716. do
  717. # Extract the first word of "$ac_prog", so it can be a program name with args.
  718. set dummy $ac_prog; ac_word=$2
  719. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  720. echo "configure:811: checking for $ac_word" >&5
  721. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  722. echo $ac_n "(cached) $ac_c" 1>&6
  723. else
  724. if test -n "$CXX"; then
  725. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  726. else
  727. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  728. ac_dummy="$PATH"
  729. for ac_dir in $ac_dummy; do
  730. test -z "$ac_dir" && ac_dir=.
  731. if test -f $ac_dir/$ac_word; then
  732. ac_cv_prog_CXX="$ac_prog"
  733. break
  734. fi
  735. done
  736. IFS="$ac_save_ifs"
  737. fi
  738. fi
  739. CXX="$ac_cv_prog_CXX"
  740. if test -n "$CXX"; then
  741. echo "$ac_t""$CXX" 1>&6
  742. else
  743. echo "$ac_t""no" 1>&6
  744. fi
  745. test -n "$CXX" && break
  746. done
  747. test -n "$CXX" || CXX="gcc"
  748. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  749. echo "configure:843: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  750. ac_ext=C
  751. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  752. ac_cpp='$CXXCPP $CPPFLAGS'
  753. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  754. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  755. cross_compiling=$ac_cv_prog_cxx_cross
  756. cat > conftest.$ac_ext << EOF
  757. #line 854 "configure"
  758. #include "confdefs.h"
  759. int main(){return(0);}
  760. EOF
  761. if { (eval echo configure:859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  762. ac_cv_prog_cxx_works=yes
  763. # If we can't run a trivial program, we are probably using a cross compiler.
  764. if (./conftest; exit) 2>/dev/null; then
  765. ac_cv_prog_cxx_cross=no
  766. else
  767. ac_cv_prog_cxx_cross=yes
  768. fi
  769. else
  770. echo "configure: failed program was:" >&5
  771. cat conftest.$ac_ext >&5
  772. ac_cv_prog_cxx_works=no
  773. fi
  774. rm -fr conftest*
  775. ac_ext=c
  776. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  777. ac_cpp='$CPP $CPPFLAGS'
  778. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  779. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  780. cross_compiling=$ac_cv_prog_cc_cross
  781. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  782. if test $ac_cv_prog_cxx_works = no; then
  783. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  784. fi
  785. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  786. echo "configure:885: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  787. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  788. cross_compiling=$ac_cv_prog_cxx_cross
  789. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  790. echo "configure:890: checking whether we are using GNU C++" >&5
  791. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  792. echo $ac_n "(cached) $ac_c" 1>&6
  793. else
  794. cat > conftest.C <<EOF
  795. #ifdef __GNUC__
  796. yes;
  797. #endif
  798. EOF
  799. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  800. ac_cv_prog_gxx=yes
  801. else
  802. ac_cv_prog_gxx=no
  803. fi
  804. fi
  805. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  806. if test $ac_cv_prog_gxx = yes; then
  807. GXX=yes
  808. else
  809. GXX=
  810. fi
  811. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  812. ac_save_CXXFLAGS="$CXXFLAGS"
  813. CXXFLAGS=
  814. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  815. echo "configure:918: checking whether ${CXX-g++} accepts -g" >&5
  816. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  817. echo $ac_n "(cached) $ac_c" 1>&6
  818. else
  819. echo 'void f(){}' > conftest.cc
  820. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  821. ac_cv_prog_cxx_g=yes
  822. else
  823. ac_cv_prog_cxx_g=no
  824. fi
  825. rm -f conftest*
  826. fi
  827. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  828. if test "$ac_test_CXXFLAGS" = set; then
  829. CXXFLAGS="$ac_save_CXXFLAGS"
  830. elif test $ac_cv_prog_cxx_g = yes; then
  831. if test "$GXX" = yes; then
  832. CXXFLAGS="-g -O2"
  833. else
  834. CXXFLAGS="-g"
  835. fi
  836. else
  837. if test "$GXX" = yes; then
  838. CXXFLAGS="-O2"
  839. else
  840. CXXFLAGS=
  841. fi
  842. fi
  843. # restore the flags specified by the user and get rid of any flags
  844. # found by autoconf (we do not want -02 -g by default)
  845. CFLAGS=$save_CFLAGS
  846. CXXFLAGS=$save_CXXFLAGS
  847. # Parse the cmake version number out of the top-level CMake listfile.
  848. CMake_VERSION_MAJOR=`cat $fullSrcDir/CMakeLists.txt | sed -n '/SET *( *CMake_VERSION_MAJOR/ {s/.*MAJOR *\([0-9][0-9]*\).*/\1/;p;}'`
  849. CMake_VERSION_MINOR=`cat $fullSrcDir/CMakeLists.txt | sed -n '/SET *( *CMake_VERSION_MINOR/ {s/.*MINOR *\([0-9][0-9]*\).*/\1/;p;}'`
  850. CMake_VERSION_PATCH=`cat $fullSrcDir/CMakeLists.txt | sed -n '/SET *( *CMake_VERSION_PATCH/ {s/.*PATCH *\([0-9][0-9]*\).*/\1/;p;}'`
  851. cat >> confdefs.h <<EOF
  852. #define CMake_VERSION_MAJOR ${CMake_VERSION_MAJOR}
  853. EOF
  854. cat >> confdefs.h <<EOF
  855. #define CMake_VERSION_MINOR ${CMake_VERSION_MINOR}
  856. EOF
  857. cat >> confdefs.h <<EOF
  858. #define CMake_VERSION_PATCH ${CMake_VERSION_PATCH}
  859. EOF
  860. # Step 1: set the variable "system" to hold the name and version number
  861. # for the system. This can usually be done via the "uname" command, but
  862. # there are a few systems, like Next, where this doesn't work.
  863. echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6
  864. echo "configure:984: checking system version (for dynamic loading)" >&5
  865. if test -f /usr/lib/NextStep/software_version; then
  866. system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
  867. else
  868. system=`uname -s`-`uname -r`
  869. if test "$?" -ne 0 ; then
  870. echo "$ac_t""unknown (can't find uname command)" 1>&6
  871. system=unknown
  872. else
  873. # Special check for weird MP-RAS system (uname returns weird
  874. # results, and the version is kept in special file).
  875. if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
  876. system=MP-RAS-`awk '{print $3}' /etc/.relid'`
  877. fi
  878. echo "$ac_t""$system" 1>&6
  879. fi
  880. fi
  881. CMAKE_CONFIG_DIR=`pwd`
  882. case $system in
  883. CYGWIN_NT*)
  884. CMAKE_CONFIG_DIR=`pwd`
  885. CMAKE_CONFIG_DIR="\"$CMAKE_CONFIG_DIR\""
  886. ;;
  887. esac
  888. CMAKE_ANSI_CFLAGS=""
  889. CMAKE_ANSI_CXXFLAGS=""
  890. # on hp use -Aa for ansi
  891. if test $ac_cv_prog_gxx = no; then
  892. case $system in
  893. HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
  894. CFLAGS_ORIG="$FLAGS"
  895. CFLAGS="-Aa $CFLAGS"
  896. echo $ac_n "checking whether ${CC} accepts -Aa""... $ac_c" 1>&6
  897. echo "configure:1023: checking whether ${CC} accepts -Aa" >&5
  898. cat > conftest.$ac_ext <<EOF
  899. #line 1025 "configure"
  900. #include "confdefs.h"
  901. void foo() {}
  902. int main() {
  903. ; return 0; }
  904. EOF
  905. if { (eval echo configure:1034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  906. rm -rf conftest*
  907. echo "$ac_t""yes" 1>&6
  908. CMAKE_ANSI_CFLAGS="$CMAKE_ANSI_CFLAGS -Aa"
  909. else
  910. echo "configure: failed program was:" >&5
  911. cat conftest.$ac_ext >&5
  912. rm -rf conftest*
  913. echo "$ac_t""no" 1>&6
  914. fi
  915. rm -f conftest*
  916. CFLAGS="$CFLAGS_ORIG"
  917. ;;
  918. IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
  919. echo $ac_n "checking whether ${CXX} accepts -LANG:std""... $ac_c" 1>&6
  920. echo 'void f(){}' > conftest.cc
  921. if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
  922. echo "$ac_t""yes" 1>&6
  923. CMAKE_ANSI_CXXFLAGS="-LANG:std"
  924. else
  925. echo "$ac_t""no" 1>&6
  926. fi
  927. rm -f conftest*
  928. ;;
  929. OSF1-*)
  930. CXXFLAGS_ORIG="$CXXFLAGS"
  931. CXXFLAGS="-std strict_ansi -nopure_cname $CXXFLAGS"
  932. echo $ac_n "checking whether ${CXX} accepts -std strict_ansi -nopure_cname""... $ac_c" 1>&6
  933. echo "configure:1067: checking whether ${CXX} accepts -std strict_ansi -nopure_cname" >&5
  934. ac_ext=C
  935. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  936. ac_cpp='$CXXCPP $CPPFLAGS'
  937. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  938. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  939. cross_compiling=$ac_cv_prog_cxx_cross
  940. cat > conftest.$ac_ext <<EOF
  941. #line 1077 "configure"
  942. #include "confdefs.h"
  943. void foo() {}
  944. int main() {
  945. ; return 0; }
  946. EOF
  947. if { (eval echo configure:1086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  948. rm -rf conftest*
  949. echo "$ac_t""yes" 1>&6
  950. CMAKE_ANSI_CXXFLAGS="-std strict_ansi -nopure_cname"
  951. else
  952. echo "configure: failed program was:" >&5
  953. cat conftest.$ac_ext >&5
  954. rm -rf conftest*
  955. echo "$ac_t""no" 1>&6
  956. fi
  957. rm -f conftest*
  958. ac_ext=c
  959. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  960. ac_cpp='$CPP $CPPFLAGS'
  961. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  962. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  963. cross_compiling=$ac_cv_prog_cc_cross
  964. CXXFLAGS="$CXXFLAGS_ORIG"
  965. ;;
  966. esac
  967. fi
  968. # check non-g++ compilers to see if they have the standard
  969. # ansi stream files (without the .h)
  970. if test $ac_cv_prog_gxx = no; then
  971. CXXFLAGS_ORIG="$CXXFLAGS"
  972. CXXFLAGS="$CMAKE_ANSI_CXXFLAGS $CXXFLAGS"
  973. echo $ac_n "checking ansi standard C++ stream headers ""... $ac_c" 1>&6
  974. echo "configure:1121: checking ansi standard C++ stream headers " >&5
  975. ac_ext=C
  976. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  977. ac_cpp='$CXXCPP $CPPFLAGS'
  978. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  979. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  980. cross_compiling=$ac_cv_prog_cxx_cross
  981. cat > conftest.$ac_ext <<EOF
  982. #line 1131 "configure"
  983. #include "confdefs.h"
  984. #include <iostream>
  985. int main() {
  986. ; return 0; }
  987. EOF
  988. if { (eval echo configure:1140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  989. rm -rf conftest*
  990. echo "$ac_t""yes" 1>&6
  991. else
  992. echo "configure: failed program was:" >&5
  993. cat conftest.$ac_ext >&5
  994. rm -rf conftest*
  995. cat >> confdefs.h <<\EOF
  996. #define CMAKE_NO_ANSI_STREAM_HEADERS 1
  997. EOF
  998. echo "$ac_t""no" 1>&6
  999. fi
  1000. rm -f conftest*
  1001. ac_ext=c
  1002. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1003. ac_cpp='$CPP $CPPFLAGS'
  1004. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1005. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1006. cross_compiling=$ac_cv_prog_cc_cross
  1007. CXXFLAGS="$CXXFLAGS_ORIG"
  1008. fi
  1009. # check non-g++ compilers to see if they have std::stringstream
  1010. CXXFLAGS_ORIG="$CXXFLAGS"
  1011. CXXFLAGS="$CMAKE_ANSI_CXXFLAGS $CXXFLAGS"
  1012. echo $ac_n "checking for ansi standard C++ stringstream""... $ac_c" 1>&6
  1013. echo "configure:1172: checking for ansi standard C++ stringstream" >&5
  1014. ac_ext=C
  1015. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1016. ac_cpp='$CXXCPP $CPPFLAGS'
  1017. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1018. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1019. cross_compiling=$ac_cv_prog_cxx_cross
  1020. cat > conftest.$ac_ext <<EOF
  1021. #line 1182 "configure"
  1022. #include "confdefs.h"
  1023. #include <sstream>
  1024. int main() {
  1025. ; return 0; }
  1026. EOF
  1027. if { (eval echo configure:1191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1028. rm -rf conftest*
  1029. echo "$ac_t""yes" 1>&6
  1030. else
  1031. echo "configure: failed program was:" >&5
  1032. cat conftest.$ac_ext >&5
  1033. rm -rf conftest*
  1034. cat >> confdefs.h <<\EOF
  1035. #define CMAKE_NO_ANSI_STRING_STREAM 1
  1036. EOF
  1037. echo "$ac_t""no" 1>&6
  1038. fi
  1039. rm -f conftest*
  1040. ac_ext=c
  1041. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1042. ac_cpp='$CPP $CPPFLAGS'
  1043. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1044. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1045. cross_compiling=$ac_cv_prog_cc_cross
  1046. CXXFLAGS="$CXXFLAGS_ORIG"
  1047. # check to see if stl is in the std namespace
  1048. if test $ac_cv_prog_gxx = no; then
  1049. CXXFLAGS_ORIG="$CXXFLAGS"
  1050. CXXFLAGS="$CMAKE_ANSI_CXXFLAGS $CXXFLAGS"
  1051. echo $ac_n "checking whether the std namespace is supported""... $ac_c" 1>&6
  1052. echo "configure:1223: checking whether the std namespace is supported" >&5
  1053. ac_ext=C
  1054. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1055. ac_cpp='$CXXCPP $CPPFLAGS'
  1056. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1057. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1058. cross_compiling=$ac_cv_prog_cxx_cross
  1059. cat > conftest.$ac_ext <<EOF
  1060. #line 1233 "configure"
  1061. #include "confdefs.h"
  1062. #include <list>
  1063. void foo() { std::list<int>(); }
  1064. int main() {
  1065. ; return 0; }
  1066. EOF
  1067. if { (eval echo configure:1243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1068. rm -rf conftest*
  1069. echo "$ac_t""yes" 1>&6
  1070. else
  1071. echo "configure: failed program was:" >&5
  1072. cat conftest.$ac_ext >&5
  1073. rm -rf conftest*
  1074. cat >> confdefs.h <<\EOF
  1075. #define CMAKE_NO_STD_NAMESPACE 1
  1076. EOF
  1077. echo "$ac_t""no" 1>&6
  1078. fi
  1079. rm -f conftest*
  1080. ac_ext=c
  1081. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1082. ac_cpp='$CPP $CPPFLAGS'
  1083. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1084. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1085. cross_compiling=$ac_cv_prog_cc_cross
  1086. CXXFLAGS="$CXXFLAGS_ORIG"
  1087. fi
  1088. # check to see if for scoping is supported
  1089. if test $ac_cv_prog_gxx = no; then
  1090. CXXFLAGS_ORIG="$CXXFLAGS"
  1091. CXXFLAGS="$CMAKE_ANSI_CXXFLAGS $CXXFLAGS"
  1092. echo $ac_n "checking ansi for scope support""... $ac_c" 1>&6
  1093. echo "configure:1276: checking ansi for scope support" >&5
  1094. ac_ext=C
  1095. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1096. ac_cpp='$CXXCPP $CPPFLAGS'
  1097. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1098. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1099. cross_compiling=$ac_cv_prog_cxx_cross
  1100. cat > conftest.$ac_ext <<EOF
  1101. #line 1286 "configure"
  1102. #include "confdefs.h"
  1103. void foo() { for(int i;;); for(int i;;); }
  1104. int main() {
  1105. ; return 0; }
  1106. EOF
  1107. if { (eval echo configure:1295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1108. rm -rf conftest*
  1109. echo "$ac_t""yes" 1>&6
  1110. else
  1111. echo "configure: failed program was:" >&5
  1112. cat conftest.$ac_ext >&5
  1113. rm -rf conftest*
  1114. cat >> confdefs.h <<\EOF
  1115. #define CMAKE_NO_ANSI_FOR_SCOPE 1
  1116. EOF
  1117. echo "$ac_t""no" 1>&6
  1118. fi
  1119. rm -f conftest*
  1120. ac_ext=c
  1121. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1122. ac_cpp='$CPP $CPPFLAGS'
  1123. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1124. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1125. cross_compiling=$ac_cv_prog_cc_cross
  1126. CXXFLAGS="$CXXFLAGS_ORIG"
  1127. fi
  1128. trap '' 1 2 15
  1129. cat > confcache <<\EOF
  1130. # This file is a shell script that caches the results of configure
  1131. # tests run on this system so they can be shared between configure
  1132. # scripts and configure runs. It is not useful on other systems.
  1133. # If it contains results you don't want to keep, you may remove or edit it.
  1134. #
  1135. # By default, configure uses ./config.cache as the cache file,
  1136. # creating it if it does not exist already. You can give configure
  1137. # the --cache-file=FILE option to use a different cache file; that is
  1138. # what configure does when it calls configure scripts in
  1139. # subdirectories, so they share the cache.
  1140. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1141. # config.status only pays attention to the cache file if you give it the
  1142. # --recheck option to rerun configure.
  1143. #
  1144. EOF
  1145. # The following way of writing the cache mishandles newlines in values,
  1146. # but we know of no workaround that is simple, portable, and efficient.
  1147. # So, don't put newlines in cache variables' values.
  1148. # Ultrix sh set writes to stderr and can't be redirected directly,
  1149. # and sets the high bit in the cache file unless we assign to the vars.
  1150. (set) 2>&1 |
  1151. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1152. *ac_space=\ *)
  1153. # `set' does not quote correctly, so add quotes (double-quote substitution
  1154. # turns \\\\ into \\, and sed turns \\ into \).
  1155. sed -n \
  1156. -e "s/'/'\\\\''/g" \
  1157. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1158. ;;
  1159. *)
  1160. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1161. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1162. ;;
  1163. esac >> confcache
  1164. if cmp -s $cache_file confcache; then
  1165. :
  1166. else
  1167. if test -w $cache_file; then
  1168. echo "updating cache $cache_file"
  1169. cat confcache > $cache_file
  1170. else
  1171. echo "not updating unwritable cache $cache_file"
  1172. fi
  1173. fi
  1174. rm -f confcache
  1175. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1176. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1177. # Let make expand exec_prefix.
  1178. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1179. # Any assignment to VPATH causes Sun make to only execute
  1180. # the first set of double-colon rules, so remove it if not needed.
  1181. # If there is a colon in the path, we need to keep it.
  1182. if test "x$srcdir" = x.; then
  1183. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1184. fi
  1185. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1186. DEFS=-DHAVE_CONFIG_H
  1187. # Without the "./", some shells look in PATH for config.status.
  1188. : ${CONFIG_STATUS=./config.status}
  1189. echo creating $CONFIG_STATUS
  1190. rm -f $CONFIG_STATUS
  1191. cat > $CONFIG_STATUS <<EOF
  1192. #! /bin/sh
  1193. # Generated automatically by configure.
  1194. # Run this file to recreate the current configuration.
  1195. # This directory was configured as follows,
  1196. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1197. #
  1198. # $0 $ac_configure_args
  1199. #
  1200. # Compiler output produced by configure, useful for debugging
  1201. # configure, is in ./config.log if it exists.
  1202. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1203. for ac_option
  1204. do
  1205. case "\$ac_option" in
  1206. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1207. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1208. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1209. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1210. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1211. exit 0 ;;
  1212. -help | --help | --hel | --he | --h)
  1213. echo "\$ac_cs_usage"; exit 0 ;;
  1214. *) echo "\$ac_cs_usage"; exit 1 ;;
  1215. esac
  1216. done
  1217. ac_given_srcdir=$srcdir
  1218. trap 'rm -fr `echo "Source/InitialConfigureFlags.cmake Makefile Source/Makefile Source/cmConfigure.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1219. EOF
  1220. cat >> $CONFIG_STATUS <<EOF
  1221. # Protect against being on the right side of a sed subst in config.status.
  1222. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1223. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1224. $ac_vpsub
  1225. $extrasub
  1226. s%@SHELL@%$SHELL%g
  1227. s%@CFLAGS@%$CFLAGS%g
  1228. s%@CPPFLAGS@%$CPPFLAGS%g
  1229. s%@CXXFLAGS@%$CXXFLAGS%g
  1230. s%@FFLAGS@%$FFLAGS%g
  1231. s%@DEFS@%$DEFS%g
  1232. s%@LDFLAGS@%$LDFLAGS%g
  1233. s%@LIBS@%$LIBS%g
  1234. s%@exec_prefix@%$exec_prefix%g
  1235. s%@prefix@%$prefix%g
  1236. s%@program_transform_name@%$program_transform_name%g
  1237. s%@bindir@%$bindir%g
  1238. s%@sbindir@%$sbindir%g
  1239. s%@libexecdir@%$libexecdir%g
  1240. s%@datadir@%$datadir%g
  1241. s%@sysconfdir@%$sysconfdir%g
  1242. s%@sharedstatedir@%$sharedstatedir%g
  1243. s%@localstatedir@%$localstatedir%g
  1244. s%@libdir@%$libdir%g
  1245. s%@includedir@%$includedir%g
  1246. s%@oldincludedir@%$oldincludedir%g
  1247. s%@infodir@%$infodir%g
  1248. s%@mandir@%$mandir%g
  1249. s%@RUNMAKE@%$RUNMAKE%g
  1250. s%@CC@%$CC%g
  1251. s%@CXX@%$CXX%g
  1252. s%@CMAKE_ROOT_DIR@%$CMAKE_ROOT_DIR%g
  1253. s%@CMake_VERSION_MAJOR@%$CMake_VERSION_MAJOR%g
  1254. s%@CMake_VERSION_MINOR@%$CMake_VERSION_MINOR%g
  1255. s%@CMake_VERSION_PATCH@%$CMake_VERSION_PATCH%g
  1256. s%@CMAKE_CONFIG_DIR@%$CMAKE_CONFIG_DIR%g
  1257. s%@CMAKE_ANSI_CFLAGS@%$CMAKE_ANSI_CFLAGS%g
  1258. s%@CMAKE_ANSI_CXXFLAGS@%$CMAKE_ANSI_CXXFLAGS%g
  1259. CEOF
  1260. EOF
  1261. cat >> $CONFIG_STATUS <<\EOF
  1262. # Split the substitutions into bite-sized pieces for seds with
  1263. # small command number limits, like on Digital OSF/1 and HP-UX.
  1264. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1265. ac_file=1 # Number of current file.
  1266. ac_beg=1 # First line for current file.
  1267. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1268. ac_more_lines=:
  1269. ac_sed_cmds=""
  1270. while $ac_more_lines; do
  1271. if test $ac_beg -gt 1; then
  1272. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1273. else
  1274. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1275. fi
  1276. if test ! -s conftest.s$ac_file; then
  1277. ac_more_lines=false
  1278. rm -f conftest.s$ac_file
  1279. else
  1280. if test -z "$ac_sed_cmds"; then
  1281. ac_sed_cmds="sed -f conftest.s$ac_file"
  1282. else
  1283. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1284. fi
  1285. ac_file=`expr $ac_file + 1`
  1286. ac_beg=$ac_end
  1287. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1288. fi
  1289. done
  1290. if test -z "$ac_sed_cmds"; then
  1291. ac_sed_cmds=cat
  1292. fi
  1293. EOF
  1294. cat >> $CONFIG_STATUS <<EOF
  1295. CONFIG_FILES=\${CONFIG_FILES-"Source/InitialConfigureFlags.cmake Makefile Source/Makefile"}
  1296. EOF
  1297. cat >> $CONFIG_STATUS <<\EOF
  1298. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1299. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1300. case "$ac_file" in
  1301. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1302. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1303. *) ac_file_in="${ac_file}.in" ;;
  1304. esac
  1305. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1306. # Remove last slash and all that follows it. Not all systems have dirname.
  1307. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1308. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1309. # The file is in a subdirectory.
  1310. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1311. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1312. # A "../" for each directory in $ac_dir_suffix.
  1313. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1314. else
  1315. ac_dir_suffix= ac_dots=
  1316. fi
  1317. case "$ac_given_srcdir" in
  1318. .) srcdir=.
  1319. if test -z "$ac_dots"; then top_srcdir=.
  1320. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1321. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1322. *) # Relative path.
  1323. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1324. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1325. esac
  1326. echo creating "$ac_file"
  1327. rm -f "$ac_file"
  1328. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1329. case "$ac_file" in
  1330. *Makefile*) ac_comsub="1i\\
  1331. # $configure_input" ;;
  1332. *) ac_comsub= ;;
  1333. esac
  1334. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1335. sed -e "$ac_comsub
  1336. s%@configure_input@%$configure_input%g
  1337. s%@srcdir@%$srcdir%g
  1338. s%@top_srcdir@%$top_srcdir%g
  1339. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1340. fi; done
  1341. rm -f conftest.s*
  1342. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1343. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1344. #
  1345. # ac_d sets the value in "#define NAME VALUE" lines.
  1346. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  1347. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  1348. ac_dC='\3'
  1349. ac_dD='%g'
  1350. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1351. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1352. ac_uB='\([ ]\)%\1#\2define\3'
  1353. ac_uC=' '
  1354. ac_uD='\4%g'
  1355. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1356. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1357. ac_eB='$%\1#\2define\3'
  1358. ac_eC=' '
  1359. ac_eD='%g'
  1360. if test "${CONFIG_HEADERS+set}" != set; then
  1361. EOF
  1362. cat >> $CONFIG_STATUS <<EOF
  1363. CONFIG_HEADERS="Source/cmConfigure.h"
  1364. EOF
  1365. cat >> $CONFIG_STATUS <<\EOF
  1366. fi
  1367. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1368. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1369. case "$ac_file" in
  1370. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1371. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1372. *) ac_file_in="${ac_file}.in" ;;
  1373. esac
  1374. echo creating $ac_file
  1375. rm -f conftest.frag conftest.in conftest.out
  1376. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1377. cat $ac_file_inputs > conftest.in
  1378. EOF
  1379. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1380. # the proper values into config.h.in to produce config.h. And first:
  1381. # Protect against being on the right side of a sed subst in config.status.
  1382. # Protect against being in an unquoted here document in config.status.
  1383. rm -f conftest.vals
  1384. cat > conftest.hdr <<\EOF
  1385. s/[\\&%]/\\&/g
  1386. s%[\\$`]%\\&%g
  1387. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1388. s%ac_d%ac_u%gp
  1389. s%ac_u%ac_e%gp
  1390. EOF
  1391. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1392. rm -f conftest.hdr
  1393. # This sed command replaces #undef with comments. This is necessary, for
  1394. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1395. # on some systems where configure will not decide to define it.
  1396. cat >> conftest.vals <<\EOF
  1397. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1398. EOF
  1399. # Break up conftest.vals because some shells have a limit on
  1400. # the size of here documents, and old seds have small limits too.
  1401. rm -f conftest.tail
  1402. while :
  1403. do
  1404. ac_lines=`grep -c . conftest.vals`
  1405. # grep -c gives empty output for an empty file on some AIX systems.
  1406. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1407. # Write a limited-size here document to conftest.frag.
  1408. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1409. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1410. echo 'CEOF
  1411. sed -f conftest.frag conftest.in > conftest.out
  1412. rm -f conftest.in
  1413. mv conftest.out conftest.in
  1414. ' >> $CONFIG_STATUS
  1415. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1416. rm -f conftest.vals
  1417. mv conftest.tail conftest.vals
  1418. done
  1419. rm -f conftest.vals
  1420. cat >> $CONFIG_STATUS <<\EOF
  1421. rm -f conftest.frag conftest.h
  1422. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  1423. cat conftest.in >> conftest.h
  1424. rm -f conftest.in
  1425. if cmp -s $ac_file conftest.h 2>/dev/null; then
  1426. echo "$ac_file is unchanged"
  1427. rm -f conftest.h
  1428. else
  1429. # Remove last slash and all that follows it. Not all systems have dirname.
  1430. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1431. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1432. # The file is in a subdirectory.
  1433. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1434. fi
  1435. rm -f $ac_file
  1436. mv conftest.h $ac_file
  1437. fi
  1438. fi; done
  1439. EOF
  1440. cat >> $CONFIG_STATUS <<EOF
  1441. EOF
  1442. cat >> $CONFIG_STATUS <<\EOF
  1443. exit 0
  1444. EOF
  1445. chmod +x $CONFIG_STATUS
  1446. rm -fr confdefs* $ac_clean_files
  1447. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1448. # build cmake
  1449. $RUNMAKE
  1450. else
  1451. PRGNAME=configure # Should be `basename $0`
  1452. DIRNAME=Bootstrap
  1453. # Check if the bootstrap directory already exists.
  1454. if test -d Bootstrap; then
  1455. :
  1456. else
  1457. # if it does not create one
  1458. mkdir Bootstrap
  1459. fi
  1460. if (
  1461. # Build bootstrap cmake
  1462. cd Bootstrap
  1463. echo "Bootstrapping to directory `pwd`"
  1464. BUILD_CMAKE_IN_SUBDIR=true $CMAKE_ROOT_DIR/$PRGNAME $ac_configure_args
  1465. ); then
  1466. # run cmake
  1467. Bootstrap/Source/cmake $fullSrcDir
  1468. # run cmake depends
  1469. $RUNMAKE depend
  1470. else
  1471. echo "Problem bootstrapping CMake"
  1472. exit 1
  1473. fi
  1474. fi