configure 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431
  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. CMAKE_CONFIG_DIR=`pwd`
  460. #
  461. # check for some programs we use
  462. #
  463. # Extract the first word of "gcc", so it can be a program name with args.
  464. set dummy gcc; ac_word=$2
  465. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  466. echo "configure:537: checking for $ac_word" >&5
  467. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  468. echo $ac_n "(cached) $ac_c" 1>&6
  469. else
  470. if test -n "$CC"; then
  471. ac_cv_prog_CC="$CC" # Let the user override the test.
  472. else
  473. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  474. ac_dummy="$PATH"
  475. for ac_dir in $ac_dummy; do
  476. test -z "$ac_dir" && ac_dir=.
  477. if test -f $ac_dir/$ac_word; then
  478. ac_cv_prog_CC="gcc"
  479. break
  480. fi
  481. done
  482. IFS="$ac_save_ifs"
  483. fi
  484. fi
  485. CC="$ac_cv_prog_CC"
  486. if test -n "$CC"; then
  487. echo "$ac_t""$CC" 1>&6
  488. else
  489. echo "$ac_t""no" 1>&6
  490. fi
  491. if test -z "$CC"; then
  492. # Extract the first word of "cc", so it can be a program name with args.
  493. set dummy cc; ac_word=$2
  494. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  495. echo "configure:567: checking for $ac_word" >&5
  496. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  497. echo $ac_n "(cached) $ac_c" 1>&6
  498. else
  499. if test -n "$CC"; then
  500. ac_cv_prog_CC="$CC" # Let the user override the test.
  501. else
  502. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  503. ac_prog_rejected=no
  504. ac_dummy="$PATH"
  505. for ac_dir in $ac_dummy; do
  506. test -z "$ac_dir" && ac_dir=.
  507. if test -f $ac_dir/$ac_word; then
  508. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  509. ac_prog_rejected=yes
  510. continue
  511. fi
  512. ac_cv_prog_CC="cc"
  513. break
  514. fi
  515. done
  516. IFS="$ac_save_ifs"
  517. if test $ac_prog_rejected = yes; then
  518. # We found a bogon in the path, so make sure we never use it.
  519. set dummy $ac_cv_prog_CC
  520. shift
  521. if test $# -gt 0; then
  522. # We chose a different compiler from the bogus one.
  523. # However, it has the same basename, so the bogon will be chosen
  524. # first if we set CC to just the basename; use the full file name.
  525. shift
  526. set dummy "$ac_dir/$ac_word" "$@"
  527. shift
  528. ac_cv_prog_CC="$@"
  529. fi
  530. fi
  531. fi
  532. fi
  533. CC="$ac_cv_prog_CC"
  534. if test -n "$CC"; then
  535. echo "$ac_t""$CC" 1>&6
  536. else
  537. echo "$ac_t""no" 1>&6
  538. fi
  539. if test -z "$CC"; then
  540. case "`uname -s`" in
  541. *win32* | *WIN32*)
  542. # Extract the first word of "cl", so it can be a program name with args.
  543. set dummy cl; ac_word=$2
  544. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  545. echo "configure:618: checking for $ac_word" >&5
  546. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  547. echo $ac_n "(cached) $ac_c" 1>&6
  548. else
  549. if test -n "$CC"; then
  550. ac_cv_prog_CC="$CC" # Let the user override the test.
  551. else
  552. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  553. ac_dummy="$PATH"
  554. for ac_dir in $ac_dummy; do
  555. test -z "$ac_dir" && ac_dir=.
  556. if test -f $ac_dir/$ac_word; then
  557. ac_cv_prog_CC="cl"
  558. break
  559. fi
  560. done
  561. IFS="$ac_save_ifs"
  562. fi
  563. fi
  564. CC="$ac_cv_prog_CC"
  565. if test -n "$CC"; then
  566. echo "$ac_t""$CC" 1>&6
  567. else
  568. echo "$ac_t""no" 1>&6
  569. fi
  570. ;;
  571. esac
  572. fi
  573. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  574. fi
  575. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  576. echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  577. ac_ext=c
  578. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  579. ac_cpp='$CPP $CPPFLAGS'
  580. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  581. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  582. cross_compiling=$ac_cv_prog_cc_cross
  583. cat > conftest.$ac_ext << EOF
  584. #line 661 "configure"
  585. #include "confdefs.h"
  586. main(){return(0);}
  587. EOF
  588. if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  589. ac_cv_prog_cc_works=yes
  590. # If we can't run a trivial program, we are probably using a cross compiler.
  591. if (./conftest; exit) 2>/dev/null; then
  592. ac_cv_prog_cc_cross=no
  593. else
  594. ac_cv_prog_cc_cross=yes
  595. fi
  596. else
  597. echo "configure: failed program was:" >&5
  598. cat conftest.$ac_ext >&5
  599. ac_cv_prog_cc_works=no
  600. fi
  601. rm -fr conftest*
  602. ac_ext=c
  603. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  604. ac_cpp='$CPP $CPPFLAGS'
  605. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  606. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  607. cross_compiling=$ac_cv_prog_cc_cross
  608. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  609. if test $ac_cv_prog_cc_works = no; then
  610. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  611. fi
  612. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  613. echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  614. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  615. cross_compiling=$ac_cv_prog_cc_cross
  616. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  617. echo "configure:697: checking whether we are using GNU C" >&5
  618. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  619. echo $ac_n "(cached) $ac_c" 1>&6
  620. else
  621. cat > conftest.c <<EOF
  622. #ifdef __GNUC__
  623. yes;
  624. #endif
  625. EOF
  626. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  627. ac_cv_prog_gcc=yes
  628. else
  629. ac_cv_prog_gcc=no
  630. fi
  631. fi
  632. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  633. if test $ac_cv_prog_gcc = yes; then
  634. GCC=yes
  635. else
  636. GCC=
  637. fi
  638. ac_test_CFLAGS="${CFLAGS+set}"
  639. ac_save_CFLAGS="$CFLAGS"
  640. CFLAGS=
  641. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  642. echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
  643. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  644. echo $ac_n "(cached) $ac_c" 1>&6
  645. else
  646. echo 'void f(){}' > conftest.c
  647. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  648. ac_cv_prog_cc_g=yes
  649. else
  650. ac_cv_prog_cc_g=no
  651. fi
  652. rm -f conftest*
  653. fi
  654. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  655. if test "$ac_test_CFLAGS" = set; then
  656. CFLAGS="$ac_save_CFLAGS"
  657. elif test $ac_cv_prog_cc_g = yes; then
  658. if test "$GCC" = yes; then
  659. CFLAGS="-g -O2"
  660. else
  661. CFLAGS="-g"
  662. fi
  663. else
  664. if test "$GCC" = yes; then
  665. CFLAGS="-O2"
  666. else
  667. CFLAGS=
  668. fi
  669. fi
  670. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  671. do
  672. # Extract the first word of "$ac_prog", so it can be a program name with args.
  673. set dummy $ac_prog; ac_word=$2
  674. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  675. echo "configure:761: checking for $ac_word" >&5
  676. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  677. echo $ac_n "(cached) $ac_c" 1>&6
  678. else
  679. if test -n "$CXX"; then
  680. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  681. else
  682. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  683. ac_dummy="$PATH"
  684. for ac_dir in $ac_dummy; do
  685. test -z "$ac_dir" && ac_dir=.
  686. if test -f $ac_dir/$ac_word; then
  687. ac_cv_prog_CXX="$ac_prog"
  688. break
  689. fi
  690. done
  691. IFS="$ac_save_ifs"
  692. fi
  693. fi
  694. CXX="$ac_cv_prog_CXX"
  695. if test -n "$CXX"; then
  696. echo "$ac_t""$CXX" 1>&6
  697. else
  698. echo "$ac_t""no" 1>&6
  699. fi
  700. test -n "$CXX" && break
  701. done
  702. test -n "$CXX" || CXX="gcc"
  703. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  704. echo "configure:793: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  705. ac_ext=C
  706. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  707. ac_cpp='$CXXCPP $CPPFLAGS'
  708. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  709. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  710. cross_compiling=$ac_cv_prog_cxx_cross
  711. cat > conftest.$ac_ext << EOF
  712. #line 804 "configure"
  713. #include "confdefs.h"
  714. int main(){return(0);}
  715. EOF
  716. if { (eval echo configure:809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  717. ac_cv_prog_cxx_works=yes
  718. # If we can't run a trivial program, we are probably using a cross compiler.
  719. if (./conftest; exit) 2>/dev/null; then
  720. ac_cv_prog_cxx_cross=no
  721. else
  722. ac_cv_prog_cxx_cross=yes
  723. fi
  724. else
  725. echo "configure: failed program was:" >&5
  726. cat conftest.$ac_ext >&5
  727. ac_cv_prog_cxx_works=no
  728. fi
  729. rm -fr conftest*
  730. ac_ext=c
  731. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  732. ac_cpp='$CPP $CPPFLAGS'
  733. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  734. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  735. cross_compiling=$ac_cv_prog_cc_cross
  736. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  737. if test $ac_cv_prog_cxx_works = no; then
  738. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  739. fi
  740. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  741. echo "configure:835: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  742. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  743. cross_compiling=$ac_cv_prog_cxx_cross
  744. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  745. echo "configure:840: checking whether we are using GNU C++" >&5
  746. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  747. echo $ac_n "(cached) $ac_c" 1>&6
  748. else
  749. cat > conftest.C <<EOF
  750. #ifdef __GNUC__
  751. yes;
  752. #endif
  753. EOF
  754. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  755. ac_cv_prog_gxx=yes
  756. else
  757. ac_cv_prog_gxx=no
  758. fi
  759. fi
  760. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  761. if test $ac_cv_prog_gxx = yes; then
  762. GXX=yes
  763. else
  764. GXX=
  765. fi
  766. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  767. ac_save_CXXFLAGS="$CXXFLAGS"
  768. CXXFLAGS=
  769. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  770. echo "configure:868: checking whether ${CXX-g++} accepts -g" >&5
  771. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  772. echo $ac_n "(cached) $ac_c" 1>&6
  773. else
  774. echo 'void f(){}' > conftest.cc
  775. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  776. ac_cv_prog_cxx_g=yes
  777. else
  778. ac_cv_prog_cxx_g=no
  779. fi
  780. rm -f conftest*
  781. fi
  782. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  783. if test "$ac_test_CXXFLAGS" = set; then
  784. CXXFLAGS="$ac_save_CXXFLAGS"
  785. elif test $ac_cv_prog_cxx_g = yes; then
  786. if test "$GXX" = yes; then
  787. CXXFLAGS="-g -O2"
  788. else
  789. CXXFLAGS="-g"
  790. fi
  791. else
  792. if test "$GXX" = yes; then
  793. CXXFLAGS="-O2"
  794. else
  795. CXXFLAGS=
  796. fi
  797. fi
  798. ac_aux_dir=
  799. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  800. if test -f $ac_dir/install-sh; then
  801. ac_aux_dir=$ac_dir
  802. ac_install_sh="$ac_aux_dir/install-sh -c"
  803. break
  804. elif test -f $ac_dir/install.sh; then
  805. ac_aux_dir=$ac_dir
  806. ac_install_sh="$ac_aux_dir/install.sh -c"
  807. break
  808. fi
  809. done
  810. if test -z "$ac_aux_dir"; then
  811. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  812. fi
  813. ac_config_guess=$ac_aux_dir/config.guess
  814. ac_config_sub=$ac_aux_dir/config.sub
  815. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  816. # Find a good install program. We prefer a C program (faster),
  817. # so one script is as good as another. But avoid the broken or
  818. # incompatible versions:
  819. # SysV /etc/install, /usr/sbin/install
  820. # SunOS /usr/etc/install
  821. # IRIX /sbin/install
  822. # AIX /bin/install
  823. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  824. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  825. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  826. # ./install, which can be erroneously created by make from ./install.sh.
  827. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  828. echo "configure:930: checking for a BSD compatible install" >&5
  829. if test -z "$INSTALL"; then
  830. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  831. echo $ac_n "(cached) $ac_c" 1>&6
  832. else
  833. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  834. for ac_dir in $PATH; do
  835. # Account for people who put trailing slashes in PATH elements.
  836. case "$ac_dir/" in
  837. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  838. *)
  839. # OSF1 and SCO ODT 3.0 have their own names for install.
  840. # Don't use installbsd from OSF since it installs stuff as root
  841. # by default.
  842. for ac_prog in ginstall scoinst install; do
  843. if test -f $ac_dir/$ac_prog; then
  844. if test $ac_prog = install &&
  845. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  846. # AIX install. It has an incompatible calling convention.
  847. :
  848. else
  849. ac_cv_path_install="$ac_dir/$ac_prog -c"
  850. break 2
  851. fi
  852. fi
  853. done
  854. ;;
  855. esac
  856. done
  857. IFS="$ac_save_IFS"
  858. fi
  859. if test "${ac_cv_path_install+set}" = set; then
  860. INSTALL="$ac_cv_path_install"
  861. else
  862. # As a last resort, use the slow shell script. We don't cache a
  863. # path for INSTALL within a source directory, because that will
  864. # break other packages using the cache if that directory is
  865. # removed, or if the path is relative.
  866. INSTALL="$ac_install_sh"
  867. fi
  868. fi
  869. echo "$ac_t""$INSTALL" 1>&6
  870. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  871. # It thinks the first close brace ends the variable substitution.
  872. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  873. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  874. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  875. fullSrcDir=`cd $srcdir; pwd`
  876. CMAKE_ROOT_DIR=$fullSrcDir
  877. CMAKE_ANSI_CFLAGS=""
  878. # on hp use -Aa for ansi
  879. if test $ac_cv_prog_gxx = no; then
  880. case $system in
  881. HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
  882. echo $ac_n "checking whether ${CC} accepts -Aa""... $ac_c" 1>&6
  883. echo 'void f(){}' > conftest.c
  884. if test -z "`${CC} -Aa -c conftest.c 2>&1`"; then
  885. echo "$ac_t""yes" 1>&6
  886. CMAKE_ANSI_CFLAGS="-Aa"
  887. else
  888. echo "$ac_t""no" 1>&6
  889. fi
  890. rm -f conftest*
  891. ;;
  892. esac
  893. fi
  894. # if we are not running g++ then we might need some other flags
  895. # to get the templates compiled correctly
  896. CMAKE_TEMPLATE_FLAGS=""
  897. if test $ac_cv_prog_gxx = no; then
  898. echo $ac_n "checking whether ${CXX} accepts -ptused -no_prelink""... $ac_c" 1>&6
  899. echo 'void f(){}' > conftest.cc
  900. if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
  901. echo "$ac_t""yes" 1>&6
  902. CMAKE_TEMPLATE_FLAGS="-ptused -no_prelink"
  903. else
  904. echo "$ac_t""no" 1>&6
  905. fi
  906. rm -f conftest*
  907. echo $ac_n "checking whether ${CXX} accepts -instances=semiexplicit""... $ac_c" 1>&6
  908. echo 'void f(){}' > conftest.cc
  909. if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
  910. echo "$ac_t""yes" 1>&6
  911. CMAKE_TEMPLATE_FLAGS="-instances=static"
  912. else
  913. echo "$ac_t""no" 1>&6
  914. fi
  915. fi
  916. # check no g++ compilers to see if they have the standard
  917. # ansi stream files (without the .h)
  918. if test $ac_cv_prog_gxx = no; then
  919. echo $ac_n "checking ansi standard C++ stream headers ""... $ac_c" 1>&6
  920. echo "configure:1034: checking ansi standard C++ stream headers " >&5
  921. rm -rf conftest.*
  922. cat > conftest.cc <<!
  923. #include <iostream>
  924. !
  925. if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
  926. echo "$ac_t""yes" 1>&6
  927. else
  928. cat >> confdefs.h <<\EOF
  929. #define CMAKE_NO_ANSI_STREAM_HEADERS 1
  930. EOF
  931. echo "$ac_t""no" 1>&6
  932. fi
  933. fi
  934. # check to see if stl is in the std namespace
  935. if test $ac_cv_prog_gxx = no; then
  936. echo $ac_n "checking ansi standard namespace support ""... $ac_c" 1>&6
  937. echo "configure:1053: checking ansi standard namespace support " >&5
  938. rm -rf conftest.*
  939. cat > conftest.cc <<!
  940. #include <list>
  941. void foo() { std::list<int> l; }
  942. !
  943. if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
  944. echo "$ac_t""yes" 1>&6
  945. else
  946. cat >> confdefs.h <<\EOF
  947. #define CMAKE_NO_STD_NAMESPACE 1
  948. EOF
  949. echo "$ac_t""no" 1>&6
  950. fi
  951. fi
  952. trap '' 1 2 15
  953. cat > confcache <<\EOF
  954. # This file is a shell script that caches the results of configure
  955. # tests run on this system so they can be shared between configure
  956. # scripts and configure runs. It is not useful on other systems.
  957. # If it contains results you don't want to keep, you may remove or edit it.
  958. #
  959. # By default, configure uses ./config.cache as the cache file,
  960. # creating it if it does not exist already. You can give configure
  961. # the --cache-file=FILE option to use a different cache file; that is
  962. # what configure does when it calls configure scripts in
  963. # subdirectories, so they share the cache.
  964. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  965. # config.status only pays attention to the cache file if you give it the
  966. # --recheck option to rerun configure.
  967. #
  968. EOF
  969. # The following way of writing the cache mishandles newlines in values,
  970. # but we know of no workaround that is simple, portable, and efficient.
  971. # So, don't put newlines in cache variables' values.
  972. # Ultrix sh set writes to stderr and can't be redirected directly,
  973. # and sets the high bit in the cache file unless we assign to the vars.
  974. (set) 2>&1 |
  975. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  976. *ac_space=\ *)
  977. # `set' does not quote correctly, so add quotes (double-quote substitution
  978. # turns \\\\ into \\, and sed turns \\ into \).
  979. sed -n \
  980. -e "s/'/'\\\\''/g" \
  981. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  982. ;;
  983. *)
  984. # `set' quotes correctly as required by POSIX, so do not add quotes.
  985. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  986. ;;
  987. esac >> confcache
  988. if cmp -s $cache_file confcache; then
  989. :
  990. else
  991. if test -w $cache_file; then
  992. echo "updating cache $cache_file"
  993. cat confcache > $cache_file
  994. else
  995. echo "not updating unwritable cache $cache_file"
  996. fi
  997. fi
  998. rm -f confcache
  999. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1000. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1001. # Let make expand exec_prefix.
  1002. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1003. # Any assignment to VPATH causes Sun make to only execute
  1004. # the first set of double-colon rules, so remove it if not needed.
  1005. # If there is a colon in the path, we need to keep it.
  1006. if test "x$srcdir" = x.; then
  1007. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1008. fi
  1009. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1010. DEFS=-DHAVE_CONFIG_H
  1011. # Without the "./", some shells look in PATH for config.status.
  1012. : ${CONFIG_STATUS=./config.status}
  1013. echo creating $CONFIG_STATUS
  1014. rm -f $CONFIG_STATUS
  1015. cat > $CONFIG_STATUS <<EOF
  1016. #! /bin/sh
  1017. # Generated automatically by configure.
  1018. # Run this file to recreate the current configuration.
  1019. # This directory was configured as follows,
  1020. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1021. #
  1022. # $0 $ac_configure_args
  1023. #
  1024. # Compiler output produced by configure, useful for debugging
  1025. # configure, is in ./config.log if it exists.
  1026. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1027. for ac_option
  1028. do
  1029. case "\$ac_option" in
  1030. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1031. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1032. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1033. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1034. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1035. exit 0 ;;
  1036. -help | --help | --hel | --he | --h)
  1037. echo "\$ac_cs_usage"; exit 0 ;;
  1038. *) echo "\$ac_cs_usage"; exit 1 ;;
  1039. esac
  1040. done
  1041. ac_given_srcdir=$srcdir
  1042. ac_given_INSTALL="$INSTALL"
  1043. trap 'rm -fr `echo "Makefile Source/Makefile Source/cmConfigure.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1044. EOF
  1045. cat >> $CONFIG_STATUS <<EOF
  1046. # Protect against being on the right side of a sed subst in config.status.
  1047. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1048. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1049. $ac_vpsub
  1050. $extrasub
  1051. s%@SHELL@%$SHELL%g
  1052. s%@CFLAGS@%$CFLAGS%g
  1053. s%@CPPFLAGS@%$CPPFLAGS%g
  1054. s%@CXXFLAGS@%$CXXFLAGS%g
  1055. s%@FFLAGS@%$FFLAGS%g
  1056. s%@DEFS@%$DEFS%g
  1057. s%@LDFLAGS@%$LDFLAGS%g
  1058. s%@LIBS@%$LIBS%g
  1059. s%@exec_prefix@%$exec_prefix%g
  1060. s%@prefix@%$prefix%g
  1061. s%@program_transform_name@%$program_transform_name%g
  1062. s%@bindir@%$bindir%g
  1063. s%@sbindir@%$sbindir%g
  1064. s%@libexecdir@%$libexecdir%g
  1065. s%@datadir@%$datadir%g
  1066. s%@sysconfdir@%$sysconfdir%g
  1067. s%@sharedstatedir@%$sharedstatedir%g
  1068. s%@localstatedir@%$localstatedir%g
  1069. s%@libdir@%$libdir%g
  1070. s%@includedir@%$includedir%g
  1071. s%@oldincludedir@%$oldincludedir%g
  1072. s%@infodir@%$infodir%g
  1073. s%@mandir@%$mandir%g
  1074. s%@CMAKE_CONFIG_DIR@%$CMAKE_CONFIG_DIR%g
  1075. s%@CC@%$CC%g
  1076. s%@CXX@%$CXX%g
  1077. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1078. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1079. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1080. s%@CMAKE_ROOT_DIR@%$CMAKE_ROOT_DIR%g
  1081. s%@CMAKE_ANSI_CFLAGS@%$CMAKE_ANSI_CFLAGS%g
  1082. s%@CMAKE_TEMPLATE_FLAGS@%$CMAKE_TEMPLATE_FLAGS%g
  1083. CEOF
  1084. EOF
  1085. cat >> $CONFIG_STATUS <<\EOF
  1086. # Split the substitutions into bite-sized pieces for seds with
  1087. # small command number limits, like on Digital OSF/1 and HP-UX.
  1088. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1089. ac_file=1 # Number of current file.
  1090. ac_beg=1 # First line for current file.
  1091. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1092. ac_more_lines=:
  1093. ac_sed_cmds=""
  1094. while $ac_more_lines; do
  1095. if test $ac_beg -gt 1; then
  1096. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1097. else
  1098. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1099. fi
  1100. if test ! -s conftest.s$ac_file; then
  1101. ac_more_lines=false
  1102. rm -f conftest.s$ac_file
  1103. else
  1104. if test -z "$ac_sed_cmds"; then
  1105. ac_sed_cmds="sed -f conftest.s$ac_file"
  1106. else
  1107. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1108. fi
  1109. ac_file=`expr $ac_file + 1`
  1110. ac_beg=$ac_end
  1111. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1112. fi
  1113. done
  1114. if test -z "$ac_sed_cmds"; then
  1115. ac_sed_cmds=cat
  1116. fi
  1117. EOF
  1118. cat >> $CONFIG_STATUS <<EOF
  1119. CONFIG_FILES=\${CONFIG_FILES-"Makefile Source/Makefile"}
  1120. EOF
  1121. cat >> $CONFIG_STATUS <<\EOF
  1122. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1123. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1124. case "$ac_file" in
  1125. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1126. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1127. *) ac_file_in="${ac_file}.in" ;;
  1128. esac
  1129. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1130. # Remove last slash and all that follows it. Not all systems have dirname.
  1131. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1132. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1133. # The file is in a subdirectory.
  1134. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1135. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1136. # A "../" for each directory in $ac_dir_suffix.
  1137. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1138. else
  1139. ac_dir_suffix= ac_dots=
  1140. fi
  1141. case "$ac_given_srcdir" in
  1142. .) srcdir=.
  1143. if test -z "$ac_dots"; then top_srcdir=.
  1144. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1145. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1146. *) # Relative path.
  1147. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1148. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1149. esac
  1150. case "$ac_given_INSTALL" in
  1151. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1152. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1153. esac
  1154. echo creating "$ac_file"
  1155. rm -f "$ac_file"
  1156. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1157. case "$ac_file" in
  1158. *Makefile*) ac_comsub="1i\\
  1159. # $configure_input" ;;
  1160. *) ac_comsub= ;;
  1161. esac
  1162. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1163. sed -e "$ac_comsub
  1164. s%@configure_input@%$configure_input%g
  1165. s%@srcdir@%$srcdir%g
  1166. s%@top_srcdir@%$top_srcdir%g
  1167. s%@INSTALL@%$INSTALL%g
  1168. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1169. fi; done
  1170. rm -f conftest.s*
  1171. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1172. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1173. #
  1174. # ac_d sets the value in "#define NAME VALUE" lines.
  1175. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  1176. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  1177. ac_dC='\3'
  1178. ac_dD='%g'
  1179. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1180. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1181. ac_uB='\([ ]\)%\1#\2define\3'
  1182. ac_uC=' '
  1183. ac_uD='\4%g'
  1184. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1185. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1186. ac_eB='$%\1#\2define\3'
  1187. ac_eC=' '
  1188. ac_eD='%g'
  1189. if test "${CONFIG_HEADERS+set}" != set; then
  1190. EOF
  1191. cat >> $CONFIG_STATUS <<EOF
  1192. CONFIG_HEADERS="Source/cmConfigure.h"
  1193. EOF
  1194. cat >> $CONFIG_STATUS <<\EOF
  1195. fi
  1196. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1197. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1198. case "$ac_file" in
  1199. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1200. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1201. *) ac_file_in="${ac_file}.in" ;;
  1202. esac
  1203. echo creating $ac_file
  1204. rm -f conftest.frag conftest.in conftest.out
  1205. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1206. cat $ac_file_inputs > conftest.in
  1207. EOF
  1208. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1209. # the proper values into config.h.in to produce config.h. And first:
  1210. # Protect against being on the right side of a sed subst in config.status.
  1211. # Protect against being in an unquoted here document in config.status.
  1212. rm -f conftest.vals
  1213. cat > conftest.hdr <<\EOF
  1214. s/[\\&%]/\\&/g
  1215. s%[\\$`]%\\&%g
  1216. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1217. s%ac_d%ac_u%gp
  1218. s%ac_u%ac_e%gp
  1219. EOF
  1220. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1221. rm -f conftest.hdr
  1222. # This sed command replaces #undef with comments. This is necessary, for
  1223. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1224. # on some systems where configure will not decide to define it.
  1225. cat >> conftest.vals <<\EOF
  1226. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1227. EOF
  1228. # Break up conftest.vals because some shells have a limit on
  1229. # the size of here documents, and old seds have small limits too.
  1230. rm -f conftest.tail
  1231. while :
  1232. do
  1233. ac_lines=`grep -c . conftest.vals`
  1234. # grep -c gives empty output for an empty file on some AIX systems.
  1235. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1236. # Write a limited-size here document to conftest.frag.
  1237. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1238. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1239. echo 'CEOF
  1240. sed -f conftest.frag conftest.in > conftest.out
  1241. rm -f conftest.in
  1242. mv conftest.out conftest.in
  1243. ' >> $CONFIG_STATUS
  1244. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1245. rm -f conftest.vals
  1246. mv conftest.tail conftest.vals
  1247. done
  1248. rm -f conftest.vals
  1249. cat >> $CONFIG_STATUS <<\EOF
  1250. rm -f conftest.frag conftest.h
  1251. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  1252. cat conftest.in >> conftest.h
  1253. rm -f conftest.in
  1254. if cmp -s $ac_file conftest.h 2>/dev/null; then
  1255. echo "$ac_file is unchanged"
  1256. rm -f conftest.h
  1257. else
  1258. # Remove last slash and all that follows it. Not all systems have dirname.
  1259. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1260. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1261. # The file is in a subdirectory.
  1262. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1263. fi
  1264. rm -f $ac_file
  1265. mv conftest.h $ac_file
  1266. fi
  1267. fi; done
  1268. EOF
  1269. cat >> $CONFIG_STATUS <<EOF
  1270. EOF
  1271. cat >> $CONFIG_STATUS <<\EOF
  1272. exit 0
  1273. EOF
  1274. chmod +x $CONFIG_STATUS
  1275. rm -fr confdefs* $ac_clean_files
  1276. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1