Advertisement
usernamejoe

my configure script

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