viewing paste Unknown #1693 | Bash

Posted on the
  1. # This patch file was generated by NetBeans IDE
  2. # Following Index: paths are relative to: /home/lighta/Documents/Myscript/RO/Servs/ra2
  3. # This patch can be applied using context Tools: Patch action on respective folder.
  4. # It uses platform neutral UTF-8 encoding and \n newlines.
  5. # Above lines and this line are ignored by the patching process.
  6. Index: CMakeLists.txt
  7. --- CMakeLists.txt Base (BASE)
  8. +++ CMakeLists.txt Locally Modified (Based On LOCAL)
  9. Index: autom4te.cache/output.0
  10. --- autom4te.cache/output.0 No Base Revision
  11. +++ autom4te.cache/output.0 Locally New
  12. @@ -0,0 +1,7227 @@
  13. +@%:@! /bin/sh
  14. +@%:@ From configure.in Revision: 16271 .
  15. +@%:@ Guess values for system-dependent variables and create Makefiles.
  16. +@%:@ Generated by GNU Autoconf 2.68.
  17. +@%:@ 
  18. +@%:@ 
  19. +@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  20. +@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  21. +@%:@ Foundation, Inc.
  22. +@%:@ 
  23. +@%:@ 
  24. +@%:@ This configure script is free software; the Free Software Foundation
  25. +@%:@ gives unlimited permission to copy, distribute and modify it.
  26. +## -------------------- ##
  27. +## M4sh Initialization. ##
  28. +## -------------------- ##
  29. +
  30. +# Be more Bourne compatible
  31. +DUALCASE=1; export DUALCASE # for MKS sh
  32. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  33. +  emulate sh
  34. +  NULLCMD=:
  35. +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  36. +  # is contrary to our usage.  Disable this feature.
  37. +  alias -g '${1+"$@"}'='"$@"'
  38. +  setopt NO_GLOB_SUBST
  39. +else
  40. +  case `(set -o) 2>/dev/null` in @%:@(
  41. +  *posix*) :
  42. +    set -o posix ;; @%:@(
  43. +  *) :
  44. +     ;;
  45. +esac
  46. +fi
  47. +
  48. +
  49. +as_nl='
  50. +'
  51. +export as_nl
  52. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  53. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  54. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  55. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  56. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  57. +# but without wasting forks for bash or zsh.
  58. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  59. +    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  60. +  as_echo='print -r --'
  61. +  as_echo_n='print -rn --'
  62. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  63. +  as_echo='printf %s\n'
  64. +  as_echo_n='printf %s'
  65. +else
  66. +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  67. +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  68. +    as_echo_n='/usr/ucb/echo -n'
  69. +  else
  70. +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  71. +    as_echo_n_body='eval
  72. +      arg=$1;
  73. +      case $arg in @%:@(
  74. +      *"$as_nl"*)
  75. +	expr "X$arg" : "X\\(.*\\)$as_nl";
  76. +	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  77. +      esac;
  78. +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  79. +    '
  80. +    export as_echo_n_body
  81. +    as_echo_n='sh -c $as_echo_n_body as_echo'
  82. +  fi
  83. +  export as_echo_body
  84. +  as_echo='sh -c $as_echo_body as_echo'
  85. +fi
  86. +
  87. +# The user is always right.
  88. +if test "${PATH_SEPARATOR+set}" != set; then
  89. +  PATH_SEPARATOR=:
  90. +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  91. +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  92. +      PATH_SEPARATOR=';'
  93. +  }
  94. +fi
  95. +
  96. +
  97. +# IFS
  98. +# We need space, tab and new line, in precisely that order.  Quoting is
  99. +# there to prevent editors from complaining about space-tab.
  100. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  101. +# splitting by setting IFS to empty value.)
  102. +IFS=" ""	$as_nl"
  103. +
  104. +# Find who we are.  Look in the path if we contain no directory separator.
  105. +as_myself=
  106. +case $0 in @%:@((
  107. +  *[\\/]* ) as_myself=$0 ;;
  108. +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  109. +for as_dir in $PATH
  110. +do
  111. +  IFS=$as_save_IFS
  112. +  test -z "$as_dir" && as_dir=.
  113. +    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  114. +  done
  115. +IFS=$as_save_IFS
  116. +
  117. +     ;;
  118. +esac
  119. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  120. +# in which case we are not to be found in the path.
  121. +if test "x$as_myself" = x; then
  122. +  as_myself=$0
  123. +fi
  124. +if test ! -f "$as_myself"; then
  125. +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  126. +  exit 1
  127. +fi
  128. +
  129. +# Unset variables that we do not need and which cause bugs (e.g. in
  130. +# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  131. +# suppresses any "Segmentation fault" message there.  '((' could
  132. +# trigger a bug in pdksh 5.2.14.
  133. +for as_var in BASH_ENV ENV MAIL MAILPATH
  134. +do eval test x\${$as_var+set} = xset \
  135. +  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  136. +done
  137. +PS1='$ '
  138. +PS2='> '
  139. +PS4='+ '
  140. +
  141. +# NLS nuisances.
  142. +LC_ALL=C
  143. +export LC_ALL
  144. +LANGUAGE=C
  145. +export LANGUAGE
  146. +
  147. +# CDPATH.
  148. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  149. +
  150. +if test "x$CONFIG_SHELL" = x; then
  151. +  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. +  emulate sh
  153. +  NULLCMD=:
  154. +  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. +  # is contrary to our usage.  Disable this feature.
  156. +  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. +  setopt NO_GLOB_SUBST
  158. +else
  159. +  case \`(set -o) 2>/dev/null\` in @%:@(
  160. +  *posix*) :
  161. +    set -o posix ;; @%:@(
  162. +  *) :
  163. +     ;;
  164. +esac
  165. +fi
  166. +"
  167. +  as_required="as_fn_return () { (exit \$1); }
  168. +as_fn_success () { as_fn_return 0; }
  169. +as_fn_failure () { as_fn_return 1; }
  170. +as_fn_ret_success () { return 0; }
  171. +as_fn_ret_failure () { return 1; }
  172. +
  173. +exitcode=0
  174. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. +  
  180. +else
  181. +  exitcode=1; echo positional parameters were not saved.
  182. +fi
  183. +test x\$exitcode = x0 || exit 1"
  184. +  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. +  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. +  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. +  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. +test \$(( 1 + 1 )) = 2 || exit 1"
  189. +  if (eval "$as_required") 2>/dev/null; then :
  190. +  as_have_required=yes
  191. +else
  192. +  as_have_required=no
  193. +fi
  194. +  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. +  
  196. +else
  197. +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  198. +as_found=false
  199. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  200. +do
  201. +  IFS=$as_save_IFS
  202. +  test -z "$as_dir" && as_dir=.
  203. +  as_found=:
  204. +  case $as_dir in @%:@(
  205. +	 /*)
  206. +	   for as_base in sh bash ksh sh5; do
  207. +	     # Try only shells that exist, to save several forks.
  208. +	     as_shell=$as_dir/$as_base
  209. +	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. +		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. +  CONFIG_SHELL=$as_shell as_have_required=yes
  212. +		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  213. +  break 2
  214. +fi
  215. +fi
  216. +	   done;;
  217. +       esac
  218. +  as_found=false
  219. +done
  220. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  221. +	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  222. +  CONFIG_SHELL=$SHELL as_have_required=yes
  223. +fi; }
  224. +IFS=$as_save_IFS
  225. +
  226. +
  227. +      if test "x$CONFIG_SHELL" != x; then :
  228. +  # We cannot yet assume a decent shell, so we have to provide a
  229. +	# neutralization value for shells without unset; and this also
  230. +	# works around shells that cannot unset nonexistent variables.
  231. +	# Preserve -v and -x to the replacement shell.
  232. +	BASH_ENV=/dev/null
  233. +	ENV=/dev/null
  234. +	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. +	export CONFIG_SHELL
  236. +	case $- in @%:@ ((((
  237. +	  *v*x* | *x*v* ) as_opts=-vx ;;
  238. +	  *v* ) as_opts=-v ;;
  239. +	  *x* ) as_opts=-x ;;
  240. +	  * ) as_opts= ;;
  241. +	esac
  242. +	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  243. +fi
  244. +
  245. +    if test x$as_have_required = xno; then :
  246. +  $as_echo "$0: This script requires a shell more modern than all"
  247. +  $as_echo "$0: the shells that I found on your system."
  248. +  if test x${ZSH_VERSION+set} = xset ; then
  249. +    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. +    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. +  else
  252. +    $as_echo "$0: Please tell [email protected] about your system,
  253. +$0: including any error possibly output before this
  254. +$0: message. Then install a modern shell, or manually run
  255. +$0: the script under such a shell if you do have one."
  256. +  fi
  257. +  exit 1
  258. +fi
  259. +fi
  260. +fi
  261. +SHELL=${CONFIG_SHELL-/bin/sh}
  262. +export SHELL
  263. +# Unset more variables known to interfere with behavior of common tools.
  264. +CLICOLOR_FORCE= GREP_OPTIONS=
  265. +unset CLICOLOR_FORCE GREP_OPTIONS
  266. +
  267. +## --------------------- ##
  268. +## M4sh Shell Functions. ##
  269. +## --------------------- ##
  270. +@%:@ as_fn_unset VAR
  271. +@%:@ ---------------
  272. +@%:@ Portably unset VAR.
  273. +as_fn_unset ()
  274. +{
  275. +  { eval $1=; unset $1;}
  276. +}
  277. +as_unset=as_fn_unset
  278. +
  279. +@%:@ as_fn_set_status STATUS
  280. +@%:@ -----------------------
  281. +@%:@ Set @S|@? to STATUS, without forking.
  282. +as_fn_set_status ()
  283. +{
  284. +  return $1
  285. +} @%:@ as_fn_set_status
  286. +
  287. +@%:@ as_fn_exit STATUS
  288. +@%:@ -----------------
  289. +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  290. +as_fn_exit ()
  291. +{
  292. +  set +e
  293. +  as_fn_set_status $1
  294. +  exit $1
  295. +} @%:@ as_fn_exit
  296. +
  297. +@%:@ as_fn_mkdir_p
  298. +@%:@ -------------
  299. +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  300. +as_fn_mkdir_p ()
  301. +{
  302. +
  303. +  case $as_dir in #(
  304. +  -*) as_dir=./$as_dir;;
  305. +  esac
  306. +  test -d "$as_dir" || eval $as_mkdir_p || {
  307. +    as_dirs=
  308. +    while :; do
  309. +      case $as_dir in #(
  310. +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  311. +      *) as_qdir=$as_dir;;
  312. +      esac
  313. +      as_dirs="'$as_qdir' $as_dirs"
  314. +      as_dir=`$as_dirname -- "$as_dir" ||
  315. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  316. +	 X"$as_dir" : 'X\(//\)[^/]' \| \
  317. +	 X"$as_dir" : 'X\(//\)$' \| \
  318. +	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  319. +$as_echo X"$as_dir" |
  320. +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  321. +	    s//\1/
  322. +	    q
  323. +	  }
  324. +	  /^X\(\/\/\)[^/].*/{
  325. +	    s//\1/
  326. +	    q
  327. +	  }
  328. +	  /^X\(\/\/\)$/{
  329. +	    s//\1/
  330. +	    q
  331. +	  }
  332. +	  /^X\(\/\).*/{
  333. +	    s//\1/
  334. +	    q
  335. +	  }
  336. +	  s/.*/./; q'`
  337. +      test -d "$as_dir" && break
  338. +    done
  339. +    test -z "$as_dirs" || eval "mkdir $as_dirs"
  340. +  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  341. +
  342. +
  343. +} @%:@ as_fn_mkdir_p
  344. +@%:@ as_fn_append VAR VALUE
  345. +@%:@ ----------------------
  346. +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  347. +@%:@ advantage of any shell optimizations that allow amortized linear growth over
  348. +@%:@ repeated appends, instead of the typical quadratic growth present in naive
  349. +@%:@ implementations.
  350. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. +  eval 'as_fn_append ()
  352. +  {
  353. +    eval $1+=\$2
  354. +  }'
  355. +else
  356. +  as_fn_append ()
  357. +  {
  358. +    eval $1=\$$1\$2
  359. +  }
  360. +fi # as_fn_append
  361. +
  362. +@%:@ as_fn_arith ARG...
  363. +@%:@ ------------------
  364. +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  365. +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  366. +@%:@ must be portable across @S|@(()) and expr.
  367. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  368. +  eval 'as_fn_arith ()
  369. +  {
  370. +    as_val=$(( $* ))
  371. +  }'
  372. +else
  373. +  as_fn_arith ()
  374. +  {
  375. +    as_val=`expr "$@" || test $? -eq 1`
  376. +  }
  377. +fi # as_fn_arith
  378. +
  379. +
  380. +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  381. +@%:@ ----------------------------------------
  382. +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  383. +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  384. +@%:@ script with STATUS, using 1 if that was 0.
  385. +as_fn_error ()
  386. +{
  387. +  as_status=$1; test $as_status -eq 0 && as_status=1
  388. +  if test "$4"; then
  389. +    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  390. +    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  391. +  fi
  392. +  $as_echo "$as_me: error: $2" >&2
  393. +  as_fn_exit $as_status
  394. +} @%:@ as_fn_error
  395. +
  396. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. +  as_expr=expr
  399. +else
  400. +  as_expr=false
  401. +fi
  402. +
  403. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  404. +  as_basename=basename
  405. +else
  406. +  as_basename=false
  407. +fi
  408. +
  409. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  410. +  as_dirname=dirname
  411. +else
  412. +  as_dirname=false
  413. +fi
  414. +
  415. +as_me=`$as_basename -- "$0" ||
  416. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. +	 X"$0" : 'X\(//\)$' \| \
  418. +	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. +$as_echo X/"$0" |
  420. +    sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. +	    s//\1/
  422. +	    q
  423. +	  }
  424. +	  /^X\/\(\/\/\)$/{
  425. +	    s//\1/
  426. +	    q
  427. +	  }
  428. +	  /^X\/\(\/\).*/{
  429. +	    s//\1/
  430. +	    q
  431. +	  }
  432. +	  s/.*/./; q'`
  433. +
  434. +# Avoid depending upon Character Ranges.
  435. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  436. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  437. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  438. +as_cr_digits='0123456789'
  439. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  440. +
  441. +
  442. +  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  443. +  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  444. +  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  445. +  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  446. +  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  447. +  sed -n '
  448. +    p
  449. +    /[$]LINENO/=
  450. +  ' <$as_myself |
  451. +    sed '
  452. +      s/[$]LINENO.*/&-/
  453. +      t lineno
  454. +      b
  455. +      :lineno
  456. +      N
  457. +      :loop
  458. +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  459. +      t loop
  460. +      s/-\n.*//
  461. +    ' >$as_me.lineno &&
  462. +  chmod +x "$as_me.lineno" ||
  463. +    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  464. +
  465. +  # Don't try to exec as it changes $[0], causing all sort of problems
  466. +  # (the dirname of $[0] is not the place where we might find the
  467. +  # original and so on.  Autoconf is especially sensitive to this).
  468. +  . "./$as_me.lineno"
  469. +  # Exit status is that of the last command.
  470. +  exit
  471. +}
  472. +
  473. +ECHO_C= ECHO_N= ECHO_T=
  474. +case `echo -n x` in @%:@(((((
  475. +-n*)
  476. +  case `echo 'xy\c'` in
  477. +  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  478. +  xy)  ECHO_C='\c';;
  479. +  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  480. +       ECHO_T='	';;
  481. +  esac;;
  482. +*)
  483. +  ECHO_N='-n';;
  484. +esac
  485. +
  486. +rm -f conf$$ conf$$.exe conf$$.file
  487. +if test -d conf$$.dir; then
  488. +  rm -f conf$$.dir/conf$$.file
  489. +else
  490. +  rm -f conf$$.dir
  491. +  mkdir conf$$.dir 2>/dev/null
  492. +fi
  493. +if (echo >conf$$.file) 2>/dev/null; then
  494. +  if ln -s conf$$.file conf$$ 2>/dev/null; then
  495. +    as_ln_s='ln -s'
  496. +    # ... but there are two gotchas:
  497. +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  498. +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  499. +    # In both cases, we have to default to `cp -p'.
  500. +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  501. +      as_ln_s='cp -p'
  502. +  elif ln conf$$.file conf$$ 2>/dev/null; then
  503. +    as_ln_s=ln
  504. +  else
  505. +    as_ln_s='cp -p'
  506. +  fi
  507. +else
  508. +  as_ln_s='cp -p'
  509. +fi
  510. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  511. +rmdir conf$$.dir 2>/dev/null
  512. +
  513. +if mkdir -p . 2>/dev/null; then
  514. +  as_mkdir_p='mkdir -p "$as_dir"'
  515. +else
  516. +  test -d ./-p && rmdir ./-p
  517. +  as_mkdir_p=false
  518. +fi
  519. +
  520. +if test -x / >/dev/null 2>&1; then
  521. +  as_test_x='test -x'
  522. +else
  523. +  if ls -dL / >/dev/null 2>&1; then
  524. +    as_ls_L_option=L
  525. +  else
  526. +    as_ls_L_option=
  527. +  fi
  528. +  as_test_x='
  529. +    eval sh -c '\''
  530. +      if test -d "$1"; then
  531. +	test -d "$1/.";
  532. +      else
  533. +	case $1 in @%:@(
  534. +	-*)set "./$1";;
  535. +	esac;
  536. +	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  537. +	???[sx]*):;;*)false;;esac;fi
  538. +    '\'' sh
  539. +  '
  540. +fi
  541. +as_executable_p=$as_test_x
  542. +
  543. +# Sed expression to map a string onto a valid CPP name.
  544. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  545. +
  546. +# Sed expression to map a string onto a valid variable name.
  547. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  548. +
  549. +
  550. +test -n "$DJDIR" || exec 7<&0 </dev/null
  551. +exec 6>&1
  552. +
  553. +# Name of the host.
  554. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  555. +# so uname gets run too.
  556. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  557. +
  558. +#
  559. +# Initializations.
  560. +#
  561. +ac_default_prefix=/usr/local
  562. +ac_clean_files=
  563. +ac_config_libobj_dir=.
  564. +LIB@&t@OBJS=
  565. +cross_compiling=no
  566. +subdirs=
  567. +MFLAGS=
  568. +MAKEFLAGS=
  569. +
  570. +# Identity of this package.
  571. +PACKAGE_NAME=
  572. +PACKAGE_TARNAME=
  573. +PACKAGE_VERSION=
  574. +PACKAGE_STRING=
  575. +PACKAGE_BUGREPORT=
  576. +PACKAGE_URL=
  577. +
  578. +ac_unique_file="rAthena"
  579. +ac_unique_file="src/common/cbasetypes.h"
  580. +# Factoring default headers for most tests.
  581. +ac_includes_default="\
  582. +#include <stdio.h>
  583. +#ifdef HAVE_SYS_TYPES_H
  584. +# include <sys/types.h>
  585. +#endif
  586. +#ifdef HAVE_SYS_STAT_H
  587. +# include <sys/stat.h>
  588. +#endif
  589. +#ifdef STDC_HEADERS
  590. +# include <stdlib.h>
  591. +# include <stddef.h>
  592. +#else
  593. +# ifdef HAVE_STDLIB_H
  594. +#  include <stdlib.h>
  595. +# endif
  596. +#endif
  597. +#ifdef HAVE_STRING_H
  598. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  599. +#  include <memory.h>
  600. +# endif
  601. +# include <string.h>
  602. +#endif
  603. +#ifdef HAVE_STRINGS_H
  604. +# include <strings.h>
  605. +#endif
  606. +#ifdef HAVE_INTTYPES_H
  607. +# include <inttypes.h>
  608. +#endif
  609. +#ifdef HAVE_STDINT_H
  610. +# include <stdint.h>
  611. +#endif
  612. +#ifdef HAVE_UNISTD_H
  613. +# include <unistd.h>
  614. +#endif"
  615. +
  616. +ac_subst_vars='LTLIBOBJS
  617. +LIB@&t@OBJS
  618. +DLLEXT
  619. +PCRE_CFLAGS
  620. +PCRE_LIBS
  621. +HAVE_PCRE
  622. +MYSQL_LIBS
  623. +MYSQL_CFLAGS
  624. +MYSQL_VERSION
  625. +HAVE_MYSQL
  626. +MYSQL_CONFIG_HOME
  627. +AR
  628. +SET_MAKE
  629. +EGREP
  630. +GREP
  631. +CPP
  632. +OBJEXT
  633. +EXEEXT
  634. +ac_ct_CC
  635. +CPPFLAGS
  636. +LDFLAGS
  637. +CFLAGS
  638. +CC
  639. +target_alias
  640. +host_alias
  641. +build_alias
  642. +LIBS
  643. +ECHO_T
  644. +ECHO_N
  645. +ECHO_C
  646. +DEFS
  647. +mandir
  648. +localedir
  649. +libdir
  650. +psdir
  651. +pdfdir
  652. +dvidir
  653. +htmldir
  654. +infodir
  655. +docdir
  656. +oldincludedir
  657. +includedir
  658. +localstatedir
  659. +sharedstatedir
  660. +sysconfdir
  661. +datadir
  662. +datarootdir
  663. +libexecdir
  664. +sbindir
  665. +bindir
  666. +program_transform_name
  667. +prefix
  668. +exec_prefix
  669. +PACKAGE_URL
  670. +PACKAGE_BUGREPORT
  671. +PACKAGE_STRING
  672. +PACKAGE_VERSION
  673. +PACKAGE_TARNAME
  674. +PACKAGE_NAME
  675. +PATH_SEPARATOR
  676. +SHELL'
  677. +ac_subst_files=''
  678. +ac_user_opts='
  679. +enable_option_checking
  680. +enable_manager
  681. +enable_packetver
  682. +enable_debug
  683. +enable_buildbot
  684. +enable_rdtsc
  685. +enable_profiler
  686. +enable_64bit
  687. +enable_lto
  688. +with_maxconn
  689. +with_mysql
  690. +with_MYSQL_CFLAGS
  691. +with_MYSQL_LIBS
  692. +with_pcre
  693. +with_zlib
  694. +'
  695. +      ac_precious_vars='build_alias
  696. +host_alias
  697. +target_alias
  698. +CC
  699. +CFLAGS
  700. +LDFLAGS
  701. +LIBS
  702. +CPPFLAGS
  703. +CPP'
  704. +
  705. +
  706. +# Initialize some variables set by options.
  707. +ac_init_help=
  708. +ac_init_version=false
  709. +ac_unrecognized_opts=
  710. +ac_unrecognized_sep=
  711. +# The variables have the same names as the options, with
  712. +# dashes changed to underlines.
  713. +cache_file=/dev/null
  714. +exec_prefix=NONE
  715. +no_create=
  716. +no_recursion=
  717. +prefix=NONE
  718. +program_prefix=NONE
  719. +program_suffix=NONE
  720. +program_transform_name=s,x,x,
  721. +silent=
  722. +site=
  723. +srcdir=
  724. +verbose=
  725. +x_includes=NONE
  726. +x_libraries=NONE
  727. +
  728. +# Installation directory options.
  729. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  730. +# and all the variables that are supposed to be based on exec_prefix
  731. +# by default will actually change.
  732. +# Use braces instead of parens because sh, perl, etc. also accept them.
  733. +# (The list follows the same order as the GNU Coding Standards.)
  734. +bindir='${exec_prefix}/bin'
  735. +sbindir='${exec_prefix}/sbin'
  736. +libexecdir='${exec_prefix}/libexec'
  737. +datarootdir='${prefix}/share'
  738. +datadir='${datarootdir}'
  739. +sysconfdir='${prefix}/etc'
  740. +sharedstatedir='${prefix}/com'
  741. +localstatedir='${prefix}/var'
  742. +includedir='${prefix}/include'
  743. +oldincludedir='/usr/include'
  744. +docdir='${datarootdir}/doc/${PACKAGE}'
  745. +infodir='${datarootdir}/info'
  746. +htmldir='${docdir}'
  747. +dvidir='${docdir}'
  748. +pdfdir='${docdir}'
  749. +psdir='${docdir}'
  750. +libdir='${exec_prefix}/lib'
  751. +localedir='${datarootdir}/locale'
  752. +mandir='${datarootdir}/man'
  753. +
  754. +ac_prev=
  755. +ac_dashdash=
  756. +for ac_option
  757. +do
  758. +  # If the previous option needs an argument, assign it.
  759. +  if test -n "$ac_prev"; then
  760. +    eval $ac_prev=\$ac_option
  761. +    ac_prev=
  762. +    continue
  763. +  fi
  764. +
  765. +  case $ac_option in
  766. +  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  767. +  *=)   ac_optarg= ;;
  768. +  *)    ac_optarg=yes ;;
  769. +  esac
  770. +
  771. +  # Accept the important Cygnus configure options, so we can diagnose typos.
  772. +
  773. +  case $ac_dashdash$ac_option in
  774. +  --)
  775. +    ac_dashdash=yes ;;
  776. +
  777. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  778. +    ac_prev=bindir ;;
  779. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  780. +    bindir=$ac_optarg ;;
  781. +
  782. +  -build | --build | --buil | --bui | --bu)
  783. +    ac_prev=build_alias ;;
  784. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  785. +    build_alias=$ac_optarg ;;
  786. +
  787. +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  788. +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  789. +    ac_prev=cache_file ;;
  790. +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  791. +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  792. +    cache_file=$ac_optarg ;;
  793. +
  794. +  --config-cache | -C)
  795. +    cache_file=config.cache ;;
  796. +
  797. +  -datadir | --datadir | --datadi | --datad)
  798. +    ac_prev=datadir ;;
  799. +  -datadir=* | --datadir=* | --datadi=* | --datad=*)
  800. +    datadir=$ac_optarg ;;
  801. +
  802. +  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  803. +  | --dataroo | --dataro | --datar)
  804. +    ac_prev=datarootdir ;;
  805. +  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  806. +  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  807. +    datarootdir=$ac_optarg ;;
  808. +
  809. +  -disable-* | --disable-*)
  810. +    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  811. +    # Reject names that are not valid shell variable names.
  812. +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  813. +      as_fn_error $? "invalid feature name: $ac_useropt"
  814. +    ac_useropt_orig=$ac_useropt
  815. +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  816. +    case $ac_user_opts in
  817. +      *"
  818. +"enable_$ac_useropt"
  819. +"*) ;;
  820. +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  821. +	 ac_unrecognized_sep=', ';;
  822. +    esac
  823. +    eval enable_$ac_useropt=no ;;
  824. +
  825. +  -docdir | --docdir | --docdi | --doc | --do)
  826. +    ac_prev=docdir ;;
  827. +  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  828. +    docdir=$ac_optarg ;;
  829. +
  830. +  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  831. +    ac_prev=dvidir ;;
  832. +  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  833. +    dvidir=$ac_optarg ;;
  834. +
  835. +  -enable-* | --enable-*)
  836. +    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  837. +    # Reject names that are not valid shell variable names.
  838. +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  839. +      as_fn_error $? "invalid feature name: $ac_useropt"
  840. +    ac_useropt_orig=$ac_useropt
  841. +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  842. +    case $ac_user_opts in
  843. +      *"
  844. +"enable_$ac_useropt"
  845. +"*) ;;
  846. +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  847. +	 ac_unrecognized_sep=', ';;
  848. +    esac
  849. +    eval enable_$ac_useropt=\$ac_optarg ;;
  850. +
  851. +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  852. +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  853. +  | --exec | --exe | --ex)
  854. +    ac_prev=exec_prefix ;;
  855. +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  856. +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  857. +  | --exec=* | --exe=* | --ex=*)
  858. +    exec_prefix=$ac_optarg ;;
  859. +
  860. +  -gas | --gas | --ga | --g)
  861. +    # Obsolete; use --with-gas.
  862. +    with_gas=yes ;;
  863. +
  864. +  -help | --help | --hel | --he | -h)
  865. +    ac_init_help=long ;;
  866. +  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  867. +    ac_init_help=recursive ;;
  868. +  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  869. +    ac_init_help=short ;;
  870. +
  871. +  -host | --host | --hos | --ho)
  872. +    ac_prev=host_alias ;;
  873. +  -host=* | --host=* | --hos=* | --ho=*)
  874. +    host_alias=$ac_optarg ;;
  875. +
  876. +  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  877. +    ac_prev=htmldir ;;
  878. +  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  879. +  | --ht=*)
  880. +    htmldir=$ac_optarg ;;
  881. +
  882. +  -includedir | --includedir | --includedi | --included | --include \
  883. +  | --includ | --inclu | --incl | --inc)
  884. +    ac_prev=includedir ;;
  885. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  886. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  887. +    includedir=$ac_optarg ;;
  888. +
  889. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  890. +    ac_prev=infodir ;;
  891. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  892. +    infodir=$ac_optarg ;;
  893. +
  894. +  -libdir | --libdir | --libdi | --libd)
  895. +    ac_prev=libdir ;;
  896. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  897. +    libdir=$ac_optarg ;;
  898. +
  899. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  900. +  | --libexe | --libex | --libe)
  901. +    ac_prev=libexecdir ;;
  902. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  903. +  | --libexe=* | --libex=* | --libe=*)
  904. +    libexecdir=$ac_optarg ;;
  905. +
  906. +  -localedir | --localedir | --localedi | --localed | --locale)
  907. +    ac_prev=localedir ;;
  908. +  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  909. +    localedir=$ac_optarg ;;
  910. +
  911. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  912. +  | --localstate | --localstat | --localsta | --localst | --locals)
  913. +    ac_prev=localstatedir ;;
  914. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  915. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  916. +    localstatedir=$ac_optarg ;;
  917. +
  918. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  919. +    ac_prev=mandir ;;
  920. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  921. +    mandir=$ac_optarg ;;
  922. +
  923. +  -nfp | --nfp | --nf)
  924. +    # Obsolete; use --without-fp.
  925. +    with_fp=no ;;
  926. +
  927. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  928. +  | --no-cr | --no-c | -n)
  929. +    no_create=yes ;;
  930. +
  931. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  932. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  933. +    no_recursion=yes ;;
  934. +
  935. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  936. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  937. +  | --oldin | --oldi | --old | --ol | --o)
  938. +    ac_prev=oldincludedir ;;
  939. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  940. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  941. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  942. +    oldincludedir=$ac_optarg ;;
  943. +
  944. +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  945. +    ac_prev=prefix ;;
  946. +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  947. +    prefix=$ac_optarg ;;
  948. +
  949. +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  950. +  | --program-pre | --program-pr | --program-p)
  951. +    ac_prev=program_prefix ;;
  952. +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  953. +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  954. +    program_prefix=$ac_optarg ;;
  955. +
  956. +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  957. +  | --program-suf | --program-su | --program-s)
  958. +    ac_prev=program_suffix ;;
  959. +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  960. +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  961. +    program_suffix=$ac_optarg ;;
  962. +
  963. +  -program-transform-name | --program-transform-name \
  964. +  | --program-transform-nam | --program-transform-na \
  965. +  | --program-transform-n | --program-transform- \
  966. +  | --program-transform | --program-transfor \
  967. +  | --program-transfo | --program-transf \
  968. +  | --program-trans | --program-tran \
  969. +  | --progr-tra | --program-tr | --program-t)
  970. +    ac_prev=program_transform_name ;;
  971. +  -program-transform-name=* | --program-transform-name=* \
  972. +  | --program-transform-nam=* | --program-transform-na=* \
  973. +  | --program-transform-n=* | --program-transform-=* \
  974. +  | --program-transform=* | --program-transfor=* \
  975. +  | --program-transfo=* | --program-transf=* \
  976. +  | --program-trans=* | --program-tran=* \
  977. +  | --progr-tra=* | --program-tr=* | --program-t=*)
  978. +    program_transform_name=$ac_optarg ;;
  979. +
  980. +  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  981. +    ac_prev=pdfdir ;;
  982. +  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  983. +    pdfdir=$ac_optarg ;;
  984. +
  985. +  -psdir | --psdir | --psdi | --psd | --ps)
  986. +    ac_prev=psdir ;;
  987. +  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  988. +    psdir=$ac_optarg ;;
  989. +
  990. +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  991. +  | -silent | --silent | --silen | --sile | --sil)
  992. +    silent=yes ;;
  993. +
  994. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  995. +    ac_prev=sbindir ;;
  996. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  997. +  | --sbi=* | --sb=*)
  998. +    sbindir=$ac_optarg ;;
  999. +
  1000. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1001. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1002. +  | --sharedst | --shareds | --shared | --share | --shar \
  1003. +  | --sha | --sh)
  1004. +    ac_prev=sharedstatedir ;;
  1005. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1006. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1007. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1008. +  | --sha=* | --sh=*)
  1009. +    sharedstatedir=$ac_optarg ;;
  1010. +
  1011. +  -site | --site | --sit)
  1012. +    ac_prev=site ;;
  1013. +  -site=* | --site=* | --sit=*)
  1014. +    site=$ac_optarg ;;
  1015. +
  1016. +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1017. +    ac_prev=srcdir ;;
  1018. +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1019. +    srcdir=$ac_optarg ;;
  1020. +
  1021. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1022. +  | --syscon | --sysco | --sysc | --sys | --sy)
  1023. +    ac_prev=sysconfdir ;;
  1024. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1025. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1026. +    sysconfdir=$ac_optarg ;;
  1027. +
  1028. +  -target | --target | --targe | --targ | --tar | --ta | --t)
  1029. +    ac_prev=target_alias ;;
  1030. +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1031. +    target_alias=$ac_optarg ;;
  1032. +
  1033. +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1034. +    verbose=yes ;;
  1035. +
  1036. +  -version | --version | --versio | --versi | --vers | -V)
  1037. +    ac_init_version=: ;;
  1038. +
  1039. +  -with-* | --with-*)
  1040. +    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1041. +    # Reject names that are not valid shell variable names.
  1042. +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. +      as_fn_error $? "invalid package name: $ac_useropt"
  1044. +    ac_useropt_orig=$ac_useropt
  1045. +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. +    case $ac_user_opts in
  1047. +      *"
  1048. +"with_$ac_useropt"
  1049. +"*) ;;
  1050. +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1051. +	 ac_unrecognized_sep=', ';;
  1052. +    esac
  1053. +    eval with_$ac_useropt=\$ac_optarg ;;
  1054. +
  1055. +  -without-* | --without-*)
  1056. +    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1057. +    # Reject names that are not valid shell variable names.
  1058. +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1059. +      as_fn_error $? "invalid package name: $ac_useropt"
  1060. +    ac_useropt_orig=$ac_useropt
  1061. +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1062. +    case $ac_user_opts in
  1063. +      *"
  1064. +"with_$ac_useropt"
  1065. +"*) ;;
  1066. +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1067. +	 ac_unrecognized_sep=', ';;
  1068. +    esac
  1069. +    eval with_$ac_useropt=no ;;
  1070. +
  1071. +  --x)
  1072. +    # Obsolete; use --with-x.
  1073. +    with_x=yes ;;
  1074. +
  1075. +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1076. +  | --x-incl | --x-inc | --x-in | --x-i)
  1077. +    ac_prev=x_includes ;;
  1078. +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1079. +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1080. +    x_includes=$ac_optarg ;;
  1081. +
  1082. +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1083. +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1084. +    ac_prev=x_libraries ;;
  1085. +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1086. +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1087. +    x_libraries=$ac_optarg ;;
  1088. +
  1089. +  -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1090. +Try \`$0 --help' for more information"
  1091. +    ;;
  1092. +
  1093. +  *=*)
  1094. +    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1095. +    # Reject names that are not valid shell variable names.
  1096. +    case $ac_envvar in #(
  1097. +      '' | [0-9]* | *[!_$as_cr_alnum]* )
  1098. +      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1099. +    esac
  1100. +    eval $ac_envvar=\$ac_optarg
  1101. +    export $ac_envvar ;;
  1102. +
  1103. +  *)
  1104. +    # FIXME: should be removed in autoconf 3.0.
  1105. +    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1106. +    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1107. +      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1108. +    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1109. +    ;;
  1110. +
  1111. +  esac
  1112. +done
  1113. +
  1114. +if test -n "$ac_prev"; then
  1115. +  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1116. +  as_fn_error $? "missing argument to $ac_option"
  1117. +fi
  1118. +
  1119. +if test -n "$ac_unrecognized_opts"; then
  1120. +  case $enable_option_checking in
  1121. +    no) ;;
  1122. +    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1123. +    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1124. +  esac
  1125. +fi
  1126. +
  1127. +# Check all directory arguments for consistency.
  1128. +for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1129. +		datadir sysconfdir sharedstatedir localstatedir includedir \
  1130. +		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1131. +		libdir localedir mandir
  1132. +do
  1133. +  eval ac_val=\$$ac_var
  1134. +  # Remove trailing slashes.
  1135. +  case $ac_val in
  1136. +    */ )
  1137. +      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1138. +      eval $ac_var=\$ac_val;;
  1139. +  esac
  1140. +  # Be sure to have absolute directory names.
  1141. +  case $ac_val in
  1142. +    [\\/$]* | ?:[\\/]* )  continue;;
  1143. +    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1144. +  esac
  1145. +  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1146. +done
  1147. +
  1148. +# There might be people who depend on the old broken behavior: `$host'
  1149. +# used to hold the argument of --host etc.
  1150. +# FIXME: To remove some day.
  1151. +build=$build_alias
  1152. +host=$host_alias
  1153. +target=$target_alias
  1154. +
  1155. +# FIXME: To remove some day.
  1156. +if test "x$host_alias" != x; then
  1157. +  if test "x$build_alias" = x; then
  1158. +    cross_compiling=maybe
  1159. +    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1160. +    If a cross compiler is detected then cross compile mode will be used" >&2
  1161. +  elif test "x$build_alias" != "x$host_alias"; then
  1162. +    cross_compiling=yes
  1163. +  fi
  1164. +fi
  1165. +
  1166. +ac_tool_prefix=
  1167. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1168. +
  1169. +test "$silent" = yes && exec 6>/dev/null
  1170. +
  1171. +
  1172. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1173. +ac_ls_di=`ls -di .` &&
  1174. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1175. +  as_fn_error $? "working directory cannot be determined"
  1176. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1177. +  as_fn_error $? "pwd does not report name of working directory"
  1178. +
  1179. +
  1180. +# Find the source files, if location was not specified.
  1181. +if test -z "$srcdir"; then
  1182. +  ac_srcdir_defaulted=yes
  1183. +  # Try the directory containing this script, then the parent directory.
  1184. +  ac_confdir=`$as_dirname -- "$as_myself" ||
  1185. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1186. +	 X"$as_myself" : 'X\(//\)[^/]' \| \
  1187. +	 X"$as_myself" : 'X\(//\)$' \| \
  1188. +	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1189. +$as_echo X"$as_myself" |
  1190. +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1191. +	    s//\1/
  1192. +	    q
  1193. +	  }
  1194. +	  /^X\(\/\/\)[^/].*/{
  1195. +	    s//\1/
  1196. +	    q
  1197. +	  }
  1198. +	  /^X\(\/\/\)$/{
  1199. +	    s//\1/
  1200. +	    q
  1201. +	  }
  1202. +	  /^X\(\/\).*/{
  1203. +	    s//\1/
  1204. +	    q
  1205. +	  }
  1206. +	  s/.*/./; q'`
  1207. +  srcdir=$ac_confdir
  1208. +  if test ! -r "$srcdir/$ac_unique_file"; then
  1209. +    srcdir=..
  1210. +  fi
  1211. +else
  1212. +  ac_srcdir_defaulted=no
  1213. +fi
  1214. +if test ! -r "$srcdir/$ac_unique_file"; then
  1215. +  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1216. +  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1217. +fi
  1218. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1219. +ac_abs_confdir=`(
  1220. +	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1221. +	pwd)`
  1222. +# When building in place, set srcdir=.
  1223. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  1224. +  srcdir=.
  1225. +fi
  1226. +# Remove unnecessary trailing slashes from srcdir.
  1227. +# Double slashes in file names in object file debugging info
  1228. +# mess up M-x gdb in Emacs.
  1229. +case $srcdir in
  1230. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1231. +esac
  1232. +for ac_var in $ac_precious_vars; do
  1233. +  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1234. +  eval ac_env_${ac_var}_value=\$${ac_var}
  1235. +  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1236. +  eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1237. +done
  1238. +
  1239. +#
  1240. +# Report the --help message.
  1241. +#
  1242. +if test "$ac_init_help" = "long"; then
  1243. +  # Omit some internal or obsolete options to make the list less imposing.
  1244. +  # This message is too long to be a string in the A/UX 3.1 sh.
  1245. +  cat <<_ACEOF
  1246. +\`configure' configures this package to adapt to many kinds of systems.
  1247. +
  1248. +Usage: $0 [OPTION]... [VAR=VALUE]...
  1249. +
  1250. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1251. +VAR=VALUE.  See below for descriptions of some of the useful variables.
  1252. +
  1253. +Defaults for the options are specified in brackets.
  1254. +
  1255. +Configuration:
  1256. +  -h, --help              display this help and exit
  1257. +      --help=short        display options specific to this package
  1258. +      --help=recursive    display the short help of all the included packages
  1259. +  -V, --version           display version information and exit
  1260. +  -q, --quiet, --silent   do not print \`checking ...' messages
  1261. +      --cache-file=FILE   cache test results in FILE [disabled]
  1262. +  -C, --config-cache      alias for \`--cache-file=config.cache'
  1263. +  -n, --no-create         do not create output files
  1264. +      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1265. +
  1266. +Installation directories:
  1267. +  --prefix=PREFIX         install architecture-independent files in PREFIX
  1268. +                          @<:@@S|@ac_default_prefix@:>@
  1269. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1270. +                          @<:@PREFIX@:>@
  1271. +
  1272. +By default, \`make install' will install all the files in
  1273. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1274. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1275. +for instance \`--prefix=\$HOME'.
  1276. +
  1277. +For better control, use the options below.
  1278. +
  1279. +Fine tuning of the installation directories:
  1280. +  --bindir=DIR            user executables [EPREFIX/bin]
  1281. +  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1282. +  --libexecdir=DIR        program executables [EPREFIX/libexec]
  1283. +  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1284. +  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1285. +  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1286. +  --libdir=DIR            object code libraries [EPREFIX/lib]
  1287. +  --includedir=DIR        C header files [PREFIX/include]
  1288. +  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1289. +  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1290. +  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1291. +  --infodir=DIR           info documentation [DATAROOTDIR/info]
  1292. +  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1293. +  --mandir=DIR            man documentation [DATAROOTDIR/man]
  1294. +  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
  1295. +  --htmldir=DIR           html documentation [DOCDIR]
  1296. +  --dvidir=DIR            dvi documentation [DOCDIR]
  1297. +  --pdfdir=DIR            pdf documentation [DOCDIR]
  1298. +  --psdir=DIR             ps documentation [DOCDIR]
  1299. +_ACEOF
  1300. +
  1301. +  cat <<\_ACEOF
  1302. +_ACEOF
  1303. +fi
  1304. +
  1305. +if test -n "$ac_init_help"; then
  1306. +
  1307. +  cat <<\_ACEOF
  1308. +
  1309. +Optional Features:
  1310. +  --disable-option-checking  ignore unrecognized --enable/--with options
  1311. +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1312. +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1313. +  --enable-manager=ARG    memory managers: no, builtin, memwatch, dmalloc,
  1314. +                          gcollect, bcheck (defaults to builtin)
  1315. +  --enable-packetver=ARG  Sets the PACKETVER define of the map-server. (see
  1316. +                          src/map/clif.h)
  1317. +  --enable-debug@<:@=ARG@:>@    Compiles extra debug code. (disabled by default)
  1318. +                          (available options: yes, no, gdb)
  1319. +  --enable-buildbot@<:@=ARG@:>@ (available options: yes, no)
  1320. +  --enable-rdtsc          Uses rdtsc as timing source (disabled by default)
  1321. +                          Enable it when you've timing issues. (For example:
  1322. +                          in conjunction with XEN or Other Virtualization
  1323. +                          mechanisms) Note: Please ensure that you've disabled
  1324. +                          dynamic CPU-Frequencys, such as power saving
  1325. +                          options. (On the most modern Dedicated Servers
  1326. +                          cpufreq is preconfigured, see your distribution's
  1327. +                          manual how to disable it)
  1328. +  --enable-profiler=ARG   Profilers: no, gprof (disabled by default)
  1329. +  --disable-64bit         Enforce 32bit output on x86_64 systems.
  1330. +  --enable-lto            Enables or Disables Linktime Code Optimization (LTO
  1331. +                          is enabled by default)
  1332. +
  1333. +Optional Packages:
  1334. +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1335. +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1336. +  --with-maxconn@<:@=ARG@:>@    optionally set the maximum connections the core can
  1337. +                          handle (default: 16384) NOT USED YET - EXPERIMENTAL
  1338. +  --with-mysql@<:@=ARG@:>@      optionally specify the path to the mysql_config
  1339. +                          executable
  1340. +  --with-MYSQL_CFLAGS=ARG specify MYSQL_CFLAGS manually (instead of using
  1341. +                          "mysql_config --include")
  1342. +  --with-MYSQL_LIBS=ARG   specify MYSQL_LIBS manually (instead of using
  1343. +                          "mysql_config --libs")
  1344. +  --with-pcre@<:@=ARG@:>@       use PCRE library, optionally specify the full path
  1345. +                          of pcre installation directory (by default pcre is
  1346. +                          used if found)
  1347. +  --with-zlib=DIR         root directory path of zlib installation (defaults
  1348. +                          to /usr/local or /usr if not found in /usr/local).
  1349. +                          Assumes that the header files are in DIR/include and
  1350. +                          the library files are in DIR/lib
  1351. +
  1352. +Some influential environment variables:
  1353. +  CC          C compiler command
  1354. +  CFLAGS      C compiler flags
  1355. +  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1356. +              nonstandard directory <lib dir>
  1357. +  LIBS        libraries to pass to the linker, e.g. -l<library>
  1358. +  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1359. +              you have headers in a nonstandard directory <include dir>
  1360. +  CPP         C preprocessor
  1361. +
  1362. +Use these variables to override the choices made by `configure' or to help
  1363. +it to find libraries and programs with nonstandard names/locations.
  1364. +
  1365. +Report bugs to the package provider.
  1366. +_ACEOF
  1367. +ac_status=$?
  1368. +fi
  1369. +
  1370. +if test "$ac_init_help" = "recursive"; then
  1371. +  # If there are subdirs, report their specific --help.
  1372. +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1373. +    test -d "$ac_dir" ||
  1374. +      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1375. +      continue
  1376. +    ac_builddir=.
  1377. +
  1378. +case "$ac_dir" in
  1379. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1380. +*)
  1381. +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1382. +  # A ".." for each directory in $ac_dir_suffix.
  1383. +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1384. +  case $ac_top_builddir_sub in
  1385. +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1386. +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1387. +  esac ;;
  1388. +esac
  1389. +ac_abs_top_builddir=$ac_pwd
  1390. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1391. +# for backward compatibility:
  1392. +ac_top_builddir=$ac_top_build_prefix
  1393. +
  1394. +case $srcdir in
  1395. +  .)  # We are building in place.
  1396. +    ac_srcdir=.
  1397. +    ac_top_srcdir=$ac_top_builddir_sub
  1398. +    ac_abs_top_srcdir=$ac_pwd ;;
  1399. +  [\\/]* | ?:[\\/]* )  # Absolute name.
  1400. +    ac_srcdir=$srcdir$ac_dir_suffix;
  1401. +    ac_top_srcdir=$srcdir
  1402. +    ac_abs_top_srcdir=$srcdir ;;
  1403. +  *) # Relative name.
  1404. +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1405. +    ac_top_srcdir=$ac_top_build_prefix$srcdir
  1406. +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1407. +esac
  1408. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1409. +
  1410. +    cd "$ac_dir" || { ac_status=$?; continue; }
  1411. +    # Check for guested configure.
  1412. +    if test -f "$ac_srcdir/configure.gnu"; then
  1413. +      echo &&
  1414. +      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1415. +    elif test -f "$ac_srcdir/configure"; then
  1416. +      echo &&
  1417. +      $SHELL "$ac_srcdir/configure" --help=recursive
  1418. +    else
  1419. +      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1420. +    fi || ac_status=$?
  1421. +    cd "$ac_pwd" || { ac_status=$?; break; }
  1422. +  done
  1423. +fi
  1424. +
  1425. +test -n "$ac_init_help" && exit $ac_status
  1426. +if $ac_init_version; then
  1427. +  cat <<\_ACEOF
  1428. +configure
  1429. +generated by GNU Autoconf 2.68
  1430. +
  1431. +Copyright (C) 2010 Free Software Foundation, Inc.
  1432. +This configure script is free software; the Free Software Foundation
  1433. +gives unlimited permission to copy, distribute and modify it.
  1434. +_ACEOF
  1435. +  exit
  1436. +fi
  1437. +
  1438. +## ------------------------ ##
  1439. +## Autoconf initialization. ##
  1440. +## ------------------------ ##
  1441. +
  1442. +@%:@ ac_fn_c_try_compile LINENO
  1443. +@%:@ --------------------------
  1444. +@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1445. +ac_fn_c_try_compile ()
  1446. +{
  1447. +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1448. +  rm -f conftest.$ac_objext
  1449. +  if { { ac_try="$ac_compile"
  1450. +case "(($ac_try" in
  1451. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1452. +  *) ac_try_echo=$ac_try;;
  1453. +esac
  1454. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1455. +$as_echo "$ac_try_echo"; } >&5
  1456. +  (eval "$ac_compile") 2>conftest.err
  1457. +  ac_status=$?
  1458. +  if test -s conftest.err; then
  1459. +    grep -v '^ *+' conftest.err >conftest.er1
  1460. +    cat conftest.er1 >&5
  1461. +    mv -f conftest.er1 conftest.err
  1462. +  fi
  1463. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1464. +  test $ac_status = 0; } && {
  1465. +	 test -z "$ac_c_werror_flag" ||
  1466. +	 test ! -s conftest.err
  1467. +       } && test -s conftest.$ac_objext; then :
  1468. +  ac_retval=0
  1469. +else
  1470. +  $as_echo "$as_me: failed program was:" >&5
  1471. +sed 's/^/| /' conftest.$ac_ext >&5
  1472. +
  1473. +	ac_retval=1
  1474. +fi
  1475. +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1476. +  as_fn_set_status $ac_retval
  1477. +
  1478. +} @%:@ ac_fn_c_try_compile
  1479. +
  1480. +@%:@ ac_fn_c_try_cpp LINENO
  1481. +@%:@ ----------------------
  1482. +@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1483. +ac_fn_c_try_cpp ()
  1484. +{
  1485. +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1486. +  if { { ac_try="$ac_cpp conftest.$ac_ext"
  1487. +case "(($ac_try" in
  1488. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1489. +  *) ac_try_echo=$ac_try;;
  1490. +esac
  1491. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1492. +$as_echo "$ac_try_echo"; } >&5
  1493. +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1494. +  ac_status=$?
  1495. +  if test -s conftest.err; then
  1496. +    grep -v '^ *+' conftest.err >conftest.er1
  1497. +    cat conftest.er1 >&5
  1498. +    mv -f conftest.er1 conftest.err
  1499. +  fi
  1500. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1501. +  test $ac_status = 0; } > conftest.i && {
  1502. +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1503. +	 test ! -s conftest.err
  1504. +       }; then :
  1505. +  ac_retval=0
  1506. +else
  1507. +  $as_echo "$as_me: failed program was:" >&5
  1508. +sed 's/^/| /' conftest.$ac_ext >&5
  1509. +
  1510. +    ac_retval=1
  1511. +fi
  1512. +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1513. +  as_fn_set_status $ac_retval
  1514. +
  1515. +} @%:@ ac_fn_c_try_cpp
  1516. +
  1517. +@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1518. +@%:@ -------------------------------------------------------
  1519. +@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1520. +@%:@ the include files in INCLUDES and setting the cache variable VAR
  1521. +@%:@ accordingly.
  1522. +ac_fn_c_check_header_mongrel ()
  1523. +{
  1524. +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. +  if eval \${$3+:} false; then :
  1526. +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1527. +$as_echo_n "checking for $2... " >&6; }
  1528. +if eval \${$3+:} false; then :
  1529. +  $as_echo_n "(cached) " >&6
  1530. +fi
  1531. +eval ac_res=\$$3
  1532. +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1533. +$as_echo "$ac_res" >&6; }
  1534. +else
  1535. +  # Is the header compilable?
  1536. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1537. +$as_echo_n "checking $2 usability... " >&6; }
  1538. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1539. +/* end confdefs.h.  */
  1540. +$4
  1541. +@%:@include <$2>
  1542. +_ACEOF
  1543. +if ac_fn_c_try_compile "$LINENO"; then :
  1544. +  ac_header_compiler=yes
  1545. +else
  1546. +  ac_header_compiler=no
  1547. +fi
  1548. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1549. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1550. +$as_echo "$ac_header_compiler" >&6; }
  1551. +
  1552. +# Is the header present?
  1553. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1554. +$as_echo_n "checking $2 presence... " >&6; }
  1555. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1556. +/* end confdefs.h.  */
  1557. +@%:@include <$2>
  1558. +_ACEOF
  1559. +if ac_fn_c_try_cpp "$LINENO"; then :
  1560. +  ac_header_preproc=yes
  1561. +else
  1562. +  ac_header_preproc=no
  1563. +fi
  1564. +rm -f conftest.err conftest.i conftest.$ac_ext
  1565. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1566. +$as_echo "$ac_header_preproc" >&6; }
  1567. +
  1568. +# So?  What about this header?
  1569. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1570. +  yes:no: )
  1571. +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1572. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1573. +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1574. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1575. +    ;;
  1576. +  no:yes:* )
  1577. +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1578. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1579. +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1580. +$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1581. +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1582. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1583. +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1584. +$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1585. +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1586. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1587. +    ;;
  1588. +esac
  1589. +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1590. +$as_echo_n "checking for $2... " >&6; }
  1591. +if eval \${$3+:} false; then :
  1592. +  $as_echo_n "(cached) " >&6
  1593. +else
  1594. +  eval "$3=\$ac_header_compiler"
  1595. +fi
  1596. +eval ac_res=\$$3
  1597. +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1598. +$as_echo "$ac_res" >&6; }
  1599. +fi
  1600. +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1601. +
  1602. +} @%:@ ac_fn_c_check_header_mongrel
  1603. +
  1604. +@%:@ ac_fn_c_try_run LINENO
  1605. +@%:@ ----------------------
  1606. +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1607. +@%:@ that executables *can* be run.
  1608. +ac_fn_c_try_run ()
  1609. +{
  1610. +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1611. +  if { { ac_try="$ac_link"
  1612. +case "(($ac_try" in
  1613. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1614. +  *) ac_try_echo=$ac_try;;
  1615. +esac
  1616. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1617. +$as_echo "$ac_try_echo"; } >&5
  1618. +  (eval "$ac_link") 2>&5
  1619. +  ac_status=$?
  1620. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1621. +  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1622. +  { { case "(($ac_try" in
  1623. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1624. +  *) ac_try_echo=$ac_try;;
  1625. +esac
  1626. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1627. +$as_echo "$ac_try_echo"; } >&5
  1628. +  (eval "$ac_try") 2>&5
  1629. +  ac_status=$?
  1630. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1631. +  test $ac_status = 0; }; }; then :
  1632. +  ac_retval=0
  1633. +else
  1634. +  $as_echo "$as_me: program exited with status $ac_status" >&5
  1635. +       $as_echo "$as_me: failed program was:" >&5
  1636. +sed 's/^/| /' conftest.$ac_ext >&5
  1637. +
  1638. +       ac_retval=$ac_status
  1639. +fi
  1640. +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1641. +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1642. +  as_fn_set_status $ac_retval
  1643. +
  1644. +} @%:@ ac_fn_c_try_run
  1645. +
  1646. +@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1647. +@%:@ -------------------------------------------------------
  1648. +@%:@ Tests whether HEADER exists and can be compiled using the include files in
  1649. +@%:@ INCLUDES, setting the cache variable VAR accordingly.
  1650. +ac_fn_c_check_header_compile ()
  1651. +{
  1652. +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1653. +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1654. +$as_echo_n "checking for $2... " >&6; }
  1655. +if eval \${$3+:} false; then :
  1656. +  $as_echo_n "(cached) " >&6
  1657. +else
  1658. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1659. +/* end confdefs.h.  */
  1660. +$4
  1661. +@%:@include <$2>
  1662. +_ACEOF
  1663. +if ac_fn_c_try_compile "$LINENO"; then :
  1664. +  eval "$3=yes"
  1665. +else
  1666. +  eval "$3=no"
  1667. +fi
  1668. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1669. +fi
  1670. +eval ac_res=\$$3
  1671. +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1672. +$as_echo "$ac_res" >&6; }
  1673. +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1674. +
  1675. +} @%:@ ac_fn_c_check_header_compile
  1676. +
  1677. +@%:@ ac_fn_c_try_link LINENO
  1678. +@%:@ -----------------------
  1679. +@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1680. +ac_fn_c_try_link ()
  1681. +{
  1682. +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1683. +  rm -f conftest.$ac_objext conftest$ac_exeext
  1684. +  if { { ac_try="$ac_link"
  1685. +case "(($ac_try" in
  1686. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1687. +  *) ac_try_echo=$ac_try;;
  1688. +esac
  1689. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1690. +$as_echo "$ac_try_echo"; } >&5
  1691. +  (eval "$ac_link") 2>conftest.err
  1692. +  ac_status=$?
  1693. +  if test -s conftest.err; then
  1694. +    grep -v '^ *+' conftest.err >conftest.er1
  1695. +    cat conftest.er1 >&5
  1696. +    mv -f conftest.er1 conftest.err
  1697. +  fi
  1698. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1699. +  test $ac_status = 0; } && {
  1700. +	 test -z "$ac_c_werror_flag" ||
  1701. +	 test ! -s conftest.err
  1702. +       } && test -s conftest$ac_exeext && {
  1703. +	 test "$cross_compiling" = yes ||
  1704. +	 $as_test_x conftest$ac_exeext
  1705. +       }; then :
  1706. +  ac_retval=0
  1707. +else
  1708. +  $as_echo "$as_me: failed program was:" >&5
  1709. +sed 's/^/| /' conftest.$ac_ext >&5
  1710. +
  1711. +	ac_retval=1
  1712. +fi
  1713. +  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1714. +  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1715. +  # interfere with the next link command; also delete a directory that is
  1716. +  # left behind by Apple's compiler.  We do this before executing the actions.
  1717. +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1718. +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1719. +  as_fn_set_status $ac_retval
  1720. +
  1721. +} @%:@ ac_fn_c_try_link
  1722. +
  1723. +@%:@ ac_fn_c_check_func LINENO FUNC VAR
  1724. +@%:@ ----------------------------------
  1725. +@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1726. +ac_fn_c_check_func ()
  1727. +{
  1728. +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1729. +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1730. +$as_echo_n "checking for $2... " >&6; }
  1731. +if eval \${$3+:} false; then :
  1732. +  $as_echo_n "(cached) " >&6
  1733. +else
  1734. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1735. +/* end confdefs.h.  */
  1736. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1737. +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1738. +#define $2 innocuous_$2
  1739. +
  1740. +/* System header to define __stub macros and hopefully few prototypes,
  1741. +    which can conflict with char $2 (); below.
  1742. +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1743. +    <limits.h> exists even on freestanding compilers.  */
  1744. +
  1745. +#ifdef __STDC__
  1746. +# include <limits.h>
  1747. +#else
  1748. +# include <assert.h>
  1749. +#endif
  1750. +
  1751. +#undef $2
  1752. +
  1753. +/* Override any GCC internal prototype to avoid an error.
  1754. +   Use char because int might match the return type of a GCC
  1755. +   builtin and then its argument prototype would still apply.  */
  1756. +#ifdef __cplusplus
  1757. +extern "C"
  1758. +#endif
  1759. +char $2 ();
  1760. +/* The GNU C library defines this for functions which it implements
  1761. +    to always fail with ENOSYS.  Some functions are actually named
  1762. +    something starting with __ and the normal name is an alias.  */
  1763. +#if defined __stub_$2 || defined __stub___$2
  1764. +choke me
  1765. +#endif
  1766. +
  1767. +int
  1768. +main ()
  1769. +{
  1770. +return $2 ();
  1771. +  ;
  1772. +  return 0;
  1773. +}
  1774. +_ACEOF
  1775. +if ac_fn_c_try_link "$LINENO"; then :
  1776. +  eval "$3=yes"
  1777. +else
  1778. +  eval "$3=no"
  1779. +fi
  1780. +rm -f core conftest.err conftest.$ac_objext \
  1781. +    conftest$ac_exeext conftest.$ac_ext
  1782. +fi
  1783. +eval ac_res=\$$3
  1784. +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1785. +$as_echo "$ac_res" >&6; }
  1786. +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1787. +
  1788. +} @%:@ ac_fn_c_check_func
  1789. +cat >config.log <<_ACEOF
  1790. +This file contains any messages produced by compilers while
  1791. +running configure, to aid debugging if configure makes a mistake.
  1792. +
  1793. +It was created by $as_me, which was
  1794. +generated by GNU Autoconf 2.68.  Invocation command line was
  1795. +
  1796. +  $ $0 $@
  1797. +
  1798. +_ACEOF
  1799. +exec 5>>config.log
  1800. +{
  1801. +cat <<_ASUNAME
  1802. +## --------- ##
  1803. +## Platform. ##
  1804. +## --------- ##
  1805. +
  1806. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1807. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1808. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1809. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1810. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1811. +
  1812. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1813. +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  1814. +
  1815. +/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  1816. +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  1817. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1818. +/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  1819. +/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  1820. +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  1821. +/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  1822. +
  1823. +_ASUNAME
  1824. +
  1825. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1826. +for as_dir in $PATH
  1827. +do
  1828. +  IFS=$as_save_IFS
  1829. +  test -z "$as_dir" && as_dir=.
  1830. +    $as_echo "PATH: $as_dir"
  1831. +  done
  1832. +IFS=$as_save_IFS
  1833. +
  1834. +} >&5
  1835. +
  1836. +cat >&5 <<_ACEOF
  1837. +
  1838. +
  1839. +## ----------- ##
  1840. +## Core tests. ##
  1841. +## ----------- ##
  1842. +
  1843. +_ACEOF
  1844. +
  1845. +
  1846. +# Keep a trace of the command line.
  1847. +# Strip out --no-create and --no-recursion so they do not pile up.
  1848. +# Strip out --silent because we don't want to record it for future runs.
  1849. +# Also quote any args containing shell meta-characters.
  1850. +# Make two passes to allow for proper duplicate-argument suppression.
  1851. +ac_configure_args=
  1852. +ac_configure_args0=
  1853. +ac_configure_args1=
  1854. +ac_must_keep_next=false
  1855. +for ac_pass in 1 2
  1856. +do
  1857. +  for ac_arg
  1858. +  do
  1859. +    case $ac_arg in
  1860. +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1861. +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1862. +    | -silent | --silent | --silen | --sile | --sil)
  1863. +      continue ;;
  1864. +    *\'*)
  1865. +      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1866. +    esac
  1867. +    case $ac_pass in
  1868. +    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1869. +    2)
  1870. +      as_fn_append ac_configure_args1 " '$ac_arg'"
  1871. +      if test $ac_must_keep_next = true; then
  1872. +	ac_must_keep_next=false # Got value, back to normal.
  1873. +      else
  1874. +	case $ac_arg in
  1875. +	  *=* | --config-cache | -C | -disable-* | --disable-* \
  1876. +	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1877. +	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1878. +	  | -with-* | --with-* | -without-* | --without-* | --x)
  1879. +	    case "$ac_configure_args0 " in
  1880. +	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1881. +	    esac
  1882. +	    ;;
  1883. +	  -* ) ac_must_keep_next=true ;;
  1884. +	esac
  1885. +      fi
  1886. +      as_fn_append ac_configure_args " '$ac_arg'"
  1887. +      ;;
  1888. +    esac
  1889. +  done
  1890. +done
  1891. +{ ac_configure_args0=; unset ac_configure_args0;}
  1892. +{ ac_configure_args1=; unset ac_configure_args1;}
  1893. +
  1894. +# When interrupted or exit'd, cleanup temporary files, and complete
  1895. +# config.log.  We remove comments because anyway the quotes in there
  1896. +# would cause problems or look ugly.
  1897. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  1898. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1899. +trap 'exit_status=$?
  1900. +  # Save into config.log some information that might help in debugging.
  1901. +  {
  1902. +    echo
  1903. +
  1904. +    $as_echo "## ---------------- ##
  1905. +## Cache variables. ##
  1906. +## ---------------- ##"
  1907. +    echo
  1908. +    # The following way of writing the cache mishandles newlines in values,
  1909. +(
  1910. +  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1911. +    eval ac_val=\$$ac_var
  1912. +    case $ac_val in #(
  1913. +    *${as_nl}*)
  1914. +      case $ac_var in #(
  1915. +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1916. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1917. +      esac
  1918. +      case $ac_var in #(
  1919. +      _ | IFS | as_nl) ;; #(
  1920. +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1921. +      *) { eval $ac_var=; unset $ac_var;} ;;
  1922. +      esac ;;
  1923. +    esac
  1924. +  done
  1925. +  (set) 2>&1 |
  1926. +    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1927. +    *${as_nl}ac_space=\ *)
  1928. +      sed -n \
  1929. +	"s/'\''/'\''\\\\'\'''\''/g;
  1930. +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1931. +      ;; #(
  1932. +    *)
  1933. +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1934. +      ;;
  1935. +    esac |
  1936. +    sort
  1937. +)
  1938. +    echo
  1939. +
  1940. +    $as_echo "## ----------------- ##
  1941. +## Output variables. ##
  1942. +## ----------------- ##"
  1943. +    echo
  1944. +    for ac_var in $ac_subst_vars
  1945. +    do
  1946. +      eval ac_val=\$$ac_var
  1947. +      case $ac_val in
  1948. +      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1949. +      esac
  1950. +      $as_echo "$ac_var='\''$ac_val'\''"
  1951. +    done | sort
  1952. +    echo
  1953. +
  1954. +    if test -n "$ac_subst_files"; then
  1955. +      $as_echo "## ------------------- ##
  1956. +## File substitutions. ##
  1957. +## ------------------- ##"
  1958. +      echo
  1959. +      for ac_var in $ac_subst_files
  1960. +      do
  1961. +	eval ac_val=\$$ac_var
  1962. +	case $ac_val in
  1963. +	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1964. +	esac
  1965. +	$as_echo "$ac_var='\''$ac_val'\''"
  1966. +      done | sort
  1967. +      echo
  1968. +    fi
  1969. +
  1970. +    if test -s confdefs.h; then
  1971. +      $as_echo "## ----------- ##
  1972. +## confdefs.h. ##
  1973. +## ----------- ##"
  1974. +      echo
  1975. +      cat confdefs.h
  1976. +      echo
  1977. +    fi
  1978. +    test "$ac_signal" != 0 &&
  1979. +      $as_echo "$as_me: caught signal $ac_signal"
  1980. +    $as_echo "$as_me: exit $exit_status"
  1981. +  } >&5
  1982. +  rm -f core *.core core.conftest.* &&
  1983. +    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1984. +    exit $exit_status
  1985. +' 0
  1986. +for ac_signal in 1 2 13 15; do
  1987. +  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1988. +done
  1989. +ac_signal=0
  1990. +
  1991. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1992. +rm -f -r conftest* confdefs.h
  1993. +
  1994. +$as_echo "/* confdefs.h */" > confdefs.h
  1995. +
  1996. +# Predefined preprocessor variables.
  1997. +
  1998. +cat >>confdefs.h <<_ACEOF
  1999. +@%:@define PACKAGE_NAME "$PACKAGE_NAME"
  2000. +_ACEOF
  2001. +
  2002. +cat >>confdefs.h <<_ACEOF
  2003. +@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2004. +_ACEOF
  2005. +
  2006. +cat >>confdefs.h <<_ACEOF
  2007. +@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  2008. +_ACEOF
  2009. +
  2010. +cat >>confdefs.h <<_ACEOF
  2011. +@%:@define PACKAGE_STRING "$PACKAGE_STRING"
  2012. +_ACEOF
  2013. +
  2014. +cat >>confdefs.h <<_ACEOF
  2015. +@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2016. +_ACEOF
  2017. +
  2018. +cat >>confdefs.h <<_ACEOF
  2019. +@%:@define PACKAGE_URL "$PACKAGE_URL"
  2020. +_ACEOF
  2021. +
  2022. +
  2023. +# Let the site file select an alternate cache file if it wants to.
  2024. +# Prefer an explicitly selected file to automatically selected ones.
  2025. +ac_site_file1=NONE
  2026. +ac_site_file2=NONE
  2027. +if test -n "$CONFIG_SITE"; then
  2028. +  # We do not want a PATH search for config.site.
  2029. +  case $CONFIG_SITE in @%:@((
  2030. +    -*)  ac_site_file1=./$CONFIG_SITE;;
  2031. +    */*) ac_site_file1=$CONFIG_SITE;;
  2032. +    *)   ac_site_file1=./$CONFIG_SITE;;
  2033. +  esac
  2034. +elif test "x$prefix" != xNONE; then
  2035. +  ac_site_file1=$prefix/share/config.site
  2036. +  ac_site_file2=$prefix/etc/config.site
  2037. +else
  2038. +  ac_site_file1=$ac_default_prefix/share/config.site
  2039. +  ac_site_file2=$ac_default_prefix/etc/config.site
  2040. +fi
  2041. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2042. +do
  2043. +  test "x$ac_site_file" = xNONE && continue
  2044. +  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2045. +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2046. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2047. +    sed 's/^/| /' "$ac_site_file" >&5
  2048. +    . "$ac_site_file" \
  2049. +      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2050. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2051. +as_fn_error $? "failed to load site script $ac_site_file
  2052. +See \`config.log' for more details" "$LINENO" 5; }
  2053. +  fi
  2054. +done
  2055. +
  2056. +if test -r "$cache_file"; then
  2057. +  # Some versions of bash will fail to source /dev/null (special files
  2058. +  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  2059. +  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2060. +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2061. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  2062. +    case $cache_file in
  2063. +      [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2064. +      *)                      . "./$cache_file";;
  2065. +    esac
  2066. +  fi
  2067. +else
  2068. +  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2069. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  2070. +  >$cache_file
  2071. +fi
  2072. +
  2073. +# Check that the precious variables saved in the cache have kept the same
  2074. +# value.
  2075. +ac_cache_corrupted=false
  2076. +for ac_var in $ac_precious_vars; do
  2077. +  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2078. +  eval ac_new_set=\$ac_env_${ac_var}_set
  2079. +  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2080. +  eval ac_new_val=\$ac_env_${ac_var}_value
  2081. +  case $ac_old_set,$ac_new_set in
  2082. +    set,)
  2083. +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2084. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2085. +      ac_cache_corrupted=: ;;
  2086. +    ,set)
  2087. +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2088. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2089. +      ac_cache_corrupted=: ;;
  2090. +    ,);;
  2091. +    *)
  2092. +      if test "x$ac_old_val" != "x$ac_new_val"; then
  2093. +	# differences in whitespace do not lead to failure.
  2094. +	ac_old_val_w=`echo x $ac_old_val`
  2095. +	ac_new_val_w=`echo x $ac_new_val`
  2096. +	if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2097. +	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2098. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2099. +	  ac_cache_corrupted=:
  2100. +	else
  2101. +	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2102. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2103. +	  eval $ac_var=\$ac_old_val
  2104. +	fi
  2105. +	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2106. +$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2107. +	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2108. +$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2109. +      fi;;
  2110. +  esac
  2111. +  # Pass precious variables to config.status.
  2112. +  if test "$ac_new_set" = set; then
  2113. +    case $ac_new_val in
  2114. +    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2115. +    *) ac_arg=$ac_var=$ac_new_val ;;
  2116. +    esac
  2117. +    case " $ac_configure_args " in
  2118. +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2119. +      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2120. +    esac
  2121. +  fi
  2122. +done
  2123. +if $ac_cache_corrupted; then
  2124. +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2125. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2126. +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2127. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2128. +  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2129. +fi
  2130. +## -------------------- ##
  2131. +## Main body of script. ##
  2132. +## -------------------- ##
  2133. +
  2134. +ac_ext=c
  2135. +ac_cpp='$CPP $CPPFLAGS'
  2136. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2137. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2138. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2139. +
  2140. +
  2141. +
  2142. +
  2143. +
  2144. +ac_config_files="$ac_config_files Makefile src/common/Makefile"
  2145. +
  2146. +ac_config_files="$ac_config_files 3rdparty/mt19937ar/Makefile 3rdparty/libconfig/Makefile"
  2147. +
  2148. +ac_config_files="$ac_config_files src/char/Makefile src/login/Makefile"
  2149. +
  2150. +ac_config_files="$ac_config_files src/map/Makefile src/tool/Makefile"
  2151. +
  2152. +ac_config_files="$ac_config_files src/test/Makefile"
  2153. +
  2154. +
  2155. +ac_ext=c
  2156. +ac_cpp='$CPP $CPPFLAGS'
  2157. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2158. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2159. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2160. +if test -n "$ac_tool_prefix"; then
  2161. +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2162. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2163. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2164. +$as_echo_n "checking for $ac_word... " >&6; }
  2165. +if ${ac_cv_prog_CC+:} false; then :
  2166. +  $as_echo_n "(cached) " >&6
  2167. +else
  2168. +  if test -n "$CC"; then
  2169. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  2170. +else
  2171. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2172. +for as_dir in $PATH
  2173. +do
  2174. +  IFS=$as_save_IFS
  2175. +  test -z "$as_dir" && as_dir=.
  2176. +    for ac_exec_ext in '' $ac_executable_extensions; do
  2177. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2178. +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2179. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2180. +    break 2
  2181. +  fi
  2182. +done
  2183. +  done
  2184. +IFS=$as_save_IFS
  2185. +
  2186. +fi
  2187. +fi
  2188. +CC=$ac_cv_prog_CC
  2189. +if test -n "$CC"; then
  2190. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2191. +$as_echo "$CC" >&6; }
  2192. +else
  2193. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2194. +$as_echo "no" >&6; }
  2195. +fi
  2196. +
  2197. +
  2198. +fi
  2199. +if test -z "$ac_cv_prog_CC"; then
  2200. +  ac_ct_CC=$CC
  2201. +  # Extract the first word of "gcc", so it can be a program name with args.
  2202. +set dummy gcc; ac_word=$2
  2203. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2204. +$as_echo_n "checking for $ac_word... " >&6; }
  2205. +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2206. +  $as_echo_n "(cached) " >&6
  2207. +else
  2208. +  if test -n "$ac_ct_CC"; then
  2209. +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2210. +else
  2211. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2212. +for as_dir in $PATH
  2213. +do
  2214. +  IFS=$as_save_IFS
  2215. +  test -z "$as_dir" && as_dir=.
  2216. +    for ac_exec_ext in '' $ac_executable_extensions; do
  2217. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2218. +    ac_cv_prog_ac_ct_CC="gcc"
  2219. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2220. +    break 2
  2221. +  fi
  2222. +done
  2223. +  done
  2224. +IFS=$as_save_IFS
  2225. +
  2226. +fi
  2227. +fi
  2228. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2229. +if test -n "$ac_ct_CC"; then
  2230. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2231. +$as_echo "$ac_ct_CC" >&6; }
  2232. +else
  2233. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2234. +$as_echo "no" >&6; }
  2235. +fi
  2236. +
  2237. +  if test "x$ac_ct_CC" = x; then
  2238. +    CC=""
  2239. +  else
  2240. +    case $cross_compiling:$ac_tool_warned in
  2241. +yes:)
  2242. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2243. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2244. +ac_tool_warned=yes ;;
  2245. +esac
  2246. +    CC=$ac_ct_CC
  2247. +  fi
  2248. +else
  2249. +  CC="$ac_cv_prog_CC"
  2250. +fi
  2251. +
  2252. +if test -z "$CC"; then
  2253. +          if test -n "$ac_tool_prefix"; then
  2254. +    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2255. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  2256. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2257. +$as_echo_n "checking for $ac_word... " >&6; }
  2258. +if ${ac_cv_prog_CC+:} false; then :
  2259. +  $as_echo_n "(cached) " >&6
  2260. +else
  2261. +  if test -n "$CC"; then
  2262. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  2263. +else
  2264. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2265. +for as_dir in $PATH
  2266. +do
  2267. +  IFS=$as_save_IFS
  2268. +  test -z "$as_dir" && as_dir=.
  2269. +    for ac_exec_ext in '' $ac_executable_extensions; do
  2270. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2271. +    ac_cv_prog_CC="${ac_tool_prefix}cc"
  2272. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2273. +    break 2
  2274. +  fi
  2275. +done
  2276. +  done
  2277. +IFS=$as_save_IFS
  2278. +
  2279. +fi
  2280. +fi
  2281. +CC=$ac_cv_prog_CC
  2282. +if test -n "$CC"; then
  2283. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2284. +$as_echo "$CC" >&6; }
  2285. +else
  2286. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2287. +$as_echo "no" >&6; }
  2288. +fi
  2289. +
  2290. +
  2291. +  fi
  2292. +fi
  2293. +if test -z "$CC"; then
  2294. +  # Extract the first word of "cc", so it can be a program name with args.
  2295. +set dummy cc; ac_word=$2
  2296. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2297. +$as_echo_n "checking for $ac_word... " >&6; }
  2298. +if ${ac_cv_prog_CC+:} false; then :
  2299. +  $as_echo_n "(cached) " >&6
  2300. +else
  2301. +  if test -n "$CC"; then
  2302. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  2303. +else
  2304. +  ac_prog_rejected=no
  2305. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2306. +for as_dir in $PATH
  2307. +do
  2308. +  IFS=$as_save_IFS
  2309. +  test -z "$as_dir" && as_dir=.
  2310. +    for ac_exec_ext in '' $ac_executable_extensions; do
  2311. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2312. +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2313. +       ac_prog_rejected=yes
  2314. +       continue
  2315. +     fi
  2316. +    ac_cv_prog_CC="cc"
  2317. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2318. +    break 2
  2319. +  fi
  2320. +done
  2321. +  done
  2322. +IFS=$as_save_IFS
  2323. +
  2324. +if test $ac_prog_rejected = yes; then
  2325. +  # We found a bogon in the path, so make sure we never use it.
  2326. +  set dummy $ac_cv_prog_CC
  2327. +  shift
  2328. +  if test $@%:@ != 0; then
  2329. +    # We chose a different compiler from the bogus one.
  2330. +    # However, it has the same basename, so the bogon will be chosen
  2331. +    # first if we set CC to just the basename; use the full file name.
  2332. +    shift
  2333. +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2334. +  fi
  2335. +fi
  2336. +fi
  2337. +fi
  2338. +CC=$ac_cv_prog_CC
  2339. +if test -n "$CC"; then
  2340. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2341. +$as_echo "$CC" >&6; }
  2342. +else
  2343. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2344. +$as_echo "no" >&6; }
  2345. +fi
  2346. +
  2347. +
  2348. +fi
  2349. +if test -z "$CC"; then
  2350. +  if test -n "$ac_tool_prefix"; then
  2351. +  for ac_prog in cl.exe
  2352. +  do
  2353. +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2354. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2355. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2356. +$as_echo_n "checking for $ac_word... " >&6; }
  2357. +if ${ac_cv_prog_CC+:} false; then :
  2358. +  $as_echo_n "(cached) " >&6
  2359. +else
  2360. +  if test -n "$CC"; then
  2361. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  2362. +else
  2363. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2364. +for as_dir in $PATH
  2365. +do
  2366. +  IFS=$as_save_IFS
  2367. +  test -z "$as_dir" && as_dir=.
  2368. +    for ac_exec_ext in '' $ac_executable_extensions; do
  2369. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2370. +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2371. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2372. +    break 2
  2373. +  fi
  2374. +done
  2375. +  done
  2376. +IFS=$as_save_IFS
  2377. +
  2378. +fi
  2379. +fi
  2380. +CC=$ac_cv_prog_CC
  2381. +if test -n "$CC"; then
  2382. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2383. +$as_echo "$CC" >&6; }
  2384. +else
  2385. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2386. +$as_echo "no" >&6; }
  2387. +fi
  2388. +
  2389. +
  2390. +    test -n "$CC" && break
  2391. +  done
  2392. +fi
  2393. +if test -z "$CC"; then
  2394. +  ac_ct_CC=$CC
  2395. +  for ac_prog in cl.exe
  2396. +do
  2397. +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  2398. +set dummy $ac_prog; ac_word=$2
  2399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2400. +$as_echo_n "checking for $ac_word... " >&6; }
  2401. +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2402. +  $as_echo_n "(cached) " >&6
  2403. +else
  2404. +  if test -n "$ac_ct_CC"; then
  2405. +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2406. +else
  2407. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2408. +for as_dir in $PATH
  2409. +do
  2410. +  IFS=$as_save_IFS
  2411. +  test -z "$as_dir" && as_dir=.
  2412. +    for ac_exec_ext in '' $ac_executable_extensions; do
  2413. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2414. +    ac_cv_prog_ac_ct_CC="$ac_prog"
  2415. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2416. +    break 2
  2417. +  fi
  2418. +done
  2419. +  done
  2420. +IFS=$as_save_IFS
  2421. +
  2422. +fi
  2423. +fi
  2424. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2425. +if test -n "$ac_ct_CC"; then
  2426. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2427. +$as_echo "$ac_ct_CC" >&6; }
  2428. +else
  2429. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2430. +$as_echo "no" >&6; }
  2431. +fi
  2432. +
  2433. +
  2434. +  test -n "$ac_ct_CC" && break
  2435. +done
  2436. +
  2437. +  if test "x$ac_ct_CC" = x; then
  2438. +    CC=""
  2439. +  else
  2440. +    case $cross_compiling:$ac_tool_warned in
  2441. +yes:)
  2442. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2443. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2444. +ac_tool_warned=yes ;;
  2445. +esac
  2446. +    CC=$ac_ct_CC
  2447. +  fi
  2448. +fi
  2449. +
  2450. +fi
  2451. +
  2452. +
  2453. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2454. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2455. +as_fn_error $? "no acceptable C compiler found in \$PATH
  2456. +See \`config.log' for more details" "$LINENO" 5; }
  2457. +
  2458. +# Provide some information about the compiler.
  2459. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2460. +set X $ac_compile
  2461. +ac_compiler=$2
  2462. +for ac_option in --version -v -V -qversion; do
  2463. +  { { ac_try="$ac_compiler $ac_option >&5"
  2464. +case "(($ac_try" in
  2465. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2466. +  *) ac_try_echo=$ac_try;;
  2467. +esac
  2468. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2469. +$as_echo "$ac_try_echo"; } >&5
  2470. +  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2471. +  ac_status=$?
  2472. +  if test -s conftest.err; then
  2473. +    sed '10a\
  2474. +... rest of stderr output deleted ...
  2475. +         10q' conftest.err >conftest.er1
  2476. +    cat conftest.er1 >&5
  2477. +  fi
  2478. +  rm -f conftest.er1 conftest.err
  2479. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2480. +  test $ac_status = 0; }
  2481. +done
  2482. +
  2483. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2484. +/* end confdefs.h.  */
  2485. +
  2486. +int
  2487. +main ()
  2488. +{
  2489. +
  2490. +  ;
  2491. +  return 0;
  2492. +}
  2493. +_ACEOF
  2494. +ac_clean_files_save=$ac_clean_files
  2495. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2496. +# Try to create an executable without -o first, disregard a.out.
  2497. +# It will help us diagnose broken compilers, and finding out an intuition
  2498. +# of exeext.
  2499. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2500. +$as_echo_n "checking whether the C compiler works... " >&6; }
  2501. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2502. +
  2503. +# The possible output files:
  2504. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2505. +
  2506. +ac_rmfiles=
  2507. +for ac_file in $ac_files
  2508. +do
  2509. +  case $ac_file in
  2510. +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2511. +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2512. +  esac
  2513. +done
  2514. +rm -f $ac_rmfiles
  2515. +
  2516. +if { { ac_try="$ac_link_default"
  2517. +case "(($ac_try" in
  2518. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2519. +  *) ac_try_echo=$ac_try;;
  2520. +esac
  2521. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2522. +$as_echo "$ac_try_echo"; } >&5
  2523. +  (eval "$ac_link_default") 2>&5
  2524. +  ac_status=$?
  2525. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2526. +  test $ac_status = 0; }; then :
  2527. +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2528. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2529. +# in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2530. +# so that the user can short-circuit this test for compilers unknown to
  2531. +# Autoconf.
  2532. +for ac_file in $ac_files ''
  2533. +do
  2534. +  test -f "$ac_file" || continue
  2535. +  case $ac_file in
  2536. +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2537. +	;;
  2538. +    [ab].out )
  2539. +	# We found the default executable, but exeext='' is most
  2540. +	# certainly right.
  2541. +	break;;
  2542. +    *.* )
  2543. +	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2544. +	then :; else
  2545. +	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2546. +	fi
  2547. +	# We set ac_cv_exeext here because the later test for it is not
  2548. +	# safe: cross compilers may not add the suffix if given an `-o'
  2549. +	# argument, so we may need to know it at that point already.
  2550. +	# Even if this section looks crufty: it has the advantage of
  2551. +	# actually working.
  2552. +	break;;
  2553. +    * )
  2554. +	break;;
  2555. +  esac
  2556. +done
  2557. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  2558. +
  2559. +else
  2560. +  ac_file=''
  2561. +fi
  2562. +if test -z "$ac_file"; then :
  2563. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2564. +$as_echo "no" >&6; }
  2565. +$as_echo "$as_me: failed program was:" >&5
  2566. +sed 's/^/| /' conftest.$ac_ext >&5
  2567. +
  2568. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2569. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2570. +as_fn_error 77 "C compiler cannot create executables
  2571. +See \`config.log' for more details" "$LINENO" 5; }
  2572. +else
  2573. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2574. +$as_echo "yes" >&6; }
  2575. +fi
  2576. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2577. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  2578. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2579. +$as_echo "$ac_file" >&6; }
  2580. +ac_exeext=$ac_cv_exeext
  2581. +
  2582. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2583. +ac_clean_files=$ac_clean_files_save
  2584. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2585. +$as_echo_n "checking for suffix of executables... " >&6; }
  2586. +if { { ac_try="$ac_link"
  2587. +case "(($ac_try" in
  2588. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2589. +  *) ac_try_echo=$ac_try;;
  2590. +esac
  2591. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2592. +$as_echo "$ac_try_echo"; } >&5
  2593. +  (eval "$ac_link") 2>&5
  2594. +  ac_status=$?
  2595. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2596. +  test $ac_status = 0; }; then :
  2597. +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2598. +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2599. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  2600. +# `rm'.
  2601. +for ac_file in conftest.exe conftest conftest.*; do
  2602. +  test -f "$ac_file" || continue
  2603. +  case $ac_file in
  2604. +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2605. +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2606. +	  break;;
  2607. +    * ) break;;
  2608. +  esac
  2609. +done
  2610. +else
  2611. +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2612. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2613. +as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2614. +See \`config.log' for more details" "$LINENO" 5; }
  2615. +fi
  2616. +rm -f conftest conftest$ac_cv_exeext
  2617. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2618. +$as_echo "$ac_cv_exeext" >&6; }
  2619. +
  2620. +rm -f conftest.$ac_ext
  2621. +EXEEXT=$ac_cv_exeext
  2622. +ac_exeext=$EXEEXT
  2623. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2624. +/* end confdefs.h.  */
  2625. +@%:@include <stdio.h>
  2626. +int
  2627. +main ()
  2628. +{
  2629. +FILE *f = fopen ("conftest.out", "w");
  2630. + return ferror (f) || fclose (f) != 0;
  2631. +
  2632. +  ;
  2633. +  return 0;
  2634. +}
  2635. +_ACEOF
  2636. +ac_clean_files="$ac_clean_files conftest.out"
  2637. +# Check that the compiler produces executables we can run.  If not, either
  2638. +# the compiler is broken, or we cross compile.
  2639. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2640. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  2641. +if test "$cross_compiling" != yes; then
  2642. +  { { ac_try="$ac_link"
  2643. +case "(($ac_try" in
  2644. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2645. +  *) ac_try_echo=$ac_try;;
  2646. +esac
  2647. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2648. +$as_echo "$ac_try_echo"; } >&5
  2649. +  (eval "$ac_link") 2>&5
  2650. +  ac_status=$?
  2651. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2652. +  test $ac_status = 0; }
  2653. +  if { ac_try='./conftest$ac_cv_exeext'
  2654. +  { { case "(($ac_try" in
  2655. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2656. +  *) ac_try_echo=$ac_try;;
  2657. +esac
  2658. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2659. +$as_echo "$ac_try_echo"; } >&5
  2660. +  (eval "$ac_try") 2>&5
  2661. +  ac_status=$?
  2662. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2663. +  test $ac_status = 0; }; }; then
  2664. +    cross_compiling=no
  2665. +  else
  2666. +    if test "$cross_compiling" = maybe; then
  2667. +	cross_compiling=yes
  2668. +    else
  2669. +	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2670. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2671. +as_fn_error $? "cannot run C compiled programs.
  2672. +If you meant to cross compile, use \`--host'.
  2673. +See \`config.log' for more details" "$LINENO" 5; }
  2674. +    fi
  2675. +  fi
  2676. +fi
  2677. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2678. +$as_echo "$cross_compiling" >&6; }
  2679. +
  2680. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2681. +ac_clean_files=$ac_clean_files_save
  2682. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2683. +$as_echo_n "checking for suffix of object files... " >&6; }
  2684. +if ${ac_cv_objext+:} false; then :
  2685. +  $as_echo_n "(cached) " >&6
  2686. +else
  2687. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2688. +/* end confdefs.h.  */
  2689. +
  2690. +int
  2691. +main ()
  2692. +{
  2693. +
  2694. +  ;
  2695. +  return 0;
  2696. +}
  2697. +_ACEOF
  2698. +rm -f conftest.o conftest.obj
  2699. +if { { ac_try="$ac_compile"
  2700. +case "(($ac_try" in
  2701. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2702. +  *) ac_try_echo=$ac_try;;
  2703. +esac
  2704. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2705. +$as_echo "$ac_try_echo"; } >&5
  2706. +  (eval "$ac_compile") 2>&5
  2707. +  ac_status=$?
  2708. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2709. +  test $ac_status = 0; }; then :
  2710. +  for ac_file in conftest.o conftest.obj conftest.*; do
  2711. +  test -f "$ac_file" || continue;
  2712. +  case $ac_file in
  2713. +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2714. +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2715. +       break;;
  2716. +  esac
  2717. +done
  2718. +else
  2719. +  $as_echo "$as_me: failed program was:" >&5
  2720. +sed 's/^/| /' conftest.$ac_ext >&5
  2721. +
  2722. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2723. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2724. +as_fn_error $? "cannot compute suffix of object files: cannot compile
  2725. +See \`config.log' for more details" "$LINENO" 5; }
  2726. +fi
  2727. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2728. +fi
  2729. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2730. +$as_echo "$ac_cv_objext" >&6; }
  2731. +OBJEXT=$ac_cv_objext
  2732. +ac_objext=$OBJEXT
  2733. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2734. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2735. +if ${ac_cv_c_compiler_gnu+:} false; then :
  2736. +  $as_echo_n "(cached) " >&6
  2737. +else
  2738. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2739. +/* end confdefs.h.  */
  2740. +
  2741. +int
  2742. +main ()
  2743. +{
  2744. +#ifndef __GNUC__
  2745. +       choke me
  2746. +#endif
  2747. +
  2748. +  ;
  2749. +  return 0;
  2750. +}
  2751. +_ACEOF
  2752. +if ac_fn_c_try_compile "$LINENO"; then :
  2753. +  ac_compiler_gnu=yes
  2754. +else
  2755. +  ac_compiler_gnu=no
  2756. +fi
  2757. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2758. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2759. +
  2760. +fi
  2761. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2762. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2763. +if test $ac_compiler_gnu = yes; then
  2764. +  GCC=yes
  2765. +else
  2766. +  GCC=
  2767. +fi
  2768. +ac_test_CFLAGS=${CFLAGS+set}
  2769. +ac_save_CFLAGS=$CFLAGS
  2770. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2771. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  2772. +if ${ac_cv_prog_cc_g+:} false; then :
  2773. +  $as_echo_n "(cached) " >&6
  2774. +else
  2775. +  ac_save_c_werror_flag=$ac_c_werror_flag
  2776. +   ac_c_werror_flag=yes
  2777. +   ac_cv_prog_cc_g=no
  2778. +   CFLAGS="-g"
  2779. +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2780. +/* end confdefs.h.  */
  2781. +
  2782. +int
  2783. +main ()
  2784. +{
  2785. +
  2786. +  ;
  2787. +  return 0;
  2788. +}
  2789. +_ACEOF
  2790. +if ac_fn_c_try_compile "$LINENO"; then :
  2791. +  ac_cv_prog_cc_g=yes
  2792. +else
  2793. +  CFLAGS=""
  2794. +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2795. +/* end confdefs.h.  */
  2796. +
  2797. +int
  2798. +main ()
  2799. +{
  2800. +
  2801. +  ;
  2802. +  return 0;
  2803. +}
  2804. +_ACEOF
  2805. +if ac_fn_c_try_compile "$LINENO"; then :
  2806. +  
  2807. +else
  2808. +  ac_c_werror_flag=$ac_save_c_werror_flag
  2809. +	 CFLAGS="-g"
  2810. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2811. +/* end confdefs.h.  */
  2812. +
  2813. +int
  2814. +main ()
  2815. +{
  2816. +
  2817. +  ;
  2818. +  return 0;
  2819. +}
  2820. +_ACEOF
  2821. +if ac_fn_c_try_compile "$LINENO"; then :
  2822. +  ac_cv_prog_cc_g=yes
  2823. +fi
  2824. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2825. +fi
  2826. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2827. +fi
  2828. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2829. +   ac_c_werror_flag=$ac_save_c_werror_flag
  2830. +fi
  2831. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2832. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  2833. +if test "$ac_test_CFLAGS" = set; then
  2834. +  CFLAGS=$ac_save_CFLAGS
  2835. +elif test $ac_cv_prog_cc_g = yes; then
  2836. +  if test "$GCC" = yes; then
  2837. +    CFLAGS="-g -O2"
  2838. +  else
  2839. +    CFLAGS="-g"
  2840. +  fi
  2841. +else
  2842. +  if test "$GCC" = yes; then
  2843. +    CFLAGS="-O2"
  2844. +  else
  2845. +    CFLAGS=
  2846. +  fi
  2847. +fi
  2848. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2849. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2850. +if ${ac_cv_prog_cc_c89+:} false; then :
  2851. +  $as_echo_n "(cached) " >&6
  2852. +else
  2853. +  ac_cv_prog_cc_c89=no
  2854. +ac_save_CC=$CC
  2855. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2856. +/* end confdefs.h.  */
  2857. +#include <stdarg.h>
  2858. +#include <stdio.h>
  2859. +#include <sys/types.h>
  2860. +#include <sys/stat.h>
  2861. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  2862. +struct buf { int x; };
  2863. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2864. +static char *e (p, i)
  2865. +     char **p;
  2866. +     int i;
  2867. +{
  2868. +  return p[i];
  2869. +}
  2870. +static char *f (char * (*g) (char **, int), char **p, ...)
  2871. +{
  2872. +  char *s;
  2873. +  va_list v;
  2874. +  va_start (v,p);
  2875. +  s = g (p, va_arg (v,int));
  2876. +  va_end (v);
  2877. +  return s;
  2878. +}
  2879. +
  2880. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  2881. +   function prototypes and stuff, but not '\xHH' hex character constants.
  2882. +   These don't provoke an error unfortunately, instead are silently treated
  2883. +   as 'x'.  The following induces an error, until -std is added to get
  2884. +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  2885. +   array size at least.  It's necessary to write '\x00'==0 to get something
  2886. +   that's true only with -std.  */
  2887. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2888. +
  2889. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2890. +   inside strings and character constants.  */
  2891. +#define FOO(x) 'x'
  2892. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2893. +
  2894. +int test (int i, double x);
  2895. +struct s1 {int (*f) (int a);};
  2896. +struct s2 {int (*f) (double a);};
  2897. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2898. +int argc;
  2899. +char **argv;
  2900. +int
  2901. +main ()
  2902. +{
  2903. +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  2904. +  ;
  2905. +  return 0;
  2906. +}
  2907. +_ACEOF
  2908. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2909. +	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2910. +do
  2911. +  CC="$ac_save_CC $ac_arg"
  2912. +  if ac_fn_c_try_compile "$LINENO"; then :
  2913. +  ac_cv_prog_cc_c89=$ac_arg
  2914. +fi
  2915. +rm -f core conftest.err conftest.$ac_objext
  2916. +  test "x$ac_cv_prog_cc_c89" != "xno" && break
  2917. +done
  2918. +rm -f conftest.$ac_ext
  2919. +CC=$ac_save_CC
  2920. +
  2921. +fi
  2922. +# AC_CACHE_VAL
  2923. +case "x$ac_cv_prog_cc_c89" in
  2924. +  x)
  2925. +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2926. +$as_echo "none needed" >&6; } ;;
  2927. +  xno)
  2928. +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2929. +$as_echo "unsupported" >&6; } ;;
  2930. +  *)
  2931. +    CC="$CC $ac_cv_prog_cc_c89"
  2932. +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2933. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2934. +esac
  2935. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  2936. +  
  2937. +fi
  2938. +
  2939. +ac_ext=c
  2940. +ac_cpp='$CPP $CPPFLAGS'
  2941. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2942. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2943. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2944. +
  2945. +
  2946. +ac_ext=c
  2947. +ac_cpp='$CPP $CPPFLAGS'
  2948. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2949. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2950. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2951. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2952. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  2953. +# On Suns, sometimes $CPP names a directory.
  2954. +if test -n "$CPP" && test -d "$CPP"; then
  2955. +  CPP=
  2956. +fi
  2957. +if test -z "$CPP"; then
  2958. +  if ${ac_cv_prog_CPP+:} false; then :
  2959. +  $as_echo_n "(cached) " >&6
  2960. +else
  2961. +      # Double quotes because CPP needs to be expanded
  2962. +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2963. +    do
  2964. +      ac_preproc_ok=false
  2965. +for ac_c_preproc_warn_flag in '' yes
  2966. +do
  2967. +  # Use a header file that comes with gcc, so configuring glibc
  2968. +  # with a fresh cross-compiler works.
  2969. +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2970. +  # <limits.h> exists even on freestanding compilers.
  2971. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  2972. +  # not just through cpp. "Syntax error" is here to catch this case.
  2973. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2974. +/* end confdefs.h.  */
  2975. +@%:@ifdef __STDC__
  2976. +@%:@ include <limits.h>
  2977. +@%:@else
  2978. +@%:@ include <assert.h>
  2979. +@%:@endif
  2980. +		     Syntax error
  2981. +_ACEOF
  2982. +if ac_fn_c_try_cpp "$LINENO"; then :
  2983. +  
  2984. +else
  2985. +  # Broken: fails on valid input.
  2986. +continue
  2987. +fi
  2988. +rm -f conftest.err conftest.i conftest.$ac_ext
  2989. +
  2990. +  # OK, works on sane cases.  Now check whether nonexistent headers
  2991. +  # can be detected and how.
  2992. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. +/* end confdefs.h.  */
  2994. +@%:@include <ac_nonexistent.h>
  2995. +_ACEOF
  2996. +if ac_fn_c_try_cpp "$LINENO"; then :
  2997. +  # Broken: success on invalid input.
  2998. +continue
  2999. +else
  3000. +  # Passes both tests.
  3001. +ac_preproc_ok=:
  3002. +break
  3003. +fi
  3004. +rm -f conftest.err conftest.i conftest.$ac_ext
  3005. +
  3006. +done
  3007. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3008. +rm -f conftest.i conftest.err conftest.$ac_ext
  3009. +if $ac_preproc_ok; then :
  3010. +  break
  3011. +fi
  3012. +
  3013. +    done
  3014. +    ac_cv_prog_CPP=$CPP
  3015. +  
  3016. +fi
  3017. +  CPP=$ac_cv_prog_CPP
  3018. +else
  3019. +  ac_cv_prog_CPP=$CPP
  3020. +fi
  3021. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3022. +$as_echo "$CPP" >&6; }
  3023. +ac_preproc_ok=false
  3024. +for ac_c_preproc_warn_flag in '' yes
  3025. +do
  3026. +  # Use a header file that comes with gcc, so configuring glibc
  3027. +  # with a fresh cross-compiler works.
  3028. +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3029. +  # <limits.h> exists even on freestanding compilers.
  3030. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  3031. +  # not just through cpp. "Syntax error" is here to catch this case.
  3032. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3033. +/* end confdefs.h.  */
  3034. +@%:@ifdef __STDC__
  3035. +@%:@ include <limits.h>
  3036. +@%:@else
  3037. +@%:@ include <assert.h>
  3038. +@%:@endif
  3039. +		     Syntax error
  3040. +_ACEOF
  3041. +if ac_fn_c_try_cpp "$LINENO"; then :
  3042. +  
  3043. +else
  3044. +  # Broken: fails on valid input.
  3045. +continue
  3046. +fi
  3047. +rm -f conftest.err conftest.i conftest.$ac_ext
  3048. +
  3049. +  # OK, works on sane cases.  Now check whether nonexistent headers
  3050. +  # can be detected and how.
  3051. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3052. +/* end confdefs.h.  */
  3053. +@%:@include <ac_nonexistent.h>
  3054. +_ACEOF
  3055. +if ac_fn_c_try_cpp "$LINENO"; then :
  3056. +  # Broken: success on invalid input.
  3057. +continue
  3058. +else
  3059. +  # Passes both tests.
  3060. +ac_preproc_ok=:
  3061. +break
  3062. +fi
  3063. +rm -f conftest.err conftest.i conftest.$ac_ext
  3064. +
  3065. +done
  3066. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3067. +rm -f conftest.i conftest.err conftest.$ac_ext
  3068. +if $ac_preproc_ok; then :
  3069. +  
  3070. +else
  3071. +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3072. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3073. +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3074. +See \`config.log' for more details" "$LINENO" 5; }
  3075. +fi
  3076. +
  3077. +ac_ext=c
  3078. +ac_cpp='$CPP $CPPFLAGS'
  3079. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3080. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3081. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3082. +
  3083. +
  3084. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3085. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3086. +if ${ac_cv_path_GREP+:} false; then :
  3087. +  $as_echo_n "(cached) " >&6
  3088. +else
  3089. +  if test -z "$GREP"; then
  3090. +  ac_path_GREP_found=false
  3091. +  # Loop through the user's path and test for each of PROGNAME-LIST
  3092. +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3093. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3094. +do
  3095. +  IFS=$as_save_IFS
  3096. +  test -z "$as_dir" && as_dir=.
  3097. +    for ac_prog in grep ggrep; do
  3098. +    for ac_exec_ext in '' $ac_executable_extensions; do
  3099. +      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3100. +      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3101. +# Check for GNU ac_path_GREP and select it if it is found.
  3102. +  # Check for GNU $ac_path_GREP
  3103. +case `"$ac_path_GREP" --version 2>&1` in
  3104. +*GNU*)
  3105. +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3106. +*)
  3107. +  ac_count=0
  3108. +  $as_echo_n 0123456789 >"conftest.in"
  3109. +  while :
  3110. +  do
  3111. +    cat "conftest.in" "conftest.in" >"conftest.tmp"
  3112. +    mv "conftest.tmp" "conftest.in"
  3113. +    cp "conftest.in" "conftest.nl"
  3114. +    $as_echo 'GREP' >> "conftest.nl"
  3115. +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3116. +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3117. +    as_fn_arith $ac_count + 1 && ac_count=$as_val
  3118. +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3119. +      # Best one so far, save it but keep looking for a better one
  3120. +      ac_cv_path_GREP="$ac_path_GREP"
  3121. +      ac_path_GREP_max=$ac_count
  3122. +    fi
  3123. +    # 10*(2^10) chars as input seems more than enough
  3124. +    test $ac_count -gt 10 && break
  3125. +  done
  3126. +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3127. +esac
  3128. +
  3129. +      $ac_path_GREP_found && break 3
  3130. +    done
  3131. +  done
  3132. +  done
  3133. +IFS=$as_save_IFS
  3134. +  if test -z "$ac_cv_path_GREP"; then
  3135. +    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3136. +  fi
  3137. +else
  3138. +  ac_cv_path_GREP=$GREP
  3139. +fi
  3140. +
  3141. +fi
  3142. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3143. +$as_echo "$ac_cv_path_GREP" >&6; }
  3144. + GREP="$ac_cv_path_GREP"
  3145. + 
  3146. +
  3147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3148. +$as_echo_n "checking for egrep... " >&6; }
  3149. +if ${ac_cv_path_EGREP+:} false; then :
  3150. +  $as_echo_n "(cached) " >&6
  3151. +else
  3152. +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3153. +   then ac_cv_path_EGREP="$GREP -E"
  3154. +   else
  3155. +     if test -z "$EGREP"; then
  3156. +  ac_path_EGREP_found=false
  3157. +  # Loop through the user's path and test for each of PROGNAME-LIST
  3158. +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3159. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3160. +do
  3161. +  IFS=$as_save_IFS
  3162. +  test -z "$as_dir" && as_dir=.
  3163. +    for ac_prog in egrep; do
  3164. +    for ac_exec_ext in '' $ac_executable_extensions; do
  3165. +      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3166. +      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3167. +# Check for GNU ac_path_EGREP and select it if it is found.
  3168. +  # Check for GNU $ac_path_EGREP
  3169. +case `"$ac_path_EGREP" --version 2>&1` in
  3170. +*GNU*)
  3171. +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3172. +*)
  3173. +  ac_count=0
  3174. +  $as_echo_n 0123456789 >"conftest.in"
  3175. +  while :
  3176. +  do
  3177. +    cat "conftest.in" "conftest.in" >"conftest.tmp"
  3178. +    mv "conftest.tmp" "conftest.in"
  3179. +    cp "conftest.in" "conftest.nl"
  3180. +    $as_echo 'EGREP' >> "conftest.nl"
  3181. +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3182. +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3183. +    as_fn_arith $ac_count + 1 && ac_count=$as_val
  3184. +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3185. +      # Best one so far, save it but keep looking for a better one
  3186. +      ac_cv_path_EGREP="$ac_path_EGREP"
  3187. +      ac_path_EGREP_max=$ac_count
  3188. +    fi
  3189. +    # 10*(2^10) chars as input seems more than enough
  3190. +    test $ac_count -gt 10 && break
  3191. +  done
  3192. +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3193. +esac
  3194. +
  3195. +      $ac_path_EGREP_found && break 3
  3196. +    done
  3197. +  done
  3198. +  done
  3199. +IFS=$as_save_IFS
  3200. +  if test -z "$ac_cv_path_EGREP"; then
  3201. +    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3202. +  fi
  3203. +else
  3204. +  ac_cv_path_EGREP=$EGREP
  3205. +fi
  3206. +
  3207. +   fi
  3208. +fi
  3209. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3210. +$as_echo "$ac_cv_path_EGREP" >&6; }
  3211. + EGREP="$ac_cv_path_EGREP"
  3212. + 
  3213. +
  3214. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3215. +$as_echo_n "checking for ANSI C header files... " >&6; }
  3216. +if ${ac_cv_header_stdc+:} false; then :
  3217. +  $as_echo_n "(cached) " >&6
  3218. +else
  3219. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3220. +/* end confdefs.h.  */
  3221. +#include <stdlib.h>
  3222. +#include <stdarg.h>
  3223. +#include <string.h>
  3224. +#include <float.h>
  3225. +
  3226. +int
  3227. +main ()
  3228. +{
  3229. +
  3230. +  ;
  3231. +  return 0;
  3232. +}
  3233. +_ACEOF
  3234. +if ac_fn_c_try_compile "$LINENO"; then :
  3235. +  ac_cv_header_stdc=yes
  3236. +else
  3237. +  ac_cv_header_stdc=no
  3238. +fi
  3239. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3240. +
  3241. +if test $ac_cv_header_stdc = yes; then
  3242. +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3243. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3244. +/* end confdefs.h.  */
  3245. +#include <string.h>
  3246. +
  3247. +_ACEOF
  3248. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3249. +  $EGREP "memchr" >/dev/null 2>&1; then :
  3250. +  
  3251. +else
  3252. +  ac_cv_header_stdc=no
  3253. +fi
  3254. +rm -f conftest*
  3255. +
  3256. +fi
  3257. +
  3258. +if test $ac_cv_header_stdc = yes; then
  3259. +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3260. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3261. +/* end confdefs.h.  */
  3262. +#include <stdlib.h>
  3263. +
  3264. +_ACEOF
  3265. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3266. +  $EGREP "free" >/dev/null 2>&1; then :
  3267. +  
  3268. +else
  3269. +  ac_cv_header_stdc=no
  3270. +fi
  3271. +rm -f conftest*
  3272. +
  3273. +fi
  3274. +
  3275. +if test $ac_cv_header_stdc = yes; then
  3276. +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3277. +  if test "$cross_compiling" = yes; then :
  3278. +  :
  3279. +else
  3280. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3281. +/* end confdefs.h.  */
  3282. +#include <ctype.h>
  3283. +#include <stdlib.h>
  3284. +#if ((' ' & 0x0FF) == 0x020)
  3285. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3286. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3287. +#else
  3288. +# define ISLOWER(c) \
  3289. +		   (('a' <= (c) && (c) <= 'i') \
  3290. +		     || ('j' <= (c) && (c) <= 'r') \
  3291. +		     || ('s' <= (c) && (c) <= 'z'))
  3292. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3293. +#endif
  3294. +
  3295. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3296. +int
  3297. +main ()
  3298. +{
  3299. +  int i;
  3300. +  for (i = 0; i < 256; i++)
  3301. +    if (XOR (islower (i), ISLOWER (i))
  3302. +	|| toupper (i) != TOUPPER (i))
  3303. +      return 2;
  3304. +  return 0;
  3305. +}
  3306. +_ACEOF
  3307. +if ac_fn_c_try_run "$LINENO"; then :
  3308. +  
  3309. +else
  3310. +  ac_cv_header_stdc=no
  3311. +fi
  3312. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3313. +  conftest.$ac_objext conftest.beam conftest.$ac_ext
  3314. +fi
  3315. +
  3316. +fi
  3317. +fi
  3318. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3319. +$as_echo "$ac_cv_header_stdc" >&6; }
  3320. +if test $ac_cv_header_stdc = yes; then
  3321. +  
  3322. +$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  3323. +
  3324. +fi
  3325. +
  3326. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3327. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3328. +		  inttypes.h stdint.h unistd.h
  3329. +do :
  3330. +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3331. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3332. +"
  3333. +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3334. +  cat >>confdefs.h <<_ACEOF
  3335. +@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3336. +_ACEOF
  3337. + 
  3338. +fi
  3339. +
  3340. +done
  3341. +
  3342. +
  3343. +
  3344. +  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3345. +if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3346. +  MINIX=yes
  3347. +else
  3348. +  MINIX=
  3349. +fi
  3350. +
  3351. +
  3352. +  if test "$MINIX" = yes; then
  3353. +    
  3354. +$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
  3355. +
  3356. +    
  3357. +$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
  3358. +
  3359. +    
  3360. +$as_echo "@%:@define _MINIX 1" >>confdefs.h
  3361. +
  3362. +  fi
  3363. +
  3364. +  
  3365. +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3366. +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3367. +if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3368. +  $as_echo_n "(cached) " >&6
  3369. +else
  3370. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3371. +/* end confdefs.h.  */
  3372. +
  3373. +#	  define __EXTENSIONS__ 1
  3374. +	  $ac_includes_default
  3375. +int
  3376. +main ()
  3377. +{
  3378. +
  3379. +  ;
  3380. +  return 0;
  3381. +}
  3382. +_ACEOF
  3383. +if ac_fn_c_try_compile "$LINENO"; then :
  3384. +  ac_cv_safe_to_define___extensions__=yes
  3385. +else
  3386. +  ac_cv_safe_to_define___extensions__=no
  3387. +fi
  3388. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3389. +fi
  3390. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3391. +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3392. +  test $ac_cv_safe_to_define___extensions__ = yes &&
  3393. +    $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
  3394. +
  3395. +  $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
  3396. +
  3397. +  $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
  3398. +
  3399. +  $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3400. +
  3401. +  $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
  3402. +
  3403. +
  3404. +
  3405. +
  3406. +#
  3407. +# Memory managers
  3408. +#
  3409. +@%:@ Check whether --enable-manager was given.
  3410. +if test "${enable_manager+set}" = set; then :
  3411. +  enableval=$enable_manager; 
  3412. +		enable_manager="$enableval"
  3413. +		case $enableval in
  3414. +			"no");;
  3415. +			"builtin");;
  3416. +			"memwatch");;
  3417. +			"dmalloc");;
  3418. +			"gcollect");;
  3419. +			"bcheck");;
  3420. +			*) as_fn_error $? "unknown memory manager '$enableval'... stopping" "$LINENO" 5;;
  3421. +		esac
  3422. +	
  3423. +else
  3424. +  enable_manager="builtin"
  3425. +
  3426. +fi
  3427. +
  3428. +
  3429. +
  3430. +#
  3431. +# packetver
  3432. +#
  3433. +@%:@ Check whether --enable-packetver was given.
  3434. +if test "${enable_packetver+set}" = set; then :
  3435. +  enableval=$enable_packetver; enable_packetver="$enableval"
  3436. +else
  3437. +  enable_packetver=""
  3438. +
  3439. +fi
  3440. +
  3441. +
  3442. +
  3443. +#
  3444. +# debug
  3445. +#
  3446. +@%:@ Check whether --enable-debug was given.
  3447. +if test "${enable_debug+set}" = set; then :
  3448. +  enableval=$enable_debug; 
  3449. +		enable_debug="$enableval"
  3450. +		case $enableval in
  3451. +			"no");;
  3452. +			"yes");;
  3453. +			"gdb");;
  3454. +			*) as_fn_error $? "invalid argument --enable-debug=$enableval... stopping" "$LINENO" 5;;
  3455. +		esac
  3456. +	
  3457. +else
  3458. +  enable_debug="no"
  3459. +
  3460. +fi
  3461. +
  3462. +
  3463. +#
  3464. +# Buildbot
  3465. +#
  3466. +@%:@ Check whether --enable-buildbot was given.
  3467. +if test "${enable_buildbot+set}" = set; then :
  3468. +  enableval=$enable_buildbot; 
  3469. +		enable_buildbot="$enableval"
  3470. +		case $enableval in
  3471. +			"no");;
  3472. +			"yes");;
  3473. +			*) as_fn_error $? "invalid argument --enable-buildbot=$enableval... stopping" "$LINENO" 5;;
  3474. +		esac
  3475. +	
  3476. +else
  3477. +  enable_buildbot="no"
  3478. +
  3479. +fi
  3480. +
  3481. +
  3482. +#
  3483. +# RDTSC as Tick Source
  3484. +#
  3485. +@%:@ Check whether --enable-rdtsc was given.
  3486. +if test "${enable_rdtsc+set}" = set; then :
  3487. +  enableval=$enable_rdtsc; 
  3488. +		enable_rdtsc=1
  3489. +	
  3490. +else
  3491. +  enable_rdtsc=0
  3492. +
  3493. +fi
  3494. +
  3495. +
  3496. +#
  3497. +# Profiler
  3498. +#
  3499. +@%:@ Check whether --enable-profiler was given.
  3500. +if test "${enable_profiler+set}" = set; then :
  3501. +  enableval=$enable_profiler; 
  3502. +		enable_profiler="$enableval"
  3503. +		case $enableval in
  3504. +			"no");;
  3505. +			"gprof");;
  3506. +			*) as_fn_error $? "invalid argument --enable-profiler=$enableval... stopping" "$LINENO" 5;;
  3507. +		esac
  3508. +	
  3509. +else
  3510. +  enable_profiler="no"
  3511. +
  3512. +fi
  3513. +
  3514. +
  3515. +
  3516. +#
  3517. +# 64bit
  3518. +#
  3519. +@%:@ Check whether --enable-64bit was given.
  3520. +if test "${enable_64bit+set}" = set; then :
  3521. +  enableval=$enable_64bit; 
  3522. +		enable_64bit="$enableval"
  3523. +		case $enableval in
  3524. +			"no");;
  3525. +			"yes");;
  3526. +			*) as_fn_error $? "invalid argument --enable-64bit=$enableval... stopping" "$LINENO" 5;;
  3527. +		esac
  3528. +	
  3529. +else
  3530. +  enable_64bit="yes"
  3531. +
  3532. +fi
  3533. +
  3534. +
  3535. +
  3536. +#
  3537. +# LTO
  3538. +#
  3539. +@%:@ Check whether --enable-lto was given.
  3540. +if test "${enable_lto+set}" = set; then :
  3541. +  enableval=$enable_lto; 
  3542. +        enable_lto="$enableval"
  3543. +        case $enableval in
  3544. +            "no");;
  3545. +            "yes");;
  3546. +            *) as_fn_error $? "invalid argument --enable-lto=$disableval... stopping" "$LINENO" 5;;
  3547. +        esac
  3548. +    
  3549. +else
  3550. +  enable_lto="yes"
  3551. +
  3552. +fi
  3553. +
  3554. +
  3555. +
  3556. +#
  3557. +# Optionally set the max number of network conenctions
  3558. +# the core will be support
  3559. +#
  3560. +
  3561. +@%:@ Check whether --with-maxconn was given.
  3562. +if test "${with_maxconn+set}" = set; then :
  3563. +  withval=$with_maxconn; 
  3564. +		if test "$withval" == "no";	 then
  3565. +			CFLAGS="$CFLAGS -DMAXCONN=16384"
  3566. +		else
  3567. +
  3568. +			if ! test "$withval" -ge 0 -o "$withval" -lt 0 2>&- ; then
  3569. +				as_fn_error $? "Invalid argument --with-maxconn=$withval ... stopping" "$LINENO" 5
  3570. +			else
  3571. +				CFLAGS="$CFLAGS -DMAXCONN=$withval"
  3572. +			fi
  3573. +		fi
  3574. +	
  3575. +else
  3576. +  
  3577. +		CFLAGS="$CFLAGS -DMAXCONN=16384"
  3578. +	
  3579. +
  3580. +fi
  3581. +
  3582. +
  3583. +
  3584. +#
  3585. +# Optionally specify the path to mysql_config
  3586. +#
  3587. +
  3588. +@%:@ Check whether --with-mysql was given.
  3589. +if test "${with_mysql+set}" = set; then :
  3590. +  withval=$with_mysql; 
  3591. +		if test "$withval" != "no" ; then
  3592. +			if test ! -x "$withval" ; then
  3593. +				as_fn_error $? "$withval is not an executable file" "$LINENO" 5
  3594. +			fi
  3595. +			MYSQL_CONFIG_HOME="$withval"
  3596. +		fi
  3597. +	
  3598. +
  3599. +fi
  3600. +
  3601. +
  3602. +
  3603. +#
  3604. +# Manual MYSQL_CFLAGS (optional)
  3605. +#
  3606. +
  3607. +@%:@ Check whether --with-MYSQL_CFLAGS was given.
  3608. +if test "${with_MYSQL_CFLAGS+set}" = set; then :
  3609. +  withval=$with_MYSQL_CFLAGS; 
  3610. +		manual_MYSQL_CFLAGS="yes"
  3611. +		MYSQL_CFLAGS="$withval"
  3612. +	
  3613. +else
  3614. +  manual_MYSQL_CFLAGS="no"
  3615. +
  3616. +fi
  3617. +
  3618. +
  3619. +
  3620. +#
  3621. +# Manual MYSQL_LIBS (optional)
  3622. +#
  3623. +
  3624. +@%:@ Check whether --with-MYSQL_LIBS was given.
  3625. +if test "${with_MYSQL_LIBS+set}" = set; then :
  3626. +  withval=$with_MYSQL_LIBS; 
  3627. +		manual_MYSQL_LIBS="yes"
  3628. +		MYSQL_LIBS="$withval"
  3629. +	
  3630. +else
  3631. +  manual_MYSQL_LIBS="no"
  3632. +
  3633. +fi
  3634. +
  3635. +
  3636. +
  3637. +#
  3638. +# Enable/disable PCRE and optionally specify the path (optional library)
  3639. +#
  3640. +
  3641. +@%:@ Check whether --with-pcre was given.
  3642. +if test "${with_pcre+set}" = set; then :
  3643. +  withval=$with_pcre; 
  3644. +		if test "$withval" = "no" ; then
  3645. +			want_pcre="no"
  3646. +		else
  3647. +			want_pcre="yes"
  3648. +			require_pcre="yes"
  3649. +			if test "$withval" != "yes" ; then
  3650. +				if test ! -d "$withval" ; then
  3651. +					as_fn_error $? "$withval is not a directoy" "$LINENO" 5
  3652. +				fi
  3653. +				PCRE_HOME="$withval"
  3654. +			fi
  3655. +		fi
  3656. +	
  3657. +else
  3658. +  want_pcre="yes" require_pcre="no"
  3659. +
  3660. +fi
  3661. +
  3662. +
  3663. +
  3664. +#
  3665. +# Specify the path of the zlib library (required library)
  3666. +#
  3667. +
  3668. +@%:@ Check whether --with-zlib was given.
  3669. +if test "${with_zlib+set}" = set; then :
  3670. +  withval=$with_zlib; 
  3671. +		test -n "$withval" && ZLIB_HOME="$withval"
  3672. +	
  3673. +else
  3674. +  
  3675. +		ZLIB_HOME=/usr/local
  3676. +		test ! -f "${ZLIB_HOME}/include/zlib.h" && ZLIB_HOME=/usr
  3677. +	
  3678. +
  3679. +fi
  3680. +
  3681. +
  3682. +
  3683. +
  3684. +###############################################################################
  3685. +# Check for programs and types.
  3686. +#
  3687. +
  3688. +
  3689. +
  3690. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3691. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3692. +set x ${MAKE-make}
  3693. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3694. +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3695. +  $as_echo_n "(cached) " >&6
  3696. +else
  3697. +  cat >conftest.make <<\_ACEOF
  3698. +SHELL = /bin/sh
  3699. +all:
  3700. +	@echo '@@@%%%=$(MAKE)=@@@%%%'
  3701. +_ACEOF
  3702. +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3703. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3704. +  *@@@%%%=?*=@@@%%%*)
  3705. +    eval ac_cv_prog_make_${ac_make}_set=yes;;
  3706. +  *)
  3707. +    eval ac_cv_prog_make_${ac_make}_set=no;;
  3708. +esac
  3709. +rm -f conftest.make
  3710. +fi
  3711. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3712. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3713. +$as_echo "yes" >&6; }
  3714. +  SET_MAKE=
  3715. +else
  3716. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3717. +$as_echo "no" >&6; }
  3718. +  SET_MAKE="MAKE=${MAKE-make}"
  3719. +fi
  3720. +
  3721. +ac_ext=c
  3722. +ac_cpp='$CPP $CPPFLAGS'
  3723. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3724. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3725. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3726. +if test -n "$ac_tool_prefix"; then
  3727. +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3728. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3729. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3730. +$as_echo_n "checking for $ac_word... " >&6; }
  3731. +if ${ac_cv_prog_CC+:} false; then :
  3732. +  $as_echo_n "(cached) " >&6
  3733. +else
  3734. +  if test -n "$CC"; then
  3735. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  3736. +else
  3737. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3738. +for as_dir in $PATH
  3739. +do
  3740. +  IFS=$as_save_IFS
  3741. +  test -z "$as_dir" && as_dir=.
  3742. +    for ac_exec_ext in '' $ac_executable_extensions; do
  3743. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3744. +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3745. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3746. +    break 2
  3747. +  fi
  3748. +done
  3749. +  done
  3750. +IFS=$as_save_IFS
  3751. +
  3752. +fi
  3753. +fi
  3754. +CC=$ac_cv_prog_CC
  3755. +if test -n "$CC"; then
  3756. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3757. +$as_echo "$CC" >&6; }
  3758. +else
  3759. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3760. +$as_echo "no" >&6; }
  3761. +fi
  3762. +
  3763. +
  3764. +fi
  3765. +if test -z "$ac_cv_prog_CC"; then
  3766. +  ac_ct_CC=$CC
  3767. +  # Extract the first word of "gcc", so it can be a program name with args.
  3768. +set dummy gcc; ac_word=$2
  3769. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3770. +$as_echo_n "checking for $ac_word... " >&6; }
  3771. +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3772. +  $as_echo_n "(cached) " >&6
  3773. +else
  3774. +  if test -n "$ac_ct_CC"; then
  3775. +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3776. +else
  3777. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3778. +for as_dir in $PATH
  3779. +do
  3780. +  IFS=$as_save_IFS
  3781. +  test -z "$as_dir" && as_dir=.
  3782. +    for ac_exec_ext in '' $ac_executable_extensions; do
  3783. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3784. +    ac_cv_prog_ac_ct_CC="gcc"
  3785. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3786. +    break 2
  3787. +  fi
  3788. +done
  3789. +  done
  3790. +IFS=$as_save_IFS
  3791. +
  3792. +fi
  3793. +fi
  3794. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3795. +if test -n "$ac_ct_CC"; then
  3796. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3797. +$as_echo "$ac_ct_CC" >&6; }
  3798. +else
  3799. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3800. +$as_echo "no" >&6; }
  3801. +fi
  3802. +
  3803. +  if test "x$ac_ct_CC" = x; then
  3804. +    CC=""
  3805. +  else
  3806. +    case $cross_compiling:$ac_tool_warned in
  3807. +yes:)
  3808. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3809. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3810. +ac_tool_warned=yes ;;
  3811. +esac
  3812. +    CC=$ac_ct_CC
  3813. +  fi
  3814. +else
  3815. +  CC="$ac_cv_prog_CC"
  3816. +fi
  3817. +
  3818. +if test -z "$CC"; then
  3819. +          if test -n "$ac_tool_prefix"; then
  3820. +    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3821. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  3822. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3823. +$as_echo_n "checking for $ac_word... " >&6; }
  3824. +if ${ac_cv_prog_CC+:} false; then :
  3825. +  $as_echo_n "(cached) " >&6
  3826. +else
  3827. +  if test -n "$CC"; then
  3828. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  3829. +else
  3830. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3831. +for as_dir in $PATH
  3832. +do
  3833. +  IFS=$as_save_IFS
  3834. +  test -z "$as_dir" && as_dir=.
  3835. +    for ac_exec_ext in '' $ac_executable_extensions; do
  3836. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3837. +    ac_cv_prog_CC="${ac_tool_prefix}cc"
  3838. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3839. +    break 2
  3840. +  fi
  3841. +done
  3842. +  done
  3843. +IFS=$as_save_IFS
  3844. +
  3845. +fi
  3846. +fi
  3847. +CC=$ac_cv_prog_CC
  3848. +if test -n "$CC"; then
  3849. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3850. +$as_echo "$CC" >&6; }
  3851. +else
  3852. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3853. +$as_echo "no" >&6; }
  3854. +fi
  3855. +
  3856. +
  3857. +  fi
  3858. +fi
  3859. +if test -z "$CC"; then
  3860. +  # Extract the first word of "cc", so it can be a program name with args.
  3861. +set dummy cc; ac_word=$2
  3862. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3863. +$as_echo_n "checking for $ac_word... " >&6; }
  3864. +if ${ac_cv_prog_CC+:} false; then :
  3865. +  $as_echo_n "(cached) " >&6
  3866. +else
  3867. +  if test -n "$CC"; then
  3868. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  3869. +else
  3870. +  ac_prog_rejected=no
  3871. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3872. +for as_dir in $PATH
  3873. +do
  3874. +  IFS=$as_save_IFS
  3875. +  test -z "$as_dir" && as_dir=.
  3876. +    for ac_exec_ext in '' $ac_executable_extensions; do
  3877. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3878. +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3879. +       ac_prog_rejected=yes
  3880. +       continue
  3881. +     fi
  3882. +    ac_cv_prog_CC="cc"
  3883. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3884. +    break 2
  3885. +  fi
  3886. +done
  3887. +  done
  3888. +IFS=$as_save_IFS
  3889. +
  3890. +if test $ac_prog_rejected = yes; then
  3891. +  # We found a bogon in the path, so make sure we never use it.
  3892. +  set dummy $ac_cv_prog_CC
  3893. +  shift
  3894. +  if test $@%:@ != 0; then
  3895. +    # We chose a different compiler from the bogus one.
  3896. +    # However, it has the same basename, so the bogon will be chosen
  3897. +    # first if we set CC to just the basename; use the full file name.
  3898. +    shift
  3899. +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3900. +  fi
  3901. +fi
  3902. +fi
  3903. +fi
  3904. +CC=$ac_cv_prog_CC
  3905. +if test -n "$CC"; then
  3906. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3907. +$as_echo "$CC" >&6; }
  3908. +else
  3909. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3910. +$as_echo "no" >&6; }
  3911. +fi
  3912. +
  3913. +
  3914. +fi
  3915. +if test -z "$CC"; then
  3916. +  if test -n "$ac_tool_prefix"; then
  3917. +  for ac_prog in cl.exe
  3918. +  do
  3919. +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3920. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3921. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3922. +$as_echo_n "checking for $ac_word... " >&6; }
  3923. +if ${ac_cv_prog_CC+:} false; then :
  3924. +  $as_echo_n "(cached) " >&6
  3925. +else
  3926. +  if test -n "$CC"; then
  3927. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  3928. +else
  3929. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3930. +for as_dir in $PATH
  3931. +do
  3932. +  IFS=$as_save_IFS
  3933. +  test -z "$as_dir" && as_dir=.
  3934. +    for ac_exec_ext in '' $ac_executable_extensions; do
  3935. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3936. +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3937. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3938. +    break 2
  3939. +  fi
  3940. +done
  3941. +  done
  3942. +IFS=$as_save_IFS
  3943. +
  3944. +fi
  3945. +fi
  3946. +CC=$ac_cv_prog_CC
  3947. +if test -n "$CC"; then
  3948. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3949. +$as_echo "$CC" >&6; }
  3950. +else
  3951. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3952. +$as_echo "no" >&6; }
  3953. +fi
  3954. +
  3955. +
  3956. +    test -n "$CC" && break
  3957. +  done
  3958. +fi
  3959. +if test -z "$CC"; then
  3960. +  ac_ct_CC=$CC
  3961. +  for ac_prog in cl.exe
  3962. +do
  3963. +  # Extract the first word of "$ac_prog", so it can be a program name with args.
  3964. +set dummy $ac_prog; ac_word=$2
  3965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3966. +$as_echo_n "checking for $ac_word... " >&6; }
  3967. +if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3968. +  $as_echo_n "(cached) " >&6
  3969. +else
  3970. +  if test -n "$ac_ct_CC"; then
  3971. +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3972. +else
  3973. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3974. +for as_dir in $PATH
  3975. +do
  3976. +  IFS=$as_save_IFS
  3977. +  test -z "$as_dir" && as_dir=.
  3978. +    for ac_exec_ext in '' $ac_executable_extensions; do
  3979. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3980. +    ac_cv_prog_ac_ct_CC="$ac_prog"
  3981. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3982. +    break 2
  3983. +  fi
  3984. +done
  3985. +  done
  3986. +IFS=$as_save_IFS
  3987. +
  3988. +fi
  3989. +fi
  3990. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3991. +if test -n "$ac_ct_CC"; then
  3992. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3993. +$as_echo "$ac_ct_CC" >&6; }
  3994. +else
  3995. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3996. +$as_echo "no" >&6; }
  3997. +fi
  3998. +
  3999. +
  4000. +  test -n "$ac_ct_CC" && break
  4001. +done
  4002. +
  4003. +  if test "x$ac_ct_CC" = x; then
  4004. +    CC=""
  4005. +  else
  4006. +    case $cross_compiling:$ac_tool_warned in
  4007. +yes:)
  4008. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4009. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4010. +ac_tool_warned=yes ;;
  4011. +esac
  4012. +    CC=$ac_ct_CC
  4013. +  fi
  4014. +fi
  4015. +
  4016. +fi
  4017. +
  4018. +
  4019. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4020. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4021. +as_fn_error $? "no acceptable C compiler found in \$PATH
  4022. +See \`config.log' for more details" "$LINENO" 5; }
  4023. +
  4024. +# Provide some information about the compiler.
  4025. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4026. +set X $ac_compile
  4027. +ac_compiler=$2
  4028. +for ac_option in --version -v -V -qversion; do
  4029. +  { { ac_try="$ac_compiler $ac_option >&5"
  4030. +case "(($ac_try" in
  4031. +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4032. +  *) ac_try_echo=$ac_try;;
  4033. +esac
  4034. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4035. +$as_echo "$ac_try_echo"; } >&5
  4036. +  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4037. +  ac_status=$?
  4038. +  if test -s conftest.err; then
  4039. +    sed '10a\
  4040. +... rest of stderr output deleted ...
  4041. +         10q' conftest.err >conftest.er1
  4042. +    cat conftest.er1 >&5
  4043. +  fi
  4044. +  rm -f conftest.er1 conftest.err
  4045. +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4046. +  test $ac_status = 0; }
  4047. +done
  4048. +
  4049. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4050. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4051. +if ${ac_cv_c_compiler_gnu+:} false; then :
  4052. +  $as_echo_n "(cached) " >&6
  4053. +else
  4054. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4055. +/* end confdefs.h.  */
  4056. +
  4057. +int
  4058. +main ()
  4059. +{
  4060. +#ifndef __GNUC__
  4061. +       choke me
  4062. +#endif
  4063. +
  4064. +  ;
  4065. +  return 0;
  4066. +}
  4067. +_ACEOF
  4068. +if ac_fn_c_try_compile "$LINENO"; then :
  4069. +  ac_compiler_gnu=yes
  4070. +else
  4071. +  ac_compiler_gnu=no
  4072. +fi
  4073. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4074. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4075. +
  4076. +fi
  4077. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4078. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4079. +if test $ac_compiler_gnu = yes; then
  4080. +  GCC=yes
  4081. +else
  4082. +  GCC=
  4083. +fi
  4084. +ac_test_CFLAGS=${CFLAGS+set}
  4085. +ac_save_CFLAGS=$CFLAGS
  4086. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4087. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  4088. +if ${ac_cv_prog_cc_g+:} false; then :
  4089. +  $as_echo_n "(cached) " >&6
  4090. +else
  4091. +  ac_save_c_werror_flag=$ac_c_werror_flag
  4092. +   ac_c_werror_flag=yes
  4093. +   ac_cv_prog_cc_g=no
  4094. +   CFLAGS="-g"
  4095. +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4096. +/* end confdefs.h.  */
  4097. +
  4098. +int
  4099. +main ()
  4100. +{
  4101. +
  4102. +  ;
  4103. +  return 0;
  4104. +}
  4105. +_ACEOF
  4106. +if ac_fn_c_try_compile "$LINENO"; then :
  4107. +  ac_cv_prog_cc_g=yes
  4108. +else
  4109. +  CFLAGS=""
  4110. +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4111. +/* end confdefs.h.  */
  4112. +
  4113. +int
  4114. +main ()
  4115. +{
  4116. +
  4117. +  ;
  4118. +  return 0;
  4119. +}
  4120. +_ACEOF
  4121. +if ac_fn_c_try_compile "$LINENO"; then :
  4122. +  
  4123. +else
  4124. +  ac_c_werror_flag=$ac_save_c_werror_flag
  4125. +	 CFLAGS="-g"
  4126. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4127. +/* end confdefs.h.  */
  4128. +
  4129. +int
  4130. +main ()
  4131. +{
  4132. +
  4133. +  ;
  4134. +  return 0;
  4135. +}
  4136. +_ACEOF
  4137. +if ac_fn_c_try_compile "$LINENO"; then :
  4138. +  ac_cv_prog_cc_g=yes
  4139. +fi
  4140. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4141. +fi
  4142. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4143. +fi
  4144. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4145. +   ac_c_werror_flag=$ac_save_c_werror_flag
  4146. +fi
  4147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4148. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  4149. +if test "$ac_test_CFLAGS" = set; then
  4150. +  CFLAGS=$ac_save_CFLAGS
  4151. +elif test $ac_cv_prog_cc_g = yes; then
  4152. +  if test "$GCC" = yes; then
  4153. +    CFLAGS="-g -O2"
  4154. +  else
  4155. +    CFLAGS="-g"
  4156. +  fi
  4157. +else
  4158. +  if test "$GCC" = yes; then
  4159. +    CFLAGS="-O2"
  4160. +  else
  4161. +    CFLAGS=
  4162. +  fi
  4163. +fi
  4164. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4165. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4166. +if ${ac_cv_prog_cc_c89+:} false; then :
  4167. +  $as_echo_n "(cached) " >&6
  4168. +else
  4169. +  ac_cv_prog_cc_c89=no
  4170. +ac_save_CC=$CC
  4171. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4172. +/* end confdefs.h.  */
  4173. +#include <stdarg.h>
  4174. +#include <stdio.h>
  4175. +#include <sys/types.h>
  4176. +#include <sys/stat.h>
  4177. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4178. +struct buf { int x; };
  4179. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4180. +static char *e (p, i)
  4181. +     char **p;
  4182. +     int i;
  4183. +{
  4184. +  return p[i];
  4185. +}
  4186. +static char *f (char * (*g) (char **, int), char **p, ...)
  4187. +{
  4188. +  char *s;
  4189. +  va_list v;
  4190. +  va_start (v,p);
  4191. +  s = g (p, va_arg (v,int));
  4192. +  va_end (v);
  4193. +  return s;
  4194. +}
  4195. +
  4196. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4197. +   function prototypes and stuff, but not '\xHH' hex character constants.
  4198. +   These don't provoke an error unfortunately, instead are silently treated
  4199. +   as 'x'.  The following induces an error, until -std is added to get
  4200. +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4201. +   array size at least.  It's necessary to write '\x00'==0 to get something
  4202. +   that's true only with -std.  */
  4203. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4204. +
  4205. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4206. +   inside strings and character constants.  */
  4207. +#define FOO(x) 'x'
  4208. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4209. +
  4210. +int test (int i, double x);
  4211. +struct s1 {int (*f) (int a);};
  4212. +struct s2 {int (*f) (double a);};
  4213. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4214. +int argc;
  4215. +char **argv;
  4216. +int
  4217. +main ()
  4218. +{
  4219. +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4220. +  ;
  4221. +  return 0;
  4222. +}
  4223. +_ACEOF
  4224. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4225. +	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4226. +do
  4227. +  CC="$ac_save_CC $ac_arg"
  4228. +  if ac_fn_c_try_compile "$LINENO"; then :
  4229. +  ac_cv_prog_cc_c89=$ac_arg
  4230. +fi
  4231. +rm -f core conftest.err conftest.$ac_objext
  4232. +  test "x$ac_cv_prog_cc_c89" != "xno" && break
  4233. +done
  4234. +rm -f conftest.$ac_ext
  4235. +CC=$ac_save_CC
  4236. +
  4237. +fi
  4238. +# AC_CACHE_VAL
  4239. +case "x$ac_cv_prog_cc_c89" in
  4240. +  x)
  4241. +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4242. +$as_echo "none needed" >&6; } ;;
  4243. +  xno)
  4244. +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4245. +$as_echo "unsupported" >&6; } ;;
  4246. +  *)
  4247. +    CC="$CC $ac_cv_prog_cc_c89"
  4248. +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4249. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4250. +esac
  4251. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  4252. +  
  4253. +fi
  4254. +
  4255. +ac_ext=c
  4256. +ac_cpp='$CPP $CPPFLAGS'
  4257. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4258. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4259. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4260. +
  4261. +ac_ext=c
  4262. +ac_cpp='$CPP $CPPFLAGS'
  4263. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4264. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4265. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4266. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4267. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  4268. +# On Suns, sometimes $CPP names a directory.
  4269. +if test -n "$CPP" && test -d "$CPP"; then
  4270. +  CPP=
  4271. +fi
  4272. +if test -z "$CPP"; then
  4273. +  if ${ac_cv_prog_CPP+:} false; then :
  4274. +  $as_echo_n "(cached) " >&6
  4275. +else
  4276. +      # Double quotes because CPP needs to be expanded
  4277. +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4278. +    do
  4279. +      ac_preproc_ok=false
  4280. +for ac_c_preproc_warn_flag in '' yes
  4281. +do
  4282. +  # Use a header file that comes with gcc, so configuring glibc
  4283. +  # with a fresh cross-compiler works.
  4284. +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4285. +  # <limits.h> exists even on freestanding compilers.
  4286. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  4287. +  # not just through cpp. "Syntax error" is here to catch this case.
  4288. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4289. +/* end confdefs.h.  */
  4290. +@%:@ifdef __STDC__
  4291. +@%:@ include <limits.h>
  4292. +@%:@else
  4293. +@%:@ include <assert.h>
  4294. +@%:@endif
  4295. +		     Syntax error
  4296. +_ACEOF
  4297. +if ac_fn_c_try_cpp "$LINENO"; then :
  4298. +  
  4299. +else
  4300. +  # Broken: fails on valid input.
  4301. +continue
  4302. +fi
  4303. +rm -f conftest.err conftest.i conftest.$ac_ext
  4304. +
  4305. +  # OK, works on sane cases.  Now check whether nonexistent headers
  4306. +  # can be detected and how.
  4307. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4308. +/* end confdefs.h.  */
  4309. +@%:@include <ac_nonexistent.h>
  4310. +_ACEOF
  4311. +if ac_fn_c_try_cpp "$LINENO"; then :
  4312. +  # Broken: success on invalid input.
  4313. +continue
  4314. +else
  4315. +  # Passes both tests.
  4316. +ac_preproc_ok=:
  4317. +break
  4318. +fi
  4319. +rm -f conftest.err conftest.i conftest.$ac_ext
  4320. +
  4321. +done
  4322. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4323. +rm -f conftest.i conftest.err conftest.$ac_ext
  4324. +if $ac_preproc_ok; then :
  4325. +  break
  4326. +fi
  4327. +
  4328. +    done
  4329. +    ac_cv_prog_CPP=$CPP
  4330. +  
  4331. +fi
  4332. +  CPP=$ac_cv_prog_CPP
  4333. +else
  4334. +  ac_cv_prog_CPP=$CPP
  4335. +fi
  4336. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4337. +$as_echo "$CPP" >&6; }
  4338. +ac_preproc_ok=false
  4339. +for ac_c_preproc_warn_flag in '' yes
  4340. +do
  4341. +  # Use a header file that comes with gcc, so configuring glibc
  4342. +  # with a fresh cross-compiler works.
  4343. +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4344. +  # <limits.h> exists even on freestanding compilers.
  4345. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  4346. +  # not just through cpp. "Syntax error" is here to catch this case.
  4347. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4348. +/* end confdefs.h.  */
  4349. +@%:@ifdef __STDC__
  4350. +@%:@ include <limits.h>
  4351. +@%:@else
  4352. +@%:@ include <assert.h>
  4353. +@%:@endif
  4354. +		     Syntax error
  4355. +_ACEOF
  4356. +if ac_fn_c_try_cpp "$LINENO"; then :
  4357. +  
  4358. +else
  4359. +  # Broken: fails on valid input.
  4360. +continue
  4361. +fi
  4362. +rm -f conftest.err conftest.i conftest.$ac_ext
  4363. +
  4364. +  # OK, works on sane cases.  Now check whether nonexistent headers
  4365. +  # can be detected and how.
  4366. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4367. +/* end confdefs.h.  */
  4368. +@%:@include <ac_nonexistent.h>
  4369. +_ACEOF
  4370. +if ac_fn_c_try_cpp "$LINENO"; then :
  4371. +  # Broken: success on invalid input.
  4372. +continue
  4373. +else
  4374. +  # Passes both tests.
  4375. +ac_preproc_ok=:
  4376. +break
  4377. +fi
  4378. +rm -f conftest.err conftest.i conftest.$ac_ext
  4379. +
  4380. +done
  4381. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4382. +rm -f conftest.i conftest.err conftest.$ac_ext
  4383. +if $ac_preproc_ok; then :
  4384. +  
  4385. +else
  4386. +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4387. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4388. +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4389. +See \`config.log' for more details" "$LINENO" 5; }
  4390. +fi
  4391. +
  4392. +ac_ext=c
  4393. +ac_cpp='$CPP $CPPFLAGS'
  4394. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4395. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4396. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4397. +
  4398. +# Extract the first word of "ar", so it can be a program name with args.
  4399. +set dummy ar; ac_word=$2
  4400. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4401. +$as_echo_n "checking for $ac_word... " >&6; }
  4402. +if ${ac_cv_path_AR+:} false; then :
  4403. +  $as_echo_n "(cached) " >&6
  4404. +else
  4405. +  case $AR in
  4406. +  [\\/]* | ?:[\\/]*)
  4407. +  ac_cv_path_AR="$AR" # Let the user override the test with a path.
  4408. +  ;;
  4409. +  *)
  4410. +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4411. +for as_dir in $PATH
  4412. +do
  4413. +  IFS=$as_save_IFS
  4414. +  test -z "$as_dir" && as_dir=.
  4415. +    for ac_exec_ext in '' $ac_executable_extensions; do
  4416. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4417. +    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  4418. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4419. +    break 2
  4420. +  fi
  4421. +done
  4422. +  done
  4423. +IFS=$as_save_IFS
  4424. +
  4425. +  ;;
  4426. +esac
  4427. +fi
  4428. +AR=$ac_cv_path_AR
  4429. +if test -n "$AR"; then
  4430. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4431. +$as_echo "$AR" >&6; }
  4432. +else
  4433. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4434. +$as_echo "no" >&6; }
  4435. +fi
  4436. +
  4437. +
  4438. +ac_ext=c
  4439. +ac_cpp='$CPP $CPPFLAGS'
  4440. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4441. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4442. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4443. +
  4444. +
  4445. +
  4446. +CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wno-sign-compare"
  4447. +CPPFLAGS="$CPPFLAGS -I../common"
  4448. +
  4449. +
  4450. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4451. +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4452. +if ${ac_cv_c_bigendian+:} false; then :
  4453. +  $as_echo_n "(cached) " >&6
  4454. +else
  4455. +  ac_cv_c_bigendian=unknown
  4456. +    # See if we're dealing with a universal compiler.
  4457. +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4458. +/* end confdefs.h.  */
  4459. +#ifndef __APPLE_CC__
  4460. +	       not a universal capable compiler
  4461. +	     #endif
  4462. +	     typedef int dummy;
  4463. +	    
  4464. +_ACEOF
  4465. +if ac_fn_c_try_compile "$LINENO"; then :
  4466. +  
  4467. +	# Check for potential -arch flags.  It is not universal unless
  4468. +	# there are at least two -arch flags with different values.
  4469. +	ac_arch=
  4470. +	ac_prev=
  4471. +	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4472. +	 if test -n "$ac_prev"; then
  4473. +	   case $ac_word in
  4474. +	     i?86 | x86_64 | ppc | ppc64)
  4475. +	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4476. +		 ac_arch=$ac_word
  4477. +	       else
  4478. +		 ac_cv_c_bigendian=universal
  4479. +		 break
  4480. +	       fi
  4481. +	       ;;
  4482. +	   esac
  4483. +	   ac_prev=
  4484. +	 elif test "x$ac_word" = "x-arch"; then
  4485. +	   ac_prev=arch
  4486. +	 fi
  4487. +       done
  4488. +fi
  4489. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4490. +    if test $ac_cv_c_bigendian = unknown; then
  4491. +      # See if sys/param.h defines the BYTE_ORDER macro.
  4492. +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4493. +/* end confdefs.h.  */
  4494. +#include <sys/types.h>
  4495. +	     #include <sys/param.h>
  4496. +	   
  4497. +int
  4498. +main ()
  4499. +{
  4500. +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4501. +		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4502. +		     && LITTLE_ENDIAN)
  4503. +	      bogus endian macros
  4504. +	     #endif
  4505. +	   
  4506. +  ;
  4507. +  return 0;
  4508. +}
  4509. +_ACEOF
  4510. +if ac_fn_c_try_compile "$LINENO"; then :
  4511. +  # It does; now see whether it defined to BIG_ENDIAN or not.
  4512. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4513. +/* end confdefs.h.  */
  4514. +#include <sys/types.h>
  4515. +		#include <sys/param.h>
  4516. +	      
  4517. +int
  4518. +main ()
  4519. +{
  4520. +#if BYTE_ORDER != BIG_ENDIAN
  4521. +		 not big endian
  4522. +		#endif
  4523. +	      
  4524. +  ;
  4525. +  return 0;
  4526. +}
  4527. +_ACEOF
  4528. +if ac_fn_c_try_compile "$LINENO"; then :
  4529. +  ac_cv_c_bigendian=yes
  4530. +else
  4531. +  ac_cv_c_bigendian=no
  4532. +fi
  4533. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4534. +fi
  4535. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4536. +    fi
  4537. +    if test $ac_cv_c_bigendian = unknown; then
  4538. +      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4539. +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4540. +/* end confdefs.h.  */
  4541. +#include <limits.h>
  4542. +	   
  4543. +int
  4544. +main ()
  4545. +{
  4546. +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4547. +	      bogus endian macros
  4548. +	     #endif
  4549. +	   
  4550. +  ;
  4551. +  return 0;
  4552. +}
  4553. +_ACEOF
  4554. +if ac_fn_c_try_compile "$LINENO"; then :
  4555. +  # It does; now see whether it defined to _BIG_ENDIAN or not.
  4556. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4557. +/* end confdefs.h.  */
  4558. +#include <limits.h>
  4559. +	      
  4560. +int
  4561. +main ()
  4562. +{
  4563. +#ifndef _BIG_ENDIAN
  4564. +		 not big endian
  4565. +		#endif
  4566. +	      
  4567. +  ;
  4568. +  return 0;
  4569. +}
  4570. +_ACEOF
  4571. +if ac_fn_c_try_compile "$LINENO"; then :
  4572. +  ac_cv_c_bigendian=yes
  4573. +else
  4574. +  ac_cv_c_bigendian=no
  4575. +fi
  4576. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4577. +fi
  4578. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4579. +    fi
  4580. +    if test $ac_cv_c_bigendian = unknown; then
  4581. +      # Compile a test program.
  4582. +      if test "$cross_compiling" = yes; then :
  4583. +  # Try to guess by grepping values from an object file.
  4584. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4585. +/* end confdefs.h.  */
  4586. +short int ascii_mm[] =
  4587. +		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4588. +		short int ascii_ii[] =
  4589. +		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4590. +		int use_ascii (int i) {
  4591. +		  return ascii_mm[i] + ascii_ii[i];
  4592. +		}
  4593. +		short int ebcdic_ii[] =
  4594. +		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4595. +		short int ebcdic_mm[] =
  4596. +		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4597. +		int use_ebcdic (int i) {
  4598. +		  return ebcdic_mm[i] + ebcdic_ii[i];
  4599. +		}
  4600. +		extern int foo;
  4601. +	      
  4602. +int
  4603. +main ()
  4604. +{
  4605. +return use_ascii (foo) == use_ebcdic (foo);
  4606. +  ;
  4607. +  return 0;
  4608. +}
  4609. +_ACEOF
  4610. +if ac_fn_c_try_compile "$LINENO"; then :
  4611. +  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4612. +	      ac_cv_c_bigendian=yes
  4613. +	    fi
  4614. +	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4615. +	      if test "$ac_cv_c_bigendian" = unknown; then
  4616. +		ac_cv_c_bigendian=no
  4617. +	      else
  4618. +		# finding both strings is unlikely to happen, but who knows?
  4619. +		ac_cv_c_bigendian=unknown
  4620. +	      fi
  4621. +	    fi
  4622. +fi
  4623. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4624. +else
  4625. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4626. +/* end confdefs.h.  */
  4627. +$ac_includes_default
  4628. +int
  4629. +main ()
  4630. +{
  4631. +
  4632. +	     /* Are we little or big endian?  From Harbison&Steele.  */
  4633. +	     union
  4634. +	     {
  4635. +	       long int l;
  4636. +	       char c[sizeof (long int)];
  4637. +	     } u;
  4638. +	     u.l = 1;
  4639. +	     return u.c[sizeof (long int) - 1] == 1;
  4640. +	   
  4641. +  ;
  4642. +  return 0;
  4643. +}
  4644. +_ACEOF
  4645. +if ac_fn_c_try_run "$LINENO"; then :
  4646. +  ac_cv_c_bigendian=no
  4647. +else
  4648. +  ac_cv_c_bigendian=yes
  4649. +fi
  4650. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4651. +  conftest.$ac_objext conftest.beam conftest.$ac_ext
  4652. +fi
  4653. +
  4654. +    fi
  4655. +fi
  4656. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4657. +$as_echo "$ac_cv_c_bigendian" >&6; }
  4658. + case $ac_cv_c_bigendian in #(
  4659. +   yes)
  4660. +     as_fn_error $? "bigendian is not supported... stopping" "$LINENO" 5;; #(
  4661. +   no)
  4662. +      ;; #(
  4663. +   universal)
  4664. +     	
  4665. +$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4666. +
  4667. +     ;; #(
  4668. +   *)
  4669. +     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to determine endianess, only little endian is supported" >&5
  4670. +$as_echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;}
  4671. + ;;
  4672. + esac
  4673. +
  4674. +
  4675. +
  4676. +if test "$enable_64bit" = "no" ; then
  4677. +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pointers can be stored in ints (old code)" >&5
  4678. +$as_echo_n "checking whether pointers can be stored in ints (old code)... " >&6; }
  4679. +	pointers_fit_in_ints="no"
  4680. +	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4681. +/* end confdefs.h.  */
  4682. +static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1];
  4683. +int
  4684. +main ()
  4685. +{
  4686. +
  4687. +  ;
  4688. +  return 0;
  4689. +}
  4690. +_ACEOF
  4691. +if ac_fn_c_try_compile "$LINENO"; then :
  4692. +  pointers_fit_in_ints="yes"
  4693. +fi
  4694. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4695. +	if test "$pointers_fit_in_ints" = "no" ; then
  4696. +		CFLAGS="$CFLAGS -m32"
  4697. +		LDFLAGS="$LDFLAGS -m32"
  4698. +		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4699. +/* end confdefs.h.  */
  4700. +static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void *)) ? 1 : -1];
  4701. +int
  4702. +main ()
  4703. +{
  4704. +
  4705. +  ;
  4706. +  return 0;
  4707. +}
  4708. +_ACEOF
  4709. +if ac_fn_c_try_compile "$LINENO"; then :
  4710. +  pointers_fit_in_ints="yes (with -m32)"
  4711. +fi
  4712. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4713. +	fi
  4714. +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pointers_fit_in_ints" >&5
  4715. +$as_echo "$pointers_fit_in_ints" >&6; }
  4716. +	if test "$pointers_fit_in_ints" = "no" ; then
  4717. +		as_fn_error $? "pointers cannot be stored in ints, required for old code... stopping" "$LINENO" 5
  4718. +	fi
  4719. +fi
  4720. +
  4721. +
  4722. +#
  4723. +# check if we're producing 32bit code - so well produce binarys for at least i686 (speedup: cmovs, and cmpchg8 support)
  4724. +#
  4725. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC produces 32bit code" >&5
  4726. +$as_echo_n "checking whether $CC produces 32bit code... " >&6; }
  4727. +if test "$cross_compiling" = yes; then :
  4728. +  
  4729. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  4730. +$as_echo "guessing no" >&6; }
  4731. +	
  4732. +
  4733. +else
  4734. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4735. +/* end confdefs.h.  */
  4736. +
  4737. +		int main(int argc, char **argv){
  4738. +			if(sizeof(void*) == 4) return 0;
  4739. +			else return 1;
  4740. +		}
  4741. +	
  4742. +_ACEOF
  4743. +if ac_fn_c_try_run "$LINENO"; then :
  4744. +  
  4745. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4746. +$as_echo "yes" >&6; }
  4747. +		CFLAGS="$CFLAGS -march=i686"
  4748. +		LDFLAGS="$LDFLAGS -march=i686"
  4749. +	
  4750. +else
  4751. +  
  4752. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4753. +$as_echo "no" >&6; }
  4754. +	
  4755. +fi
  4756. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4757. +  conftest.$ac_objext conftest.beam conftest.$ac_ext
  4758. +fi
  4759. +
  4760. +
  4761. +
  4762. +#
  4763. +# Check if CC supports __thread attribute (Thread Local Storage)
  4764. +# (Usually our OSX friends 're lacking support of it in older llvm versions ..)
  4765. +#
  4766. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __thread specifier (TLS)" >&5
  4767. +$as_echo_n "checking whether $CC supports __thread specifier (TLS)... " >&6; }
  4768. +if test "$cross_compiling" = yes; then :
  4769. +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4770. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4771. +as_fn_error $? "cannot run test program while cross compiling
  4772. +See \`config.log' for more details" "$LINENO" 5; }
  4773. +else
  4774. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4775. +/* end confdefs.h.  */
  4776. +
  4777. +		__thread int g_Test = -1;
  4778. +
  4779. +		int main(int argc, char **argv){
  4780. +			g_Test = 0;
  4781. +			return g_Test;
  4782. +		}
  4783. +	
  4784. +_ACEOF
  4785. +if ac_fn_c_try_run "$LINENO"; then :
  4786. +  
  4787. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4788. +$as_echo "yes" >&6; }
  4789. +		CFLAGS="$CFLAGS -DHAS_TLS"
  4790. +	
  4791. +else
  4792. +  
  4793. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4794. +$as_echo "no" >&6; }
  4795. +	
  4796. +
  4797. +fi
  4798. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4799. +  conftest.$ac_objext conftest.beam conftest.$ac_ext
  4800. +fi
  4801. +
  4802. +
  4803. +
  4804. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
  4805. +$as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
  4806. +OLD_CFLAGS="$CFLAGS"
  4807. +CFLAGS="$CFLAGS -Wno-unused-parameter"
  4808. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4809. +/* end confdefs.h.  */
  4810. +int foo;
  4811. +_ACEOF
  4812. +if ac_fn_c_try_compile "$LINENO"; then :
  4813. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4814. +$as_echo "yes" >&6; }
  4815. +else
  4816. +  
  4817. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4818. +$as_echo "no" >&6; }
  4819. +		CFLAGS="$OLD_CFLAGS"
  4820. +	
  4821. +
  4822. +fi
  4823. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4824. +
  4825. +
  4826. +#
  4827. +# LTO Support test
  4828. +#
  4829. +if test "$enable_lto" != "no" ; then
  4830. +
  4831. +	OLD_CFLAGS="$CFLAGS"
  4832. +	CFLAGS="$CFLAGS -flto"
  4833. +
  4834. +	OLD_LDFLAGS="$LDFLAGS"
  4835. +	LDFLAGS="$LDFLAGS -flto"
  4836. +
  4837. +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -flto" >&5
  4838. +$as_echo_n "checking whether $CC supports -flto... " >&6; }
  4839. +	if test "$cross_compiling" = yes; then :
  4840. +  
  4841. +			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  4842. +$as_echo "guessing no" >&6; }
  4843. +		
  4844. +	
  4845. +else
  4846. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4847. +/* end confdefs.h.  */
  4848. +
  4849. +			int main(int argc, char **argv){
  4850. +               return 0;
  4851. +           }
  4852. +		
  4853. +_ACEOF
  4854. +if ac_fn_c_try_run "$LINENO"; then :
  4855. +  
  4856. +			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4857. +$as_echo "yes" >&6; }
  4858. +		
  4859. +else
  4860. +  
  4861. +			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4862. +$as_echo "no" >&6; }
  4863. +			CFLAGS="$OLD_CFLAGS"
  4864. +			LDFLAGS="$OLD_LDFLAGS"
  4865. +		
  4866. +fi
  4867. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4868. +  conftest.$ac_objext conftest.beam conftest.$ac_ext
  4869. +fi
  4870. +
  4871. +fi
  4872. +
  4873. +
  4874. +
  4875. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-pointer-sign" >&5
  4876. +$as_echo_n "checking whether $CC supports -Wno-pointer-sign... " >&6; }
  4877. +OLD_CFLAGS="$CFLAGS"
  4878. +CFLAGS="$CFLAGS -Wno-pointer-sign"
  4879. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4880. +/* end confdefs.h.  */
  4881. +int foo;
  4882. +_ACEOF
  4883. +if ac_fn_c_try_compile "$LINENO"; then :
  4884. +  
  4885. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4886. +$as_echo "yes" >&6; }
  4887. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-pointer-sign" >&5
  4888. +$as_echo_n "checking whether $CC can actually use -Wno-pointer-sign... " >&6; }
  4889. +		# This option causes warnings in C++ mode
  4890. +		# Note: -Werror must be before -Wno-pointer-sign, otherwise it does not do anything
  4891. +		CFLAGS="$OLD_CFLAGS -Werror -Wno-pointer-sign"
  4892. +		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4893. +/* end confdefs.h.  */
  4894. +int foo;
  4895. +_ACEOF
  4896. +if ac_fn_c_try_compile "$LINENO"; then :
  4897. +  
  4898. +				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4899. +$as_echo "yes" >&6; }
  4900. +				CFLAGS="$OLD_CFLAGS -Wno-pointer-sign"
  4901. +			
  4902. +else
  4903. +  
  4904. +				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4905. +$as_echo "no" >&6; }
  4906. +				CFLAGS="$OLD_CFLAGS"
  4907. +			
  4908. +		
  4909. +fi
  4910. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4911. +	
  4912. +else
  4913. +  
  4914. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4915. +$as_echo "no" >&6; }
  4916. +		CFLAGS="$OLD_CFLAGS"
  4917. +	
  4918. +
  4919. +fi
  4920. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4921. +
  4922. +
  4923. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-switch" >&5
  4924. +$as_echo_n "checking whether $CC supports -Wno-switch... " >&6; }
  4925. +OLD_CFLAGS="$CFLAGS"
  4926. +CFLAGS="$CFLAGS -Wno-switch"
  4927. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4928. +/* end confdefs.h.  */
  4929. +int foo;
  4930. +_ACEOF
  4931. +if ac_fn_c_try_compile "$LINENO"; then :
  4932. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4933. +$as_echo "yes" >&6; }
  4934. +else
  4935. +  
  4936. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4937. +$as_echo "no" >&6; }
  4938. +		CFLAGS="$OLD_CFLAGS"
  4939. +	
  4940. +
  4941. +fi
  4942. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4943. +
  4944. +
  4945. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fPIC" >&5
  4946. +$as_echo_n "checking whether $CC supports -fPIC... " >&6; }
  4947. +OLD_CFLAGS="$CFLAGS"
  4948. +CFLAGS="$CFLAGS -fPIC"
  4949. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4950. +/* end confdefs.h.  */
  4951. +int foo;
  4952. +_ACEOF
  4953. +if ac_fn_c_try_compile "$LINENO"; then :
  4954. +  
  4955. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4956. +$as_echo "yes" >&6; }
  4957. +		compiler_supports_pic="yes"
  4958. +	
  4959. +else
  4960. +  
  4961. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4962. +$as_echo "no" >&6; }
  4963. +		compiler_supports_pic="no"
  4964. +	
  4965. +
  4966. +fi
  4967. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4968. +CFLAGS="$OLD_CFLAGS"
  4969. +
  4970. +
  4971. +#
  4972. +# -O2 implies -fstrict-aliasing, but the code is not safe for that
  4973. +#
  4974. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
  4975. +$as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
  4976. +OLD_CFLAGS="$CFLAGS"
  4977. +CFLAGS="$CFLAGS -fno-strict-aliasing"
  4978. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4979. +/* end confdefs.h.  */
  4980. +int foo;
  4981. +_ACEOF
  4982. +if ac_fn_c_try_compile "$LINENO"; then :
  4983. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4984. +$as_echo "yes" >&6; }
  4985. +else
  4986. +  
  4987. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4988. +$as_echo "no" >&6; }
  4989. +		CFLAGS="$OLD_CFLAGS"
  4990. +	
  4991. +
  4992. +fi
  4993. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4994. +
  4995. +
  4996. +###############################################################################
  4997. +# Check for libraries and header files.
  4998. +#
  4999. +
  5000. +
  5001. +#
  5002. +# setrlimit - used to set the socket limit
  5003. +#
  5004. +ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
  5005. +if test "x$ac_cv_func_setrlimit" = xyes; then :
  5006. +  CFLAGS="$CFLAGS -DHAVE_SETRLIMIT"
  5007. +fi
  5008. +
  5009. +
  5010. +
  5011. +#
  5012. +# strnlen - string length with upper scan bound
  5013. +#
  5014. +ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
  5015. +if test "x$ac_cv_func_strnlen" = xyes; then :
  5016. +  CFLAGS="$CFLAGS -DHAVE_STRNLEN"
  5017. +fi
  5018. +
  5019. +
  5020. +# libconfig
  5021. +for ac_func in uselocale
  5022. +do :
  5023. +  ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  5024. +if test "x$ac_cv_func_uselocale" = xyes; then :
  5025. +  cat >>confdefs.h <<_ACEOF
  5026. +@%:@define HAVE_USELOCALE 1
  5027. +_ACEOF
  5028. + 
  5029. +fi
  5030. +done
  5031. +
  5032. +for ac_func in newlocale
  5033. +do :
  5034. +  ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
  5035. +if test "x$ac_cv_func_newlocale" = xyes; then :
  5036. +  cat >>confdefs.h <<_ACEOF
  5037. +@%:@define HAVE_NEWLOCALE 1
  5038. +_ACEOF
  5039. + 
  5040. +fi
  5041. +done
  5042. +
  5043. +for ac_func in freelocale
  5044. +do :
  5045. +  ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale"
  5046. +if test "x$ac_cv_func_freelocale" = xyes; then :
  5047. +  cat >>confdefs.h <<_ACEOF
  5048. +@%:@define HAVE_FREELOCALE 1
  5049. +_ACEOF
  5050. + 
  5051. +fi
  5052. +done
  5053. +
  5054. +for ac_header in xlocale.h
  5055. +do :
  5056. +  ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  5057. +if test "x$ac_cv_header_xlocale_h" = xyes; then :
  5058. +  cat >>confdefs.h <<_ACEOF
  5059. +@%:@define HAVE_XLOCALE_H 1
  5060. +_ACEOF
  5061. + 
  5062. +fi
  5063. +
  5064. +done
  5065. +
  5066. +
  5067. +#
  5068. +# Memory manager
  5069. +#
  5070. +case $enable_manager in
  5071. +	"no")
  5072. +		CFLAGS="$CFLAGS -DNO_MEMMGR"
  5073. +		;;
  5074. +	"builtin")
  5075. +		# enabled by default
  5076. +		;;
  5077. +	"memwatch")
  5078. +		CFLAGS="$CFLAGS -DMEMWATCH"
  5079. +		ac_fn_c_check_header_mongrel "$LINENO" "memwatch.h" "ac_cv_header_memwatch_h" "$ac_includes_default"
  5080. +if test "x$ac_cv_header_memwatch_h" = xyes; then :
  5081. +  
  5082. +else
  5083. +  as_fn_error $? "memwatch header not found... stopping" "$LINENO" 5
  5084. +fi
  5085. +
  5086. +
  5087. +		;;
  5088. +	"dmalloc")
  5089. +		CFLAGS="$CFLAGS -DDMALLOC -DDMALLOC_FUNC_CHECK"
  5090. +		LIBS="$LIBS -ldmalloc"
  5091. +		ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
  5092. +if test "x$ac_cv_header_dmalloc_h" = xyes; then :
  5093. +  
  5094. +else
  5095. +  as_fn_error $? "dmalloc header not found... stopping" "$LINENO" 5
  5096. +fi
  5097. +
  5098. +
  5099. +		;;
  5100. +	"gcollect")
  5101. +		CFLAGS="$CFLAGS -DGCOLLECT"
  5102. +		LIBS="$LIBS -lgc"
  5103. +		ac_fn_c_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default"
  5104. +if test "x$ac_cv_header_gc_h" = xyes; then :
  5105. +  
  5106. +else
  5107. +  as_fn_error $? "gcollect header not found... stopping" "$LINENO" 5
  5108. +fi
  5109. +
  5110. +
  5111. +		;;
  5112. +	"bcheck")
  5113. +		CFLAGS="$CFLAGS -DBCHECK"
  5114. +		;;
  5115. +esac
  5116. +
  5117. +
  5118. +#
  5119. +# Packetver
  5120. +#
  5121. +if test -n "$enable_packetver" ; then
  5122. +	CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver"
  5123. +fi
  5124. +
  5125. +
  5126. +#
  5127. +# Debug
  5128. +#
  5129. +case $enable_debug in
  5130. +	"no")
  5131. +		# default value
  5132. +		CFLAGS="$CFLAGS -Wno-unused -Wno-parentheses"
  5133. +		;;
  5134. +	"yes")
  5135. +		CFLAGS="$CFLAGS -g -DDEBUG"
  5136. +		;;
  5137. +	"gdb")
  5138. +		CFLAGS="$CFLAGS -ggdb -DDEBUG"
  5139. +		;;
  5140. +esac
  5141. +
  5142. +#
  5143. +# Buildbot
  5144. +#
  5145. +case $enable_buildbot in
  5146. +	"no")
  5147. +		# default value
  5148. +		;;
  5149. +	"yes")
  5150. +		CFLAGS="$CFLAGS -DBUILDBOT"
  5151. +		;;
  5152. +esac
  5153. +
  5154. +#
  5155. +# RDTSC
  5156. +#
  5157. +case $enable_rdtsc in
  5158. +	0)
  5159. +		#default value
  5160. +		;;
  5161. +	1)
  5162. +		CFLAGS="$CFLAGS -DENABLE_RDTSC"
  5163. +		;;
  5164. +esac
  5165. +
  5166. +
  5167. +#
  5168. +# Profiler
  5169. +#
  5170. +case $enable_profiler in
  5171. +	"no")
  5172. +		# default value
  5173. +		;;
  5174. +	"gprof")
  5175. +		CFLAGS="$CFLAGS -pg"
  5176. +		LDFLAGS="$LDFLAGS -pg"
  5177. +		;;
  5178. +esac
  5179. +
  5180. +
  5181. +#
  5182. +# zlib library (required)
  5183. +#
  5184. +if test -n "${ZLIB_HOME}" ; then
  5185. +	LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
  5186. +	CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
  5187. +fi
  5188. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
  5189. +$as_echo_n "checking for inflateEnd in -lz... " >&6; }
  5190. +if ${ac_cv_lib_z_inflateEnd+:} false; then :
  5191. +  $as_echo_n "(cached) " >&6
  5192. +else
  5193. +  ac_check_lib_save_LIBS=$LIBS
  5194. +LIBS="-lz  $LIBS"
  5195. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5196. +/* end confdefs.h.  */
  5197. +
  5198. +/* Override any GCC internal prototype to avoid an error.
  5199. +   Use char because int might match the return type of a GCC
  5200. +   builtin and then its argument prototype would still apply.  */
  5201. +#ifdef __cplusplus
  5202. +extern "C"
  5203. +#endif
  5204. +char inflateEnd ();
  5205. +int
  5206. +main ()
  5207. +{
  5208. +return inflateEnd ();
  5209. +  ;
  5210. +  return 0;
  5211. +}
  5212. +_ACEOF
  5213. +if ac_fn_c_try_link "$LINENO"; then :
  5214. +  ac_cv_lib_z_inflateEnd=yes
  5215. +else
  5216. +  ac_cv_lib_z_inflateEnd=no
  5217. +fi
  5218. +rm -f core conftest.err conftest.$ac_objext \
  5219. +    conftest$ac_exeext conftest.$ac_ext
  5220. +LIBS=$ac_check_lib_save_LIBS
  5221. +fi
  5222. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
  5223. +$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
  5224. +if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
  5225. +  cat >>confdefs.h <<_ACEOF
  5226. +@%:@define HAVE_LIBZ 1
  5227. +_ACEOF
  5228. +
  5229. +  LIBS="-lz $LIBS"
  5230. +
  5231. +else
  5232. +  as_fn_error $? "zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" "$LINENO" 5
  5233. +fi
  5234. +
  5235. +ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  5236. +if test "x$ac_cv_header_zlib_h" = xyes; then :
  5237. +  
  5238. +else
  5239. +  as_fn_error $? "zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" "$LINENO" 5
  5240. +fi
  5241. +
  5242. +
  5243. +
  5244. +
  5245. +#
  5246. +# math library (required)
  5247. +#
  5248. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
  5249. +$as_echo_n "checking for library containing sqrt... " >&6; }
  5250. +if ${ac_cv_search_sqrt+:} false; then :
  5251. +  $as_echo_n "(cached) " >&6
  5252. +else
  5253. +  ac_func_search_save_LIBS=$LIBS
  5254. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5255. +/* end confdefs.h.  */
  5256. +
  5257. +/* Override any GCC internal prototype to avoid an error.
  5258. +   Use char because int might match the return type of a GCC
  5259. +   builtin and then its argument prototype would still apply.  */
  5260. +#ifdef __cplusplus
  5261. +extern "C"
  5262. +#endif
  5263. +char sqrt ();
  5264. +int
  5265. +main ()
  5266. +{
  5267. +return sqrt ();
  5268. +  ;
  5269. +  return 0;
  5270. +}
  5271. +_ACEOF
  5272. +for ac_lib in '' m; do
  5273. +  if test -z "$ac_lib"; then
  5274. +    ac_res="none required"
  5275. +  else
  5276. +    ac_res=-l$ac_lib
  5277. +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5278. +  fi
  5279. +  if ac_fn_c_try_link "$LINENO"; then :
  5280. +  ac_cv_search_sqrt=$ac_res
  5281. +fi
  5282. +rm -f core conftest.err conftest.$ac_objext \
  5283. +    conftest$ac_exeext
  5284. +  if ${ac_cv_search_sqrt+:} false; then :
  5285. +  break
  5286. +fi
  5287. +done
  5288. +if ${ac_cv_search_sqrt+:} false; then :
  5289. +  
  5290. +else
  5291. +  ac_cv_search_sqrt=no
  5292. +fi
  5293. +rm conftest.$ac_ext
  5294. +LIBS=$ac_func_search_save_LIBS
  5295. +fi
  5296. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
  5297. +$as_echo "$ac_cv_search_sqrt" >&6; }
  5298. +ac_res=$ac_cv_search_sqrt
  5299. +if test "$ac_res" != no; then :
  5300. +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5301. +  
  5302. +else
  5303. +  as_fn_error $? "math library not found... stopping" "$LINENO" 5
  5304. +fi
  5305. +
  5306. +
  5307. +
  5308. +#
  5309. +# clock_gettime (optional, rt on Debian)
  5310. +#
  5311. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  5312. +$as_echo_n "checking for library containing clock_gettime... " >&6; }
  5313. +if ${ac_cv_search_clock_gettime+:} false; then :
  5314. +  $as_echo_n "(cached) " >&6
  5315. +else
  5316. +  ac_func_search_save_LIBS=$LIBS
  5317. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5318. +/* end confdefs.h.  */
  5319. +
  5320. +/* Override any GCC internal prototype to avoid an error.
  5321. +   Use char because int might match the return type of a GCC
  5322. +   builtin and then its argument prototype would still apply.  */
  5323. +#ifdef __cplusplus
  5324. +extern "C"
  5325. +#endif
  5326. +char clock_gettime ();
  5327. +int
  5328. +main ()
  5329. +{
  5330. +return clock_gettime ();
  5331. +  ;
  5332. +  return 0;
  5333. +}
  5334. +_ACEOF
  5335. +for ac_lib in '' rt; do
  5336. +  if test -z "$ac_lib"; then
  5337. +    ac_res="none required"
  5338. +  else
  5339. +    ac_res=-l$ac_lib
  5340. +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5341. +  fi
  5342. +  if ac_fn_c_try_link "$LINENO"; then :
  5343. +  ac_cv_search_clock_gettime=$ac_res
  5344. +fi
  5345. +rm -f core conftest.err conftest.$ac_objext \
  5346. +    conftest$ac_exeext
  5347. +  if ${ac_cv_search_clock_gettime+:} false; then :
  5348. +  break
  5349. +fi
  5350. +done
  5351. +if ${ac_cv_search_clock_gettime+:} false; then :
  5352. +  
  5353. +else
  5354. +  ac_cv_search_clock_gettime=no
  5355. +fi
  5356. +rm conftest.$ac_ext
  5357. +LIBS=$ac_func_search_save_LIBS
  5358. +fi
  5359. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  5360. +$as_echo "$ac_cv_search_clock_gettime" >&6; }
  5361. +ac_res=$ac_cv_search_clock_gettime
  5362. +if test "$ac_res" != no; then :
  5363. +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5364. +  
  5365. +fi
  5366. +
  5367. +
  5368. +
  5369. +#
  5370. +# CLOCK_MONOTONIC clock for clock_gettime
  5371. +# Normally defines _POSIX_TIMERS > 0 and _POSIX_MONOTONIC_CLOCK (for posix
  5372. +# compliant systems) and __FreeBSD_cc_version >= 500005 (for FreeBSD
  5373. +# >= 5.1.0, which does not have the posix defines (ref. r11983)) would be
  5374. +# checked but some systems define them even when they do not support it
  5375. +# (ref. bugreport:1003).
  5376. +#
  5377. +if test "$ac_cv_search_clock_gettime" != "no" ; then
  5378. +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CLOCK_MONOTONIC is supported and works" >&5
  5379. +$as_echo_n "checking whether CLOCK_MONOTONIC is supported and works... " >&6; }
  5380. +	if test "$cross_compiling" = yes; then :
  5381. +  
  5382. +			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  5383. +$as_echo "guessing no" >&6; }
  5384. +		
  5385. +	
  5386. +else
  5387. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5388. +/* end confdefs.h.  */
  5389. +
  5390. +			#include <sys/time.h>
  5391. +			#include <time.h>
  5392. +			#include <unistd.h>
  5393. +
  5394. +			int main(int argc, char** argv)
  5395. +			{
  5396. +				struct timespec tval;
  5397. +				return clock_gettime(CLOCK_MONOTONIC, &tval);
  5398. +			}
  5399. +		
  5400. +_ACEOF
  5401. +if ac_fn_c_try_run "$LINENO"; then :
  5402. +  
  5403. +			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5404. +$as_echo "yes" >&6; }
  5405. +			CFLAGS="$CFLAGS -DHAVE_MONOTONIC_CLOCK"
  5406. +		
  5407. +else
  5408. +  
  5409. +			# either it failed to compile (CLOCK_MONOTONIC undefined)
  5410. +			# or clock_gettime has returned a non-zero value
  5411. +			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5412. +$as_echo "no" >&6; }
  5413. +		
  5414. +fi
  5415. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5416. +  conftest.$ac_objext conftest.beam conftest.$ac_ext
  5417. +fi
  5418. +
  5419. +fi
  5420. +
  5421. +
  5422. +#
  5423. +# pthread
  5424. +#
  5425. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  5426. +$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  5427. +if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  5428. +  $as_echo_n "(cached) " >&6
  5429. +else
  5430. +  ac_check_lib_save_LIBS=$LIBS
  5431. +LIBS="-lpthread  $LIBS"
  5432. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5433. +/* end confdefs.h.  */
  5434. +
  5435. +/* Override any GCC internal prototype to avoid an error.
  5436. +   Use char because int might match the return type of a GCC
  5437. +   builtin and then its argument prototype would still apply.  */
  5438. +#ifdef __cplusplus
  5439. +extern "C"
  5440. +#endif
  5441. +char pthread_create ();
  5442. +int
  5443. +main ()
  5444. +{
  5445. +return pthread_create ();
  5446. +  ;
  5447. +  return 0;
  5448. +}
  5449. +_ACEOF
  5450. +if ac_fn_c_try_link "$LINENO"; then :
  5451. +  ac_cv_lib_pthread_pthread_create=yes
  5452. +else
  5453. +  ac_cv_lib_pthread_pthread_create=no
  5454. +fi
  5455. +rm -f core conftest.err conftest.$ac_objext \
  5456. +    conftest$ac_exeext conftest.$ac_ext
  5457. +LIBS=$ac_check_lib_save_LIBS
  5458. +fi
  5459. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  5460. +$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  5461. +if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  5462. +  cat >>confdefs.h <<_ACEOF
  5463. +@%:@define HAVE_LIBPTHREAD 1
  5464. +_ACEOF
  5465. +
  5466. +  LIBS="-lpthread $LIBS"
  5467. +
  5468. +else
  5469. +  as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5470. +fi
  5471. +
  5472. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in -lpthread" >&5
  5473. +$as_echo_n "checking for pthread_sigmask in -lpthread... " >&6; }
  5474. +if ${ac_cv_lib_pthread_pthread_sigmask+:} false; then :
  5475. +  $as_echo_n "(cached) " >&6
  5476. +else
  5477. +  ac_check_lib_save_LIBS=$LIBS
  5478. +LIBS="-lpthread  $LIBS"
  5479. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5480. +/* end confdefs.h.  */
  5481. +
  5482. +/* Override any GCC internal prototype to avoid an error.
  5483. +   Use char because int might match the return type of a GCC
  5484. +   builtin and then its argument prototype would still apply.  */
  5485. +#ifdef __cplusplus
  5486. +extern "C"
  5487. +#endif
  5488. +char pthread_sigmask ();
  5489. +int
  5490. +main ()
  5491. +{
  5492. +return pthread_sigmask ();
  5493. +  ;
  5494. +  return 0;
  5495. +}
  5496. +_ACEOF
  5497. +if ac_fn_c_try_link "$LINENO"; then :
  5498. +  ac_cv_lib_pthread_pthread_sigmask=yes
  5499. +else
  5500. +  ac_cv_lib_pthread_pthread_sigmask=no
  5501. +fi
  5502. +rm -f core conftest.err conftest.$ac_objext \
  5503. +    conftest$ac_exeext conftest.$ac_ext
  5504. +LIBS=$ac_check_lib_save_LIBS
  5505. +fi
  5506. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_sigmask" >&5
  5507. +$as_echo "$ac_cv_lib_pthread_pthread_sigmask" >&6; }
  5508. +if test "x$ac_cv_lib_pthread_pthread_sigmask" = xyes; then :
  5509. +  cat >>confdefs.h <<_ACEOF
  5510. +@%:@define HAVE_LIBPTHREAD 1
  5511. +_ACEOF
  5512. +
  5513. +  LIBS="-lpthread $LIBS"
  5514. +
  5515. +else
  5516. +  as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5517. +fi
  5518. +
  5519. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
  5520. +$as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
  5521. +if ${ac_cv_lib_pthread_pthread_attr_init+:} false; then :
  5522. +  $as_echo_n "(cached) " >&6
  5523. +else
  5524. +  ac_check_lib_save_LIBS=$LIBS
  5525. +LIBS="-lpthread  $LIBS"
  5526. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5527. +/* end confdefs.h.  */
  5528. +
  5529. +/* Override any GCC internal prototype to avoid an error.
  5530. +   Use char because int might match the return type of a GCC
  5531. +   builtin and then its argument prototype would still apply.  */
  5532. +#ifdef __cplusplus
  5533. +extern "C"
  5534. +#endif
  5535. +char pthread_attr_init ();
  5536. +int
  5537. +main ()
  5538. +{
  5539. +return pthread_attr_init ();
  5540. +  ;
  5541. +  return 0;
  5542. +}
  5543. +_ACEOF
  5544. +if ac_fn_c_try_link "$LINENO"; then :
  5545. +  ac_cv_lib_pthread_pthread_attr_init=yes
  5546. +else
  5547. +  ac_cv_lib_pthread_pthread_attr_init=no
  5548. +fi
  5549. +rm -f core conftest.err conftest.$ac_objext \
  5550. +    conftest$ac_exeext conftest.$ac_ext
  5551. +LIBS=$ac_check_lib_save_LIBS
  5552. +fi
  5553. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
  5554. +$as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
  5555. +if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes; then :
  5556. +  cat >>confdefs.h <<_ACEOF
  5557. +@%:@define HAVE_LIBPTHREAD 1
  5558. +_ACEOF
  5559. +
  5560. +  LIBS="-lpthread $LIBS"
  5561. +
  5562. +else
  5563. +  as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5564. +fi
  5565. +
  5566. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize in -lpthread" >&5
  5567. +$as_echo_n "checking for pthread_attr_setstacksize in -lpthread... " >&6; }
  5568. +if ${ac_cv_lib_pthread_pthread_attr_setstacksize+:} false; then :
  5569. +  $as_echo_n "(cached) " >&6
  5570. +else
  5571. +  ac_check_lib_save_LIBS=$LIBS
  5572. +LIBS="-lpthread  $LIBS"
  5573. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5574. +/* end confdefs.h.  */
  5575. +
  5576. +/* Override any GCC internal prototype to avoid an error.
  5577. +   Use char because int might match the return type of a GCC
  5578. +   builtin and then its argument prototype would still apply.  */
  5579. +#ifdef __cplusplus
  5580. +extern "C"
  5581. +#endif
  5582. +char pthread_attr_setstacksize ();
  5583. +int
  5584. +main ()
  5585. +{
  5586. +return pthread_attr_setstacksize ();
  5587. +  ;
  5588. +  return 0;
  5589. +}
  5590. +_ACEOF
  5591. +if ac_fn_c_try_link "$LINENO"; then :
  5592. +  ac_cv_lib_pthread_pthread_attr_setstacksize=yes
  5593. +else
  5594. +  ac_cv_lib_pthread_pthread_attr_setstacksize=no
  5595. +fi
  5596. +rm -f core conftest.err conftest.$ac_objext \
  5597. +    conftest$ac_exeext conftest.$ac_ext
  5598. +LIBS=$ac_check_lib_save_LIBS
  5599. +fi
  5600. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_setstacksize" >&5
  5601. +$as_echo "$ac_cv_lib_pthread_pthread_attr_setstacksize" >&6; }
  5602. +if test "x$ac_cv_lib_pthread_pthread_attr_setstacksize" = xyes; then :
  5603. +  cat >>confdefs.h <<_ACEOF
  5604. +@%:@define HAVE_LIBPTHREAD 1
  5605. +_ACEOF
  5606. +
  5607. +  LIBS="-lpthread $LIBS"
  5608. +
  5609. +else
  5610. +  as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5611. +fi
  5612. +
  5613. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_destroy in -lpthread" >&5
  5614. +$as_echo_n "checking for pthread_attr_destroy in -lpthread... " >&6; }
  5615. +if ${ac_cv_lib_pthread_pthread_attr_destroy+:} false; then :
  5616. +  $as_echo_n "(cached) " >&6
  5617. +else
  5618. +  ac_check_lib_save_LIBS=$LIBS
  5619. +LIBS="-lpthread  $LIBS"
  5620. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5621. +/* end confdefs.h.  */
  5622. +
  5623. +/* Override any GCC internal prototype to avoid an error.
  5624. +   Use char because int might match the return type of a GCC
  5625. +   builtin and then its argument prototype would still apply.  */
  5626. +#ifdef __cplusplus
  5627. +extern "C"
  5628. +#endif
  5629. +char pthread_attr_destroy ();
  5630. +int
  5631. +main ()
  5632. +{
  5633. +return pthread_attr_destroy ();
  5634. +  ;
  5635. +  return 0;
  5636. +}
  5637. +_ACEOF
  5638. +if ac_fn_c_try_link "$LINENO"; then :
  5639. +  ac_cv_lib_pthread_pthread_attr_destroy=yes
  5640. +else
  5641. +  ac_cv_lib_pthread_pthread_attr_destroy=no
  5642. +fi
  5643. +rm -f core conftest.err conftest.$ac_objext \
  5644. +    conftest$ac_exeext conftest.$ac_ext
  5645. +LIBS=$ac_check_lib_save_LIBS
  5646. +fi
  5647. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_destroy" >&5
  5648. +$as_echo "$ac_cv_lib_pthread_pthread_attr_destroy" >&6; }
  5649. +if test "x$ac_cv_lib_pthread_pthread_attr_destroy" = xyes; then :
  5650. +  cat >>confdefs.h <<_ACEOF
  5651. +@%:@define HAVE_LIBPTHREAD 1
  5652. +_ACEOF
  5653. +
  5654. +  LIBS="-lpthread $LIBS"
  5655. +
  5656. +else
  5657. +  as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5658. +fi
  5659. +
  5660. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cancel in -lpthread" >&5
  5661. +$as_echo_n "checking for pthread_cancel in -lpthread... " >&6; }
  5662. +if ${ac_cv_lib_pthread_pthread_cancel+:} false; then :
  5663. +  $as_echo_n "(cached) " >&6
  5664. +else
  5665. +  ac_check_lib_save_LIBS=$LIBS
  5666. +LIBS="-lpthread  $LIBS"
  5667. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5668. +/* end confdefs.h.  */
  5669. +
  5670. +/* Override any GCC internal prototype to avoid an error.
  5671. +   Use char because int might match the return type of a GCC
  5672. +   builtin and then its argument prototype would still apply.  */
  5673. +#ifdef __cplusplus
  5674. +extern "C"
  5675. +#endif
  5676. +char pthread_cancel ();
  5677. +int
  5678. +main ()
  5679. +{
  5680. +return pthread_cancel ();
  5681. +  ;
  5682. +  return 0;
  5683. +}
  5684. +_ACEOF
  5685. +if ac_fn_c_try_link "$LINENO"; then :
  5686. +  ac_cv_lib_pthread_pthread_cancel=yes
  5687. +else
  5688. +  ac_cv_lib_pthread_pthread_cancel=no
  5689. +fi
  5690. +rm -f core conftest.err conftest.$ac_objext \
  5691. +    conftest$ac_exeext conftest.$ac_ext
  5692. +LIBS=$ac_check_lib_save_LIBS
  5693. +fi
  5694. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cancel" >&5
  5695. +$as_echo "$ac_cv_lib_pthread_pthread_cancel" >&6; }
  5696. +if test "x$ac_cv_lib_pthread_pthread_cancel" = xyes; then :
  5697. +  cat >>confdefs.h <<_ACEOF
  5698. +@%:@define HAVE_LIBPTHREAD 1
  5699. +_ACEOF
  5700. +
  5701. +  LIBS="-lpthread $LIBS"
  5702. +
  5703. +else
  5704. +  as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5705. +fi
  5706. +
  5707. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
  5708. +$as_echo_n "checking for pthread_join in -lpthread... " >&6; }
  5709. +if ${ac_cv_lib_pthread_pthread_join+:} false; then :
  5710. +  $as_echo_n "(cached) " >&6
  5711. +else
  5712. +  ac_check_lib_save_LIBS=$LIBS
  5713. +LIBS="-lpthread  $LIBS"
  5714. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5715. +/* end confdefs.h.  */
  5716. +
  5717. +/* Override any GCC internal prototype to avoid an error.
  5718. +   Use char because int might match the return type of a GCC
  5719. +   builtin and then its argument prototype would still apply.  */
  5720. +#ifdef __cplusplus
  5721. +extern "C"
  5722. +#endif
  5723. +char pthread_join ();
  5724. +int
  5725. +main ()
  5726. +{
  5727. +return pthread_join ();
  5728. +  ;
  5729. +  return 0;
  5730. +}
  5731. +_ACEOF
  5732. +if ac_fn_c_try_link "$LINENO"; then :
  5733. +  ac_cv_lib_pthread_pthread_join=yes
  5734. +else
  5735. +  ac_cv_lib_pthread_pthread_join=no
  5736. +fi
  5737. +rm -f core conftest.err conftest.$ac_objext \
  5738. +    conftest$ac_exeext conftest.$ac_ext
  5739. +LIBS=$ac_check_lib_save_LIBS
  5740. +fi
  5741. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
  5742. +$as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
  5743. +if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
  5744. +  cat >>confdefs.h <<_ACEOF
  5745. +@%:@define HAVE_LIBPTHREAD 1
  5746. +_ACEOF
  5747. +
  5748. +  LIBS="-lpthread $LIBS"
  5749. +
  5750. +else
  5751. +  as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  5752. +fi
  5753. +
  5754. +
  5755. +LDFLAGS="$LDFLAGS -lpthread"
  5756. +
  5757. +
  5758. +#
  5759. +# MySQL library
  5760. +#
  5761. +
  5762. +if test -z "$MYSQL_CONFIG_HOME"; then
  5763. +	# Extract the first word of "mysql_config", so it can be a program name with args.
  5764. +set dummy mysql_config; ac_word=$2
  5765. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5766. +$as_echo_n "checking for $ac_word... " >&6; }
  5767. +if ${ac_cv_path_MYSQL_CONFIG_HOME+:} false; then :
  5768. +  $as_echo_n "(cached) " >&6
  5769. +else
  5770. +  case $MYSQL_CONFIG_HOME in
  5771. +  [\\/]* | ?:[\\/]*)
  5772. +  ac_cv_path_MYSQL_CONFIG_HOME="$MYSQL_CONFIG_HOME" # Let the user override the test with a path.
  5773. +  ;;
  5774. +  *)
  5775. +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5776. +for as_dir in $PATH
  5777. +do
  5778. +  IFS=$as_save_IFS
  5779. +  test -z "$as_dir" && as_dir=.
  5780. +    for ac_exec_ext in '' $ac_executable_extensions; do
  5781. +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5782. +    ac_cv_path_MYSQL_CONFIG_HOME="$as_dir/$ac_word$ac_exec_ext"
  5783. +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5784. +    break 2
  5785. +  fi
  5786. +done
  5787. +  done
  5788. +IFS=$as_save_IFS
  5789. +
  5790. +  test -z "$ac_cv_path_MYSQL_CONFIG_HOME" && ac_cv_path_MYSQL_CONFIG_HOME="no"
  5791. +  ;;
  5792. +esac
  5793. +fi
  5794. +MYSQL_CONFIG_HOME=$ac_cv_path_MYSQL_CONFIG_HOME
  5795. +if test -n "$MYSQL_CONFIG_HOME"; then
  5796. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG_HOME" >&5
  5797. +$as_echo "$MYSQL_CONFIG_HOME" >&6; }
  5798. +else
  5799. +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5800. +$as_echo "no" >&6; }
  5801. +fi
  5802. +
  5803. +
  5804. +fi
  5805. +
  5806. +if test "$MYSQL_CONFIG_HOME" != "no" ; then
  5807. +	MYSQL_VERSION="`$MYSQL_CONFIG_HOME --version`"
  5808. +	if test "$manual_MYSQL_CFLAGS" = "no" ; then
  5809. +		MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --include`"
  5810. +	fi
  5811. +	if test "$manual_MYSQL_LIBS" = "no" ; then
  5812. +		MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`"
  5813. +	fi
  5814. +else
  5815. +	MYSQL_VERSION="unknown"
  5816. +fi
  5817. +
  5818. +MYSQL_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS $MYSQL_LIBS"
  5819. +MYSQL_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS"
  5820. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
  5821. +$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
  5822. +if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then :
  5823. +  $as_echo_n "(cached) " >&6
  5824. +else
  5825. +  ac_check_lib_save_LIBS=$LIBS
  5826. +LIBS="-lmysqlclient  $LIBS"
  5827. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5828. +/* end confdefs.h.  */
  5829. +
  5830. +/* Override any GCC internal prototype to avoid an error.
  5831. +   Use char because int might match the return type of a GCC
  5832. +   builtin and then its argument prototype would still apply.  */
  5833. +#ifdef __cplusplus
  5834. +extern "C"
  5835. +#endif
  5836. +char mysql_init ();
  5837. +int
  5838. +main ()
  5839. +{
  5840. +return mysql_init ();
  5841. +  ;
  5842. +  return 0;
  5843. +}
  5844. +_ACEOF
  5845. +if ac_fn_c_try_link "$LINENO"; then :
  5846. +  ac_cv_lib_mysqlclient_mysql_init=yes
  5847. +else
  5848. +  ac_cv_lib_mysqlclient_mysql_init=no
  5849. +fi
  5850. +rm -f core conftest.err conftest.$ac_objext \
  5851. +    conftest$ac_exeext conftest.$ac_ext
  5852. +LIBS=$ac_check_lib_save_LIBS
  5853. +fi
  5854. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
  5855. +$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
  5856. +if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then :
  5857. +  HAVE_MYSQL="yes"
  5858. +fi
  5859. +
  5860. +ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
  5861. +if test "x$ac_cv_header_mysql_h" = xyes; then :
  5862. +  
  5863. +else
  5864. +  HAVE_MYSQL=""
  5865. +fi
  5866. +
  5867. +
  5868. +CPPFLAGS="$MYSQL_OLD_CPPFLAGS"
  5869. +LDFLAGS="$MYSQL_OLD_LDFLAGS"
  5870. +
  5871. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MySQL library (required)" >&5
  5872. +$as_echo_n "checking MySQL library (required)... " >&6; }
  5873. +if test "$HAVE_MYSQL" = "yes" ; then
  5874. +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($MYSQL_VERSION)" >&5
  5875. +$as_echo "yes ($MYSQL_VERSION)" >&6; }
  5876. +else
  5877. +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5878. +$as_echo "no" >&6; }
  5879. +	as_fn_error $? "MySQL not found or incompatible" "$LINENO" 5
  5880. +fi
  5881. +
  5882. +
  5883. +
  5884. +
  5885. +
  5886. +
  5887. +
  5888. +#
  5889. +# PCRE library (optional)
  5890. +#
  5891. +##TODO PCRE version
  5892. +PCRE_LIBS=""
  5893. +PCRE_CFLAGS=""
  5894. +
  5895. +if test "$want_pcre" = "no" ; then
  5896. +	{ $as_echo "$as_me:${as_lineno-$LINENO}: ignoring PCRE (optional)" >&5
  5897. +$as_echo "$as_me: ignoring PCRE (optional)" >&6;}
  5898. +else
  5899. +	if test -z "$PCRE_HOME" ; then
  5900. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
  5901. +$as_echo_n "checking for pcre_study in -lpcre... " >&6; }
  5902. +if ${ac_cv_lib_pcre_pcre_study+:} false; then :
  5903. +  $as_echo_n "(cached) " >&6
  5904. +else
  5905. +  ac_check_lib_save_LIBS=$LIBS
  5906. +LIBS="-lpcre  $LIBS"
  5907. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5908. +/* end confdefs.h.  */
  5909. +
  5910. +/* Override any GCC internal prototype to avoid an error.
  5911. +   Use char because int might match the return type of a GCC
  5912. +   builtin and then its argument prototype would still apply.  */
  5913. +#ifdef __cplusplus
  5914. +extern "C"
  5915. +#endif
  5916. +char pcre_study ();
  5917. +int
  5918. +main ()
  5919. +{
  5920. +return pcre_study ();
  5921. +  ;
  5922. +  return 0;
  5923. +}
  5924. +_ACEOF
  5925. +if ac_fn_c_try_link "$LINENO"; then :
  5926. +  ac_cv_lib_pcre_pcre_study=yes
  5927. +else
  5928. +  ac_cv_lib_pcre_pcre_study=no
  5929. +fi
  5930. +rm -f core conftest.err conftest.$ac_objext \
  5931. +    conftest$ac_exeext conftest.$ac_ext
  5932. +LIBS=$ac_check_lib_save_LIBS
  5933. +fi
  5934. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
  5935. +$as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
  5936. +if test "x$ac_cv_lib_pcre_pcre_study" = xyes; then :
  5937. +  HAVE_PCRE="yes"
  5938. +fi
  5939. +
  5940. +		if test "$HAVE_PCRE" = "yes" ; then
  5941. +			PCRE_LIBS="-lpcre"
  5942. +		fi
  5943. +	else
  5944. +		PCRE_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$PCRE_HOME/lib"
  5945. +		PCRE_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$PCRE_HOME/include"
  5946. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
  5947. +$as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
  5948. +if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
  5949. +  $as_echo_n "(cached) " >&6
  5950. +else
  5951. +  ac_check_lib_save_LIBS=$LIBS
  5952. +LIBS="-lpcre  $LIBS"
  5953. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5954. +/* end confdefs.h.  */
  5955. +
  5956. +/* Override any GCC internal prototype to avoid an error.
  5957. +   Use char because int might match the return type of a GCC
  5958. +   builtin and then its argument prototype would still apply.  */
  5959. +#ifdef __cplusplus
  5960. +extern "C"
  5961. +#endif
  5962. +char pcre_compile ();
  5963. +int
  5964. +main ()
  5965. +{
  5966. +return pcre_compile ();
  5967. +  ;
  5968. +  return 0;
  5969. +}
  5970. +_ACEOF
  5971. +if ac_fn_c_try_link "$LINENO"; then :
  5972. +  ac_cv_lib_pcre_pcre_compile=yes
  5973. +else
  5974. +  ac_cv_lib_pcre_pcre_compile=no
  5975. +fi
  5976. +rm -f core conftest.err conftest.$ac_objext \
  5977. +    conftest$ac_exeext conftest.$ac_ext
  5978. +LIBS=$ac_check_lib_save_LIBS
  5979. +fi
  5980. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
  5981. +$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
  5982. +if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
  5983. +  HAVE_PCRE="yes"
  5984. +fi
  5985. +
  5986. +		CPPFLAGS="$PCRE_OLD_CPPFLAGS"
  5987. +		LDFLAGS="$PCRE_OLD_LDFLAGS"
  5988. +		if test "$HAVE_PCRE" = "yes" ; then
  5989. +			PCRE_LIBS="-L$PCRE_HOME/lib -lpcre"
  5990. +			test -d "$PCRE_HOME/include" && PCRE_CFLAGS="-I$PCRE_HOME/include"
  5991. +		fi
  5992. +	fi
  5993. +	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PCRE library (optional)" >&5
  5994. +$as_echo_n "checking PCRE library (optional)... " >&6; }
  5995. +	if test "$HAVE_PCRE" = "yes" ; then
  5996. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5997. +$as_echo "yes" >&6; }
  5998. +	else
  5999. +		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6000. +$as_echo "no" >&6; }
  6001. +		if test "$require_pcre" = "yes" ; then
  6002. +			as_fn_error $? "PCRE not found or incompatible (requested)" "$LINENO" 5
  6003. +		else
  6004. +			{ $as_echo "$as_me:${as_lineno-$LINENO}: disabling PCRE (optional)" >&5
  6005. +$as_echo "$as_me: disabling PCRE (optional)" >&6;}
  6006. +		fi
  6007. +	fi
  6008. +fi
  6009. +
  6010. +
  6011. +
  6012. +
  6013. +
  6014. +
  6015. +#
  6016. +# Host specific stuff
  6017. +#
  6018. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host OS" >&5
  6019. +$as_echo_n "checking host OS... " >&6; }
  6020. +host_os="`uname`"
  6021. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_os" >&5
  6022. +$as_echo "$host_os" >&6; }
  6023. +fd_setsize=""
  6024. +DLLEXT=".so"
  6025. +case $host_os in
  6026. +Solaris* )
  6027. +	LIBS="$LIBS -lsocket -lnsl -ldl"
  6028. +	;;
  6029. +Linux* )
  6030. +	LIBS="$LIBS -ldl"
  6031. +	;;
  6032. +FreeBSD*)
  6033. +	CPPFLAGS="$CPPFLAGS -D__FREEBSD__"
  6034. +	;;
  6035. +NetBSD*)
  6036. +	CPPFLAGS="$CPPFLAGS -D__NETBSD__"
  6037. +	;;
  6038. +CYGWIN*)
  6039. +	CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096 -DCYGWIN"
  6040. +	fd_setsize="done"
  6041. +	DLLEXT=".dll"
  6042. +	;;
  6043. +esac
  6044. +
  6045. +
  6046. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MinGW" >&5
  6047. +$as_echo_n "checking for MinGW... " >&6; }
  6048. +if test -n "`$CC --version | grep -i mingw`" ; then
  6049. +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6050. +$as_echo "yes" >&6; }
  6051. +	CPPFLAGS="$CPPFLAGS -DMINGW"
  6052. +	if test -z "$fd_setsize" ; then
  6053. +		CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096"
  6054. +	fi
  6055. +	LIBS="$LIBS -lws2_32"
  6056. +else
  6057. +	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6058. +$as_echo "no" >&6; }
  6059. +fi
  6060. +
  6061. +
  6062. +
  6063. +###############################################################################
  6064. +cat >confcache <<\_ACEOF
  6065. +# This file is a shell script that caches the results of configure
  6066. +# tests run on this system so they can be shared between configure
  6067. +# scripts and configure runs, see configure's option --config-cache.
  6068. +# It is not useful on other systems.  If it contains results you don't
  6069. +# want to keep, you may remove or edit it.
  6070. +#
  6071. +# config.status only pays attention to the cache file if you give it
  6072. +# the --recheck option to rerun configure.
  6073. +#
  6074. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  6075. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  6076. +# following values.
  6077. +
  6078. +_ACEOF
  6079. +
  6080. +# The following way of writing the cache mishandles newlines in values,
  6081. +# but we know of no workaround that is simple, portable, and efficient.
  6082. +# So, we kill variables containing newlines.
  6083. +# Ultrix sh set writes to stderr and can't be redirected directly,
  6084. +# and sets the high bit in the cache file unless we assign to the vars.
  6085. +(
  6086. +  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6087. +    eval ac_val=\$$ac_var
  6088. +    case $ac_val in #(
  6089. +    *${as_nl}*)
  6090. +      case $ac_var in #(
  6091. +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6092. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6093. +      esac
  6094. +      case $ac_var in #(
  6095. +      _ | IFS | as_nl) ;; #(
  6096. +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6097. +      *) { eval $ac_var=; unset $ac_var;} ;;
  6098. +      esac ;;
  6099. +    esac
  6100. +  done
  6101. +
  6102. +  (set) 2>&1 |
  6103. +    case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6104. +    *${as_nl}ac_space=\ *)
  6105. +      # `set' does not quote correctly, so add quotes: double-quote
  6106. +      # substitution turns \\\\ into \\, and sed turns \\ into \.
  6107. +      sed -n \
  6108. +	"s/'/'\\\\''/g;
  6109. +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6110. +      ;; #(
  6111. +    *)
  6112. +      # `set' quotes correctly as required by POSIX, so do not add quotes.
  6113. +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6114. +      ;;
  6115. +    esac |
  6116. +    sort
  6117. +) |
  6118. +  sed '
  6119. +     /^ac_cv_env_/b end
  6120. +     t clear
  6121. +     :clear
  6122. +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6123. +     t end
  6124. +     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6125. +     :end' >>confcache
  6126. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6127. +  if test -w "$cache_file"; then
  6128. +    if test "x$cache_file" != "x/dev/null"; then
  6129. +      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6130. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  6131. +      if test ! -f "$cache_file" || test -h "$cache_file"; then
  6132. +	cat confcache >"$cache_file"
  6133. +      else
  6134. +        case $cache_file in #(
  6135. +        */* | ?:*)
  6136. +	  mv -f confcache "$cache_file"$$ &&
  6137. +	  mv -f "$cache_file"$$ "$cache_file" ;; #(
  6138. +        *)
  6139. +	  mv -f confcache "$cache_file" ;;
  6140. +	esac
  6141. +      fi
  6142. +    fi
  6143. +  else
  6144. +    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6145. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6146. +  fi
  6147. +fi
  6148. +rm -f confcache
  6149. +
  6150. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6151. +# Let make expand exec_prefix.
  6152. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6153. +
  6154. +# Transform confdefs.h into DEFS.
  6155. +# Protect against shell expansion while executing Makefile rules.
  6156. +# Protect against Makefile macro expansion.
  6157. +#
  6158. +# If the first sed substitution is executed (which looks for macros that
  6159. +# take arguments), then branch to the quote section.  Otherwise,
  6160. +# look for a macro that doesn't take arguments.
  6161. +ac_script='
  6162. +:mline
  6163. +/\\$/{
  6164. + N
  6165. + s,\\\n,,
  6166. + b mline
  6167. +}
  6168. +t clear
  6169. +:clear
  6170. +s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
  6171. +t quote
  6172. +s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
  6173. +t quote
  6174. +b any
  6175. +:quote
  6176. +s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  6177. +s/\[/\\&/g
  6178. +s/\]/\\&/g
  6179. +s/\$/$$/g
  6180. +H
  6181. +:any
  6182. +${
  6183. +	g
  6184. +	s/^\n//
  6185. +	s/\n/ /g
  6186. +	p
  6187. +}
  6188. +'
  6189. +DEFS=`sed -n "$ac_script" confdefs.h`
  6190. +
  6191. +
  6192. +ac_libobjs=
  6193. +ac_ltlibobjs=
  6194. +U=
  6195. +for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  6196. +  # 1. Remove the extension, and $U if already installed.
  6197. +  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6198. +  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6199. +  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  6200. +  #    will be set to the directory where LIBOBJS objects are built.
  6201. +  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6202. +  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6203. +done
  6204. +LIB@&t@OBJS=$ac_libobjs
  6205. +
  6206. +LTLIBOBJS=$ac_ltlibobjs
  6207. +
  6208. +
  6209. +
  6210. +
  6211. +: "${CONFIG_STATUS=./config.status}"
  6212. +ac_write_fail=0
  6213. +ac_clean_files_save=$ac_clean_files
  6214. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6215. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6216. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6217. +as_write_fail=0
  6218. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6219. +#! $SHELL
  6220. +# Generated by $as_me.
  6221. +# Run this file to recreate the current configuration.
  6222. +# Compiler output produced by configure, useful for debugging
  6223. +# configure, is in config.log if it exists.
  6224. +
  6225. +debug=false
  6226. +ac_cs_recheck=false
  6227. +ac_cs_silent=false
  6228. +
  6229. +SHELL=\${CONFIG_SHELL-$SHELL}
  6230. +export SHELL
  6231. +_ASEOF
  6232. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6233. +## -------------------- ##
  6234. +## M4sh Initialization. ##
  6235. +## -------------------- ##
  6236. +
  6237. +# Be more Bourne compatible
  6238. +DUALCASE=1; export DUALCASE # for MKS sh
  6239. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6240. +  emulate sh
  6241. +  NULLCMD=:
  6242. +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6243. +  # is contrary to our usage.  Disable this feature.
  6244. +  alias -g '${1+"$@"}'='"$@"'
  6245. +  setopt NO_GLOB_SUBST
  6246. +else
  6247. +  case `(set -o) 2>/dev/null` in @%:@(
  6248. +  *posix*) :
  6249. +    set -o posix ;; @%:@(
  6250. +  *) :
  6251. +     ;;
  6252. +esac
  6253. +fi
  6254. +
  6255. +
  6256. +as_nl='
  6257. +'
  6258. +export as_nl
  6259. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  6260. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6261. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6262. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6263. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  6264. +# but without wasting forks for bash or zsh.
  6265. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  6266. +    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6267. +  as_echo='print -r --'
  6268. +  as_echo_n='print -rn --'
  6269. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6270. +  as_echo='printf %s\n'
  6271. +  as_echo_n='printf %s'
  6272. +else
  6273. +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6274. +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6275. +    as_echo_n='/usr/ucb/echo -n'
  6276. +  else
  6277. +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6278. +    as_echo_n_body='eval
  6279. +      arg=$1;
  6280. +      case $arg in @%:@(
  6281. +      *"$as_nl"*)
  6282. +	expr "X$arg" : "X\\(.*\\)$as_nl";
  6283. +	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6284. +      esac;
  6285. +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6286. +    '
  6287. +    export as_echo_n_body
  6288. +    as_echo_n='sh -c $as_echo_n_body as_echo'
  6289. +  fi
  6290. +  export as_echo_body
  6291. +  as_echo='sh -c $as_echo_body as_echo'
  6292. +fi
  6293. +
  6294. +# The user is always right.
  6295. +if test "${PATH_SEPARATOR+set}" != set; then
  6296. +  PATH_SEPARATOR=:
  6297. +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6298. +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6299. +      PATH_SEPARATOR=';'
  6300. +  }
  6301. +fi
  6302. +
  6303. +
  6304. +# IFS
  6305. +# We need space, tab and new line, in precisely that order.  Quoting is
  6306. +# there to prevent editors from complaining about space-tab.
  6307. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6308. +# splitting by setting IFS to empty value.)
  6309. +IFS=" ""	$as_nl"
  6310. +
  6311. +# Find who we are.  Look in the path if we contain no directory separator.
  6312. +as_myself=
  6313. +case $0 in @%:@((
  6314. +  *[\\/]* ) as_myself=$0 ;;
  6315. +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6316. +for as_dir in $PATH
  6317. +do
  6318. +  IFS=$as_save_IFS
  6319. +  test -z "$as_dir" && as_dir=.
  6320. +    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6321. +  done
  6322. +IFS=$as_save_IFS
  6323. +
  6324. +     ;;
  6325. +esac
  6326. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  6327. +# in which case we are not to be found in the path.
  6328. +if test "x$as_myself" = x; then
  6329. +  as_myself=$0
  6330. +fi
  6331. +if test ! -f "$as_myself"; then
  6332. +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6333. +  exit 1
  6334. +fi
  6335. +
  6336. +# Unset variables that we do not need and which cause bugs (e.g. in
  6337. +# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  6338. +# suppresses any "Segmentation fault" message there.  '((' could
  6339. +# trigger a bug in pdksh 5.2.14.
  6340. +for as_var in BASH_ENV ENV MAIL MAILPATH
  6341. +do eval test x\${$as_var+set} = xset \
  6342. +  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6343. +done
  6344. +PS1='$ '
  6345. +PS2='> '
  6346. +PS4='+ '
  6347. +
  6348. +# NLS nuisances.
  6349. +LC_ALL=C
  6350. +export LC_ALL
  6351. +LANGUAGE=C
  6352. +export LANGUAGE
  6353. +
  6354. +# CDPATH.
  6355. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6356. +
  6357. +
  6358. +@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  6359. +@%:@ ----------------------------------------
  6360. +@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6361. +@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6362. +@%:@ script with STATUS, using 1 if that was 0.
  6363. +as_fn_error ()
  6364. +{
  6365. +  as_status=$1; test $as_status -eq 0 && as_status=1
  6366. +  if test "$4"; then
  6367. +    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6368. +    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6369. +  fi
  6370. +  $as_echo "$as_me: error: $2" >&2
  6371. +  as_fn_exit $as_status
  6372. +} @%:@ as_fn_error
  6373. +
  6374. +
  6375. +@%:@ as_fn_set_status STATUS
  6376. +@%:@ -----------------------
  6377. +@%:@ Set @S|@? to STATUS, without forking.
  6378. +as_fn_set_status ()
  6379. +{
  6380. +  return $1
  6381. +} @%:@ as_fn_set_status
  6382. +
  6383. +@%:@ as_fn_exit STATUS
  6384. +@%:@ -----------------
  6385. +@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6386. +as_fn_exit ()
  6387. +{
  6388. +  set +e
  6389. +  as_fn_set_status $1
  6390. +  exit $1
  6391. +} @%:@ as_fn_exit
  6392. +
  6393. +@%:@ as_fn_unset VAR
  6394. +@%:@ ---------------
  6395. +@%:@ Portably unset VAR.
  6396. +as_fn_unset ()
  6397. +{
  6398. +  { eval $1=; unset $1;}
  6399. +}
  6400. +as_unset=as_fn_unset
  6401. +@%:@ as_fn_append VAR VALUE
  6402. +@%:@ ----------------------
  6403. +@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  6404. +@%:@ advantage of any shell optimizations that allow amortized linear growth over
  6405. +@%:@ repeated appends, instead of the typical quadratic growth present in naive
  6406. +@%:@ implementations.
  6407. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6408. +  eval 'as_fn_append ()
  6409. +  {
  6410. +    eval $1+=\$2
  6411. +  }'
  6412. +else
  6413. +  as_fn_append ()
  6414. +  {
  6415. +    eval $1=\$$1\$2
  6416. +  }
  6417. +fi # as_fn_append
  6418. +
  6419. +@%:@ as_fn_arith ARG...
  6420. +@%:@ ------------------
  6421. +@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  6422. +@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  6423. +@%:@ must be portable across @S|@(()) and expr.
  6424. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6425. +  eval 'as_fn_arith ()
  6426. +  {
  6427. +    as_val=$(( $* ))
  6428. +  }'
  6429. +else
  6430. +  as_fn_arith ()
  6431. +  {
  6432. +    as_val=`expr "$@" || test $? -eq 1`
  6433. +  }
  6434. +fi # as_fn_arith
  6435. +
  6436. +
  6437. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  6438. +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6439. +  as_expr=expr
  6440. +else
  6441. +  as_expr=false
  6442. +fi
  6443. +
  6444. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6445. +  as_basename=basename
  6446. +else
  6447. +  as_basename=false
  6448. +fi
  6449. +
  6450. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6451. +  as_dirname=dirname
  6452. +else
  6453. +  as_dirname=false
  6454. +fi
  6455. +
  6456. +as_me=`$as_basename -- "$0" ||
  6457. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6458. +	 X"$0" : 'X\(//\)$' \| \
  6459. +	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6460. +$as_echo X/"$0" |
  6461. +    sed '/^.*\/\([^/][^/]*\)\/*$/{
  6462. +	    s//\1/
  6463. +	    q
  6464. +	  }
  6465. +	  /^X\/\(\/\/\)$/{
  6466. +	    s//\1/
  6467. +	    q
  6468. +	  }
  6469. +	  /^X\/\(\/\).*/{
  6470. +	    s//\1/
  6471. +	    q
  6472. +	  }
  6473. +	  s/.*/./; q'`
  6474. +
  6475. +# Avoid depending upon Character Ranges.
  6476. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6477. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6478. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6479. +as_cr_digits='0123456789'
  6480. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  6481. +
  6482. +ECHO_C= ECHO_N= ECHO_T=
  6483. +case `echo -n x` in @%:@(((((
  6484. +-n*)
  6485. +  case `echo 'xy\c'` in
  6486. +  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  6487. +  xy)  ECHO_C='\c';;
  6488. +  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6489. +       ECHO_T='	';;
  6490. +  esac;;
  6491. +*)
  6492. +  ECHO_N='-n';;
  6493. +esac
  6494. +
  6495. +rm -f conf$$ conf$$.exe conf$$.file
  6496. +if test -d conf$$.dir; then
  6497. +  rm -f conf$$.dir/conf$$.file
  6498. +else
  6499. +  rm -f conf$$.dir
  6500. +  mkdir conf$$.dir 2>/dev/null
  6501. +fi
  6502. +if (echo >conf$$.file) 2>/dev/null; then
  6503. +  if ln -s conf$$.file conf$$ 2>/dev/null; then
  6504. +    as_ln_s='ln -s'
  6505. +    # ... but there are two gotchas:
  6506. +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6507. +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6508. +    # In both cases, we have to default to `cp -p'.
  6509. +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6510. +      as_ln_s='cp -p'
  6511. +  elif ln conf$$.file conf$$ 2>/dev/null; then
  6512. +    as_ln_s=ln
  6513. +  else
  6514. +    as_ln_s='cp -p'
  6515. +  fi
  6516. +else
  6517. +  as_ln_s='cp -p'
  6518. +fi
  6519. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6520. +rmdir conf$$.dir 2>/dev/null
  6521. +
  6522. +
  6523. +@%:@ as_fn_mkdir_p
  6524. +@%:@ -------------
  6525. +@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  6526. +as_fn_mkdir_p ()
  6527. +{
  6528. +
  6529. +  case $as_dir in #(
  6530. +  -*) as_dir=./$as_dir;;
  6531. +  esac
  6532. +  test -d "$as_dir" || eval $as_mkdir_p || {
  6533. +    as_dirs=
  6534. +    while :; do
  6535. +      case $as_dir in #(
  6536. +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6537. +      *) as_qdir=$as_dir;;
  6538. +      esac
  6539. +      as_dirs="'$as_qdir' $as_dirs"
  6540. +      as_dir=`$as_dirname -- "$as_dir" ||
  6541. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6542. +	 X"$as_dir" : 'X\(//\)[^/]' \| \
  6543. +	 X"$as_dir" : 'X\(//\)$' \| \
  6544. +	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6545. +$as_echo X"$as_dir" |
  6546. +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6547. +	    s//\1/
  6548. +	    q
  6549. +	  }
  6550. +	  /^X\(\/\/\)[^/].*/{
  6551. +	    s//\1/
  6552. +	    q
  6553. +	  }
  6554. +	  /^X\(\/\/\)$/{
  6555. +	    s//\1/
  6556. +	    q
  6557. +	  }
  6558. +	  /^X\(\/\).*/{
  6559. +	    s//\1/
  6560. +	    q
  6561. +	  }
  6562. +	  s/.*/./; q'`
  6563. +      test -d "$as_dir" && break
  6564. +    done
  6565. +    test -z "$as_dirs" || eval "mkdir $as_dirs"
  6566. +  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6567. +
  6568. +
  6569. +} @%:@ as_fn_mkdir_p
  6570. +if mkdir -p . 2>/dev/null; then
  6571. +  as_mkdir_p='mkdir -p "$as_dir"'
  6572. +else
  6573. +  test -d ./-p && rmdir ./-p
  6574. +  as_mkdir_p=false
  6575. +fi
  6576. +
  6577. +if test -x / >/dev/null 2>&1; then
  6578. +  as_test_x='test -x'
  6579. +else
  6580. +  if ls -dL / >/dev/null 2>&1; then
  6581. +    as_ls_L_option=L
  6582. +  else
  6583. +    as_ls_L_option=
  6584. +  fi
  6585. +  as_test_x='
  6586. +    eval sh -c '\''
  6587. +      if test -d "$1"; then
  6588. +	test -d "$1/.";
  6589. +      else
  6590. +	case $1 in @%:@(
  6591. +	-*)set "./$1";;
  6592. +	esac;
  6593. +	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  6594. +	???[sx]*):;;*)false;;esac;fi
  6595. +    '\'' sh
  6596. +  '
  6597. +fi
  6598. +as_executable_p=$as_test_x
  6599. +
  6600. +# Sed expression to map a string onto a valid CPP name.
  6601. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6602. +
  6603. +# Sed expression to map a string onto a valid variable name.
  6604. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6605. +
  6606. +
  6607. +exec 6>&1
  6608. +## ----------------------------------- ##
  6609. +## Main body of $CONFIG_STATUS script. ##
  6610. +## ----------------------------------- ##
  6611. +_ASEOF
  6612. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6613. +
  6614. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6615. +# Save the log message, to keep $0 and so on meaningful, and to
  6616. +# report actual input values of CONFIG_FILES etc. instead of their
  6617. +# values after options handling.
  6618. +ac_log="
  6619. +This file was extended by $as_me, which was
  6620. +generated by GNU Autoconf 2.68.  Invocation command line was
  6621. +
  6622. +  CONFIG_FILES    = $CONFIG_FILES
  6623. +  CONFIG_HEADERS  = $CONFIG_HEADERS
  6624. +  CONFIG_LINKS    = $CONFIG_LINKS
  6625. +  CONFIG_COMMANDS = $CONFIG_COMMANDS
  6626. +  $ $0 $@
  6627. +
  6628. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6629. +"
  6630. +
  6631. +_ACEOF
  6632. +
  6633. +case $ac_config_files in *"
  6634. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  6635. +esac
  6636. +
  6637. +
  6638. +
  6639. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6640. +# Files that config.status was made for.
  6641. +config_files="$ac_config_files"
  6642. +
  6643. +_ACEOF
  6644. +
  6645. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6646. +ac_cs_usage="\
  6647. +\`$as_me' instantiates files and other configuration actions
  6648. +from templates according to the current configuration.  Unless the files
  6649. +and actions are specified as TAGs, all are instantiated by default.
  6650. +
  6651. +Usage: $0 [OPTION]... [TAG]...
  6652. +
  6653. +  -h, --help       print this help, then exit
  6654. +  -V, --version    print version number and configuration settings, then exit
  6655. +      --config     print configuration, then exit
  6656. +  -q, --quiet, --silent
  6657. +                   do not print progress messages
  6658. +  -d, --debug      don't remove temporary files
  6659. +      --recheck    update $as_me by reconfiguring in the same conditions
  6660. +      --file=FILE[:TEMPLATE] 
  6661. +                   instantiate the configuration file FILE
  6662. +
  6663. +Configuration files:
  6664. +$config_files
  6665. +
  6666. +Report bugs to the package provider."
  6667. +
  6668. +_ACEOF
  6669. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6670. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6671. +ac_cs_version="\\
  6672. +config.status
  6673. +configured by $0, generated by GNU Autoconf 2.68,
  6674. +  with options \\"\$ac_cs_config\\"
  6675. +
  6676. +Copyright (C) 2010 Free Software Foundation, Inc.
  6677. +This config.status script is free software; the Free Software Foundation
  6678. +gives unlimited permission to copy, distribute and modify it."
  6679. +
  6680. +ac_pwd='$ac_pwd'
  6681. +srcdir='$srcdir'
  6682. +test -n "\$AWK" || AWK=awk
  6683. +_ACEOF
  6684. +
  6685. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6686. +# The default lists apply if the user does not specify any file.
  6687. +ac_need_defaults=:
  6688. +while test $# != 0
  6689. +do
  6690. +  case $1 in
  6691. +  --*=?*)
  6692. +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6693. +    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6694. +    ac_shift=:
  6695. +    ;;
  6696. +  --*=)
  6697. +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6698. +    ac_optarg=
  6699. +    ac_shift=:
  6700. +    ;;
  6701. +  *)
  6702. +    ac_option=$1
  6703. +    ac_optarg=$2
  6704. +    ac_shift=shift
  6705. +    ;;
  6706. +  esac
  6707. +
  6708. +  case $ac_option in
  6709. +  # Handling of the options.
  6710. +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6711. +    ac_cs_recheck=: ;;
  6712. +  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6713. +    $as_echo "$ac_cs_version"; exit ;;
  6714. +  --config | --confi | --conf | --con | --co | --c )
  6715. +    $as_echo "$ac_cs_config"; exit ;;
  6716. +  --debug | --debu | --deb | --de | --d | -d )
  6717. +    debug=: ;;
  6718. +  --file | --fil | --fi | --f )
  6719. +    $ac_shift
  6720. +    case $ac_optarg in
  6721. +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6722. +    '') as_fn_error $? "missing file argument" ;;
  6723. +    esac
  6724. +    as_fn_append CONFIG_FILES " '$ac_optarg'"
  6725. +    ac_need_defaults=false;;
  6726. +  --he | --h |  --help | --hel | -h )
  6727. +    $as_echo "$ac_cs_usage"; exit ;;
  6728. +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6729. +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6730. +    ac_cs_silent=: ;;
  6731. +
  6732. +  # This is an error.
  6733. +  -*) as_fn_error $? "unrecognized option: \`$1'
  6734. +Try \`$0 --help' for more information." ;;
  6735. +
  6736. +  *) as_fn_append ac_config_targets " $1"
  6737. +     ac_need_defaults=false ;;
  6738. +
  6739. +  esac
  6740. +  shift
  6741. +done
  6742. +
  6743. +ac_configure_extra_args=
  6744. +
  6745. +if $ac_cs_silent; then
  6746. +  exec 6>/dev/null
  6747. +  ac_configure_extra_args="$ac_configure_extra_args --silent"
  6748. +fi
  6749. +
  6750. +_ACEOF
  6751. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6752. +if \$ac_cs_recheck; then
  6753. +  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6754. +  shift
  6755. +  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6756. +  CONFIG_SHELL='$SHELL'
  6757. +  export CONFIG_SHELL
  6758. +  exec "\$@"
  6759. +fi
  6760. +
  6761. +_ACEOF
  6762. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6763. +exec 5>>config.log
  6764. +{
  6765. +  echo
  6766. +  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  6767. +@%:@@%:@ Running $as_me. @%:@@%:@
  6768. +_ASBOX
  6769. +  $as_echo "$ac_log"
  6770. +} >&5
  6771. +
  6772. +_ACEOF
  6773. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6774. +_ACEOF
  6775. +
  6776. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6777. +
  6778. +# Handling of arguments.
  6779. +for ac_config_target in $ac_config_targets
  6780. +do
  6781. +  case $ac_config_target in
  6782. +    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6783. +    "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  6784. +    "3rdparty/mt19937ar/Makefile") CONFIG_FILES="$CONFIG_FILES 3rdparty/mt19937ar/Makefile" ;;
  6785. +    "3rdparty/libconfig/Makefile") CONFIG_FILES="$CONFIG_FILES 3rdparty/libconfig/Makefile" ;;
  6786. +    "src/char/Makefile") CONFIG_FILES="$CONFIG_FILES src/char/Makefile" ;;
  6787. +    "src/login/Makefile") CONFIG_FILES="$CONFIG_FILES src/login/Makefile" ;;
  6788. +    "src/map/Makefile") CONFIG_FILES="$CONFIG_FILES src/map/Makefile" ;;
  6789. +    "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  6790. +    "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
  6791. +
  6792. +  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  6793. +  esac
  6794. +done
  6795. +
  6796. +
  6797. +# If the user did not use the arguments to specify the items to instantiate,
  6798. +# then the envvar interface is used.  Set only those that are not.
  6799. +# We use the long form for the default assignment because of an extremely
  6800. +# bizarre bug on SunOS 4.1.3.
  6801. +if $ac_need_defaults; then
  6802. +  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6803. +fi
  6804. +
  6805. +# Have a temporary directory for convenience.  Make it in the build tree
  6806. +# simply because there is no reason against having it here, and in addition,
  6807. +# creating and moving files from /tmp can sometimes cause problems.
  6808. +# Hook for its removal unless debugging.
  6809. +# Note that there is a small window in which the directory will not be cleaned:
  6810. +# after its creation but before its name has been assigned to `$tmp'.
  6811. +$debug ||
  6812. +{
  6813. +  tmp= ac_tmp=
  6814. +  trap 'exit_status=$?
  6815. +  : "${ac_tmp:=$tmp}"
  6816. +  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  6817. +' 0
  6818. +  trap 'as_fn_exit 1' 1 2 13 15
  6819. +}
  6820. +# Create a (secure) tmp directory for tmp files.
  6821. +
  6822. +{
  6823. +  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6824. +  test -d "$tmp"
  6825. +}  ||
  6826. +{
  6827. +  tmp=./conf$$-$RANDOM
  6828. +  (umask 077 && mkdir "$tmp")
  6829. +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6830. +ac_tmp=$tmp
  6831. +
  6832. +# Set up the scripts for CONFIG_FILES section.
  6833. +# No need to generate them if there are no CONFIG_FILES.
  6834. +# This happens for instance with `./config.status config.h'.
  6835. +if test -n "$CONFIG_FILES"; then
  6836. +
  6837. +
  6838. +ac_cr=`echo X | tr X '\015'`
  6839. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  6840. +# But we know of no other shell where ac_cr would be empty at this
  6841. +# point, so we can use a bashism as a fallback.
  6842. +if test "x$ac_cr" = x; then
  6843. +  eval ac_cr=\$\'\\r\'
  6844. +fi
  6845. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6846. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6847. +  ac_cs_awk_cr='\\r'
  6848. +else
  6849. +  ac_cs_awk_cr=$ac_cr
  6850. +fi
  6851. +
  6852. +echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  6853. +_ACEOF
  6854. +
  6855. +
  6856. +{
  6857. +  echo "cat >conf$$subs.awk <<_ACEOF" &&
  6858. +  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6859. +  echo "_ACEOF"
  6860. +} >conf$$subs.sh ||
  6861. +  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6862. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  6863. +ac_delim='%!_!# '
  6864. +for ac_last_try in false false false false false :; do
  6865. +  . ./conf$$subs.sh ||
  6866. +    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6867. +
  6868. +  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6869. +  if test $ac_delim_n = $ac_delim_num; then
  6870. +    break
  6871. +  elif $ac_last_try; then
  6872. +    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6873. +  else
  6874. +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6875. +  fi
  6876. +done
  6877. +rm -f conf$$subs.sh
  6878. +
  6879. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6880. +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  6881. +_ACEOF
  6882. +sed -n '
  6883. +h
  6884. +s/^/S["/; s/!.*/"]=/
  6885. +p
  6886. +g
  6887. +s/^[^!]*!//
  6888. +:repl
  6889. +t repl
  6890. +s/'"$ac_delim"'$//
  6891. +t delim
  6892. +:nl
  6893. +h
  6894. +s/\(.\{148\}\)..*/\1/
  6895. +t more1
  6896. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6897. +p
  6898. +n
  6899. +b repl
  6900. +:more1
  6901. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6902. +p
  6903. +g
  6904. +s/.\{148\}//
  6905. +t nl
  6906. +:delim
  6907. +h
  6908. +s/\(.\{148\}\)..*/\1/
  6909. +t more2
  6910. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  6911. +p
  6912. +b
  6913. +:more2
  6914. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6915. +p
  6916. +g
  6917. +s/.\{148\}//
  6918. +t delim
  6919. +' <conf$$subs.awk | sed '
  6920. +/^[^""]/{
  6921. +  N
  6922. +  s/\n//
  6923. +}
  6924. +' >>$CONFIG_STATUS || ac_write_fail=1
  6925. +rm -f conf$$subs.awk
  6926. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6927. +_ACAWK
  6928. +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  6929. +  for (key in S) S_is_set[key] = 1
  6930. +  FS = ""
  6931. +
  6932. +}
  6933. +{
  6934. +  line = $ 0
  6935. +  nfields = split(line, field, "@")
  6936. +  substed = 0
  6937. +  len = length(field[1])
  6938. +  for (i = 2; i < nfields; i++) {
  6939. +    key = field[i]
  6940. +    keylen = length(key)
  6941. +    if (S_is_set[key]) {
  6942. +      value = S[key]
  6943. +      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  6944. +      len += length(value) + length(field[++i])
  6945. +      substed = 1
  6946. +    } else
  6947. +      len += 1 + keylen
  6948. +  }
  6949. +
  6950. +  print line
  6951. +}
  6952. +
  6953. +_ACAWK
  6954. +_ACEOF
  6955. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6956. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  6957. +  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  6958. +else
  6959. +  cat
  6960. +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  6961. +  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  6962. +_ACEOF
  6963. +
  6964. +# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  6965. +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  6966. +# trailing colons and then remove the whole line if VPATH becomes empty
  6967. +# (actually we leave an empty line to preserve line numbers).
  6968. +if test "x$srcdir" = x.; then
  6969. +  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
  6970. +h
  6971. +s///
  6972. +s/^/:/
  6973. +s/[	 ]*$/:/
  6974. +s/:\$(srcdir):/:/g
  6975. +s/:\${srcdir}:/:/g
  6976. +s/:@srcdir@:/:/g
  6977. +s/^:*//
  6978. +s/:*$//
  6979. +x
  6980. +s/\(=[	 ]*\).*/\1/
  6981. +G
  6982. +s/\n//
  6983. +s/^[^=]*=[	 ]*$//
  6984. +}'
  6985. +fi
  6986. +
  6987. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6988. +fi # test -n "$CONFIG_FILES"
  6989. +
  6990. +
  6991. +eval set X "  :F $CONFIG_FILES      "
  6992. +shift
  6993. +for ac_tag
  6994. +do
  6995. +  case $ac_tag in
  6996. +  :[FHLC]) ac_mode=$ac_tag; continue;;
  6997. +  esac
  6998. +  case $ac_mode$ac_tag in
  6999. +  :[FHL]*:*);;
  7000. +  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7001. +  :[FH]-) ac_tag=-:-;;
  7002. +  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7003. +  esac
  7004. +  ac_save_IFS=$IFS
  7005. +  IFS=:
  7006. +  set x $ac_tag
  7007. +  IFS=$ac_save_IFS
  7008. +  shift
  7009. +  ac_file=$1
  7010. +  shift
  7011. +
  7012. +  case $ac_mode in
  7013. +  :L) ac_source=$1;;
  7014. +  :[FH])
  7015. +    ac_file_inputs=
  7016. +    for ac_f
  7017. +    do
  7018. +      case $ac_f in
  7019. +      -) ac_f="$ac_tmp/stdin";;
  7020. +      *) # Look for the file first in the build tree, then in the source tree
  7021. +	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
  7022. +	 # because $ac_f cannot contain `:'.
  7023. +	 test -f "$ac_f" ||
  7024. +	   case $ac_f in
  7025. +	   [\\/$]*) false;;
  7026. +	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7027. +	   esac ||
  7028. +	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7029. +      esac
  7030. +      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7031. +      as_fn_append ac_file_inputs " '$ac_f'"
  7032. +    done
  7033. +
  7034. +    # Let's still pretend it is `configure' which instantiates (i.e., don't
  7035. +    # use $as_me), people would be surprised to read:
  7036. +    #    /* config.h.  Generated by config.status.  */
  7037. +    configure_input='Generated from '`
  7038. +	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7039. +	`' by configure.'
  7040. +    if test x"$ac_file" != x-; then
  7041. +      configure_input="$ac_file.  $configure_input"
  7042. +      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7043. +$as_echo "$as_me: creating $ac_file" >&6;}
  7044. +    fi
  7045. +    # Neutralize special characters interpreted by sed in replacement strings.
  7046. +    case $configure_input in #(
  7047. +    *\&* | *\|* | *\\* )
  7048. +       ac_sed_conf_input=`$as_echo "$configure_input" |
  7049. +       sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7050. +    *) ac_sed_conf_input=$configure_input;;
  7051. +    esac
  7052. +
  7053. +    case $ac_tag in
  7054. +    *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7055. +      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7056. +    esac
  7057. +    ;;
  7058. +  esac
  7059. +
  7060. +  ac_dir=`$as_dirname -- "$ac_file" ||
  7061. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7062. +	 X"$ac_file" : 'X\(//\)[^/]' \| \
  7063. +	 X"$ac_file" : 'X\(//\)$' \| \
  7064. +	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7065. +$as_echo X"$ac_file" |
  7066. +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7067. +	    s//\1/
  7068. +	    q
  7069. +	  }
  7070. +	  /^X\(\/\/\)[^/].*/{
  7071. +	    s//\1/
  7072. +	    q
  7073. +	  }
  7074. +	  /^X\(\/\/\)$/{
  7075. +	    s//\1/
  7076. +	    q
  7077. +	  }
  7078. +	  /^X\(\/\).*/{
  7079. +	    s//\1/
  7080. +	    q
  7081. +	  }
  7082. +	  s/.*/./; q'`
  7083. +  as_dir="$ac_dir"; as_fn_mkdir_p
  7084. +  ac_builddir=.
  7085. +
  7086. +case "$ac_dir" in
  7087. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7088. +*)
  7089. +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7090. +  # A ".." for each directory in $ac_dir_suffix.
  7091. +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7092. +  case $ac_top_builddir_sub in
  7093. +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7094. +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7095. +  esac ;;
  7096. +esac
  7097. +ac_abs_top_builddir=$ac_pwd
  7098. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7099. +# for backward compatibility:
  7100. +ac_top_builddir=$ac_top_build_prefix
  7101. +
  7102. +case $srcdir in
  7103. +  .)  # We are building in place.
  7104. +    ac_srcdir=.
  7105. +    ac_top_srcdir=$ac_top_builddir_sub
  7106. +    ac_abs_top_srcdir=$ac_pwd ;;
  7107. +  [\\/]* | ?:[\\/]* )  # Absolute name.
  7108. +    ac_srcdir=$srcdir$ac_dir_suffix;
  7109. +    ac_top_srcdir=$srcdir
  7110. +    ac_abs_top_srcdir=$srcdir ;;
  7111. +  *) # Relative name.
  7112. +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7113. +    ac_top_srcdir=$ac_top_build_prefix$srcdir
  7114. +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7115. +esac
  7116. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7117. +
  7118. +
  7119. +  case $ac_mode in
  7120. +  :F)
  7121. +  #
  7122. +  # CONFIG_FILE
  7123. +  #
  7124. +
  7125. +_ACEOF
  7126. +
  7127. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7128. +# If the template does not know about datarootdir, expand it.
  7129. +# FIXME: This hack should be removed a few years after 2.60.
  7130. +ac_datarootdir_hack=; ac_datarootdir_seen=
  7131. +ac_sed_dataroot='
  7132. +/datarootdir/ {
  7133. +  p
  7134. +  q
  7135. +}
  7136. +/@datadir@/p
  7137. +/@docdir@/p
  7138. +/@infodir@/p
  7139. +/@localedir@/p
  7140. +/@mandir@/p'
  7141. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7142. +*datarootdir*) ac_datarootdir_seen=yes;;
  7143. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7144. +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7145. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7146. +_ACEOF
  7147. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7148. +  ac_datarootdir_hack='
  7149. +  s&@datadir@&$datadir&g
  7150. +  s&@docdir@&$docdir&g
  7151. +  s&@infodir@&$infodir&g
  7152. +  s&@localedir@&$localedir&g
  7153. +  s&@mandir@&$mandir&g
  7154. +  s&\\\${datarootdir}&$datarootdir&g' ;;
  7155. +esac
  7156. +_ACEOF
  7157. +
  7158. +# Neutralize VPATH when `$srcdir' = `.'.
  7159. +# Shell code in configure.ac might set extrasub.
  7160. +# FIXME: do we really want to maintain this feature?
  7161. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7162. +ac_sed_extra="$ac_vpsub
  7163. +$extrasub
  7164. +_ACEOF
  7165. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7166. +:t
  7167. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7168. +s|@configure_input@|$ac_sed_conf_input|;t t
  7169. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  7170. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7171. +s&@srcdir@&$ac_srcdir&;t t
  7172. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7173. +s&@top_srcdir@&$ac_top_srcdir&;t t
  7174. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7175. +s&@builddir@&$ac_builddir&;t t
  7176. +s&@abs_builddir@&$ac_abs_builddir&;t t
  7177. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7178. +$ac_datarootdir_hack
  7179. +"
  7180. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  7181. +  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7182. +
  7183. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7184. +  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  7185. +  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
  7186. +      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  7187. +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7188. +which seems to be undefined.  Please make sure it is defined" >&5
  7189. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7190. +which seems to be undefined.  Please make sure it is defined" >&2;}
  7191. +
  7192. +  rm -f "$ac_tmp/stdin"
  7193. +  case $ac_file in
  7194. +  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  7195. +  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  7196. +  esac \
  7197. +  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7198. + ;;
  7199. +  
  7200. +  
  7201. +  
  7202. +  esac
  7203. +
  7204. +done # for ac_tag
  7205. +
  7206. +
  7207. +as_fn_exit 0
  7208. +_ACEOF
  7209. +ac_clean_files=$ac_clean_files_save
  7210. +
  7211. +test $ac_write_fail = 0 ||
  7212. +  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7213. +
  7214. +
  7215. +# configure is writing to config.log, and then calls config.status.
  7216. +# config.status does its own redirection, appending to config.log.
  7217. +# Unfortunately, on DOS this fails, as config.log is still kept open
  7218. +# by configure, so config.status won't be able to write to it; its
  7219. +# output is simply discarded.  So we exec the FD to /dev/null,
  7220. +# effectively closing config.log, so it can be properly (re)opened and
  7221. +# appended to by config.status.  When coming back to configure, we
  7222. +# need to make the FD available again.
  7223. +if test "$no_create" != yes; then
  7224. +  ac_cs_success=:
  7225. +  ac_config_status_args=
  7226. +  test "$silent" = yes &&
  7227. +    ac_config_status_args="$ac_config_status_args --quiet"
  7228. +  exec 5>/dev/null
  7229. +  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7230. +  exec 5>>config.log
  7231. +  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7232. +  # would make configure fail if this is the last instruction.
  7233. +  $ac_cs_success || as_fn_exit 1
  7234. +fi
  7235. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7236. +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7237. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7238. +fi
  7239. +
  7240. Index: autom4te.cache/requests
  7241. --- autom4te.cache/requests No Base Revision
  7242. +++ autom4te.cache/requests Locally New
  7243. @@ -0,0 +1,75 @@
  7244. +# This file was generated by Autom4te Sun Nov  6 20:57:04 UTC 2011.
  7245. +# It contains the lists of macros which have been traced.
  7246. +# It can be safely removed.
  7247. +
  7248. +@request = (
  7249. +             bless( [
  7250. +                      '0',
  7251. +                      1,
  7252. +                      [
  7253. +                        '/usr/share/autoconf'
  7254. +                      ],
  7255. +                      [
  7256. +                        '/usr/share/autoconf/autoconf/autoconf.m4f',
  7257. +                        'configure.in'
  7258. +                      ],
  7259. +                      {
  7260. +                        '_LT_AC_TAGCONFIG' => 1,
  7261. +                        'AM_PROG_F77_C_O' => 1,
  7262. +                        'AC_INIT' => 1,
  7263. +                        'm4_pattern_forbid' => 1,
  7264. +                        '_AM_COND_IF' => 1,
  7265. +                        'AC_CANONICAL_TARGET' => 1,
  7266. +                        'AC_SUBST' => 1,
  7267. +                        'AC_CONFIG_LIBOBJ_DIR' => 1,
  7268. +                        'AC_FC_SRCEXT' => 1,
  7269. +                        'AC_CANONICAL_HOST' => 1,
  7270. +                        'AC_PROG_LIBTOOL' => 1,
  7271. +                        'AM_INIT_AUTOMAKE' => 1,
  7272. +                        'AM_PATH_GUILE' => 1,
  7273. +                        'AC_CONFIG_SUBDIRS' => 1,
  7274. +                        'AM_AUTOMAKE_VERSION' => 1,
  7275. +                        'LT_CONFIG_LTDL_DIR' => 1,
  7276. +                        'AC_REQUIRE_AUX_FILE' => 1,
  7277. +                        'AC_CONFIG_LINKS' => 1,
  7278. +                        'm4_sinclude' => 1,
  7279. +                        'LT_SUPPORTED_TAG' => 1,
  7280. +                        'AM_MAINTAINER_MODE' => 1,
  7281. +                        'AM_NLS' => 1,
  7282. +                        'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
  7283. +                        'AM_MAKEFILE_INCLUDE' => 1,
  7284. +                        '_m4_warn' => 1,
  7285. +                        'AM_PROG_CXX_C_O' => 1,
  7286. +                        '_AM_COND_ENDIF' => 1,
  7287. +                        '_AM_MAKEFILE_INCLUDE' => 1,
  7288. +                        'AM_ENABLE_MULTILIB' => 1,
  7289. +                        'AM_SILENT_RULES' => 1,
  7290. +                        'AM_PROG_MOC' => 1,
  7291. +                        'AC_CONFIG_FILES' => 1,
  7292. +                        'include' => 1,
  7293. +                        'LT_INIT' => 1,
  7294. +                        'AM_PROG_AR' => 1,
  7295. +                        'AM_GNU_GETTEXT' => 1,
  7296. +                        'AC_LIBSOURCE' => 1,
  7297. +                        'AM_PROG_FC_C_O' => 1,
  7298. +                        'AC_CANONICAL_BUILD' => 1,
  7299. +                        'AC_FC_FREEFORM' => 1,
  7300. +                        'AH_OUTPUT' => 1,
  7301. +                        '_AM_SUBST_NOTMAKE' => 1,
  7302. +                        'AC_CONFIG_AUX_DIR' => 1,
  7303. +                        'sinclude' => 1,
  7304. +                        'AM_PROG_CC_C_O' => 1,
  7305. +                        'm4_pattern_allow' => 1,
  7306. +                        'AM_XGETTEXT_OPTION' => 1,
  7307. +                        'AC_CANONICAL_SYSTEM' => 1,
  7308. +                        'AM_CONDITIONAL' => 1,
  7309. +                        'AC_CONFIG_HEADERS' => 1,
  7310. +                        'AC_DEFINE_TRACE_LITERAL' => 1,
  7311. +                        'AM_POT_TOOLS' => 1,
  7312. +                        'm4_include' => 1,
  7313. +                        '_AM_COND_ELSE' => 1,
  7314. +                        'AC_SUBST_TRACE' => 1
  7315. +                      }
  7316. +                    ], 'Autom4te::Request' )
  7317. +           );
  7318. +
  7319. Index: autom4te.cache/traces.0
  7320. --- autom4te.cache/traces.0 No Base Revision
  7321. +++ autom4te.cache/traces.0 Locally New
  7322. @@ -0,0 +1,515 @@
  7323. +m4trace:configure.in:4: -1- AC_INIT([rAthena])
  7324. +m4trace:configure.in:4: -1- m4_pattern_forbid([^_?A[CHUM]_])
  7325. +m4trace:configure.in:4: -1- m4_pattern_forbid([_AC_])
  7326. +m4trace:configure.in:4: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
  7327. +m4trace:configure.in:4: -1- m4_pattern_allow([^AS_FLAGS$])
  7328. +m4trace:configure.in:4: -1- m4_pattern_forbid([^_?m4_])
  7329. +m4trace:configure.in:4: -1- m4_pattern_forbid([^dnl$])
  7330. +m4trace:configure.in:4: -1- m4_pattern_forbid([^_?AS_])
  7331. +m4trace:configure.in:4: -1- AC_SUBST([SHELL])
  7332. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([SHELL])
  7333. +m4trace:configure.in:4: -1- m4_pattern_allow([^SHELL$])
  7334. +m4trace:configure.in:4: -1- AC_SUBST([PATH_SEPARATOR])
  7335. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([PATH_SEPARATOR])
  7336. +m4trace:configure.in:4: -1- m4_pattern_allow([^PATH_SEPARATOR$])
  7337. +m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME],      ['AC_PACKAGE_NAME'])])
  7338. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_NAME])
  7339. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_NAME$])
  7340. +m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME],   ['AC_PACKAGE_TARNAME'])])
  7341. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_TARNAME])
  7342. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
  7343. +m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION],   ['AC_PACKAGE_VERSION'])])
  7344. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_VERSION])
  7345. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_VERSION$])
  7346. +m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING],    ['AC_PACKAGE_STRING'])])
  7347. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_STRING])
  7348. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_STRING$])
  7349. +m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
  7350. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT])
  7351. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
  7352. +m4trace:configure.in:4: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL],       ['AC_PACKAGE_URL'])])
  7353. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE_URL])
  7354. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_URL$])
  7355. +m4trace:configure.in:4: -1- AC_SUBST([exec_prefix], [NONE])
  7356. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([exec_prefix])
  7357. +m4trace:configure.in:4: -1- m4_pattern_allow([^exec_prefix$])
  7358. +m4trace:configure.in:4: -1- AC_SUBST([prefix], [NONE])
  7359. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([prefix])
  7360. +m4trace:configure.in:4: -1- m4_pattern_allow([^prefix$])
  7361. +m4trace:configure.in:4: -1- AC_SUBST([program_transform_name], [s,x,x,])
  7362. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([program_transform_name])
  7363. +m4trace:configure.in:4: -1- m4_pattern_allow([^program_transform_name$])
  7364. +m4trace:configure.in:4: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
  7365. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([bindir])
  7366. +m4trace:configure.in:4: -1- m4_pattern_allow([^bindir$])
  7367. +m4trace:configure.in:4: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
  7368. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([sbindir])
  7369. +m4trace:configure.in:4: -1- m4_pattern_allow([^sbindir$])
  7370. +m4trace:configure.in:4: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
  7371. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([libexecdir])
  7372. +m4trace:configure.in:4: -1- m4_pattern_allow([^libexecdir$])
  7373. +m4trace:configure.in:4: -1- AC_SUBST([datarootdir], ['${prefix}/share'])
  7374. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([datarootdir])
  7375. +m4trace:configure.in:4: -1- m4_pattern_allow([^datarootdir$])
  7376. +m4trace:configure.in:4: -1- AC_SUBST([datadir], ['${datarootdir}'])
  7377. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([datadir])
  7378. +m4trace:configure.in:4: -1- m4_pattern_allow([^datadir$])
  7379. +m4trace:configure.in:4: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
  7380. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([sysconfdir])
  7381. +m4trace:configure.in:4: -1- m4_pattern_allow([^sysconfdir$])
  7382. +m4trace:configure.in:4: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
  7383. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([sharedstatedir])
  7384. +m4trace:configure.in:4: -1- m4_pattern_allow([^sharedstatedir$])
  7385. +m4trace:configure.in:4: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
  7386. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([localstatedir])
  7387. +m4trace:configure.in:4: -1- m4_pattern_allow([^localstatedir$])
  7388. +m4trace:configure.in:4: -1- AC_SUBST([includedir], ['${prefix}/include'])
  7389. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([includedir])
  7390. +m4trace:configure.in:4: -1- m4_pattern_allow([^includedir$])
  7391. +m4trace:configure.in:4: -1- AC_SUBST([oldincludedir], ['/usr/include'])
  7392. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([oldincludedir])
  7393. +m4trace:configure.in:4: -1- m4_pattern_allow([^oldincludedir$])
  7394. +m4trace:configure.in:4: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME],
  7395. +				     ['${datarootdir}/doc/${PACKAGE_TARNAME}'],
  7396. +				     ['${datarootdir}/doc/${PACKAGE}'])])
  7397. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([docdir])
  7398. +m4trace:configure.in:4: -1- m4_pattern_allow([^docdir$])
  7399. +m4trace:configure.in:4: -1- AC_SUBST([infodir], ['${datarootdir}/info'])
  7400. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([infodir])
  7401. +m4trace:configure.in:4: -1- m4_pattern_allow([^infodir$])
  7402. +m4trace:configure.in:4: -1- AC_SUBST([htmldir], ['${docdir}'])
  7403. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([htmldir])
  7404. +m4trace:configure.in:4: -1- m4_pattern_allow([^htmldir$])
  7405. +m4trace:configure.in:4: -1- AC_SUBST([dvidir], ['${docdir}'])
  7406. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([dvidir])
  7407. +m4trace:configure.in:4: -1- m4_pattern_allow([^dvidir$])
  7408. +m4trace:configure.in:4: -1- AC_SUBST([pdfdir], ['${docdir}'])
  7409. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([pdfdir])
  7410. +m4trace:configure.in:4: -1- m4_pattern_allow([^pdfdir$])
  7411. +m4trace:configure.in:4: -1- AC_SUBST([psdir], ['${docdir}'])
  7412. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([psdir])
  7413. +m4trace:configure.in:4: -1- m4_pattern_allow([^psdir$])
  7414. +m4trace:configure.in:4: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
  7415. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([libdir])
  7416. +m4trace:configure.in:4: -1- m4_pattern_allow([^libdir$])
  7417. +m4trace:configure.in:4: -1- AC_SUBST([localedir], ['${datarootdir}/locale'])
  7418. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([localedir])
  7419. +m4trace:configure.in:4: -1- m4_pattern_allow([^localedir$])
  7420. +m4trace:configure.in:4: -1- AC_SUBST([mandir], ['${datarootdir}/man'])
  7421. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([mandir])
  7422. +m4trace:configure.in:4: -1- m4_pattern_allow([^mandir$])
  7423. +m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
  7424. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_NAME$])
  7425. +m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
  7426. +@%:@undef PACKAGE_NAME])
  7427. +m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
  7428. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
  7429. +m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
  7430. +@%:@undef PACKAGE_TARNAME])
  7431. +m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
  7432. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_VERSION$])
  7433. +m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
  7434. +@%:@undef PACKAGE_VERSION])
  7435. +m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
  7436. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_STRING$])
  7437. +m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
  7438. +@%:@undef PACKAGE_STRING])
  7439. +m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
  7440. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
  7441. +m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
  7442. +@%:@undef PACKAGE_BUGREPORT])
  7443. +m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL])
  7444. +m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE_URL$])
  7445. +m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */
  7446. +@%:@undef PACKAGE_URL])
  7447. +m4trace:configure.in:4: -1- AC_SUBST([DEFS])
  7448. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([DEFS])
  7449. +m4trace:configure.in:4: -1- m4_pattern_allow([^DEFS$])
  7450. +m4trace:configure.in:4: -1- AC_SUBST([ECHO_C])
  7451. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([ECHO_C])
  7452. +m4trace:configure.in:4: -1- m4_pattern_allow([^ECHO_C$])
  7453. +m4trace:configure.in:4: -1- AC_SUBST([ECHO_N])
  7454. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([ECHO_N])
  7455. +m4trace:configure.in:4: -1- m4_pattern_allow([^ECHO_N$])
  7456. +m4trace:configure.in:4: -1- AC_SUBST([ECHO_T])
  7457. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([ECHO_T])
  7458. +m4trace:configure.in:4: -1- m4_pattern_allow([^ECHO_T$])
  7459. +m4trace:configure.in:4: -1- AC_SUBST([LIBS])
  7460. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([LIBS])
  7461. +m4trace:configure.in:4: -1- m4_pattern_allow([^LIBS$])
  7462. +m4trace:configure.in:4: -1- AC_SUBST([build_alias])
  7463. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([build_alias])
  7464. +m4trace:configure.in:4: -1- m4_pattern_allow([^build_alias$])
  7465. +m4trace:configure.in:4: -1- AC_SUBST([host_alias])
  7466. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([host_alias])
  7467. +m4trace:configure.in:4: -1- m4_pattern_allow([^host_alias$])
  7468. +m4trace:configure.in:4: -1- AC_SUBST([target_alias])
  7469. +m4trace:configure.in:4: -1- AC_SUBST_TRACE([target_alias])
  7470. +m4trace:configure.in:4: -1- m4_pattern_allow([^target_alias$])
  7471. +m4trace:configure.in:8: -1- AC_CONFIG_FILES([Makefile src/common/Makefile])
  7472. +m4trace:configure.in:9: -1- AC_CONFIG_FILES([3rdparty/mt19937ar/Makefile 3rdparty/libconfig/Makefile])
  7473. +m4trace:configure.in:10: -1- AC_CONFIG_FILES([src/char/Makefile src/login/Makefile])
  7474. +m4trace:configure.in:11: -1- AC_CONFIG_FILES([src/map/Makefile src/tool/Makefile])
  7475. +m4trace:configure.in:12: -1- AC_CONFIG_FILES([src/test/Makefile])
  7476. +m4trace:configure.in:14: -1- _m4_warn([obsolete], [The macro `AC_GNU_SOURCE' is obsolete.
  7477. +You should run autoupdate.], [../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from...
  7478. +configure.in:14: the top level])
  7479. +m4trace:configure.in:14: -1- AC_SUBST([CC])
  7480. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([CC])
  7481. +m4trace:configure.in:14: -1- m4_pattern_allow([^CC$])
  7482. +m4trace:configure.in:14: -1- AC_SUBST([CFLAGS])
  7483. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([CFLAGS])
  7484. +m4trace:configure.in:14: -1- m4_pattern_allow([^CFLAGS$])
  7485. +m4trace:configure.in:14: -1- AC_SUBST([LDFLAGS])
  7486. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([LDFLAGS])
  7487. +m4trace:configure.in:14: -1- m4_pattern_allow([^LDFLAGS$])
  7488. +m4trace:configure.in:14: -1- AC_SUBST([LIBS])
  7489. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([LIBS])
  7490. +m4trace:configure.in:14: -1- m4_pattern_allow([^LIBS$])
  7491. +m4trace:configure.in:14: -1- AC_SUBST([CPPFLAGS])
  7492. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([CPPFLAGS])
  7493. +m4trace:configure.in:14: -1- m4_pattern_allow([^CPPFLAGS$])
  7494. +m4trace:configure.in:14: -1- AC_SUBST([CC])
  7495. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([CC])
  7496. +m4trace:configure.in:14: -1- m4_pattern_allow([^CC$])
  7497. +m4trace:configure.in:14: -1- AC_SUBST([CC])
  7498. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([CC])
  7499. +m4trace:configure.in:14: -1- m4_pattern_allow([^CC$])
  7500. +m4trace:configure.in:14: -1- AC_SUBST([CC])
  7501. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([CC])
  7502. +m4trace:configure.in:14: -1- m4_pattern_allow([^CC$])
  7503. +m4trace:configure.in:14: -1- AC_SUBST([CC])
  7504. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([CC])
  7505. +m4trace:configure.in:14: -1- m4_pattern_allow([^CC$])
  7506. +m4trace:configure.in:14: -1- AC_SUBST([ac_ct_CC])
  7507. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([ac_ct_CC])
  7508. +m4trace:configure.in:14: -1- m4_pattern_allow([^ac_ct_CC$])
  7509. +m4trace:configure.in:14: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
  7510. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([EXEEXT])
  7511. +m4trace:configure.in:14: -1- m4_pattern_allow([^EXEEXT$])
  7512. +m4trace:configure.in:14: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
  7513. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([OBJEXT])
  7514. +m4trace:configure.in:14: -1- m4_pattern_allow([^OBJEXT$])
  7515. +m4trace:configure.in:14: -1- AC_SUBST([CPP])
  7516. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([CPP])
  7517. +m4trace:configure.in:14: -1- m4_pattern_allow([^CPP$])
  7518. +m4trace:configure.in:14: -1- AC_SUBST([CPPFLAGS])
  7519. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([CPPFLAGS])
  7520. +m4trace:configure.in:14: -1- m4_pattern_allow([^CPPFLAGS$])
  7521. +m4trace:configure.in:14: -1- AC_SUBST([CPP])
  7522. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([CPP])
  7523. +m4trace:configure.in:14: -1- m4_pattern_allow([^CPP$])
  7524. +m4trace:configure.in:14: -1- AC_SUBST([GREP])
  7525. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([GREP])
  7526. +m4trace:configure.in:14: -1- m4_pattern_allow([^GREP$])
  7527. +m4trace:configure.in:14: -1- AC_SUBST([EGREP])
  7528. +m4trace:configure.in:14: -1- AC_SUBST_TRACE([EGREP])
  7529. +m4trace:configure.in:14: -1- m4_pattern_allow([^EGREP$])
  7530. +m4trace:configure.in:14: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
  7531. +m4trace:configure.in:14: -1- m4_pattern_allow([^STDC_HEADERS$])
  7532. +m4trace:configure.in:14: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
  7533. +@%:@undef STDC_HEADERS])
  7534. +m4trace:configure.in:14: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
  7535. +@%:@undef HAVE_SYS_TYPES_H])
  7536. +m4trace:configure.in:14: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
  7537. +@%:@undef HAVE_SYS_STAT_H])
  7538. +m4trace:configure.in:14: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
  7539. +@%:@undef HAVE_STDLIB_H])
  7540. +m4trace:configure.in:14: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
  7541. +@%:@undef HAVE_STRING_H])
  7542. +m4trace:configure.in:14: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
  7543. +@%:@undef HAVE_MEMORY_H])
  7544. +m4trace:configure.in:14: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
  7545. +@%:@undef HAVE_STRINGS_H])
  7546. +m4trace:configure.in:14: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
  7547. +@%:@undef HAVE_INTTYPES_H])
  7548. +m4trace:configure.in:14: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
  7549. +@%:@undef HAVE_STDINT_H])
  7550. +m4trace:configure.in:14: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
  7551. +@%:@undef HAVE_UNISTD_H])
  7552. +m4trace:configure.in:14: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_SOURCE])
  7553. +m4trace:configure.in:14: -1- m4_pattern_allow([^_POSIX_SOURCE$])
  7554. +m4trace:configure.in:14: -1- AH_OUTPUT([_POSIX_SOURCE], [/* Define to 1 if you need to in order for `stat\' and other things to work. */
  7555. +@%:@undef _POSIX_SOURCE])
  7556. +m4trace:configure.in:14: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_1_SOURCE])
  7557. +m4trace:configure.in:14: -1- m4_pattern_allow([^_POSIX_1_SOURCE$])
  7558. +m4trace:configure.in:14: -1- AH_OUTPUT([_POSIX_1_SOURCE], [/* Define to 2 if the system does not provide POSIX.1 features except with
  7559. +   this defined. */
  7560. +@%:@undef _POSIX_1_SOURCE])
  7561. +m4trace:configure.in:14: -1- AC_DEFINE_TRACE_LITERAL([_MINIX])
  7562. +m4trace:configure.in:14: -1- m4_pattern_allow([^_MINIX$])
  7563. +m4trace:configure.in:14: -1- AH_OUTPUT([_MINIX], [/* Define to 1 if on MINIX. */
  7564. +@%:@undef _MINIX])
  7565. +m4trace:configure.in:14: -1- AH_OUTPUT([USE_SYSTEM_EXTENSIONS], [/* Enable extensions on AIX 3, Interix.  */
  7566. +#ifndef _ALL_SOURCE
  7567. +# undef _ALL_SOURCE
  7568. +#endif
  7569. +/* Enable GNU extensions on systems that have them.  */
  7570. +#ifndef _GNU_SOURCE
  7571. +# undef _GNU_SOURCE
  7572. +#endif
  7573. +/* Enable threading extensions on Solaris.  */
  7574. +#ifndef _POSIX_PTHREAD_SEMANTICS
  7575. +# undef _POSIX_PTHREAD_SEMANTICS
  7576. +#endif
  7577. +/* Enable extensions on HP NonStop.  */
  7578. +#ifndef _TANDEM_SOURCE
  7579. +# undef _TANDEM_SOURCE
  7580. +#endif
  7581. +/* Enable general extensions on Solaris.  */
  7582. +#ifndef __EXTENSIONS__
  7583. +# undef __EXTENSIONS__
  7584. +#endif
  7585. +])
  7586. +m4trace:configure.in:14: -1- AC_DEFINE_TRACE_LITERAL([__EXTENSIONS__])
  7587. +m4trace:configure.in:14: -1- m4_pattern_allow([^__EXTENSIONS__$])
  7588. +m4trace:configure.in:14: -1- AC_DEFINE_TRACE_LITERAL([_ALL_SOURCE])
  7589. +m4trace:configure.in:14: -1- m4_pattern_allow([^_ALL_SOURCE$])
  7590. +m4trace:configure.in:14: -1- AC_DEFINE_TRACE_LITERAL([_GNU_SOURCE])
  7591. +m4trace:configure.in:14: -1- m4_pattern_allow([^_GNU_SOURCE$])
  7592. +m4trace:configure.in:14: -1- AC_DEFINE_TRACE_LITERAL([_POSIX_PTHREAD_SEMANTICS])
  7593. +m4trace:configure.in:14: -1- m4_pattern_allow([^_POSIX_PTHREAD_SEMANTICS$])
  7594. +m4trace:configure.in:14: -1- AC_DEFINE_TRACE_LITERAL([_TANDEM_SOURCE])
  7595. +m4trace:configure.in:14: -1- m4_pattern_allow([^_TANDEM_SOURCE$])
  7596. +m4trace:configure.in:21: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7597. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7598. +configure.in:21: the top level])
  7599. +m4trace:configure.in:46: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7600. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7601. +configure.in:46: the top level])
  7602. +m4trace:configure.in:60: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7603. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7604. +configure.in:60: the top level])
  7605. +m4trace:configure.in:84: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7606. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7607. +configure.in:84: the top level])
  7608. +m4trace:configure.in:104: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7609. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7610. +configure.in:104: the top level])
  7611. +m4trace:configure.in:129: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7612. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7613. +configure.in:129: the top level])
  7614. +m4trace:configure.in:150: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7615. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7616. +configure.in:150: the top level])
  7617. +m4trace:configure.in:173: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7618. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7619. +configure.in:173: the top level])
  7620. +m4trace:configure.in:197: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7621. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7622. +configure.in:197: the top level])
  7623. +m4trace:configure.in:224: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7624. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7625. +configure.in:224: the top level])
  7626. +m4trace:configure.in:244: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7627. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7628. +configure.in:244: the top level])
  7629. +m4trace:configure.in:261: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7630. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7631. +configure.in:261: the top level])
  7632. +m4trace:configure.in:278: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7633. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7634. +configure.in:278: the top level])
  7635. +m4trace:configure.in:305: -2- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
  7636. +You should run autoupdate.], [../../lib/autoconf/general.m4:209: AC_HELP_STRING is expanded from...
  7637. +configure.in:305: the top level])
  7638. +m4trace:configure.in:327: -1- AC_SUBST([SET_MAKE])
  7639. +m4trace:configure.in:327: -1- AC_SUBST_TRACE([SET_MAKE])
  7640. +m4trace:configure.in:327: -1- m4_pattern_allow([^SET_MAKE$])
  7641. +m4trace:configure.in:328: -1- AC_SUBST([CC])
  7642. +m4trace:configure.in:328: -1- AC_SUBST_TRACE([CC])
  7643. +m4trace:configure.in:328: -1- m4_pattern_allow([^CC$])
  7644. +m4trace:configure.in:328: -1- AC_SUBST([CFLAGS])
  7645. +m4trace:configure.in:328: -1- AC_SUBST_TRACE([CFLAGS])
  7646. +m4trace:configure.in:328: -1- m4_pattern_allow([^CFLAGS$])
  7647. +m4trace:configure.in:328: -1- AC_SUBST([LDFLAGS])
  7648. +m4trace:configure.in:328: -1- AC_SUBST_TRACE([LDFLAGS])
  7649. +m4trace:configure.in:328: -1- m4_pattern_allow([^LDFLAGS$])
  7650. +m4trace:configure.in:328: -1- AC_SUBST([LIBS])
  7651. +m4trace:configure.in:328: -1- AC_SUBST_TRACE([LIBS])
  7652. +m4trace:configure.in:328: -1- m4_pattern_allow([^LIBS$])
  7653. +m4trace:configure.in:328: -1- AC_SUBST([CPPFLAGS])
  7654. +m4trace:configure.in:328: -1- AC_SUBST_TRACE([CPPFLAGS])
  7655. +m4trace:configure.in:328: -1- m4_pattern_allow([^CPPFLAGS$])
  7656. +m4trace:configure.in:328: -1- AC_SUBST([CC])
  7657. +m4trace:configure.in:328: -1- AC_SUBST_TRACE([CC])
  7658. +m4trace:configure.in:328: -1- m4_pattern_allow([^CC$])
  7659. +m4trace:configure.in:328: -1- AC_SUBST([CC])
  7660. +m4trace:configure.in:328: -1- AC_SUBST_TRACE([CC])
  7661. +m4trace:configure.in:328: -1- m4_pattern_allow([^CC$])
  7662. +m4trace:configure.in:328: -1- AC_SUBST([CC])
  7663. +m4trace:configure.in:328: -1- AC_SUBST_TRACE([CC])
  7664. +m4trace:configure.in:328: -1- m4_pattern_allow([^CC$])
  7665. +m4trace:configure.in:328: -1- AC_SUBST([CC])
  7666. +m4trace:configure.in:328: -1- AC_SUBST_TRACE([CC])
  7667. +m4trace:configure.in:328: -1- m4_pattern_allow([^CC$])
  7668. +m4trace:configure.in:328: -1- AC_SUBST([ac_ct_CC])
  7669. +m4trace:configure.in:328: -1- AC_SUBST_TRACE([ac_ct_CC])
  7670. +m4trace:configure.in:328: -1- m4_pattern_allow([^ac_ct_CC$])
  7671. +m4trace:configure.in:329: -1- AC_SUBST([CPP])
  7672. +m4trace:configure.in:329: -1- AC_SUBST_TRACE([CPP])
  7673. +m4trace:configure.in:329: -1- m4_pattern_allow([^CPP$])
  7674. +m4trace:configure.in:329: -1- AC_SUBST([CPPFLAGS])
  7675. +m4trace:configure.in:329: -1- AC_SUBST_TRACE([CPPFLAGS])
  7676. +m4trace:configure.in:329: -1- m4_pattern_allow([^CPPFLAGS$])
  7677. +m4trace:configure.in:329: -1- AC_SUBST([CPP])
  7678. +m4trace:configure.in:329: -1- AC_SUBST_TRACE([CPP])
  7679. +m4trace:configure.in:329: -1- m4_pattern_allow([^CPP$])
  7680. +m4trace:configure.in:330: -1- AC_SUBST([AR])
  7681. +m4trace:configure.in:330: -1- AC_SUBST_TRACE([AR])
  7682. +m4trace:configure.in:330: -1- m4_pattern_allow([^AR$])
  7683. +m4trace:configure.in:338: -1- AH_OUTPUT([WORDS_BIGENDIAN], [/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  7684. +   significant byte first (like Motorola and SPARC, unlike Intel). */
  7685. +#if defined AC_APPLE_UNIVERSAL_BUILD
  7686. +# if defined __BIG_ENDIAN__
  7687. +#  define WORDS_BIGENDIAN 1
  7688. +# endif
  7689. +#else
  7690. +# ifndef WORDS_BIGENDIAN
  7691. +#  undef WORDS_BIGENDIAN
  7692. +# endif
  7693. +#endif])
  7694. +m4trace:configure.in:338: -1- AC_DEFINE_TRACE_LITERAL([AC_APPLE_UNIVERSAL_BUILD])
  7695. +m4trace:configure.in:338: -1- m4_pattern_allow([^AC_APPLE_UNIVERSAL_BUILD$])
  7696. +m4trace:configure.in:338: -1- AH_OUTPUT([AC_APPLE_UNIVERSAL_BUILD], [/* Define if building universal (internal helper macro) */
  7697. +@%:@undef AC_APPLE_UNIVERSAL_BUILD])
  7698. +m4trace:configure.in:373: -1- _m4_warn([syntax], [AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body], [../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  7699. +../../lib/autoconf/general.m4:2730: _AC_RUN_IFELSE is expanded from...
  7700. +../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
  7701. +../../lib/autoconf/general.m4:2749: AC_RUN_IFELSE is expanded from...
  7702. +configure.in:373: the top level])
  7703. +m4trace:configure.in:399: -1- _m4_warn([cross], [AC_RUN_IFELSE called without default to allow cross compiling], [../../lib/autoconf/general.m4:2749: AC_RUN_IFELSE is expanded from...
  7704. +configure.in:399: the top level])
  7705. +m4trace:configure.in:399: -1- _m4_warn([syntax], [AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body], [../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  7706. +../../lib/autoconf/general.m4:2730: _AC_RUN_IFELSE is expanded from...
  7707. +../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
  7708. +../../lib/autoconf/general.m4:2749: AC_RUN_IFELSE is expanded from...
  7709. +configure.in:399: the top level])
  7710. +m4trace:configure.in:421: -1- _m4_warn([syntax], [AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body], [../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  7711. +../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
  7712. +../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
  7713. +configure.in:421: the top level])
  7714. +m4trace:configure.in:443: -1- _m4_warn([syntax], [AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body], [../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  7715. +../../lib/autoconf/general.m4:2730: _AC_RUN_IFELSE is expanded from...
  7716. +../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
  7717. +../../lib/autoconf/general.m4:2749: AC_RUN_IFELSE is expanded from...
  7718. +configure.in:443: the top level])
  7719. +m4trace:configure.in:468: -1- _m4_warn([syntax], [AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body], [../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  7720. +../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
  7721. +../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
  7722. +configure.in:468: the top level])
  7723. +m4trace:configure.in:468: -1- _m4_warn([syntax], [AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body], [../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  7724. +../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
  7725. +../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
  7726. +../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
  7727. +../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
  7728. +../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
  7729. +configure.in:468: the top level])
  7730. +m4trace:configure.in:498: -1- _m4_warn([syntax], [AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body], [../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  7731. +../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
  7732. +../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
  7733. +configure.in:498: the top level])
  7734. +m4trace:configure.in:511: -1- _m4_warn([syntax], [AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body], [../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  7735. +../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
  7736. +../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
  7737. +configure.in:511: the top level])
  7738. +m4trace:configure.in:531: -1- _m4_warn([syntax], [AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body], [../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  7739. +../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
  7740. +../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
  7741. +configure.in:531: the top level])
  7742. +m4trace:configure.in:558: -1- AH_OUTPUT([HAVE_USELOCALE], [/* Define to 1 if you have the `uselocale\' function. */
  7743. +@%:@undef HAVE_USELOCALE])
  7744. +m4trace:configure.in:558: -1- AC_DEFINE_TRACE_LITERAL([HAVE_USELOCALE])
  7745. +m4trace:configure.in:558: -1- m4_pattern_allow([^HAVE_USELOCALE$])
  7746. +m4trace:configure.in:559: -1- AH_OUTPUT([HAVE_NEWLOCALE], [/* Define to 1 if you have the `newlocale\' function. */
  7747. +@%:@undef HAVE_NEWLOCALE])
  7748. +m4trace:configure.in:559: -1- AC_DEFINE_TRACE_LITERAL([HAVE_NEWLOCALE])
  7749. +m4trace:configure.in:559: -1- m4_pattern_allow([^HAVE_NEWLOCALE$])
  7750. +m4trace:configure.in:560: -1- AH_OUTPUT([HAVE_FREELOCALE], [/* Define to 1 if you have the `freelocale\' function. */
  7751. +@%:@undef HAVE_FREELOCALE])
  7752. +m4trace:configure.in:560: -1- AC_DEFINE_TRACE_LITERAL([HAVE_FREELOCALE])
  7753. +m4trace:configure.in:560: -1- m4_pattern_allow([^HAVE_FREELOCALE$])
  7754. +m4trace:configure.in:561: -1- AH_OUTPUT([HAVE_XLOCALE_H], [/* Define to 1 if you have the <xlocale.h> header file. */
  7755. +@%:@undef HAVE_XLOCALE_H])
  7756. +m4trace:configure.in:561: -1- AC_DEFINE_TRACE_LITERAL([HAVE_XLOCALE_H])
  7757. +m4trace:configure.in:561: -1- m4_pattern_allow([^HAVE_XLOCALE_H$])
  7758. +m4trace:configure.in:663: -1- AH_OUTPUT([HAVE_LIBZ], [/* Define to 1 if you have the `z\' library (-lz). */
  7759. +@%:@undef HAVE_LIBZ])
  7760. +m4trace:configure.in:663: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBZ])
  7761. +m4trace:configure.in:663: -1- m4_pattern_allow([^HAVE_LIBZ$])
  7762. +m4trace:configure.in:689: -1- _m4_warn([syntax], [AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body], [../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
  7763. +../../lib/autoconf/general.m4:2730: _AC_RUN_IFELSE is expanded from...
  7764. +../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
  7765. +../../lib/autoconf/general.m4:2749: AC_RUN_IFELSE is expanded from...
  7766. +configure.in:689: the top level])
  7767. +m4trace:configure.in:720: -1- AH_OUTPUT([HAVE_LIBPTHREAD], [/* Define to 1 if you have the `pthread\' library (-lpthread). */
  7768. +@%:@undef HAVE_LIBPTHREAD])
  7769. +m4trace:configure.in:720: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPTHREAD])
  7770. +m4trace:configure.in:720: -1- m4_pattern_allow([^HAVE_LIBPTHREAD$])
  7771. +m4trace:configure.in:721: -1- AH_OUTPUT([HAVE_LIBPTHREAD], [/* Define to 1 if you have the `pthread\' library (-lpthread). */
  7772. +@%:@undef HAVE_LIBPTHREAD])
  7773. +m4trace:configure.in:721: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPTHREAD])
  7774. +m4trace:configure.in:721: -1- m4_pattern_allow([^HAVE_LIBPTHREAD$])
  7775. +m4trace:configure.in:722: -1- AH_OUTPUT([HAVE_LIBPTHREAD], [/* Define to 1 if you have the `pthread\' library (-lpthread). */
  7776. +@%:@undef HAVE_LIBPTHREAD])
  7777. +m4trace:configure.in:722: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPTHREAD])
  7778. +m4trace:configure.in:722: -1- m4_pattern_allow([^HAVE_LIBPTHREAD$])
  7779. +m4trace:configure.in:723: -1- AH_OUTPUT([HAVE_LIBPTHREAD], [/* Define to 1 if you have the `pthread\' library (-lpthread). */
  7780. +@%:@undef HAVE_LIBPTHREAD])
  7781. +m4trace:configure.in:723: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPTHREAD])
  7782. +m4trace:configure.in:723: -1- m4_pattern_allow([^HAVE_LIBPTHREAD$])
  7783. +m4trace:configure.in:724: -1- AH_OUTPUT([HAVE_LIBPTHREAD], [/* Define to 1 if you have the `pthread\' library (-lpthread). */
  7784. +@%:@undef HAVE_LIBPTHREAD])
  7785. +m4trace:configure.in:724: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPTHREAD])
  7786. +m4trace:configure.in:724: -1- m4_pattern_allow([^HAVE_LIBPTHREAD$])
  7787. +m4trace:configure.in:725: -1- AH_OUTPUT([HAVE_LIBPTHREAD], [/* Define to 1 if you have the `pthread\' library (-lpthread). */
  7788. +@%:@undef HAVE_LIBPTHREAD])
  7789. +m4trace:configure.in:725: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPTHREAD])
  7790. +m4trace:configure.in:725: -1- m4_pattern_allow([^HAVE_LIBPTHREAD$])
  7791. +m4trace:configure.in:726: -1- AH_OUTPUT([HAVE_LIBPTHREAD], [/* Define to 1 if you have the `pthread\' library (-lpthread). */
  7792. +@%:@undef HAVE_LIBPTHREAD])
  7793. +m4trace:configure.in:726: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPTHREAD])
  7794. +m4trace:configure.in:726: -1- m4_pattern_allow([^HAVE_LIBPTHREAD$])
  7795. +m4trace:configure.in:736: -1- AC_SUBST([MYSQL_CONFIG_HOME])
  7796. +m4trace:configure.in:736: -1- AC_SUBST_TRACE([MYSQL_CONFIG_HOME])
  7797. +m4trace:configure.in:736: -1- m4_pattern_allow([^MYSQL_CONFIG_HOME$])
  7798. +m4trace:configure.in:766: -1- AC_SUBST([HAVE_MYSQL])
  7799. +m4trace:configure.in:766: -1- AC_SUBST_TRACE([HAVE_MYSQL])
  7800. +m4trace:configure.in:766: -1- m4_pattern_allow([^HAVE_MYSQL$])
  7801. +m4trace:configure.in:767: -1- AC_SUBST([MYSQL_VERSION])
  7802. +m4trace:configure.in:767: -1- AC_SUBST_TRACE([MYSQL_VERSION])
  7803. +m4trace:configure.in:767: -1- m4_pattern_allow([^MYSQL_VERSION$])
  7804. +m4trace:configure.in:768: -1- AC_SUBST([MYSQL_CFLAGS])
  7805. +m4trace:configure.in:768: -1- AC_SUBST_TRACE([MYSQL_CFLAGS])
  7806. +m4trace:configure.in:768: -1- m4_pattern_allow([^MYSQL_CFLAGS$])
  7807. +m4trace:configure.in:769: -1- AC_SUBST([MYSQL_LIBS])
  7808. +m4trace:configure.in:769: -1- AC_SUBST_TRACE([MYSQL_LIBS])
  7809. +m4trace:configure.in:769: -1- m4_pattern_allow([^MYSQL_LIBS$])
  7810. +m4trace:configure.in:811: -1- AC_SUBST([HAVE_PCRE])
  7811. +m4trace:configure.in:811: -1- AC_SUBST_TRACE([HAVE_PCRE])
  7812. +m4trace:configure.in:811: -1- m4_pattern_allow([^HAVE_PCRE$])
  7813. +m4trace:configure.in:812: -1- AC_SUBST([PCRE_LIBS])
  7814. +m4trace:configure.in:812: -1- AC_SUBST_TRACE([PCRE_LIBS])
  7815. +m4trace:configure.in:812: -1- m4_pattern_allow([^PCRE_LIBS$])
  7816. +m4trace:configure.in:813: -1- AC_SUBST([PCRE_CFLAGS])
  7817. +m4trace:configure.in:813: -1- AC_SUBST_TRACE([PCRE_CFLAGS])
  7818. +m4trace:configure.in:813: -1- m4_pattern_allow([^PCRE_CFLAGS$])
  7819. +m4trace:configure.in:843: -1- AC_SUBST([DLLEXT])
  7820. +m4trace:configure.in:843: -1- AC_SUBST_TRACE([DLLEXT])
  7821. +m4trace:configure.in:843: -1- m4_pattern_allow([^DLLEXT$])
  7822. +m4trace:configure.in:860: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
  7823. +m4trace:configure.in:860: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
  7824. +m4trace:configure.in:860: -1- m4_pattern_allow([^LIB@&t@OBJS$])
  7825. +m4trace:configure.in:860: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
  7826. +m4trace:configure.in:860: -1- AC_SUBST_TRACE([LTLIBOBJS])
  7827. +m4trace:configure.in:860: -1- m4_pattern_allow([^LTLIBOBJS$])
  7828. +m4trace:configure.in:860: -1- _m4_warn([obsolete], [AC_C_BIGENDIAN should be used with AC_CONFIG_HEADERS], [])
  7829. +m4trace:configure.in:860: -1- AC_SUBST_TRACE([top_builddir])
  7830. +m4trace:configure.in:860: -1- AC_SUBST_TRACE([top_build_prefix])
  7831. +m4trace:configure.in:860: -1- AC_SUBST_TRACE([srcdir])
  7832. +m4trace:configure.in:860: -1- AC_SUBST_TRACE([abs_srcdir])
  7833. +m4trace:configure.in:860: -1- AC_SUBST_TRACE([top_srcdir])
  7834. +m4trace:configure.in:860: -1- AC_SUBST_TRACE([abs_top_srcdir])
  7835. +m4trace:configure.in:860: -1- AC_SUBST_TRACE([builddir])
  7836. +m4trace:configure.in:860: -1- AC_SUBST_TRACE([abs_builddir])
  7837. +m4trace:configure.in:860: -1- AC_SUBST_TRACE([abs_top_builddir])
  7838. Index: configure
  7839. --- configure Base (BASE)
  7840. +++ configure Locally Modified (Based On LOCAL)
  7841. @@ -4423,7 +4423,7 @@
  7842.  
  7843.  
  7844.  
  7845. -CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wno-sign-compare"
  7846. +CFLAGS="$CFLAGS -pipe -ffast-math -Wall"
  7847.  CPPFLAGS="$CPPFLAGS -I../common"
  7848.  
  7849.  
  7850. @@ -4781,26 +4781,26 @@
  7851.  
  7852.  
  7853.  
  7854. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
  7855. -$as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
  7856. -OLD_CFLAGS="$CFLAGS"
  7857. -CFLAGS="$CFLAGS -Wno-unused-parameter"
  7858. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7859. -/* end confdefs.h.  */
  7860. -int foo;
  7861. -_ACEOF
  7862. -if ac_fn_c_try_compile "$LINENO"; then :
  7863. -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7864. -$as_echo "yes" >&6; }
  7865. -else
  7866. +#{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
  7867. +#$as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
  7868. +#OLD_CFLAGS="$CFLAGS"
  7869. +#CFLAGS="$CFLAGS -Wno-unused-parameter"
  7870. +#cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7871. +#/* end confdefs.h.  */
  7872. +#int foo;
  7873. +#_ACEOF
  7874. +#if ac_fn_c_try_compile "$LINENO"; then :
  7875. +#  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7876. +#$as_echo "yes" >&6; }
  7877. +#else
  7878.  
  7879. -		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7880. -$as_echo "no" >&6; }
  7881. -		CFLAGS="$OLD_CFLAGS"
  7882. +#		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7883. +#$as_echo "no" >&6; }
  7884. +#		CFLAGS="$OLD_CFLAGS"
  7885.  
  7886.  
  7887. -fi
  7888. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7889. +#fi
  7890. +#rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7891.  
  7892.  
  7893.  #
  7894. @@ -4852,54 +4852,54 @@
  7895.  
  7896.  
  7897.  
  7898. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-pointer-sign" >&5
  7899. -$as_echo_n "checking whether $CC supports -Wno-pointer-sign... " >&6; }
  7900. -OLD_CFLAGS="$CFLAGS"
  7901. -CFLAGS="$CFLAGS -Wno-pointer-sign"
  7902. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7903. -/* end confdefs.h.  */
  7904. -int foo;
  7905. -_ACEOF
  7906. -if ac_fn_c_try_compile "$LINENO"; then :
  7907. +#{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-pointer-sign" >&5
  7908. +#$as_echo_n "checking whether $CC supports -Wno-pointer-sign... " >&6; }
  7909. +#OLD_CFLAGS="$CFLAGS"
  7910. +#CFLAGS="$CFLAGS -Wno-pointer-sign"
  7911. +#cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7912. +#/* end confdefs.h.  */
  7913. +#int foo;
  7914. +#_ACEOF
  7915. +#if ac_fn_c_try_compile "$LINENO"; then :
  7916. +#
  7917. +#		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7918. +#$as_echo "yes" >&6; }
  7919. +#		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-pointer-sign" >&5
  7920. +#$as_echo_n "checking whether $CC can actually use -Wno-pointer-sign... " >&6; }
  7921. +#		# This option causes warnings in C++ mode
  7922. +#		# Note: -Werror must be before -Wno-pointer-sign, otherwise it does not do anything
  7923. +#		CFLAGS="$OLD_CFLAGS -Werror -Wno-pointer-sign"
  7924. +#		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7925. +#/* end confdefs.h.  */
  7926. +#int foo;
  7927. +#_ACEOF
  7928. +#if ac_fn_c_try_compile "$LINENO"; then :
  7929. +#
  7930. +#				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7931. +#$as_echo "yes" >&6; }
  7932. +#				CFLAGS="$OLD_CFLAGS -Wno-pointer-sign"
  7933. +#
  7934. +#else
  7935. +#
  7936. +#				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7937. +#$as_echo "no" >&6; }
  7938. +#				CFLAGS="$OLD_CFLAGS"
  7939. +#
  7940. +#
  7941. +#fi
  7942. +#rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7943. +#
  7944. +#else
  7945. +#
  7946. +#		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7947. +#$as_echo "no" >&6; }
  7948. +#		CFLAGS="$OLD_CFLAGS"
  7949. +#
  7950. +#
  7951. +#fi
  7952. +#rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7953.  
  7954. -		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7955. -$as_echo "yes" >&6; }
  7956. -		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-pointer-sign" >&5
  7957. -$as_echo_n "checking whether $CC can actually use -Wno-pointer-sign... " >&6; }
  7958. -		# This option causes warnings in C++ mode
  7959. -		# Note: -Werror must be before -Wno-pointer-sign, otherwise it does not do anything
  7960. -		CFLAGS="$OLD_CFLAGS -Werror -Wno-pointer-sign"
  7961. -		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7962. -/* end confdefs.h.  */
  7963. -int foo;
  7964. -_ACEOF
  7965. -if ac_fn_c_try_compile "$LINENO"; then :
  7966.  
  7967. -				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7968. -$as_echo "yes" >&6; }
  7969. -				CFLAGS="$OLD_CFLAGS -Wno-pointer-sign"
  7970. -
  7971. -else
  7972. -
  7973. -				{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7974. -$as_echo "no" >&6; }
  7975. -				CFLAGS="$OLD_CFLAGS"
  7976. -
  7977. -
  7978. -fi
  7979. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7980. -
  7981. -else
  7982. -
  7983. -		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7984. -$as_echo "no" >&6; }
  7985. -		CFLAGS="$OLD_CFLAGS"
  7986. -
  7987. -
  7988. -fi
  7989. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7990. -
  7991. -
  7992.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-switch" >&5
  7993.  $as_echo_n "checking whether $CC supports -Wno-switch... " >&6; }
  7994.  OLD_CFLAGS="$CFLAGS"
  7995. Index: configure.in
  7996. --- configure.in Base (BASE)
  7997. +++ configure.in Locally Modified (Based On LOCAL)
  7998. @@ -2,7 +2,7 @@
  7999.  # Process this file with autoconf to produce a configure script.
  8000.  
  8001.  AC_INIT(rAthena)
  8002. -AC_REVISION($Revision$)
  8003. +AC_REVISION($Revision: 16271 $)
  8004.  AC_PREREQ([2.59])
  8005.  AC_CONFIG_SRCDIR([src/common/cbasetypes.h])
  8006.  AC_CONFIG_FILES([Makefile src/common/Makefile])
  8007.  
  8008. Index: src/map/atcommand.c
  8009. --- src/map/atcommand.c Base (BASE)
  8010. +++ src/map/atcommand.c Locally Modified (Based On LOCAL)
  8011. @@ -7410,7 +7410,7 @@
  8012.          clif_displaymessage(sd->fd,atcmd_output);\
  8013.          return 0;\
  8014.      }
  8015. -    unsigned char flag_name[100];
  8016. +    char flag_name[100];
  8017.      int flag=0,i;
  8018.      nullpo_retr(-1, sd);
  8019.      memset(flag_name, '\0', sizeof(flag_name));
  8020. Index: src/map/battle.c
  8021. --- src/map/battle.c Base (BASE)
  8022. +++ src/map/battle.c Locally Modified (Based On LOCAL)
  8023. @@ -3472,7 +3472,8 @@
  8024.      short s_ele = 0;
  8025.      unsigned int skillratio = 100;  //Skill dmg modifiers.
  8026.  
  8027. -    struct map_session_data *sd, *tsd;
  8028. +    TBL_PC *sd;
  8029. +//    TBL_PC *tsd;
  8030.      struct Damage ad;
  8031.      struct status_data *sstatus = status_get_status_data(src);
  8032.      struct status_data *tstatus = status_get_status_data(target);
  8033. @@ -3499,7 +3500,7 @@
  8034.      flag.imdef = nk &NK_IGNORE_DEF?1:0;
  8035.  
  8036.      sd = BL_CAST(BL_PC, src);
  8037. -    tsd = BL_CAST(BL_PC, target);
  8038. +//    tsd = BL_CAST(BL_PC, target);
  8039.  
  8040.      if (skill_num == SO_PSYCHIC_WAVE) {
  8041.          struct status_change *sc = status_get_sc(src);
  8042. Index: src/map/clif.c
  8043. --- src/map/clif.c Base (BASE)
  8044. +++ src/map/clif.c Locally Modified (Based On LOCAL)
  8045. @@ -5345,7 +5345,7 @@
  8046.                  WFIFOHEAD(fd, 5 + len);
  8047.                  WFIFOW(fd,0) = 0x8e;
  8048.                  WFIFOW(fd,2) = 5 + len; // 4 + len + NULL teminate
  8049. -                safestrncpy(WFIFOP(fd,4), line, len + 1);
  8050. +                safestrncpy((char *)WFIFOP(fd,4), line, len + 1);
  8051.                  WFIFOSET(fd, 5 + len);
  8052.              }
  8053.              line = strtok(NULL, "\n");
  8054. @@ -6438,7 +6438,7 @@
  8055.          WBUFW(buf,0)=0x109;
  8056.          WBUFW(buf,2)=len+8;
  8057.          WBUFL(buf,4)=account_id;
  8058. -        safestrncpy(WBUFP(buf,8), mes, len);
  8059. +        safestrncpy((char *)WBUFP(buf,8), mes, len);
  8060.          clif_send(buf,len+8,&sd->bl,PARTY);
  8061.      }
  8062.  }
  8063. Index: src/map/intif.c
  8064. --- src/map/intif.c Base (BASE)
  8065. +++ src/map/intif.c Locally Modified (Based On LOCAL)
  8066. @@ -2134,7 +2134,7 @@
  8067.      WFIFOL(inter_fd,2) = u_fd;
  8068.      WFIFOL(inter_fd,6) = aid;
  8069.      WFIFOL(inter_fd,10) = group_id;
  8070. -    safestrncpy(WFIFOP(inter_fd,14), query, NAME_LENGTH);
  8071. +    safestrncpy((char *)WFIFOP(inter_fd,14), query, NAME_LENGTH);
  8072.  
  8073.      WFIFOSET(inter_fd,2 + 4 + 4 + 4 + NAME_LENGTH);
  8074.  
  8075. Index: src/map/status.c
  8076. --- src/map/status.c Base (BASE)
  8077. +++ src/map/status.c Locally Modified (Based On LOCAL)
  8078. @@ -3806,7 +3806,7 @@
  8079.          status->matk_min = status_calc_matk(bl, sc, status->matk_min);
  8080.          status->matk_max = status_calc_matk(bl, sc, status->matk_max);
  8081.  
  8082. -        if (bl->type&BL_HOM && battle_config.hom_setting&0x20  //Hom Min Matk is always the same as Max Matk
  8083. +        if ((bl->type&BL_HOM && battle_config.hom_setting&0x20)  //Hom Min Matk is always the same as Max Matk
  8084.  			|| ( sc && sc->data[SC_RECOGNIZEDSPELL] ))
  8085.              status->matk_min = status->matk_max;
Viewed 697 times, submitted by Guest.