configure 85 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  185. if (eval "$as_required") 2>/dev/null; then :
  186. as_have_required=yes
  187. else
  188. as_have_required=no
  189. fi
  190. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  191. else
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. as_found=false
  194. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  195. do
  196. IFS=$as_save_IFS
  197. test -z "$as_dir" && as_dir=.
  198. as_found=:
  199. case $as_dir in #(
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. # Try only shells that exist, to save several forks.
  203. as_shell=$as_dir/$as_base
  204. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  205. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  206. CONFIG_SHELL=$as_shell as_have_required=yes
  207. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  216. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  217. CONFIG_SHELL=$SHELL as_have_required=yes
  218. fi; }
  219. IFS=$as_save_IFS
  220. if test "x$CONFIG_SHELL" != x; then :
  221. export CONFIG_SHELL
  222. # We cannot yet assume a decent shell, so we have to provide a
  223. # neutralization value for shells without unset; and this also
  224. # works around shells that cannot unset nonexistent variables.
  225. # Preserve -v and -x to the replacement shell.
  226. BASH_ENV=/dev/null
  227. ENV=/dev/null
  228. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  229. case $- in # ((((
  230. *v*x* | *x*v* ) as_opts=-vx ;;
  231. *v* ) as_opts=-v ;;
  232. *x* ) as_opts=-x ;;
  233. * ) as_opts= ;;
  234. esac
  235. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  236. # Admittedly, this is quite paranoid, since all the known shells bail
  237. # out after a failed `exec'.
  238. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  239. exit 255
  240. fi
  241. if test x$as_have_required = xno; then :
  242. $as_echo "$0: This script requires a shell more modern than all"
  243. $as_echo "$0: the shells that I found on your system."
  244. if test x${ZSH_VERSION+set} = xset ; then
  245. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  246. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  247. else
  248. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  249. $0: including any error possibly output before this
  250. $0: message. Then install a modern shell, or manually run
  251. $0: the script under such a shell if you do have one."
  252. fi
  253. exit 1
  254. fi
  255. fi
  256. fi
  257. SHELL=${CONFIG_SHELL-/bin/sh}
  258. export SHELL
  259. # Unset more variables known to interfere with behavior of common tools.
  260. CLICOLOR_FORCE= GREP_OPTIONS=
  261. unset CLICOLOR_FORCE GREP_OPTIONS
  262. ## --------------------- ##
  263. ## M4sh Shell Functions. ##
  264. ## --------------------- ##
  265. # as_fn_unset VAR
  266. # ---------------
  267. # Portably unset VAR.
  268. as_fn_unset ()
  269. {
  270. { eval $1=; unset $1;}
  271. }
  272. as_unset=as_fn_unset
  273. # as_fn_set_status STATUS
  274. # -----------------------
  275. # Set $? to STATUS, without forking.
  276. as_fn_set_status ()
  277. {
  278. return $1
  279. } # as_fn_set_status
  280. # as_fn_exit STATUS
  281. # -----------------
  282. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  283. as_fn_exit ()
  284. {
  285. set +e
  286. as_fn_set_status $1
  287. exit $1
  288. } # as_fn_exit
  289. # as_fn_mkdir_p
  290. # -------------
  291. # Create "$as_dir" as a directory, including parents if necessary.
  292. as_fn_mkdir_p ()
  293. {
  294. case $as_dir in #(
  295. -*) as_dir=./$as_dir;;
  296. esac
  297. test -d "$as_dir" || eval $as_mkdir_p || {
  298. as_dirs=
  299. while :; do
  300. case $as_dir in #(
  301. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  302. *) as_qdir=$as_dir;;
  303. esac
  304. as_dirs="'$as_qdir' $as_dirs"
  305. as_dir=`$as_dirname -- "$as_dir" ||
  306. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  307. X"$as_dir" : 'X\(//\)[^/]' \| \
  308. X"$as_dir" : 'X\(//\)$' \| \
  309. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  310. $as_echo X"$as_dir" |
  311. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  312. s//\1/
  313. q
  314. }
  315. /^X\(\/\/\)[^/].*/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\).*/{
  324. s//\1/
  325. q
  326. }
  327. s/.*/./; q'`
  328. test -d "$as_dir" && break
  329. done
  330. test -z "$as_dirs" || eval "mkdir $as_dirs"
  331. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  332. } # as_fn_mkdir_p
  333. # as_fn_executable_p FILE
  334. # -----------------------
  335. # Test if FILE is an executable regular file.
  336. as_fn_executable_p ()
  337. {
  338. test -f "$1" && test -x "$1"
  339. } # as_fn_executable_p
  340. # as_fn_append VAR VALUE
  341. # ----------------------
  342. # Append the text in VALUE to the end of the definition contained in VAR. Take
  343. # advantage of any shell optimizations that allow amortized linear growth over
  344. # repeated appends, instead of the typical quadratic growth present in naive
  345. # implementations.
  346. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  347. eval 'as_fn_append ()
  348. {
  349. eval $1+=\$2
  350. }'
  351. else
  352. as_fn_append ()
  353. {
  354. eval $1=\$$1\$2
  355. }
  356. fi # as_fn_append
  357. # as_fn_arith ARG...
  358. # ------------------
  359. # Perform arithmetic evaluation on the ARGs, and store the result in the
  360. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  361. # must be portable across $(()) and expr.
  362. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  363. eval 'as_fn_arith ()
  364. {
  365. as_val=$(( $* ))
  366. }'
  367. else
  368. as_fn_arith ()
  369. {
  370. as_val=`expr "$@" || test $? -eq 1`
  371. }
  372. fi # as_fn_arith
  373. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  374. # ----------------------------------------
  375. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  376. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  377. # script with STATUS, using 1 if that was 0.
  378. as_fn_error ()
  379. {
  380. as_status=$1; test $as_status -eq 0 && as_status=1
  381. if test "$4"; then
  382. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  383. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  384. fi
  385. $as_echo "$as_me: error: $2" >&2
  386. as_fn_exit $as_status
  387. } # as_fn_error
  388. if expr a : '\(a\)' >/dev/null 2>&1 &&
  389. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  390. as_expr=expr
  391. else
  392. as_expr=false
  393. fi
  394. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  395. as_basename=basename
  396. else
  397. as_basename=false
  398. fi
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. as_me=`$as_basename -- "$0" ||
  405. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  406. X"$0" : 'X\(//\)$' \| \
  407. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  408. $as_echo X/"$0" |
  409. sed '/^.*\/\([^/][^/]*\)\/*$/{
  410. s//\1/
  411. q
  412. }
  413. /^X\/\(\/\/\)$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\).*/{
  418. s//\1/
  419. q
  420. }
  421. s/.*/./; q'`
  422. # Avoid depending upon Character Ranges.
  423. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  424. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  425. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  426. as_cr_digits='0123456789'
  427. as_cr_alnum=$as_cr_Letters$as_cr_digits
  428. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  429. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  430. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  431. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  432. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  433. sed -n '
  434. p
  435. /[$]LINENO/=
  436. ' <$as_myself |
  437. sed '
  438. s/[$]LINENO.*/&-/
  439. t lineno
  440. b
  441. :lineno
  442. N
  443. :loop
  444. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  445. t loop
  446. s/-\n.*//
  447. ' >$as_me.lineno &&
  448. chmod +x "$as_me.lineno" ||
  449. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  450. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  451. # already done that, so ensure we don't try to do so again and fall
  452. # in an infinite loop. This has already happened in practice.
  453. _as_can_reexec=no; export _as_can_reexec
  454. # Don't try to exec as it changes $[0], causing all sort of problems
  455. # (the dirname of $[0] is not the place where we might find the
  456. # original and so on. Autoconf is especially sensitive to this).
  457. . "./$as_me.lineno"
  458. # Exit status is that of the last command.
  459. exit
  460. }
  461. ECHO_C= ECHO_N= ECHO_T=
  462. case `echo -n x` in #(((((
  463. -n*)
  464. case `echo 'xy\c'` in
  465. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  466. xy) ECHO_C='\c';;
  467. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  468. ECHO_T=' ';;
  469. esac;;
  470. *)
  471. ECHO_N='-n';;
  472. esac
  473. rm -f conf$$ conf$$.exe conf$$.file
  474. if test -d conf$$.dir; then
  475. rm -f conf$$.dir/conf$$.file
  476. else
  477. rm -f conf$$.dir
  478. mkdir conf$$.dir 2>/dev/null
  479. fi
  480. if (echo >conf$$.file) 2>/dev/null; then
  481. if ln -s conf$$.file conf$$ 2>/dev/null; then
  482. as_ln_s='ln -s'
  483. # ... but there are two gotchas:
  484. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  485. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  486. # In both cases, we have to default to `cp -pR'.
  487. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  488. as_ln_s='cp -pR'
  489. elif ln conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s=ln
  491. else
  492. as_ln_s='cp -pR'
  493. fi
  494. else
  495. as_ln_s='cp -pR'
  496. fi
  497. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  498. rmdir conf$$.dir 2>/dev/null
  499. if mkdir -p . 2>/dev/null; then
  500. as_mkdir_p='mkdir -p "$as_dir"'
  501. else
  502. test -d ./-p && rmdir ./-p
  503. as_mkdir_p=false
  504. fi
  505. as_test_x='test -x'
  506. as_executable_p=as_fn_executable_p
  507. # Sed expression to map a string onto a valid CPP name.
  508. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  509. # Sed expression to map a string onto a valid variable name.
  510. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  511. test -n "$DJDIR" || exec 7<&0 </dev/null
  512. exec 6>&1
  513. # Name of the host.
  514. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  515. # so uname gets run too.
  516. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  517. #
  518. # Initializations.
  519. #
  520. ac_default_prefix=/usr/local
  521. ac_clean_files=
  522. ac_config_libobj_dir=.
  523. LIBOBJS=
  524. cross_compiling=no
  525. subdirs=
  526. MFLAGS=
  527. MAKEFLAGS=
  528. # Identity of this package.
  529. PACKAGE_NAME=
  530. PACKAGE_TARNAME=
  531. PACKAGE_VERSION=
  532. PACKAGE_STRING=
  533. PACKAGE_BUGREPORT=
  534. PACKAGE_URL=
  535. ac_unique_file="Makefile.in"
  536. ac_subst_vars='LTLIBOBJS
  537. LIBOBJS
  538. SIM_COMMON_BUILD_FALSE
  539. SIM_COMMON_BUILD_TRUE
  540. sim_float
  541. target_alias
  542. host_alias
  543. build_alias
  544. LIBS
  545. ECHO_T
  546. ECHO_N
  547. ECHO_C
  548. DEFS
  549. mandir
  550. localedir
  551. libdir
  552. psdir
  553. pdfdir
  554. dvidir
  555. htmldir
  556. infodir
  557. docdir
  558. oldincludedir
  559. includedir
  560. localstatedir
  561. sharedstatedir
  562. sysconfdir
  563. datadir
  564. datarootdir
  565. libexecdir
  566. sbindir
  567. bindir
  568. program_transform_name
  569. prefix
  570. exec_prefix
  571. PACKAGE_URL
  572. PACKAGE_BUGREPORT
  573. PACKAGE_STRING
  574. PACKAGE_VERSION
  575. PACKAGE_TARNAME
  576. PACKAGE_NAME
  577. PATH_SEPARATOR
  578. SHELL
  579. sim_bitsize'
  580. ac_subst_files=''
  581. ac_user_opts='
  582. enable_option_checking
  583. enable_sim_bitsize
  584. '
  585. ac_precious_vars='build_alias
  586. host_alias
  587. target_alias'
  588. # Initialize some variables set by options.
  589. ac_init_help=
  590. ac_init_version=false
  591. ac_unrecognized_opts=
  592. ac_unrecognized_sep=
  593. # The variables have the same names as the options, with
  594. # dashes changed to underlines.
  595. cache_file=/dev/null
  596. exec_prefix=NONE
  597. no_create=
  598. no_recursion=
  599. prefix=NONE
  600. program_prefix=NONE
  601. program_suffix=NONE
  602. program_transform_name=s,x,x,
  603. silent=
  604. site=
  605. srcdir=
  606. verbose=
  607. x_includes=NONE
  608. x_libraries=NONE
  609. # Installation directory options.
  610. # These are left unexpanded so users can "make install exec_prefix=/foo"
  611. # and all the variables that are supposed to be based on exec_prefix
  612. # by default will actually change.
  613. # Use braces instead of parens because sh, perl, etc. also accept them.
  614. # (The list follows the same order as the GNU Coding Standards.)
  615. bindir='${exec_prefix}/bin'
  616. sbindir='${exec_prefix}/sbin'
  617. libexecdir='${exec_prefix}/libexec'
  618. datarootdir='${prefix}/share'
  619. datadir='${datarootdir}'
  620. sysconfdir='${prefix}/etc'
  621. sharedstatedir='${prefix}/com'
  622. localstatedir='${prefix}/var'
  623. includedir='${prefix}/include'
  624. oldincludedir='/usr/include'
  625. docdir='${datarootdir}/doc/${PACKAGE}'
  626. infodir='${datarootdir}/info'
  627. htmldir='${docdir}'
  628. dvidir='${docdir}'
  629. pdfdir='${docdir}'
  630. psdir='${docdir}'
  631. libdir='${exec_prefix}/lib'
  632. localedir='${datarootdir}/locale'
  633. mandir='${datarootdir}/man'
  634. ac_prev=
  635. ac_dashdash=
  636. for ac_option
  637. do
  638. # If the previous option needs an argument, assign it.
  639. if test -n "$ac_prev"; then
  640. eval $ac_prev=\$ac_option
  641. ac_prev=
  642. continue
  643. fi
  644. case $ac_option in
  645. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  646. *=) ac_optarg= ;;
  647. *) ac_optarg=yes ;;
  648. esac
  649. # Accept the important Cygnus configure options, so we can diagnose typos.
  650. case $ac_dashdash$ac_option in
  651. --)
  652. ac_dashdash=yes ;;
  653. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  654. ac_prev=bindir ;;
  655. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  656. bindir=$ac_optarg ;;
  657. -build | --build | --buil | --bui | --bu)
  658. ac_prev=build_alias ;;
  659. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  660. build_alias=$ac_optarg ;;
  661. -cache-file | --cache-file | --cache-fil | --cache-fi \
  662. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  663. ac_prev=cache_file ;;
  664. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  665. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  666. cache_file=$ac_optarg ;;
  667. --config-cache | -C)
  668. cache_file=config.cache ;;
  669. -datadir | --datadir | --datadi | --datad)
  670. ac_prev=datadir ;;
  671. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  672. datadir=$ac_optarg ;;
  673. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  674. | --dataroo | --dataro | --datar)
  675. ac_prev=datarootdir ;;
  676. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  677. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  678. datarootdir=$ac_optarg ;;
  679. -disable-* | --disable-*)
  680. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  681. # Reject names that are not valid shell variable names.
  682. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  683. as_fn_error $? "invalid feature name: $ac_useropt"
  684. ac_useropt_orig=$ac_useropt
  685. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  686. case $ac_user_opts in
  687. *"
  688. "enable_$ac_useropt"
  689. "*) ;;
  690. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  691. ac_unrecognized_sep=', ';;
  692. esac
  693. eval enable_$ac_useropt=no ;;
  694. -docdir | --docdir | --docdi | --doc | --do)
  695. ac_prev=docdir ;;
  696. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  697. docdir=$ac_optarg ;;
  698. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  699. ac_prev=dvidir ;;
  700. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  701. dvidir=$ac_optarg ;;
  702. -enable-* | --enable-*)
  703. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  704. # Reject names that are not valid shell variable names.
  705. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  706. as_fn_error $? "invalid feature name: $ac_useropt"
  707. ac_useropt_orig=$ac_useropt
  708. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  709. case $ac_user_opts in
  710. *"
  711. "enable_$ac_useropt"
  712. "*) ;;
  713. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  714. ac_unrecognized_sep=', ';;
  715. esac
  716. eval enable_$ac_useropt=\$ac_optarg ;;
  717. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  718. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  719. | --exec | --exe | --ex)
  720. ac_prev=exec_prefix ;;
  721. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  722. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  723. | --exec=* | --exe=* | --ex=*)
  724. exec_prefix=$ac_optarg ;;
  725. -gas | --gas | --ga | --g)
  726. # Obsolete; use --with-gas.
  727. with_gas=yes ;;
  728. -help | --help | --hel | --he | -h)
  729. ac_init_help=long ;;
  730. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  731. ac_init_help=recursive ;;
  732. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  733. ac_init_help=short ;;
  734. -host | --host | --hos | --ho)
  735. ac_prev=host_alias ;;
  736. -host=* | --host=* | --hos=* | --ho=*)
  737. host_alias=$ac_optarg ;;
  738. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  739. ac_prev=htmldir ;;
  740. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  741. | --ht=*)
  742. htmldir=$ac_optarg ;;
  743. -includedir | --includedir | --includedi | --included | --include \
  744. | --includ | --inclu | --incl | --inc)
  745. ac_prev=includedir ;;
  746. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  747. | --includ=* | --inclu=* | --incl=* | --inc=*)
  748. includedir=$ac_optarg ;;
  749. -infodir | --infodir | --infodi | --infod | --info | --inf)
  750. ac_prev=infodir ;;
  751. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  752. infodir=$ac_optarg ;;
  753. -libdir | --libdir | --libdi | --libd)
  754. ac_prev=libdir ;;
  755. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  756. libdir=$ac_optarg ;;
  757. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  758. | --libexe | --libex | --libe)
  759. ac_prev=libexecdir ;;
  760. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  761. | --libexe=* | --libex=* | --libe=*)
  762. libexecdir=$ac_optarg ;;
  763. -localedir | --localedir | --localedi | --localed | --locale)
  764. ac_prev=localedir ;;
  765. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  766. localedir=$ac_optarg ;;
  767. -localstatedir | --localstatedir | --localstatedi | --localstated \
  768. | --localstate | --localstat | --localsta | --localst | --locals)
  769. ac_prev=localstatedir ;;
  770. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  771. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  772. localstatedir=$ac_optarg ;;
  773. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  774. ac_prev=mandir ;;
  775. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  776. mandir=$ac_optarg ;;
  777. -nfp | --nfp | --nf)
  778. # Obsolete; use --without-fp.
  779. with_fp=no ;;
  780. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  781. | --no-cr | --no-c | -n)
  782. no_create=yes ;;
  783. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  784. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  785. no_recursion=yes ;;
  786. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  787. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  788. | --oldin | --oldi | --old | --ol | --o)
  789. ac_prev=oldincludedir ;;
  790. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  791. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  792. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  793. oldincludedir=$ac_optarg ;;
  794. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  795. ac_prev=prefix ;;
  796. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  797. prefix=$ac_optarg ;;
  798. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  799. | --program-pre | --program-pr | --program-p)
  800. ac_prev=program_prefix ;;
  801. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  802. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  803. program_prefix=$ac_optarg ;;
  804. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  805. | --program-suf | --program-su | --program-s)
  806. ac_prev=program_suffix ;;
  807. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  808. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  809. program_suffix=$ac_optarg ;;
  810. -program-transform-name | --program-transform-name \
  811. | --program-transform-nam | --program-transform-na \
  812. | --program-transform-n | --program-transform- \
  813. | --program-transform | --program-transfor \
  814. | --program-transfo | --program-transf \
  815. | --program-trans | --program-tran \
  816. | --progr-tra | --program-tr | --program-t)
  817. ac_prev=program_transform_name ;;
  818. -program-transform-name=* | --program-transform-name=* \
  819. | --program-transform-nam=* | --program-transform-na=* \
  820. | --program-transform-n=* | --program-transform-=* \
  821. | --program-transform=* | --program-transfor=* \
  822. | --program-transfo=* | --program-transf=* \
  823. | --program-trans=* | --program-tran=* \
  824. | --progr-tra=* | --program-tr=* | --program-t=*)
  825. program_transform_name=$ac_optarg ;;
  826. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  827. ac_prev=pdfdir ;;
  828. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  829. pdfdir=$ac_optarg ;;
  830. -psdir | --psdir | --psdi | --psd | --ps)
  831. ac_prev=psdir ;;
  832. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  833. psdir=$ac_optarg ;;
  834. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  835. | -silent | --silent | --silen | --sile | --sil)
  836. silent=yes ;;
  837. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  838. ac_prev=sbindir ;;
  839. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  840. | --sbi=* | --sb=*)
  841. sbindir=$ac_optarg ;;
  842. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  843. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  844. | --sharedst | --shareds | --shared | --share | --shar \
  845. | --sha | --sh)
  846. ac_prev=sharedstatedir ;;
  847. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  848. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  849. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  850. | --sha=* | --sh=*)
  851. sharedstatedir=$ac_optarg ;;
  852. -site | --site | --sit)
  853. ac_prev=site ;;
  854. -site=* | --site=* | --sit=*)
  855. site=$ac_optarg ;;
  856. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  857. ac_prev=srcdir ;;
  858. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  859. srcdir=$ac_optarg ;;
  860. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  861. | --syscon | --sysco | --sysc | --sys | --sy)
  862. ac_prev=sysconfdir ;;
  863. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  864. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  865. sysconfdir=$ac_optarg ;;
  866. -target | --target | --targe | --targ | --tar | --ta | --t)
  867. ac_prev=target_alias ;;
  868. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  869. target_alias=$ac_optarg ;;
  870. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  871. verbose=yes ;;
  872. -version | --version | --versio | --versi | --vers | -V)
  873. ac_init_version=: ;;
  874. -with-* | --with-*)
  875. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  876. # Reject names that are not valid shell variable names.
  877. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  878. as_fn_error $? "invalid package name: $ac_useropt"
  879. ac_useropt_orig=$ac_useropt
  880. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  881. case $ac_user_opts in
  882. *"
  883. "with_$ac_useropt"
  884. "*) ;;
  885. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  886. ac_unrecognized_sep=', ';;
  887. esac
  888. eval with_$ac_useropt=\$ac_optarg ;;
  889. -without-* | --without-*)
  890. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  891. # Reject names that are not valid shell variable names.
  892. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  893. as_fn_error $? "invalid package name: $ac_useropt"
  894. ac_useropt_orig=$ac_useropt
  895. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  896. case $ac_user_opts in
  897. *"
  898. "with_$ac_useropt"
  899. "*) ;;
  900. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  901. ac_unrecognized_sep=', ';;
  902. esac
  903. eval with_$ac_useropt=no ;;
  904. --x)
  905. # Obsolete; use --with-x.
  906. with_x=yes ;;
  907. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  908. | --x-incl | --x-inc | --x-in | --x-i)
  909. ac_prev=x_includes ;;
  910. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  911. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  912. x_includes=$ac_optarg ;;
  913. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  914. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  915. ac_prev=x_libraries ;;
  916. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  917. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  918. x_libraries=$ac_optarg ;;
  919. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  920. Try \`$0 --help' for more information"
  921. ;;
  922. *=*)
  923. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  924. # Reject names that are not valid shell variable names.
  925. case $ac_envvar in #(
  926. '' | [0-9]* | *[!_$as_cr_alnum]* )
  927. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  928. esac
  929. eval $ac_envvar=\$ac_optarg
  930. export $ac_envvar ;;
  931. *)
  932. # FIXME: should be removed in autoconf 3.0.
  933. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  934. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  935. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  936. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  937. ;;
  938. esac
  939. done
  940. if test -n "$ac_prev"; then
  941. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  942. as_fn_error $? "missing argument to $ac_option"
  943. fi
  944. if test -n "$ac_unrecognized_opts"; then
  945. case $enable_option_checking in
  946. no) ;;
  947. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  948. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  949. esac
  950. fi
  951. # Check all directory arguments for consistency.
  952. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  953. datadir sysconfdir sharedstatedir localstatedir includedir \
  954. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  955. libdir localedir mandir
  956. do
  957. eval ac_val=\$$ac_var
  958. # Remove trailing slashes.
  959. case $ac_val in
  960. */ )
  961. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  962. eval $ac_var=\$ac_val;;
  963. esac
  964. # Be sure to have absolute directory names.
  965. case $ac_val in
  966. [\\/$]* | ?:[\\/]* ) continue;;
  967. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  968. esac
  969. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  970. done
  971. # There might be people who depend on the old broken behavior: `$host'
  972. # used to hold the argument of --host etc.
  973. # FIXME: To remove some day.
  974. build=$build_alias
  975. host=$host_alias
  976. target=$target_alias
  977. # FIXME: To remove some day.
  978. if test "x$host_alias" != x; then
  979. if test "x$build_alias" = x; then
  980. cross_compiling=maybe
  981. elif test "x$build_alias" != "x$host_alias"; then
  982. cross_compiling=yes
  983. fi
  984. fi
  985. ac_tool_prefix=
  986. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  987. test "$silent" = yes && exec 6>/dev/null
  988. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  989. ac_ls_di=`ls -di .` &&
  990. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  991. as_fn_error $? "working directory cannot be determined"
  992. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  993. as_fn_error $? "pwd does not report name of working directory"
  994. # Find the source files, if location was not specified.
  995. if test -z "$srcdir"; then
  996. ac_srcdir_defaulted=yes
  997. # Try the directory containing this script, then the parent directory.
  998. ac_confdir=`$as_dirname -- "$as_myself" ||
  999. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1000. X"$as_myself" : 'X\(//\)[^/]' \| \
  1001. X"$as_myself" : 'X\(//\)$' \| \
  1002. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1003. $as_echo X"$as_myself" |
  1004. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1005. s//\1/
  1006. q
  1007. }
  1008. /^X\(\/\/\)[^/].*/{
  1009. s//\1/
  1010. q
  1011. }
  1012. /^X\(\/\/\)$/{
  1013. s//\1/
  1014. q
  1015. }
  1016. /^X\(\/\).*/{
  1017. s//\1/
  1018. q
  1019. }
  1020. s/.*/./; q'`
  1021. srcdir=$ac_confdir
  1022. if test ! -r "$srcdir/$ac_unique_file"; then
  1023. srcdir=..
  1024. fi
  1025. else
  1026. ac_srcdir_defaulted=no
  1027. fi
  1028. if test ! -r "$srcdir/$ac_unique_file"; then
  1029. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1030. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1031. fi
  1032. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1033. ac_abs_confdir=`(
  1034. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1035. pwd)`
  1036. # When building in place, set srcdir=.
  1037. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1038. srcdir=.
  1039. fi
  1040. # Remove unnecessary trailing slashes from srcdir.
  1041. # Double slashes in file names in object file debugging info
  1042. # mess up M-x gdb in Emacs.
  1043. case $srcdir in
  1044. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1045. esac
  1046. for ac_var in $ac_precious_vars; do
  1047. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1048. eval ac_env_${ac_var}_value=\$${ac_var}
  1049. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1050. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1051. done
  1052. #
  1053. # Report the --help message.
  1054. #
  1055. if test "$ac_init_help" = "long"; then
  1056. # Omit some internal or obsolete options to make the list less imposing.
  1057. # This message is too long to be a string in the A/UX 3.1 sh.
  1058. cat <<_ACEOF
  1059. \`configure' configures this package to adapt to many kinds of systems.
  1060. Usage: $0 [OPTION]... [VAR=VALUE]...
  1061. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1062. VAR=VALUE. See below for descriptions of some of the useful variables.
  1063. Defaults for the options are specified in brackets.
  1064. Configuration:
  1065. -h, --help display this help and exit
  1066. --help=short display options specific to this package
  1067. --help=recursive display the short help of all the included packages
  1068. -V, --version display version information and exit
  1069. -q, --quiet, --silent do not print \`checking ...' messages
  1070. --cache-file=FILE cache test results in FILE [disabled]
  1071. -C, --config-cache alias for \`--cache-file=config.cache'
  1072. -n, --no-create do not create output files
  1073. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1074. Installation directories:
  1075. --prefix=PREFIX install architecture-independent files in PREFIX
  1076. [$ac_default_prefix]
  1077. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1078. [PREFIX]
  1079. By default, \`make install' will install all the files in
  1080. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1081. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1082. for instance \`--prefix=\$HOME'.
  1083. For better control, use the options below.
  1084. Fine tuning of the installation directories:
  1085. --bindir=DIR user executables [EPREFIX/bin]
  1086. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1087. --libexecdir=DIR program executables [EPREFIX/libexec]
  1088. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1089. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1090. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1091. --libdir=DIR object code libraries [EPREFIX/lib]
  1092. --includedir=DIR C header files [PREFIX/include]
  1093. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1094. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1095. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1096. --infodir=DIR info documentation [DATAROOTDIR/info]
  1097. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1098. --mandir=DIR man documentation [DATAROOTDIR/man]
  1099. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1100. --htmldir=DIR html documentation [DOCDIR]
  1101. --dvidir=DIR dvi documentation [DOCDIR]
  1102. --pdfdir=DIR pdf documentation [DOCDIR]
  1103. --psdir=DIR ps documentation [DOCDIR]
  1104. _ACEOF
  1105. cat <<\_ACEOF
  1106. _ACEOF
  1107. fi
  1108. if test -n "$ac_init_help"; then
  1109. cat <<\_ACEOF
  1110. Optional Features:
  1111. --disable-option-checking ignore unrecognized --enable/--with options
  1112. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1113. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1114. --enable-sim-bitsize=N Specify target bitsize (32 or 64)
  1115. Report bugs to the package provider.
  1116. _ACEOF
  1117. ac_status=$?
  1118. fi
  1119. if test "$ac_init_help" = "recursive"; then
  1120. # If there are subdirs, report their specific --help.
  1121. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1122. test -d "$ac_dir" ||
  1123. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1124. continue
  1125. ac_builddir=.
  1126. case "$ac_dir" in
  1127. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1128. *)
  1129. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1130. # A ".." for each directory in $ac_dir_suffix.
  1131. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1132. case $ac_top_builddir_sub in
  1133. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1134. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1135. esac ;;
  1136. esac
  1137. ac_abs_top_builddir=$ac_pwd
  1138. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1139. # for backward compatibility:
  1140. ac_top_builddir=$ac_top_build_prefix
  1141. case $srcdir in
  1142. .) # We are building in place.
  1143. ac_srcdir=.
  1144. ac_top_srcdir=$ac_top_builddir_sub
  1145. ac_abs_top_srcdir=$ac_pwd ;;
  1146. [\\/]* | ?:[\\/]* ) # Absolute name.
  1147. ac_srcdir=$srcdir$ac_dir_suffix;
  1148. ac_top_srcdir=$srcdir
  1149. ac_abs_top_srcdir=$srcdir ;;
  1150. *) # Relative name.
  1151. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1152. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1153. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1154. esac
  1155. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1156. cd "$ac_dir" || { ac_status=$?; continue; }
  1157. # Check for guested configure.
  1158. if test -f "$ac_srcdir/configure.gnu"; then
  1159. echo &&
  1160. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1161. elif test -f "$ac_srcdir/configure"; then
  1162. echo &&
  1163. $SHELL "$ac_srcdir/configure" --help=recursive
  1164. else
  1165. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1166. fi || ac_status=$?
  1167. cd "$ac_pwd" || { ac_status=$?; break; }
  1168. done
  1169. fi
  1170. test -n "$ac_init_help" && exit $ac_status
  1171. if $ac_init_version; then
  1172. cat <<\_ACEOF
  1173. configure
  1174. generated by GNU Autoconf 2.69
  1175. Copyright (C) 2012 Free Software Foundation, Inc.
  1176. This configure script is free software; the Free Software Foundation
  1177. gives unlimited permission to copy, distribute and modify it.
  1178. _ACEOF
  1179. exit
  1180. fi
  1181. ## ------------------------ ##
  1182. ## Autoconf initialization. ##
  1183. ## ------------------------ ##
  1184. cat >config.log <<_ACEOF
  1185. This file contains any messages produced by compilers while
  1186. running configure, to aid debugging if configure makes a mistake.
  1187. It was created by $as_me, which was
  1188. generated by GNU Autoconf 2.69. Invocation command line was
  1189. $ $0 $@
  1190. _ACEOF
  1191. exec 5>>config.log
  1192. {
  1193. cat <<_ASUNAME
  1194. ## --------- ##
  1195. ## Platform. ##
  1196. ## --------- ##
  1197. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1198. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1199. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1200. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1201. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1202. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1203. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1204. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1205. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1206. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1207. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1208. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1209. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1210. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1211. _ASUNAME
  1212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1213. for as_dir in $PATH
  1214. do
  1215. IFS=$as_save_IFS
  1216. test -z "$as_dir" && as_dir=.
  1217. $as_echo "PATH: $as_dir"
  1218. done
  1219. IFS=$as_save_IFS
  1220. } >&5
  1221. cat >&5 <<_ACEOF
  1222. ## ----------- ##
  1223. ## Core tests. ##
  1224. ## ----------- ##
  1225. _ACEOF
  1226. # Keep a trace of the command line.
  1227. # Strip out --no-create and --no-recursion so they do not pile up.
  1228. # Strip out --silent because we don't want to record it for future runs.
  1229. # Also quote any args containing shell meta-characters.
  1230. # Make two passes to allow for proper duplicate-argument suppression.
  1231. ac_configure_args=
  1232. ac_configure_args0=
  1233. ac_configure_args1=
  1234. ac_must_keep_next=false
  1235. for ac_pass in 1 2
  1236. do
  1237. for ac_arg
  1238. do
  1239. case $ac_arg in
  1240. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1241. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1242. | -silent | --silent | --silen | --sile | --sil)
  1243. continue ;;
  1244. *\'*)
  1245. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1246. esac
  1247. case $ac_pass in
  1248. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1249. 2)
  1250. as_fn_append ac_configure_args1 " '$ac_arg'"
  1251. if test $ac_must_keep_next = true; then
  1252. ac_must_keep_next=false # Got value, back to normal.
  1253. else
  1254. case $ac_arg in
  1255. *=* | --config-cache | -C | -disable-* | --disable-* \
  1256. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1257. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1258. | -with-* | --with-* | -without-* | --without-* | --x)
  1259. case "$ac_configure_args0 " in
  1260. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1261. esac
  1262. ;;
  1263. -* ) ac_must_keep_next=true ;;
  1264. esac
  1265. fi
  1266. as_fn_append ac_configure_args " '$ac_arg'"
  1267. ;;
  1268. esac
  1269. done
  1270. done
  1271. { ac_configure_args0=; unset ac_configure_args0;}
  1272. { ac_configure_args1=; unset ac_configure_args1;}
  1273. # When interrupted or exit'd, cleanup temporary files, and complete
  1274. # config.log. We remove comments because anyway the quotes in there
  1275. # would cause problems or look ugly.
  1276. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1277. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1278. trap 'exit_status=$?
  1279. # Save into config.log some information that might help in debugging.
  1280. {
  1281. echo
  1282. $as_echo "## ---------------- ##
  1283. ## Cache variables. ##
  1284. ## ---------------- ##"
  1285. echo
  1286. # The following way of writing the cache mishandles newlines in values,
  1287. (
  1288. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1289. eval ac_val=\$$ac_var
  1290. case $ac_val in #(
  1291. *${as_nl}*)
  1292. case $ac_var in #(
  1293. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1294. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1295. esac
  1296. case $ac_var in #(
  1297. _ | IFS | as_nl) ;; #(
  1298. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1299. *) { eval $ac_var=; unset $ac_var;} ;;
  1300. esac ;;
  1301. esac
  1302. done
  1303. (set) 2>&1 |
  1304. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1305. *${as_nl}ac_space=\ *)
  1306. sed -n \
  1307. "s/'\''/'\''\\\\'\'''\''/g;
  1308. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1309. ;; #(
  1310. *)
  1311. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1312. ;;
  1313. esac |
  1314. sort
  1315. )
  1316. echo
  1317. $as_echo "## ----------------- ##
  1318. ## Output variables. ##
  1319. ## ----------------- ##"
  1320. echo
  1321. for ac_var in $ac_subst_vars
  1322. do
  1323. eval ac_val=\$$ac_var
  1324. case $ac_val in
  1325. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1326. esac
  1327. $as_echo "$ac_var='\''$ac_val'\''"
  1328. done | sort
  1329. echo
  1330. if test -n "$ac_subst_files"; then
  1331. $as_echo "## ------------------- ##
  1332. ## File substitutions. ##
  1333. ## ------------------- ##"
  1334. echo
  1335. for ac_var in $ac_subst_files
  1336. do
  1337. eval ac_val=\$$ac_var
  1338. case $ac_val in
  1339. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1340. esac
  1341. $as_echo "$ac_var='\''$ac_val'\''"
  1342. done | sort
  1343. echo
  1344. fi
  1345. if test -s confdefs.h; then
  1346. $as_echo "## ----------- ##
  1347. ## confdefs.h. ##
  1348. ## ----------- ##"
  1349. echo
  1350. cat confdefs.h
  1351. echo
  1352. fi
  1353. test "$ac_signal" != 0 &&
  1354. $as_echo "$as_me: caught signal $ac_signal"
  1355. $as_echo "$as_me: exit $exit_status"
  1356. } >&5
  1357. rm -f core *.core core.conftest.* &&
  1358. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1359. exit $exit_status
  1360. ' 0
  1361. for ac_signal in 1 2 13 15; do
  1362. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1363. done
  1364. ac_signal=0
  1365. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1366. rm -f -r conftest* confdefs.h
  1367. $as_echo "/* confdefs.h */" > confdefs.h
  1368. # Predefined preprocessor variables.
  1369. cat >>confdefs.h <<_ACEOF
  1370. #define PACKAGE_NAME "$PACKAGE_NAME"
  1371. _ACEOF
  1372. cat >>confdefs.h <<_ACEOF
  1373. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1374. _ACEOF
  1375. cat >>confdefs.h <<_ACEOF
  1376. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1377. _ACEOF
  1378. cat >>confdefs.h <<_ACEOF
  1379. #define PACKAGE_STRING "$PACKAGE_STRING"
  1380. _ACEOF
  1381. cat >>confdefs.h <<_ACEOF
  1382. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1383. _ACEOF
  1384. cat >>confdefs.h <<_ACEOF
  1385. #define PACKAGE_URL "$PACKAGE_URL"
  1386. _ACEOF
  1387. # Let the site file select an alternate cache file if it wants to.
  1388. # Prefer an explicitly selected file to automatically selected ones.
  1389. ac_site_file1=NONE
  1390. ac_site_file2=NONE
  1391. if test -n "$CONFIG_SITE"; then
  1392. # We do not want a PATH search for config.site.
  1393. case $CONFIG_SITE in #((
  1394. -*) ac_site_file1=./$CONFIG_SITE;;
  1395. */*) ac_site_file1=$CONFIG_SITE;;
  1396. *) ac_site_file1=./$CONFIG_SITE;;
  1397. esac
  1398. elif test "x$prefix" != xNONE; then
  1399. ac_site_file1=$prefix/share/config.site
  1400. ac_site_file2=$prefix/etc/config.site
  1401. else
  1402. ac_site_file1=$ac_default_prefix/share/config.site
  1403. ac_site_file2=$ac_default_prefix/etc/config.site
  1404. fi
  1405. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1406. do
  1407. test "x$ac_site_file" = xNONE && continue
  1408. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1409. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1410. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1411. sed 's/^/| /' "$ac_site_file" >&5
  1412. . "$ac_site_file" \
  1413. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1414. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1415. as_fn_error $? "failed to load site script $ac_site_file
  1416. See \`config.log' for more details" "$LINENO" 5; }
  1417. fi
  1418. done
  1419. if test -r "$cache_file"; then
  1420. # Some versions of bash will fail to source /dev/null (special files
  1421. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1422. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1423. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1424. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1425. case $cache_file in
  1426. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1427. *) . "./$cache_file";;
  1428. esac
  1429. fi
  1430. else
  1431. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1432. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1433. >$cache_file
  1434. fi
  1435. # Check that the precious variables saved in the cache have kept the same
  1436. # value.
  1437. ac_cache_corrupted=false
  1438. for ac_var in $ac_precious_vars; do
  1439. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1440. eval ac_new_set=\$ac_env_${ac_var}_set
  1441. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1442. eval ac_new_val=\$ac_env_${ac_var}_value
  1443. case $ac_old_set,$ac_new_set in
  1444. set,)
  1445. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1446. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1447. ac_cache_corrupted=: ;;
  1448. ,set)
  1449. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1450. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1451. ac_cache_corrupted=: ;;
  1452. ,);;
  1453. *)
  1454. if test "x$ac_old_val" != "x$ac_new_val"; then
  1455. # differences in whitespace do not lead to failure.
  1456. ac_old_val_w=`echo x $ac_old_val`
  1457. ac_new_val_w=`echo x $ac_new_val`
  1458. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1459. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1460. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1461. ac_cache_corrupted=:
  1462. else
  1463. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1464. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1465. eval $ac_var=\$ac_old_val
  1466. fi
  1467. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1468. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1469. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1470. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1471. fi;;
  1472. esac
  1473. # Pass precious variables to config.status.
  1474. if test "$ac_new_set" = set; then
  1475. case $ac_new_val in
  1476. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1477. *) ac_arg=$ac_var=$ac_new_val ;;
  1478. esac
  1479. case " $ac_configure_args " in
  1480. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1481. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1482. esac
  1483. fi
  1484. done
  1485. if $ac_cache_corrupted; then
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1487. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1489. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1490. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1491. fi
  1492. ## -------------------- ##
  1493. ## Main body of script. ##
  1494. ## -------------------- ##
  1495. ac_ext=c
  1496. ac_cpp='$CPP $CPPFLAGS'
  1497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1500. wire_word_bitsize="32"
  1501. wire_word_msb="31"
  1502. wire_address_bitsize=""
  1503. wire_cell_bitsize=""
  1504. # Check whether --enable-sim-bitsize was given.
  1505. if test "${enable_sim_bitsize+set}" = set; then :
  1506. enableval=$enable_sim_bitsize; sim_bitsize=
  1507. case "${enableval}" in
  1508. 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
  1509. 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
  1510. 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
  1511. 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
  1512. 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
  1513. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
  1514. else
  1515. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
  1516. fi ;;
  1517. 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
  1518. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
  1519. else
  1520. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
  1521. fi ;;
  1522. *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
  1523. esac
  1524. # address bitsize
  1525. tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
  1526. case x"${tmp}" in
  1527. x ) ;;
  1528. x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
  1529. x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
  1530. * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
  1531. esac
  1532. # cell bitsize
  1533. tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
  1534. case x"${tmp}" in
  1535. x ) ;;
  1536. x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
  1537. x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
  1538. * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
  1539. esac
  1540. if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
  1541. echo "Setting bitsize flags = $sim_bitsize" 6>&1
  1542. fi
  1543. else
  1544. sim_bitsize=""
  1545. if test x"$wire_word_bitsize" != x; then
  1546. sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
  1547. fi
  1548. if test x"$wire_word_msb" != x; then
  1549. sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
  1550. fi
  1551. if test x"$wire_address_bitsize" != x; then
  1552. sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
  1553. fi
  1554. if test x"$wire_cell_bitsize" != x; then
  1555. sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
  1556. fi
  1557. fi
  1558. ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
  1559. ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
  1560. ac_config_commands="$ac_config_commands Makefile"
  1561. ac_config_commands="$ac_config_commands stamp-h"
  1562. SIM_COMMON_BUILD_TRUE='#'
  1563. SIM_COMMON_BUILD_FALSE=
  1564. cat >confcache <<\_ACEOF
  1565. # This file is a shell script that caches the results of configure
  1566. # tests run on this system so they can be shared between configure
  1567. # scripts and configure runs, see configure's option --config-cache.
  1568. # It is not useful on other systems. If it contains results you don't
  1569. # want to keep, you may remove or edit it.
  1570. #
  1571. # config.status only pays attention to the cache file if you give it
  1572. # the --recheck option to rerun configure.
  1573. #
  1574. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  1575. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  1576. # following values.
  1577. _ACEOF
  1578. # The following way of writing the cache mishandles newlines in values,
  1579. # but we know of no workaround that is simple, portable, and efficient.
  1580. # So, we kill variables containing newlines.
  1581. # Ultrix sh set writes to stderr and can't be redirected directly,
  1582. # and sets the high bit in the cache file unless we assign to the vars.
  1583. (
  1584. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  1585. eval ac_val=\$$ac_var
  1586. case $ac_val in #(
  1587. *${as_nl}*)
  1588. case $ac_var in #(
  1589. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1590. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1591. esac
  1592. case $ac_var in #(
  1593. _ | IFS | as_nl) ;; #(
  1594. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1595. *) { eval $ac_var=; unset $ac_var;} ;;
  1596. esac ;;
  1597. esac
  1598. done
  1599. (set) 2>&1 |
  1600. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  1601. *${as_nl}ac_space=\ *)
  1602. # `set' does not quote correctly, so add quotes: double-quote
  1603. # substitution turns \\\\ into \\, and sed turns \\ into \.
  1604. sed -n \
  1605. "s/'/'\\\\''/g;
  1606. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  1607. ;; #(
  1608. *)
  1609. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1610. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1611. ;;
  1612. esac |
  1613. sort
  1614. ) |
  1615. sed '
  1616. /^ac_cv_env_/b end
  1617. t clear
  1618. :clear
  1619. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  1620. t end
  1621. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  1622. :end' >>confcache
  1623. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  1624. if test -w "$cache_file"; then
  1625. if test "x$cache_file" != "x/dev/null"; then
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  1627. $as_echo "$as_me: updating cache $cache_file" >&6;}
  1628. if test ! -f "$cache_file" || test -h "$cache_file"; then
  1629. cat confcache >"$cache_file"
  1630. else
  1631. case $cache_file in #(
  1632. */* | ?:*)
  1633. mv -f confcache "$cache_file"$$ &&
  1634. mv -f "$cache_file"$$ "$cache_file" ;; #(
  1635. *)
  1636. mv -f confcache "$cache_file" ;;
  1637. esac
  1638. fi
  1639. fi
  1640. else
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  1642. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  1643. fi
  1644. fi
  1645. rm -f confcache
  1646. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1647. # Let make expand exec_prefix.
  1648. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1649. # Transform confdefs.h into DEFS.
  1650. # Protect against shell expansion while executing Makefile rules.
  1651. # Protect against Makefile macro expansion.
  1652. #
  1653. # If the first sed substitution is executed (which looks for macros that
  1654. # take arguments), then branch to the quote section. Otherwise,
  1655. # look for a macro that doesn't take arguments.
  1656. ac_script='
  1657. :mline
  1658. /\\$/{
  1659. N
  1660. s,\\\n,,
  1661. b mline
  1662. }
  1663. t clear
  1664. :clear
  1665. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  1666. t quote
  1667. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  1668. t quote
  1669. b any
  1670. :quote
  1671. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  1672. s/\[/\\&/g
  1673. s/\]/\\&/g
  1674. s/\$/$$/g
  1675. H
  1676. :any
  1677. ${
  1678. g
  1679. s/^\n//
  1680. s/\n/ /g
  1681. p
  1682. }
  1683. '
  1684. DEFS=`sed -n "$ac_script" confdefs.h`
  1685. ac_libobjs=
  1686. ac_ltlibobjs=
  1687. U=
  1688. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  1689. # 1. Remove the extension, and $U if already installed.
  1690. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  1691. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  1692. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  1693. # will be set to the directory where LIBOBJS objects are built.
  1694. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  1695. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  1696. done
  1697. LIBOBJS=$ac_libobjs
  1698. LTLIBOBJS=$ac_ltlibobjs
  1699. : "${CONFIG_STATUS=./config.status}"
  1700. ac_write_fail=0
  1701. ac_clean_files_save=$ac_clean_files
  1702. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  1704. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  1705. as_write_fail=0
  1706. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  1707. #! $SHELL
  1708. # Generated by $as_me.
  1709. # Run this file to recreate the current configuration.
  1710. # Compiler output produced by configure, useful for debugging
  1711. # configure, is in config.log if it exists.
  1712. debug=false
  1713. ac_cs_recheck=false
  1714. ac_cs_silent=false
  1715. SHELL=\${CONFIG_SHELL-$SHELL}
  1716. export SHELL
  1717. _ASEOF
  1718. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  1719. ## -------------------- ##
  1720. ## M4sh Initialization. ##
  1721. ## -------------------- ##
  1722. # Be more Bourne compatible
  1723. DUALCASE=1; export DUALCASE # for MKS sh
  1724. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  1725. emulate sh
  1726. NULLCMD=:
  1727. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  1728. # is contrary to our usage. Disable this feature.
  1729. alias -g '${1+"$@"}'='"$@"'
  1730. setopt NO_GLOB_SUBST
  1731. else
  1732. case `(set -o) 2>/dev/null` in #(
  1733. *posix*) :
  1734. set -o posix ;; #(
  1735. *) :
  1736. ;;
  1737. esac
  1738. fi
  1739. as_nl='
  1740. '
  1741. export as_nl
  1742. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  1743. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1744. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  1745. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  1746. # Prefer a ksh shell builtin over an external printf program on Solaris,
  1747. # but without wasting forks for bash or zsh.
  1748. if test -z "$BASH_VERSION$ZSH_VERSION" \
  1749. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  1750. as_echo='print -r --'
  1751. as_echo_n='print -rn --'
  1752. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  1753. as_echo='printf %s\n'
  1754. as_echo_n='printf %s'
  1755. else
  1756. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  1757. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  1758. as_echo_n='/usr/ucb/echo -n'
  1759. else
  1760. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  1761. as_echo_n_body='eval
  1762. arg=$1;
  1763. case $arg in #(
  1764. *"$as_nl"*)
  1765. expr "X$arg" : "X\\(.*\\)$as_nl";
  1766. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  1767. esac;
  1768. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  1769. '
  1770. export as_echo_n_body
  1771. as_echo_n='sh -c $as_echo_n_body as_echo'
  1772. fi
  1773. export as_echo_body
  1774. as_echo='sh -c $as_echo_body as_echo'
  1775. fi
  1776. # The user is always right.
  1777. if test "${PATH_SEPARATOR+set}" != set; then
  1778. PATH_SEPARATOR=:
  1779. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  1780. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  1781. PATH_SEPARATOR=';'
  1782. }
  1783. fi
  1784. # IFS
  1785. # We need space, tab and new line, in precisely that order. Quoting is
  1786. # there to prevent editors from complaining about space-tab.
  1787. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  1788. # splitting by setting IFS to empty value.)
  1789. IFS=" "" $as_nl"
  1790. # Find who we are. Look in the path if we contain no directory separator.
  1791. as_myself=
  1792. case $0 in #((
  1793. *[\\/]* ) as_myself=$0 ;;
  1794. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1795. for as_dir in $PATH
  1796. do
  1797. IFS=$as_save_IFS
  1798. test -z "$as_dir" && as_dir=.
  1799. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  1800. done
  1801. IFS=$as_save_IFS
  1802. ;;
  1803. esac
  1804. # We did not find ourselves, most probably we were run as `sh COMMAND'
  1805. # in which case we are not to be found in the path.
  1806. if test "x$as_myself" = x; then
  1807. as_myself=$0
  1808. fi
  1809. if test ! -f "$as_myself"; then
  1810. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  1811. exit 1
  1812. fi
  1813. # Unset variables that we do not need and which cause bugs (e.g. in
  1814. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  1815. # suppresses any "Segmentation fault" message there. '((' could
  1816. # trigger a bug in pdksh 5.2.14.
  1817. for as_var in BASH_ENV ENV MAIL MAILPATH
  1818. do eval test x\${$as_var+set} = xset \
  1819. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  1820. done
  1821. PS1='$ '
  1822. PS2='> '
  1823. PS4='+ '
  1824. # NLS nuisances.
  1825. LC_ALL=C
  1826. export LC_ALL
  1827. LANGUAGE=C
  1828. export LANGUAGE
  1829. # CDPATH.
  1830. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1831. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  1832. # ----------------------------------------
  1833. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  1834. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  1835. # script with STATUS, using 1 if that was 0.
  1836. as_fn_error ()
  1837. {
  1838. as_status=$1; test $as_status -eq 0 && as_status=1
  1839. if test "$4"; then
  1840. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1841. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  1842. fi
  1843. $as_echo "$as_me: error: $2" >&2
  1844. as_fn_exit $as_status
  1845. } # as_fn_error
  1846. # as_fn_set_status STATUS
  1847. # -----------------------
  1848. # Set $? to STATUS, without forking.
  1849. as_fn_set_status ()
  1850. {
  1851. return $1
  1852. } # as_fn_set_status
  1853. # as_fn_exit STATUS
  1854. # -----------------
  1855. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  1856. as_fn_exit ()
  1857. {
  1858. set +e
  1859. as_fn_set_status $1
  1860. exit $1
  1861. } # as_fn_exit
  1862. # as_fn_unset VAR
  1863. # ---------------
  1864. # Portably unset VAR.
  1865. as_fn_unset ()
  1866. {
  1867. { eval $1=; unset $1;}
  1868. }
  1869. as_unset=as_fn_unset
  1870. # as_fn_append VAR VALUE
  1871. # ----------------------
  1872. # Append the text in VALUE to the end of the definition contained in VAR. Take
  1873. # advantage of any shell optimizations that allow amortized linear growth over
  1874. # repeated appends, instead of the typical quadratic growth present in naive
  1875. # implementations.
  1876. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  1877. eval 'as_fn_append ()
  1878. {
  1879. eval $1+=\$2
  1880. }'
  1881. else
  1882. as_fn_append ()
  1883. {
  1884. eval $1=\$$1\$2
  1885. }
  1886. fi # as_fn_append
  1887. # as_fn_arith ARG...
  1888. # ------------------
  1889. # Perform arithmetic evaluation on the ARGs, and store the result in the
  1890. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  1891. # must be portable across $(()) and expr.
  1892. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  1893. eval 'as_fn_arith ()
  1894. {
  1895. as_val=$(( $* ))
  1896. }'
  1897. else
  1898. as_fn_arith ()
  1899. {
  1900. as_val=`expr "$@" || test $? -eq 1`
  1901. }
  1902. fi # as_fn_arith
  1903. if expr a : '\(a\)' >/dev/null 2>&1 &&
  1904. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  1905. as_expr=expr
  1906. else
  1907. as_expr=false
  1908. fi
  1909. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  1910. as_basename=basename
  1911. else
  1912. as_basename=false
  1913. fi
  1914. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  1915. as_dirname=dirname
  1916. else
  1917. as_dirname=false
  1918. fi
  1919. as_me=`$as_basename -- "$0" ||
  1920. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  1921. X"$0" : 'X\(//\)$' \| \
  1922. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1923. $as_echo X/"$0" |
  1924. sed '/^.*\/\([^/][^/]*\)\/*$/{
  1925. s//\1/
  1926. q
  1927. }
  1928. /^X\/\(\/\/\)$/{
  1929. s//\1/
  1930. q
  1931. }
  1932. /^X\/\(\/\).*/{
  1933. s//\1/
  1934. q
  1935. }
  1936. s/.*/./; q'`
  1937. # Avoid depending upon Character Ranges.
  1938. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  1939. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  1940. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  1941. as_cr_digits='0123456789'
  1942. as_cr_alnum=$as_cr_Letters$as_cr_digits
  1943. ECHO_C= ECHO_N= ECHO_T=
  1944. case `echo -n x` in #(((((
  1945. -n*)
  1946. case `echo 'xy\c'` in
  1947. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  1948. xy) ECHO_C='\c';;
  1949. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  1950. ECHO_T=' ';;
  1951. esac;;
  1952. *)
  1953. ECHO_N='-n';;
  1954. esac
  1955. rm -f conf$$ conf$$.exe conf$$.file
  1956. if test -d conf$$.dir; then
  1957. rm -f conf$$.dir/conf$$.file
  1958. else
  1959. rm -f conf$$.dir
  1960. mkdir conf$$.dir 2>/dev/null
  1961. fi
  1962. if (echo >conf$$.file) 2>/dev/null; then
  1963. if ln -s conf$$.file conf$$ 2>/dev/null; then
  1964. as_ln_s='ln -s'
  1965. # ... but there are two gotchas:
  1966. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  1967. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  1968. # In both cases, we have to default to `cp -pR'.
  1969. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  1970. as_ln_s='cp -pR'
  1971. elif ln conf$$.file conf$$ 2>/dev/null; then
  1972. as_ln_s=ln
  1973. else
  1974. as_ln_s='cp -pR'
  1975. fi
  1976. else
  1977. as_ln_s='cp -pR'
  1978. fi
  1979. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  1980. rmdir conf$$.dir 2>/dev/null
  1981. # as_fn_mkdir_p
  1982. # -------------
  1983. # Create "$as_dir" as a directory, including parents if necessary.
  1984. as_fn_mkdir_p ()
  1985. {
  1986. case $as_dir in #(
  1987. -*) as_dir=./$as_dir;;
  1988. esac
  1989. test -d "$as_dir" || eval $as_mkdir_p || {
  1990. as_dirs=
  1991. while :; do
  1992. case $as_dir in #(
  1993. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  1994. *) as_qdir=$as_dir;;
  1995. esac
  1996. as_dirs="'$as_qdir' $as_dirs"
  1997. as_dir=`$as_dirname -- "$as_dir" ||
  1998. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1999. X"$as_dir" : 'X\(//\)[^/]' \| \
  2000. X"$as_dir" : 'X\(//\)$' \| \
  2001. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  2002. $as_echo X"$as_dir" |
  2003. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2004. s//\1/
  2005. q
  2006. }
  2007. /^X\(\/\/\)[^/].*/{
  2008. s//\1/
  2009. q
  2010. }
  2011. /^X\(\/\/\)$/{
  2012. s//\1/
  2013. q
  2014. }
  2015. /^X\(\/\).*/{
  2016. s//\1/
  2017. q
  2018. }
  2019. s/.*/./; q'`
  2020. test -d "$as_dir" && break
  2021. done
  2022. test -z "$as_dirs" || eval "mkdir $as_dirs"
  2023. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  2024. } # as_fn_mkdir_p
  2025. if mkdir -p . 2>/dev/null; then
  2026. as_mkdir_p='mkdir -p "$as_dir"'
  2027. else
  2028. test -d ./-p && rmdir ./-p
  2029. as_mkdir_p=false
  2030. fi
  2031. # as_fn_executable_p FILE
  2032. # -----------------------
  2033. # Test if FILE is an executable regular file.
  2034. as_fn_executable_p ()
  2035. {
  2036. test -f "$1" && test -x "$1"
  2037. } # as_fn_executable_p
  2038. as_test_x='test -x'
  2039. as_executable_p=as_fn_executable_p
  2040. # Sed expression to map a string onto a valid CPP name.
  2041. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  2042. # Sed expression to map a string onto a valid variable name.
  2043. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  2044. exec 6>&1
  2045. ## ----------------------------------- ##
  2046. ## Main body of $CONFIG_STATUS script. ##
  2047. ## ----------------------------------- ##
  2048. _ASEOF
  2049. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  2050. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2051. # Save the log message, to keep $0 and so on meaningful, and to
  2052. # report actual input values of CONFIG_FILES etc. instead of their
  2053. # values after options handling.
  2054. ac_log="
  2055. This file was extended by $as_me, which was
  2056. generated by GNU Autoconf 2.69. Invocation command line was
  2057. CONFIG_FILES = $CONFIG_FILES
  2058. CONFIG_HEADERS = $CONFIG_HEADERS
  2059. CONFIG_LINKS = $CONFIG_LINKS
  2060. CONFIG_COMMANDS = $CONFIG_COMMANDS
  2061. $ $0 $@
  2062. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  2063. "
  2064. _ACEOF
  2065. case $ac_config_files in *"
  2066. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  2067. esac
  2068. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2069. # Files that config.status was made for.
  2070. config_files="$ac_config_files"
  2071. config_commands="$ac_config_commands"
  2072. _ACEOF
  2073. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2074. ac_cs_usage="\
  2075. \`$as_me' instantiates files and other configuration actions
  2076. from templates according to the current configuration. Unless the files
  2077. and actions are specified as TAGs, all are instantiated by default.
  2078. Usage: $0 [OPTION]... [TAG]...
  2079. -h, --help print this help, then exit
  2080. -V, --version print version number and configuration settings, then exit
  2081. --config print configuration, then exit
  2082. -q, --quiet, --silent
  2083. do not print progress messages
  2084. -d, --debug don't remove temporary files
  2085. --recheck update $as_me by reconfiguring in the same conditions
  2086. --file=FILE[:TEMPLATE]
  2087. instantiate the configuration file FILE
  2088. Configuration files:
  2089. $config_files
  2090. Configuration commands:
  2091. $config_commands
  2092. Report bugs to the package provider."
  2093. _ACEOF
  2094. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2095. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  2096. ac_cs_version="\\
  2097. config.status
  2098. configured by $0, generated by GNU Autoconf 2.69,
  2099. with options \\"\$ac_cs_config\\"
  2100. Copyright (C) 2012 Free Software Foundation, Inc.
  2101. This config.status script is free software; the Free Software Foundation
  2102. gives unlimited permission to copy, distribute and modify it."
  2103. ac_pwd='$ac_pwd'
  2104. srcdir='$srcdir'
  2105. test -n "\$AWK" || AWK=awk
  2106. _ACEOF
  2107. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2108. # The default lists apply if the user does not specify any file.
  2109. ac_need_defaults=:
  2110. while test $# != 0
  2111. do
  2112. case $1 in
  2113. --*=?*)
  2114. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2115. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  2116. ac_shift=:
  2117. ;;
  2118. --*=)
  2119. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2120. ac_optarg=
  2121. ac_shift=:
  2122. ;;
  2123. *)
  2124. ac_option=$1
  2125. ac_optarg=$2
  2126. ac_shift=shift
  2127. ;;
  2128. esac
  2129. case $ac_option in
  2130. # Handling of the options.
  2131. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2132. ac_cs_recheck=: ;;
  2133. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  2134. $as_echo "$ac_cs_version"; exit ;;
  2135. --config | --confi | --conf | --con | --co | --c )
  2136. $as_echo "$ac_cs_config"; exit ;;
  2137. --debug | --debu | --deb | --de | --d | -d )
  2138. debug=: ;;
  2139. --file | --fil | --fi | --f )
  2140. $ac_shift
  2141. case $ac_optarg in
  2142. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2143. '') as_fn_error $? "missing file argument" ;;
  2144. esac
  2145. as_fn_append CONFIG_FILES " '$ac_optarg'"
  2146. ac_need_defaults=false;;
  2147. --he | --h | --help | --hel | -h )
  2148. $as_echo "$ac_cs_usage"; exit ;;
  2149. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2150. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  2151. ac_cs_silent=: ;;
  2152. # This is an error.
  2153. -*) as_fn_error $? "unrecognized option: \`$1'
  2154. Try \`$0 --help' for more information." ;;
  2155. *) as_fn_append ac_config_targets " $1"
  2156. ac_need_defaults=false ;;
  2157. esac
  2158. shift
  2159. done
  2160. ac_configure_extra_args=
  2161. if $ac_cs_silent; then
  2162. exec 6>/dev/null
  2163. ac_configure_extra_args="$ac_configure_extra_args --silent"
  2164. fi
  2165. _ACEOF
  2166. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2167. if \$ac_cs_recheck; then
  2168. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  2169. shift
  2170. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  2171. CONFIG_SHELL='$SHELL'
  2172. export CONFIG_SHELL
  2173. exec "\$@"
  2174. fi
  2175. _ACEOF
  2176. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2177. exec 5>>config.log
  2178. {
  2179. echo
  2180. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  2181. ## Running $as_me. ##
  2182. _ASBOX
  2183. $as_echo "$ac_log"
  2184. } >&5
  2185. _ACEOF
  2186. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2187. _ACEOF
  2188. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2189. # Handling of arguments.
  2190. for ac_config_target in $ac_config_targets
  2191. do
  2192. case $ac_config_target in
  2193. "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
  2194. "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
  2195. "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
  2196. "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
  2197. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  2198. esac
  2199. done
  2200. # If the user did not use the arguments to specify the items to instantiate,
  2201. # then the envvar interface is used. Set only those that are not.
  2202. # We use the long form for the default assignment because of an extremely
  2203. # bizarre bug on SunOS 4.1.3.
  2204. if $ac_need_defaults; then
  2205. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  2206. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  2207. fi
  2208. # Have a temporary directory for convenience. Make it in the build tree
  2209. # simply because there is no reason against having it here, and in addition,
  2210. # creating and moving files from /tmp can sometimes cause problems.
  2211. # Hook for its removal unless debugging.
  2212. # Note that there is a small window in which the directory will not be cleaned:
  2213. # after its creation but before its name has been assigned to `$tmp'.
  2214. $debug ||
  2215. {
  2216. tmp= ac_tmp=
  2217. trap 'exit_status=$?
  2218. : "${ac_tmp:=$tmp}"
  2219. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  2220. ' 0
  2221. trap 'as_fn_exit 1' 1 2 13 15
  2222. }
  2223. # Create a (secure) tmp directory for tmp files.
  2224. {
  2225. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  2226. test -d "$tmp"
  2227. } ||
  2228. {
  2229. tmp=./conf$$-$RANDOM
  2230. (umask 077 && mkdir "$tmp")
  2231. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  2232. ac_tmp=$tmp
  2233. # Set up the scripts for CONFIG_FILES section.
  2234. # No need to generate them if there are no CONFIG_FILES.
  2235. # This happens for instance with `./config.status config.h'.
  2236. if test -n "$CONFIG_FILES"; then
  2237. ac_cr=`echo X | tr X '\015'`
  2238. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  2239. # But we know of no other shell where ac_cr would be empty at this
  2240. # point, so we can use a bashism as a fallback.
  2241. if test "x$ac_cr" = x; then
  2242. eval ac_cr=\$\'\\r\'
  2243. fi
  2244. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  2245. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  2246. ac_cs_awk_cr='\\r'
  2247. else
  2248. ac_cs_awk_cr=$ac_cr
  2249. fi
  2250. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  2251. _ACEOF
  2252. {
  2253. echo "cat >conf$$subs.awk <<_ACEOF" &&
  2254. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  2255. echo "_ACEOF"
  2256. } >conf$$subs.sh ||
  2257. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2258. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  2259. ac_delim='%!_!# '
  2260. for ac_last_try in false false false false false :; do
  2261. . ./conf$$subs.sh ||
  2262. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2263. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  2264. if test $ac_delim_n = $ac_delim_num; then
  2265. break
  2266. elif $ac_last_try; then
  2267. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2268. else
  2269. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  2270. fi
  2271. done
  2272. rm -f conf$$subs.sh
  2273. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2274. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  2275. _ACEOF
  2276. sed -n '
  2277. h
  2278. s/^/S["/; s/!.*/"]=/
  2279. p
  2280. g
  2281. s/^[^!]*!//
  2282. :repl
  2283. t repl
  2284. s/'"$ac_delim"'$//
  2285. t delim
  2286. :nl
  2287. h
  2288. s/\(.\{148\}\)..*/\1/
  2289. t more1
  2290. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  2291. p
  2292. n
  2293. b repl
  2294. :more1
  2295. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  2296. p
  2297. g
  2298. s/.\{148\}//
  2299. t nl
  2300. :delim
  2301. h
  2302. s/\(.\{148\}\)..*/\1/
  2303. t more2
  2304. s/["\\]/\\&/g; s/^/"/; s/$/"/
  2305. p
  2306. b
  2307. :more2
  2308. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  2309. p
  2310. g
  2311. s/.\{148\}//
  2312. t delim
  2313. ' <conf$$subs.awk | sed '
  2314. /^[^""]/{
  2315. N
  2316. s/\n//
  2317. }
  2318. ' >>$CONFIG_STATUS || ac_write_fail=1
  2319. rm -f conf$$subs.awk
  2320. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2321. _ACAWK
  2322. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  2323. for (key in S) S_is_set[key] = 1
  2324. FS = ""
  2325. }
  2326. {
  2327. line = $ 0
  2328. nfields = split(line, field, "@")
  2329. substed = 0
  2330. len = length(field[1])
  2331. for (i = 2; i < nfields; i++) {
  2332. key = field[i]
  2333. keylen = length(key)
  2334. if (S_is_set[key]) {
  2335. value = S[key]
  2336. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  2337. len += length(value) + length(field[++i])
  2338. substed = 1
  2339. } else
  2340. len += 1 + keylen
  2341. }
  2342. print line
  2343. }
  2344. _ACAWK
  2345. _ACEOF
  2346. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2347. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  2348. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  2349. else
  2350. cat
  2351. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  2352. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  2353. _ACEOF
  2354. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  2355. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  2356. # trailing colons and then remove the whole line if VPATH becomes empty
  2357. # (actually we leave an empty line to preserve line numbers).
  2358. if test "x$srcdir" = x.; then
  2359. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  2360. h
  2361. s///
  2362. s/^/:/
  2363. s/[ ]*$/:/
  2364. s/:\$(srcdir):/:/g
  2365. s/:\${srcdir}:/:/g
  2366. s/:@srcdir@:/:/g
  2367. s/^:*//
  2368. s/:*$//
  2369. x
  2370. s/\(=[ ]*\).*/\1/
  2371. G
  2372. s/\n//
  2373. s/^[^=]*=[ ]*$//
  2374. }'
  2375. fi
  2376. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2377. fi # test -n "$CONFIG_FILES"
  2378. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  2379. shift
  2380. for ac_tag
  2381. do
  2382. case $ac_tag in
  2383. :[FHLC]) ac_mode=$ac_tag; continue;;
  2384. esac
  2385. case $ac_mode$ac_tag in
  2386. :[FHL]*:*);;
  2387. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  2388. :[FH]-) ac_tag=-:-;;
  2389. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  2390. esac
  2391. ac_save_IFS=$IFS
  2392. IFS=:
  2393. set x $ac_tag
  2394. IFS=$ac_save_IFS
  2395. shift
  2396. ac_file=$1
  2397. shift
  2398. case $ac_mode in
  2399. :L) ac_source=$1;;
  2400. :[FH])
  2401. ac_file_inputs=
  2402. for ac_f
  2403. do
  2404. case $ac_f in
  2405. -) ac_f="$ac_tmp/stdin";;
  2406. *) # Look for the file first in the build tree, then in the source tree
  2407. # (if the path is not absolute). The absolute path cannot be DOS-style,
  2408. # because $ac_f cannot contain `:'.
  2409. test -f "$ac_f" ||
  2410. case $ac_f in
  2411. [\\/$]*) false;;
  2412. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  2413. esac ||
  2414. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  2415. esac
  2416. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  2417. as_fn_append ac_file_inputs " '$ac_f'"
  2418. done
  2419. # Let's still pretend it is `configure' which instantiates (i.e., don't
  2420. # use $as_me), people would be surprised to read:
  2421. # /* config.h. Generated by config.status. */
  2422. configure_input='Generated from '`
  2423. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  2424. `' by configure.'
  2425. if test x"$ac_file" != x-; then
  2426. configure_input="$ac_file. $configure_input"
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  2428. $as_echo "$as_me: creating $ac_file" >&6;}
  2429. fi
  2430. # Neutralize special characters interpreted by sed in replacement strings.
  2431. case $configure_input in #(
  2432. *\&* | *\|* | *\\* )
  2433. ac_sed_conf_input=`$as_echo "$configure_input" |
  2434. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  2435. *) ac_sed_conf_input=$configure_input;;
  2436. esac
  2437. case $ac_tag in
  2438. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  2439. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  2440. esac
  2441. ;;
  2442. esac
  2443. ac_dir=`$as_dirname -- "$ac_file" ||
  2444. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2445. X"$ac_file" : 'X\(//\)[^/]' \| \
  2446. X"$ac_file" : 'X\(//\)$' \| \
  2447. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  2448. $as_echo X"$ac_file" |
  2449. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2450. s//\1/
  2451. q
  2452. }
  2453. /^X\(\/\/\)[^/].*/{
  2454. s//\1/
  2455. q
  2456. }
  2457. /^X\(\/\/\)$/{
  2458. s//\1/
  2459. q
  2460. }
  2461. /^X\(\/\).*/{
  2462. s//\1/
  2463. q
  2464. }
  2465. s/.*/./; q'`
  2466. as_dir="$ac_dir"; as_fn_mkdir_p
  2467. ac_builddir=.
  2468. case "$ac_dir" in
  2469. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2470. *)
  2471. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2472. # A ".." for each directory in $ac_dir_suffix.
  2473. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2474. case $ac_top_builddir_sub in
  2475. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2476. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2477. esac ;;
  2478. esac
  2479. ac_abs_top_builddir=$ac_pwd
  2480. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2481. # for backward compatibility:
  2482. ac_top_builddir=$ac_top_build_prefix
  2483. case $srcdir in
  2484. .) # We are building in place.
  2485. ac_srcdir=.
  2486. ac_top_srcdir=$ac_top_builddir_sub
  2487. ac_abs_top_srcdir=$ac_pwd ;;
  2488. [\\/]* | ?:[\\/]* ) # Absolute name.
  2489. ac_srcdir=$srcdir$ac_dir_suffix;
  2490. ac_top_srcdir=$srcdir
  2491. ac_abs_top_srcdir=$srcdir ;;
  2492. *) # Relative name.
  2493. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2494. ac_top_srcdir=$ac_top_build_prefix$srcdir
  2495. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2496. esac
  2497. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2498. case $ac_mode in
  2499. :F)
  2500. #
  2501. # CONFIG_FILE
  2502. #
  2503. _ACEOF
  2504. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2505. # If the template does not know about datarootdir, expand it.
  2506. # FIXME: This hack should be removed a few years after 2.60.
  2507. ac_datarootdir_hack=; ac_datarootdir_seen=
  2508. ac_sed_dataroot='
  2509. /datarootdir/ {
  2510. p
  2511. q
  2512. }
  2513. /@datadir@/p
  2514. /@docdir@/p
  2515. /@infodir@/p
  2516. /@localedir@/p
  2517. /@mandir@/p'
  2518. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  2519. *datarootdir*) ac_datarootdir_seen=yes;;
  2520. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  2522. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  2523. _ACEOF
  2524. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2525. ac_datarootdir_hack='
  2526. s&@datadir@&$datadir&g
  2527. s&@docdir@&$docdir&g
  2528. s&@infodir@&$infodir&g
  2529. s&@localedir@&$localedir&g
  2530. s&@mandir@&$mandir&g
  2531. s&\\\${datarootdir}&$datarootdir&g' ;;
  2532. esac
  2533. _ACEOF
  2534. # Neutralize VPATH when `$srcdir' = `.'.
  2535. # Shell code in configure.ac might set extrasub.
  2536. # FIXME: do we really want to maintain this feature?
  2537. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2538. ac_sed_extra="$ac_vpsub
  2539. $extrasub
  2540. _ACEOF
  2541. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2542. :t
  2543. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  2544. s|@configure_input@|$ac_sed_conf_input|;t t
  2545. s&@top_builddir@&$ac_top_builddir_sub&;t t
  2546. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  2547. s&@srcdir@&$ac_srcdir&;t t
  2548. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  2549. s&@top_srcdir@&$ac_top_srcdir&;t t
  2550. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  2551. s&@builddir@&$ac_builddir&;t t
  2552. s&@abs_builddir@&$ac_abs_builddir&;t t
  2553. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  2554. $ac_datarootdir_hack
  2555. "
  2556. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  2557. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2558. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  2559. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  2560. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  2561. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2563. which seems to be undefined. Please make sure it is defined" >&5
  2564. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2565. which seems to be undefined. Please make sure it is defined" >&2;}
  2566. rm -f "$ac_tmp/stdin"
  2567. case $ac_file in
  2568. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  2569. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  2570. esac \
  2571. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2572. ;;
  2573. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  2574. $as_echo "$as_me: executing $ac_file commands" >&6;}
  2575. ;;
  2576. esac
  2577. case $ac_file$ac_mode in
  2578. "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
  2579. rm -f Makesim1.tmp Makesim2.tmp Makefile
  2580. sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
  2581. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
  2582. sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
  2583. -e '/^## COMMON_POST_/ r Makesim2.tmp' \
  2584. <Makefile.sim >Makefile
  2585. rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
  2586. ;;
  2587. "stamp-h":C) echo > stamp-h ;;
  2588. esac
  2589. done # for ac_tag
  2590. as_fn_exit 0
  2591. _ACEOF
  2592. ac_clean_files=$ac_clean_files_save
  2593. test $ac_write_fail = 0 ||
  2594. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  2595. # configure is writing to config.log, and then calls config.status.
  2596. # config.status does its own redirection, appending to config.log.
  2597. # Unfortunately, on DOS this fails, as config.log is still kept open
  2598. # by configure, so config.status won't be able to write to it; its
  2599. # output is simply discarded. So we exec the FD to /dev/null,
  2600. # effectively closing config.log, so it can be properly (re)opened and
  2601. # appended to by config.status. When coming back to configure, we
  2602. # need to make the FD available again.
  2603. if test "$no_create" != yes; then
  2604. ac_cs_success=:
  2605. ac_config_status_args=
  2606. test "$silent" = yes &&
  2607. ac_config_status_args="$ac_config_status_args --quiet"
  2608. exec 5>/dev/null
  2609. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  2610. exec 5>>config.log
  2611. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  2612. # would make configure fail if this is the last instruction.
  2613. $ac_cs_success || as_fn_exit 1
  2614. fi
  2615. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  2617. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  2618. fi