Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6110 lines
188 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --enable-maintainer-mode enable make rules and dependencies not useful
  14. (and sometimes confusing) to the casual installer"
  15. ac_help="$ac_help
  16. --enable-shared[=PKGS] build shared libraries [default=yes]"
  17. ac_help="$ac_help
  18. --enable-static[=PKGS] build static libraries [default=yes]"
  19. ac_help="$ac_help
  20. --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
  21. ac_help="$ac_help
  22. --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  23. # Find the correct PATH separator. Usually this is `:', but
  24. # DJGPP uses `;' like DOS.
  25. if test "X${PATH_SEPARATOR+set}" != Xset; then
  26. UNAME=${UNAME-`uname 2>/dev/null`}
  27. case X$UNAME in
  28. *-DOS) lt_cv_sys_path_separator=';' ;;
  29. *) lt_cv_sys_path_separator=':' ;;
  30. esac
  31. PATH_SEPARATOR=$lt_cv_sys_path_separator
  32. fi
  33. # Check that we are running under the correct shell.
  34. SHELL=${CONFIG_SHELL-/bin/sh}
  35. case X$ECHO in
  36. X*--fallback-echo)
  37. # Remove one level of quotation (which was required for Make).
  38. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  39. ;;
  40. esac
  41. echo=${ECHO-echo}
  42. if test "X$1" = X--no-reexec; then
  43. # Discard the --no-reexec flag, and continue.
  44. shift
  45. elif test "X$1" = X--fallback-echo; then
  46. # Avoid inline document here, it may be left over
  47. :
  48. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  49. # Yippee, $echo works!
  50. :
  51. else
  52. # Restart under the correct shell.
  53. exec $SHELL "$0" --no-reexec ${1+"$@"}
  54. fi
  55. if test "X$1" = X--fallback-echo; then
  56. # used as fallback echo
  57. shift
  58. cat <<EOF
  59. EOF
  60. exit 0
  61. fi
  62. # The HP-UX ksh and POSIX shell print the target directory to stdout
  63. # if CDPATH is set.
  64. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  65. if test -z "$ECHO"; then
  66. if test "X${echo_test_string+set}" != Xset; then
  67. # find a string as large as possible, as long as the shell can cope with it
  68. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  69. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  70. if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  71. echo_test_string="`eval $cmd`" &&
  72. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  73. then
  74. break
  75. fi
  76. done
  77. fi
  78. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  79. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  80. test "X$echo_testing_string" = "X$echo_test_string"; then
  81. :
  82. else
  83. # The Solaris, AIX, and Digital Unix default echo programs unquote
  84. # backslashes. This makes it impossible to quote backslashes using
  85. # echo "$something" | sed 's/\\/\\\\/g'
  86. #
  87. # So, first we look for a working echo in the user's PATH.
  88. IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  89. for dir in $PATH /usr/ucb; do
  90. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  91. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  92. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  93. test "X$echo_testing_string" = "X$echo_test_string"; then
  94. echo="$dir/echo"
  95. break
  96. fi
  97. done
  98. IFS="$save_ifs"
  99. if test "X$echo" = Xecho; then
  100. # We didn't find a better echo, so look for alternatives.
  101. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  102. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  103. test "X$echo_testing_string" = "X$echo_test_string"; then
  104. # This shell has a builtin print -r that does the trick.
  105. echo='print -r'
  106. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  107. test "X$CONFIG_SHELL" != X/bin/ksh; then
  108. # If we have ksh, try running configure again with it.
  109. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  110. export ORIGINAL_CONFIG_SHELL
  111. CONFIG_SHELL=/bin/ksh
  112. export CONFIG_SHELL
  113. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  114. else
  115. # Try using printf.
  116. echo='printf %s\n'
  117. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  118. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  119. test "X$echo_testing_string" = "X$echo_test_string"; then
  120. # Cool, printf works
  121. :
  122. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  123. test "X$echo_testing_string" = 'X\t' &&
  124. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  125. test "X$echo_testing_string" = "X$echo_test_string"; then
  126. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  127. export CONFIG_SHELL
  128. SHELL="$CONFIG_SHELL"
  129. export SHELL
  130. echo="$CONFIG_SHELL $0 --fallback-echo"
  131. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  132. test "X$echo_testing_string" = 'X\t' &&
  133. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  134. test "X$echo_testing_string" = "X$echo_test_string"; then
  135. echo="$CONFIG_SHELL $0 --fallback-echo"
  136. else
  137. # maybe with a smaller string...
  138. prev=:
  139. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  140. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  141. then
  142. break
  143. fi
  144. prev="$cmd"
  145. done
  146. if test "$prev" != 'sed 50q "$0"'; then
  147. echo_test_string=`eval $prev`
  148. export echo_test_string
  149. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  150. else
  151. # Oops. We lost completely, so just stick with echo.
  152. echo=echo
  153. fi
  154. fi
  155. fi
  156. fi
  157. fi
  158. fi
  159. # Copy echo and quote the copy suitably for passing to libtool from
  160. # the Makefile, instead of quoting the original, which is used later.
  161. ECHO=$echo
  162. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  163. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  164. fi
  165. ac_help="$ac_help
  166. --disable-libtool-lock avoid locking (might break parallel builds)"
  167. ac_help="$ac_help
  168. --with-pic try to use only PIC/non-PIC objects [default=use both]"
  169. ac_help="$ac_help
  170. --enable-ogg=[yes/no] Turn on or off the use of ogg
  171. libraries [default=yes]"
  172. ac_help="$ac_help
  173. --with-ogg-dir=DIR where the root of OGG is installed "
  174. ac_help="$ac_help
  175. --with-ogg-includes=DIR where the OGG includes are. "
  176. ac_help="$ac_help
  177. --with-ogg-libraries=DIR where the OGG library is installed."
  178. ac_help="$ac_help
  179. --enable-sse enable SSE support"
  180. # Initialize some variables set by options.
  181. # The variables have the same names as the options, with
  182. # dashes changed to underlines.
  183. build=NONE
  184. cache_file=./config.cache
  185. exec_prefix=NONE
  186. host=NONE
  187. no_create=
  188. nonopt=NONE
  189. no_recursion=
  190. prefix=NONE
  191. program_prefix=NONE
  192. program_suffix=NONE
  193. program_transform_name=s,x,x,
  194. silent=
  195. site=
  196. srcdir=
  197. target=NONE
  198. verbose=
  199. x_includes=NONE
  200. x_libraries=NONE
  201. bindir='${exec_prefix}/bin'
  202. sbindir='${exec_prefix}/sbin'
  203. libexecdir='${exec_prefix}/libexec'
  204. datadir='${prefix}/share'
  205. sysconfdir='${prefix}/etc'
  206. sharedstatedir='${prefix}/com'
  207. localstatedir='${prefix}/var'
  208. libdir='${exec_prefix}/lib'
  209. includedir='${prefix}/include'
  210. oldincludedir='/usr/include'
  211. infodir='${prefix}/info'
  212. mandir='${prefix}/man'
  213. # Initialize some other variables.
  214. subdirs=
  215. MFLAGS= MAKEFLAGS=
  216. SHELL=${CONFIG_SHELL-/bin/sh}
  217. # Maximum number of lines to put in a shell here document.
  218. ac_max_here_lines=12
  219. ac_prev=
  220. for ac_option
  221. do
  222. # If the previous option needs an argument, assign it.
  223. if test -n "$ac_prev"; then
  224. eval "$ac_prev=\$ac_option"
  225. ac_prev=
  226. continue
  227. fi
  228. case "$ac_option" in
  229. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  230. *) ac_optarg= ;;
  231. esac
  232. # Accept the important Cygnus configure options, so we can diagnose typos.
  233. case "$ac_option" in
  234. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  235. ac_prev=bindir ;;
  236. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  237. bindir="$ac_optarg" ;;
  238. -build | --build | --buil | --bui | --bu)
  239. ac_prev=build ;;
  240. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  241. build="$ac_optarg" ;;
  242. -cache-file | --cache-file | --cache-fil | --cache-fi \
  243. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  244. ac_prev=cache_file ;;
  245. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  246. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  247. cache_file="$ac_optarg" ;;
  248. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  249. ac_prev=datadir ;;
  250. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  251. | --da=*)
  252. datadir="$ac_optarg" ;;
  253. -disable-* | --disable-*)
  254. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  255. # Reject names that are not valid shell variable names.
  256. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  257. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  258. fi
  259. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  260. eval "enable_${ac_feature}=no" ;;
  261. -enable-* | --enable-*)
  262. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  263. # Reject names that are not valid shell variable names.
  264. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  265. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  266. fi
  267. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  268. case "$ac_option" in
  269. *=*) ;;
  270. *) ac_optarg=yes ;;
  271. esac
  272. eval "enable_${ac_feature}='$ac_optarg'" ;;
  273. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  274. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  275. | --exec | --exe | --ex)
  276. ac_prev=exec_prefix ;;
  277. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  278. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  279. | --exec=* | --exe=* | --ex=*)
  280. exec_prefix="$ac_optarg" ;;
  281. -gas | --gas | --ga | --g)
  282. # Obsolete; use --with-gas.
  283. with_gas=yes ;;
  284. -help | --help | --hel | --he)
  285. # Omit some internal or obsolete options to make the list less imposing.
  286. # This message is too long to be a string in the A/UX 3.1 sh.
  287. cat << EOF
  288. Usage: configure [options] [host]
  289. Options: [defaults in brackets after descriptions]
  290. Configuration:
  291. --cache-file=FILE cache test results in FILE
  292. --help print this message
  293. --no-create do not create output files
  294. --quiet, --silent do not print \`checking...' messages
  295. --version print the version of autoconf that created configure
  296. Directory and file names:
  297. --prefix=PREFIX install architecture-independent files in PREFIX
  298. [$ac_default_prefix]
  299. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  300. [same as prefix]
  301. --bindir=DIR user executables in DIR [EPREFIX/bin]
  302. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  303. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  304. --datadir=DIR read-only architecture-independent data in DIR
  305. [PREFIX/share]
  306. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  307. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  308. [PREFIX/com]
  309. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  310. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  311. --includedir=DIR C header files in DIR [PREFIX/include]
  312. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  313. --infodir=DIR info documentation in DIR [PREFIX/info]
  314. --mandir=DIR man documentation in DIR [PREFIX/man]
  315. --srcdir=DIR find the sources in DIR [configure dir or ..]
  316. --program-prefix=PREFIX prepend PREFIX to installed program names
  317. --program-suffix=SUFFIX append SUFFIX to installed program names
  318. --program-transform-name=PROGRAM
  319. run sed PROGRAM on installed program names
  320. EOF
  321. cat << EOF
  322. Host type:
  323. --build=BUILD configure for building on BUILD [BUILD=HOST]
  324. --host=HOST configure for HOST [guessed]
  325. --target=TARGET configure for TARGET [TARGET=HOST]
  326. Features and packages:
  327. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  328. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  329. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  330. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  331. --x-includes=DIR X include files are in DIR
  332. --x-libraries=DIR X library files are in DIR
  333. EOF
  334. if test -n "$ac_help"; then
  335. echo "--enable and --with options recognized:$ac_help"
  336. fi
  337. exit 0 ;;
  338. -host | --host | --hos | --ho)
  339. ac_prev=host ;;
  340. -host=* | --host=* | --hos=* | --ho=*)
  341. host="$ac_optarg" ;;
  342. -includedir | --includedir | --includedi | --included | --include \
  343. | --includ | --inclu | --incl | --inc)
  344. ac_prev=includedir ;;
  345. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  346. | --includ=* | --inclu=* | --incl=* | --inc=*)
  347. includedir="$ac_optarg" ;;
  348. -infodir | --infodir | --infodi | --infod | --info | --inf)
  349. ac_prev=infodir ;;
  350. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  351. infodir="$ac_optarg" ;;
  352. -libdir | --libdir | --libdi | --libd)
  353. ac_prev=libdir ;;
  354. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  355. libdir="$ac_optarg" ;;
  356. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  357. | --libexe | --libex | --libe)
  358. ac_prev=libexecdir ;;
  359. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  360. | --libexe=* | --libex=* | --libe=*)
  361. libexecdir="$ac_optarg" ;;
  362. -localstatedir | --localstatedir | --localstatedi | --localstated \
  363. | --localstate | --localstat | --localsta | --localst \
  364. | --locals | --local | --loca | --loc | --lo)
  365. ac_prev=localstatedir ;;
  366. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  367. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  368. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  369. localstatedir="$ac_optarg" ;;
  370. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  371. ac_prev=mandir ;;
  372. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  373. mandir="$ac_optarg" ;;
  374. -nfp | --nfp | --nf)
  375. # Obsolete; use --without-fp.
  376. with_fp=no ;;
  377. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  378. | --no-cr | --no-c)
  379. no_create=yes ;;
  380. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  381. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  382. no_recursion=yes ;;
  383. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  384. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  385. | --oldin | --oldi | --old | --ol | --o)
  386. ac_prev=oldincludedir ;;
  387. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  388. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  389. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  390. oldincludedir="$ac_optarg" ;;
  391. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  392. ac_prev=prefix ;;
  393. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  394. prefix="$ac_optarg" ;;
  395. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  396. | --program-pre | --program-pr | --program-p)
  397. ac_prev=program_prefix ;;
  398. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  399. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  400. program_prefix="$ac_optarg" ;;
  401. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  402. | --program-suf | --program-su | --program-s)
  403. ac_prev=program_suffix ;;
  404. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  405. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  406. program_suffix="$ac_optarg" ;;
  407. -program-transform-name | --program-transform-name \
  408. | --program-transform-nam | --program-transform-na \
  409. | --program-transform-n | --program-transform- \
  410. | --program-transform | --program-transfor \
  411. | --program-transfo | --program-transf \
  412. | --program-trans | --program-tran \
  413. | --progr-tra | --program-tr | --program-t)
  414. ac_prev=program_transform_name ;;
  415. -program-transform-name=* | --program-transform-name=* \
  416. | --program-transform-nam=* | --program-transform-na=* \
  417. | --program-transform-n=* | --program-transform-=* \
  418. | --program-transform=* | --program-transfor=* \
  419. | --program-transfo=* | --program-transf=* \
  420. | --program-trans=* | --program-tran=* \
  421. | --progr-tra=* | --program-tr=* | --program-t=*)
  422. program_transform_name="$ac_optarg" ;;
  423. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  424. | -silent | --silent | --silen | --sile | --sil)
  425. silent=yes ;;
  426. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  427. ac_prev=sbindir ;;
  428. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  429. | --sbi=* | --sb=*)
  430. sbindir="$ac_optarg" ;;
  431. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  432. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  433. | --sharedst | --shareds | --shared | --share | --shar \
  434. | --sha | --sh)
  435. ac_prev=sharedstatedir ;;
  436. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  437. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  438. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  439. | --sha=* | --sh=*)
  440. sharedstatedir="$ac_optarg" ;;
  441. -site | --site | --sit)
  442. ac_prev=site ;;
  443. -site=* | --site=* | --sit=*)
  444. site="$ac_optarg" ;;
  445. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  446. ac_prev=srcdir ;;
  447. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  448. srcdir="$ac_optarg" ;;
  449. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  450. | --syscon | --sysco | --sysc | --sys | --sy)
  451. ac_prev=sysconfdir ;;
  452. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  453. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  454. sysconfdir="$ac_optarg" ;;
  455. -target | --target | --targe | --targ | --tar | --ta | --t)
  456. ac_prev=target ;;
  457. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  458. target="$ac_optarg" ;;
  459. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  460. verbose=yes ;;
  461. -version | --version | --versio | --versi | --vers)
  462. echo "configure generated by autoconf version 2.13"
  463. exit 0 ;;
  464. -with-* | --with-*)
  465. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  466. # Reject names that are not valid shell variable names.
  467. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  468. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  469. fi
  470. ac_package=`echo $ac_package| sed 's/-/_/g'`
  471. case "$ac_option" in
  472. *=*) ;;
  473. *) ac_optarg=yes ;;
  474. esac
  475. eval "with_${ac_package}='$ac_optarg'" ;;
  476. -without-* | --without-*)
  477. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  478. # Reject names that are not valid shell variable names.
  479. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  480. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  481. fi
  482. ac_package=`echo $ac_package| sed 's/-/_/g'`
  483. eval "with_${ac_package}=no" ;;
  484. --x)
  485. # Obsolete; use --with-x.
  486. with_x=yes ;;
  487. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  488. | --x-incl | --x-inc | --x-in | --x-i)
  489. ac_prev=x_includes ;;
  490. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  491. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  492. x_includes="$ac_optarg" ;;
  493. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  494. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  495. ac_prev=x_libraries ;;
  496. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  497. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  498. x_libraries="$ac_optarg" ;;
  499. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  500. ;;
  501. *)
  502. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  503. echo "configure: warning: $ac_option: invalid host type" 1>&2
  504. fi
  505. if test "x$nonopt" != xNONE; then
  506. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  507. fi
  508. nonopt="$ac_option"
  509. ;;
  510. esac
  511. done
  512. if test -n "$ac_prev"; then
  513. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  514. fi
  515. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  516. # File descriptor usage:
  517. # 0 standard input
  518. # 1 file creation
  519. # 2 errors and warnings
  520. # 3 some systems may open it to /dev/tty
  521. # 4 used on the Kubota Titan
  522. # 6 checking for... messages and results
  523. # 5 compiler messages saved in config.log
  524. if test "$silent" = yes; then
  525. exec 6>/dev/null
  526. else
  527. exec 6>&1
  528. fi
  529. exec 5>./config.log
  530. echo "\
  531. This file contains any messages produced by compilers while
  532. running configure, to aid debugging if configure makes a mistake.
  533. " 1>&5
  534. # Strip out --no-create and --no-recursion so they do not pile up.
  535. # Also quote any args containing shell metacharacters.
  536. ac_configure_args=
  537. for ac_arg
  538. do
  539. case "$ac_arg" in
  540. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  541. | --no-cr | --no-c) ;;
  542. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  543. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  544. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  545. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  546. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  547. esac
  548. done
  549. # NLS nuisances.
  550. # Only set these to C if already set. These must not be set unconditionally
  551. # because not all systems understand e.g. LANG=C (notably SCO).
  552. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  553. # Non-C LC_CTYPE values break the ctype check.
  554. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  555. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  556. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  557. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  558. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  559. rm -rf conftest* confdefs.h
  560. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  561. echo > confdefs.h
  562. # A filename unique to this package, relative to the directory that
  563. # configure is in, which we can look for to find out if srcdir is correct.
  564. ac_unique_file=libspeex/speex.h
  565. # Find the source files, if location was not specified.
  566. if test -z "$srcdir"; then
  567. ac_srcdir_defaulted=yes
  568. # Try the directory containing this script, then its parent.
  569. ac_prog=$0
  570. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  571. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  572. srcdir=$ac_confdir
  573. if test ! -r $srcdir/$ac_unique_file; then
  574. srcdir=..
  575. fi
  576. else
  577. ac_srcdir_defaulted=no
  578. fi
  579. if test ! -r $srcdir/$ac_unique_file; then
  580. if test "$ac_srcdir_defaulted" = yes; then
  581. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  582. else
  583. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  584. fi
  585. fi
  586. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  587. # Prefer explicitly selected file to automatically selected ones.
  588. if test -z "$CONFIG_SITE"; then
  589. if test "x$prefix" != xNONE; then
  590. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  591. else
  592. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  593. fi
  594. fi
  595. for ac_site_file in $CONFIG_SITE; do
  596. if test -r "$ac_site_file"; then
  597. echo "loading site script $ac_site_file"
  598. . "$ac_site_file"
  599. fi
  600. done
  601. if test -r "$cache_file"; then
  602. echo "loading cache $cache_file"
  603. . $cache_file
  604. else
  605. echo "creating cache $cache_file"
  606. > $cache_file
  607. fi
  608. ac_ext=c
  609. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  610. ac_cpp='$CPP $CPPFLAGS'
  611. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  612. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  613. cross_compiling=$ac_cv_prog_cc_cross
  614. ac_exeext=
  615. ac_objext=o
  616. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  617. # Stardent Vistra SVR4 grep lacks -e, says [email protected].
  618. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  619. ac_n= ac_c='
  620. ' ac_t=' '
  621. else
  622. ac_n=-n ac_c= ac_t=
  623. fi
  624. else
  625. ac_n= ac_c='\c' ac_t=
  626. fi
  627. SPEEX_MAJOR_VERSION=1
  628. SPEEX_MINOR_VERSION=0
  629. SPEEX_MICRO_VERSION=1
  630. SPEEX_VERSION=1.0.1
  631. SPEEX_LT_CURRENT=2
  632. SPEEX_LT_REVISION=0
  633. SPEEX_LT_AGE=1
  634. # For automake.
  635. VERSION=$SPEEX_VERSION
  636. PACKAGE=speex
  637. ac_aux_dir=
  638. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  639. if test -f $ac_dir/install-sh; then
  640. ac_aux_dir=$ac_dir
  641. ac_install_sh="$ac_aux_dir/install-sh -c"
  642. break
  643. elif test -f $ac_dir/install.sh; then
  644. ac_aux_dir=$ac_dir
  645. ac_install_sh="$ac_aux_dir/install.sh -c"
  646. break
  647. fi
  648. done
  649. if test -z "$ac_aux_dir"; then
  650. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  651. fi
  652. ac_config_guess=$ac_aux_dir/config.guess
  653. ac_config_sub=$ac_aux_dir/config.sub
  654. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  655. am__api_version="1.4"
  656. # Find a good install program. We prefer a C program (faster),
  657. # so one script is as good as another. But avoid the broken or
  658. # incompatible versions:
  659. # SysV /etc/install, /usr/sbin/install
  660. # SunOS /usr/etc/install
  661. # IRIX /sbin/install
  662. # AIX /bin/install
  663. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  664. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  665. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  666. # ./install, which can be erroneously created by make from ./install.sh.
  667. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  668. echo "configure:760: checking for a BSD compatible install" >&5
  669. if test -z "$INSTALL"; then
  670. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  671. echo $ac_n "(cached) $ac_c" 1>&6
  672. else
  673. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  674. for ac_dir in $PATH; do
  675. # Account for people who put trailing slashes in PATH elements.
  676. case "$ac_dir/" in
  677. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  678. *)
  679. # OSF1 and SCO ODT 3.0 have their own names for install.
  680. # Don't use installbsd from OSF since it installs stuff as root
  681. # by default.
  682. for ac_prog in ginstall scoinst install; do
  683. if test -f $ac_dir/$ac_prog; then
  684. if test $ac_prog = install &&
  685. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  686. # AIX install. It has an incompatible calling convention.
  687. :
  688. else
  689. ac_cv_path_install="$ac_dir/$ac_prog -c"
  690. break 2
  691. fi
  692. fi
  693. done
  694. ;;
  695. esac
  696. done
  697. IFS="$ac_save_IFS"
  698. fi
  699. if test "${ac_cv_path_install+set}" = set; then
  700. INSTALL="$ac_cv_path_install"
  701. else
  702. # As a last resort, use the slow shell script. We don't cache a
  703. # path for INSTALL within a source directory, because that will
  704. # break other packages using the cache if that directory is
  705. # removed, or if the path is relative.
  706. INSTALL="$ac_install_sh"
  707. fi
  708. fi
  709. echo "$ac_t""$INSTALL" 1>&6
  710. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  711. # It thinks the first close brace ends the variable substitution.
  712. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  713. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  714. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  715. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  716. echo "configure:813: checking whether build environment is sane" >&5
  717. # Just in case
  718. sleep 1
  719. echo timestamp > conftestfile
  720. # Do `set' in a subshell so we don't clobber the current shell's
  721. # arguments. Must try -L first in case configure is actually a
  722. # symlink; some systems play weird games with the mod time of symlinks
  723. # (eg FreeBSD returns the mod time of the symlink's containing
  724. # directory).
  725. if (
  726. set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  727. if test "$*" = "X"; then
  728. # -L didn't work.
  729. set X `ls -t $srcdir/configure conftestfile`
  730. fi
  731. if test "$*" != "X $srcdir/configure conftestfile" \
  732. && test "$*" != "X conftestfile $srcdir/configure"; then
  733. # If neither matched, then we have a broken ls. This can happen
  734. # if, for instance, CONFIG_SHELL is bash and it inherits a
  735. # broken ls alias from the environment. This has actually
  736. # happened. Such a system could not be considered "sane".
  737. { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  738. alias in your environment" 1>&2; exit 1; }
  739. fi
  740. test "$2" = conftestfile
  741. )
  742. then
  743. # Ok.
  744. :
  745. else
  746. { echo "configure: error: newly created file is older than distributed files!
  747. Check your system clock" 1>&2; exit 1; }
  748. fi
  749. rm -f conftest*
  750. echo "$ac_t""yes" 1>&6
  751. if test "$program_transform_name" = s,x,x,; then
  752. program_transform_name=
  753. else
  754. # Double any \ or $. echo might interpret backslashes.
  755. cat <<\EOF_SED > conftestsed
  756. s,\\,\\\\,g; s,\$,$$,g
  757. EOF_SED
  758. program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  759. rm -f conftestsed
  760. fi
  761. test "$program_prefix" != NONE &&
  762. program_transform_name="s,^,${program_prefix},; $program_transform_name"
  763. # Use a double $ so make ignores it.
  764. test "$program_suffix" != NONE &&
  765. program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  766. # sed with no file args requires a program.
  767. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  768. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  769. echo "configure:870: checking whether ${MAKE-make} sets \${MAKE}" >&5
  770. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  771. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  772. echo $ac_n "(cached) $ac_c" 1>&6
  773. else
  774. cat > conftestmake <<\EOF
  775. all:
  776. @echo 'ac_maketemp="${MAKE}"'
  777. EOF
  778. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  779. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  780. if test -n "$ac_maketemp"; then
  781. eval ac_cv_prog_make_${ac_make}_set=yes
  782. else
  783. eval ac_cv_prog_make_${ac_make}_set=no
  784. fi
  785. rm -f conftestmake
  786. fi
  787. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  788. echo "$ac_t""yes" 1>&6
  789. SET_MAKE=
  790. else
  791. echo "$ac_t""no" 1>&6
  792. SET_MAKE="MAKE=${MAKE-make}"
  793. fi
  794. PACKAGE=$PACKAGE
  795. VERSION=$VERSION
  796. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  797. { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  798. fi
  799. missing_dir=`cd $ac_aux_dir && pwd`
  800. echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
  801. echo "configure:909: checking for working aclocal-${am__api_version}" >&5
  802. # Run test in a subshell; some versions of sh will print an error if
  803. # an executable is not found, even if stderr is redirected.
  804. # Redirect stdin to placate older versions of autoconf. Sigh.
  805. if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  806. ACLOCAL=aclocal-${am__api_version}
  807. echo "$ac_t""found" 1>&6
  808. else
  809. ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
  810. echo "$ac_t""missing" 1>&6
  811. fi
  812. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  813. echo "configure:922: checking for working autoconf" >&5
  814. # Run test in a subshell; some versions of sh will print an error if
  815. # an executable is not found, even if stderr is redirected.
  816. # Redirect stdin to placate older versions of autoconf. Sigh.
  817. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  818. AUTOCONF=autoconf
  819. echo "$ac_t""found" 1>&6
  820. else
  821. AUTOCONF="$missing_dir/missing autoconf"
  822. echo "$ac_t""missing" 1>&6
  823. fi
  824. echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
  825. echo "configure:935: checking for working automake-${am__api_version}" >&5
  826. # Run test in a subshell; some versions of sh will print an error if
  827. # an executable is not found, even if stderr is redirected.
  828. # Redirect stdin to placate older versions of autoconf. Sigh.
  829. if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  830. AUTOMAKE=automake-${am__api_version}
  831. echo "$ac_t""found" 1>&6
  832. else
  833. AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
  834. echo "$ac_t""missing" 1>&6
  835. fi
  836. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  837. echo "configure:948: checking for working autoheader" >&5
  838. # Run test in a subshell; some versions of sh will print an error if
  839. # an executable is not found, even if stderr is redirected.
  840. # Redirect stdin to placate older versions of autoconf. Sigh.
  841. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  842. AUTOHEADER=autoheader
  843. echo "$ac_t""found" 1>&6
  844. else
  845. AUTOHEADER="$missing_dir/missing autoheader"
  846. echo "$ac_t""missing" 1>&6
  847. fi
  848. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  849. echo "configure:961: checking for working makeinfo" >&5
  850. # Run test in a subshell; some versions of sh will print an error if
  851. # an executable is not found, even if stderr is redirected.
  852. # Redirect stdin to placate older versions of autoconf. Sigh.
  853. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  854. MAKEINFO=makeinfo
  855. echo "$ac_t""found" 1>&6
  856. else
  857. MAKEINFO="$missing_dir/missing makeinfo"
  858. echo "$ac_t""missing" 1>&6
  859. fi
  860. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  861. echo "configure:975: checking whether to enable maintainer-specific portions of Makefiles" >&5
  862. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  863. if test "${enable_maintainer_mode+set}" = set; then
  864. enableval="$enable_maintainer_mode"
  865. USE_MAINTAINER_MODE=$enableval
  866. else
  867. USE_MAINTAINER_MODE=no
  868. fi
  869. echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  870. if test $USE_MAINTAINER_MODE = yes; then
  871. MAINTAINER_MODE_TRUE=
  872. MAINTAINER_MODE_FALSE='#'
  873. else
  874. MAINTAINER_MODE_TRUE='#'
  875. MAINTAINER_MODE_FALSE=
  876. fi
  877. MAINT=$MAINTAINER_MODE_TRUE
  878. # Make sure we can run config.sub.
  879. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  880. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  881. fi
  882. echo $ac_n "checking host system type""... $ac_c" 1>&6
  883. echo "configure:1005: checking host system type" >&5
  884. host_alias=$host
  885. case "$host_alias" in
  886. NONE)
  887. case $nonopt in
  888. NONE)
  889. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  890. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  891. fi ;;
  892. *) host_alias=$nonopt ;;
  893. esac ;;
  894. esac
  895. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  896. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  897. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  898. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  899. echo "$ac_t""$host" 1>&6
  900. # Find the correct PATH separator. Usually this is `:', but
  901. # DJGPP uses `;' like DOS.
  902. if test "X${PATH_SEPARATOR+set}" != Xset; then
  903. UNAME=${UNAME-`uname 2>/dev/null`}
  904. case X$UNAME in
  905. *-DOS) lt_cv_sys_path_separator=';' ;;
  906. *) lt_cv_sys_path_separator=':' ;;
  907. esac
  908. PATH_SEPARATOR=$lt_cv_sys_path_separator
  909. fi
  910. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  911. echo "configure:1037: checking for Cygwin environment" >&5
  912. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  913. echo $ac_n "(cached) $ac_c" 1>&6
  914. else
  915. cat > conftest.$ac_ext <<EOF
  916. #line 1042 "configure"
  917. #include "confdefs.h"
  918. int main() {
  919. #ifndef __CYGWIN__
  920. #define __CYGWIN__ __CYGWIN32__
  921. #endif
  922. return __CYGWIN__;
  923. ; return 0; }
  924. EOF
  925. if { (eval echo configure:1053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  926. rm -rf conftest*
  927. ac_cv_cygwin=yes
  928. else
  929. echo "configure: failed program was:" >&5
  930. cat conftest.$ac_ext >&5
  931. rm -rf conftest*
  932. ac_cv_cygwin=no
  933. fi
  934. rm -f conftest*
  935. rm -f conftest*
  936. fi
  937. echo "$ac_t""$ac_cv_cygwin" 1>&6
  938. CYGWIN=
  939. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  940. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  941. echo "configure:1070: checking for mingw32 environment" >&5
  942. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  943. echo $ac_n "(cached) $ac_c" 1>&6
  944. else
  945. cat > conftest.$ac_ext <<EOF
  946. #line 1075 "configure"
  947. #include "confdefs.h"
  948. int main() {
  949. return __MINGW32__;
  950. ; return 0; }
  951. EOF
  952. if { (eval echo configure:1082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  953. rm -rf conftest*
  954. ac_cv_mingw32=yes
  955. else
  956. echo "configure: failed program was:" >&5
  957. cat conftest.$ac_ext >&5
  958. rm -rf conftest*
  959. ac_cv_mingw32=no
  960. fi
  961. rm -f conftest*
  962. rm -f conftest*
  963. fi
  964. echo "$ac_t""$ac_cv_mingw32" 1>&6
  965. MINGW32=
  966. test "$ac_cv_mingw32" = yes && MINGW32=yes
  967. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  968. echo "configure:1099: checking how to run the C preprocessor" >&5
  969. # On Suns, sometimes $CPP names a directory.
  970. if test -n "$CPP" && test -d "$CPP"; then
  971. CPP=
  972. fi
  973. if test -z "$CPP"; then
  974. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  975. echo $ac_n "(cached) $ac_c" 1>&6
  976. else
  977. # This must be in double quotes, not single quotes, because CPP may get
  978. # substituted into the Makefile and "${CC-cc}" will confuse make.
  979. CPP="${CC-cc} -E"
  980. # On the NeXT, cc -E runs the code through the compiler's parser,
  981. # not just through cpp.
  982. cat > conftest.$ac_ext <<EOF
  983. #line 1114 "configure"
  984. #include "confdefs.h"
  985. #include <assert.h>
  986. Syntax Error
  987. EOF
  988. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  989. { (eval echo configure:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  990. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  991. if test -z "$ac_err"; then
  992. :
  993. else
  994. echo "$ac_err" >&5
  995. echo "configure: failed program was:" >&5
  996. cat conftest.$ac_ext >&5
  997. rm -rf conftest*
  998. CPP="${CC-cc} -E -traditional-cpp"
  999. cat > conftest.$ac_ext <<EOF
  1000. #line 1131 "configure"
  1001. #include "confdefs.h"
  1002. #include <assert.h>
  1003. Syntax Error
  1004. EOF
  1005. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1006. { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1007. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1008. if test -z "$ac_err"; then
  1009. :
  1010. else
  1011. echo "$ac_err" >&5
  1012. echo "configure: failed program was:" >&5
  1013. cat conftest.$ac_ext >&5
  1014. rm -rf conftest*
  1015. CPP="${CC-cc} -nologo -E"
  1016. cat > conftest.$ac_ext <<EOF
  1017. #line 1148 "configure"
  1018. #include "confdefs.h"
  1019. #include <assert.h>
  1020. Syntax Error
  1021. EOF
  1022. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1023. { (eval echo configure:1154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1024. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1025. if test -z "$ac_err"; then
  1026. :
  1027. else
  1028. echo "$ac_err" >&5
  1029. echo "configure: failed program was:" >&5
  1030. cat conftest.$ac_ext >&5
  1031. rm -rf conftest*
  1032. CPP=/lib/cpp
  1033. fi
  1034. rm -f conftest*
  1035. fi
  1036. rm -f conftest*
  1037. fi
  1038. rm -f conftest*
  1039. ac_cv_prog_CPP="$CPP"
  1040. fi
  1041. CPP="$ac_cv_prog_CPP"
  1042. else
  1043. ac_cv_prog_CPP="$CPP"
  1044. fi
  1045. echo "$ac_t""$CPP" 1>&6
  1046. # Check whether --enable-shared or --disable-shared was given.
  1047. if test "${enable_shared+set}" = set; then
  1048. enableval="$enable_shared"
  1049. p=${PACKAGE-default}
  1050. case $enableval in
  1051. yes) enable_shared=yes ;;
  1052. no) enable_shared=no ;;
  1053. *)
  1054. enable_shared=no
  1055. # Look at the argument we got. We use all the common list separators.
  1056. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1057. for pkg in $enableval; do
  1058. if test "X$pkg" = "X$p"; then
  1059. enable_shared=yes
  1060. fi
  1061. done
  1062. IFS="$ac_save_ifs"
  1063. ;;
  1064. esac
  1065. else
  1066. enable_shared=yes
  1067. fi
  1068. # Check whether --enable-static or --disable-static was given.
  1069. if test "${enable_static+set}" = set; then
  1070. enableval="$enable_static"
  1071. p=${PACKAGE-default}
  1072. case $enableval in
  1073. yes) enable_static=yes ;;
  1074. no) enable_static=no ;;
  1075. *)
  1076. enable_static=no
  1077. # Look at the argument we got. We use all the common list separators.
  1078. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1079. for pkg in $enableval; do
  1080. if test "X$pkg" = "X$p"; then
  1081. enable_static=yes
  1082. fi
  1083. done
  1084. IFS="$ac_save_ifs"
  1085. ;;
  1086. esac
  1087. else
  1088. enable_static=yes
  1089. fi
  1090. # Check whether --enable-fast-install or --disable-fast-install was given.
  1091. if test "${enable_fast_install+set}" = set; then
  1092. enableval="$enable_fast_install"
  1093. p=${PACKAGE-default}
  1094. case $enableval in
  1095. yes) enable_fast_install=yes ;;
  1096. no) enable_fast_install=no ;;
  1097. *)
  1098. enable_fast_install=no
  1099. # Look at the argument we got. We use all the common list separators.
  1100. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1101. for pkg in $enableval; do
  1102. if test "X$pkg" = "X$p"; then
  1103. enable_fast_install=yes
  1104. fi
  1105. done
  1106. IFS="$ac_save_ifs"
  1107. ;;
  1108. esac
  1109. else
  1110. enable_fast_install=yes
  1111. fi
  1112. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1113. echo "configure:1248: checking build system type" >&5
  1114. build_alias=$build
  1115. case "$build_alias" in
  1116. NONE)
  1117. case $nonopt in
  1118. NONE) build_alias=$host_alias ;;
  1119. *) build_alias=$nonopt ;;
  1120. esac ;;
  1121. esac
  1122. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  1123. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1124. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1125. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1126. echo "$ac_t""$build" 1>&6
  1127. # Extract the first word of "gcc", so it can be a program name with args.
  1128. set dummy gcc; ac_word=$2
  1129. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1130. echo "configure:1268: checking for $ac_word" >&5
  1131. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1132. echo $ac_n "(cached) $ac_c" 1>&6
  1133. else
  1134. if test -n "$CC"; then
  1135. ac_cv_prog_CC="$CC" # Let the user override the test.
  1136. else
  1137. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1138. ac_dummy="$PATH"
  1139. for ac_dir in $ac_dummy; do
  1140. test -z "$ac_dir" && ac_dir=.
  1141. if test -f $ac_dir/$ac_word; then
  1142. ac_cv_prog_CC="gcc"
  1143. break
  1144. fi
  1145. done
  1146. IFS="$ac_save_ifs"
  1147. fi
  1148. fi
  1149. CC="$ac_cv_prog_CC"
  1150. if test -n "$CC"; then
  1151. echo "$ac_t""$CC" 1>&6
  1152. else
  1153. echo "$ac_t""no" 1>&6
  1154. fi
  1155. if test -z "$CC"; then
  1156. # Extract the first word of "cc", so it can be a program name with args.
  1157. set dummy cc; ac_word=$2
  1158. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1159. echo "configure:1298: checking for $ac_word" >&5
  1160. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1161. echo $ac_n "(cached) $ac_c" 1>&6
  1162. else
  1163. if test -n "$CC"; then
  1164. ac_cv_prog_CC="$CC" # Let the user override the test.
  1165. else
  1166. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1167. ac_prog_rejected=no
  1168. ac_dummy="$PATH"
  1169. for ac_dir in $ac_dummy; do
  1170. test -z "$ac_dir" && ac_dir=.
  1171. if test -f $ac_dir/$ac_word; then
  1172. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1173. ac_prog_rejected=yes
  1174. continue
  1175. fi
  1176. ac_cv_prog_CC="cc"
  1177. break
  1178. fi
  1179. done
  1180. IFS="$ac_save_ifs"
  1181. if test $ac_prog_rejected = yes; then
  1182. # We found a bogon in the path, so make sure we never use it.
  1183. set dummy $ac_cv_prog_CC
  1184. shift
  1185. if test $# -gt 0; then
  1186. # We chose a different compiler from the bogus one.
  1187. # However, it has the same basename, so the bogon will be chosen
  1188. # first if we set CC to just the basename; use the full file name.
  1189. shift
  1190. set dummy "$ac_dir/$ac_word" "$@"
  1191. shift
  1192. ac_cv_prog_CC="$@"
  1193. fi
  1194. fi
  1195. fi
  1196. fi
  1197. CC="$ac_cv_prog_CC"
  1198. if test -n "$CC"; then
  1199. echo "$ac_t""$CC" 1>&6
  1200. else
  1201. echo "$ac_t""no" 1>&6
  1202. fi
  1203. if test -z "$CC"; then
  1204. case "`uname -s`" in
  1205. *win32* | *WIN32*)
  1206. # Extract the first word of "cl", so it can be a program name with args.
  1207. set dummy cl; ac_word=$2
  1208. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1209. echo "configure:1349: checking for $ac_word" >&5
  1210. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1211. echo $ac_n "(cached) $ac_c" 1>&6
  1212. else
  1213. if test -n "$CC"; then
  1214. ac_cv_prog_CC="$CC" # Let the user override the test.
  1215. else
  1216. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1217. ac_dummy="$PATH"
  1218. for ac_dir in $ac_dummy; do
  1219. test -z "$ac_dir" && ac_dir=.
  1220. if test -f $ac_dir/$ac_word; then
  1221. ac_cv_prog_CC="cl"
  1222. break
  1223. fi
  1224. done
  1225. IFS="$ac_save_ifs"
  1226. fi
  1227. fi
  1228. CC="$ac_cv_prog_CC"
  1229. if test -n "$CC"; then
  1230. echo "$ac_t""$CC" 1>&6
  1231. else
  1232. echo "$ac_t""no" 1>&6
  1233. fi
  1234. ;;
  1235. esac
  1236. fi
  1237. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1238. fi
  1239. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1240. echo "configure:1381: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1241. ac_ext=c
  1242. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1243. ac_cpp='$CPP $CPPFLAGS'
  1244. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1245. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1246. cross_compiling=$ac_cv_prog_cc_cross
  1247. cat > conftest.$ac_ext << EOF
  1248. #line 1392 "configure"
  1249. #include "confdefs.h"
  1250. main(){return(0);}
  1251. EOF
  1252. if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1253. ac_cv_prog_cc_works=yes
  1254. # If we can't run a trivial program, we are probably using a cross compiler.
  1255. if (./conftest; exit) 2>/dev/null; then
  1256. ac_cv_prog_cc_cross=no
  1257. else
  1258. ac_cv_prog_cc_cross=yes
  1259. fi
  1260. else
  1261. echo "configure: failed program was:" >&5
  1262. cat conftest.$ac_ext >&5
  1263. ac_cv_prog_cc_works=no
  1264. fi
  1265. rm -fr conftest*
  1266. ac_ext=c
  1267. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1268. ac_cpp='$CPP $CPPFLAGS'
  1269. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1270. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1271. cross_compiling=$ac_cv_prog_cc_cross
  1272. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1273. if test $ac_cv_prog_cc_works = no; then
  1274. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1275. fi
  1276. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1277. echo "configure:1423: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1278. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1279. cross_compiling=$ac_cv_prog_cc_cross
  1280. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1281. echo "configure:1428: checking whether we are using GNU C" >&5
  1282. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1283. echo $ac_n "(cached) $ac_c" 1>&6
  1284. else
  1285. cat > conftest.c <<EOF
  1286. #ifdef __GNUC__
  1287. yes;
  1288. #endif
  1289. EOF
  1290. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1291. ac_cv_prog_gcc=yes
  1292. else
  1293. ac_cv_prog_gcc=no
  1294. fi
  1295. fi
  1296. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1297. if test $ac_cv_prog_gcc = yes; then
  1298. GCC=yes
  1299. else
  1300. GCC=
  1301. fi
  1302. ac_test_CFLAGS="${CFLAGS+set}"
  1303. ac_save_CFLAGS="$CFLAGS"
  1304. CFLAGS=
  1305. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1306. echo "configure:1456: checking whether ${CC-cc} accepts -g" >&5
  1307. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1308. echo $ac_n "(cached) $ac_c" 1>&6
  1309. else
  1310. echo 'void f(){}' > conftest.c
  1311. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1312. ac_cv_prog_cc_g=yes
  1313. else
  1314. ac_cv_prog_cc_g=no
  1315. fi
  1316. rm -f conftest*
  1317. fi
  1318. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1319. if test "$ac_test_CFLAGS" = set; then
  1320. CFLAGS="$ac_save_CFLAGS"
  1321. elif test $ac_cv_prog_cc_g = yes; then
  1322. if test "$GCC" = yes; then
  1323. CFLAGS="-g -O2"
  1324. else
  1325. CFLAGS="-g"
  1326. fi
  1327. else
  1328. if test "$GCC" = yes; then
  1329. CFLAGS="-O2"
  1330. else
  1331. CFLAGS=
  1332. fi
  1333. fi
  1334. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1335. if test "${with_gnu_ld+set}" = set; then
  1336. withval="$with_gnu_ld"
  1337. test "$withval" = no || with_gnu_ld=yes
  1338. else
  1339. with_gnu_ld=no
  1340. fi
  1341. ac_prog=ld
  1342. if test "$GCC" = yes; then
  1343. # Check if gcc -print-prog-name=ld gives a path.
  1344. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1345. echo "configure:1499: checking for ld used by GCC" >&5
  1346. case $host in
  1347. *-*-mingw*)
  1348. # gcc leaves a trailing carriage return which upsets mingw
  1349. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1350. *)
  1351. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1352. esac
  1353. case $ac_prog in
  1354. # Accept absolute paths.
  1355. [\\/]* | [A-Za-z]:[\\/]*)
  1356. re_direlt='/[^/][^/]*/\.\./'
  1357. # Canonicalize the path of ld
  1358. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1359. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1360. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1361. done
  1362. test -z "$LD" && LD="$ac_prog"
  1363. ;;
  1364. "")
  1365. # If it fails, then pretend we aren't using GCC.
  1366. ac_prog=ld
  1367. ;;
  1368. *)
  1369. # If it is relative, then search for the first ld in PATH.
  1370. with_gnu_ld=unknown
  1371. ;;
  1372. esac
  1373. elif test "$with_gnu_ld" = yes; then
  1374. echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1375. echo "configure:1529: checking for GNU ld" >&5
  1376. else
  1377. echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1378. echo "configure:1532: checking for non-GNU ld" >&5
  1379. fi
  1380. if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
  1381. echo $ac_n "(cached) $ac_c" 1>&6
  1382. else
  1383. if test -z "$LD"; then
  1384. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1385. for ac_dir in $PATH; do
  1386. test -z "$ac_dir" && ac_dir=.
  1387. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1388. lt_cv_path_LD="$ac_dir/$ac_prog"
  1389. # Check to see if the program is GNU ld. I'd rather use --version,
  1390. # but apparently some GNU ld's only accept -v.
  1391. # Break only if it was the GNU/non-GNU ld that we prefer.
  1392. if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1393. test "$with_gnu_ld" != no && break
  1394. else
  1395. test "$with_gnu_ld" != yes && break
  1396. fi
  1397. fi
  1398. done
  1399. IFS="$ac_save_ifs"
  1400. else
  1401. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  1402. fi
  1403. fi
  1404. LD="$lt_cv_path_LD"
  1405. if test -n "$LD"; then
  1406. echo "$ac_t""$LD" 1>&6
  1407. else
  1408. echo "$ac_t""no" 1>&6
  1409. fi
  1410. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1411. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1412. echo "configure:1567: checking if the linker ($LD) is GNU ld" >&5
  1413. if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
  1414. echo $ac_n "(cached) $ac_c" 1>&6
  1415. else
  1416. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1417. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1418. lt_cv_prog_gnu_ld=yes
  1419. else
  1420. lt_cv_prog_gnu_ld=no
  1421. fi
  1422. fi
  1423. echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
  1424. with_gnu_ld=$lt_cv_prog_gnu_ld
  1425. echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
  1426. echo "configure:1584: checking for $LD option to reload object files" >&5
  1427. if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
  1428. echo $ac_n "(cached) $ac_c" 1>&6
  1429. else
  1430. lt_cv_ld_reload_flag='-r'
  1431. fi
  1432. echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
  1433. reload_flag=$lt_cv_ld_reload_flag
  1434. test -n "$reload_flag" && reload_flag=" $reload_flag"
  1435. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1436. echo "configure:1596: checking for BSD-compatible nm" >&5
  1437. if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
  1438. echo $ac_n "(cached) $ac_c" 1>&6
  1439. else
  1440. if test -n "$NM"; then
  1441. # Let the user override the test.
  1442. lt_cv_path_NM="$NM"
  1443. else
  1444. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1445. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1446. test -z "$ac_dir" && ac_dir=.
  1447. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  1448. if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  1449. # Check to see if the nm accepts a BSD-compat flag.
  1450. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1451. # nm: unknown option "B" ignored
  1452. # Tru64's nm complains that /dev/null is an invalid object file
  1453. if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  1454. lt_cv_path_NM="$tmp_nm -B"
  1455. break
  1456. elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1457. lt_cv_path_NM="$tmp_nm -p"
  1458. break
  1459. else
  1460. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  1461. continue # so that we can try to find one that supports BSD flags
  1462. fi
  1463. fi
  1464. done
  1465. IFS="$ac_save_ifs"
  1466. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  1467. fi
  1468. fi
  1469. NM="$lt_cv_path_NM"
  1470. echo "$ac_t""$NM" 1>&6
  1471. echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
  1472. echo "configure:1634: checking for a sed that does not truncate output" >&5
  1473. if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then
  1474. echo $ac_n "(cached) $ac_c" 1>&6
  1475. else
  1476. # Loop through the user's path and test for sed and gsed.
  1477. # Then use that list of sed's as ones to test for truncation.
  1478. as_executable_p="test -f"
  1479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1480. for as_dir in $PATH
  1481. do
  1482. IFS=$as_save_IFS
  1483. test -z "$as_dir" && as_dir=.
  1484. for ac_prog in sed gsed; do
  1485. for ac_exec_ext in '' $ac_executable_extensions; do
  1486. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1487. _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  1488. fi
  1489. done
  1490. done
  1491. done
  1492. # Create a temporary directory, and hook for its removal unless debugging.
  1493. $debug ||
  1494. {
  1495. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  1496. trap '{ (exit 1); exit 1; }' 1 2 13 15
  1497. }
  1498. # Create a (secure) tmp directory for tmp files.
  1499. : ${TMPDIR=/tmp}
  1500. {
  1501. tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  1502. test -n "$tmp" && test -d "$tmp"
  1503. } ||
  1504. {
  1505. tmp=$TMPDIR/sed$$-$RANDOM
  1506. (umask 077 && mkdir $tmp)
  1507. } ||
  1508. {
  1509. echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  1510. { (exit 1); exit 1; }
  1511. }
  1512. _max=0
  1513. _count=0
  1514. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  1515. # along with /bin/sed that truncates output.
  1516. for _sed in $_sed_list /usr/xpg4/bin/sed; do
  1517. test ! -f ${_sed} && break
  1518. cat /dev/null > "$tmp/sed.in"
  1519. _count=0
  1520. echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  1521. # Check for GNU sed and select it if it is found.
  1522. if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  1523. lt_cv_path_SED=${_sed}
  1524. break
  1525. fi
  1526. while true; do
  1527. cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  1528. mv "$tmp/sed.tmp" "$tmp/sed.in"
  1529. cp "$tmp/sed.in" "$tmp/sed.nl"
  1530. echo >>"$tmp/sed.nl"
  1531. ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  1532. cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  1533. # 40000 chars as input seems more than enough
  1534. test $_count -gt 10 && break
  1535. _count=`expr $_count + 1`
  1536. if test $_count -gt $_max; then
  1537. _max=$_count
  1538. lt_cv_path_SED=$_sed
  1539. fi
  1540. done
  1541. done
  1542. rm -rf "$tmp"
  1543. fi
  1544. if test "X$SED" != "X"; then
  1545. lt_cv_path_SED=$SED
  1546. else
  1547. SED=$lt_cv_path_SED
  1548. fi
  1549. echo "$ac_t""$SED" 1>&6
  1550. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1551. echo "configure:1718: checking whether ln -s works" >&5
  1552. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1553. echo $ac_n "(cached) $ac_c" 1>&6
  1554. else
  1555. rm -f conftestdata
  1556. if ln -s X conftestdata 2>/dev/null
  1557. then
  1558. rm -f conftestdata
  1559. ac_cv_prog_LN_S="ln -s"
  1560. else
  1561. ac_cv_prog_LN_S=ln
  1562. fi
  1563. fi
  1564. LN_S="$ac_cv_prog_LN_S"
  1565. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1566. echo "$ac_t""yes" 1>&6
  1567. else
  1568. echo "$ac_t""no" 1>&6
  1569. fi
  1570. echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
  1571. echo "configure:1739: checking how to recognise dependent libraries" >&5
  1572. if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
  1573. echo $ac_n "(cached) $ac_c" 1>&6
  1574. else
  1575. lt_cv_file_magic_cmd='$MAGIC_CMD'
  1576. lt_cv_file_magic_test_file=
  1577. lt_cv_deplibs_check_method='unknown'
  1578. # Need to set the preceding variable on all platforms that support
  1579. # interlibrary dependencies.
  1580. # 'none' -- dependencies not supported.
  1581. # `unknown' -- same as none, but documents that we really don't know.
  1582. # 'pass_all' -- all dependencies passed with no checks.
  1583. # 'test_compile' -- check by making test program.
  1584. # 'file_magic [[regex]]' -- check by looking for files in library path
  1585. # which responds to the $file_magic_cmd with a given egrep regex.
  1586. # If you have `file' or equivalent on your system and you're not sure
  1587. # whether `pass_all' will *always* work, you probably want this one.
  1588. case $host_os in
  1589. aix4* | aix5*)
  1590. lt_cv_deplibs_check_method=pass_all
  1591. ;;
  1592. beos*)
  1593. lt_cv_deplibs_check_method=pass_all
  1594. ;;
  1595. bsdi4*)
  1596. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  1597. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1598. lt_cv_file_magic_test_file=/shlib/libc.so
  1599. ;;
  1600. cygwin* | mingw* | pw32*)
  1601. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1602. lt_cv_file_magic_cmd='$OBJDUMP -f'
  1603. ;;
  1604. darwin* | rhapsody*)
  1605. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  1606. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1607. case "$host_os" in
  1608. rhapsody* | darwin1.[012])
  1609. lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  1610. ;;
  1611. *) # Darwin 1.3 on
  1612. lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  1613. ;;
  1614. esac
  1615. ;;
  1616. freebsd*)
  1617. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1618. case $host_cpu in
  1619. i*86 )
  1620. # Not sure whether the presence of OpenBSD here was a mistake.
  1621. # Let's accept both of them until this is cleared up.
  1622. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  1623. lt_cv_file_magic_cmd=/usr/bin/file
  1624. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1625. ;;
  1626. esac
  1627. else
  1628. lt_cv_deplibs_check_method=pass_all
  1629. fi
  1630. ;;
  1631. gnu*)
  1632. lt_cv_deplibs_check_method=pass_all
  1633. ;;
  1634. hpux10.20*|hpux11*)
  1635. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  1636. lt_cv_file_magic_cmd=/usr/bin/file
  1637. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1638. ;;
  1639. irix5* | irix6* | nonstopux*)
  1640. case $host_os in
  1641. irix5* | nonstopux*)
  1642. # this will be overridden with pass_all, but let us keep it just in case
  1643. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  1644. ;;
  1645. *)
  1646. case $LD in
  1647. *-32|*"-32 ") libmagic=32-bit;;
  1648. *-n32|*"-n32 ") libmagic=N32;;
  1649. *-64|*"-64 ") libmagic=64-bit;;
  1650. *) libmagic=never-match;;
  1651. esac
  1652. # this will be overridden with pass_all, but let us keep it just in case
  1653. lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  1654. ;;
  1655. esac
  1656. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  1657. lt_cv_deplibs_check_method=pass_all
  1658. ;;
  1659. # This must be Linux ELF.
  1660. linux-gnu*)
  1661. case $host_cpu in
  1662. alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*)
  1663. lt_cv_deplibs_check_method=pass_all ;;
  1664. *)
  1665. # glibc up to 2.1.1 does not perform some relocations on ARM
  1666. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  1667. esac
  1668. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  1669. ;;
  1670. netbsd*)
  1671. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1672. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  1673. else
  1674. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  1675. fi
  1676. ;;
  1677. newos6*)
  1678. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  1679. lt_cv_file_magic_cmd=/usr/bin/file
  1680. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  1681. ;;
  1682. openbsd*)
  1683. lt_cv_file_magic_cmd=/usr/bin/file
  1684. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1685. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1686. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  1687. else
  1688. lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  1689. fi
  1690. ;;
  1691. osf3* | osf4* | osf5*)
  1692. # this will be overridden with pass_all, but let us keep it just in case
  1693. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  1694. lt_cv_file_magic_test_file=/shlib/libc.so
  1695. lt_cv_deplibs_check_method=pass_all
  1696. ;;
  1697. sco3.2v5*)
  1698. lt_cv_deplibs_check_method=pass_all
  1699. ;;
  1700. solaris*)
  1701. lt_cv_deplibs_check_method=pass_all
  1702. lt_cv_file_magic_test_file=/lib/libc.so
  1703. ;;
  1704. sysv5uw[78]* | sysv4*uw2*)
  1705. lt_cv_deplibs_check_method=pass_all
  1706. ;;
  1707. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1708. case $host_vendor in
  1709. motorola)
  1710. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  1711. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  1712. ;;
  1713. ncr)
  1714. lt_cv_deplibs_check_method=pass_all
  1715. ;;
  1716. sequent)
  1717. lt_cv_file_magic_cmd='/bin/file'
  1718. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  1719. ;;
  1720. sni)
  1721. lt_cv_file_magic_cmd='/bin/file'
  1722. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  1723. lt_cv_file_magic_test_file=/lib/libc.so
  1724. ;;
  1725. siemens)
  1726. lt_cv_deplibs_check_method=pass_all
  1727. ;;
  1728. esac
  1729. ;;
  1730. esac
  1731. fi
  1732. echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
  1733. file_magic_cmd=$lt_cv_file_magic_cmd
  1734. deplibs_check_method=$lt_cv_deplibs_check_method
  1735. echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  1736. echo "configure:1925: checking for object suffix" >&5
  1737. if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  1738. echo $ac_n "(cached) $ac_c" 1>&6
  1739. else
  1740. rm -f conftest*
  1741. echo 'int i = 1;' > conftest.$ac_ext
  1742. if { (eval echo configure:1931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1743. for ac_file in conftest.*; do
  1744. case $ac_file in
  1745. *.c) ;;
  1746. *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  1747. esac
  1748. done
  1749. else
  1750. { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
  1751. fi
  1752. rm -f conftest*
  1753. fi
  1754. echo "$ac_t""$ac_cv_objext" 1>&6
  1755. OBJEXT=$ac_cv_objext
  1756. ac_objext=$ac_cv_objext
  1757. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  1758. echo "configure:1951: checking for executable suffix" >&5
  1759. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  1760. echo $ac_n "(cached) $ac_c" 1>&6
  1761. else
  1762. if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  1763. ac_cv_exeext=.exe
  1764. else
  1765. rm -f conftest*
  1766. echo 'int main () { return 0; }' > conftest.$ac_ext
  1767. ac_cv_exeext=
  1768. if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1769. for file in conftest.*; do
  1770. case $file in
  1771. *.c | *.o | *.obj) ;;
  1772. *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  1773. esac
  1774. done
  1775. else
  1776. { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  1777. fi
  1778. rm -f conftest*
  1779. test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  1780. fi
  1781. fi
  1782. EXEEXT=""
  1783. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  1784. echo "$ac_t""${ac_cv_exeext}" 1>&6
  1785. ac_exeext=$EXEEXT
  1786. if test $host != $build; then
  1787. ac_tool_prefix=${host_alias}-
  1788. else
  1789. ac_tool_prefix=
  1790. fi
  1791. # Check for command to grab the raw symbol name followed by C symbol from nm.
  1792. echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
  1793. echo "configure:1992: checking command to parse $NM output" >&5
  1794. if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
  1795. echo $ac_n "(cached) $ac_c" 1>&6
  1796. else
  1797. # These are sane defaults that work on at least a few old systems.
  1798. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  1799. # Character class describing NM global symbol codes.
  1800. symcode='[BCDEGRST]'
  1801. # Regexp to match symbols that can be accessed directly from C.
  1802. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  1803. # Transform the above into a raw symbol and a C symbol.
  1804. symxfrm='\1 \2\3 \3'
  1805. # Transform an extracted symbol line into a proper C declaration
  1806. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  1807. # Transform an extracted symbol line into symbol name and symbol address
  1808. lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  1809. # Define system-specific variables.
  1810. case $host_os in
  1811. aix*)
  1812. symcode='[BCDT]'
  1813. ;;
  1814. cygwin* | mingw* | pw32*)
  1815. symcode='[ABCDGISTW]'
  1816. ;;
  1817. hpux*) # Its linker distinguishes data from code symbols
  1818. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1819. lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  1820. ;;
  1821. irix* | nonstopux*)
  1822. symcode='[BCDEGRST]'
  1823. ;;
  1824. osf*)
  1825. symcode='[BCDEGQRST]'
  1826. ;;
  1827. solaris* | sysv5*)
  1828. symcode='[BDT]'
  1829. ;;
  1830. sysv4)
  1831. symcode='[DFNSTU]'
  1832. ;;
  1833. esac
  1834. # Handle CRLF in mingw tool chain
  1835. opt_cr=
  1836. case $host_os in
  1837. mingw*)
  1838. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  1839. ;;
  1840. esac
  1841. # If we're using GNU nm, then use its standard symbol codes.
  1842. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  1843. symcode='[ABCDGISTW]'
  1844. fi
  1845. # Try without a prefix undercore, then with it.
  1846. for ac_symprfx in "" "_"; do
  1847. # Write the raw and C identifiers.
  1848. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  1849. # Check to see that the pipe works correctly.
  1850. pipe_works=no
  1851. rm -f conftest*
  1852. cat > conftest.$ac_ext <<EOF
  1853. #ifdef __cplusplus
  1854. extern "C" {
  1855. #endif
  1856. char nm_test_var;
  1857. void nm_test_func(){}
  1858. #ifdef __cplusplus
  1859. }
  1860. #endif
  1861. int main(){nm_test_var='a';nm_test_func();return(0);}
  1862. EOF
  1863. if { (eval echo configure:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1864. # Now try to grab the symbols.
  1865. nlist=conftest.nm
  1866. if { (eval echo configure:2078: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
  1867. # Try sorting and uniquifying the output.
  1868. if sort "$nlist" | uniq > "$nlist"T; then
  1869. mv -f "$nlist"T "$nlist"
  1870. else
  1871. rm -f "$nlist"T
  1872. fi
  1873. # Make sure that we snagged all the symbols we need.
  1874. if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  1875. if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  1876. cat <<EOF > conftest.$ac_ext
  1877. #ifdef __cplusplus
  1878. extern "C" {
  1879. #endif
  1880. EOF
  1881. # Now generate the symbol file.
  1882. eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  1883. cat <<EOF >> conftest.$ac_ext
  1884. #if defined (__STDC__) && __STDC__
  1885. # define lt_ptr void *
  1886. #else
  1887. # define lt_ptr char *
  1888. # define const
  1889. #endif
  1890. /* The mapping between symbol names and symbols. */
  1891. const struct {
  1892. const char *name;
  1893. lt_ptr address;
  1894. }
  1895. lt_preloaded_symbols[] =
  1896. {
  1897. EOF
  1898. sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  1899. cat <<\EOF >> conftest.$ac_ext
  1900. {0, (lt_ptr) 0}
  1901. };
  1902. #ifdef __cplusplus
  1903. }
  1904. #endif
  1905. EOF
  1906. # Now try linking the two files.
  1907. mv conftest.$ac_objext conftstm.$ac_objext
  1908. save_LIBS="$LIBS"
  1909. save_CFLAGS="$CFLAGS"
  1910. LIBS="conftstm.$ac_objext"
  1911. CFLAGS="$CFLAGS$no_builtin_flag"
  1912. if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
  1913. pipe_works=yes
  1914. fi
  1915. LIBS="$save_LIBS"
  1916. CFLAGS="$save_CFLAGS"
  1917. else
  1918. echo "cannot find nm_test_func in $nlist" >&5
  1919. fi
  1920. else
  1921. echo "cannot find nm_test_var in $nlist" >&5
  1922. fi
  1923. else
  1924. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  1925. fi
  1926. else
  1927. echo "$progname: failed program was:" >&5
  1928. cat conftest.$ac_ext >&5
  1929. fi
  1930. rm -f conftest* conftst*
  1931. # Do not use the global_symbol_pipe unless it works.
  1932. if test "$pipe_works" = yes; then
  1933. break
  1934. else
  1935. lt_cv_sys_global_symbol_pipe=
  1936. fi
  1937. done
  1938. fi
  1939. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  1940. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  1941. global_symbol_to_cdecl=
  1942. global_symbol_to_c_name_address=
  1943. else
  1944. global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  1945. global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  1946. fi
  1947. if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  1948. then
  1949. echo "$ac_t""failed" 1>&6
  1950. else
  1951. echo "$ac_t""ok" 1>&6
  1952. fi
  1953. for ac_hdr in dlfcn.h
  1954. do
  1955. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1956. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1957. echo "configure:2178: checking for $ac_hdr" >&5
  1958. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1959. echo $ac_n "(cached) $ac_c" 1>&6
  1960. else
  1961. cat > conftest.$ac_ext <<EOF
  1962. #line 2183 "configure"
  1963. #include "confdefs.h"
  1964. #include <$ac_hdr>
  1965. EOF
  1966. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1967. { (eval echo configure:2188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1968. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1969. if test -z "$ac_err"; then
  1970. rm -rf conftest*
  1971. eval "ac_cv_header_$ac_safe=yes"
  1972. else
  1973. echo "$ac_err" >&5
  1974. echo "configure: failed program was:" >&5
  1975. cat conftest.$ac_ext >&5
  1976. rm -rf conftest*
  1977. eval "ac_cv_header_$ac_safe=no"
  1978. fi
  1979. rm -f conftest*
  1980. fi
  1981. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1982. echo "$ac_t""yes" 1>&6
  1983. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1984. cat >> confdefs.h <<EOF
  1985. #define $ac_tr_hdr 1
  1986. EOF
  1987. else
  1988. echo "$ac_t""no" 1>&6
  1989. fi
  1990. done
  1991. # Only perform the check for file, if the check method requires it
  1992. case $deplibs_check_method in
  1993. file_magic*)
  1994. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  1995. echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
  1996. echo "configure:2224: checking for ${ac_tool_prefix}file" >&5
  1997. if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  1998. echo $ac_n "(cached) $ac_c" 1>&6
  1999. else
  2000. case $MAGIC_CMD in
  2001. /*)
  2002. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2003. ;;
  2004. ?:/*)
  2005. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  2006. ;;
  2007. *)
  2008. ac_save_MAGIC_CMD="$MAGIC_CMD"
  2009. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2010. ac_dummy="/usr/bin:$PATH"
  2011. for ac_dir in $ac_dummy; do
  2012. test -z "$ac_dir" && ac_dir=.
  2013. if test -f $ac_dir/${ac_tool_prefix}file; then
  2014. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  2015. if test -n "$file_magic_test_file"; then
  2016. case $deplibs_check_method in
  2017. "file_magic "*)
  2018. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  2019. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2020. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2021. egrep "$file_magic_regex" > /dev/null; then
  2022. :
  2023. else
  2024. cat <<EOF 1>&2
  2025. *** Warning: the command libtool uses to detect shared libraries,
  2026. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2027. *** The result is that libtool may fail to recognize shared libraries
  2028. *** as such. This will affect the creation of libtool libraries that
  2029. *** depend on shared libraries, but programs linked with such libtool
  2030. *** libraries will work regardless of this problem. Nevertheless, you
  2031. *** may want to report the problem to your system manager and/or to
  2032. *** [email protected]
  2033. EOF
  2034. fi ;;
  2035. esac
  2036. fi
  2037. break
  2038. fi
  2039. done
  2040. IFS="$ac_save_ifs"
  2041. MAGIC_CMD="$ac_save_MAGIC_CMD"
  2042. ;;
  2043. esac
  2044. fi
  2045. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2046. if test -n "$MAGIC_CMD"; then
  2047. echo "$ac_t""$MAGIC_CMD" 1>&6
  2048. else
  2049. echo "$ac_t""no" 1>&6
  2050. fi
  2051. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2052. if test -n "$ac_tool_prefix"; then
  2053. echo $ac_n "checking for file""... $ac_c" 1>&6
  2054. echo "configure:2286: checking for file" >&5
  2055. if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  2056. echo $ac_n "(cached) $ac_c" 1>&6
  2057. else
  2058. case $MAGIC_CMD in
  2059. /*)
  2060. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2061. ;;
  2062. ?:/*)
  2063. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  2064. ;;
  2065. *)
  2066. ac_save_MAGIC_CMD="$MAGIC_CMD"
  2067. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2068. ac_dummy="/usr/bin:$PATH"
  2069. for ac_dir in $ac_dummy; do
  2070. test -z "$ac_dir" && ac_dir=.
  2071. if test -f $ac_dir/file; then
  2072. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  2073. if test -n "$file_magic_test_file"; then
  2074. case $deplibs_check_method in
  2075. "file_magic "*)
  2076. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  2077. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2078. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2079. egrep "$file_magic_regex" > /dev/null; then
  2080. :
  2081. else
  2082. cat <<EOF 1>&2
  2083. *** Warning: the command libtool uses to detect shared libraries,
  2084. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2085. *** The result is that libtool may fail to recognize shared libraries
  2086. *** as such. This will affect the creation of libtool libraries that
  2087. *** depend on shared libraries, but programs linked with such libtool
  2088. *** libraries will work regardless of this problem. Nevertheless, you
  2089. *** may want to report the problem to your system manager and/or to
  2090. *** [email protected]
  2091. EOF
  2092. fi ;;
  2093. esac
  2094. fi
  2095. break
  2096. fi
  2097. done
  2098. IFS="$ac_save_ifs"
  2099. MAGIC_CMD="$ac_save_MAGIC_CMD"
  2100. ;;
  2101. esac
  2102. fi
  2103. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2104. if test -n "$MAGIC_CMD"; then
  2105. echo "$ac_t""$MAGIC_CMD" 1>&6
  2106. else
  2107. echo "$ac_t""no" 1>&6
  2108. fi
  2109. else
  2110. MAGIC_CMD=:
  2111. fi
  2112. fi
  2113. fi
  2114. ;;
  2115. esac
  2116. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2117. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2118. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2119. echo "configure:2357: checking for $ac_word" >&5
  2120. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2121. echo $ac_n "(cached) $ac_c" 1>&6
  2122. else
  2123. if test -n "$RANLIB"; then
  2124. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2125. else
  2126. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2127. ac_dummy="$PATH"
  2128. for ac_dir in $ac_dummy; do
  2129. test -z "$ac_dir" && ac_dir=.
  2130. if test -f $ac_dir/$ac_word; then
  2131. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2132. break
  2133. fi
  2134. done
  2135. IFS="$ac_save_ifs"
  2136. fi
  2137. fi
  2138. RANLIB="$ac_cv_prog_RANLIB"
  2139. if test -n "$RANLIB"; then
  2140. echo "$ac_t""$RANLIB" 1>&6
  2141. else
  2142. echo "$ac_t""no" 1>&6
  2143. fi
  2144. if test -z "$ac_cv_prog_RANLIB"; then
  2145. if test -n "$ac_tool_prefix"; then
  2146. # Extract the first word of "ranlib", so it can be a program name with args.
  2147. set dummy ranlib; ac_word=$2
  2148. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2149. echo "configure:2389: checking for $ac_word" >&5
  2150. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2151. echo $ac_n "(cached) $ac_c" 1>&6
  2152. else
  2153. if test -n "$RANLIB"; then
  2154. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2155. else
  2156. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2157. ac_dummy="$PATH"
  2158. for ac_dir in $ac_dummy; do
  2159. test -z "$ac_dir" && ac_dir=.
  2160. if test -f $ac_dir/$ac_word; then
  2161. ac_cv_prog_RANLIB="ranlib"
  2162. break
  2163. fi
  2164. done
  2165. IFS="$ac_save_ifs"
  2166. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2167. fi
  2168. fi
  2169. RANLIB="$ac_cv_prog_RANLIB"
  2170. if test -n "$RANLIB"; then
  2171. echo "$ac_t""$RANLIB" 1>&6
  2172. else
  2173. echo "$ac_t""no" 1>&6
  2174. fi
  2175. else
  2176. RANLIB=":"
  2177. fi
  2178. fi
  2179. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2180. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2181. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2182. echo "configure:2424: checking for $ac_word" >&5
  2183. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2184. echo $ac_n "(cached) $ac_c" 1>&6
  2185. else
  2186. if test -n "$STRIP"; then
  2187. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2188. else
  2189. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2190. ac_dummy="$PATH"
  2191. for ac_dir in $ac_dummy; do
  2192. test -z "$ac_dir" && ac_dir=.
  2193. if test -f $ac_dir/$ac_word; then
  2194. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2195. break
  2196. fi
  2197. done
  2198. IFS="$ac_save_ifs"
  2199. fi
  2200. fi
  2201. STRIP="$ac_cv_prog_STRIP"
  2202. if test -n "$STRIP"; then
  2203. echo "$ac_t""$STRIP" 1>&6
  2204. else
  2205. echo "$ac_t""no" 1>&6
  2206. fi
  2207. if test -z "$ac_cv_prog_STRIP"; then
  2208. if test -n "$ac_tool_prefix"; then
  2209. # Extract the first word of "strip", so it can be a program name with args.
  2210. set dummy strip; ac_word=$2
  2211. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2212. echo "configure:2456: checking for $ac_word" >&5
  2213. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2214. echo $ac_n "(cached) $ac_c" 1>&6
  2215. else
  2216. if test -n "$STRIP"; then
  2217. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2218. else
  2219. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2220. ac_dummy="$PATH"
  2221. for ac_dir in $ac_dummy; do
  2222. test -z "$ac_dir" && ac_dir=.
  2223. if test -f $ac_dir/$ac_word; then
  2224. ac_cv_prog_STRIP="strip"
  2225. break
  2226. fi
  2227. done
  2228. IFS="$ac_save_ifs"
  2229. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
  2230. fi
  2231. fi
  2232. STRIP="$ac_cv_prog_STRIP"
  2233. if test -n "$STRIP"; then
  2234. echo "$ac_t""$STRIP" 1>&6
  2235. else
  2236. echo "$ac_t""no" 1>&6
  2237. fi
  2238. else
  2239. STRIP=":"
  2240. fi
  2241. fi
  2242. enable_dlopen=no
  2243. enable_win32_dll=no
  2244. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  2245. if test "${enable_libtool_lock+set}" = set; then
  2246. enableval="$enable_libtool_lock"
  2247. :
  2248. fi
  2249. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2250. # Some flags need to be propagated to the compiler or linker for good
  2251. # libtool support.
  2252. case $host in
  2253. *-*-irix6*)
  2254. # Find out which ABI we are using.
  2255. echo '#line 2505 "configure"' > conftest.$ac_ext
  2256. if { (eval echo configure:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2257. case `/usr/bin/file conftest.$ac_objext` in
  2258. *32-bit*)
  2259. LD="${LD-ld} -32"
  2260. ;;
  2261. *N32*)
  2262. LD="${LD-ld} -n32"
  2263. ;;
  2264. *64-bit*)
  2265. LD="${LD-ld} -64"
  2266. ;;
  2267. esac
  2268. fi
  2269. rm -rf conftest*
  2270. ;;
  2271. *-*-linux*)
  2272. # Test if the compiler is 64bit
  2273. echo 'int i;' > conftest.$ac_ext
  2274. lt_cv_cc_64bit_output=no
  2275. if { (eval echo configure:2526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2276. case `/usr/bin/file conftest.$ac_objext` in
  2277. *"ELF 64"*)
  2278. lt_cv_cc_64bit_output=yes
  2279. ;;
  2280. esac
  2281. fi
  2282. rm -rf conftest*
  2283. ;;
  2284. *-*-sco3.2v5*)
  2285. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2286. SAVE_CFLAGS="$CFLAGS"
  2287. CFLAGS="$CFLAGS -belf"
  2288. echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  2289. echo "configure:2541: checking whether the C compiler needs -belf" >&5
  2290. if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  2291. echo $ac_n "(cached) $ac_c" 1>&6
  2292. else
  2293. ac_ext=c
  2294. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2295. ac_cpp='$CPP $CPPFLAGS'
  2296. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2297. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2298. cross_compiling=$ac_cv_prog_cc_cross
  2299. cat > conftest.$ac_ext <<EOF
  2300. #line 2554 "configure"
  2301. #include "confdefs.h"
  2302. int main() {
  2303. ; return 0; }
  2304. EOF
  2305. if { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2306. rm -rf conftest*
  2307. lt_cv_cc_needs_belf=yes
  2308. else
  2309. echo "configure: failed program was:" >&5
  2310. cat conftest.$ac_ext >&5
  2311. rm -rf conftest*
  2312. lt_cv_cc_needs_belf=no
  2313. fi
  2314. rm -f conftest*
  2315. ac_ext=c
  2316. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2317. ac_cpp='$CPP $CPPFLAGS'
  2318. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2319. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2320. cross_compiling=$ac_cv_prog_cc_cross
  2321. fi
  2322. echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  2323. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2324. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2325. CFLAGS="$SAVE_CFLAGS"
  2326. fi
  2327. ;;
  2328. esac
  2329. # Sed substitution that helps us do robust quoting. It backslashifies
  2330. # metacharacters that are still active within double-quoted strings.
  2331. Xsed='sed -e s/^X//'
  2332. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  2333. # Same as above, but do not quote variable references.
  2334. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  2335. # Sed substitution to delay expansion of an escaped shell variable in a
  2336. # double_quote_subst'ed string.
  2337. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2338. # Constants:
  2339. rm="rm -f"
  2340. # Global variables:
  2341. default_ofile=libtool
  2342. can_build_shared=yes
  2343. # All known linkers require a `.a' archive for static linking (except M$VC,
  2344. # which needs '.lib').
  2345. libext=a
  2346. ltmain="$ac_aux_dir/ltmain.sh"
  2347. ofile="$default_ofile"
  2348. with_gnu_ld="$lt_cv_prog_gnu_ld"
  2349. need_locks="$enable_libtool_lock"
  2350. old_CC="$CC"
  2351. old_CFLAGS="$CFLAGS"
  2352. # Set sane defaults for various variables
  2353. test -z "$AR" && AR=ar
  2354. test -z "$AR_FLAGS" && AR_FLAGS=cru
  2355. test -z "$AS" && AS=as
  2356. test -z "$CC" && CC=cc
  2357. test -z "$DLLTOOL" && DLLTOOL=dlltool
  2358. test -z "$LD" && LD=ld
  2359. test -z "$LN_S" && LN_S="ln -s"
  2360. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  2361. test -z "$NM" && NM=nm
  2362. test -z "$OBJDUMP" && OBJDUMP=objdump
  2363. test -z "$RANLIB" && RANLIB=:
  2364. test -z "$STRIP" && STRIP=:
  2365. test -z "$ac_objext" && ac_objext=o
  2366. if test x"$host" != x"$build"; then
  2367. ac_tool_prefix=${host_alias}-
  2368. else
  2369. ac_tool_prefix=
  2370. fi
  2371. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  2372. case $host_os in
  2373. linux-gnu*) ;;
  2374. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  2375. esac
  2376. case $host_os in
  2377. aix3*)
  2378. # AIX sometimes has problems with the GCC collect2 program. For some
  2379. # reason, if we set the COLLECT_NAMES environment variable, the problems
  2380. # vanish in a puff of smoke.
  2381. if test "X${COLLECT_NAMES+set}" != Xset; then
  2382. COLLECT_NAMES=
  2383. export COLLECT_NAMES
  2384. fi
  2385. ;;
  2386. esac
  2387. # Determine commands to create old-style static archives.
  2388. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  2389. old_postinstall_cmds='chmod 644 $oldlib'
  2390. old_postuninstall_cmds=
  2391. if test -n "$RANLIB"; then
  2392. case $host_os in
  2393. openbsd*)
  2394. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  2395. ;;
  2396. *)
  2397. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  2398. ;;
  2399. esac
  2400. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2401. fi
  2402. # Allow CC to be a program name with arguments.
  2403. set dummy $CC
  2404. compiler="$2"
  2405. echo $ac_n "checking for objdir""... $ac_c" 1>&6
  2406. echo "configure:2681: checking for objdir" >&5
  2407. rm -f .libs 2>/dev/null
  2408. mkdir .libs 2>/dev/null
  2409. if test -d .libs; then
  2410. objdir=.libs
  2411. else
  2412. # MS-DOS does not allow filenames that begin with a dot.
  2413. objdir=_libs
  2414. fi
  2415. rmdir .libs 2>/dev/null
  2416. echo "$ac_t""$objdir" 1>&6
  2417. # Check whether --with-pic or --without-pic was given.
  2418. if test "${with_pic+set}" = set; then
  2419. withval="$with_pic"
  2420. pic_mode="$withval"
  2421. else
  2422. pic_mode=default
  2423. fi
  2424. test -z "$pic_mode" && pic_mode=default
  2425. # We assume here that the value for lt_cv_prog_cc_pic will not be cached
  2426. # in isolation, and that seeing it set (from the cache) indicates that
  2427. # the associated values are set (in the cache) correctly too.
  2428. echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
  2429. echo "configure:2708: checking for $compiler option to produce PIC" >&5
  2430. if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
  2431. echo $ac_n "(cached) $ac_c" 1>&6
  2432. else
  2433. lt_cv_prog_cc_pic=
  2434. lt_cv_prog_cc_shlib=
  2435. lt_cv_prog_cc_wl=
  2436. lt_cv_prog_cc_static=
  2437. lt_cv_prog_cc_no_builtin=
  2438. lt_cv_prog_cc_can_build_shared=$can_build_shared
  2439. if test "$GCC" = yes; then
  2440. lt_cv_prog_cc_wl='-Wl,'
  2441. lt_cv_prog_cc_static='-static'
  2442. case $host_os in
  2443. aix*)
  2444. # Below there is a dirty hack to force normal static linking with -ldl
  2445. # The problem is because libdl dynamically linked with both libc and
  2446. # libC (AIX C++ library), which obviously doesn't included in libraries
  2447. # list by gcc. This cause undefined symbols with -static flags.
  2448. # This hack allows C programs to be linked with "-static -ldl", but
  2449. # not sure about C++ programs.
  2450. lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  2451. ;;
  2452. amigaos*)
  2453. # FIXME: we need at least 68020 code to build shared libraries, but
  2454. # adding the `-m68020' flag to GCC prevents building anything better,
  2455. # like `-m68040'.
  2456. lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  2457. ;;
  2458. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  2459. # PIC is the default for these OSes.
  2460. ;;
  2461. darwin* | rhapsody*)
  2462. # PIC is the default on this platform
  2463. # Common symbols not allowed in MH_DYLIB files
  2464. lt_cv_prog_cc_pic='-fno-common'
  2465. ;;
  2466. cygwin* | mingw* | pw32* | os2*)
  2467. # This hack is so that the source file can tell whether it is being
  2468. # built for inclusion in a dll (and should export symbols for example).
  2469. lt_cv_prog_cc_pic='-DDLL_EXPORT'
  2470. ;;
  2471. sysv4*MP*)
  2472. if test -d /usr/nec; then
  2473. lt_cv_prog_cc_pic=-Kconform_pic
  2474. fi
  2475. ;;
  2476. *)
  2477. lt_cv_prog_cc_pic='-fPIC'
  2478. ;;
  2479. esac
  2480. else
  2481. # PORTME Check for PIC flags for the system compiler.
  2482. case $host_os in
  2483. aix3* | aix4* | aix5*)
  2484. lt_cv_prog_cc_wl='-Wl,'
  2485. # All AIX code is PIC.
  2486. if test "$host_cpu" = ia64; then
  2487. # AIX 5 now supports IA64 processor
  2488. lt_cv_prog_cc_static='-Bstatic'
  2489. else
  2490. lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  2491. fi
  2492. ;;
  2493. hpux9* | hpux10* | hpux11*)
  2494. # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  2495. lt_cv_prog_cc_wl='-Wl,'
  2496. lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  2497. lt_cv_prog_cc_pic='+Z'
  2498. ;;
  2499. irix5* | irix6* | nonstopux*)
  2500. lt_cv_prog_cc_wl='-Wl,'
  2501. lt_cv_prog_cc_static='-non_shared'
  2502. # PIC (with -KPIC) is the default.
  2503. ;;
  2504. cygwin* | mingw* | pw32* | os2*)
  2505. # This hack is so that the source file can tell whether it is being
  2506. # built for inclusion in a dll (and should export symbols for example).
  2507. lt_cv_prog_cc_pic='-DDLL_EXPORT'
  2508. ;;
  2509. newsos6)
  2510. lt_cv_prog_cc_pic='-KPIC'
  2511. lt_cv_prog_cc_static='-Bstatic'
  2512. ;;
  2513. osf3* | osf4* | osf5*)
  2514. # All OSF/1 code is PIC.
  2515. lt_cv_prog_cc_wl='-Wl,'
  2516. lt_cv_prog_cc_static='-non_shared'
  2517. ;;
  2518. sco3.2v5*)
  2519. lt_cv_prog_cc_pic='-Kpic'
  2520. lt_cv_prog_cc_static='-dn'
  2521. lt_cv_prog_cc_shlib='-belf'
  2522. ;;
  2523. solaris*)
  2524. lt_cv_prog_cc_pic='-KPIC'
  2525. lt_cv_prog_cc_static='-Bstatic'
  2526. lt_cv_prog_cc_wl='-Wl,'
  2527. ;;
  2528. sunos4*)
  2529. lt_cv_prog_cc_pic='-PIC'
  2530. lt_cv_prog_cc_static='-Bstatic'
  2531. lt_cv_prog_cc_wl='-Qoption ld '
  2532. ;;
  2533. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2534. lt_cv_prog_cc_pic='-KPIC'
  2535. lt_cv_prog_cc_static='-Bstatic'
  2536. lt_cv_prog_cc_wl='-Wl,'
  2537. ;;
  2538. uts4*)
  2539. lt_cv_prog_cc_pic='-pic'
  2540. lt_cv_prog_cc_static='-Bstatic'
  2541. ;;
  2542. sysv4*MP*)
  2543. if test -d /usr/nec ;then
  2544. lt_cv_prog_cc_pic='-Kconform_pic'
  2545. lt_cv_prog_cc_static='-Bstatic'
  2546. fi
  2547. ;;
  2548. *)
  2549. lt_cv_prog_cc_can_build_shared=no
  2550. ;;
  2551. esac
  2552. fi
  2553. fi
  2554. if test -z "$lt_cv_prog_cc_pic"; then
  2555. echo "$ac_t""none" 1>&6
  2556. else
  2557. echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
  2558. # Check to make sure the pic_flag actually works.
  2559. echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
  2560. echo "configure:2856: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  2561. if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
  2562. echo $ac_n "(cached) $ac_c" 1>&6
  2563. else
  2564. save_CFLAGS="$CFLAGS"
  2565. CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  2566. cat > conftest.$ac_ext <<EOF
  2567. #line 2863 "configure"
  2568. #include "confdefs.h"
  2569. int main() {
  2570. ; return 0; }
  2571. EOF
  2572. if { (eval echo configure:2870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2573. rm -rf conftest*
  2574. case $host_os in
  2575. hpux9* | hpux10* | hpux11*)
  2576. # On HP-UX, both CC and GCC only warn that PIC is supported... then
  2577. # they create non-PIC objects. So, if there were any warnings, we
  2578. # assume that PIC is not supported.
  2579. if test -s conftest.err; then
  2580. lt_cv_prog_cc_pic_works=no
  2581. else
  2582. lt_cv_prog_cc_pic_works=yes
  2583. fi
  2584. ;;
  2585. *)
  2586. lt_cv_prog_cc_pic_works=yes
  2587. ;;
  2588. esac
  2589. else
  2590. echo "configure: failed program was:" >&5
  2591. cat conftest.$ac_ext >&5
  2592. rm -rf conftest*
  2593. lt_cv_prog_cc_pic_works=no
  2594. fi
  2595. rm -f conftest*
  2596. CFLAGS="$save_CFLAGS"
  2597. fi
  2598. if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  2599. lt_cv_prog_cc_pic=
  2600. lt_cv_prog_cc_can_build_shared=no
  2601. else
  2602. lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  2603. fi
  2604. echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
  2605. fi
  2606. # Check for any special shared library compilation flags.
  2607. if test -n "$lt_cv_prog_cc_shlib"; then
  2608. echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
  2609. if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  2610. else
  2611. echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
  2612. lt_cv_prog_cc_can_build_shared=no
  2613. fi
  2614. fi
  2615. echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
  2616. echo "configure:2922: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  2617. if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
  2618. echo $ac_n "(cached) $ac_c" 1>&6
  2619. else
  2620. lt_cv_prog_cc_static_works=no
  2621. save_LDFLAGS="$LDFLAGS"
  2622. LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  2623. cat > conftest.$ac_ext <<EOF
  2624. #line 2930 "configure"
  2625. #include "confdefs.h"
  2626. int main() {
  2627. ; return 0; }
  2628. EOF
  2629. if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2630. rm -rf conftest*
  2631. lt_cv_prog_cc_static_works=yes
  2632. else
  2633. echo "configure: failed program was:" >&5
  2634. cat conftest.$ac_ext >&5
  2635. fi
  2636. rm -f conftest*
  2637. LDFLAGS="$save_LDFLAGS"
  2638. fi
  2639. # Belt *and* braces to stop my trousers falling down:
  2640. test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  2641. echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
  2642. pic_flag="$lt_cv_prog_cc_pic"
  2643. special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  2644. wl="$lt_cv_prog_cc_wl"
  2645. link_static_flag="$lt_cv_prog_cc_static"
  2646. no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  2647. can_build_shared="$lt_cv_prog_cc_can_build_shared"
  2648. # Check to see if options -o and -c are simultaneously supported by compiler
  2649. echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
  2650. echo "configure:2964: checking if $compiler supports -c -o file.$ac_objext" >&5
  2651. if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
  2652. echo $ac_n "(cached) $ac_c" 1>&6
  2653. else
  2654. $rm -r conftest 2>/dev/null
  2655. mkdir conftest
  2656. cd conftest
  2657. echo "int some_variable = 0;" > conftest.$ac_ext
  2658. mkdir out
  2659. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  2660. # that will create temporary files in the current directory regardless of
  2661. # the output directory. Thus, making CWD read-only will cause this test
  2662. # to fail, enabling locking or at least warning the user not to do parallel
  2663. # builds.
  2664. chmod -w .
  2665. save_CFLAGS="$CFLAGS"
  2666. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  2667. compiler_c_o=no
  2668. if { (eval echo configure:2983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  2669. # The compiler can only warn and ignore the option if not recognized
  2670. # So say no if there are warnings
  2671. if test -s out/conftest.err; then
  2672. lt_cv_compiler_c_o=no
  2673. else
  2674. lt_cv_compiler_c_o=yes
  2675. fi
  2676. else
  2677. # Append any errors to the config.log.
  2678. cat out/conftest.err 1>&5
  2679. lt_cv_compiler_c_o=no
  2680. fi
  2681. CFLAGS="$save_CFLAGS"
  2682. chmod u+w .
  2683. $rm conftest* out/*
  2684. rmdir out
  2685. cd ..
  2686. rmdir conftest
  2687. $rm -r conftest 2>/dev/null
  2688. fi
  2689. compiler_c_o=$lt_cv_compiler_c_o
  2690. echo "$ac_t""$compiler_c_o" 1>&6
  2691. if test x"$compiler_c_o" = x"yes"; then
  2692. # Check to see if we can write to a .lo
  2693. echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
  2694. echo "configure:3012: checking if $compiler supports -c -o file.lo" >&5
  2695. if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
  2696. echo $ac_n "(cached) $ac_c" 1>&6
  2697. else
  2698. lt_cv_compiler_o_lo=no
  2699. save_CFLAGS="$CFLAGS"
  2700. CFLAGS="$CFLAGS -c -o conftest.lo"
  2701. save_objext="$ac_objext"
  2702. ac_objext=lo
  2703. cat > conftest.$ac_ext <<EOF
  2704. #line 3023 "configure"
  2705. #include "confdefs.h"
  2706. int main() {
  2707. int some_variable = 0;
  2708. ; return 0; }
  2709. EOF
  2710. if { (eval echo configure:3030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2711. rm -rf conftest*
  2712. # The compiler can only warn and ignore the option if not recognized
  2713. # So say no if there are warnings
  2714. if test -s conftest.err; then
  2715. lt_cv_compiler_o_lo=no
  2716. else
  2717. lt_cv_compiler_o_lo=yes
  2718. fi
  2719. else
  2720. echo "configure: failed program was:" >&5
  2721. cat conftest.$ac_ext >&5
  2722. fi
  2723. rm -f conftest*
  2724. ac_objext="$save_objext"
  2725. CFLAGS="$save_CFLAGS"
  2726. fi
  2727. compiler_o_lo=$lt_cv_compiler_o_lo
  2728. echo "$ac_t""$compiler_o_lo" 1>&6
  2729. else
  2730. compiler_o_lo=no
  2731. fi
  2732. # Check to see if we can do hard links to lock some files if needed
  2733. hard_links="nottested"
  2734. if test "$compiler_c_o" = no && test "$need_locks" != no; then
  2735. # do not overwrite the value of need_locks provided by the user
  2736. echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
  2737. echo "configure:3061: checking if we can lock with hard links" >&5
  2738. hard_links=yes
  2739. $rm conftest*
  2740. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2741. touch conftest.a
  2742. ln conftest.a conftest.b 2>&5 || hard_links=no
  2743. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2744. echo "$ac_t""$hard_links" 1>&6
  2745. if test "$hard_links" = no; then
  2746. echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
  2747. need_locks=warn
  2748. fi
  2749. else
  2750. need_locks=no
  2751. fi
  2752. if test "$GCC" = yes; then
  2753. # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  2754. echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
  2755. echo "configure:3080: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  2756. echo "int some_variable = 0;" > conftest.$ac_ext
  2757. save_CFLAGS="$CFLAGS"
  2758. CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  2759. compiler_rtti_exceptions=no
  2760. cat > conftest.$ac_ext <<EOF
  2761. #line 3086 "configure"
  2762. #include "confdefs.h"
  2763. int main() {
  2764. int some_variable = 0;
  2765. ; return 0; }
  2766. EOF
  2767. if { (eval echo configure:3093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2768. rm -rf conftest*
  2769. # The compiler can only warn and ignore the option if not recognized
  2770. # So say no if there are warnings
  2771. if test -s conftest.err; then
  2772. compiler_rtti_exceptions=no
  2773. else
  2774. compiler_rtti_exceptions=yes
  2775. fi
  2776. else
  2777. echo "configure: failed program was:" >&5
  2778. cat conftest.$ac_ext >&5
  2779. fi
  2780. rm -f conftest*
  2781. CFLAGS="$save_CFLAGS"
  2782. echo "$ac_t""$compiler_rtti_exceptions" 1>&6
  2783. if test "$compiler_rtti_exceptions" = "yes"; then
  2784. no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  2785. else
  2786. no_builtin_flag=' -fno-builtin'
  2787. fi
  2788. fi
  2789. # See if the linker supports building shared libraries.
  2790. echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
  2791. echo "configure:3120: checking whether the linker ($LD) supports shared libraries" >&5
  2792. allow_undefined_flag=
  2793. no_undefined_flag=
  2794. need_lib_prefix=unknown
  2795. need_version=unknown
  2796. # when you set need_version to no, make sure it does not cause -set_version
  2797. # flags to be left without arguments
  2798. archive_cmds=
  2799. archive_expsym_cmds=
  2800. old_archive_from_new_cmds=
  2801. old_archive_from_expsyms_cmds=
  2802. export_dynamic_flag_spec=
  2803. whole_archive_flag_spec=
  2804. thread_safe_flag_spec=
  2805. hardcode_into_libs=no
  2806. hardcode_libdir_flag_spec=
  2807. hardcode_libdir_separator=
  2808. hardcode_direct=no
  2809. hardcode_minus_L=no
  2810. hardcode_shlibpath_var=unsupported
  2811. runpath_var=
  2812. link_all_deplibs=unknown
  2813. always_export_symbols=no
  2814. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  2815. # include_expsyms should be a list of space-separated symbols to be *always*
  2816. # included in the symbol list
  2817. include_expsyms=
  2818. # exclude_expsyms can be an egrep regular expression of symbols to exclude
  2819. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  2820. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  2821. # as well as any symbol that contains `d'.
  2822. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  2823. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  2824. # platforms (ab)use it in PIC code, but their linkers get confused if
  2825. # the symbol is explicitly referenced. Since portable code cannot
  2826. # rely on this symbol name, it's probably fine to never include it in
  2827. # preloaded symbol tables.
  2828. extract_expsyms_cmds=
  2829. case $host_os in
  2830. cygwin* | mingw* | pw32*)
  2831. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  2832. # When not using gcc, we currently assume that we are using
  2833. # Microsoft Visual C++.
  2834. if test "$GCC" != yes; then
  2835. with_gnu_ld=no
  2836. fi
  2837. ;;
  2838. openbsd*)
  2839. with_gnu_ld=no
  2840. ;;
  2841. esac
  2842. ld_shlibs=yes
  2843. if test "$with_gnu_ld" = yes; then
  2844. # If archive_cmds runs LD, not CC, wlarc should be empty
  2845. wlarc='${wl}'
  2846. # See if GNU ld supports shared libraries.
  2847. case $host_os in
  2848. aix3* | aix4* | aix5*)
  2849. # On AIX, the GNU linker is very broken
  2850. # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  2851. ld_shlibs=no
  2852. cat <<EOF 1>&2
  2853. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  2854. *** to be unable to reliably create shared libraries on AIX.
  2855. *** Therefore, libtool is disabling shared libraries support. If you
  2856. *** really care for shared libraries, you may want to modify your PATH
  2857. *** so that a non-GNU linker is found, and then restart.
  2858. EOF
  2859. ;;
  2860. amigaos*)
  2861. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  2862. hardcode_libdir_flag_spec='-L$libdir'
  2863. hardcode_minus_L=yes
  2864. # Samuel A. Falvo II <[email protected]> reports
  2865. # that the semantics of dynamic libraries on AmigaOS, at least up
  2866. # to version 4, is to share data among multiple programs linked
  2867. # with the same dynamic library. Since this doesn't match the
  2868. # behavior of shared libraries on other platforms, we can use
  2869. # them.
  2870. ld_shlibs=no
  2871. ;;
  2872. beos*)
  2873. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  2874. allow_undefined_flag=unsupported
  2875. # Joseph Beckenbach <[email protected]> says some releases of gcc
  2876. # support --undefined. This deserves some investigation. FIXME
  2877. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2878. else
  2879. ld_shlibs=no
  2880. fi
  2881. ;;
  2882. cygwin* | mingw* | pw32*)
  2883. # hardcode_libdir_flag_spec is actually meaningless, as there is
  2884. # no search path for DLLs.
  2885. hardcode_libdir_flag_spec='-L$libdir'
  2886. allow_undefined_flag=unsupported
  2887. always_export_symbols=yes
  2888. extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  2889. sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  2890. test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  2891. if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  2892. else $CC -o impgen impgen.c ; fi)~
  2893. $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  2894. old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  2895. # cygwin and mingw dlls have different entry points and sets of symbols
  2896. # to exclude.
  2897. # FIXME: what about values for MSVC?
  2898. dll_entry=__cygwin_dll_entry@12
  2899. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  2900. case $host_os in
  2901. mingw*)
  2902. # mingw values
  2903. dll_entry=_DllMainCRTStartup@12
  2904. dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  2905. ;;
  2906. esac
  2907. # mingw and cygwin differ, and it's simplest to just exclude the union
  2908. # of the two symbol sets.
  2909. dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  2910. # recent cygwin and mingw systems supply a stub DllMain which the user
  2911. # can override, but on older systems we have to supply one (in ltdll.c)
  2912. if test "x$lt_cv_need_dllmain" = "xyes"; then
  2913. ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  2914. ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  2915. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  2916. else
  2917. ltdll_obj=
  2918. ltdll_cmds=
  2919. fi
  2920. # Extract the symbol export list from an `--export-all' def file,
  2921. # then regenerate the def file from the symbol export list, so that
  2922. # the compiled dll only exports the symbol export list.
  2923. # Be careful not to strip the DATA tag left be newer dlltools.
  2924. export_symbols_cmds="$ltdll_cmds"'
  2925. $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  2926. sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  2927. # If the export-symbols file already is a .def file (1st line
  2928. # is EXPORTS), use it as is.
  2929. # If DATA tags from a recent dlltool are present, honour them!
  2930. archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  2931. cp $export_symbols $output_objdir/$soname-def;
  2932. else
  2933. echo EXPORTS > $output_objdir/$soname-def;
  2934. _lt_hint=1;
  2935. cat $export_symbols | while read symbol; do
  2936. set dummy \$symbol;
  2937. case \$# in
  2938. 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  2939. 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  2940. *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  2941. esac;
  2942. _lt_hint=`expr 1 + \$_lt_hint`;
  2943. done;
  2944. fi~
  2945. '"$ltdll_cmds"'
  2946. $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  2947. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  2948. $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  2949. $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  2950. $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  2951. ;;
  2952. netbsd*)
  2953. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2954. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  2955. wlarc=
  2956. else
  2957. archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2958. archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  2959. fi
  2960. ;;
  2961. solaris* | sysv5*)
  2962. if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  2963. ld_shlibs=no
  2964. cat <<EOF 1>&2
  2965. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  2966. *** create shared libraries on Solaris systems. Therefore, libtool
  2967. *** is disabling shared libraries support. We urge you to upgrade GNU
  2968. *** binutils to release 2.9.1 or newer. Another option is to modify
  2969. *** your PATH or compiler configuration so that the native linker is
  2970. *** used, and then restart.
  2971. EOF
  2972. elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  2973. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2974. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  2975. else
  2976. ld_shlibs=no
  2977. fi
  2978. ;;
  2979. sunos4*)
  2980. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  2981. wlarc=
  2982. hardcode_direct=yes
  2983. hardcode_shlibpath_var=no
  2984. ;;
  2985. *)
  2986. if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  2987. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2988. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  2989. else
  2990. ld_shlibs=no
  2991. fi
  2992. ;;
  2993. esac
  2994. if test "$ld_shlibs" = yes; then
  2995. runpath_var=LD_RUN_PATH
  2996. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  2997. export_dynamic_flag_spec='${wl}--export-dynamic'
  2998. case $host_os in
  2999. cygwin* | mingw* | pw32*)
  3000. # dlltool doesn't understand --whole-archive et. al.
  3001. whole_archive_flag_spec=
  3002. ;;
  3003. *)
  3004. # ancient GNU ld didn't support --whole-archive et. al.
  3005. if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  3006. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3007. else
  3008. whole_archive_flag_spec=
  3009. fi
  3010. ;;
  3011. esac
  3012. fi
  3013. else
  3014. # PORTME fill in a description of your system's linker (not GNU ld)
  3015. case $host_os in
  3016. aix3*)
  3017. allow_undefined_flag=unsupported
  3018. always_export_symbols=yes
  3019. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  3020. # Note: this linker hardcodes the directories in LIBPATH if there
  3021. # are no directories specified by -L.
  3022. hardcode_minus_L=yes
  3023. if test "$GCC" = yes && test -z "$link_static_flag"; then
  3024. # Neither direct hardcoding nor static linking is supported with a
  3025. # broken collect2.
  3026. hardcode_direct=unsupported
  3027. fi
  3028. ;;
  3029. aix4* | aix5*)
  3030. if test "$host_cpu" = ia64; then
  3031. # On IA64, the linker does run time linking by default, so we don't
  3032. # have to do anything special.
  3033. aix_use_runtimelinking=no
  3034. exp_sym_flag='-Bexport'
  3035. no_entry_flag=""
  3036. else
  3037. aix_use_runtimelinking=no
  3038. # Test if we are trying to use run time linking or normal
  3039. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3040. # need to do runtime linking.
  3041. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  3042. for ld_flag in $LDFLAGS; do
  3043. case $ld_flag in
  3044. *-brtl*)
  3045. aix_use_runtimelinking=yes
  3046. break
  3047. ;;
  3048. esac
  3049. done
  3050. esac
  3051. exp_sym_flag='-bexport'
  3052. no_entry_flag='-bnoentry'
  3053. fi
  3054. # When large executables or shared objects are built, AIX ld can
  3055. # have problems creating the table of contents. If linking a library
  3056. # or program results in "error TOC overflow" add -mminimal-toc to
  3057. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  3058. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3059. hardcode_direct=yes
  3060. archive_cmds=''
  3061. hardcode_libdir_separator=':'
  3062. if test "$GCC" = yes; then
  3063. case $host_os in aix4.[012]|aix4.[012].*)
  3064. collect2name=`${CC} -print-prog-name=collect2`
  3065. if test -f "$collect2name" && \
  3066. strings "$collect2name" | grep resolve_lib_name >/dev/null
  3067. then
  3068. # We have reworked collect2
  3069. hardcode_direct=yes
  3070. else
  3071. # We have old collect2
  3072. hardcode_direct=unsupported
  3073. # It fails to find uninstalled libraries when the uninstalled
  3074. # path is not listed in the libpath. Setting hardcode_minus_L
  3075. # to unsupported forces relinking
  3076. hardcode_minus_L=yes
  3077. hardcode_libdir_flag_spec='-L$libdir'
  3078. hardcode_libdir_separator=
  3079. fi
  3080. esac
  3081. shared_flag='-shared'
  3082. else
  3083. # not using gcc
  3084. if test "$host_cpu" = ia64; then
  3085. shared_flag='${wl}-G'
  3086. else
  3087. if test "$aix_use_runtimelinking" = yes; then
  3088. shared_flag='${wl}-G'
  3089. else
  3090. shared_flag='${wl}-bM:SRE'
  3091. fi
  3092. fi
  3093. fi
  3094. # It seems that -bexpall can do strange things, so it is better to
  3095. # generate a list of symbols to export.
  3096. always_export_symbols=yes
  3097. if test "$aix_use_runtimelinking" = yes; then
  3098. # Warning - without using the other runtime loading flags (-brtl),
  3099. # -berok will link without error, but may produce a broken library.
  3100. allow_undefined_flag='-berok'
  3101. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  3102. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  3103. else
  3104. if test "$host_cpu" = ia64; then
  3105. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  3106. allow_undefined_flag="-z nodefs"
  3107. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  3108. else
  3109. hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  3110. # Warning - without using the other run time loading flags,
  3111. # -berok will link without error, but may produce a broken library.
  3112. allow_undefined_flag='${wl}-berok'
  3113. # This is a bit strange, but is similar to how AIX traditionally builds
  3114. # it's shared libraries.
  3115. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
  3116. fi
  3117. fi
  3118. ;;
  3119. amigaos*)
  3120. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  3121. hardcode_libdir_flag_spec='-L$libdir'
  3122. hardcode_minus_L=yes
  3123. # see comment about different semantics on the GNU ld section
  3124. ld_shlibs=no
  3125. ;;
  3126. cygwin* | mingw* | pw32*)
  3127. # When not using gcc, we currently assume that we are using
  3128. # Microsoft Visual C++.
  3129. # hardcode_libdir_flag_spec is actually meaningless, as there is
  3130. # no search path for DLLs.
  3131. hardcode_libdir_flag_spec=' '
  3132. allow_undefined_flag=unsupported
  3133. # Tell ltmain to make .lib files, not .a files.
  3134. libext=lib
  3135. # FIXME: Setting linknames here is a bad hack.
  3136. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  3137. # The linker will automatically build a .lib file if we build a DLL.
  3138. old_archive_from_new_cmds='true'
  3139. # FIXME: Should let the user specify the lib program.
  3140. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  3141. fix_srcfile_path='`cygpath -w "$srcfile"`'
  3142. ;;
  3143. darwin* | rhapsody*)
  3144. case "$host_os" in
  3145. rhapsody* | darwin1.[012])
  3146. allow_undefined_flag='-undefined suppress'
  3147. ;;
  3148. *) # Darwin 1.3 on
  3149. allow_undefined_flag='-flat_namespace -undefined suppress'
  3150. ;;
  3151. esac
  3152. # FIXME: Relying on posixy $() will cause problems for
  3153. # cross-compilation, but unfortunately the echo tests do not
  3154. # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  3155. # `"' quotes if we put them in here... so don't!
  3156. archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
  3157. # We need to add '_' to the symbols in $export_symbols first
  3158. #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  3159. hardcode_direct=yes
  3160. hardcode_shlibpath_var=no
  3161. whole_archive_flag_spec='-all_load $convenience'
  3162. ;;
  3163. freebsd1*)
  3164. ld_shlibs=no
  3165. ;;
  3166. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  3167. # support. Future versions do this automatically, but an explicit c++rt0.o
  3168. # does not break anything, and helps significantly (at the cost of a little
  3169. # extra space).
  3170. freebsd2.2*)
  3171. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  3172. hardcode_libdir_flag_spec='-R$libdir'
  3173. hardcode_direct=yes
  3174. hardcode_shlibpath_var=no
  3175. ;;
  3176. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  3177. freebsd2*)
  3178. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3179. hardcode_direct=yes
  3180. hardcode_minus_L=yes
  3181. hardcode_shlibpath_var=no
  3182. ;;
  3183. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  3184. freebsd*)
  3185. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  3186. hardcode_libdir_flag_spec='-R$libdir'
  3187. hardcode_direct=yes
  3188. hardcode_shlibpath_var=no
  3189. ;;
  3190. hpux9* | hpux10* | hpux11*)
  3191. case $host_os in
  3192. hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
  3193. *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  3194. esac
  3195. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  3196. hardcode_libdir_separator=:
  3197. hardcode_direct=yes
  3198. hardcode_minus_L=yes # Not in the search PATH, but as the default
  3199. # location of the library.
  3200. export_dynamic_flag_spec='${wl}-E'
  3201. ;;
  3202. irix5* | irix6* | nonstopux*)
  3203. if test "$GCC" = yes; then
  3204. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3205. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3206. else
  3207. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3208. hardcode_libdir_flag_spec='-rpath $libdir'
  3209. fi
  3210. hardcode_libdir_separator=:
  3211. link_all_deplibs=yes
  3212. ;;
  3213. netbsd*)
  3214. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3215. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  3216. else
  3217. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  3218. fi
  3219. hardcode_libdir_flag_spec='-R$libdir'
  3220. hardcode_direct=yes
  3221. hardcode_shlibpath_var=no
  3222. ;;
  3223. newsos6)
  3224. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3225. hardcode_direct=yes
  3226. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3227. hardcode_libdir_separator=:
  3228. hardcode_shlibpath_var=no
  3229. ;;
  3230. openbsd*)
  3231. hardcode_direct=yes
  3232. hardcode_shlibpath_var=no
  3233. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3234. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  3235. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  3236. export_dynamic_flag_spec='${wl}-E'
  3237. else
  3238. case "$host_os" in
  3239. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  3240. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3241. hardcode_libdir_flag_spec='-R$libdir'
  3242. ;;
  3243. *)
  3244. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  3245. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  3246. ;;
  3247. esac
  3248. fi
  3249. ;;
  3250. os2*)
  3251. hardcode_libdir_flag_spec='-L$libdir'
  3252. hardcode_minus_L=yes
  3253. allow_undefined_flag=unsupported
  3254. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  3255. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  3256. ;;
  3257. osf3*)
  3258. if test "$GCC" = yes; then
  3259. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  3260. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3261. else
  3262. allow_undefined_flag=' -expect_unresolved \*'
  3263. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3264. fi
  3265. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3266. hardcode_libdir_separator=:
  3267. ;;
  3268. osf4* | osf5*) # as osf3* with the addition of -msym flag
  3269. if test "$GCC" = yes; then
  3270. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  3271. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3272. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3273. else
  3274. allow_undefined_flag=' -expect_unresolved \*'
  3275. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3276. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  3277. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  3278. #Both c and cxx compiler support -rpath directly
  3279. hardcode_libdir_flag_spec='-rpath $libdir'
  3280. fi
  3281. hardcode_libdir_separator=:
  3282. ;;
  3283. sco3.2v5*)
  3284. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3285. hardcode_shlibpath_var=no
  3286. runpath_var=LD_RUN_PATH
  3287. hardcode_runpath_var=yes
  3288. export_dynamic_flag_spec='${wl}-Bexport'
  3289. ;;
  3290. solaris*)
  3291. # gcc --version < 3.0 without binutils cannot create self contained
  3292. # shared libraries reliably, requiring libgcc.a to resolve some of
  3293. # the object symbols generated in some cases. Libraries that use
  3294. # assert need libgcc.a to resolve __eprintf, for example. Linking
  3295. # a copy of libgcc.a into every shared library to guarantee resolving
  3296. # such symbols causes other problems: According to Tim Van Holder
  3297. # <[email protected]>, C++ libraries end up with a separate
  3298. # (to the application) exception stack for one thing.
  3299. no_undefined_flag=' -z defs'
  3300. if test "$GCC" = yes; then
  3301. case `$CC --version 2>/dev/null` in
  3302. [12].*)
  3303. cat <<EOF 1>&2
  3304. *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  3305. *** create self contained shared libraries on Solaris systems, without
  3306. *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  3307. *** -no-undefined support, which will at least allow you to build shared
  3308. *** libraries. However, you may find that when you link such libraries
  3309. *** into an application without using GCC, you have to manually add
  3310. *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  3311. *** upgrade to a newer version of GCC. Another option is to rebuild your
  3312. *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  3313. EOF
  3314. no_undefined_flag=
  3315. ;;
  3316. esac
  3317. fi
  3318. # $CC -shared without GNU ld will not create a library from C++
  3319. # object files and a static libstdc++, better avoid it by now
  3320. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3321. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3322. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  3323. hardcode_libdir_flag_spec='-R$libdir'
  3324. hardcode_shlibpath_var=no
  3325. case $host_os in
  3326. solaris2.[0-5] | solaris2.[0-5].*) ;;
  3327. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  3328. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  3329. esac
  3330. link_all_deplibs=yes
  3331. ;;
  3332. sunos4*)
  3333. if test "x$host_vendor" = xsequent; then
  3334. # Use $CC to link under sequent, because it throws in some extra .o
  3335. # files that make .init and .fini sections work.
  3336. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  3337. else
  3338. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  3339. fi
  3340. hardcode_libdir_flag_spec='-L$libdir'
  3341. hardcode_direct=yes
  3342. hardcode_minus_L=yes
  3343. hardcode_shlibpath_var=no
  3344. ;;
  3345. sysv4)
  3346. case $host_vendor in
  3347. sni)
  3348. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3349. hardcode_direct=yes # is this really true???
  3350. ;;
  3351. siemens)
  3352. ## LD is ld it makes a PLAMLIB
  3353. ## CC just makes a GrossModule.
  3354. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  3355. reload_cmds='$CC -r -o $output$reload_objs'
  3356. hardcode_direct=no
  3357. ;;
  3358. motorola)
  3359. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3360. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  3361. ;;
  3362. esac
  3363. runpath_var='LD_RUN_PATH'
  3364. hardcode_shlibpath_var=no
  3365. ;;
  3366. sysv4.3*)
  3367. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3368. hardcode_shlibpath_var=no
  3369. export_dynamic_flag_spec='-Bexport'
  3370. ;;
  3371. sysv5*)
  3372. no_undefined_flag=' -z text'
  3373. # $CC -shared without GNU ld will not create a library from C++
  3374. # object files and a static libstdc++, better avoid it by now
  3375. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3376. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3377. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  3378. hardcode_libdir_flag_spec=
  3379. hardcode_shlibpath_var=no
  3380. runpath_var='LD_RUN_PATH'
  3381. ;;
  3382. uts4*)
  3383. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3384. hardcode_libdir_flag_spec='-L$libdir'
  3385. hardcode_shlibpath_var=no
  3386. ;;
  3387. dgux*)
  3388. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3389. hardcode_libdir_flag_spec='-L$libdir'
  3390. hardcode_shlibpath_var=no
  3391. ;;
  3392. sysv4*MP*)
  3393. if test -d /usr/nec; then
  3394. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3395. hardcode_shlibpath_var=no
  3396. runpath_var=LD_RUN_PATH
  3397. hardcode_runpath_var=yes
  3398. ld_shlibs=yes
  3399. fi
  3400. ;;
  3401. sysv4.2uw2*)
  3402. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  3403. hardcode_direct=yes
  3404. hardcode_minus_L=no
  3405. hardcode_shlibpath_var=no
  3406. hardcode_runpath_var=yes
  3407. runpath_var=LD_RUN_PATH
  3408. ;;
  3409. sysv5uw7* | unixware7*)
  3410. no_undefined_flag='${wl}-z ${wl}text'
  3411. if test "$GCC" = yes; then
  3412. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3413. else
  3414. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3415. fi
  3416. runpath_var='LD_RUN_PATH'
  3417. hardcode_shlibpath_var=no
  3418. ;;
  3419. *)
  3420. ld_shlibs=no
  3421. ;;
  3422. esac
  3423. fi
  3424. echo "$ac_t""$ld_shlibs" 1>&6
  3425. test "$ld_shlibs" = no && can_build_shared=no
  3426. # Check hardcoding attributes.
  3427. echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
  3428. echo "configure:3819: checking how to hardcode library paths into programs" >&5
  3429. hardcode_action=
  3430. if test -n "$hardcode_libdir_flag_spec" || \
  3431. test -n "$runpath_var"; then
  3432. # We can hardcode non-existant directories.
  3433. if test "$hardcode_direct" != no &&
  3434. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3435. # have to relink, otherwise we might link with an installed library
  3436. # when we should be linking with a yet-to-be-installed one
  3437. ## test "$hardcode_shlibpath_var" != no &&
  3438. test "$hardcode_minus_L" != no; then
  3439. # Linking always hardcodes the temporary library directory.
  3440. hardcode_action=relink
  3441. else
  3442. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3443. hardcode_action=immediate
  3444. fi
  3445. else
  3446. # We cannot hardcode anything, or else we can only hardcode existing
  3447. # directories.
  3448. hardcode_action=unsupported
  3449. fi
  3450. echo "$ac_t""$hardcode_action" 1>&6
  3451. striplib=
  3452. old_striplib=
  3453. echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
  3454. echo "configure:3847: checking whether stripping libraries is possible" >&5
  3455. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  3456. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3457. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3458. echo "$ac_t""yes" 1>&6
  3459. else
  3460. echo "$ac_t""no" 1>&6
  3461. fi
  3462. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3463. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3464. # PORTME Fill in your ld.so characteristics
  3465. echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
  3466. echo "configure:3861: checking dynamic linker characteristics" >&5
  3467. library_names_spec=
  3468. libname_spec='lib$name'
  3469. soname_spec=
  3470. postinstall_cmds=
  3471. postuninstall_cmds=
  3472. finish_cmds=
  3473. finish_eval=
  3474. shlibpath_var=
  3475. shlibpath_overrides_runpath=unknown
  3476. version_type=none
  3477. dynamic_linker="$host_os ld.so"
  3478. sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
  3479. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
  3480. case $host_os in
  3481. aix3*)
  3482. version_type=linux
  3483. library_names_spec='${libname}${release}.so$versuffix $libname.a'
  3484. shlibpath_var=LIBPATH
  3485. # AIX has no versioning support, so we append a major version to the name.
  3486. soname_spec='${libname}${release}.so$major'
  3487. ;;
  3488. aix4* | aix5*)
  3489. version_type=linux
  3490. need_lib_prefix=no
  3491. need_version=no
  3492. hardcode_into_libs=yes
  3493. if test "$host_cpu" = ia64; then
  3494. # AIX 5 supports IA64
  3495. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  3496. shlibpath_var=LD_LIBRARY_PATH
  3497. else
  3498. # With GCC up to 2.95.x, collect2 would create an import file
  3499. # for dependence libraries. The import file would start with
  3500. # the line `#! .'. This would cause the generated library to
  3501. # depend on `.', always an invalid library. This was fixed in
  3502. # development snapshots of GCC prior to 3.0.
  3503. case $host_os in
  3504. aix4 | aix4.[01] | aix4.[01].*)
  3505. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3506. echo ' yes '
  3507. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  3508. :
  3509. else
  3510. can_build_shared=no
  3511. fi
  3512. ;;
  3513. esac
  3514. # AIX (on Power*) has no versioning support, so currently we can
  3515. # not hardcode correct soname into executable. Probably we can
  3516. # add versioning support to collect2, so additional links can
  3517. # be useful in future.
  3518. if test "$aix_use_runtimelinking" = yes; then
  3519. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3520. # instead of lib<name>.a to let people know that these are not
  3521. # typical AIX shared libraries.
  3522. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3523. else
  3524. # We preserve .a as extension for shared libraries through AIX4.2
  3525. # and later when we are not doing run time linking.
  3526. library_names_spec='${libname}${release}.a $libname.a'
  3527. soname_spec='${libname}${release}.so$major'
  3528. fi
  3529. shlibpath_var=LIBPATH
  3530. fi
  3531. hardcode_into_libs=yes
  3532. ;;
  3533. amigaos*)
  3534. library_names_spec='$libname.ixlibrary $libname.a'
  3535. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3536. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  3537. ;;
  3538. beos*)
  3539. library_names_spec='${libname}.so'
  3540. dynamic_linker="$host_os ld.so"
  3541. shlibpath_var=LIBRARY_PATH
  3542. ;;
  3543. bsdi4*)
  3544. version_type=linux
  3545. need_version=no
  3546. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3547. soname_spec='${libname}${release}.so$major'
  3548. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  3549. shlibpath_var=LD_LIBRARY_PATH
  3550. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  3551. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  3552. export_dynamic_flag_spec=-rdynamic
  3553. # the default ld.so.conf also contains /usr/contrib/lib and
  3554. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  3555. # libtool to hard-code these into programs
  3556. ;;
  3557. cygwin* | mingw* | pw32*)
  3558. version_type=windows
  3559. need_version=no
  3560. need_lib_prefix=no
  3561. case $GCC,$host_os in
  3562. yes,cygwin*)
  3563. library_names_spec='$libname.dll.a'
  3564. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  3565. postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  3566. dldir=$destdir/`dirname \$dlpath`~
  3567. test -d \$dldir || mkdir -p \$dldir~
  3568. $install_prog .libs/$dlname \$dldir/$dlname'
  3569. postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3570. dlpath=$dir/\$dldll~
  3571. $rm \$dlpath'
  3572. ;;
  3573. yes,mingw*)
  3574. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  3575. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  3576. ;;
  3577. yes,pw32*)
  3578. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  3579. ;;
  3580. *)
  3581. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  3582. ;;
  3583. esac
  3584. dynamic_linker='Win32 ld.exe'
  3585. # FIXME: first we should search . and the directory the executable is in
  3586. shlibpath_var=PATH
  3587. ;;
  3588. darwin* | rhapsody*)
  3589. dynamic_linker="$host_os dyld"
  3590. version_type=darwin
  3591. need_lib_prefix=no
  3592. need_version=no
  3593. # FIXME: Relying on posixy $() will cause problems for
  3594. # cross-compilation, but unfortunately the echo tests do not
  3595. # yet detect zsh echo's removal of \ escapes.
  3596. library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  3597. soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  3598. shlibpath_overrides_runpath=yes
  3599. shlibpath_var=DYLD_LIBRARY_PATH
  3600. ;;
  3601. freebsd1*)
  3602. dynamic_linker=no
  3603. ;;
  3604. freebsd*)
  3605. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  3606. version_type=freebsd-$objformat
  3607. case $version_type in
  3608. freebsd-elf*)
  3609. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  3610. need_version=no
  3611. need_lib_prefix=no
  3612. ;;
  3613. freebsd-*)
  3614. library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  3615. need_version=yes
  3616. ;;
  3617. esac
  3618. shlibpath_var=LD_LIBRARY_PATH
  3619. case $host_os in
  3620. freebsd2*)
  3621. shlibpath_overrides_runpath=yes
  3622. ;;
  3623. *)
  3624. shlibpath_overrides_runpath=no
  3625. hardcode_into_libs=yes
  3626. ;;
  3627. esac
  3628. ;;
  3629. gnu*)
  3630. version_type=linux
  3631. need_lib_prefix=no
  3632. need_version=no
  3633. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  3634. soname_spec='${libname}${release}.so$major'
  3635. shlibpath_var=LD_LIBRARY_PATH
  3636. hardcode_into_libs=yes
  3637. ;;
  3638. hpux9* | hpux10* | hpux11*)
  3639. # Give a soname corresponding to the major version so that dld.sl refuses to
  3640. # link against other versions.
  3641. dynamic_linker="$host_os dld.sl"
  3642. version_type=sunos
  3643. need_lib_prefix=no
  3644. need_version=no
  3645. shlibpath_var=SHLIB_PATH
  3646. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  3647. library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  3648. soname_spec='${libname}${release}.sl$major'
  3649. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  3650. postinstall_cmds='chmod 555 $lib'
  3651. ;;
  3652. irix5* | irix6* | nonstopux*)
  3653. case $host_os in
  3654. nonstopux*) version_type=nonstopux ;;
  3655. *) version_type=irix ;;
  3656. esac
  3657. need_lib_prefix=no
  3658. need_version=no
  3659. soname_spec='${libname}${release}.so$major'
  3660. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  3661. case $host_os in
  3662. irix5* | nonstopux*)
  3663. libsuff= shlibsuff=
  3664. ;;
  3665. *)
  3666. case $LD in # libtool.m4 will add one of these switches to LD
  3667. *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  3668. *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  3669. *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  3670. *) libsuff= shlibsuff= libmagic=never-match;;
  3671. esac
  3672. ;;
  3673. esac
  3674. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  3675. shlibpath_overrides_runpath=no
  3676. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  3677. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  3678. ;;
  3679. # No shared lib support for Linux oldld, aout, or coff.
  3680. linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  3681. dynamic_linker=no
  3682. ;;
  3683. # This must be Linux ELF.
  3684. linux-gnu*)
  3685. version_type=linux
  3686. need_lib_prefix=no
  3687. need_version=no
  3688. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3689. soname_spec='${libname}${release}.so$major'
  3690. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  3691. shlibpath_var=LD_LIBRARY_PATH
  3692. shlibpath_overrides_runpath=no
  3693. # This implies no fast_install, which is unacceptable.
  3694. # Some rework will be needed to allow for fast_install
  3695. # before this can be enabled.
  3696. hardcode_into_libs=yes
  3697. case $host_cpu:$lt_cv_cc_64bit_output in
  3698. powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
  3699. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
  3700. sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
  3701. ;;
  3702. esac
  3703. # We used to test for /lib/ld.so.1 and disable shared libraries on
  3704. # powerpc, because MkLinux only supported shared libraries with the
  3705. # GNU dynamic linker. Since this was broken with cross compilers,
  3706. # most powerpc-linux boxes support dynamic linking these days and
  3707. # people can always --disable-shared, the test was removed, and we
  3708. # assume the GNU/Linux dynamic linker is in use.
  3709. dynamic_linker='GNU/Linux ld.so'
  3710. ;;
  3711. netbsd*)
  3712. version_type=sunos
  3713. need_lib_prefix=no
  3714. need_version=no
  3715. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3716. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  3717. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3718. dynamic_linker='NetBSD (a.out) ld.so'
  3719. else
  3720. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  3721. soname_spec='${libname}${release}.so$major'
  3722. dynamic_linker='NetBSD ld.elf_so'
  3723. fi
  3724. shlibpath_var=LD_LIBRARY_PATH
  3725. shlibpath_overrides_runpath=yes
  3726. hardcode_into_libs=yes
  3727. ;;
  3728. newsos6)
  3729. version_type=linux
  3730. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3731. shlibpath_var=LD_LIBRARY_PATH
  3732. shlibpath_overrides_runpath=yes
  3733. ;;
  3734. openbsd*)
  3735. version_type=sunos
  3736. need_lib_prefix=no
  3737. need_version=no
  3738. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3739. case "$host_os" in
  3740. openbsd2.[89] | openbsd2.[89].*)
  3741. shlibpath_overrides_runpath=no
  3742. ;;
  3743. *)
  3744. shlibpath_overrides_runpath=yes
  3745. ;;
  3746. esac
  3747. else
  3748. shlibpath_overrides_runpath=yes
  3749. fi
  3750. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  3751. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3752. shlibpath_var=LD_LIBRARY_PATH
  3753. ;;
  3754. os2*)
  3755. libname_spec='$name'
  3756. need_lib_prefix=no
  3757. library_names_spec='$libname.dll $libname.a'
  3758. dynamic_linker='OS/2 ld.exe'
  3759. shlibpath_var=LIBPATH
  3760. ;;
  3761. osf3* | osf4* | osf5*)
  3762. version_type=osf
  3763. need_version=no
  3764. soname_spec='${libname}${release}.so$major'
  3765. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3766. shlibpath_var=LD_LIBRARY_PATH
  3767. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  3768. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  3769. hardcode_into_libs=yes
  3770. ;;
  3771. sco3.2v5*)
  3772. version_type=osf
  3773. soname_spec='${libname}${release}.so$major'
  3774. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3775. shlibpath_var=LD_LIBRARY_PATH
  3776. ;;
  3777. solaris*)
  3778. version_type=linux
  3779. need_lib_prefix=no
  3780. need_version=no
  3781. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3782. soname_spec='${libname}${release}.so$major'
  3783. shlibpath_var=LD_LIBRARY_PATH
  3784. shlibpath_overrides_runpath=yes
  3785. hardcode_into_libs=yes
  3786. # ldd complains unless libraries are executable
  3787. postinstall_cmds='chmod +x $lib'
  3788. ;;
  3789. sunos4*)
  3790. version_type=sunos
  3791. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  3792. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3793. shlibpath_var=LD_LIBRARY_PATH
  3794. shlibpath_overrides_runpath=yes
  3795. if test "$with_gnu_ld" = yes; then
  3796. need_lib_prefix=no
  3797. fi
  3798. need_version=yes
  3799. ;;
  3800. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3801. version_type=linux
  3802. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3803. soname_spec='${libname}${release}.so$major'
  3804. shlibpath_var=LD_LIBRARY_PATH
  3805. case $host_vendor in
  3806. sni)
  3807. shlibpath_overrides_runpath=no
  3808. need_lib_prefix=no
  3809. export_dynamic_flag_spec='${wl}-Blargedynsym'
  3810. runpath_var=LD_RUN_PATH
  3811. ;;
  3812. siemens)
  3813. need_lib_prefix=no
  3814. ;;
  3815. motorola)
  3816. need_lib_prefix=no
  3817. need_version=no
  3818. shlibpath_overrides_runpath=no
  3819. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3820. ;;
  3821. esac
  3822. ;;
  3823. uts4*)
  3824. version_type=linux
  3825. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3826. soname_spec='${libname}${release}.so$major'
  3827. shlibpath_var=LD_LIBRARY_PATH
  3828. ;;
  3829. dgux*)
  3830. version_type=linux
  3831. need_lib_prefix=no
  3832. need_version=no
  3833. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3834. soname_spec='${libname}${release}.so$major'
  3835. shlibpath_var=LD_LIBRARY_PATH
  3836. ;;
  3837. sysv4*MP*)
  3838. if test -d /usr/nec ;then
  3839. version_type=linux
  3840. library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  3841. soname_spec='$libname.so.$major'
  3842. shlibpath_var=LD_LIBRARY_PATH
  3843. fi
  3844. ;;
  3845. *)
  3846. dynamic_linker=no
  3847. ;;
  3848. esac
  3849. echo "$ac_t""$dynamic_linker" 1>&6
  3850. test "$dynamic_linker" = no && can_build_shared=no
  3851. # Report the final consequences.
  3852. echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
  3853. echo "configure:4279: checking if libtool supports shared libraries" >&5
  3854. echo "$ac_t""$can_build_shared" 1>&6
  3855. echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
  3856. echo "configure:4283: checking whether to build shared libraries" >&5
  3857. test "$can_build_shared" = "no" && enable_shared=no
  3858. # On AIX, shared libraries and static libraries use the same namespace, and
  3859. # are all built from PIC.
  3860. case "$host_os" in
  3861. aix3*)
  3862. test "$enable_shared" = yes && enable_static=no
  3863. if test -n "$RANLIB"; then
  3864. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3865. postinstall_cmds='$RANLIB $lib'
  3866. fi
  3867. ;;
  3868. aix4*)
  3869. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3870. test "$enable_shared" = yes && enable_static=no
  3871. fi
  3872. ;;
  3873. esac
  3874. echo "$ac_t""$enable_shared" 1>&6
  3875. echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
  3876. echo "configure:4306: checking whether to build static libraries" >&5
  3877. # Make sure either enable_shared or enable_static is yes.
  3878. test "$enable_shared" = yes || enable_static=yes
  3879. echo "$ac_t""$enable_static" 1>&6
  3880. if test "$hardcode_action" = relink; then
  3881. # Fast installation is not supported
  3882. enable_fast_install=no
  3883. elif test "$shlibpath_overrides_runpath" = yes ||
  3884. test "$enable_shared" = no; then
  3885. # Fast installation is not necessary
  3886. enable_fast_install=needless
  3887. fi
  3888. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3889. if test "$GCC" = yes; then
  3890. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3891. fi
  3892. if test "x$enable_dlopen" != xyes; then
  3893. enable_dlopen=unknown
  3894. enable_dlopen_self=unknown
  3895. enable_dlopen_self_static=unknown
  3896. else
  3897. lt_cv_dlopen=no
  3898. lt_cv_dlopen_libs=
  3899. case $host_os in
  3900. beos*)
  3901. lt_cv_dlopen="load_add_on"
  3902. lt_cv_dlopen_libs=
  3903. lt_cv_dlopen_self=yes
  3904. ;;
  3905. cygwin* | mingw* | pw32*)
  3906. lt_cv_dlopen="LoadLibrary"
  3907. lt_cv_dlopen_libs=
  3908. ;;
  3909. *)
  3910. echo $ac_n "checking for shl_load""... $ac_c" 1>&6
  3911. echo "configure:4347: checking for shl_load" >&5
  3912. if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  3913. echo $ac_n "(cached) $ac_c" 1>&6
  3914. else
  3915. cat > conftest.$ac_ext <<EOF
  3916. #line 4352 "configure"
  3917. #include "confdefs.h"
  3918. /* System header to define __stub macros and hopefully few prototypes,
  3919. which can conflict with char shl_load(); below. */
  3920. #include <assert.h>
  3921. /* Override any gcc2 internal prototype to avoid an error. */
  3922. /* We use char because int might match the return type of a gcc2
  3923. builtin and then its argument prototype would still apply. */
  3924. char shl_load();
  3925. int main() {
  3926. /* The GNU C library defines this for functions which it implements
  3927. to always fail with ENOSYS. Some functions are actually named
  3928. something starting with __ and the normal name is an alias. */
  3929. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  3930. choke me
  3931. #else
  3932. shl_load();
  3933. #endif
  3934. ; return 0; }
  3935. EOF
  3936. if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3937. rm -rf conftest*
  3938. eval "ac_cv_func_shl_load=yes"
  3939. else
  3940. echo "configure: failed program was:" >&5
  3941. cat conftest.$ac_ext >&5
  3942. rm -rf conftest*
  3943. eval "ac_cv_func_shl_load=no"
  3944. fi
  3945. rm -f conftest*
  3946. fi
  3947. if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
  3948. echo "$ac_t""yes" 1>&6
  3949. lt_cv_dlopen="shl_load"
  3950. else
  3951. echo "$ac_t""no" 1>&6
  3952. echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  3953. echo "configure:4393: checking for shl_load in -ldld" >&5
  3954. ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  3955. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3956. echo $ac_n "(cached) $ac_c" 1>&6
  3957. else
  3958. ac_save_LIBS="$LIBS"
  3959. LIBS="-ldld $LIBS"
  3960. cat > conftest.$ac_ext <<EOF
  3961. #line 4401 "configure"
  3962. #include "confdefs.h"
  3963. /* Override any gcc2 internal prototype to avoid an error. */
  3964. /* We use char because int might match the return type of a gcc2
  3965. builtin and then its argument prototype would still apply. */
  3966. char shl_load();
  3967. int main() {
  3968. shl_load()
  3969. ; return 0; }
  3970. EOF
  3971. if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3972. rm -rf conftest*
  3973. eval "ac_cv_lib_$ac_lib_var=yes"
  3974. else
  3975. echo "configure: failed program was:" >&5
  3976. cat conftest.$ac_ext >&5
  3977. rm -rf conftest*
  3978. eval "ac_cv_lib_$ac_lib_var=no"
  3979. fi
  3980. rm -f conftest*
  3981. LIBS="$ac_save_LIBS"
  3982. fi
  3983. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3984. echo "$ac_t""yes" 1>&6
  3985. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  3986. else
  3987. echo "$ac_t""no" 1>&6
  3988. echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  3989. echo "configure:4431: checking for dlopen" >&5
  3990. if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  3991. echo $ac_n "(cached) $ac_c" 1>&6
  3992. else
  3993. cat > conftest.$ac_ext <<EOF
  3994. #line 4436 "configure"
  3995. #include "confdefs.h"
  3996. /* System header to define __stub macros and hopefully few prototypes,
  3997. which can conflict with char dlopen(); below. */
  3998. #include <assert.h>
  3999. /* Override any gcc2 internal prototype to avoid an error. */
  4000. /* We use char because int might match the return type of a gcc2
  4001. builtin and then its argument prototype would still apply. */
  4002. char dlopen();
  4003. int main() {
  4004. /* The GNU C library defines this for functions which it implements
  4005. to always fail with ENOSYS. Some functions are actually named
  4006. something starting with __ and the normal name is an alias. */
  4007. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  4008. choke me
  4009. #else
  4010. dlopen();
  4011. #endif
  4012. ; return 0; }
  4013. EOF
  4014. if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4015. rm -rf conftest*
  4016. eval "ac_cv_func_dlopen=yes"
  4017. else
  4018. echo "configure: failed program was:" >&5
  4019. cat conftest.$ac_ext >&5
  4020. rm -rf conftest*
  4021. eval "ac_cv_func_dlopen=no"
  4022. fi
  4023. rm -f conftest*
  4024. fi
  4025. if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  4026. echo "$ac_t""yes" 1>&6
  4027. lt_cv_dlopen="dlopen"
  4028. else
  4029. echo "$ac_t""no" 1>&6
  4030. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  4031. echo "configure:4477: checking for dlopen in -ldl" >&5
  4032. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  4033. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4034. echo $ac_n "(cached) $ac_c" 1>&6
  4035. else
  4036. ac_save_LIBS="$LIBS"
  4037. LIBS="-ldl $LIBS"
  4038. cat > conftest.$ac_ext <<EOF
  4039. #line 4485 "configure"
  4040. #include "confdefs.h"
  4041. /* Override any gcc2 internal prototype to avoid an error. */
  4042. /* We use char because int might match the return type of a gcc2
  4043. builtin and then its argument prototype would still apply. */
  4044. char dlopen();
  4045. int main() {
  4046. dlopen()
  4047. ; return 0; }
  4048. EOF
  4049. if { (eval echo configure:4496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4050. rm -rf conftest*
  4051. eval "ac_cv_lib_$ac_lib_var=yes"
  4052. else
  4053. echo "configure: failed program was:" >&5
  4054. cat conftest.$ac_ext >&5
  4055. rm -rf conftest*
  4056. eval "ac_cv_lib_$ac_lib_var=no"
  4057. fi
  4058. rm -f conftest*
  4059. LIBS="$ac_save_LIBS"
  4060. fi
  4061. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4062. echo "$ac_t""yes" 1>&6
  4063. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  4064. else
  4065. echo "$ac_t""no" 1>&6
  4066. echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
  4067. echo "configure:4515: checking for dlopen in -lsvld" >&5
  4068. ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
  4069. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4070. echo $ac_n "(cached) $ac_c" 1>&6
  4071. else
  4072. ac_save_LIBS="$LIBS"
  4073. LIBS="-lsvld $LIBS"
  4074. cat > conftest.$ac_ext <<EOF
  4075. #line 4523 "configure"
  4076. #include "confdefs.h"
  4077. /* Override any gcc2 internal prototype to avoid an error. */
  4078. /* We use char because int might match the return type of a gcc2
  4079. builtin and then its argument prototype would still apply. */
  4080. char dlopen();
  4081. int main() {
  4082. dlopen()
  4083. ; return 0; }
  4084. EOF
  4085. if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4086. rm -rf conftest*
  4087. eval "ac_cv_lib_$ac_lib_var=yes"
  4088. else
  4089. echo "configure: failed program was:" >&5
  4090. cat conftest.$ac_ext >&5
  4091. rm -rf conftest*
  4092. eval "ac_cv_lib_$ac_lib_var=no"
  4093. fi
  4094. rm -f conftest*
  4095. LIBS="$ac_save_LIBS"
  4096. fi
  4097. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4098. echo "$ac_t""yes" 1>&6
  4099. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  4100. else
  4101. echo "$ac_t""no" 1>&6
  4102. echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
  4103. echo "configure:4553: checking for dld_link in -ldld" >&5
  4104. ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
  4105. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4106. echo $ac_n "(cached) $ac_c" 1>&6
  4107. else
  4108. ac_save_LIBS="$LIBS"
  4109. LIBS="-ldld $LIBS"
  4110. cat > conftest.$ac_ext <<EOF
  4111. #line 4561 "configure"
  4112. #include "confdefs.h"
  4113. /* Override any gcc2 internal prototype to avoid an error. */
  4114. /* We use char because int might match the return type of a gcc2
  4115. builtin and then its argument prototype would still apply. */
  4116. char dld_link();
  4117. int main() {
  4118. dld_link()
  4119. ; return 0; }
  4120. EOF
  4121. if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4122. rm -rf conftest*
  4123. eval "ac_cv_lib_$ac_lib_var=yes"
  4124. else
  4125. echo "configure: failed program was:" >&5
  4126. cat conftest.$ac_ext >&5
  4127. rm -rf conftest*
  4128. eval "ac_cv_lib_$ac_lib_var=no"
  4129. fi
  4130. rm -f conftest*
  4131. LIBS="$ac_save_LIBS"
  4132. fi
  4133. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4134. echo "$ac_t""yes" 1>&6
  4135. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  4136. else
  4137. echo "$ac_t""no" 1>&6
  4138. fi
  4139. fi
  4140. fi
  4141. fi
  4142. fi
  4143. fi
  4144. ;;
  4145. esac
  4146. if test "x$lt_cv_dlopen" != xno; then
  4147. enable_dlopen=yes
  4148. else
  4149. enable_dlopen=no
  4150. fi
  4151. case $lt_cv_dlopen in
  4152. dlopen)
  4153. save_CPPFLAGS="$CPPFLAGS"
  4154. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  4155. save_LDFLAGS="$LDFLAGS"
  4156. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  4157. save_LIBS="$LIBS"
  4158. LIBS="$lt_cv_dlopen_libs $LIBS"
  4159. echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
  4160. echo "configure:4628: checking whether a program can dlopen itself" >&5
  4161. if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
  4162. echo $ac_n "(cached) $ac_c" 1>&6
  4163. else
  4164. if test "$cross_compiling" = yes; then :
  4165. lt_cv_dlopen_self=cross
  4166. else
  4167. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  4168. lt_status=$lt_dlunknown
  4169. cat > conftest.$ac_ext <<EOF
  4170. #line 4638 "configure"
  4171. #include "confdefs.h"
  4172. #if HAVE_DLFCN_H
  4173. #include <dlfcn.h>
  4174. #endif
  4175. #include <stdio.h>
  4176. #ifdef RTLD_GLOBAL
  4177. # define LT_DLGLOBAL RTLD_GLOBAL
  4178. #else
  4179. # ifdef DL_GLOBAL
  4180. # define LT_DLGLOBAL DL_GLOBAL
  4181. # else
  4182. # define LT_DLGLOBAL 0
  4183. # endif
  4184. #endif
  4185. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  4186. find out it does not work in some platform. */
  4187. #ifndef LT_DLLAZY_OR_NOW
  4188. # ifdef RTLD_LAZY
  4189. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  4190. # else
  4191. # ifdef DL_LAZY
  4192. # define LT_DLLAZY_OR_NOW DL_LAZY
  4193. # else
  4194. # ifdef RTLD_NOW
  4195. # define LT_DLLAZY_OR_NOW RTLD_NOW
  4196. # else
  4197. # ifdef DL_NOW
  4198. # define LT_DLLAZY_OR_NOW DL_NOW
  4199. # else
  4200. # define LT_DLLAZY_OR_NOW 0
  4201. # endif
  4202. # endif
  4203. # endif
  4204. # endif
  4205. #endif
  4206. #ifdef __cplusplus
  4207. extern "C" void exit (int);
  4208. #endif
  4209. void fnord() { int i=42;}
  4210. int main ()
  4211. {
  4212. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  4213. int status = $lt_dlunknown;
  4214. if (self)
  4215. {
  4216. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  4217. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  4218. /* dlclose (self); */
  4219. }
  4220. exit (status);
  4221. }
  4222. EOF
  4223. if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  4224. (./conftest; exit; ) 2>/dev/null
  4225. lt_status=$?
  4226. case x$lt_status in
  4227. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  4228. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  4229. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  4230. esac
  4231. else :
  4232. # compilation failed
  4233. lt_cv_dlopen_self=no
  4234. fi
  4235. fi
  4236. rm -fr conftest*
  4237. fi
  4238. echo "$ac_t""$lt_cv_dlopen_self" 1>&6
  4239. if test "x$lt_cv_dlopen_self" = xyes; then
  4240. LDFLAGS="$LDFLAGS $link_static_flag"
  4241. echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
  4242. echo "configure:4722: checking whether a statically linked program can dlopen itself" >&5
  4243. if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
  4244. echo $ac_n "(cached) $ac_c" 1>&6
  4245. else
  4246. if test "$cross_compiling" = yes; then :
  4247. lt_cv_dlopen_self_static=cross
  4248. else
  4249. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  4250. lt_status=$lt_dlunknown
  4251. cat > conftest.$ac_ext <<EOF
  4252. #line 4732 "configure"
  4253. #include "confdefs.h"
  4254. #if HAVE_DLFCN_H
  4255. #include <dlfcn.h>
  4256. #endif
  4257. #include <stdio.h>
  4258. #ifdef RTLD_GLOBAL
  4259. # define LT_DLGLOBAL RTLD_GLOBAL
  4260. #else
  4261. # ifdef DL_GLOBAL
  4262. # define LT_DLGLOBAL DL_GLOBAL
  4263. # else
  4264. # define LT_DLGLOBAL 0
  4265. # endif
  4266. #endif
  4267. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  4268. find out it does not work in some platform. */
  4269. #ifndef LT_DLLAZY_OR_NOW
  4270. # ifdef RTLD_LAZY
  4271. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  4272. # else
  4273. # ifdef DL_LAZY
  4274. # define LT_DLLAZY_OR_NOW DL_LAZY
  4275. # else
  4276. # ifdef RTLD_NOW
  4277. # define LT_DLLAZY_OR_NOW RTLD_NOW
  4278. # else
  4279. # ifdef DL_NOW
  4280. # define LT_DLLAZY_OR_NOW DL_NOW
  4281. # else
  4282. # define LT_DLLAZY_OR_NOW 0
  4283. # endif
  4284. # endif
  4285. # endif
  4286. # endif
  4287. #endif
  4288. #ifdef __cplusplus
  4289. extern "C" void exit (int);
  4290. #endif
  4291. void fnord() { int i=42;}
  4292. int main ()
  4293. {
  4294. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  4295. int status = $lt_dlunknown;
  4296. if (self)
  4297. {
  4298. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  4299. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  4300. /* dlclose (self); */
  4301. }
  4302. exit (status);
  4303. }
  4304. EOF
  4305. if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  4306. (./conftest; exit; ) 2>/dev/null
  4307. lt_status=$?
  4308. case x$lt_status in
  4309. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  4310. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  4311. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  4312. esac
  4313. else :
  4314. # compilation failed
  4315. lt_cv_dlopen_self_static=no
  4316. fi
  4317. fi
  4318. rm -fr conftest*
  4319. fi
  4320. echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
  4321. fi
  4322. CPPFLAGS="$save_CPPFLAGS"
  4323. LDFLAGS="$save_LDFLAGS"
  4324. LIBS="$save_LIBS"
  4325. ;;
  4326. esac
  4327. case $lt_cv_dlopen_self in
  4328. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  4329. *) enable_dlopen_self=unknown ;;
  4330. esac
  4331. case $lt_cv_dlopen_self_static in
  4332. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  4333. *) enable_dlopen_self_static=unknown ;;
  4334. esac
  4335. fi
  4336. if test "$enable_shared" = yes && test "$GCC" = yes; then
  4337. case $archive_cmds in
  4338. *'~'*)
  4339. # FIXME: we may have to deal with multi-command sequences.
  4340. ;;
  4341. '$CC '*)
  4342. # Test whether the compiler implicitly links with -lc since on some
  4343. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  4344. # to ld, don't add -lc before -lgcc.
  4345. echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
  4346. echo "configure:4842: checking whether -lc should be explicitly linked in" >&5
  4347. if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
  4348. echo $ac_n "(cached) $ac_c" 1>&6
  4349. else
  4350. $rm conftest*
  4351. echo 'static int dummy;' > conftest.$ac_ext
  4352. if { (eval echo configure:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4353. soname=conftest
  4354. lib=conftest
  4355. libobjs=conftest.$ac_objext
  4356. deplibs=
  4357. wl=$lt_cv_prog_cc_wl
  4358. compiler_flags=-v
  4359. linker_flags=-v
  4360. verstring=
  4361. output_objdir=.
  4362. libname=conftest
  4363. save_allow_undefined_flag=$allow_undefined_flag
  4364. allow_undefined_flag=
  4365. if { (eval echo configure:4862: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
  4366. then
  4367. lt_cv_archive_cmds_need_lc=no
  4368. else
  4369. lt_cv_archive_cmds_need_lc=yes
  4370. fi
  4371. allow_undefined_flag=$save_allow_undefined_flag
  4372. else
  4373. cat conftest.err 1>&5
  4374. fi
  4375. fi
  4376. echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
  4377. ;;
  4378. esac
  4379. fi
  4380. need_lc=${lt_cv_archive_cmds_need_lc-yes}
  4381. # The second clause should only fire when bootstrapping the
  4382. # libtool distribution, otherwise you forgot to ship ltmain.sh
  4383. # with your package, and you will get complaints that there are
  4384. # no rules to generate ltmain.sh.
  4385. if test -f "$ltmain"; then
  4386. :
  4387. else
  4388. # If there is no Makefile yet, we rely on a make rule to execute
  4389. # `config.status --recheck' to rerun these tests and create the
  4390. # libtool script then.
  4391. test -f Makefile && make "$ltmain"
  4392. fi
  4393. if test -f "$ltmain"; then
  4394. trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  4395. $rm -f "${ofile}T"
  4396. echo creating $ofile
  4397. # Now quote all the things that may contain metacharacters while being
  4398. # careful not to overquote the AC_SUBSTed values. We take copies of the
  4399. # variables and quote the copies for generation of the libtool script.
  4400. for var in echo old_CC old_CFLAGS SED \
  4401. AR AR_FLAGS CC LD LN_S NM SHELL \
  4402. reload_flag reload_cmds wl \
  4403. pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  4404. thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  4405. library_names_spec soname_spec \
  4406. RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  4407. old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  4408. postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  4409. old_striplib striplib file_magic_cmd export_symbols_cmds \
  4410. deplibs_check_method allow_undefined_flag no_undefined_flag \
  4411. finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  4412. global_symbol_to_c_name_address \
  4413. hardcode_libdir_flag_spec hardcode_libdir_separator \
  4414. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  4415. compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  4416. case $var in
  4417. reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  4418. old_postinstall_cmds | old_postuninstall_cmds | \
  4419. export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  4420. extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  4421. postinstall_cmds | postuninstall_cmds | \
  4422. finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  4423. # Double-quote double-evaled strings.
  4424. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  4425. ;;
  4426. *)
  4427. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  4428. ;;
  4429. esac
  4430. done
  4431. cat <<__EOF__ > "${ofile}T"
  4432. #! $SHELL
  4433. # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  4434. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  4435. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  4436. #
  4437. # Copyright (C) 1996-2000 Free Software Foundation, Inc.
  4438. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  4439. #
  4440. # This program is free software; you can redistribute it and/or modify
  4441. # it under the terms of the GNU General Public License as published by
  4442. # the Free Software Foundation; either version 2 of the License, or
  4443. # (at your option) any later version.
  4444. #
  4445. # This program is distributed in the hope that it will be useful, but
  4446. # WITHOUT ANY WARRANTY; without even the implied warranty of
  4447. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  4448. # General Public License for more details.
  4449. #
  4450. # You should have received a copy of the GNU General Public License
  4451. # along with this program; if not, write to the Free Software
  4452. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  4453. #
  4454. # As a special exception to the GNU General Public License, if you
  4455. # distribute this file as part of a program that contains a
  4456. # configuration script generated by Autoconf, you may include it under
  4457. # the same distribution terms that you use for the rest of that program.
  4458. # A sed that does not truncate output.
  4459. SED=$lt_SED
  4460. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  4461. Xsed="${SED} -e s/^X//"
  4462. # The HP-UX ksh and POSIX shell print the target directory to stdout
  4463. # if CDPATH is set.
  4464. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  4465. # ### BEGIN LIBTOOL CONFIG
  4466. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4467. # Shell to use when invoking shell scripts.
  4468. SHELL=$lt_SHELL
  4469. # Whether or not to build shared libraries.
  4470. build_libtool_libs=$enable_shared
  4471. # Whether or not to build static libraries.
  4472. build_old_libs=$enable_static
  4473. # Whether or not to add -lc for building shared libraries.
  4474. build_libtool_need_lc=$need_lc
  4475. # Whether or not to optimize for fast installation.
  4476. fast_install=$enable_fast_install
  4477. # The host system.
  4478. host_alias=$host_alias
  4479. host=$host
  4480. # An echo program that does not interpret backslashes.
  4481. echo=$lt_echo
  4482. # The archiver.
  4483. AR=$lt_AR
  4484. AR_FLAGS=$lt_AR_FLAGS
  4485. # The default C compiler.
  4486. CC=$lt_CC
  4487. # Is the compiler the GNU C compiler?
  4488. with_gcc=$GCC
  4489. # The linker used to build libraries.
  4490. LD=$lt_LD
  4491. # Whether we need hard or soft links.
  4492. LN_S=$lt_LN_S
  4493. # A BSD-compatible nm program.
  4494. NM=$lt_NM
  4495. # A symbol stripping program
  4496. STRIP=$STRIP
  4497. # Used to examine libraries when file_magic_cmd begins "file"
  4498. MAGIC_CMD=$MAGIC_CMD
  4499. # Used on cygwin: DLL creation program.
  4500. DLLTOOL="$DLLTOOL"
  4501. # Used on cygwin: object dumper.
  4502. OBJDUMP="$OBJDUMP"
  4503. # Used on cygwin: assembler.
  4504. AS="$AS"
  4505. # The name of the directory that contains temporary libtool files.
  4506. objdir=$objdir
  4507. # How to create reloadable object files.
  4508. reload_flag=$lt_reload_flag
  4509. reload_cmds=$lt_reload_cmds
  4510. # How to pass a linker flag through the compiler.
  4511. wl=$lt_wl
  4512. # Object file suffix (normally "o").
  4513. objext="$ac_objext"
  4514. # Old archive suffix (normally "a").
  4515. libext="$libext"
  4516. # Executable file suffix (normally "").
  4517. exeext="$exeext"
  4518. # Additional compiler flags for building library objects.
  4519. pic_flag=$lt_pic_flag
  4520. pic_mode=$pic_mode
  4521. # Does compiler simultaneously support -c and -o options?
  4522. compiler_c_o=$lt_compiler_c_o
  4523. # Can we write directly to a .lo ?
  4524. compiler_o_lo=$lt_compiler_o_lo
  4525. # Must we lock files when doing compilation ?
  4526. need_locks=$lt_need_locks
  4527. # Do we need the lib prefix for modules?
  4528. need_lib_prefix=$need_lib_prefix
  4529. # Do we need a version for libraries?
  4530. need_version=$need_version
  4531. # Whether dlopen is supported.
  4532. dlopen_support=$enable_dlopen
  4533. # Whether dlopen of programs is supported.
  4534. dlopen_self=$enable_dlopen_self
  4535. # Whether dlopen of statically linked programs is supported.
  4536. dlopen_self_static=$enable_dlopen_self_static
  4537. # Compiler flag to prevent dynamic linking.
  4538. link_static_flag=$lt_link_static_flag
  4539. # Compiler flag to turn off builtin functions.
  4540. no_builtin_flag=$lt_no_builtin_flag
  4541. # Compiler flag to allow reflexive dlopens.
  4542. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  4543. # Compiler flag to generate shared objects directly from archives.
  4544. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  4545. # Compiler flag to generate thread-safe objects.
  4546. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  4547. # Library versioning type.
  4548. version_type=$version_type
  4549. # Format of library name prefix.
  4550. libname_spec=$lt_libname_spec
  4551. # List of archive names. First name is the real one, the rest are links.
  4552. # The last name is the one that the linker finds with -lNAME.
  4553. library_names_spec=$lt_library_names_spec
  4554. # The coded name of the library, if different from the real name.
  4555. soname_spec=$lt_soname_spec
  4556. # Commands used to build and install an old-style archive.
  4557. RANLIB=$lt_RANLIB
  4558. old_archive_cmds=$lt_old_archive_cmds
  4559. old_postinstall_cmds=$lt_old_postinstall_cmds
  4560. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  4561. # Create an old-style archive from a shared archive.
  4562. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  4563. # Create a temporary old-style archive to link instead of a shared archive.
  4564. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  4565. # Commands used to build and install a shared archive.
  4566. archive_cmds=$lt_archive_cmds
  4567. archive_expsym_cmds=$lt_archive_expsym_cmds
  4568. postinstall_cmds=$lt_postinstall_cmds
  4569. postuninstall_cmds=$lt_postuninstall_cmds
  4570. # Commands to strip libraries.
  4571. old_striplib=$lt_old_striplib
  4572. striplib=$lt_striplib
  4573. # Method to check whether dependent libraries are shared objects.
  4574. deplibs_check_method=$lt_deplibs_check_method
  4575. # Command to use when deplibs_check_method == file_magic.
  4576. file_magic_cmd=$lt_file_magic_cmd
  4577. # Flag that allows shared libraries with undefined symbols to be built.
  4578. allow_undefined_flag=$lt_allow_undefined_flag
  4579. # Flag that forces no undefined symbols.
  4580. no_undefined_flag=$lt_no_undefined_flag
  4581. # Commands used to finish a libtool library installation in a directory.
  4582. finish_cmds=$lt_finish_cmds
  4583. # Same as above, but a single script fragment to be evaled but not shown.
  4584. finish_eval=$lt_finish_eval
  4585. # Take the output of nm and produce a listing of raw symbols and C names.
  4586. global_symbol_pipe=$lt_global_symbol_pipe
  4587. # Transform the output of nm in a proper C declaration
  4588. global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  4589. # Transform the output of nm in a C name address pair
  4590. global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  4591. # This is the shared library runtime path variable.
  4592. runpath_var=$runpath_var
  4593. # This is the shared library path variable.
  4594. shlibpath_var=$shlibpath_var
  4595. # Is shlibpath searched before the hard-coded library search path?
  4596. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  4597. # How to hardcode a shared library path into an executable.
  4598. hardcode_action=$hardcode_action
  4599. # Whether we should hardcode library paths into libraries.
  4600. hardcode_into_libs=$hardcode_into_libs
  4601. # Flag to hardcode \$libdir into a binary during linking.
  4602. # This must work even if \$libdir does not exist.
  4603. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  4604. # Whether we need a single -rpath flag with a separated argument.
  4605. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  4606. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  4607. # resulting binary.
  4608. hardcode_direct=$hardcode_direct
  4609. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  4610. # resulting binary.
  4611. hardcode_minus_L=$hardcode_minus_L
  4612. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  4613. # the resulting binary.
  4614. hardcode_shlibpath_var=$hardcode_shlibpath_var
  4615. # Variables whose values should be saved in libtool wrapper scripts and
  4616. # restored at relink time.
  4617. variables_saved_for_relink="$variables_saved_for_relink"
  4618. # Whether libtool must link a program against all its dependency libraries.
  4619. link_all_deplibs=$link_all_deplibs
  4620. # Compile-time system search path for libraries
  4621. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  4622. # Run-time system search path for libraries
  4623. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  4624. # Fix the shell variable \$srcfile for the compiler.
  4625. fix_srcfile_path="$fix_srcfile_path"
  4626. # Set to yes if exported symbols are required.
  4627. always_export_symbols=$always_export_symbols
  4628. # The commands to list exported symbols.
  4629. export_symbols_cmds=$lt_export_symbols_cmds
  4630. # The commands to extract the exported symbol list from a shared archive.
  4631. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  4632. # Symbols that should not be listed in the preloaded symbols.
  4633. exclude_expsyms=$lt_exclude_expsyms
  4634. # Symbols that must always be exported.
  4635. include_expsyms=$lt_include_expsyms
  4636. # ### END LIBTOOL CONFIG
  4637. __EOF__
  4638. case $host_os in
  4639. aix3*)
  4640. cat <<\EOF >> "${ofile}T"
  4641. # AIX sometimes has problems with the GCC collect2 program. For some
  4642. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4643. # vanish in a puff of smoke.
  4644. if test "X${COLLECT_NAMES+set}" != Xset; then
  4645. COLLECT_NAMES=
  4646. export COLLECT_NAMES
  4647. fi
  4648. EOF
  4649. ;;
  4650. esac
  4651. case $host_os in
  4652. cygwin* | mingw* | pw32* | os2*)
  4653. cat <<'EOF' >> "${ofile}T"
  4654. # This is a source program that is used to create dlls on Windows
  4655. # Don't remove nor modify the starting and closing comments
  4656. # /* ltdll.c starts here */
  4657. # #define WIN32_LEAN_AND_MEAN
  4658. # #include <windows.h>
  4659. # #undef WIN32_LEAN_AND_MEAN
  4660. # #include <stdio.h>
  4661. #
  4662. # #ifndef __CYGWIN__
  4663. # # ifdef __CYGWIN32__
  4664. # # define __CYGWIN__ __CYGWIN32__
  4665. # # endif
  4666. # #endif
  4667. #
  4668. # #ifdef __cplusplus
  4669. # extern "C" {
  4670. # #endif
  4671. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  4672. # #ifdef __cplusplus
  4673. # }
  4674. # #endif
  4675. #
  4676. # #ifdef __CYGWIN__
  4677. # #include <cygwin/cygwin_dll.h>
  4678. # DECLARE_CYGWIN_DLL( DllMain );
  4679. # #endif
  4680. # HINSTANCE __hDllInstance_base;
  4681. #
  4682. # BOOL APIENTRY
  4683. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  4684. # {
  4685. # __hDllInstance_base = hInst;
  4686. # return TRUE;
  4687. # }
  4688. # /* ltdll.c ends here */
  4689. # This is a source program that is used to create import libraries
  4690. # on Windows for dlls which lack them. Don't remove nor modify the
  4691. # starting and closing comments
  4692. # /* impgen.c starts here */
  4693. # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  4694. #
  4695. # This file is part of GNU libtool.
  4696. #
  4697. # This program is free software; you can redistribute it and/or modify
  4698. # it under the terms of the GNU General Public License as published by
  4699. # the Free Software Foundation; either version 2 of the License, or
  4700. # (at your option) any later version.
  4701. #
  4702. # This program is distributed in the hope that it will be useful,
  4703. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  4704. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  4705. # GNU General Public License for more details.
  4706. #
  4707. # You should have received a copy of the GNU General Public License
  4708. # along with this program; if not, write to the Free Software
  4709. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  4710. # */
  4711. #
  4712. # #include <stdio.h> /* for printf() */
  4713. # #include <unistd.h> /* for open(), lseek(), read() */
  4714. # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  4715. # #include <string.h> /* for strdup() */
  4716. #
  4717. # /* O_BINARY isn't required (or even defined sometimes) under Unix */
  4718. # #ifndef O_BINARY
  4719. # #define O_BINARY 0
  4720. # #endif
  4721. #
  4722. # static unsigned int
  4723. # pe_get16 (fd, offset)
  4724. # int fd;
  4725. # int offset;
  4726. # {
  4727. # unsigned char b[2];
  4728. # lseek (fd, offset, SEEK_SET);
  4729. # read (fd, b, 2);
  4730. # return b[0] + (b[1]<<8);
  4731. # }
  4732. #
  4733. # static unsigned int
  4734. # pe_get32 (fd, offset)
  4735. # int fd;
  4736. # int offset;
  4737. # {
  4738. # unsigned char b[4];
  4739. # lseek (fd, offset, SEEK_SET);
  4740. # read (fd, b, 4);
  4741. # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  4742. # }
  4743. #
  4744. # static unsigned int
  4745. # pe_as32 (ptr)
  4746. # void *ptr;
  4747. # {
  4748. # unsigned char *b = ptr;
  4749. # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  4750. # }
  4751. #
  4752. # int
  4753. # main (argc, argv)
  4754. # int argc;
  4755. # char *argv[];
  4756. # {
  4757. # int dll;
  4758. # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  4759. # unsigned long export_rva, export_size, nsections, secptr, expptr;
  4760. # unsigned long name_rvas, nexp;
  4761. # unsigned char *expdata, *erva;
  4762. # char *filename, *dll_name;
  4763. #
  4764. # filename = argv[1];
  4765. #
  4766. # dll = open(filename, O_RDONLY|O_BINARY);
  4767. # if (dll < 1)
  4768. # return 1;
  4769. #
  4770. # dll_name = filename;
  4771. #
  4772. # for (i=0; filename[i]; i++)
  4773. # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  4774. # dll_name = filename + i +1;
  4775. #
  4776. # pe_header_offset = pe_get32 (dll, 0x3c);
  4777. # opthdr_ofs = pe_header_offset + 4 + 20;
  4778. # num_entries = pe_get32 (dll, opthdr_ofs + 92);
  4779. #
  4780. # if (num_entries < 1) /* no exports */
  4781. # return 1;
  4782. #
  4783. # export_rva = pe_get32 (dll, opthdr_ofs + 96);
  4784. # export_size = pe_get32 (dll, opthdr_ofs + 100);
  4785. # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  4786. # secptr = (pe_header_offset + 4 + 20 +
  4787. # pe_get16 (dll, pe_header_offset + 4 + 16));
  4788. #
  4789. # expptr = 0;
  4790. # for (i = 0; i < nsections; i++)
  4791. # {
  4792. # char sname[8];
  4793. # unsigned long secptr1 = secptr + 40 * i;
  4794. # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  4795. # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  4796. # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  4797. # lseek(dll, secptr1, SEEK_SET);
  4798. # read(dll, sname, 8);
  4799. # if (vaddr <= export_rva && vaddr+vsize > export_rva)
  4800. # {
  4801. # expptr = fptr + (export_rva - vaddr);
  4802. # if (export_rva + export_size > vaddr + vsize)
  4803. # export_size = vsize - (export_rva - vaddr);
  4804. # break;
  4805. # }
  4806. # }
  4807. #
  4808. # expdata = (unsigned char*)malloc(export_size);
  4809. # lseek (dll, expptr, SEEK_SET);
  4810. # read (dll, expdata, export_size);
  4811. # erva = expdata - export_rva;
  4812. #
  4813. # nexp = pe_as32 (expdata+24);
  4814. # name_rvas = pe_as32 (expdata+32);
  4815. #
  4816. # printf ("EXPORTS\n");
  4817. # for (i = 0; i<nexp; i++)
  4818. # {
  4819. # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  4820. # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  4821. # }
  4822. #
  4823. # return 0;
  4824. # }
  4825. # /* impgen.c ends here */
  4826. EOF
  4827. ;;
  4828. esac
  4829. # We use sed instead of cat because bash on DJGPP gets confused if
  4830. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  4831. # text mode, it properly converts lines to CR/LF. This bash problem
  4832. # is reportedly fixed, but why not run on old versions too?
  4833. sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  4834. mv -f "${ofile}T" "$ofile" || \
  4835. (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  4836. chmod +x "$ofile"
  4837. fi
  4838. # This can be used to rebuild libtool when needed
  4839. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  4840. # Always use our own libtool.
  4841. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  4842. # Prevent multiple expansion
  4843. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  4844. echo "configure:5448: checking whether byte ordering is bigendian" >&5
  4845. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  4846. echo $ac_n "(cached) $ac_c" 1>&6
  4847. else
  4848. ac_cv_c_bigendian=unknown
  4849. # See if sys/param.h defines the BYTE_ORDER macro.
  4850. cat > conftest.$ac_ext <<EOF
  4851. #line 5455 "configure"
  4852. #include "confdefs.h"
  4853. #include <sys/types.h>
  4854. #include <sys/param.h>
  4855. int main() {
  4856. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  4857. bogus endian macros
  4858. #endif
  4859. ; return 0; }
  4860. EOF
  4861. if { (eval echo configure:5466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4862. rm -rf conftest*
  4863. # It does; now see whether it defined to BIG_ENDIAN or not.
  4864. cat > conftest.$ac_ext <<EOF
  4865. #line 5470 "configure"
  4866. #include "confdefs.h"
  4867. #include <sys/types.h>
  4868. #include <sys/param.h>
  4869. int main() {
  4870. #if BYTE_ORDER != BIG_ENDIAN
  4871. not big endian
  4872. #endif
  4873. ; return 0; }
  4874. EOF
  4875. if { (eval echo configure:5481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4876. rm -rf conftest*
  4877. ac_cv_c_bigendian=yes
  4878. else
  4879. echo "configure: failed program was:" >&5
  4880. cat conftest.$ac_ext >&5
  4881. rm -rf conftest*
  4882. ac_cv_c_bigendian=no
  4883. fi
  4884. rm -f conftest*
  4885. else
  4886. echo "configure: failed program was:" >&5
  4887. cat conftest.$ac_ext >&5
  4888. fi
  4889. rm -f conftest*
  4890. if test $ac_cv_c_bigendian = unknown; then
  4891. if test "$cross_compiling" = yes; then
  4892. { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  4893. else
  4894. cat > conftest.$ac_ext <<EOF
  4895. #line 5501 "configure"
  4896. #include "confdefs.h"
  4897. main () {
  4898. /* Are we little or big endian? From Harbison&Steele. */
  4899. union
  4900. {
  4901. long l;
  4902. char c[sizeof (long)];
  4903. } u;
  4904. u.l = 1;
  4905. exit (u.c[sizeof (long) - 1] == 1);
  4906. }
  4907. EOF
  4908. if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  4909. then
  4910. ac_cv_c_bigendian=no
  4911. else
  4912. echo "configure: failed program was:" >&5
  4913. cat conftest.$ac_ext >&5
  4914. rm -fr conftest*
  4915. ac_cv_c_bigendian=yes
  4916. fi
  4917. rm -fr conftest*
  4918. fi
  4919. fi
  4920. fi
  4921. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  4922. if test $ac_cv_c_bigendian = yes; then
  4923. cat >> confdefs.h <<\EOF
  4924. #define WORDS_BIGENDIAN 1
  4925. EOF
  4926. fi
  4927. for ac_hdr in sys/soundcard.h
  4928. do
  4929. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4930. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4931. echo "configure:5541: checking for $ac_hdr" >&5
  4932. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4933. echo $ac_n "(cached) $ac_c" 1>&6
  4934. else
  4935. cat > conftest.$ac_ext <<EOF
  4936. #line 5546 "configure"
  4937. #include "confdefs.h"
  4938. #include <$ac_hdr>
  4939. EOF
  4940. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4941. { (eval echo configure:5551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4942. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4943. if test -z "$ac_err"; then
  4944. rm -rf conftest*
  4945. eval "ac_cv_header_$ac_safe=yes"
  4946. else
  4947. echo "$ac_err" >&5
  4948. echo "configure: failed program was:" >&5
  4949. cat conftest.$ac_ext >&5
  4950. rm -rf conftest*
  4951. eval "ac_cv_header_$ac_safe=no"
  4952. fi
  4953. rm -f conftest*
  4954. fi
  4955. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4956. echo "$ac_t""yes" 1>&6
  4957. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4958. cat >> confdefs.h <<EOF
  4959. #define $ac_tr_hdr 1
  4960. EOF
  4961. else
  4962. echo "$ac_t""no" 1>&6
  4963. fi
  4964. done
  4965. # Check whether --enable-ogg or --disable-ogg was given.
  4966. if test "${enable_ogg+set}" = set; then
  4967. enableval="$enable_ogg"
  4968. case "${enableval}" in
  4969. yes) useogg=true ;;
  4970. no) useogg=false ;;
  4971. *) { echo "configure: error: bad value ${enableval} for --enable-ogg" 1>&2; exit 1; } ;;
  4972. esac
  4973. else
  4974. useogg=true
  4975. fi
  4976. if test x$useogg = xtrue; then
  4977. OGG_LIBS="-logg"
  4978. echo $ac_n "checking for libogg""... $ac_c" 1>&6
  4979. echo "configure:5596: checking for libogg" >&5
  4980. ac_ogg_includes=NONE ac_ogg_libraries=NONE ac_ogg_bindir=NONE
  4981. ogg_libraries=""
  4982. ogg_includes=""
  4983. # Check whether --with-ogg-dir or --without-ogg-dir was given.
  4984. if test "${with_ogg_dir+set}" = set; then
  4985. withval="$with_ogg_dir"
  4986. ac_ogg_includes="$withval"/include
  4987. ac_ogg_libraries="$withval"/lib
  4988. fi
  4989. # Check whether --with-ogg-includes or --without-ogg-includes was given.
  4990. if test "${with_ogg_includes+set}" = set; then
  4991. withval="$with_ogg_includes"
  4992. ac_ogg_includes="$withval"
  4993. fi
  4994. ogg_libs_given=no
  4995. # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
  4996. if test "${with_ogg_libraries+set}" = set; then
  4997. withval="$with_ogg_libraries"
  4998. ac_ogg_libraries="$withval"
  4999. ogg_libs_given=yes
  5000. fi
  5001. ogg_incdirs="/usr/include /usr/lib/ogg/include /opt/include /usr/local/ogg/include /usr/include/ogg /usr/include /usr/local/include"
  5002. if test ! "$ac_ogg_includes" = "NONE"; then
  5003. ogg_incdirs="$ac_ogg_includes $ac_ogg_includes/.. $ogg_incdirs"
  5004. fi
  5005. ogg_incdir=NONE
  5006. for i in $ogg_incdirs;
  5007. do
  5008. for j in ogg/ogg.h;
  5009. do
  5010. if test -r "$i/$j"; then
  5011. ogg_incdir=$i
  5012. break 2
  5013. fi
  5014. done
  5015. done
  5016. echo "Ogg includes in $ogg_incdir"
  5017. ogg_libdirs="$ac_ogg_libraries /usr/lib/ogg/lib /usr/lib /opt/lib /usr/local/ogg/lib /usr/local/lib /usr/lib/ogg /usr/local/lib"
  5018. test -n "$OGGDIR" && ogg_libdirs="$OGGDIR/lib $OGGDIR $ogg_libdirs"
  5019. if test ! "$ac_ogg_libraries" = "NONE"; then
  5020. ogg_libdirs="$ac_ogg_libraries $ogg_libdirs"
  5021. fi
  5022. test=NONE
  5023. ogg_libdir=NONE
  5024. for dir in $ogg_libdirs; do
  5025. try="ls -1 $dir/libogg*"
  5026. if test=`eval $try 2> /dev/null`; then ogg_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
  5027. done
  5028. echo "Ogg libraries in $ogg_libdir"
  5029. if test "$ogg_libdir" = "NONE" || test "$ogg_incdir" = "NONE"; then
  5030. have_libogg=no
  5031. else
  5032. have_libogg=yes
  5033. cat >> confdefs.h <<\EOF
  5034. #define HAVE_LIBOGG 1
  5035. EOF
  5036. fi
  5037. OGG_INCLUDES="-I$ogg_incdir"
  5038. OGG_LDFLAGS="-L$ogg_libdir"
  5039. fi
  5040. if test "$have_libogg" = yes; then
  5041. src=src
  5042. else
  5043. src=
  5044. fi
  5045. echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
  5046. echo "configure:5694: checking for sin in -lm" >&5
  5047. ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
  5048. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5049. echo $ac_n "(cached) $ac_c" 1>&6
  5050. else
  5051. ac_save_LIBS="$LIBS"
  5052. LIBS="-lm $LIBS"
  5053. cat > conftest.$ac_ext <<EOF
  5054. #line 5702 "configure"
  5055. #include "confdefs.h"
  5056. /* Override any gcc2 internal prototype to avoid an error. */
  5057. /* We use char because int might match the return type of a gcc2
  5058. builtin and then its argument prototype would still apply. */
  5059. char sin();
  5060. int main() {
  5061. sin()
  5062. ; return 0; }
  5063. EOF
  5064. if { (eval echo configure:5713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5065. rm -rf conftest*
  5066. eval "ac_cv_lib_$ac_lib_var=yes"
  5067. else
  5068. echo "configure: failed program was:" >&5
  5069. cat conftest.$ac_ext >&5
  5070. rm -rf conftest*
  5071. eval "ac_cv_lib_$ac_lib_var=no"
  5072. fi
  5073. rm -f conftest*
  5074. LIBS="$ac_save_LIBS"
  5075. fi
  5076. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5077. echo "$ac_t""yes" 1>&6
  5078. ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  5079. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  5080. cat >> confdefs.h <<EOF
  5081. #define $ac_tr_lib 1
  5082. EOF
  5083. LIBS="-lm $LIBS"
  5084. else
  5085. echo "$ac_t""no" 1>&6
  5086. fi
  5087. echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
  5088. echo "configure:5741: checking for getopt_long in -lgnugetopt" >&5
  5089. ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
  5090. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5091. echo $ac_n "(cached) $ac_c" 1>&6
  5092. else
  5093. ac_save_LIBS="$LIBS"
  5094. LIBS="-lgnugetopt $LIBS"
  5095. cat > conftest.$ac_ext <<EOF
  5096. #line 5749 "configure"
  5097. #include "confdefs.h"
  5098. /* Override any gcc2 internal prototype to avoid an error. */
  5099. /* We use char because int might match the return type of a gcc2
  5100. builtin and then its argument prototype would still apply. */
  5101. char getopt_long();
  5102. int main() {
  5103. getopt_long()
  5104. ; return 0; }
  5105. EOF
  5106. if { (eval echo configure:5760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5107. rm -rf conftest*
  5108. eval "ac_cv_lib_$ac_lib_var=yes"
  5109. else
  5110. echo "configure: failed program was:" >&5
  5111. cat conftest.$ac_ext >&5
  5112. rm -rf conftest*
  5113. eval "ac_cv_lib_$ac_lib_var=no"
  5114. fi
  5115. rm -f conftest*
  5116. LIBS="$ac_save_LIBS"
  5117. fi
  5118. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5119. echo "$ac_t""yes" 1>&6
  5120. ac_tr_lib=HAVE_LIB`echo gnugetopt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  5121. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  5122. cat >> confdefs.h <<EOF
  5123. #define $ac_tr_lib 1
  5124. EOF
  5125. LIBS="-lgnugetopt $LIBS"
  5126. else
  5127. echo "$ac_t""no" 1>&6
  5128. fi
  5129. cat >> confdefs.h <<EOF
  5130. #define VERSION "${VERSION}"
  5131. EOF
  5132. # Check whether --enable-sse or --disable-sse was given.
  5133. if test "${enable_sse+set}" = set; then
  5134. enableval="$enable_sse"
  5135. if test "$enableval" = yes; then cat >> confdefs.h <<\EOF
  5136. #define _USE_SSE 1
  5137. EOF
  5138. fi
  5139. fi
  5140. trap '' 1 2 15
  5141. cat > confcache <<\EOF
  5142. # This file is a shell script that caches the results of configure
  5143. # tests run on this system so they can be shared between configure
  5144. # scripts and configure runs. It is not useful on other systems.
  5145. # If it contains results you don't want to keep, you may remove or edit it.
  5146. #
  5147. # By default, configure uses ./config.cache as the cache file,
  5148. # creating it if it does not exist already. You can give configure
  5149. # the --cache-file=FILE option to use a different cache file; that is
  5150. # what configure does when it calls configure scripts in
  5151. # subdirectories, so they share the cache.
  5152. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  5153. # config.status only pays attention to the cache file if you give it the
  5154. # --recheck option to rerun configure.
  5155. #
  5156. EOF
  5157. # The following way of writing the cache mishandles newlines in values,
  5158. # but we know of no workaround that is simple, portable, and efficient.
  5159. # So, don't put newlines in cache variables' values.
  5160. # Ultrix sh set writes to stderr and can't be redirected directly,
  5161. # and sets the high bit in the cache file unless we assign to the vars.
  5162. (set) 2>&1 |
  5163. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5164. *ac_space=\ *)
  5165. # `set' does not quote correctly, so add quotes (double-quote substitution
  5166. # turns \\\\ into \\, and sed turns \\ into \).
  5167. sed -n \
  5168. -e "s/'/'\\\\''/g" \
  5169. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  5170. ;;
  5171. *)
  5172. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5173. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  5174. ;;
  5175. esac >> confcache
  5176. if cmp -s $cache_file confcache; then
  5177. :
  5178. else
  5179. if test -w $cache_file; then
  5180. echo "updating cache $cache_file"
  5181. cat confcache > $cache_file
  5182. else
  5183. echo "not updating unwritable cache $cache_file"
  5184. fi
  5185. fi
  5186. rm -f confcache
  5187. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  5188. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5189. # Let make expand exec_prefix.
  5190. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5191. # Any assignment to VPATH causes Sun make to only execute
  5192. # the first set of double-colon rules, so remove it if not needed.
  5193. # If there is a colon in the path, we need to keep it.
  5194. if test "x$srcdir" = x.; then
  5195. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  5196. fi
  5197. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  5198. # Transform confdefs.h into DEFS.
  5199. # Protect against shell expansion while executing Makefile rules.
  5200. # Protect against Makefile macro expansion.
  5201. cat > conftest.defs <<\EOF
  5202. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  5203. s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
  5204. s%\[%\\&%g
  5205. s%\]%\\&%g
  5206. s%\$%$$%g
  5207. EOF
  5208. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  5209. rm -f conftest.defs
  5210. # Without the "./", some shells look in PATH for config.status.
  5211. : ${CONFIG_STATUS=./config.status}
  5212. echo creating $CONFIG_STATUS
  5213. rm -f $CONFIG_STATUS
  5214. cat > $CONFIG_STATUS <<EOF
  5215. #! /bin/sh
  5216. # Generated automatically by configure.
  5217. # Run this file to recreate the current configuration.
  5218. # This directory was configured as follows,
  5219. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  5220. #
  5221. # $0 $ac_configure_args
  5222. #
  5223. # Compiler output produced by configure, useful for debugging
  5224. # configure, is in ./config.log if it exists.
  5225. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  5226. for ac_option
  5227. do
  5228. case "\$ac_option" in
  5229. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5230. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  5231. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  5232. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  5233. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  5234. exit 0 ;;
  5235. -help | --help | --hel | --he | --h)
  5236. echo "\$ac_cs_usage"; exit 0 ;;
  5237. *) echo "\$ac_cs_usage"; exit 1 ;;
  5238. esac
  5239. done
  5240. ac_given_srcdir=$srcdir
  5241. ac_given_INSTALL="$INSTALL"
  5242. trap 'rm -fr `echo "Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec
  5243. win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile
  5244. win32/speexdec/Makefile " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  5245. EOF
  5246. cat >> $CONFIG_STATUS <<EOF
  5247. # Protect against being on the right side of a sed subst in config.status.
  5248. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  5249. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  5250. $ac_vpsub
  5251. $extrasub
  5252. s%@SHELL@%$SHELL%g
  5253. s%@CFLAGS@%$CFLAGS%g
  5254. s%@CPPFLAGS@%$CPPFLAGS%g
  5255. s%@CXXFLAGS@%$CXXFLAGS%g
  5256. s%@FFLAGS@%$FFLAGS%g
  5257. s%@DEFS@%$DEFS%g
  5258. s%@LDFLAGS@%$LDFLAGS%g
  5259. s%@LIBS@%$LIBS%g
  5260. s%@exec_prefix@%$exec_prefix%g
  5261. s%@prefix@%$prefix%g
  5262. s%@program_transform_name@%$program_transform_name%g
  5263. s%@bindir@%$bindir%g
  5264. s%@sbindir@%$sbindir%g
  5265. s%@libexecdir@%$libexecdir%g
  5266. s%@datadir@%$datadir%g
  5267. s%@sysconfdir@%$sysconfdir%g
  5268. s%@sharedstatedir@%$sharedstatedir%g
  5269. s%@localstatedir@%$localstatedir%g
  5270. s%@libdir@%$libdir%g
  5271. s%@includedir@%$includedir%g
  5272. s%@oldincludedir@%$oldincludedir%g
  5273. s%@infodir@%$infodir%g
  5274. s%@mandir@%$mandir%g
  5275. s%@SPEEX_LT_CURRENT@%$SPEEX_LT_CURRENT%g
  5276. s%@SPEEX_LT_REVISION@%$SPEEX_LT_REVISION%g
  5277. s%@SPEEX_LT_AGE@%$SPEEX_LT_AGE%g
  5278. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  5279. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  5280. s%@INSTALL_DATA@%$INSTALL_DATA%g
  5281. s%@PACKAGE@%$PACKAGE%g
  5282. s%@VERSION@%$VERSION%g
  5283. s%@ACLOCAL@%$ACLOCAL%g
  5284. s%@AUTOCONF@%$AUTOCONF%g
  5285. s%@AUTOMAKE@%$AUTOMAKE%g
  5286. s%@AUTOHEADER@%$AUTOHEADER%g
  5287. s%@MAKEINFO@%$MAKEINFO%g
  5288. s%@SET_MAKE@%$SET_MAKE%g
  5289. s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
  5290. s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
  5291. s%@MAINT@%$MAINT%g
  5292. s%@host@%$host%g
  5293. s%@host_alias@%$host_alias%g
  5294. s%@host_cpu@%$host_cpu%g
  5295. s%@host_vendor@%$host_vendor%g
  5296. s%@host_os@%$host_os%g
  5297. s%@build@%$build%g
  5298. s%@build_alias@%$build_alias%g
  5299. s%@build_cpu@%$build_cpu%g
  5300. s%@build_vendor@%$build_vendor%g
  5301. s%@build_os@%$build_os%g
  5302. s%@CC@%$CC%g
  5303. s%@LN_S@%$LN_S%g
  5304. s%@OBJEXT@%$OBJEXT%g
  5305. s%@EXEEXT@%$EXEEXT%g
  5306. s%@ECHO@%$ECHO%g
  5307. s%@RANLIB@%$RANLIB%g
  5308. s%@STRIP@%$STRIP%g
  5309. s%@CPP@%$CPP%g
  5310. s%@LIBTOOL@%$LIBTOOL%g
  5311. s%@OGG_LIBS@%$OGG_LIBS%g
  5312. s%@OGG_INCLUDES@%$OGG_INCLUDES%g
  5313. s%@OGG_LDFLAGS@%$OGG_LDFLAGS%g
  5314. s%@src@%$src%g
  5315. CEOF
  5316. EOF
  5317. cat >> $CONFIG_STATUS <<\EOF
  5318. # Split the substitutions into bite-sized pieces for seds with
  5319. # small command number limits, like on Digital OSF/1 and HP-UX.
  5320. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  5321. ac_file=1 # Number of current file.
  5322. ac_beg=1 # First line for current file.
  5323. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  5324. ac_more_lines=:
  5325. ac_sed_cmds=""
  5326. while $ac_more_lines; do
  5327. if test $ac_beg -gt 1; then
  5328. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  5329. else
  5330. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  5331. fi
  5332. if test ! -s conftest.s$ac_file; then
  5333. ac_more_lines=false
  5334. rm -f conftest.s$ac_file
  5335. else
  5336. if test -z "$ac_sed_cmds"; then
  5337. ac_sed_cmds="sed -f conftest.s$ac_file"
  5338. else
  5339. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  5340. fi
  5341. ac_file=`expr $ac_file + 1`
  5342. ac_beg=$ac_end
  5343. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  5344. fi
  5345. done
  5346. if test -z "$ac_sed_cmds"; then
  5347. ac_sed_cmds=cat
  5348. fi
  5349. EOF
  5350. cat >> $CONFIG_STATUS <<EOF
  5351. CONFIG_FILES=\${CONFIG_FILES-"Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec
  5352. win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile
  5353. win32/speexdec/Makefile "}
  5354. EOF
  5355. cat >> $CONFIG_STATUS <<\EOF
  5356. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  5357. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  5358. case "$ac_file" in
  5359. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  5360. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  5361. *) ac_file_in="${ac_file}.in" ;;
  5362. esac
  5363. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  5364. # Remove last slash and all that follows it. Not all systems have dirname.
  5365. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5366. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5367. # The file is in a subdirectory.
  5368. test ! -d "$ac_dir" && mkdir "$ac_dir"
  5369. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  5370. # A "../" for each directory in $ac_dir_suffix.
  5371. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  5372. else
  5373. ac_dir_suffix= ac_dots=
  5374. fi
  5375. case "$ac_given_srcdir" in
  5376. .) srcdir=.
  5377. if test -z "$ac_dots"; then top_srcdir=.
  5378. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  5379. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  5380. *) # Relative path.
  5381. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  5382. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  5383. esac
  5384. case "$ac_given_INSTALL" in
  5385. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  5386. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  5387. esac
  5388. echo creating "$ac_file"
  5389. rm -f "$ac_file"
  5390. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  5391. case "$ac_file" in
  5392. *Makefile*) ac_comsub="1i\\
  5393. # $configure_input" ;;
  5394. *) ac_comsub= ;;
  5395. esac
  5396. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  5397. sed -e "$ac_comsub
  5398. s%@configure_input@%$configure_input%g
  5399. s%@srcdir@%$srcdir%g
  5400. s%@top_srcdir@%$top_srcdir%g
  5401. s%@INSTALL@%$INSTALL%g
  5402. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  5403. fi; done
  5404. rm -f conftest.s*
  5405. EOF
  5406. cat >> $CONFIG_STATUS <<EOF
  5407. EOF
  5408. cat >> $CONFIG_STATUS <<\EOF
  5409. exit 0
  5410. EOF
  5411. chmod +x $CONFIG_STATUS
  5412. rm -fr confdefs* $ac_clean_files
  5413. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  5414. if test "x$src" = "x"; then
  5415. echo "You don't seem to have libogg installed. Only the Speex library (libspeex) will be built (no encoder/decoder executable)"
  5416. echo "You can download libogg from http://www.ogg.org/ogg/index.html"
  5417. fi
  5418. echo "Type \"make; make install\" to compile and install Speex";