configure 99 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380
  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_multi_obj
  541. sim_multi_src
  542. sim_multi_igen_configs
  543. sim_multi_flags
  544. sim_gen
  545. sim_micromips16_flags
  546. sim_micromips_flags
  547. sim_m16_flags
  548. sim_igen_flags
  549. SIM_SUBTARGET
  550. target_alias
  551. host_alias
  552. build_alias
  553. LIBS
  554. ECHO_T
  555. ECHO_N
  556. ECHO_C
  557. DEFS
  558. mandir
  559. localedir
  560. libdir
  561. psdir
  562. pdfdir
  563. dvidir
  564. htmldir
  565. infodir
  566. docdir
  567. oldincludedir
  568. includedir
  569. localstatedir
  570. sharedstatedir
  571. sysconfdir
  572. datadir
  573. datarootdir
  574. libexecdir
  575. sbindir
  576. bindir
  577. program_transform_name
  578. prefix
  579. exec_prefix
  580. PACKAGE_URL
  581. PACKAGE_BUGREPORT
  582. PACKAGE_STRING
  583. PACKAGE_VERSION
  584. PACKAGE_TARNAME
  585. PACKAGE_NAME
  586. PATH_SEPARATOR
  587. SHELL
  588. sim_float
  589. sim_bitsize'
  590. ac_subst_files=''
  591. ac_user_opts='
  592. enable_option_checking
  593. enable_sim_bitsize
  594. enable_sim_float
  595. '
  596. ac_precious_vars='build_alias
  597. host_alias
  598. target_alias'
  599. # Initialize some variables set by options.
  600. ac_init_help=
  601. ac_init_version=false
  602. ac_unrecognized_opts=
  603. ac_unrecognized_sep=
  604. # The variables have the same names as the options, with
  605. # dashes changed to underlines.
  606. cache_file=/dev/null
  607. exec_prefix=NONE
  608. no_create=
  609. no_recursion=
  610. prefix=NONE
  611. program_prefix=NONE
  612. program_suffix=NONE
  613. program_transform_name=s,x,x,
  614. silent=
  615. site=
  616. srcdir=
  617. verbose=
  618. x_includes=NONE
  619. x_libraries=NONE
  620. # Installation directory options.
  621. # These are left unexpanded so users can "make install exec_prefix=/foo"
  622. # and all the variables that are supposed to be based on exec_prefix
  623. # by default will actually change.
  624. # Use braces instead of parens because sh, perl, etc. also accept them.
  625. # (The list follows the same order as the GNU Coding Standards.)
  626. bindir='${exec_prefix}/bin'
  627. sbindir='${exec_prefix}/sbin'
  628. libexecdir='${exec_prefix}/libexec'
  629. datarootdir='${prefix}/share'
  630. datadir='${datarootdir}'
  631. sysconfdir='${prefix}/etc'
  632. sharedstatedir='${prefix}/com'
  633. localstatedir='${prefix}/var'
  634. includedir='${prefix}/include'
  635. oldincludedir='/usr/include'
  636. docdir='${datarootdir}/doc/${PACKAGE}'
  637. infodir='${datarootdir}/info'
  638. htmldir='${docdir}'
  639. dvidir='${docdir}'
  640. pdfdir='${docdir}'
  641. psdir='${docdir}'
  642. libdir='${exec_prefix}/lib'
  643. localedir='${datarootdir}/locale'
  644. mandir='${datarootdir}/man'
  645. ac_prev=
  646. ac_dashdash=
  647. for ac_option
  648. do
  649. # If the previous option needs an argument, assign it.
  650. if test -n "$ac_prev"; then
  651. eval $ac_prev=\$ac_option
  652. ac_prev=
  653. continue
  654. fi
  655. case $ac_option in
  656. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  657. *=) ac_optarg= ;;
  658. *) ac_optarg=yes ;;
  659. esac
  660. # Accept the important Cygnus configure options, so we can diagnose typos.
  661. case $ac_dashdash$ac_option in
  662. --)
  663. ac_dashdash=yes ;;
  664. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  665. ac_prev=bindir ;;
  666. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  667. bindir=$ac_optarg ;;
  668. -build | --build | --buil | --bui | --bu)
  669. ac_prev=build_alias ;;
  670. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  671. build_alias=$ac_optarg ;;
  672. -cache-file | --cache-file | --cache-fil | --cache-fi \
  673. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  674. ac_prev=cache_file ;;
  675. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  676. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  677. cache_file=$ac_optarg ;;
  678. --config-cache | -C)
  679. cache_file=config.cache ;;
  680. -datadir | --datadir | --datadi | --datad)
  681. ac_prev=datadir ;;
  682. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  683. datadir=$ac_optarg ;;
  684. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  685. | --dataroo | --dataro | --datar)
  686. ac_prev=datarootdir ;;
  687. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  688. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  689. datarootdir=$ac_optarg ;;
  690. -disable-* | --disable-*)
  691. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  692. # Reject names that are not valid shell variable names.
  693. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  694. as_fn_error $? "invalid feature name: $ac_useropt"
  695. ac_useropt_orig=$ac_useropt
  696. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  697. case $ac_user_opts in
  698. *"
  699. "enable_$ac_useropt"
  700. "*) ;;
  701. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  702. ac_unrecognized_sep=', ';;
  703. esac
  704. eval enable_$ac_useropt=no ;;
  705. -docdir | --docdir | --docdi | --doc | --do)
  706. ac_prev=docdir ;;
  707. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  708. docdir=$ac_optarg ;;
  709. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  710. ac_prev=dvidir ;;
  711. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  712. dvidir=$ac_optarg ;;
  713. -enable-* | --enable-*)
  714. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  715. # Reject names that are not valid shell variable names.
  716. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  717. as_fn_error $? "invalid feature name: $ac_useropt"
  718. ac_useropt_orig=$ac_useropt
  719. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  720. case $ac_user_opts in
  721. *"
  722. "enable_$ac_useropt"
  723. "*) ;;
  724. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  725. ac_unrecognized_sep=', ';;
  726. esac
  727. eval enable_$ac_useropt=\$ac_optarg ;;
  728. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  729. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  730. | --exec | --exe | --ex)
  731. ac_prev=exec_prefix ;;
  732. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  733. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  734. | --exec=* | --exe=* | --ex=*)
  735. exec_prefix=$ac_optarg ;;
  736. -gas | --gas | --ga | --g)
  737. # Obsolete; use --with-gas.
  738. with_gas=yes ;;
  739. -help | --help | --hel | --he | -h)
  740. ac_init_help=long ;;
  741. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  742. ac_init_help=recursive ;;
  743. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  744. ac_init_help=short ;;
  745. -host | --host | --hos | --ho)
  746. ac_prev=host_alias ;;
  747. -host=* | --host=* | --hos=* | --ho=*)
  748. host_alias=$ac_optarg ;;
  749. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  750. ac_prev=htmldir ;;
  751. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  752. | --ht=*)
  753. htmldir=$ac_optarg ;;
  754. -includedir | --includedir | --includedi | --included | --include \
  755. | --includ | --inclu | --incl | --inc)
  756. ac_prev=includedir ;;
  757. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  758. | --includ=* | --inclu=* | --incl=* | --inc=*)
  759. includedir=$ac_optarg ;;
  760. -infodir | --infodir | --infodi | --infod | --info | --inf)
  761. ac_prev=infodir ;;
  762. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  763. infodir=$ac_optarg ;;
  764. -libdir | --libdir | --libdi | --libd)
  765. ac_prev=libdir ;;
  766. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  767. libdir=$ac_optarg ;;
  768. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  769. | --libexe | --libex | --libe)
  770. ac_prev=libexecdir ;;
  771. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  772. | --libexe=* | --libex=* | --libe=*)
  773. libexecdir=$ac_optarg ;;
  774. -localedir | --localedir | --localedi | --localed | --locale)
  775. ac_prev=localedir ;;
  776. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  777. localedir=$ac_optarg ;;
  778. -localstatedir | --localstatedir | --localstatedi | --localstated \
  779. | --localstate | --localstat | --localsta | --localst | --locals)
  780. ac_prev=localstatedir ;;
  781. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  782. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  783. localstatedir=$ac_optarg ;;
  784. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  785. ac_prev=mandir ;;
  786. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  787. mandir=$ac_optarg ;;
  788. -nfp | --nfp | --nf)
  789. # Obsolete; use --without-fp.
  790. with_fp=no ;;
  791. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  792. | --no-cr | --no-c | -n)
  793. no_create=yes ;;
  794. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  795. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  796. no_recursion=yes ;;
  797. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  798. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  799. | --oldin | --oldi | --old | --ol | --o)
  800. ac_prev=oldincludedir ;;
  801. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  802. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  803. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  804. oldincludedir=$ac_optarg ;;
  805. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  806. ac_prev=prefix ;;
  807. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  808. prefix=$ac_optarg ;;
  809. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  810. | --program-pre | --program-pr | --program-p)
  811. ac_prev=program_prefix ;;
  812. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  813. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  814. program_prefix=$ac_optarg ;;
  815. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  816. | --program-suf | --program-su | --program-s)
  817. ac_prev=program_suffix ;;
  818. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  819. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  820. program_suffix=$ac_optarg ;;
  821. -program-transform-name | --program-transform-name \
  822. | --program-transform-nam | --program-transform-na \
  823. | --program-transform-n | --program-transform- \
  824. | --program-transform | --program-transfor \
  825. | --program-transfo | --program-transf \
  826. | --program-trans | --program-tran \
  827. | --progr-tra | --program-tr | --program-t)
  828. ac_prev=program_transform_name ;;
  829. -program-transform-name=* | --program-transform-name=* \
  830. | --program-transform-nam=* | --program-transform-na=* \
  831. | --program-transform-n=* | --program-transform-=* \
  832. | --program-transform=* | --program-transfor=* \
  833. | --program-transfo=* | --program-transf=* \
  834. | --program-trans=* | --program-tran=* \
  835. | --progr-tra=* | --program-tr=* | --program-t=*)
  836. program_transform_name=$ac_optarg ;;
  837. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  838. ac_prev=pdfdir ;;
  839. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  840. pdfdir=$ac_optarg ;;
  841. -psdir | --psdir | --psdi | --psd | --ps)
  842. ac_prev=psdir ;;
  843. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  844. psdir=$ac_optarg ;;
  845. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  846. | -silent | --silent | --silen | --sile | --sil)
  847. silent=yes ;;
  848. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  849. ac_prev=sbindir ;;
  850. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  851. | --sbi=* | --sb=*)
  852. sbindir=$ac_optarg ;;
  853. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  854. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  855. | --sharedst | --shareds | --shared | --share | --shar \
  856. | --sha | --sh)
  857. ac_prev=sharedstatedir ;;
  858. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  859. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  860. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  861. | --sha=* | --sh=*)
  862. sharedstatedir=$ac_optarg ;;
  863. -site | --site | --sit)
  864. ac_prev=site ;;
  865. -site=* | --site=* | --sit=*)
  866. site=$ac_optarg ;;
  867. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  868. ac_prev=srcdir ;;
  869. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  870. srcdir=$ac_optarg ;;
  871. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  872. | --syscon | --sysco | --sysc | --sys | --sy)
  873. ac_prev=sysconfdir ;;
  874. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  875. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  876. sysconfdir=$ac_optarg ;;
  877. -target | --target | --targe | --targ | --tar | --ta | --t)
  878. ac_prev=target_alias ;;
  879. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  880. target_alias=$ac_optarg ;;
  881. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  882. verbose=yes ;;
  883. -version | --version | --versio | --versi | --vers | -V)
  884. ac_init_version=: ;;
  885. -with-* | --with-*)
  886. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  887. # Reject names that are not valid shell variable names.
  888. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  889. as_fn_error $? "invalid package name: $ac_useropt"
  890. ac_useropt_orig=$ac_useropt
  891. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  892. case $ac_user_opts in
  893. *"
  894. "with_$ac_useropt"
  895. "*) ;;
  896. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  897. ac_unrecognized_sep=', ';;
  898. esac
  899. eval with_$ac_useropt=\$ac_optarg ;;
  900. -without-* | --without-*)
  901. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  902. # Reject names that are not valid shell variable names.
  903. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  904. as_fn_error $? "invalid package name: $ac_useropt"
  905. ac_useropt_orig=$ac_useropt
  906. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  907. case $ac_user_opts in
  908. *"
  909. "with_$ac_useropt"
  910. "*) ;;
  911. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  912. ac_unrecognized_sep=', ';;
  913. esac
  914. eval with_$ac_useropt=no ;;
  915. --x)
  916. # Obsolete; use --with-x.
  917. with_x=yes ;;
  918. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  919. | --x-incl | --x-inc | --x-in | --x-i)
  920. ac_prev=x_includes ;;
  921. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  922. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  923. x_includes=$ac_optarg ;;
  924. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  925. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  926. ac_prev=x_libraries ;;
  927. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  928. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  929. x_libraries=$ac_optarg ;;
  930. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  931. Try \`$0 --help' for more information"
  932. ;;
  933. *=*)
  934. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  935. # Reject names that are not valid shell variable names.
  936. case $ac_envvar in #(
  937. '' | [0-9]* | *[!_$as_cr_alnum]* )
  938. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  939. esac
  940. eval $ac_envvar=\$ac_optarg
  941. export $ac_envvar ;;
  942. *)
  943. # FIXME: should be removed in autoconf 3.0.
  944. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  945. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  946. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  947. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  948. ;;
  949. esac
  950. done
  951. if test -n "$ac_prev"; then
  952. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  953. as_fn_error $? "missing argument to $ac_option"
  954. fi
  955. if test -n "$ac_unrecognized_opts"; then
  956. case $enable_option_checking in
  957. no) ;;
  958. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  959. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  960. esac
  961. fi
  962. # Check all directory arguments for consistency.
  963. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  964. datadir sysconfdir sharedstatedir localstatedir includedir \
  965. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  966. libdir localedir mandir
  967. do
  968. eval ac_val=\$$ac_var
  969. # Remove trailing slashes.
  970. case $ac_val in
  971. */ )
  972. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  973. eval $ac_var=\$ac_val;;
  974. esac
  975. # Be sure to have absolute directory names.
  976. case $ac_val in
  977. [\\/$]* | ?:[\\/]* ) continue;;
  978. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  979. esac
  980. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  981. done
  982. # There might be people who depend on the old broken behavior: `$host'
  983. # used to hold the argument of --host etc.
  984. # FIXME: To remove some day.
  985. build=$build_alias
  986. host=$host_alias
  987. target=$target_alias
  988. # FIXME: To remove some day.
  989. if test "x$host_alias" != x; then
  990. if test "x$build_alias" = x; then
  991. cross_compiling=maybe
  992. elif test "x$build_alias" != "x$host_alias"; then
  993. cross_compiling=yes
  994. fi
  995. fi
  996. ac_tool_prefix=
  997. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  998. test "$silent" = yes && exec 6>/dev/null
  999. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1000. ac_ls_di=`ls -di .` &&
  1001. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1002. as_fn_error $? "working directory cannot be determined"
  1003. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1004. as_fn_error $? "pwd does not report name of working directory"
  1005. # Find the source files, if location was not specified.
  1006. if test -z "$srcdir"; then
  1007. ac_srcdir_defaulted=yes
  1008. # Try the directory containing this script, then the parent directory.
  1009. ac_confdir=`$as_dirname -- "$as_myself" ||
  1010. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1011. X"$as_myself" : 'X\(//\)[^/]' \| \
  1012. X"$as_myself" : 'X\(//\)$' \| \
  1013. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1014. $as_echo X"$as_myself" |
  1015. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1016. s//\1/
  1017. q
  1018. }
  1019. /^X\(\/\/\)[^/].*/{
  1020. s//\1/
  1021. q
  1022. }
  1023. /^X\(\/\/\)$/{
  1024. s//\1/
  1025. q
  1026. }
  1027. /^X\(\/\).*/{
  1028. s//\1/
  1029. q
  1030. }
  1031. s/.*/./; q'`
  1032. srcdir=$ac_confdir
  1033. if test ! -r "$srcdir/$ac_unique_file"; then
  1034. srcdir=..
  1035. fi
  1036. else
  1037. ac_srcdir_defaulted=no
  1038. fi
  1039. if test ! -r "$srcdir/$ac_unique_file"; then
  1040. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1041. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1042. fi
  1043. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1044. ac_abs_confdir=`(
  1045. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1046. pwd)`
  1047. # When building in place, set srcdir=.
  1048. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1049. srcdir=.
  1050. fi
  1051. # Remove unnecessary trailing slashes from srcdir.
  1052. # Double slashes in file names in object file debugging info
  1053. # mess up M-x gdb in Emacs.
  1054. case $srcdir in
  1055. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1056. esac
  1057. for ac_var in $ac_precious_vars; do
  1058. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1059. eval ac_env_${ac_var}_value=\$${ac_var}
  1060. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1061. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1062. done
  1063. #
  1064. # Report the --help message.
  1065. #
  1066. if test "$ac_init_help" = "long"; then
  1067. # Omit some internal or obsolete options to make the list less imposing.
  1068. # This message is too long to be a string in the A/UX 3.1 sh.
  1069. cat <<_ACEOF
  1070. \`configure' configures this package to adapt to many kinds of systems.
  1071. Usage: $0 [OPTION]... [VAR=VALUE]...
  1072. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1073. VAR=VALUE. See below for descriptions of some of the useful variables.
  1074. Defaults for the options are specified in brackets.
  1075. Configuration:
  1076. -h, --help display this help and exit
  1077. --help=short display options specific to this package
  1078. --help=recursive display the short help of all the included packages
  1079. -V, --version display version information and exit
  1080. -q, --quiet, --silent do not print \`checking ...' messages
  1081. --cache-file=FILE cache test results in FILE [disabled]
  1082. -C, --config-cache alias for \`--cache-file=config.cache'
  1083. -n, --no-create do not create output files
  1084. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1085. Installation directories:
  1086. --prefix=PREFIX install architecture-independent files in PREFIX
  1087. [$ac_default_prefix]
  1088. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1089. [PREFIX]
  1090. By default, \`make install' will install all the files in
  1091. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1092. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1093. for instance \`--prefix=\$HOME'.
  1094. For better control, use the options below.
  1095. Fine tuning of the installation directories:
  1096. --bindir=DIR user executables [EPREFIX/bin]
  1097. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1098. --libexecdir=DIR program executables [EPREFIX/libexec]
  1099. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1100. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1101. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1102. --libdir=DIR object code libraries [EPREFIX/lib]
  1103. --includedir=DIR C header files [PREFIX/include]
  1104. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1105. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1106. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1107. --infodir=DIR info documentation [DATAROOTDIR/info]
  1108. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1109. --mandir=DIR man documentation [DATAROOTDIR/man]
  1110. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1111. --htmldir=DIR html documentation [DOCDIR]
  1112. --dvidir=DIR dvi documentation [DOCDIR]
  1113. --pdfdir=DIR pdf documentation [DOCDIR]
  1114. --psdir=DIR ps documentation [DOCDIR]
  1115. _ACEOF
  1116. cat <<\_ACEOF
  1117. _ACEOF
  1118. fi
  1119. if test -n "$ac_init_help"; then
  1120. cat <<\_ACEOF
  1121. Optional Features:
  1122. --disable-option-checking ignore unrecognized --enable/--with options
  1123. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1124. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1125. --enable-sim-bitsize=N Specify target bitsize (32 or 64)
  1126. --enable-sim-float Specify that the target processor has floating point
  1127. hardware
  1128. Report bugs to the package provider.
  1129. _ACEOF
  1130. ac_status=$?
  1131. fi
  1132. if test "$ac_init_help" = "recursive"; then
  1133. # If there are subdirs, report their specific --help.
  1134. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1135. test -d "$ac_dir" ||
  1136. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1137. continue
  1138. ac_builddir=.
  1139. case "$ac_dir" in
  1140. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1141. *)
  1142. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1143. # A ".." for each directory in $ac_dir_suffix.
  1144. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1145. case $ac_top_builddir_sub in
  1146. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1147. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1148. esac ;;
  1149. esac
  1150. ac_abs_top_builddir=$ac_pwd
  1151. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1152. # for backward compatibility:
  1153. ac_top_builddir=$ac_top_build_prefix
  1154. case $srcdir in
  1155. .) # We are building in place.
  1156. ac_srcdir=.
  1157. ac_top_srcdir=$ac_top_builddir_sub
  1158. ac_abs_top_srcdir=$ac_pwd ;;
  1159. [\\/]* | ?:[\\/]* ) # Absolute name.
  1160. ac_srcdir=$srcdir$ac_dir_suffix;
  1161. ac_top_srcdir=$srcdir
  1162. ac_abs_top_srcdir=$srcdir ;;
  1163. *) # Relative name.
  1164. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1165. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1166. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1167. esac
  1168. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1169. cd "$ac_dir" || { ac_status=$?; continue; }
  1170. # Check for guested configure.
  1171. if test -f "$ac_srcdir/configure.gnu"; then
  1172. echo &&
  1173. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1174. elif test -f "$ac_srcdir/configure"; then
  1175. echo &&
  1176. $SHELL "$ac_srcdir/configure" --help=recursive
  1177. else
  1178. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1179. fi || ac_status=$?
  1180. cd "$ac_pwd" || { ac_status=$?; break; }
  1181. done
  1182. fi
  1183. test -n "$ac_init_help" && exit $ac_status
  1184. if $ac_init_version; then
  1185. cat <<\_ACEOF
  1186. configure
  1187. generated by GNU Autoconf 2.69
  1188. Copyright (C) 2012 Free Software Foundation, Inc.
  1189. This configure script is free software; the Free Software Foundation
  1190. gives unlimited permission to copy, distribute and modify it.
  1191. _ACEOF
  1192. exit
  1193. fi
  1194. ## ------------------------ ##
  1195. ## Autoconf initialization. ##
  1196. ## ------------------------ ##
  1197. cat >config.log <<_ACEOF
  1198. This file contains any messages produced by compilers while
  1199. running configure, to aid debugging if configure makes a mistake.
  1200. It was created by $as_me, which was
  1201. generated by GNU Autoconf 2.69. Invocation command line was
  1202. $ $0 $@
  1203. _ACEOF
  1204. exec 5>>config.log
  1205. {
  1206. cat <<_ASUNAME
  1207. ## --------- ##
  1208. ## Platform. ##
  1209. ## --------- ##
  1210. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1211. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1212. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1213. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1214. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1215. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1216. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1217. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1218. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1219. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1220. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1221. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1222. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1223. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1224. _ASUNAME
  1225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1226. for as_dir in $PATH
  1227. do
  1228. IFS=$as_save_IFS
  1229. test -z "$as_dir" && as_dir=.
  1230. $as_echo "PATH: $as_dir"
  1231. done
  1232. IFS=$as_save_IFS
  1233. } >&5
  1234. cat >&5 <<_ACEOF
  1235. ## ----------- ##
  1236. ## Core tests. ##
  1237. ## ----------- ##
  1238. _ACEOF
  1239. # Keep a trace of the command line.
  1240. # Strip out --no-create and --no-recursion so they do not pile up.
  1241. # Strip out --silent because we don't want to record it for future runs.
  1242. # Also quote any args containing shell meta-characters.
  1243. # Make two passes to allow for proper duplicate-argument suppression.
  1244. ac_configure_args=
  1245. ac_configure_args0=
  1246. ac_configure_args1=
  1247. ac_must_keep_next=false
  1248. for ac_pass in 1 2
  1249. do
  1250. for ac_arg
  1251. do
  1252. case $ac_arg in
  1253. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1254. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1255. | -silent | --silent | --silen | --sile | --sil)
  1256. continue ;;
  1257. *\'*)
  1258. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1259. esac
  1260. case $ac_pass in
  1261. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1262. 2)
  1263. as_fn_append ac_configure_args1 " '$ac_arg'"
  1264. if test $ac_must_keep_next = true; then
  1265. ac_must_keep_next=false # Got value, back to normal.
  1266. else
  1267. case $ac_arg in
  1268. *=* | --config-cache | -C | -disable-* | --disable-* \
  1269. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1270. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1271. | -with-* | --with-* | -without-* | --without-* | --x)
  1272. case "$ac_configure_args0 " in
  1273. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1274. esac
  1275. ;;
  1276. -* ) ac_must_keep_next=true ;;
  1277. esac
  1278. fi
  1279. as_fn_append ac_configure_args " '$ac_arg'"
  1280. ;;
  1281. esac
  1282. done
  1283. done
  1284. { ac_configure_args0=; unset ac_configure_args0;}
  1285. { ac_configure_args1=; unset ac_configure_args1;}
  1286. # When interrupted or exit'd, cleanup temporary files, and complete
  1287. # config.log. We remove comments because anyway the quotes in there
  1288. # would cause problems or look ugly.
  1289. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1290. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1291. trap 'exit_status=$?
  1292. # Save into config.log some information that might help in debugging.
  1293. {
  1294. echo
  1295. $as_echo "## ---------------- ##
  1296. ## Cache variables. ##
  1297. ## ---------------- ##"
  1298. echo
  1299. # The following way of writing the cache mishandles newlines in values,
  1300. (
  1301. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1302. eval ac_val=\$$ac_var
  1303. case $ac_val in #(
  1304. *${as_nl}*)
  1305. case $ac_var in #(
  1306. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1307. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1308. esac
  1309. case $ac_var in #(
  1310. _ | IFS | as_nl) ;; #(
  1311. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1312. *) { eval $ac_var=; unset $ac_var;} ;;
  1313. esac ;;
  1314. esac
  1315. done
  1316. (set) 2>&1 |
  1317. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1318. *${as_nl}ac_space=\ *)
  1319. sed -n \
  1320. "s/'\''/'\''\\\\'\'''\''/g;
  1321. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1322. ;; #(
  1323. *)
  1324. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1325. ;;
  1326. esac |
  1327. sort
  1328. )
  1329. echo
  1330. $as_echo "## ----------------- ##
  1331. ## Output variables. ##
  1332. ## ----------------- ##"
  1333. echo
  1334. for ac_var in $ac_subst_vars
  1335. do
  1336. eval ac_val=\$$ac_var
  1337. case $ac_val in
  1338. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1339. esac
  1340. $as_echo "$ac_var='\''$ac_val'\''"
  1341. done | sort
  1342. echo
  1343. if test -n "$ac_subst_files"; then
  1344. $as_echo "## ------------------- ##
  1345. ## File substitutions. ##
  1346. ## ------------------- ##"
  1347. echo
  1348. for ac_var in $ac_subst_files
  1349. do
  1350. eval ac_val=\$$ac_var
  1351. case $ac_val in
  1352. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1353. esac
  1354. $as_echo "$ac_var='\''$ac_val'\''"
  1355. done | sort
  1356. echo
  1357. fi
  1358. if test -s confdefs.h; then
  1359. $as_echo "## ----------- ##
  1360. ## confdefs.h. ##
  1361. ## ----------- ##"
  1362. echo
  1363. cat confdefs.h
  1364. echo
  1365. fi
  1366. test "$ac_signal" != 0 &&
  1367. $as_echo "$as_me: caught signal $ac_signal"
  1368. $as_echo "$as_me: exit $exit_status"
  1369. } >&5
  1370. rm -f core *.core core.conftest.* &&
  1371. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1372. exit $exit_status
  1373. ' 0
  1374. for ac_signal in 1 2 13 15; do
  1375. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1376. done
  1377. ac_signal=0
  1378. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1379. rm -f -r conftest* confdefs.h
  1380. $as_echo "/* confdefs.h */" > confdefs.h
  1381. # Predefined preprocessor variables.
  1382. cat >>confdefs.h <<_ACEOF
  1383. #define PACKAGE_NAME "$PACKAGE_NAME"
  1384. _ACEOF
  1385. cat >>confdefs.h <<_ACEOF
  1386. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1387. _ACEOF
  1388. cat >>confdefs.h <<_ACEOF
  1389. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1390. _ACEOF
  1391. cat >>confdefs.h <<_ACEOF
  1392. #define PACKAGE_STRING "$PACKAGE_STRING"
  1393. _ACEOF
  1394. cat >>confdefs.h <<_ACEOF
  1395. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1396. _ACEOF
  1397. cat >>confdefs.h <<_ACEOF
  1398. #define PACKAGE_URL "$PACKAGE_URL"
  1399. _ACEOF
  1400. # Let the site file select an alternate cache file if it wants to.
  1401. # Prefer an explicitly selected file to automatically selected ones.
  1402. ac_site_file1=NONE
  1403. ac_site_file2=NONE
  1404. if test -n "$CONFIG_SITE"; then
  1405. # We do not want a PATH search for config.site.
  1406. case $CONFIG_SITE in #((
  1407. -*) ac_site_file1=./$CONFIG_SITE;;
  1408. */*) ac_site_file1=$CONFIG_SITE;;
  1409. *) ac_site_file1=./$CONFIG_SITE;;
  1410. esac
  1411. elif test "x$prefix" != xNONE; then
  1412. ac_site_file1=$prefix/share/config.site
  1413. ac_site_file2=$prefix/etc/config.site
  1414. else
  1415. ac_site_file1=$ac_default_prefix/share/config.site
  1416. ac_site_file2=$ac_default_prefix/etc/config.site
  1417. fi
  1418. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1419. do
  1420. test "x$ac_site_file" = xNONE && continue
  1421. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1422. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1423. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1424. sed 's/^/| /' "$ac_site_file" >&5
  1425. . "$ac_site_file" \
  1426. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1427. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1428. as_fn_error $? "failed to load site script $ac_site_file
  1429. See \`config.log' for more details" "$LINENO" 5; }
  1430. fi
  1431. done
  1432. if test -r "$cache_file"; then
  1433. # Some versions of bash will fail to source /dev/null (special files
  1434. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1435. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1436. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1437. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1438. case $cache_file in
  1439. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1440. *) . "./$cache_file";;
  1441. esac
  1442. fi
  1443. else
  1444. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1445. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1446. >$cache_file
  1447. fi
  1448. # Check that the precious variables saved in the cache have kept the same
  1449. # value.
  1450. ac_cache_corrupted=false
  1451. for ac_var in $ac_precious_vars; do
  1452. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1453. eval ac_new_set=\$ac_env_${ac_var}_set
  1454. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1455. eval ac_new_val=\$ac_env_${ac_var}_value
  1456. case $ac_old_set,$ac_new_set in
  1457. set,)
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1459. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1460. ac_cache_corrupted=: ;;
  1461. ,set)
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1463. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1464. ac_cache_corrupted=: ;;
  1465. ,);;
  1466. *)
  1467. if test "x$ac_old_val" != "x$ac_new_val"; then
  1468. # differences in whitespace do not lead to failure.
  1469. ac_old_val_w=`echo x $ac_old_val`
  1470. ac_new_val_w=`echo x $ac_new_val`
  1471. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1473. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1474. ac_cache_corrupted=:
  1475. else
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1477. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1478. eval $ac_var=\$ac_old_val
  1479. fi
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1481. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1483. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1484. fi;;
  1485. esac
  1486. # Pass precious variables to config.status.
  1487. if test "$ac_new_set" = set; then
  1488. case $ac_new_val in
  1489. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1490. *) ac_arg=$ac_var=$ac_new_val ;;
  1491. esac
  1492. case " $ac_configure_args " in
  1493. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1494. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1495. esac
  1496. fi
  1497. done
  1498. if $ac_cache_corrupted; then
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1500. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1502. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1503. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1504. fi
  1505. ## -------------------- ##
  1506. ## Main body of script. ##
  1507. ## -------------------- ##
  1508. ac_ext=c
  1509. ac_cpp='$CPP $CPPFLAGS'
  1510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1513. # DEPRECATED
  1514. #
  1515. # Instead of defining a `subtarget' macro, code should be checking
  1516. # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
  1517. # in question.
  1518. #
  1519. case "${target}" in
  1520. mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
  1521. mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
  1522. mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
  1523. mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
  1524. mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
  1525. mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
  1526. *) SIM_SUBTARGET="";;
  1527. esac
  1528. #
  1529. # Select the bitsize of the target
  1530. #
  1531. case "${target}" in
  1532. mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
  1533. mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
  1534. mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
  1535. mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
  1536. mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
  1537. mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
  1538. mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
  1539. *) mips_bitsize=64 ; mips_msb=63 ;;
  1540. esac
  1541. wire_word_bitsize="$mips_bitsize"
  1542. wire_word_msb="$mips_msb"
  1543. wire_address_bitsize=""
  1544. wire_cell_bitsize=""
  1545. # Check whether --enable-sim-bitsize was given.
  1546. if test "${enable_sim_bitsize+set}" = set; then :
  1547. enableval=$enable_sim_bitsize; sim_bitsize=
  1548. case "${enableval}" in
  1549. 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
  1550. 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
  1551. 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
  1552. 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
  1553. 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
  1554. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
  1555. else
  1556. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
  1557. fi ;;
  1558. 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
  1559. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
  1560. else
  1561. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
  1562. fi ;;
  1563. *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
  1564. esac
  1565. # address bitsize
  1566. tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
  1567. case x"${tmp}" in
  1568. x ) ;;
  1569. x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
  1570. x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
  1571. * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
  1572. esac
  1573. # cell bitsize
  1574. tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
  1575. case x"${tmp}" in
  1576. x ) ;;
  1577. x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
  1578. x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
  1579. * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
  1580. esac
  1581. if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
  1582. echo "Setting bitsize flags = $sim_bitsize" 6>&1
  1583. fi
  1584. else
  1585. sim_bitsize=""
  1586. if test x"$wire_word_bitsize" != x; then
  1587. sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
  1588. fi
  1589. if test x"$wire_word_msb" != x; then
  1590. sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
  1591. fi
  1592. if test x"$wire_address_bitsize" != x; then
  1593. sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
  1594. fi
  1595. if test x"$wire_cell_bitsize" != x; then
  1596. sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
  1597. fi
  1598. fi
  1599. #
  1600. # Select the floating hardware support of the target
  1601. #
  1602. mips_fpu=HARDWARE_FLOATING_POINT
  1603. mips_fpu_bitsize=
  1604. case "${target}" in
  1605. mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
  1606. mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
  1607. mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
  1608. mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
  1609. mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
  1610. mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
  1611. mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
  1612. mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
  1613. *) mips_fpu=HARD_FLOATING_POINT ;;
  1614. esac
  1615. default_sim_float="$mips_fpu"
  1616. default_sim_float_bitsize="$mips_fpu_bitsize"
  1617. # Check whether --enable-sim-float was given.
  1618. if test "${enable_sim_float+set}" = set; then :
  1619. enableval=$enable_sim_float; case "${enableval}" in
  1620. yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
  1621. no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
  1622. 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
  1623. 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
  1624. *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
  1625. esac
  1626. if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
  1627. echo "Setting float flags = $sim_float" 6>&1
  1628. fi
  1629. else
  1630. sim_float=
  1631. if test x"${default_sim_float}" != x""; then
  1632. sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
  1633. fi
  1634. if test x"${default_sim_float_bitsize}" != x""; then
  1635. sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
  1636. fi
  1637. fi
  1638. #
  1639. # Select the IGEN architecture
  1640. #
  1641. sim_gen=IGEN
  1642. sim_igen_machine="-M mipsIV"
  1643. sim_m16_machine="-M mips16,mipsIII"
  1644. sim_igen_filter="32,64,f"
  1645. sim_m16_filter="16"
  1646. sim_mach_default="mips8000"
  1647. case "${target}" in
  1648. mips*tx39*) sim_gen=IGEN
  1649. sim_igen_filter="32,f"
  1650. sim_igen_machine="-M r3900"
  1651. ;;
  1652. mips64vr43*-*-*) sim_gen=IGEN
  1653. sim_igen_machine="-M mipsIV"
  1654. sim_mach_default="mips8000"
  1655. ;;
  1656. mips64vr5*-*-*) sim_gen=IGEN
  1657. sim_igen_machine="-M vr5000"
  1658. sim_mach_default="mips5000"
  1659. ;;
  1660. mips64vr41*) sim_gen=M16
  1661. sim_igen_machine="-M vr4100"
  1662. sim_m16_machine="-M vr4100"
  1663. sim_igen_filter="32,64,f"
  1664. sim_m16_filter="16"
  1665. sim_mach_default="mips4100"
  1666. ;;
  1667. mips64vr-*-* | mips64vrel-*-*)
  1668. sim_gen=MULTI
  1669. sim_multi_configs="\
  1670. vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
  1671. vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
  1672. vr5000:mipsIV:32,64,f:mips4300,mips5000\
  1673. vr5400:mipsIV,vr5400:32,64,f:mips5400\
  1674. vr5500:mipsIV,vr5500:32,64,f:mips5500"
  1675. sim_multi_default=mips5000
  1676. ;;
  1677. mips*-sde-elf* | mips*-mti-elf*)
  1678. sim_gen=MULTI
  1679. sim_multi_configs="\
  1680. micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
  1681. mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
  1682. mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
  1683. sim_multi_default=mipsisa64r2
  1684. ;;
  1685. mips64*-*-*) sim_igen_filter="32,64,f"
  1686. sim_gen=IGEN
  1687. ;;
  1688. mips16*-*-*) sim_gen=M16
  1689. sim_igen_filter="32,64,f"
  1690. sim_m16_filter="16"
  1691. ;;
  1692. mipsisa32r2*-*-*) sim_gen=MULTI
  1693. sim_multi_configs="\
  1694. micromips:micromips32,micromipsdsp:32,f:mips_micromips\
  1695. mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
  1696. sim_multi_default=mipsisa32r2
  1697. ;;
  1698. mipsisa32r6*-*-*) sim_gen=IGEN
  1699. sim_igen_machine="-M mips32r6"
  1700. sim_igen_filter="32,f"
  1701. sim_mach_default="mipsisa32r6"
  1702. ;;
  1703. mipsisa32*-*-*) sim_gen=M16
  1704. sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
  1705. sim_m16_machine="-M mips16,mips16e,mips32"
  1706. sim_igen_filter="32,f"
  1707. sim_mach_default="mipsisa32"
  1708. ;;
  1709. mipsisa64r2*-*-*) sim_gen=M16
  1710. sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
  1711. sim_m16_machine="-M mips16,mips16e,mips64r2"
  1712. sim_igen_filter="32,64,f"
  1713. sim_mach_default="mipsisa64r2"
  1714. ;;
  1715. mipsisa64r6*-*-*) sim_gen=IGEN
  1716. sim_igen_machine="-M mips64r6"
  1717. sim_igen_filter="32,64,f"
  1718. sim_mach_default="mipsisa64r6"
  1719. ;;
  1720. mipsisa64sb1*-*-*) sim_gen=IGEN
  1721. sim_igen_machine="-M mips64,mips3d,sb1"
  1722. sim_igen_filter="32,64,f"
  1723. sim_mach_default="mips_sb1"
  1724. ;;
  1725. mipsisa64*-*-*) sim_gen=M16
  1726. sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
  1727. sim_m16_machine="-M mips16,mips16e,mips64"
  1728. sim_igen_filter="32,64,f"
  1729. sim_mach_default="mipsisa64"
  1730. ;;
  1731. mips*lsi*) sim_gen=M16
  1732. sim_igen_machine="-M mipsIII,mips16"
  1733. sim_m16_machine="-M mips16,mipsIII"
  1734. sim_igen_filter="32,f"
  1735. sim_m16_filter="16"
  1736. sim_mach_default="mips4000"
  1737. ;;
  1738. mips*-*-*) sim_gen=IGEN
  1739. sim_igen_filter="32,f"
  1740. ;;
  1741. esac
  1742. # The MULTI generator can combine several simulation engines into one.
  1743. # executable. A configuration which uses the MULTI should set two
  1744. # variables: ${sim_multi_configs} and ${sim_multi_default}.
  1745. #
  1746. # ${sim_multi_configs} is the list of engines to build. Each
  1747. # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
  1748. # where:
  1749. #
  1750. # - NAME is a C-compatible prefix for the engine,
  1751. # - MACHINE is a -M argument,
  1752. # - FILTER is a -F argument, and
  1753. # - BFDMACHS is a comma-separated list of bfd machines that the
  1754. # simulator can run.
  1755. #
  1756. # Each entry will have a separate simulation engine whose prefix is
  1757. # m32<NAME>. If the machine list includes "mips16", there will also
  1758. # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
  1759. # generated using the same machine list as the 32-bit version,
  1760. # but the filter will be "16" instead of FILTER.
  1761. #
  1762. # The simulator compares the bfd mach against BFDMACHS to decide
  1763. # which engine to use. Entries in BFDMACHS should be bfd_mach
  1764. # values with "bfd_mach_" removed. ${sim_multi_default} says
  1765. # which entry should be the default.
  1766. if test ${sim_gen} = MULTI; then
  1767. # Simple sanity check.
  1768. if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
  1769. as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
  1770. fi
  1771. # Start in a known state.
  1772. rm -f multi-include.h multi-run.c
  1773. sim_multi_flags=
  1774. sim_multi_src=
  1775. sim_multi_obj=
  1776. sim_multi_igen_configs=
  1777. sim_seen_default=no
  1778. cat << __EOF__ > multi-run.c
  1779. /* Main entry point for MULTI simulators.
  1780. Copyright (C) 2003-2022 Free Software Foundation, Inc.
  1781. This program is free software; you can redistribute it and/or modify
  1782. it under the terms of the GNU General Public License as published by
  1783. the Free Software Foundation; either version 3 of the License, or
  1784. (at your option) any later version.
  1785. This program is distributed in the hope that it will be useful,
  1786. but WITHOUT ANY WARRANTY; without even the implied warranty of
  1787. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1788. GNU General Public License for more details.
  1789. You should have received a copy of the GNU General Public License
  1790. along with this program. If not, see <http://www.gnu.org/licenses/>.
  1791. --
  1792. This file was generated by sim/mips/configure. */
  1793. #include "sim-main.h"
  1794. #include "multi-include.h"
  1795. #include "elf-bfd.h"
  1796. #include "elfxx-mips.h"
  1797. #include "elf/mips.h"
  1798. #define SD sd
  1799. #define CPU cpu
  1800. void
  1801. sim_engine_run (SIM_DESC sd,
  1802. int next_cpu_nr,
  1803. int nr_cpus,
  1804. int signal) /* ignore */
  1805. {
  1806. int mach;
  1807. if (STATE_ARCHITECTURE (sd) == NULL)
  1808. mach = bfd_mach_${sim_multi_default};
  1809. else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
  1810. & EF_MIPS_ARCH_ASE_MICROMIPS)
  1811. mach = bfd_mach_mips_micromips;
  1812. else
  1813. {
  1814. mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
  1815. if (!mach)
  1816. mach = STATE_ARCHITECTURE (SD)->mach;
  1817. }
  1818. switch (mach)
  1819. {
  1820. __EOF__
  1821. for fc in ${sim_multi_configs}; do
  1822. # Split up the entry. ${c} contains the first three elements.
  1823. # Note: outer sqaure brackets are m4 quotes.
  1824. c=`echo ${fc} | sed 's/:[^:]*$//'`
  1825. bfdmachs=`echo ${fc} | sed 's/.*://'`
  1826. name=`echo ${c} | sed 's/:.*//'`
  1827. machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
  1828. filter=`echo ${c} | sed 's/.*://'`
  1829. # Build the following lists:
  1830. #
  1831. # sim_multi_flags: all -M and -F flags used by the simulator
  1832. # sim_multi_src: all makefile-generated source files
  1833. # sim_multi_obj: the objects for ${sim_multi_src}
  1834. # sim_multi_igen_configs: igen configuration strings.
  1835. #
  1836. # Each entry in ${sim_multi_igen_configs} is a prefix (m32
  1837. # or m16) followed by the NAME, MACHINE and FILTER part of
  1838. # the ${sim_multi_configs} entry.
  1839. sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
  1840. # Check whether special handling is needed.
  1841. case ${c} in
  1842. *:*mips16*:*)
  1843. # Run igen twice, once for normal mode and once for mips16.
  1844. ws="m32 m16"
  1845. # The top-level function for the mips16 simulator is
  1846. # in a file m16${name}_run.c, generated by the
  1847. # tmp-run-multi Makefile rule.
  1848. sim_multi_src="${sim_multi_src} m16${name}_run.c"
  1849. sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
  1850. sim_multi_flags="${sim_multi_flags} -F 16"
  1851. ;;
  1852. *:*micromips32*:*)
  1853. # Run igen thrice, once for micromips32, once for micromips16,
  1854. # and once for m32.
  1855. ws="micromips_m32 micromips16 micromips32"
  1856. # The top-level function for the micromips simulator is
  1857. # in a file micromips${name}_run.c, generated by the
  1858. # tmp-run-multi Makefile rule.
  1859. sim_multi_src="${sim_multi_src} micromips${name}_run.c"
  1860. sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
  1861. sim_multi_flags="${sim_multi_flags} -F 16,32"
  1862. ;;
  1863. *:*micromips64*:*)
  1864. # Run igen thrice, once for micromips64, once for micromips16,
  1865. # and once for m64.
  1866. ws="micromips_m64 micromips16 micromips64"
  1867. # The top-level function for the micromips simulator is
  1868. # in a file micromips${name}_run.c, generated by the
  1869. # tmp-run-multi Makefile rule.
  1870. sim_multi_src="${sim_multi_src} micromips${name}_run.c"
  1871. sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
  1872. sim_multi_flags="${sim_multi_flags} -F 16,32,64"
  1873. ;;
  1874. *)
  1875. ws=m32
  1876. ;;
  1877. esac
  1878. # Now add the list of igen-generated files to ${sim_multi_src}
  1879. # and ${sim_multi_obj}.
  1880. for w in ${ws}; do
  1881. for base in engine icache idecode model semantics support; do
  1882. sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
  1883. sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
  1884. sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
  1885. done
  1886. sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
  1887. done
  1888. # Add an include for the engine.h file. This file declares the
  1889. # top-level foo_engine_run() function.
  1890. echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
  1891. # Add case statements for this engine to sim_engine_run().
  1892. for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
  1893. echo " case bfd_mach_${mach}:" >> multi-run.c
  1894. if test ${mach} = ${sim_multi_default}; then
  1895. echo " default:" >> multi-run.c
  1896. sim_seen_default=yes
  1897. fi
  1898. done
  1899. echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
  1900. >> multi-run.c
  1901. echo " break;" >> multi-run.c
  1902. done
  1903. # Check whether we added a 'default:' label.
  1904. if test ${sim_seen_default} = no; then
  1905. as_fn_error $? "Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
  1906. fi
  1907. cat << __EOF__ >> multi-run.c
  1908. }
  1909. }
  1910. int
  1911. mips_mach_multi (SIM_DESC sd)
  1912. {
  1913. if (STATE_ARCHITECTURE (sd) == NULL)
  1914. return bfd_mach_${sim_multi_default};
  1915. switch (STATE_ARCHITECTURE (SD)->mach)
  1916. {
  1917. __EOF__
  1918. # Add case statements for this engine to mips_mach_multi().
  1919. for fc in ${sim_multi_configs}; do
  1920. # Split up the entry. ${c} contains the first three elements.
  1921. # Note: outer sqaure brackets are m4 quotes.
  1922. c=`echo ${fc} | sed 's/:[^:]*$//'`
  1923. bfdmachs=`echo ${fc} | sed 's/.*://'`
  1924. for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
  1925. echo " case bfd_mach_${mach}:" >> multi-run.c
  1926. done
  1927. done
  1928. cat << __EOF__ >> multi-run.c
  1929. return (STATE_ARCHITECTURE (SD)->mach);
  1930. default:
  1931. return bfd_mach_${sim_multi_default};
  1932. }
  1933. }
  1934. __EOF__
  1935. SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
  1936. else
  1937. # For clean-extra
  1938. sim_multi_src=doesnt-exist.c
  1939. if test x"${sim_mach_default}" = x""; then
  1940. as_fn_error $? "Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
  1941. fi
  1942. SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
  1943. fi
  1944. sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
  1945. sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
  1946. sim_micromips16_flags=" -F ${sim_micromips16_filter} ${sim_micromips16_machine} ${sim_igen_smp}"
  1947. sim_micromips_flags=" -F ${sim_micromips_filter} ${sim_micromips_machine} ${sim_igen_smp}"
  1948. ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
  1949. ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
  1950. ac_config_commands="$ac_config_commands Makefile"
  1951. ac_config_commands="$ac_config_commands stamp-h"
  1952. SIM_COMMON_BUILD_TRUE='#'
  1953. SIM_COMMON_BUILD_FALSE=
  1954. cat >confcache <<\_ACEOF
  1955. # This file is a shell script that caches the results of configure
  1956. # tests run on this system so they can be shared between configure
  1957. # scripts and configure runs, see configure's option --config-cache.
  1958. # It is not useful on other systems. If it contains results you don't
  1959. # want to keep, you may remove or edit it.
  1960. #
  1961. # config.status only pays attention to the cache file if you give it
  1962. # the --recheck option to rerun configure.
  1963. #
  1964. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  1965. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  1966. # following values.
  1967. _ACEOF
  1968. # The following way of writing the cache mishandles newlines in values,
  1969. # but we know of no workaround that is simple, portable, and efficient.
  1970. # So, we kill variables containing newlines.
  1971. # Ultrix sh set writes to stderr and can't be redirected directly,
  1972. # and sets the high bit in the cache file unless we assign to the vars.
  1973. (
  1974. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  1975. eval ac_val=\$$ac_var
  1976. case $ac_val in #(
  1977. *${as_nl}*)
  1978. case $ac_var in #(
  1979. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1980. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1981. esac
  1982. case $ac_var in #(
  1983. _ | IFS | as_nl) ;; #(
  1984. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1985. *) { eval $ac_var=; unset $ac_var;} ;;
  1986. esac ;;
  1987. esac
  1988. done
  1989. (set) 2>&1 |
  1990. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  1991. *${as_nl}ac_space=\ *)
  1992. # `set' does not quote correctly, so add quotes: double-quote
  1993. # substitution turns \\\\ into \\, and sed turns \\ into \.
  1994. sed -n \
  1995. "s/'/'\\\\''/g;
  1996. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  1997. ;; #(
  1998. *)
  1999. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2000. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2001. ;;
  2002. esac |
  2003. sort
  2004. ) |
  2005. sed '
  2006. /^ac_cv_env_/b end
  2007. t clear
  2008. :clear
  2009. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2010. t end
  2011. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2012. :end' >>confcache
  2013. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  2014. if test -w "$cache_file"; then
  2015. if test "x$cache_file" != "x/dev/null"; then
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  2017. $as_echo "$as_me: updating cache $cache_file" >&6;}
  2018. if test ! -f "$cache_file" || test -h "$cache_file"; then
  2019. cat confcache >"$cache_file"
  2020. else
  2021. case $cache_file in #(
  2022. */* | ?:*)
  2023. mv -f confcache "$cache_file"$$ &&
  2024. mv -f "$cache_file"$$ "$cache_file" ;; #(
  2025. *)
  2026. mv -f confcache "$cache_file" ;;
  2027. esac
  2028. fi
  2029. fi
  2030. else
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  2032. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  2033. fi
  2034. fi
  2035. rm -f confcache
  2036. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2037. # Let make expand exec_prefix.
  2038. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2039. # Transform confdefs.h into DEFS.
  2040. # Protect against shell expansion while executing Makefile rules.
  2041. # Protect against Makefile macro expansion.
  2042. #
  2043. # If the first sed substitution is executed (which looks for macros that
  2044. # take arguments), then branch to the quote section. Otherwise,
  2045. # look for a macro that doesn't take arguments.
  2046. ac_script='
  2047. :mline
  2048. /\\$/{
  2049. N
  2050. s,\\\n,,
  2051. b mline
  2052. }
  2053. t clear
  2054. :clear
  2055. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  2056. t quote
  2057. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  2058. t quote
  2059. b any
  2060. :quote
  2061. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  2062. s/\[/\\&/g
  2063. s/\]/\\&/g
  2064. s/\$/$$/g
  2065. H
  2066. :any
  2067. ${
  2068. g
  2069. s/^\n//
  2070. s/\n/ /g
  2071. p
  2072. }
  2073. '
  2074. DEFS=`sed -n "$ac_script" confdefs.h`
  2075. ac_libobjs=
  2076. ac_ltlibobjs=
  2077. U=
  2078. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  2079. # 1. Remove the extension, and $U if already installed.
  2080. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  2081. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  2082. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  2083. # will be set to the directory where LIBOBJS objects are built.
  2084. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  2085. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  2086. done
  2087. LIBOBJS=$ac_libobjs
  2088. LTLIBOBJS=$ac_ltlibobjs
  2089. : "${CONFIG_STATUS=./config.status}"
  2090. ac_write_fail=0
  2091. ac_clean_files_save=$ac_clean_files
  2092. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  2094. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  2095. as_write_fail=0
  2096. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  2097. #! $SHELL
  2098. # Generated by $as_me.
  2099. # Run this file to recreate the current configuration.
  2100. # Compiler output produced by configure, useful for debugging
  2101. # configure, is in config.log if it exists.
  2102. debug=false
  2103. ac_cs_recheck=false
  2104. ac_cs_silent=false
  2105. SHELL=\${CONFIG_SHELL-$SHELL}
  2106. export SHELL
  2107. _ASEOF
  2108. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  2109. ## -------------------- ##
  2110. ## M4sh Initialization. ##
  2111. ## -------------------- ##
  2112. # Be more Bourne compatible
  2113. DUALCASE=1; export DUALCASE # for MKS sh
  2114. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  2115. emulate sh
  2116. NULLCMD=:
  2117. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  2118. # is contrary to our usage. Disable this feature.
  2119. alias -g '${1+"$@"}'='"$@"'
  2120. setopt NO_GLOB_SUBST
  2121. else
  2122. case `(set -o) 2>/dev/null` in #(
  2123. *posix*) :
  2124. set -o posix ;; #(
  2125. *) :
  2126. ;;
  2127. esac
  2128. fi
  2129. as_nl='
  2130. '
  2131. export as_nl
  2132. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  2133. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2134. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  2135. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  2136. # Prefer a ksh shell builtin over an external printf program on Solaris,
  2137. # but without wasting forks for bash or zsh.
  2138. if test -z "$BASH_VERSION$ZSH_VERSION" \
  2139. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  2140. as_echo='print -r --'
  2141. as_echo_n='print -rn --'
  2142. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  2143. as_echo='printf %s\n'
  2144. as_echo_n='printf %s'
  2145. else
  2146. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  2147. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  2148. as_echo_n='/usr/ucb/echo -n'
  2149. else
  2150. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  2151. as_echo_n_body='eval
  2152. arg=$1;
  2153. case $arg in #(
  2154. *"$as_nl"*)
  2155. expr "X$arg" : "X\\(.*\\)$as_nl";
  2156. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  2157. esac;
  2158. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  2159. '
  2160. export as_echo_n_body
  2161. as_echo_n='sh -c $as_echo_n_body as_echo'
  2162. fi
  2163. export as_echo_body
  2164. as_echo='sh -c $as_echo_body as_echo'
  2165. fi
  2166. # The user is always right.
  2167. if test "${PATH_SEPARATOR+set}" != set; then
  2168. PATH_SEPARATOR=:
  2169. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  2170. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  2171. PATH_SEPARATOR=';'
  2172. }
  2173. fi
  2174. # IFS
  2175. # We need space, tab and new line, in precisely that order. Quoting is
  2176. # there to prevent editors from complaining about space-tab.
  2177. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  2178. # splitting by setting IFS to empty value.)
  2179. IFS=" "" $as_nl"
  2180. # Find who we are. Look in the path if we contain no directory separator.
  2181. as_myself=
  2182. case $0 in #((
  2183. *[\\/]* ) as_myself=$0 ;;
  2184. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2185. for as_dir in $PATH
  2186. do
  2187. IFS=$as_save_IFS
  2188. test -z "$as_dir" && as_dir=.
  2189. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  2190. done
  2191. IFS=$as_save_IFS
  2192. ;;
  2193. esac
  2194. # We did not find ourselves, most probably we were run as `sh COMMAND'
  2195. # in which case we are not to be found in the path.
  2196. if test "x$as_myself" = x; then
  2197. as_myself=$0
  2198. fi
  2199. if test ! -f "$as_myself"; then
  2200. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  2201. exit 1
  2202. fi
  2203. # Unset variables that we do not need and which cause bugs (e.g. in
  2204. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  2205. # suppresses any "Segmentation fault" message there. '((' could
  2206. # trigger a bug in pdksh 5.2.14.
  2207. for as_var in BASH_ENV ENV MAIL MAILPATH
  2208. do eval test x\${$as_var+set} = xset \
  2209. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  2210. done
  2211. PS1='$ '
  2212. PS2='> '
  2213. PS4='+ '
  2214. # NLS nuisances.
  2215. LC_ALL=C
  2216. export LC_ALL
  2217. LANGUAGE=C
  2218. export LANGUAGE
  2219. # CDPATH.
  2220. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2221. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  2222. # ----------------------------------------
  2223. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  2224. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  2225. # script with STATUS, using 1 if that was 0.
  2226. as_fn_error ()
  2227. {
  2228. as_status=$1; test $as_status -eq 0 && as_status=1
  2229. if test "$4"; then
  2230. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2231. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  2232. fi
  2233. $as_echo "$as_me: error: $2" >&2
  2234. as_fn_exit $as_status
  2235. } # as_fn_error
  2236. # as_fn_set_status STATUS
  2237. # -----------------------
  2238. # Set $? to STATUS, without forking.
  2239. as_fn_set_status ()
  2240. {
  2241. return $1
  2242. } # as_fn_set_status
  2243. # as_fn_exit STATUS
  2244. # -----------------
  2245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  2246. as_fn_exit ()
  2247. {
  2248. set +e
  2249. as_fn_set_status $1
  2250. exit $1
  2251. } # as_fn_exit
  2252. # as_fn_unset VAR
  2253. # ---------------
  2254. # Portably unset VAR.
  2255. as_fn_unset ()
  2256. {
  2257. { eval $1=; unset $1;}
  2258. }
  2259. as_unset=as_fn_unset
  2260. # as_fn_append VAR VALUE
  2261. # ----------------------
  2262. # Append the text in VALUE to the end of the definition contained in VAR. Take
  2263. # advantage of any shell optimizations that allow amortized linear growth over
  2264. # repeated appends, instead of the typical quadratic growth present in naive
  2265. # implementations.
  2266. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  2267. eval 'as_fn_append ()
  2268. {
  2269. eval $1+=\$2
  2270. }'
  2271. else
  2272. as_fn_append ()
  2273. {
  2274. eval $1=\$$1\$2
  2275. }
  2276. fi # as_fn_append
  2277. # as_fn_arith ARG...
  2278. # ------------------
  2279. # Perform arithmetic evaluation on the ARGs, and store the result in the
  2280. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  2281. # must be portable across $(()) and expr.
  2282. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  2283. eval 'as_fn_arith ()
  2284. {
  2285. as_val=$(( $* ))
  2286. }'
  2287. else
  2288. as_fn_arith ()
  2289. {
  2290. as_val=`expr "$@" || test $? -eq 1`
  2291. }
  2292. fi # as_fn_arith
  2293. if expr a : '\(a\)' >/dev/null 2>&1 &&
  2294. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  2295. as_expr=expr
  2296. else
  2297. as_expr=false
  2298. fi
  2299. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  2300. as_basename=basename
  2301. else
  2302. as_basename=false
  2303. fi
  2304. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  2305. as_dirname=dirname
  2306. else
  2307. as_dirname=false
  2308. fi
  2309. as_me=`$as_basename -- "$0" ||
  2310. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  2311. X"$0" : 'X\(//\)$' \| \
  2312. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  2313. $as_echo X/"$0" |
  2314. sed '/^.*\/\([^/][^/]*\)\/*$/{
  2315. s//\1/
  2316. q
  2317. }
  2318. /^X\/\(\/\/\)$/{
  2319. s//\1/
  2320. q
  2321. }
  2322. /^X\/\(\/\).*/{
  2323. s//\1/
  2324. q
  2325. }
  2326. s/.*/./; q'`
  2327. # Avoid depending upon Character Ranges.
  2328. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  2329. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  2330. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  2331. as_cr_digits='0123456789'
  2332. as_cr_alnum=$as_cr_Letters$as_cr_digits
  2333. ECHO_C= ECHO_N= ECHO_T=
  2334. case `echo -n x` in #(((((
  2335. -n*)
  2336. case `echo 'xy\c'` in
  2337. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  2338. xy) ECHO_C='\c';;
  2339. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  2340. ECHO_T=' ';;
  2341. esac;;
  2342. *)
  2343. ECHO_N='-n';;
  2344. esac
  2345. rm -f conf$$ conf$$.exe conf$$.file
  2346. if test -d conf$$.dir; then
  2347. rm -f conf$$.dir/conf$$.file
  2348. else
  2349. rm -f conf$$.dir
  2350. mkdir conf$$.dir 2>/dev/null
  2351. fi
  2352. if (echo >conf$$.file) 2>/dev/null; then
  2353. if ln -s conf$$.file conf$$ 2>/dev/null; then
  2354. as_ln_s='ln -s'
  2355. # ... but there are two gotchas:
  2356. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  2357. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  2358. # In both cases, we have to default to `cp -pR'.
  2359. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  2360. as_ln_s='cp -pR'
  2361. elif ln conf$$.file conf$$ 2>/dev/null; then
  2362. as_ln_s=ln
  2363. else
  2364. as_ln_s='cp -pR'
  2365. fi
  2366. else
  2367. as_ln_s='cp -pR'
  2368. fi
  2369. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  2370. rmdir conf$$.dir 2>/dev/null
  2371. # as_fn_mkdir_p
  2372. # -------------
  2373. # Create "$as_dir" as a directory, including parents if necessary.
  2374. as_fn_mkdir_p ()
  2375. {
  2376. case $as_dir in #(
  2377. -*) as_dir=./$as_dir;;
  2378. esac
  2379. test -d "$as_dir" || eval $as_mkdir_p || {
  2380. as_dirs=
  2381. while :; do
  2382. case $as_dir in #(
  2383. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  2384. *) as_qdir=$as_dir;;
  2385. esac
  2386. as_dirs="'$as_qdir' $as_dirs"
  2387. as_dir=`$as_dirname -- "$as_dir" ||
  2388. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2389. X"$as_dir" : 'X\(//\)[^/]' \| \
  2390. X"$as_dir" : 'X\(//\)$' \| \
  2391. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  2392. $as_echo X"$as_dir" |
  2393. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2394. s//\1/
  2395. q
  2396. }
  2397. /^X\(\/\/\)[^/].*/{
  2398. s//\1/
  2399. q
  2400. }
  2401. /^X\(\/\/\)$/{
  2402. s//\1/
  2403. q
  2404. }
  2405. /^X\(\/\).*/{
  2406. s//\1/
  2407. q
  2408. }
  2409. s/.*/./; q'`
  2410. test -d "$as_dir" && break
  2411. done
  2412. test -z "$as_dirs" || eval "mkdir $as_dirs"
  2413. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  2414. } # as_fn_mkdir_p
  2415. if mkdir -p . 2>/dev/null; then
  2416. as_mkdir_p='mkdir -p "$as_dir"'
  2417. else
  2418. test -d ./-p && rmdir ./-p
  2419. as_mkdir_p=false
  2420. fi
  2421. # as_fn_executable_p FILE
  2422. # -----------------------
  2423. # Test if FILE is an executable regular file.
  2424. as_fn_executable_p ()
  2425. {
  2426. test -f "$1" && test -x "$1"
  2427. } # as_fn_executable_p
  2428. as_test_x='test -x'
  2429. as_executable_p=as_fn_executable_p
  2430. # Sed expression to map a string onto a valid CPP name.
  2431. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  2432. # Sed expression to map a string onto a valid variable name.
  2433. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  2434. exec 6>&1
  2435. ## ----------------------------------- ##
  2436. ## Main body of $CONFIG_STATUS script. ##
  2437. ## ----------------------------------- ##
  2438. _ASEOF
  2439. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  2440. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2441. # Save the log message, to keep $0 and so on meaningful, and to
  2442. # report actual input values of CONFIG_FILES etc. instead of their
  2443. # values after options handling.
  2444. ac_log="
  2445. This file was extended by $as_me, which was
  2446. generated by GNU Autoconf 2.69. Invocation command line was
  2447. CONFIG_FILES = $CONFIG_FILES
  2448. CONFIG_HEADERS = $CONFIG_HEADERS
  2449. CONFIG_LINKS = $CONFIG_LINKS
  2450. CONFIG_COMMANDS = $CONFIG_COMMANDS
  2451. $ $0 $@
  2452. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  2453. "
  2454. _ACEOF
  2455. case $ac_config_files in *"
  2456. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  2457. esac
  2458. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2459. # Files that config.status was made for.
  2460. config_files="$ac_config_files"
  2461. config_commands="$ac_config_commands"
  2462. _ACEOF
  2463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2464. ac_cs_usage="\
  2465. \`$as_me' instantiates files and other configuration actions
  2466. from templates according to the current configuration. Unless the files
  2467. and actions are specified as TAGs, all are instantiated by default.
  2468. Usage: $0 [OPTION]... [TAG]...
  2469. -h, --help print this help, then exit
  2470. -V, --version print version number and configuration settings, then exit
  2471. --config print configuration, then exit
  2472. -q, --quiet, --silent
  2473. do not print progress messages
  2474. -d, --debug don't remove temporary files
  2475. --recheck update $as_me by reconfiguring in the same conditions
  2476. --file=FILE[:TEMPLATE]
  2477. instantiate the configuration file FILE
  2478. Configuration files:
  2479. $config_files
  2480. Configuration commands:
  2481. $config_commands
  2482. Report bugs to the package provider."
  2483. _ACEOF
  2484. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2485. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  2486. ac_cs_version="\\
  2487. config.status
  2488. configured by $0, generated by GNU Autoconf 2.69,
  2489. with options \\"\$ac_cs_config\\"
  2490. Copyright (C) 2012 Free Software Foundation, Inc.
  2491. This config.status script is free software; the Free Software Foundation
  2492. gives unlimited permission to copy, distribute and modify it."
  2493. ac_pwd='$ac_pwd'
  2494. srcdir='$srcdir'
  2495. test -n "\$AWK" || AWK=awk
  2496. _ACEOF
  2497. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2498. # The default lists apply if the user does not specify any file.
  2499. ac_need_defaults=:
  2500. while test $# != 0
  2501. do
  2502. case $1 in
  2503. --*=?*)
  2504. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2505. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  2506. ac_shift=:
  2507. ;;
  2508. --*=)
  2509. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2510. ac_optarg=
  2511. ac_shift=:
  2512. ;;
  2513. *)
  2514. ac_option=$1
  2515. ac_optarg=$2
  2516. ac_shift=shift
  2517. ;;
  2518. esac
  2519. case $ac_option in
  2520. # Handling of the options.
  2521. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2522. ac_cs_recheck=: ;;
  2523. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  2524. $as_echo "$ac_cs_version"; exit ;;
  2525. --config | --confi | --conf | --con | --co | --c )
  2526. $as_echo "$ac_cs_config"; exit ;;
  2527. --debug | --debu | --deb | --de | --d | -d )
  2528. debug=: ;;
  2529. --file | --fil | --fi | --f )
  2530. $ac_shift
  2531. case $ac_optarg in
  2532. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2533. '') as_fn_error $? "missing file argument" ;;
  2534. esac
  2535. as_fn_append CONFIG_FILES " '$ac_optarg'"
  2536. ac_need_defaults=false;;
  2537. --he | --h | --help | --hel | -h )
  2538. $as_echo "$ac_cs_usage"; exit ;;
  2539. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2540. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  2541. ac_cs_silent=: ;;
  2542. # This is an error.
  2543. -*) as_fn_error $? "unrecognized option: \`$1'
  2544. Try \`$0 --help' for more information." ;;
  2545. *) as_fn_append ac_config_targets " $1"
  2546. ac_need_defaults=false ;;
  2547. esac
  2548. shift
  2549. done
  2550. ac_configure_extra_args=
  2551. if $ac_cs_silent; then
  2552. exec 6>/dev/null
  2553. ac_configure_extra_args="$ac_configure_extra_args --silent"
  2554. fi
  2555. _ACEOF
  2556. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2557. if \$ac_cs_recheck; then
  2558. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  2559. shift
  2560. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  2561. CONFIG_SHELL='$SHELL'
  2562. export CONFIG_SHELL
  2563. exec "\$@"
  2564. fi
  2565. _ACEOF
  2566. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2567. exec 5>>config.log
  2568. {
  2569. echo
  2570. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  2571. ## Running $as_me. ##
  2572. _ASBOX
  2573. $as_echo "$ac_log"
  2574. } >&5
  2575. _ACEOF
  2576. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2577. _ACEOF
  2578. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2579. # Handling of arguments.
  2580. for ac_config_target in $ac_config_targets
  2581. do
  2582. case $ac_config_target in
  2583. "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
  2584. "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
  2585. "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
  2586. "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
  2587. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  2588. esac
  2589. done
  2590. # If the user did not use the arguments to specify the items to instantiate,
  2591. # then the envvar interface is used. Set only those that are not.
  2592. # We use the long form for the default assignment because of an extremely
  2593. # bizarre bug on SunOS 4.1.3.
  2594. if $ac_need_defaults; then
  2595. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  2596. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  2597. fi
  2598. # Have a temporary directory for convenience. Make it in the build tree
  2599. # simply because there is no reason against having it here, and in addition,
  2600. # creating and moving files from /tmp can sometimes cause problems.
  2601. # Hook for its removal unless debugging.
  2602. # Note that there is a small window in which the directory will not be cleaned:
  2603. # after its creation but before its name has been assigned to `$tmp'.
  2604. $debug ||
  2605. {
  2606. tmp= ac_tmp=
  2607. trap 'exit_status=$?
  2608. : "${ac_tmp:=$tmp}"
  2609. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  2610. ' 0
  2611. trap 'as_fn_exit 1' 1 2 13 15
  2612. }
  2613. # Create a (secure) tmp directory for tmp files.
  2614. {
  2615. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  2616. test -d "$tmp"
  2617. } ||
  2618. {
  2619. tmp=./conf$$-$RANDOM
  2620. (umask 077 && mkdir "$tmp")
  2621. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  2622. ac_tmp=$tmp
  2623. # Set up the scripts for CONFIG_FILES section.
  2624. # No need to generate them if there are no CONFIG_FILES.
  2625. # This happens for instance with `./config.status config.h'.
  2626. if test -n "$CONFIG_FILES"; then
  2627. ac_cr=`echo X | tr X '\015'`
  2628. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  2629. # But we know of no other shell where ac_cr would be empty at this
  2630. # point, so we can use a bashism as a fallback.
  2631. if test "x$ac_cr" = x; then
  2632. eval ac_cr=\$\'\\r\'
  2633. fi
  2634. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  2635. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  2636. ac_cs_awk_cr='\\r'
  2637. else
  2638. ac_cs_awk_cr=$ac_cr
  2639. fi
  2640. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  2641. _ACEOF
  2642. {
  2643. echo "cat >conf$$subs.awk <<_ACEOF" &&
  2644. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  2645. echo "_ACEOF"
  2646. } >conf$$subs.sh ||
  2647. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2648. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  2649. ac_delim='%!_!# '
  2650. for ac_last_try in false false false false false :; do
  2651. . ./conf$$subs.sh ||
  2652. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2653. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  2654. if test $ac_delim_n = $ac_delim_num; then
  2655. break
  2656. elif $ac_last_try; then
  2657. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2658. else
  2659. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  2660. fi
  2661. done
  2662. rm -f conf$$subs.sh
  2663. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2664. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  2665. _ACEOF
  2666. sed -n '
  2667. h
  2668. s/^/S["/; s/!.*/"]=/
  2669. p
  2670. g
  2671. s/^[^!]*!//
  2672. :repl
  2673. t repl
  2674. s/'"$ac_delim"'$//
  2675. t delim
  2676. :nl
  2677. h
  2678. s/\(.\{148\}\)..*/\1/
  2679. t more1
  2680. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  2681. p
  2682. n
  2683. b repl
  2684. :more1
  2685. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  2686. p
  2687. g
  2688. s/.\{148\}//
  2689. t nl
  2690. :delim
  2691. h
  2692. s/\(.\{148\}\)..*/\1/
  2693. t more2
  2694. s/["\\]/\\&/g; s/^/"/; s/$/"/
  2695. p
  2696. b
  2697. :more2
  2698. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  2699. p
  2700. g
  2701. s/.\{148\}//
  2702. t delim
  2703. ' <conf$$subs.awk | sed '
  2704. /^[^""]/{
  2705. N
  2706. s/\n//
  2707. }
  2708. ' >>$CONFIG_STATUS || ac_write_fail=1
  2709. rm -f conf$$subs.awk
  2710. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2711. _ACAWK
  2712. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  2713. for (key in S) S_is_set[key] = 1
  2714. FS = ""
  2715. }
  2716. {
  2717. line = $ 0
  2718. nfields = split(line, field, "@")
  2719. substed = 0
  2720. len = length(field[1])
  2721. for (i = 2; i < nfields; i++) {
  2722. key = field[i]
  2723. keylen = length(key)
  2724. if (S_is_set[key]) {
  2725. value = S[key]
  2726. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  2727. len += length(value) + length(field[++i])
  2728. substed = 1
  2729. } else
  2730. len += 1 + keylen
  2731. }
  2732. print line
  2733. }
  2734. _ACAWK
  2735. _ACEOF
  2736. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2737. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  2738. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  2739. else
  2740. cat
  2741. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  2742. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  2743. _ACEOF
  2744. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  2745. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  2746. # trailing colons and then remove the whole line if VPATH becomes empty
  2747. # (actually we leave an empty line to preserve line numbers).
  2748. if test "x$srcdir" = x.; then
  2749. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  2750. h
  2751. s///
  2752. s/^/:/
  2753. s/[ ]*$/:/
  2754. s/:\$(srcdir):/:/g
  2755. s/:\${srcdir}:/:/g
  2756. s/:@srcdir@:/:/g
  2757. s/^:*//
  2758. s/:*$//
  2759. x
  2760. s/\(=[ ]*\).*/\1/
  2761. G
  2762. s/\n//
  2763. s/^[^=]*=[ ]*$//
  2764. }'
  2765. fi
  2766. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2767. fi # test -n "$CONFIG_FILES"
  2768. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  2769. shift
  2770. for ac_tag
  2771. do
  2772. case $ac_tag in
  2773. :[FHLC]) ac_mode=$ac_tag; continue;;
  2774. esac
  2775. case $ac_mode$ac_tag in
  2776. :[FHL]*:*);;
  2777. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  2778. :[FH]-) ac_tag=-:-;;
  2779. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  2780. esac
  2781. ac_save_IFS=$IFS
  2782. IFS=:
  2783. set x $ac_tag
  2784. IFS=$ac_save_IFS
  2785. shift
  2786. ac_file=$1
  2787. shift
  2788. case $ac_mode in
  2789. :L) ac_source=$1;;
  2790. :[FH])
  2791. ac_file_inputs=
  2792. for ac_f
  2793. do
  2794. case $ac_f in
  2795. -) ac_f="$ac_tmp/stdin";;
  2796. *) # Look for the file first in the build tree, then in the source tree
  2797. # (if the path is not absolute). The absolute path cannot be DOS-style,
  2798. # because $ac_f cannot contain `:'.
  2799. test -f "$ac_f" ||
  2800. case $ac_f in
  2801. [\\/$]*) false;;
  2802. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  2803. esac ||
  2804. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  2805. esac
  2806. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  2807. as_fn_append ac_file_inputs " '$ac_f'"
  2808. done
  2809. # Let's still pretend it is `configure' which instantiates (i.e., don't
  2810. # use $as_me), people would be surprised to read:
  2811. # /* config.h. Generated by config.status. */
  2812. configure_input='Generated from '`
  2813. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  2814. `' by configure.'
  2815. if test x"$ac_file" != x-; then
  2816. configure_input="$ac_file. $configure_input"
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  2818. $as_echo "$as_me: creating $ac_file" >&6;}
  2819. fi
  2820. # Neutralize special characters interpreted by sed in replacement strings.
  2821. case $configure_input in #(
  2822. *\&* | *\|* | *\\* )
  2823. ac_sed_conf_input=`$as_echo "$configure_input" |
  2824. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  2825. *) ac_sed_conf_input=$configure_input;;
  2826. esac
  2827. case $ac_tag in
  2828. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  2829. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  2830. esac
  2831. ;;
  2832. esac
  2833. ac_dir=`$as_dirname -- "$ac_file" ||
  2834. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2835. X"$ac_file" : 'X\(//\)[^/]' \| \
  2836. X"$ac_file" : 'X\(//\)$' \| \
  2837. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  2838. $as_echo X"$ac_file" |
  2839. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2840. s//\1/
  2841. q
  2842. }
  2843. /^X\(\/\/\)[^/].*/{
  2844. s//\1/
  2845. q
  2846. }
  2847. /^X\(\/\/\)$/{
  2848. s//\1/
  2849. q
  2850. }
  2851. /^X\(\/\).*/{
  2852. s//\1/
  2853. q
  2854. }
  2855. s/.*/./; q'`
  2856. as_dir="$ac_dir"; as_fn_mkdir_p
  2857. ac_builddir=.
  2858. case "$ac_dir" in
  2859. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2860. *)
  2861. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2862. # A ".." for each directory in $ac_dir_suffix.
  2863. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2864. case $ac_top_builddir_sub in
  2865. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2866. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2867. esac ;;
  2868. esac
  2869. ac_abs_top_builddir=$ac_pwd
  2870. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2871. # for backward compatibility:
  2872. ac_top_builddir=$ac_top_build_prefix
  2873. case $srcdir in
  2874. .) # We are building in place.
  2875. ac_srcdir=.
  2876. ac_top_srcdir=$ac_top_builddir_sub
  2877. ac_abs_top_srcdir=$ac_pwd ;;
  2878. [\\/]* | ?:[\\/]* ) # Absolute name.
  2879. ac_srcdir=$srcdir$ac_dir_suffix;
  2880. ac_top_srcdir=$srcdir
  2881. ac_abs_top_srcdir=$srcdir ;;
  2882. *) # Relative name.
  2883. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2884. ac_top_srcdir=$ac_top_build_prefix$srcdir
  2885. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2886. esac
  2887. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2888. case $ac_mode in
  2889. :F)
  2890. #
  2891. # CONFIG_FILE
  2892. #
  2893. _ACEOF
  2894. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2895. # If the template does not know about datarootdir, expand it.
  2896. # FIXME: This hack should be removed a few years after 2.60.
  2897. ac_datarootdir_hack=; ac_datarootdir_seen=
  2898. ac_sed_dataroot='
  2899. /datarootdir/ {
  2900. p
  2901. q
  2902. }
  2903. /@datadir@/p
  2904. /@docdir@/p
  2905. /@infodir@/p
  2906. /@localedir@/p
  2907. /@mandir@/p'
  2908. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  2909. *datarootdir*) ac_datarootdir_seen=yes;;
  2910. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  2912. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  2913. _ACEOF
  2914. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2915. ac_datarootdir_hack='
  2916. s&@datadir@&$datadir&g
  2917. s&@docdir@&$docdir&g
  2918. s&@infodir@&$infodir&g
  2919. s&@localedir@&$localedir&g
  2920. s&@mandir@&$mandir&g
  2921. s&\\\${datarootdir}&$datarootdir&g' ;;
  2922. esac
  2923. _ACEOF
  2924. # Neutralize VPATH when `$srcdir' = `.'.
  2925. # Shell code in configure.ac might set extrasub.
  2926. # FIXME: do we really want to maintain this feature?
  2927. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2928. ac_sed_extra="$ac_vpsub
  2929. $extrasub
  2930. _ACEOF
  2931. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2932. :t
  2933. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  2934. s|@configure_input@|$ac_sed_conf_input|;t t
  2935. s&@top_builddir@&$ac_top_builddir_sub&;t t
  2936. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  2937. s&@srcdir@&$ac_srcdir&;t t
  2938. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  2939. s&@top_srcdir@&$ac_top_srcdir&;t t
  2940. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  2941. s&@builddir@&$ac_builddir&;t t
  2942. s&@abs_builddir@&$ac_abs_builddir&;t t
  2943. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  2944. $ac_datarootdir_hack
  2945. "
  2946. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  2947. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2948. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  2949. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  2950. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  2951. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2953. which seems to be undefined. Please make sure it is defined" >&5
  2954. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  2955. which seems to be undefined. Please make sure it is defined" >&2;}
  2956. rm -f "$ac_tmp/stdin"
  2957. case $ac_file in
  2958. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  2959. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  2960. esac \
  2961. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  2962. ;;
  2963. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  2964. $as_echo "$as_me: executing $ac_file commands" >&6;}
  2965. ;;
  2966. esac
  2967. case $ac_file$ac_mode in
  2968. "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
  2969. rm -f Makesim1.tmp Makesim2.tmp Makefile
  2970. sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
  2971. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
  2972. sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
  2973. -e '/^## COMMON_POST_/ r Makesim2.tmp' \
  2974. <Makefile.sim >Makefile
  2975. rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
  2976. ;;
  2977. "stamp-h":C) echo > stamp-h ;;
  2978. esac
  2979. done # for ac_tag
  2980. as_fn_exit 0
  2981. _ACEOF
  2982. ac_clean_files=$ac_clean_files_save
  2983. test $ac_write_fail = 0 ||
  2984. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  2985. # configure is writing to config.log, and then calls config.status.
  2986. # config.status does its own redirection, appending to config.log.
  2987. # Unfortunately, on DOS this fails, as config.log is still kept open
  2988. # by configure, so config.status won't be able to write to it; its
  2989. # output is simply discarded. So we exec the FD to /dev/null,
  2990. # effectively closing config.log, so it can be properly (re)opened and
  2991. # appended to by config.status. When coming back to configure, we
  2992. # need to make the FD available again.
  2993. if test "$no_create" != yes; then
  2994. ac_cs_success=:
  2995. ac_config_status_args=
  2996. test "$silent" = yes &&
  2997. ac_config_status_args="$ac_config_status_args --quiet"
  2998. exec 5>/dev/null
  2999. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  3000. exec 5>>config.log
  3001. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  3002. # would make configure fail if this is the last instruction.
  3003. $ac_cs_success || as_fn_exit 1
  3004. fi
  3005. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  3007. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  3008. fi